/*
Theme Name: Mapofcity Production
Description: Elegant map poster theme with Cormorant Garamond typography and gold accents.
Version: 1.0.0
Text Domain: mapofcity
*/

/* =====================================================
   VARIABLES
===================================================== */
:root {
  --s50:  #f8fafc;
  --s100: #f1f5f9;
  --s200: #e2e8f0;
  --s400: #94a3b8;
  --s600: #475569;
  --s900: #0f172a;
  --gold: #b8955a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
  --nav-h: 60px;
}

/* =====================================================
   RESET
===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: #F1F5F9;
  color: var(--s900);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--s900); color: #fff;
  font-size: 12px; font-weight: 300;
  letter-spacing: .1em; text-transform: uppercase;
  border: none; transition: background .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--gold); color: #fff; }
.btn-ghost {
  background: none; color: var(--s600);
  border: 1px solid var(--s200);
}
.btn-ghost:hover { background: none; color: var(--s900); border-color: var(--s900); }
.btn-white { background: #fff; color: var(--s900); }
.btn-white:hover { background: var(--gold); color: #fff; }

/* =====================================================
   HEADER
===================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--s200);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: var(--nav-h); gap: 24px;
}
.site-logo {
  font-family: var(--serif); font-size: 20px; font-weight: 300;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--s900); flex-shrink: 0; transition: color .2s;
}
.site-logo:hover { color: var(--gold); }
.header-search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--s200); padding: 6px 12px;
  flex: 1; max-width: 220px;
}
.header-search svg { flex-shrink: 0; color: var(--s400); }
.header-search input {
  border: none; outline: none; font-family: var(--sans);
  font-size: 13px; font-weight: 300; color: var(--s900);
  width: 100%; background: none;
}
.header-search input::placeholder { color: var(--s400); }
.site-nav { display: flex; align-items: center; }
.site-nav a {
  font-size: 12px; font-weight: 300; letter-spacing: .08em;
  text-transform: uppercase; color: var(--s600);
  padding: 6px 14px; transition: color .2s;
}
.site-nav a:hover { color: var(--s900); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; padding: 4px; flex-shrink: 0;
}
.hamburger span {
  display: block; height: 1px; background: var(--s900);
  transition: transform .3s, opacity .2s, width .3s;
}
.hamburger span:nth-child(1) { width: 20px; }
.hamburger span:nth-child(2) { width: 14px; }
.hamburger span:nth-child(3) { width: 20px; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 20px; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 20px; }

/* Mobile drawer */
.nav-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 99; border-top: 1px solid var(--s200);
  padding: 0 24px; display: flex; flex-direction: column;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s; overflow-y: auto;
}
.nav-drawer.open { opacity: 1; transform: none; pointer-events: auto; }
.nav-drawer .drawer-search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--s200); padding: 9px 12px; margin: 20px 0 4px;
}
.nav-drawer .drawer-search input {
  border: none; outline: none; font-size: 14px; font-weight: 300;
  color: var(--s900); width: 100%; background: none;
}
.nav-drawer .drawer-search input::placeholder { color: var(--s400); }
.nav-drawer a {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--s200);
  font-size: 15px; font-weight: 300; color: var(--s600); transition: color .2s;
}
.nav-drawer a:hover { color: var(--s900); }
.nav-drawer .btn { margin-top: 20px; text-align: center; padding: 12px; display: block; }

/* =====================================================
   TICKER
===================================================== */
.ticker {
  overflow: hidden; border-top: 1px solid var(--s200);
  border-bottom: 1px solid var(--s200); background: var(--s50); padding: 12px 0;
}
.ticker-track { display: flex; animation: ticker-scroll 28s linear infinite; white-space: nowrap; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.ticker-item { padding: 0 32px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--s400); }
.ticker-item::after { content: '·'; margin-left: 32px; color: var(--gold); }

/* =====================================================
   HERO
===================================================== */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--nav-h)); }
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px 56px; border-right: 1px solid var(--s200);
}
.hero-eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.hero-title { font-family: var(--serif); font-size: clamp(44px,4.5vw,72px); font-weight: 300; line-height: 1.05; margin-bottom: 20px; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-body { font-size: 15px; font-weight: 300; line-height: 1.8; color: var(--s600); max-width: 340px; margin-bottom: 36px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--s200); }
.hero-stat { padding-right: 32px; margin-right: 32px; border-right: 1px solid var(--s200); }
.hero-stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.stat-number { font-family: var(--serif); font-size: 34px; font-weight: 300; line-height: 1; }
.stat-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--s400); margin-top: 3px; }

/* Poster stack */
.hero-visual { background: var(--s100); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.poster-stack { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.hp { position: absolute; overflow: hidden; box-shadow: 0 24px 64px rgba(15,23,42,.18); transition: transform .5s ease, box-shadow .5s ease; }
.hp img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.hp-main  {width: 291px; height: 450px; z-index: 3; transform: rotate(-1deg); }
.hp-left  { width: 250px; height: 387px; z-index: 2; transform: rotate(-9deg) translate(-170px,0px); opacity: .85; }
.hp-right { width: 250px; height: 387px; z-index: 2; transform: rotate(8deg) translate(170px,0px); opacity: .8; }
.hp-back  { width: 250px; height: 387px; z-index: 1; transform: rotate(2deg) translate(20px,-50px); opacity: .6; }
.poster-stack:hover .hp-main  { transform: rotate(0deg) translateY(-12px); box-shadow: 0 40px 80px rgba(15,23,42,.22); }
.poster-stack:hover .hp-left  { transform: rotate(-12deg) translate(-200px,20px); }
.poster-stack:hover .hp-right { transform: rotate(10deg) translate(200px,30px); }
.poster-stack:hover .hp-back  { transform: rotate(3deg) translate(10px,-65px); }

/* =====================================================
   SECTION SHARED
===================================================== */
.section { padding: 80px 40px; max-width: 1160px; margin: 0 auto; }
.section-divider { border-top: 1px solid var(--s200); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; gap: 16px; }
.section-title { font-family: var(--serif); font-size: clamp(28px,3vw,44px); font-weight: 300; line-height: 1.1; }
.section-title em { font-style: italic; }
.view-all {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--s600); display: flex; align-items: center; gap: 8px; flex-shrink: 0; transition: color .2s;
}
.view-all::after { content: ''; width: 20px; height: 1px; background: currentColor; }
.view-all:hover { color: var(--s900); }

/* =====================================================
   POST CARDS
===================================================== */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px 16px; }

.post-card { display: block; }
.post-card-img { aspect-ratio: 2/3; overflow: hidden; background: var(--s100); margin-bottom: 12px; position: relative; }
.post-card-img img { width: 100%; height: 100%; object-fit: contain; /* Changed from cover to contain */ display: block; transition: transform .5s, filter .3s; filter: saturate(.75); }
.post-card:hover .post-card-img img { transform: scale(1.04); filter: saturate(1); }
.post-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(15,23,42,.4),transparent 50%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.post-card:hover .post-card-overlay { opacity: 1; }
.post-card-cta {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%) translateY(4px);
  background: #fff; color: var(--s900); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; padding: 7px 14px; white-space: nowrap;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.post-card:hover .post-card-cta { opacity: 1; transform: translateX(-50%) translateY(0); }
.post-card-badge { position: absolute; top: 10px; left: 10px; background: var(--s900); color: #fff; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; }
.post-card-badge.gold { background: var(--gold); }
.post-card-title { font-family: var(--serif); font-size: 19px; font-weight: 300; margin-bottom: 3px; }
.post-card-meta { display: flex; justify-content: space-between; align-items: center; }
.post-card-cat { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--s400); }
.post-card-date { font-family: var(--serif); font-size: 15px; color: var(--gold); }

/* =====================================================
   HOW IT WORKS
===================================================== */
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--s200); }
.how-step { padding: 40px 32px; border-right: 1px solid var(--s200); }
.how-step:last-child { border-right: none; }
.step-number { font-family: var(--serif); font-size: 52px; font-weight: 300; color: var(--s200); line-height: 1; margin-bottom: 16px; }
.step-title { font-family: var(--serif); font-size: 21px; font-weight: 300; margin-bottom: 8px; }
.step-body { font-size: 14px; font-weight: 300; line-height: 1.8; color: var(--s600); }

/* =====================================================
   DESIGN STYLES
===================================================== */
.styles-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.style-card { }
.style-img { aspect-ratio: 3/4; overflow: hidden; background: var(--s100); margin-bottom: 10px; }
.style-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; filter: saturate(.6); }
.style-card:hover .style-img img { transform: scale(1.03); filter: saturate(1); }
.style-name { font-family: var(--serif); font-size: 18px; font-weight: 300; }
.style-desc { font-size: 11px; letter-spacing: .06em; color: var(--s400); margin-top: 2px; }

/* =====================================================
   TESTIMONIALS
===================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.testi { padding-top: 24px; border-top: 1px solid var(--s200); }
.testi-stars { color: var(--gold); font-size: 12px; letter-spacing: 2px; margin-bottom: 14px; }
.testi-quote { font-family: var(--serif); font-size: 20px; font-weight: 300; font-style: italic; line-height: 1.6; color: var(--s900); margin-bottom: 16px; }
.testi-author { font-size: 12px; color: var(--s400); letter-spacing: .04em; }

/* =====================================================
   CTA BANNER
===================================================== */
.cta-banner { background: var(--s900); color: #fff; padding: 80px 40px; text-align: center; }
.cta-title { font-family: var(--serif); font-size: clamp(40px,5vw,64px); font-weight: 300; line-height: 1.05; margin-bottom: 32px; }
.cta-title em { font-style: italic; color: var(--gold); }
.cta-note { margin-top: 16px; font-size: 12px; color: rgba(255,255,255,.4); }

/* =====================================================
   ARCHIVE / INDEX PAGE
===================================================== */
.page-header {
  max-width: 1160px; margin: 0 auto; padding: 40px 40px 32px;
  border-bottom: 1px solid var(--s200);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.breadcrumb { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--s400); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--s400); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--s200); }
.page-title { font-family: var(--serif); font-size: clamp(32px,4vw,48px); font-weight: 300; line-height: 1.05; }
.page-title em { font-style: italic; }
.archive-meta { display: flex; align-items: center; gap: 12px; }
.post-count { font-size: 12px; color: var(--s400); }
.sort-select {
  padding: 7px 28px 7px 10px; border: 1px solid var(--s200); background: var(--s100); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  font-size: 12px; font-weight: 300; color: var(--s600); outline: none; cursor: pointer;
}

.archive-layout {
  max-width: 1160px; margin: 0 auto; padding: 32px 40px 80px;
  display: grid; grid-template-columns: 180px 1fr; gap: 40px;
}
.filters-sidebar { position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; }
.filter-group { border-bottom: 1px solid var(--s200); padding-bottom: 20px; margin-bottom: 20px; }
.filter-group:last-child { border-bottom: none; }
.filter-label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--s400); margin-bottom: 12px; }
.filter-opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0; cursor: pointer;
}
.filter-opt label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 300; color: var(--s600); cursor: pointer; transition: color .2s;
}
.filter-opt label::before {
  content: ''; width: 13px; height: 13px; border: 1px solid var(--s200); flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.filter-opt.active label { color: var(--s900); }
.filter-opt.active label::before {
  background: var(--s900); border-color: var(--s900);
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3l2 2 4-4' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.filter-opt:hover label { color: var(--s900); }
.filter-count { font-size: 11px; color: var(--s400); }
.clear-filters {
  width: 100%; padding: 9px; border: 1px solid var(--s200); background: none;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--s600); cursor: pointer; margin-top: 4px; transition: all .2s;
}
.clear-filters:hover { border-color: var(--s900); color: var(--s900); }

.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px 16px; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--s200); }
.page-numbers { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid transparent; font-size: 13px; font-weight: 300; color: var(--s600); transition: all .2s; background: none; }
.page-numbers:hover { border-color: var(--s200); color: var(--s900); }
.page-numbers.current { background: var(--s900); color: #fff; border-color: var(--s900); }
.page-numbers.prev, .page-numbers.next { border: 1px solid var(--s200); font-size: 11px; }
.page-numbers.prev:hover, .page-numbers.next:hover { border-color: var(--s900); color: var(--s900); }
.page-numbers.dots { border: none; color: var(--s400); pointer-events: none; }

/* =====================================================
   SINGLE POST
===================================================== */
.single-wrap {
  max-width: 1160px; margin: 0 auto; padding: 24px 40px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.single-gallery { position: sticky; top: calc(var(--nav-h) + 16px); }
.gallery-stage { position: relative; overflow: hidden; background: var(--s100); aspect-ratio: 3/4; }
.gallery-track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.gallery-slide { min-width: 100%; height: 100%; flex-shrink: 0; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; /* Shows full image with "letterboxing" if needed */
    background: var(--s100); /* Adds a light background for any empty space */ display: block; }
.gallery-arr {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; background: rgba(248,250,252,.9); border: 1px solid var(--s200);
  display: flex; align-items: center; justify-content: center; color: var(--s900); transition: background .2s;
}
.gallery-arr:hover { background: #fff; }
.gallery-arr.prev { left: 10px; }
.gallery-arr.next { right: 10px; }
.gallery-arr.hide { opacity: 0; pointer-events: none; }
.gallery-count { position: absolute; bottom: 10px; right: 10px; background: rgba(248,250,252,.88); font-size: 11px; letter-spacing: .08em; color: var(--s600); padding: 3px 9px; }
.gallery-thumbs { display: flex; gap: 6px; margin-top: 8px; }
.gallery-thumb { flex: 1; aspect-ratio: 1; overflow: hidden; cursor: pointer; opacity: .4; transition: opacity .2s; }
.gallery-thumb.active { opacity: 1; outline: 1.5px solid var(--s900); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.post-info { padding-top: 4px; }
.post-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.post-title { font-family: var(--serif); font-size: clamp(36px,4vw,52px); font-weight: 300; line-height: 1.05; margin-bottom: 4px; }
.post-subtitle { font-family: var(--serif); font-size: 20px; font-weight: 300; font-style: italic; color: var(--s600); margin-bottom: 18px; }
.post-divider { border: none; border-top: 1px solid var(--s200); margin: 20px 0; }
.post-content { font-size: 15px; font-weight: 300; line-height: 1.85; color: var(--s600); }
.post-content p + p { margin-top: 14px; }
.post-content h2, .post-content h3 { font-family: var(--serif); font-weight: 300; color: var(--s900); margin: 28px 0 12px; }
.post-content h2 { font-size: 28px; }
.post-content h3 { font-size: 22px; }
.post-content ul, .post-content ol { padding-left: 20px; margin: 14px 0; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 6px; }
.post-content a { color: var(--gold); }
.post-content blockquote { font-family: var(--serif); font-size: 22px; font-style: italic; font-weight: 300; color: var(--s900); border-left: 2px solid var(--gold); padding-left: 24px; margin: 28px 0; }
.post-content img { max-width: 100%; margin: 20px 0; }
.post-meta-list { margin-top: 24px; }
.post-meta-row { display: flex; padding: 10px 0; border-bottom: 1px solid var(--s200); font-size: 13px; font-weight: 300; }
.post-meta-key { width: 120px; flex-shrink: 0; color: var(--s400); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.post-tag { padding: 4px 12px; border: 1px solid var(--s200); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--s600); transition: all .2s; }
.post-tag:hover { border-color: var(--s900); color: var(--s900); }
.post-nav { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* Related posts */
.related-posts { border-top: 1px solid var(--s200); }
.related-title { font-family: var(--serif); font-size: clamp(26px,3vw,40px); font-weight: 300; margin-bottom: 28px; }
.related-title em { font-style: italic; }

/* =====================================================
   STATIC PAGE
===================================================== */
.page-wrap { max-width: 1160px; margin: 0 auto; padding: 48px 40px 80px; display: grid; grid-template-columns: 1fr minmax(0,680px); gap: 56px; align-items: start; }
.page-wrap.no-image { grid-template-columns: 1fr; max-width: 760px; }
.page-wrap h1 { font-family: var(--serif); font-size: clamp(36px,4vw,52px); font-weight: 300; margin-bottom: 32px; grid-column: 1/-1; }

/* =====================================================
   404
===================================================== */
.error-wrap { max-width: 1160px; margin: 0 auto; padding: 80px 40px; text-align: center; }
.error-num { font-family: var(--serif); font-size: clamp(80px,12vw,140px); font-weight: 300; color: var(--s200); line-height: 1; }

/* =====================================================
   COMMENTS
===================================================== */
.comments-area { max-width: 1160px; margin: 0 auto; padding: 48px 40px 80px; border-top: 1px solid var(--s200); }
.comments-title { font-family: var(--serif); font-size: clamp(24px,3vw,36px); font-weight: 300; margin-bottom: 32px; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--s200); list-style: none; }
.comment-body { display: flex; gap: 14px; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--s100); flex-shrink: 0; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-author-name { font-size: 13px; font-weight: 400; }
.comment-meta-line { font-size: 11px; color: var(--s400); margin-top: 2px; }
.comment-text { margin-top: 8px; font-size: 14px; font-weight: 300; line-height: 1.75; color: var(--s600); }
.comment-respond { margin-top: 48px; }
.comment-reply-title { font-family: var(--serif); font-size: 28px; font-weight: 300; margin-bottom: 24px; }
.comment-form label { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--s400); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--s200); background: #fff;
  font-size: 13px; font-weight: 300; color: var(--s900); outline: none; transition: border-color .2s; resize: vertical; font-family: var(--sans);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--s600); }
.comment-form textarea { min-height: 120px; }
.comment-form p { margin-bottom: 16px; }
.comment-form .submit { display: inline-block; padding: 8px 20px; background: var(--s900); color: #fff; font-size: 12px; font-weight: 300; letter-spacing: .1em; text-transform: uppercase; border: none; cursor: pointer; transition: background .2s; }
.comment-form .submit:hover { background: var(--gold); }

/* =====================================================
   FOOTER
===================================================== */
.site-footer { border-top: 1px solid var(--s200); padding: 48px 40px 32px; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: var(--serif); font-size: 18px; letter-spacing: .12em; text-transform: uppercase; font-weight: 300; display: block; margin-bottom: 10px; color: var(--s900); transition: color .2s; }
.footer-logo:hover { color: var(--gold); }
.footer-tagline { font-size: 13px; font-weight: 300; color: var(--s400); line-height: 1.7; }
.footer-col-title { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--s400); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; font-weight: 300; color: var(--s600); transition: color .2s; }
.footer-links a:hover { color: var(--s900); }
.footer-bottom { max-width: 1160px; margin: 0 auto; border-top: 1px solid var(--s200); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: var(--s400); }

/* =====================================================
   WORDPRESS UTILITIES
===================================================== */
.alignleft  { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .site-header { padding: 0 20px; }
  .header-search, .site-nav, .header-cta { display: none; }
  .hamburger { display: flex; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 56px 24px 48px; border-right: none; border-bottom: 1px solid var(--s200); }
  .hero-visual { height: 72vw; min-height: 320px; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { border-right: none; padding-right: 0; margin-right: 20px; }

  .section { padding: 60px 20px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .how-step { border-right: none; border-bottom: 1px solid var(--s200); }
  .how-step:last-child { border-bottom: none; }
  .styles-grid { grid-template-columns: repeat(2,1fr); }
  .testi-grid { grid-template-columns: repeat(2,1fr); }
  .cta-banner { padding: 60px 20px; }

  .page-header { padding: 32px 20px 24px; }
  .archive-layout { grid-template-columns: 1fr; padding: 24px 20px 60px; }
  .filters-sidebar { display: none; }
  .posts-grid { grid-template-columns: repeat(2,1fr); }

  .single-wrap { grid-template-columns: 1fr; gap: 32px; padding: 20px 20px 60px; }
  .single-gallery { position: static; }
  .related-posts .section { padding: 48px 20px; }

  .comments-area { padding: 32px 20px 60px; }
  .page-wrap { padding: 0 20px 60px; grid-template-columns: 1fr; }

  .site-footer { padding: 40px 20px 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .posts-grid { grid-template-columns: 1fr; }
  .styles-grid { grid-template-columns: repeat(2,1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
