/* =========================================================
   Office Chair Guide — Global Stylesheet
   Mobile-first, responsive, no frameworks
   ========================================================= */

:root {
  --navy: #1f3a5f;
  --navy-dark: #16293f;
  --navy-mid: #2f5685;
  --gold: #e0a458;
  --gold-dark: #c98a3c;
  --ink: #1c2733;
  --body: #41505f;
  --muted: #6b7a89;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-tint: #f5f7fa;
  --bg-card: #ffffff;
  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 8px rgba(28, 39, 51, .06);
  --shadow-md: 0 10px 30px rgba(28, 39, 51, .10);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;

  --maxw: 1140px;
  --gap: 1.5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-mid); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--navy); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.2rem; }
.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; padding: .6rem 1rem; background: var(--navy); color: #fff;
  border-radius: 8px; z-index: 1000;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 600; color: var(--gold-dark); margin: 0 0 .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: .95rem;
  padding: .8rem 1.4rem; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: all .18s ease; text-align: center;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 600; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--navy); color: #fff; border-radius: 10px;
  font-size: .95rem; font-weight: 700; letter-spacing: .02em;
}
.brand-text { color: var(--ink); font-size: 1.18rem; }
.brand-accent { color: var(--gold-dark); }

.primary-nav ul { display: flex; align-items: center; gap: .25rem; }
.primary-nav a {
  display: block; padding: .55rem .8rem; border-radius: 8px;
  color: var(--body); font-weight: 500; font-size: .94rem;
}
.primary-nav a:hover { color: var(--navy); background: var(--bg-tint); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; padding: .5rem; cursor: pointer;
}
.nav-toggle-bar { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; padding: 3.4rem 0 3.6rem;
}
.hero-inner { display: grid; gap: 2.2rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(1.85rem, 5vw, 2.9rem); margin-bottom: .7rem; }
.hero-lead { color: #d7e0ea; font-size: 1.08rem; max-width: 36rem; }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0 1.8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem; color: #c4d0dd; font-size: .9rem; }
.hero-trust strong { display: block; color: #fff; font-size: 1.5rem; font-family: var(--font-head); }

.hero-visual { display: none; }
.hero-card-stack { position: relative; min-height: 320px; }
.hero-illustration {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-md); width: 240px; margin: 0 auto;
}
.hero-illustration svg { width: 100%; height: auto; }
.hero-chip {
  position: absolute; background: #fff; color: var(--navy);
  font-size: .82rem; font-weight: 600; padding: .4rem .8rem;
  border-radius: 999px; box-shadow: var(--shadow-sm);
}
.chip-1 { top: 6%; left: 0; }
.chip-2 { top: 22%; right: 2%; }
.chip-3 { bottom: 20%; left: 4%; }
.chip-4 { bottom: 4%; right: 6%; }

/* ---------- Sections ---------- */
.section { padding: 3.2rem 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 40rem; margin: 0 auto 2rem; text-align: center; }
.section-head h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.section-head p { color: var(--muted); margin: 0; }
.section-cta { text-align: center; margin-top: 2.2rem; }

/* ---------- Card grids ---------- */
.card-grid { display: grid; gap: var(--gap); }
.card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }

.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media {
  display: block; height: 150px; position: relative;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
}
.card-media.media-alt { background: linear-gradient(135deg, #3a6ea5, #244a72); }
.card-media.media-warm { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.card-tag {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(255,255,255,.92); color: var(--navy-dark);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: .3rem .65rem; border-radius: 999px;
}
.card-tag.tag-inline { position: static; display: inline-block; margin-bottom: .7rem; background: var(--bg-tint); }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.18rem; margin-bottom: .55rem; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--navy-mid); }
.card-body p { color: var(--body); font-size: .95rem; margin-bottom: 1rem; }
.card-meta { margin-top: auto; color: var(--muted); font-size: .82rem; font-weight: 500; }

/* ---------- Category cards ---------- */
.category-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: block;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.category-icon { font-size: 1.8rem; display: block; margin-bottom: .6rem; }
.category-card h3 { font-size: 1.18rem; margin-bottom: .45rem; }
.category-card p { color: var(--body); font-size: .92rem; margin-bottom: .9rem; }
.category-link { color: var(--gold-dark); font-weight: 600; font-size: .9rem; }

/* ---------- About preview ---------- */
.about-preview { display: grid; gap: 2rem; align-items: center; }
.about-text h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.about-points { display: grid; gap: 1rem; }
.about-points li {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: .95rem;
}
.about-points strong { color: var(--ink); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--navy); color: #fff; }
.newsletter-inner { display: grid; gap: 1.6rem; align-items: center; }
.newsletter-text h2 { color: #fff; }
.newsletter-text p { color: #cdd8e4; margin: 0; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: .7rem; }
.newsletter-form input[type="email"] {
  flex: 1 1 220px; min-width: 0; padding: .8rem 1rem; border-radius: 999px;
  border: 1px solid transparent; font-size: .95rem; font-family: inherit;
}
.newsletter-form input[type="email"]:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.newsletter-note { flex-basis: 100%; color: #aebfd0; font-size: .82rem; margin: .2rem 0 0; }
.newsletter-note.error { color: #ffd1cc; }
.newsletter-note.success { color: #cdeccd; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c4d0dd; padding-top: 2.8rem; }
.footer-grid { display: grid; gap: 1.8rem; grid-template-columns: 1fr; }
.brand-footer .brand-text { color: #fff; }
.footer-brand p { color: #9fb1c4; font-size: .92rem; margin-top: .8rem; max-width: 24rem; }
.footer-col h3 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { color: #c4d0dd; font-size: .92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.4rem; padding: 1.2rem 0; }
.footer-bottom p { margin: 0; font-size: .85rem; color: #8fa2b6; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; padding: 2.6rem 0 2.8rem;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 4.4vw, 2.6rem); margin-bottom: .6rem; }
.page-hero p { color: #d7e0ea; max-width: 44rem; margin: 0; font-size: 1.05rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb { padding: .9rem 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted); }
.breadcrumb li { display: flex; align-items: center; gap: .4rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--line); }
.breadcrumb a { color: #cdd8e4; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 500; }

/* ---------- Category intro block ---------- */
.cat-intro { max-width: 48rem; margin: 0 auto 2.4rem; }
.cat-intro h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); text-align: center; }
.cat-intro p { color: var(--body); }

/* ---------- Related categories strip ---------- */
.related-cats { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.related-cat {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm); transition: border-color .18s ease, transform .18s ease;
}
.related-cat:hover { border-color: var(--gold); transform: translateY(-3px); }
.related-cat strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.05rem; margin-bottom: .2rem; }
.related-cat span { color: var(--muted); font-size: .88rem; }
@media (min-width: 760px) { .related-cats { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Long-form prose (about / legal pages) ---------- */
.prose { max-width: 50rem; margin: 0 auto; }
.prose h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-top: 2.2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose p, .prose li { color: var(--body); }
.prose ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1.2rem; }
.prose ul li { margin-bottom: .5rem; }
.prose a { color: var(--navy-mid); text-decoration: underline; }
.prose a:hover { color: var(--navy); }
.prose .updated { color: var(--muted); font-size: .9rem; font-style: italic; margin-bottom: 1.6rem; }
.prose strong { color: var(--ink); }

/* ---------- Values / info cards ---------- */
.value-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.value-card .value-icon { font-size: 1.6rem; display: block; margin-bottom: .5rem; }
.value-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.value-card p { font-size: .93rem; margin: 0; }
@media (min-width: 760px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; max-width: 60rem; margin: 0 auto; }
@media (min-width: 820px) { .contact-layout { grid-template-columns: 1.2fr .8fr; } }
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .85rem; margin: .2rem 0 0; color: var(--muted); }
.form-note.error { color: #c0392b; }
.form-note.success { color: #1e7e34; }
.contact-aside { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact-aside h2 { font-size: 1.2rem; margin-top: 0; }
.contact-aside p { font-size: .93rem; }
.contact-aside a { color: var(--navy-mid); }

/* ---------- Article hero ---------- */
.article-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; padding: 2.4rem 0 2.6rem;
}
.article-hero .eyebrow { color: var(--gold); }
.article-hero h1 { color: #fff; font-size: clamp(1.7rem, 4.6vw, 2.6rem); margin-bottom: .8rem; max-width: 46rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: #c4d0dd; font-size: .88rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- Article body ---------- */
.article-body { max-width: 50rem; margin: 0 auto; }
.article-body > p:first-of-type { font-size: 1.1rem; color: var(--ink); }
.article-body h2 { font-size: clamp(1.4rem, 3.2vw, 1.85rem); margin-top: 2.4rem; padding-top: .4rem; }
.article-body h3 { font-size: 1.18rem; margin-top: 1.8rem; }
.article-body p, .article-body li { color: var(--body); }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin: 0 0 1.3rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .55rem; }
.article-body a { color: var(--navy-mid); text-decoration: underline; }
.article-body a:hover { color: var(--navy); }
.article-body strong { color: var(--ink); }
.article-body blockquote {
  margin: 1.5rem 0; padding: .9rem 1.3rem; border-left: 4px solid var(--gold);
  background: var(--bg-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink); font-style: italic;
}

/* Key-takeaway / callout box */
.callout {
  margin: 1.6rem 0; padding: 1.2rem 1.4rem; background: #f3f7fc;
  border: 1px solid #d8e4f0; border-radius: var(--radius); 
}
.callout h3 { margin-top: 0; font-size: 1.05rem; color: var(--navy); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 30rem; }
.cmp-table th, .cmp-table td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
.cmp-table th { background: var(--navy); color: #fff; font-family: var(--font-body); font-weight: 600; }
.cmp-table tr:nth-child(even) td { background: var(--bg-tint); }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; margin: 2.4rem auto 0; }
.faq h2 { font-size: clamp(1.4rem, 3.2vw, 1.85rem); }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; background: #fff; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--ink);
  list-style: none; position: relative; padding-right: 2.6rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--gold-dark); transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 1.2rem 1.1rem; }
.faq-item .faq-answer p { margin: 0; color: var(--body); }

/* ---------- Related articles ---------- */
.related-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Inline article CTA ---------- */
.article-cta {
  max-width: 50rem; margin: 2.6rem auto 0; background: var(--navy);
  color: #fff; border-radius: var(--radius); padding: 1.8rem; text-align: center;
}
.article-cta h2 { color: #fff; margin-top: 0; }
.article-cta p { color: #cdd8e4; margin-bottom: 1.2rem; }

/* ---------- Spam honeypot (hidden from humans) ---------- */
.hidden-field { position: absolute; left: -5000px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Illustrated card media ---------- */
.card-media { overflow: hidden; }
/* Cards that contain a diagram: match the container to the artwork's 20:11 ratio
   so labels are never cropped, and override the fixed 150px height. */
.card-media.has-img { height: auto; aspect-ratio: 20 / 11; background: none; }
.card-media.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-figure img { width: 100%; height: auto; display: block; }

/* ---------- Article inline figures ---------- */
.article-figure { margin: 1.8rem 0; }
.article-figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.article-figure figcaption { margin-top: .6rem; font-size: .87rem; color: var(--muted); text-align: center; }

/* ---------- Expertise / methodology block ---------- */
.expertise { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.expertise h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.expertise p { font-size: .94rem; margin-bottom: 0; }
.method-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 1.6rem; }
@media (min-width: 760px) { .method-grid { grid-template-columns: repeat(3, 1fr); } }
.method-step { position: relative; padding-left: 3rem; }
.method-num {
  position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: .95rem; font-family: var(--font-head);
}
.method-step h3 { font-size: 1.05rem; margin: .2rem 0 .35rem; }
.method-step p { font-size: .93rem; margin: 0; color: var(--body); }

/* ---------- Author box ---------- */
.author-box {
  display: grid; gap: 1.2rem; align-items: start;
  background: var(--bg-tint); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.5rem;
}
@media (min-width: 620px) { .author-box { grid-template-columns: auto 1fr; } }
.author-avatar {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 700;
}
.author-box h3 { font-size: 1.1rem; margin: 0 0 .15rem; }
.author-role { color: var(--gold-dark); font-weight: 600; font-size: .88rem; margin: 0 0 .6rem; }
.author-box p { font-size: .94rem; margin-bottom: .5rem; }
.author-box p:last-child { margin-bottom: 0; }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}

/* =========================================================
   Responsive — tablet & up
   ========================================================= */
@media (min-width: 640px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 920px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .hero-visual { display: block; }
  .about-preview { grid-template-columns: 1.1fr .9fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* =========================================================
   Responsive — mobile nav
   ========================================================= */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 66px 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
    box-shadow: var(--shadow-md);
  }
  .primary-nav.open { max-height: 70vh; overflow-y: auto; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.2rem 1rem; }
  .primary-nav a { padding: .85rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav li:last-child a { border-bottom: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
