/* FlyQ — midnight & lime theme (Fraunces serif + Inter)
   Dark base, cream feature bands, lime accents, pill buttons, rounded cards. */
:root {
  --midnight: #1a1a1a;
  --midnight-2: #0d0d0d;
  --midnight-3: #2a2a2a;
  --cream: #f7f5f0;
  --cream-2: #ece9e0;
  --lime: #a8ce3d;
  --lime-2: #94b82f;
  --grey: #9a9a9a;
  --ink: #1c1c1c;
  --line: rgba(255, 255, 255, .12);
  --line-dark: rgba(26, 26, 26, .14);
  --radius: 16px;
  --radius-lg: 26px;
  --maxw: 1200px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Michroma', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
body { font-family: var(--font-body); color: #e9e7e1; background: var(--midnight); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Michroma has a single 400 weight and no italics — accents are lime, not slanted */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.28; letter-spacing: 0; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.9rem); }
h1 em, h2 em { font-style: normal; color: var(--lime); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.center { text-align: center; }
.muted { color: var(--grey); }

/* Eyebrow: dash + spaced caps */
.eyebrow { display: flex; align-items: center; gap: .7rem; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--lime); margin-bottom: 1.1rem; }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--lime); }

/* Section header: heading left, lead right */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: end; margin-bottom: 2.6rem; }
.sec-head .lead { color: var(--grey); font-size: .98rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 13, 13, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .95rem 1.5rem; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none !important; }
.brand-mark { font-family: 'Archivo', var(--font-body); font-stretch: 125%; font-weight: 800; font-size: 1.4rem; letter-spacing: .08em; color: var(--lime); }
.brand-sub { font-family: var(--font-body); font-size: .52rem; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: #fff; }
.site-nav { display: flex; gap: 1.6rem; align-items: center; }
.site-nav a { font-family: var(--font-display); color: rgba(255,255,255,.82); font-size: .76rem; font-weight: 400; white-space: nowrap; padding: .25rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav a.active { color: #fff; border-bottom-color: var(--lime); }
.site-nav .nav-cta { display: inline-flex; align-items: center; line-height: 1; background: var(--lime); color: var(--midnight-2); font-weight: 400; padding: .45rem 1.1rem .55rem; border-radius: 999px; border-bottom: 0; transition: background .2s; } /* uneven padding optically centres Michroma at this size */
.site-nav .nav-cta:hover { background: #bcdd58; color: var(--midnight-2); }
.site-nav .nav-cta.active { border-bottom: 0; outline: 2px solid rgba(168, 206, 61, .4); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Slideshow plumbing ---------- */
.slideshow { position: relative; overflow: hidden; background: var(--midnight-2); }
.slide-layer { position: absolute; inset: -4%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.8s ease; will-change: opacity, transform; }
.slide-layer.visible { opacity: 1; animation: kenburns 10s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.slideshow > .slide-content { position: relative; z-index: 2; }
.slideshow::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13,13,13,.62) 0%, rgba(13,13,13,.55) 55%, rgba(13,13,13,.88) 100%); }

/* ---------- Hero ---------- */
.hero { min-height: 560px; display: flex; align-items: center; }
.hero .slide-content { padding: 5.5rem 1.5rem 4.5rem; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.2rem); max-width: 17ch; }
.hero-sub { max-width: 46ch; margin: 1.4rem 0 2.1rem; color: #cfcdc6; font-size: 1.02rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* Stats strip */
.stat-strip { background: var(--midnight-2); border-top: 1px solid var(--line); }
.stat-strip .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat-strip a, .stat-strip div.stat-cell { display: block; padding: 1.6rem 1.4rem; border-left: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .2s; }
.stat-strip a:hover { background: rgba(168, 206, 61, .07); }
.stat-strip .container > :first-child { border-left: 0; }
.stat-strip strong { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; color: var(--lime); line-height: 1.2; }
.stat-strip span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.7rem; border-radius: 999px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font-size: .92rem; font-family: var(--font-body); transition: all .22s; }
.btn:hover { text-decoration: none; }
.btn::after { content: '→'; font-weight: 400; transition: transform .22s; }
.btn:hover::after { transform: translateX(3px); }
.btn-primary { background: var(--lime); color: var(--midnight-2); }
.btn-primary:hover { background: #bcdd58; color: var(--midnight-2); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-block { justify-content: center; width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-cream { background: var(--cream); color: var(--ink); }
.section-cream h1, .section-cream h2, .section-cream h3 { color: var(--ink); }
.section-cream .eyebrow { color: var(--ink); }
.section-cream .eyebrow::before { background: var(--ink); }
.section-cream .lead, .section-cream .muted { color: #6d6a63; }
.section-cream a { color: var(--lime-2); }

/* Category headings on the aircraft list (Helicopters / Fixed wing / Other) */
.list-section-title { font-size: 1.15rem; color: #fff; margin-bottom: 1.6rem; }
.section-cream .list-section-title { color: var(--ink); }

/* ---------- Aircraft cards (dark) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.6rem; }
.card { background: var(--midnight-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; color: inherit; transition: transform .3s ease, border-color .3s ease; display: block; }
.card:hover { transform: translateY(-5px); border-color: rgba(168, 206, 61, .45); text-decoration: none; }
.card-img { position: relative; aspect-ratio: 3/2; background: var(--midnight-3); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.card:hover .card-img img { transform: scale(1.05); }
.card-img-placeholder { display: grid; place-items: center; height: 100%; font-family: var(--font-display); color: var(--grey); }
.badge { position: absolute; top: 1rem; left: 1rem; background: var(--lime); color: var(--midnight-2); font-size: .62rem; font-weight: 700; line-height: 1; padding: .36rem .75rem .28rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; } /* extra top padding centres uppercase text (caps sit high in the line box) */
.badge-sold { background: #fff; color: var(--midnight-2); }
.badge-reg { left: auto; right: 1rem; background: rgba(20, 43, 29, .88); color: var(--lime); border: 1px solid rgba(168, 206, 61, .5); letter-spacing: .1em; backdrop-filter: blur(4px); }
.badge-inline { position: static; vertical-align: middle; margin-left: .6rem; }
.card-body { padding: 1.3rem 1.5rem 1.4rem; }
.card-body h3 { font-size: 1rem; line-height: 1.45; color: #fff; margin-bottom: .2rem; }
.card-meta { font-size: .78rem; color: var(--grey); margin-bottom: .9rem; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: .9rem; }
.card-price { font-family: var(--font-display); font-size: .92rem; color: var(--lime); }
.cur { font-family: var(--font-body); font-weight: 600; } /* Michroma's € reads as a 0 */
.card-ref { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }

/* ---------- Service / CMS-page cards (cream band) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.svc-card { background: #fff; border-radius: var(--radius-lg); padding: 1.9rem 1.9rem 1.7rem; color: var(--ink); display: flex; flex-direction: column; gap: .65rem; transition: transform .3s ease, box-shadow .3s ease; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26,26,26,.10); text-decoration: none; }
.svc-num { font-family: var(--font-body); font-style: italic; font-size: .85rem; color: var(--lime-2); }
.svc-card h3 { font-size: 1.05rem; line-height: 1.4; }
.svc-card p { color: #6d6a63; font-size: .92rem; flex: 1; }
.svc-link { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink) !important; }
.svc-link::after { content: ' →'; }

/* ---------- Filter chips ---------- */
.filter-bar { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: 1.5rem; }
.chip { border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.85); padding: .42rem 1.15rem; border-radius: 999px; font-size: .84rem; font-weight: 500; transition: all .2s; }
.chip:hover:not(.chip-active) { border-color: var(--lime); color: var(--lime); text-decoration: none; }
.chip-active { background: var(--lime); border-color: var(--lime); color: var(--midnight-2); font-weight: 600; }
.chip-active:hover { color: var(--midnight-2); text-decoration: none; } /* keep dark text on the lime chip */

/* ---------- Page heads ---------- */
.page-head { background: var(--midnight-2); color: #e9e7e1; }
.page-head .slide-content { padding: 4rem 1.5rem; } /* equal padding keeps the title vertically centred */
.page-head h1 { color: #fff; }
.page-head p { color: #cfcdc6; max-width: 60ch; }
.page-head .count { color: var(--lime); font-style: italic; }
.breadcrumb { font-size: .8rem; margin-bottom: 1rem; line-height: 2.6; } /* room for pills when they wrap on phones */
.breadcrumb a { color: #cfcdc6; }
.breadcrumb a:hover { color: var(--lime); }

/* ---------- Aircraft detail ---------- */
.detail-head { position: relative; min-height: 520px; display: flex; align-items: flex-end; background-size: cover; background-position: center; background-color: var(--midnight-2); }
.detail-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,13,.45), rgba(13,13,13,.2) 35%, rgba(13,13,13,.9) 100%); }
.detail-head .inner { position: relative; z-index: 2; width: 100%; padding: 7rem 1.5rem 2.8rem; }
.detail-head h1 { color: #fff; font-size: clamp(1.7rem, 3.8vw, 2.7rem); margin: .6rem 0 .3rem; }
.detail-head .sub { color: #cfcdc6; }
.detail-price-row { display: flex; align-items: baseline; gap: 1.4rem; border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1.2rem; flex-wrap: wrap; }
.detail-price { font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.6rem); color: var(--lime); }
.detail-ref { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 3rem; align-items: start; }
.detail-grid h2 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
.detail-grid h2:first-child { margin-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin: 1rem 0 1.4rem; }
.gallery a { border-radius: var(--radius); overflow: hidden; display: block; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .6s ease; }
.gallery a:hover img { transform: scale(1.06); }
.equip-list { list-style: none; padding: 1.5rem 1.7rem; margin: 1rem 0 1.4rem; background: #fff; border-radius: var(--radius-lg); display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .35rem 1.6rem; color: var(--ink); }
.equip-list li { display: flex; align-items: baseline; gap: .65rem; padding: .3rem 0; font-size: .95rem; }
.equip-list li::before { content: '✓'; color: var(--lime-2); font-weight: 700; flex-shrink: 0; }
.detail-side { position: sticky; top: 90px; display: grid; gap: 1.3rem; }
.spec-card { background: #fff; border-radius: var(--radius-lg); padding: 1.7rem; color: var(--ink); }
.spec-card h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.spec-list { font-size: .95rem; }
.spec-list .spec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1.2rem; padding: .7rem 0; border-bottom: 1px solid var(--line-dark); }
.spec-list .spec-row:last-child { border-bottom: 0; }
.spec-list .k { color: #83807a; flex-shrink: 0; }
.spec-list .v { font-weight: 600; text-align: right; color: var(--ink); }
/* Labelled contact rows (footer + CTA cards) */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; align-items: baseline; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { flex: 0 0 5.2rem; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.contact-list a { color: var(--lime); }
.btn-sm { padding: .55rem 1.2rem; font-size: .78rem; }

.cta-card { background: var(--midnight-2); color: #cfcdc6; }
.cta-card h2 { color: #fff; }
.cta-card a { color: var(--lime); }
.cta-card .btn-primary { color: var(--midnight-2); } /* keep button text dark on lime */
.cta-card .btn-primary:hover { color: var(--midnight-2); }

/* ---------- Prose (CMS content) ---------- */
.prose { max-width: 860px; background: #fff; border-radius: var(--radius-lg); padding: 2.4rem 2.6rem; color: var(--ink); }
.prose h2, .prose h3 { margin: 1.7rem 0 .6rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h2 { font-size: 1.2rem; }
.prose p, .prose ul { margin-bottom: 1rem; color: #3d3b36; }
/* Green arrow bullets (a nod to the original FlyQ site) */
.prose ul { list-style: none; padding-left: .2rem; }
.prose ul li { position: relative; padding-left: 1.5rem; margin-bottom: .35rem; }
.prose ul li::before { content: '→'; position: absolute; left: 0; color: var(--lime-2); font-weight: 700; }
.prose ol { padding-left: 1.3rem; }
.prose img { border-radius: var(--radius); }
/* Image alignment inside CMS pages: <img class="right"> or <img class="left"> */
.prose img.right { float: right; margin: .3rem 0 1rem 1.6rem; max-width: min(45%, 380px); }
.prose img.left { float: left; margin: .3rem 1.6rem 1rem 0; max-width: min(45%, 380px); }
.prose::after { content: ''; display: block; clear: both; }
@media (max-width: 620px) { .prose img.right, .prose img.left { float: none; max-width: 100%; margin: 1rem 0; } }
.prose a { color: var(--lime-2); }

/* ---------- Block-based CMS pages (6-col grid; blocks span by width) ---------- */
.page-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem; } /* cards stretch to match the tallest in their row */
.page-grid .prose.page-block { max-width: none; padding: 1.6rem 1.8rem; }
.page-block.stripe, .prose.stripe { border-left: 4px solid var(--lime); }
.page-block.stripe-r, .prose.stripe-r { border-right: 4px solid var(--lime); }
.pb-full { grid-column: span 6; }
.pb-twothirds { grid-column: span 4; }
.pb-half { grid-column: span 3; }
.pb-third { grid-column: span 2; }

/* Page bands: consecutive blocks with the same background merge into one band,
   so a page can split into dark and light sections like the home page. */
.page-band { padding: 3.4rem 0; }
.page-band + .page-band { border-top: 1px solid transparent; } /* avoids margin-collapse seams */
.page-band-dark { background: var(--midnight); }
.page-band-dark .prose.page-block { background: var(--midnight-2); border: 1px solid var(--line); color: #cfcdc6; }
.page-band-dark .prose h1, .page-band-dark .prose h2, .page-band-dark .prose h3,
.page-band-dark .prose h4, .page-band-dark .prose strong { color: #fff; }
.page-band-dark .prose p, .page-band-dark .prose ul { color: #cfcdc6; }
.page-band-dark .prose a { color: var(--lime); }
.page-band-dark .prose .muted { color: var(--grey); }
@media (max-width: 980px) { .pb-third { grid-column: span 3; } .pb-twothirds { grid-column: span 6; } }
@media (max-width: 660px) { .pb-full, .pb-half, .pb-third, .pb-twothirds { grid-column: span 6; } }

/* ---------- Multi-column CMS pages (legacy, until pages are re-saved) ---------- */
.page-cols { display: grid; gap: 1.4rem; align-items: start; }
.page-cols-2 { grid-template-columns: repeat(2, 1fr); }
.page-cols-3 { grid-template-columns: repeat(3, 1fr); }
.page-rows { grid-template-columns: 1fr; }
.page-rows .prose.page-block { max-width: none; }
.page-cols .prose.page-block { max-width: none; padding: 1.6rem 1.8rem; }
.page-cols .page-block.wide { grid-column: 1 / -1; }
@media (max-width: 980px) { .page-cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .page-cols-2, .page-cols-3 { grid-template-columns: 1fr; } }

/* ---------- Wanted ---------- */
.wanted-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.3rem; margin-top: .5rem; }
.wanted-card { background: #fff; border-radius: var(--radius); padding: 1.5rem 1.6rem; color: var(--ink); }
.wanted-card p { color: #3d3b36; font-size: .95rem; }
.wanted-card .when { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #9a978f; margin-top: .6rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 600px; background: #fff; border-radius: var(--radius-lg); padding: 2rem; color: var(--ink); }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #6d6a63; }
.form input, .form textarea { font: inherit; font-size: 1rem; padding: .75rem .95rem; border: 1px solid #d8d5cc; border-radius: 10px; width: 100%; background: var(--cream); transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--lime-2); box-shadow: 0 0 0 3px rgba(148, 184, 47, .18); background: #fff; }
.hp { position: absolute !important; left: -9999px; }
.alert { border-radius: var(--radius); padding: 1rem 1.3rem; margin: 1.2rem 0; }
.alert-success { background: #f2f7e6; border: 1px solid var(--lime-2); color: #4a5c17; }
.alert-error { background: #fdf1f1; border: 1px solid #c0392b; color: #8c2318; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(13, 13, 13, .95); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(90vw, 1400px); max-height: 86vh; border-radius: var(--radius); object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-btn { position: absolute; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: #fff; width: 46px; height: 46px; border-radius: 999px; font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: all .2s; }
.lb-btn:hover { background: var(--lime); color: var(--midnight-2); border-color: var(--lime); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: var(--grey); font-size: .8rem; letter-spacing: .14em; }

/* ---------- Admin preview bar (hidden aircraft) ---------- */
.preview-bar { background: var(--lime); color: var(--midnight-2); text-align: center; padding: .55rem 1rem; font-size: .85rem; }
.preview-bar a { color: var(--midnight-2); font-weight: 700; text-decoration: underline; margin-left: .5rem; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300; background: var(--midnight-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.4rem; display: flex; gap: 1.4rem; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: 0 20px 50px rgba(0,0,0,.45); max-width: 860px; margin: 0 auto; }
.cookie-banner p { color: #cfcdc6; font-size: .9rem; margin: 0; }
.cookie-banner a { color: var(--lime); }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: .55rem 1.2rem; font-size: .78rem; }
.cookie-actions .btn::after { content: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide-layer, .slide-layer.visible { transition: none; animation: none; }
  .card-img img, .gallery img { transition: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight-2); color: var(--grey); padding: 3.6rem 0 1.8rem; border-top: 1px solid var(--line); }
.site-footer a { color: #cfcdc6; }
.site-footer a:hover { color: var(--lime); }
.site-footer h4 { color: #fff; margin-bottom: .8rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-family: var(--font-body); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2.2rem; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 2.4rem; padding-top: 1.4rem; font-size: .82rem; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1160px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: .2rem; padding: .8rem 0 1.2rem; }
  .site-nav a { font-size: .88rem; padding: .55rem 0; border-bottom: 0; }
  .site-nav a.active { color: #fff; border-bottom: 2px solid var(--lime); } /* match desktop */
  .site-nav .nav-cta { margin-top: .6rem; border-bottom: 0; }
  body.nav-open .site-nav { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .sec-head { grid-template-columns: 1fr; gap: 1rem; align-items: start; }
}
@media (max-width: 880px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .hero { min-height: 470px; }
  .prose { padding: 1.6rem 1.4rem; }
  /* Stats: clean 2-up grid with tidy dividers when the strip wraps */
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
  .stat-strip a, .stat-strip div.stat-cell { border-left: 0; border-top: 1px solid var(--line); padding: 1.1rem 1rem; }
  .stat-strip .container > :nth-child(-n+2) { border-top: 0; }
  .stat-strip .container > :nth-child(even) { border-left: 1px solid var(--line); }
  .stat-strip a:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; }
  /* back-link on its own line; status pills sit together beneath it */
  .detail-head .breadcrumb > a:first-child { display: block; margin-bottom: .3rem; }
}
