/* ============================================================
   Front Porch Stitchery — shared stylesheet
   Warm/cream storefront + navy/gold prestige system
   ============================================================ */

:root {
  /* Brand palette */
  --cream:      #FAF5EC;
  --linen:      #F1E7D3;
  --cocoa:      #4A2E20;
  --cocoa-soft: #6B4A38;
  --sage:       #6E8B5B;
  --navy:       #0D1B3E;
  --navy-soft:  #1B2C55;
  --gold:       #C9A84C;
  --gold-deep:  #A9852F;
  --terracotta: #B85C3C;
  --paper:      #FFFDF8;
  --line:       #E3D4B8;

  /* Type scale (fluid) */
  --text-xs:   0.78rem;
  --text-sm:   0.9rem;
  --text-base: 1rem;
  --text-lg:   clamp(1.1rem, 1.4vw, 1.25rem);
  --text-xl:   clamp(1.4rem, 2.4vw, 1.9rem);
  --text-2xl:  clamp(2rem, 4vw, 3rem);
  --text-hero: clamp(2.6rem, 6vw, 4.6rem);

  /* Spacing */
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(74,46,32,0.08);
  --shadow-md: 0 12px 34px rgba(74,46,32,0.14);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--cocoa);
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 0.5em;
}

.serif-sub, .lead {
  font-family: "Lora", Georgia, serif;
}

p { margin: 0 0 1em; }

a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-6); }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--sp-6); }

section { padding: var(--sp-16) 0; }
.section-pad { padding: var(--sp-16) 0; }

.eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gold-deep);
  margin: 0 0 var(--sp-3);
}
.eyebrow.on-dark { color: var(--gold); }

.lead {
  font-size: var(--text-lg);
  color: var(--cocoa-soft);
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.8em 1.5em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-cocoa { background: var(--cocoa); color: var(--cream); }
.btn-cocoa:hover { background: #35211764; background: #3a2318; }
.btn-terra { background: var(--terracotta); color: #fff; }
.btn-terra:hover { background: #9c4a2f; }
.btn-outline { background: transparent; border-color: var(--cocoa); color: var(--cocoa); }
.btn-outline:hover { background: var(--cocoa); color: var(--cream); }
.btn-ghost-gold { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-ghost-gold:hover { background: var(--gold); color: var(--navy); }
.btn-sm { padding: 0.6em 1.1em; font-size: var(--text-xs); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,245,236,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--cocoa); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand svg { height: 52px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.15rem; color: var(--cocoa); }
.brand-tag { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }

.nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav-links { display: flex; align-items: center; gap: var(--sp-6); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--cocoa);
  padding: 0.4em 0;
  position: relative;
}
.nav-links a:hover { color: var(--terracotta); text-decoration: none; }
.nav-links a.active { color: var(--terracotta); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold);
}

/* Dropdown */
.has-drop { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: var(--sp-3);
  min-width: 230px;
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease;
  list-style: none; margin: 0;
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
.dropdown li { margin: 0; }
.dropdown a { display: block; padding: 0.5em 0.7em; border-radius: 6px; font-size: var(--text-sm); }
.dropdown a:hover { background: var(--linen); }

.header-cta { display: flex; align-items: center; gap: var(--sp-3); }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--cocoa);
}
.menu-toggle svg { height: 26px; width: 26px; }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--cream);
  z-index: 99;
  padding: var(--sp-6);
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 0.9em 0; font-size: 1.1rem; color: var(--cocoa); font-family: "Lora", serif; }
.mobile-nav .sub a { padding-left: var(--sp-4); font-size: 0.98rem; color: var(--cocoa-soft); font-family: "Inter", sans-serif; }
.mobile-nav .m-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--gold-deep); padding-top: var(--sp-4); }
.mobile-cta { margin-top: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 76vh;
  display: flex; align-items: center;
  color: var(--cream);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,15,8,0.72) 0%, rgba(30,15,8,0.42) 55%, rgba(30,15,8,0.15) 100%);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: var(--sp-16) 0; }
.hero h1 { color: #fff; font-size: var(--text-hero); margin-bottom: var(--sp-4); text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.hero .lead { color: #F4E8D5; font-size: var(--text-lg); }
.hero .btn-row { margin-top: var(--sp-8); display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* page hero (interior, shorter) */
.page-hero {
  position: relative; color: var(--cream); overflow: hidden;
  display: flex; align-items: center; min-height: 44vh;
}
.page-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(30,15,8,0.74), rgba(30,15,8,0.4)); }
.page-hero .hero-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.page-hero .hero-content { position: relative; z-index: 2; max-width: 720px; padding: var(--sp-16) 0; }
.page-hero h1 { color:#fff; font-size: var(--text-2xl); }
.page-hero .lead { color:#F4E8D5; }

/* Plain page header (no image) */
.plain-header { background: var(--linen); border-bottom: 1px solid var(--line); padding: var(--sp-16) 0 var(--sp-12); }
.plain-header h1 { font-size: var(--text-2xl); }

/* ---------- Layout helpers ---------- */
.grid { display: grid; gap: var(--sp-6); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: center; }
.split.reverse .split-media { order: 2; }
.center { text-align: center; }
.mx-auto { margin-left:auto; margin-right:auto; }
.maxw-70 { max-width: 70ch; }

.bg-linen { background: var(--linen); }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }

.rounded-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.rounded-media img { width: 100%; height: 100%; object-fit: cover; }

.section-head { max-width: 720px; margin-bottom: var(--sp-12); }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--linen); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: var(--text-lg); margin-bottom: 0.35em; }
.card-desc { font-size: var(--text-sm); color: var(--cocoa-soft); margin-bottom: var(--sp-4); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }

/* Ribbon (navy/gold prestige) */
.ribbon {
  position: absolute; top: 14px; left: -2px;
  background: var(--navy); color: var(--gold);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 0.4em 0.9em; border-radius: 0 6px 6px 0;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold);
}

/* Price slot */
.price-slot {
  font-family: "Lora", serif; font-size: var(--text-sm); color: var(--cocoa-soft);
  background: var(--linen); border-radius: 6px; padding: 0.25em 0.6em; font-style: italic;
}
.curated-tag {
  display: inline-block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 0.5em;
}

/* ---------- Collection tiles ---------- */
.tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; box-shadow: var(--shadow-sm); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.05); }
.tile::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(20,10,5,0.82), rgba(20,10,5,0.05) 65%); }
.tile-body { position: relative; z-index: 2; padding: var(--sp-6); color: #fff; }
.tile-body h3 { color: #fff; margin: 0 0 0.2em; font-size: var(--text-lg); }
.tile-body p { color: #F0E4D0; font-size: var(--text-sm); margin: 0; }
.tile:hover { text-decoration: none; }

/* ---------- Prestige / navy blocks ---------- */
.navy-block { background: var(--navy); color: #EFE7D5; }
.navy-block h2, .navy-block h3 { color: #fff; }
.navy-block .lead { color: #C9CEDD; }
.gold-rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 0 0 var(--sp-6); }
.center .gold-rule { margin-left: auto; margin-right: auto; }

.badge-prestige {
  display: inline-flex; align-items: center; gap: 0.5em;
  border: 1px solid var(--gold); color: var(--gold);
  border-radius: 999px; padding: 0.4em 1em; font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
}

/* ---------- Feature list ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
.feature { }
.feature .ic {
  width: 52px; height: 52px; border-radius: 12px; background: var(--linen);
  display: flex; align-items: center; justify-content: center; color: var(--terracotta);
  margin-bottom: var(--sp-4);
}
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: var(--text-lg); }
.feature p { font-size: var(--text-sm); color: var(--cocoa-soft); margin: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: var(--sp-6); }
.step { display: flex; gap: var(--sp-4); align-items: flex-start; }
.step .num {
  counter-increment: step; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.1rem;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: var(--text-lg); margin-bottom: 0.2em; }
.step p { font-size: var(--text-sm); color: var(--cocoa-soft); margin: 0; }

/* ---------- Newsletter band ---------- */
.newsletter {
  background: var(--navy);
  color: #fff;
  position: relative; overflow: hidden;
}
.newsletter .nl-inner { position: relative; z-index: 2; text-align: center; max-width: 640px; margin: 0 auto; }
.newsletter h2 { color: #fff; }
.newsletter p { color: #C9CEDD; }
.nl-form { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); flex-wrap: wrap; justify-content: center; }
.nl-form input[type=email] {
  flex: 1; min-width: 240px; padding: 0.85em 1.1em; border-radius: 999px; border: 1px solid var(--navy-soft);
  background: rgba(255,255,255,0.08); color: #fff; font-size: var(--text-sm);
}
.nl-form input::placeholder { color: #9AA3BB; }
.nl-note { font-size: var(--text-xs); color: #9AA3BB; margin-top: var(--sp-4); }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-8); box-shadow: var(--shadow-sm); }
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: 0.4em; }
.field .req { color: var(--terracotta); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.75em 0.9em; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--cream); color: var(--cocoa);
  font-family: inherit; font-size: var(--text-sm);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: var(--text-xs); color: var(--cocoa-soft); background: var(--linen); border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4); margin-top: var(--sp-4); }
.dev-note {
  border-left: 3px solid var(--sage); background: rgba(110,139,91,0.1);
  padding: var(--sp-3) var(--sp-4); border-radius: 0 8px 8px 0; font-size: var(--text-xs); color: var(--cocoa-soft);
  margin-top: var(--sp-4);
}

/* ---------- Callouts ---------- */
.callout { background: var(--linen); border-radius: var(--radius); padding: var(--sp-8); }
.callout-terra { border-left: 4px solid var(--terracotta); }
.callout-gold { border-left: 4px solid var(--gold); }
.pull-quote {
  font-family: "Playfair Display", serif; font-size: var(--text-xl); line-height: 1.3;
  color: var(--cocoa); border-left: 4px solid var(--gold); padding-left: var(--sp-6); margin: var(--sp-8) 0;
}

/* Disclosure box */
.disclosure {
  background: var(--linen); border: 1px dashed var(--gold-deep); border-radius: var(--radius);
  padding: var(--sp-6); font-size: var(--text-sm); color: var(--cocoa-soft);
}
.disclosure strong { color: var(--cocoa); }

/* Placeholder note badge */
.placeholder-flag {
  display: inline-block; background: var(--terracotta); color: #fff; font-size: var(--text-xs);
  padding: 0.3em 0.8em; border-radius: 999px; font-weight: 600; letter-spacing: .04em; margin-bottom: var(--sp-4);
}

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-6); text-align:center; }
.stat .n { font-family: "Playfair Display", serif; font-size: var(--text-2xl); color: var(--gold); line-height:1; }
.stat .l { font-size: var(--text-xs); text-transform: uppercase; letter-spacing:.1em; color: #C9CEDD; margin-top: .5em; }

/* Chips */
.chips { display:flex; flex-wrap:wrap; gap: var(--sp-3); }
.chip { background: var(--linen); border:1px solid var(--line); border-radius:999px; padding:.4em 1em; font-size: var(--text-sm); color: var(--cocoa); }
.chip.active, .chip:hover { background: var(--cocoa); color: var(--cream); text-decoration:none; }

/* Accordion */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q { width:100%; text-align:left; background:none; border:0; cursor:pointer; padding: var(--sp-4) 0; display:flex; justify-content:space-between; gap:var(--sp-4); align-items:center; font-family:"Lora",serif; font-size: var(--text-lg); color: var(--cocoa); }
.acc-q .plus { flex:none; width:24px; height:24px; color: var(--terracotta); transition: transform .2s ease; }
.acc-item.open .acc-q .plus { transform: rotate(45deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-a-inner { padding-bottom: var(--sp-4); color: var(--cocoa-soft); font-size: var(--text-sm); }
.acc-item.open .acc-a { max-height: 500px; }

/* Testimonial */
.quote-card { background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding: var(--sp-8); box-shadow: var(--shadow-sm); }
.quote-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: var(--sp-3); }
.quote-card blockquote { margin:0 0 var(--sp-4); font-family:"Lora",serif; font-size: var(--text-lg); line-height:1.5; }
.quote-card .who { font-size: var(--text-sm); font-weight:600; }
.quote-card .where { font-size: var(--text-xs); color: var(--cocoa-soft); }

/* Article body */
.article-body { max-width: 68ch; margin: 0 auto; }
.article-body h2 { font-size: var(--text-xl); margin-top: var(--sp-12); }
.article-body h3 { font-size: var(--text-lg); margin-top: var(--sp-8); }
.article-body p, .article-body li { font-size: 1.08rem; line-height: 1.75; }
.article-body figure { margin: var(--sp-8) 0; }
.article-body figcaption { font-size: var(--text-xs); color: var(--cocoa-soft); text-align:center; margin-top: .6em; }
.toc { background: var(--linen); border-radius: var(--radius); padding: var(--sp-6); }
.toc ul { margin: .5em 0 0; padding-left: 1.1em; }
.toc a { color: var(--cocoa); font-size: var(--text-sm); }

/* Breadcrumb */
.crumbs { font-size: var(--text-xs); color: var(--cocoa-soft); padding: var(--sp-4) 0; }
.crumbs a { color: var(--cocoa-soft); }
.crumbs a:hover { color: var(--terracotta); }

/* Sitemap columns */
.sitemap-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-8); }
.sitemap-grid h3 { font-size: var(--text-lg); border-bottom: 2px solid var(--gold); padding-bottom:.4em; display:inline-block; }
.sitemap-grid ul { list-style:none; margin:0; padding:0; }
.sitemap-grid li { padding: .35em 0; border-bottom: 1px solid var(--line); }
.sitemap-grid a { color: var(--cocoa); font-size: var(--text-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9CEDD; padding: var(--sp-16) 0 var(--sp-8); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-8); }
.footer-brand svg { height: 74px; width: auto; margin-bottom: var(--sp-4); }
.footer-brand p { font-size: var(--text-sm); color: #AAB2C8; max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: "Inter", sans-serif; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--sp-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6em; }
.footer-col a { color: #C9CEDD; font-size: var(--text-sm); }
.footer-col a:hover { color: var(--gold); text-decoration: none; }
.footer-disclosure { border-top: 1px solid var(--navy-soft); margin-top: var(--sp-12); padding-top: var(--sp-8); }
.footer-disclosure p { font-size: var(--text-xs); color: #8A93AD; max-width: 90ch; }
.footer-disclosure .aff-code { color: var(--gold); font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-8); font-size: var(--text-xs); color: #8A93AD; }
.footer-bottom a { color: #8A93AD; }
.social { display: flex; gap: var(--sp-3); }
.social a { width: 36px; height: 36px; border: 1px solid var(--navy-soft); border-radius: 50%; display: flex; align-items:center; justify-content:center; color:#C9CEDD; }
.social a:hover { border-color: var(--gold); color: var(--gold); text-decoration:none; }
.social svg { width: 18px; height: 18px; }

/* skip link */
.skip-link { position:absolute; left:-999px; top:0; background: var(--gold); color: var(--navy); padding: .6em 1em; z-index:200; border-radius:0 0 8px 0; }
.skip-link:focus { left:0; }

/* fade-in (only applied when JS marks the document; content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav-links, .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .split { grid-template-columns: 1fr; gap: var(--sp-8); }
  .split.reverse .split-media { order: 0; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .sitemap-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}

@media (max-width: 620px) {
  section { padding: var(--sp-12) 0; }
  .g-2, .g-3, .g-4, .feature-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--sp-8); }
  .sitemap-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 82vh; }
  .hero-content, .page-hero .hero-content { padding: var(--sp-12) 0; }
  .brand-tag { display: none; }
  .nl-form input[type=email] { min-width: 100%; }
  .nl-form .btn { width: 100%; justify-content: center; }
}
