/* =========================================================================
   Sodmasters Turf Farm — site styles
   Palette comes from the logo: olive oval, gold ring, grass-green blades.
   ========================================================================= */

:root {
    --olive-950: #161d0c;
    --olive-900: #222b14;
    --olive-800: #2f3a1c;
    --olive-700: #435027;
    --olive: #5d6b35;
    --olive-300: #b8c294;
    --grass: #6fae4a;
    --grass-600: #4e8c30;
    --grass-100: #e6f1dc;
    --gold: #f5b82e;
    --gold-600: #dc9d0f;
    --gold-100: #fdf1d3;
    --paper: #fbfaf5;
    --cream: #f3f0e4;
    --ink: #1c2313;
    --ink-2: #4f5845;
    --ink-3: #7b836f;
    --line: rgba(28, 35, 19, 0.12);
    --white: #fff;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(22, 29, 12, 0.06), 0 2px 8px rgba(22, 29, 12, 0.05);
    --shadow: 0 2px 4px rgba(22, 29, 12, 0.05), 0 12px 32px -8px rgba(22, 29, 12, 0.18);
    --shadow-lg: 0 24px 60px -16px rgba(22, 29, 12, 0.35);

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 76px;
    --section: clamp(56px, 9vw, 112px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--grass-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--olive-700); }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--olive-900);
    margin: 0 0 0.5em;
    font-variation-settings: "SOFT" 50, "opsz" 72;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
h4 { font-size: 1.15rem; }
h1:focus { outline: none; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--olive-950); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * 0.6) 0; }

/* Site-wide rhythm: neighbouring page sections sit ~48px apart rather than the roomy
   .section default. Coloured bands keep a little more room inside so they don't look cramped. */
main > section:not(.page-hero):not(.hero) { padding: 24px 0; }
main > section:first-child:not(.page-hero):not(.hero) { padding-top: 56px; }
main > section:is(.page-hero, .hero) + section:not(.page-hero) { padding-top: 36px; }
main > section:is(.bg-cream, .bg-olive) { padding: 48px 0; margin: 24px 0; }
main > :is(.page-hero, .hero) + section:is(.bg-cream, .bg-olive) { margin-top: 0; }
main > section:last-child { padding-bottom: 56px; }
main > section:is(.bg-cream, .bg-olive):last-child { margin-bottom: 0; }
.bg-cream { background: var(--cream); }
.bg-olive { background: var(--olive-900); color: #e9ecdf; }
.bg-olive h2, .bg-olive h3, .bg-olive h4 { color: var(--white); }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.6; }
.bg-olive .lead { color: #cdd4bb; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body);
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--grass-600);
    margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--gold); }
.bg-olive .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }

.section-head { max-width: 720px; margin-bottom: clamp(24px, 3vw, 36px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--ink-2); font-size: 1.125rem; }
.bg-olive .section-head p { color: #cdd4bb; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--gold);
    --btn-fg: var(--olive-950);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 24px;
    border: 0; border-radius: 999px;
    background: var(--btn-bg); color: var(--btn-fg);
    font: 600 0.98rem/1 var(--font-body); letter-spacing: 0.01em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-green { --btn-bg: var(--grass-600); --btn-fg: var(--white); }
.btn-dark { --btn-bg: var(--olive-900); --btn-fg: var(--white); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--olive-900); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost-light { --btn-bg: rgba(255, 255, 255, 0.08); --btn-fg: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); backdrop-filter: blur(6px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }
@media (hover: hover) and (pointer: fine) {
    .btn:hover { --btn-bg: #f8c650; color: var(--btn-fg); box-shadow: 0 8px 20px -8px rgba(220, 157, 15, 0.7); }
    .btn-green:hover { --btn-bg: #5b9c3b; box-shadow: 0 8px 20px -8px rgba(78, 140, 48, 0.7); }
    .btn-dark:hover { --btn-bg: var(--olive-800); box-shadow: var(--shadow-sm); }
    .btn-ghost:hover { --btn-bg: var(--white); box-shadow: inset 0 0 0 1.5px var(--olive-300); }
    .btn-ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.18); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; text-decoration: none; color: var(--grass-600);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(3px); } }

/* ---------- Utility bar + header ---------- */
.utility { background: var(--olive-950); color: #c9d0b8; font-size: 0.85rem; }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.utility a { color: #e3e8d6; text-decoration: none; }
.utility a:hover { color: var(--gold); }
.utility-contact, .utility-social { display: flex; align-items: center; gap: 22px; }
.utility-contact a, .utility-social a { display: inline-flex; align-items: center; gap: 8px; }
.utility svg { width: 15px; height: 15px; }
.utility-tagline { opacity: 0.85; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 250, 245, 0.88);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(22, 29, 12, 0.5); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    height: 42px; padding: 0 13px; border-radius: 999px; white-space: nowrap;
    color: var(--olive-900); font-weight: 550; font-size: 0.97rem; text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}
.nav-link svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
.nav-link.active { color: var(--grass-600); }
@media (hover: hover) and (pointer: fine) {
    .nav-link:hover { background: rgba(93, 107, 53, 0.09); color: var(--olive-900); }
    .nav-item:hover .nav-link svg { transform: rotate(180deg); }
}
.nav-menu {
    position: absolute; top: calc(100% + 6px); left: 50%;
    min-width: 260px; padding: 8px;
    background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translate(-50%, -4px) scale(0.97);
    transform-origin: top center;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
}
.nav-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s;
}
.nav-menu a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500;
    transition: background-color 150ms ease;
}
.nav-menu a:hover { background: var(--cream); color: var(--ink); }
.nav-menu a small { display: block; color: var(--ink-3); font-size: 0.8rem; font-weight: 400; }
.nav-menu .swatch { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: none; }
.nav-menu-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
    display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
    background: var(--olive-900); color: var(--white); cursor: pointer;
    align-items: center; justify-content: center;
    transition: transform 160ms var(--ease-out);
}
.menu-toggle:active { transform: scale(0.95); }
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(22, 29, 12, 0.5);
    opacity: 0; visibility: hidden;
    transition: opacity 260ms ease, visibility 0s linear 260ms;
}
.drawer {
    position: fixed; z-index: 100; top: 0; right: 0; bottom: 0;
    width: min(400px, 88vw);
    background: var(--paper);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 320ms var(--ease-drawer), visibility 0s linear 320ms;
    box-shadow: var(--shadow-lg);
    overscroll-behavior: contain;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: translateX(0); visibility: visible; transition: transform 320ms var(--ease-drawer), visibility 0s; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; transition: opacity 260ms ease, visibility 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-head img { height: 44px; width: auto; }
.drawer-close { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--cream); cursor: pointer; display: grid; place-items: center; color: var(--olive-900); transition: transform 160ms var(--ease-out); }
.drawer-close:active { transform: scale(0.95); }
.drawer-close svg { width: 20px; height: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 10px 24px; }
.drawer-body > a, .drawer-body summary {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 54px; padding: 0 14px; border-radius: 12px;
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--olive-900);
    text-decoration: none; cursor: pointer; list-style: none;
}
.drawer-body summary::-webkit-details-marker { display: none; }
.drawer-body summary svg { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }
.drawer-body details[open] summary svg { transform: rotate(180deg); }
.drawer-body > a:active, .drawer-body summary:active { background: var(--cream); }
.drawer-sub { padding: 0 6px 8px 14px; }
.drawer-sub a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.drawer-sub a:active { background: var(--cream); }
.drawer-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }

/* ---------- Hero (home) ---------- */
.hero {
    position: relative; isolation: isolate;
    min-height: min(88svh, 820px);
    display: flex; align-items: flex-end;
    color: var(--white);
    overflow: hidden;
    background: var(--olive-900);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 1600ms var(--ease-out) both; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(22, 29, 12, 0.35) 0%, rgba(22, 29, 12, 0) 30%),
        linear-gradient(0deg, rgba(22, 29, 12, 0.92) 0%, rgba(22, 29, 12, 0.6) 45%, rgba(22, 29, 12, 0.1) 78%);
}
.hero-content { padding-top: 120px; padding-bottom: clamp(48px, 9vw, 104px); max-width: 780px; }
.hero h1 { color: var(--white); margin-bottom: 18px; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero p { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: rgba(255, 255, 255, 0.86); max-width: 560px; margin-bottom: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    font-size: 0.88rem; color: rgba(255, 255, 255, 0.92);
}
.hero-badge svg { width: 16px; height: 16px; color: var(--gold); }
.hero-content > * { animation: rise 700ms var(--ease-out) both; }
.hero-content > *:nth-child(2) { animation-delay: 70ms; }
.hero-content > *:nth-child(3) { animation-delay: 140ms; }
.hero-content > *:nth-child(4) { animation-delay: 210ms; }
.hero-content > *:nth-child(5) { animation-delay: 280ms; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* ---------- Inner page hero ---------- */
.page-hero {
    position: relative; isolation: isolate; color: var(--white);
    padding: clamp(72px, 12vw, 136px) 0 clamp(40px, 7vw, 72px);
    overflow: hidden; background: var(--olive-900);
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(22, 29, 12, 0.9) 0%, rgba(22, 29, 12, 0.65) 55%, rgba(22, 29, 12, 0.35) 100%);
}
.page-hero h1 { color: var(--white); max-width: 820px; margin-bottom: 12px; text-wrap: balance; }
.page-hero p { color: rgba(255, 255, 255, 0.86); max-width: 640px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); margin: 0; }
.page-hero .btn-row { margin-top: 26px; }
.page-hero .tag { margin-bottom: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.85rem; margin-bottom: 16px; color: rgba(255, 255, 255, 0.7); }
.crumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* ---------- Generic layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-wide { grid-template-columns: 1.15fr 0.85fr; }
.rounded { border-radius: var(--radius); }
.media-frame { position: relative; isolation: isolate; }
.media-frame img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.media-frame::before {
    content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
    border-radius: var(--radius); background: var(--grass-100);
}
.bg-cream .media-frame::before { background: #e4e9d2; }
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
    overflow: hidden;
}
.card-pad { padding: clamp(22px, 3vw, 32px); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; overflow-wrap: anywhere; }
.checklist li::before {
    content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
    background: var(--grass-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234e8c30' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.stat { background: var(--white); padding: 26px 22px; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--olive-900); line-height: 1.1; }
.stat span { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Grass cards ---------- */
.sod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.sod-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
    text-decoration: none; color: var(--ink);
    transition: transform 240ms var(--ease-out), box-shadow 240ms ease;
}
.sod-card:active { transform: scale(0.985); }
.sod-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.sod-card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.sod-card-logo {
    position: absolute; left: 14px; bottom: 14px;
    display: flex; align-items: center;
    height: 56px; max-width: 62%;
    padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}
.sod-card-logo img { max-height: 100%; width: auto; object-fit: contain; }
.sod-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sod-card-body h3 { font-size: 1.3rem; margin: 0; }
.sod-card-body p { color: var(--ink-2); font-size: 0.95rem; margin: 0; flex: 1; }
.sod-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.sod-card .link-arrow { font-size: 0.92rem; }
@media (hover: hover) and (pointer: fine) {
    .sod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
    .sod-card:hover .sod-card-media > img { transform: scale(1.04); }
    .sod-card:hover .link-arrow svg { transform: translateX(3px); }
}
.tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em;
    background: var(--grass-100); color: var(--grass-600);
}
.tag-gold { background: var(--gold-100); color: #8a5f00; }
.tag-light { background: rgba(255, 255, 255, 0.14); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.tag svg { width: 13px; height: 13px; }

/* ---------- Audience split ---------- */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 24px); }
.audience-card {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 340px; padding: clamp(26px, 4vw, 40px);
    border-radius: var(--radius); color: var(--white); text-decoration: none;
    display: flex; flex-direction: column; justify-content: flex-end;
    transition: transform 160ms var(--ease-out);
}
.audience-card:active { transform: scale(0.99); }
.audience-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 600ms var(--ease-out); }
.audience-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(22, 29, 12, 0.95) 10%, rgba(22, 29, 12, 0.7) 50%, rgba(22, 29, 12, 0.2) 100%); }
.audience-card { min-height: 380px; }
.map-panel { background: var(--olive-700); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); box-shadow: var(--shadow); }
.audience-card h3 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 8px; }
.audience-card p { color: rgba(255, 255, 255, 0.85); max-width: 420px; margin-bottom: 18px; }
.audience-card .link-arrow { color: var(--gold); }
@media (hover: hover) and (pointer: fine) {
    .audience-card:hover img { transform: scale(1.04); }
    .audience-card:hover { color: var(--white); }
    .audience-card:hover .link-arrow svg { transform: translateX(3px); }
}

/* ---------- Timeline ---------- */
.timeline {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 330px);
    gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 8px var(--gutter) 28px;
    margin: 0 calc(var(--gutter) * -1);
    scroll-padding-left: var(--gutter);
    scrollbar-width: thin; scrollbar-color: var(--olive-700) transparent;
    -webkit-overflow-scrolling: touch;
}
.timeline::-webkit-scrollbar { height: 6px; }
.timeline::-webkit-scrollbar-thumb { background: var(--olive-700); border-radius: 6px; }
.tl-item {
    scroll-snap-align: start; position: relative;
    background: var(--olive-800); border-radius: var(--radius);
    padding: 26px 24px 24px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.tl-year { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.tl-item h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 8px; }
.tl-item p { font-size: 0.95rem; color: #c8cfb6; margin: 0; }
.tl-item.is-now { background: var(--grass-600); }
.tl-item.is-now .tl-year { color: var(--white); }
.tl-item.is-now p { color: #eef6e6; }
.tl-controls { display: flex; gap: 8px; }
.icon-btn {
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.08); color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: transform 160ms var(--ease-out), background-color 180ms ease;
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: rgba(255, 255, 255, 0.16); } }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 36px); }
.head-row .section-head { margin-bottom: 0; }

/* ---------- Marquee (associations) ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 170px; }
.marquee img { height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 300ms ease, opacity 300ms ease; }
.marquee figure:hover img { filter: none; opacity: 1; }
.marquee figcaption { font-size: 0.78rem; color: var(--ink-3); text-align: center; line-height: 1.3; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; isolation: isolate; overflow: hidden;
    border-radius: calc(var(--radius) + 6px);
    padding: clamp(32px, 6vw, 64px);
    color: var(--white);
    display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
}
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(22, 29, 12, 0.92), rgba(47, 58, 28, 0.72)); }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-phone { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--gold); text-decoration: none; font-weight: 600; white-space: nowrap; }
.cta-phone:hover { color: #ffd16b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive-950); color: #b9c1a6; font-size: 0.95rem; padding: 48px 0 0; }
.site-footer a { color: #dfe5d1; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.9fr; gap: 40px; }
.footer-brand img { height: 84px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; }
.site-footer h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-loc { margin-bottom: 22px; line-height: 1.55; }
.footer-loc strong { color: var(--white); font-weight: 600; display: block; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.social { display: flex; gap: 10px; }
.social a {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.07); color: #dfe5d1;
    transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.social a:active { transform: scale(0.94); }
.social a:hover { background: var(--gold); color: var(--olive-950); }
.social svg { width: 18px; height: 18px; }
.footer-bottom {
    margin-top: 56px; padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 0.85rem; color: #8d967b;
}
.footer-bottom a { color: #b9c1a6; }

/* ---------- Prose (blog posts, terms) ---------- */
.prose { font-size: 1.1rem; line-height: 1.75; color: #2b3322; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 1.8em 0 0.6em; }
.prose h3 { font-size: 1.35rem; margin: 1.6em 0 0.5em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--grass-600); font-weight: 700; }
.prose blockquote {
    margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--gold);
    background: var(--gold-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--olive-900);
}
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--radius-sm); margin: 1.8em auto; box-shadow: var(--shadow-sm); }
.prose strong { color: var(--olive-900); }
.prose table { width: 100%; border-collapse: collapse; }
.prose em:only-child { color: var(--ink-2); }

/* ---------- Blog ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
    background: var(--white); color: var(--olive-900); text-decoration: none; font-weight: 550; font-size: 0.92rem;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip:hover { background: var(--cream); color: var(--olive-900); }
.chip.active { background: var(--olive-900); color: var(--white); box-shadow: none; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(18px, 2.6vw, 28px); }
.post-card {
    display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
    transition: transform 240ms var(--ease-out), box-shadow 240ms ease;
}
.post-card:active { transform: scale(0.985); }
.post-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 1.25rem; margin: 0; }
.post-card p { color: var(--ink-2); font-size: 0.95rem; margin: 0; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 0.84rem; color: var(--ink-3); }
.post-card.featured { grid-column: 1 / -1; flex-direction: row; }
.post-card.featured .post-card-media { flex: 1.2; aspect-ratio: auto; min-height: 340px; }
.post-card.featured .post-card-body { flex: 1; padding: clamp(24px, 4vw, 44px); justify-content: center; }
.post-card.featured h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.post-card.featured p { flex: none; }
@media (hover: hover) and (pointer: fine) {
    .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
    .post-card:hover .post-card-media img { transform: scale(1.04); }
}
.post-hero-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 16 / 8; object-fit: cover; margin: -56px 0 48px; position: relative; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-nav a { display: block; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--olive-900); font-weight: 600; transition: box-shadow 200ms ease; }
.post-nav a:hover { box-shadow: inset 0 0 0 1.5px var(--olive-300); color: var(--olive-900); }
.post-nav small { display: block; font-weight: 500; color: var(--ink-3); margin-bottom: 4px; }
.post-nav .next { text-align: right; }

/* ---------- Sod detail ---------- */
.sod-hero-logo { background: var(--white); border-radius: 12px; padding: 10px 16px; display: inline-flex; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.sod-hero-logo img { max-height: 54px; width: auto; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fact-card { padding: clamp(22px, 3vw, 30px); }
.fact-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin-bottom: 16px; }
.fact-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grass-100); color: var(--grass-600); flex: none; }
.fact-icon svg { width: 20px; height: 20px; }
.fact-card .checklist { font-size: 0.98rem; }
.note { padding: 18px 22px; border-radius: var(--radius-sm); background: var(--gold-100); color: #5a4300; font-size: 0.95rem; margin-top: 20px; }

.char-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.97rem; }
.char-table th, .char-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.char-table tbody:last-child tr:last-child td, .char-table tbody:last-child tr:last-child th { border-bottom: 0; }
.char-table thead th { background: var(--olive-900); color: var(--white); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.char-group th {
    background: var(--grass-100); color: var(--grass-600);
    font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 16px;
}
.char-table tbody th[scope="row"] { font-weight: 500; color: var(--ink-2); width: 44%; }
.char-table td { font-weight: 600; color: var(--olive-900); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.gallery a { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--cream); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.gallery a:active img { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .gallery a:hover img { transform: scale(1.05); } }
.js .gallery.collapsed a:nth-child(n + 9) { display: none; }
.gallery-more { margin-top: 20px; text-align: center; }
.no-js .gallery-more { display: none; }

.compare-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); background: var(--white); -webkit-overflow-scrolling: touch; }
.compare { border-collapse: separate; border-spacing: 0; min-width: 980px; width: 100%; font-size: 0.93rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--cream); font-family: var(--font-display); font-size: 1rem; color: var(--olive-900); vertical-align: bottom; line-height: 1.25; }
.compare thead a { color: var(--olive-900); text-decoration: none; }
.compare thead a:hover { color: var(--grass-600); }
.compare tbody th { position: sticky; left: 0; background: var(--white); font-weight: 600; color: var(--ink-2); z-index: 1; box-shadow: 1px 0 0 var(--line); white-space: nowrap; }
.compare thead th:first-child { position: sticky; left: 0; z-index: 2; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.scroll-hint { display: none; font-size: 0.85rem; color: var(--ink-3); margin-top: 10px; }

/* ---------- Guide ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); margin-bottom: 32px; position: sticky; top: calc(var(--header-h) + 12px); z-index: 5; }
.no-js .tabs { display: none; }
.tab {
    position: relative; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
    background: transparent; color: var(--ink-2); font: 600 0.96rem var(--font-body);
    display: inline-flex; align-items: center; gap: 8px;
    transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.tab:active { transform: scale(0.97); }
.tab[aria-selected="true"] { background: var(--olive-900); color: var(--white); }
.tab svg { width: 18px; height: 18px; }
.js .tab-panel[hidden] { display: none; }
.js .tab-panel { animation: panel-in 260ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tab-panel > h2 { font-size: 1.6rem; }
.js .tab-panel > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.no-js .tab-panel[hidden] { display: block; }
.no-js .tab-panel + .tab-panel { margin-top: 48px; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.topic { padding: 24px 26px; }
.topic h3 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; margin-bottom: 12px; }
.topic p { color: #3a4230; font-size: 1rem; }
.topic p:last-child { margin: 0; }

/* ---------- About ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.team-card {
    display: flex; flex-direction: column; text-align: left;
    padding: 0; border: 0; cursor: pointer; font: inherit; color: inherit;
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
    transition: transform 240ms var(--ease-out), box-shadow 240ms ease;
}
.team-card:active { transform: scale(0.985); }
.team-card img { aspect-ratio: 1; object-fit: cover; object-position: top; width: 100%; }
.team-card-body { padding: 16px 18px 18px; }
.team-card h3 { font-size: 1.2rem; margin: 0 0 2px; }
.team-card p { margin: 0; color: var(--ink-2); font-size: 0.92rem; line-height: 1.4; }
.team-card .link-arrow { margin-top: 10px; font-size: 0.88rem; }
@media (hover: hover) and (pointer: fine) {
    .team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
    .team-card:hover .link-arrow svg { transform: translateX(3px); }
}

.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.value { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 16px; text-align: center; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.value-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.value-icon img { max-width: 36px; max-height: 38px; }
.value strong { color: var(--white); font-weight: 600; }

.pvm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pvm h3 { font-size: 0.85rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.14em; color: var(--grass-600); margin-bottom: 10px; }
.pvm p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.35; color: var(--olive-900); margin: 0; }
.quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; color: var(--olive-900); max-width: 760px; margin: 0 auto; text-align: center; }
.quote::before, .quote::after { color: var(--gold); }

/* ---------- Dialogs (bios, lightbox) ---------- */
dialog.modal {
    width: min(780px, calc(100vw - 32px)); max-height: calc(100svh - 48px);
    padding: 0; border: 0; border-radius: calc(var(--radius) + 4px);
    background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 1; transform: none;
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete;
}
dialog.modal:not([open]) { opacity: 0; transform: scale(0.97); transition-duration: 150ms; }
@starting-style { dialog.modal[open] { opacity: 0; transform: scale(0.96) translateY(8px); } }
dialog.modal::backdrop { background: rgba(22, 29, 12, 0.6); backdrop-filter: blur(3px); }
.bio[open] { display: grid; grid-template-columns: 260px 1fr; }
.bio img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.bio-body { padding: 32px 32px 28px; overflow-y: auto; max-height: calc(100svh - 48px); }
.bio-body h2 { font-size: 1.9rem; margin-bottom: 4px; padding-right: 36px; }
.bio-body .role { color: var(--grass-600); font-weight: 600; margin-bottom: 18px; }
.bio-body p { color: #3a4230; }
.modal-close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, 0.92); color: var(--olive-900); box-shadow: var(--shadow-sm);
    display: grid; place-items: center; transition: transform 160ms var(--ease-out);
}
.modal-close:active { transform: scale(0.94); }
.modal-close svg { width: 18px; height: 18px; }

dialog.lightbox {
    width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0;
    padding: 0; border: 0; background: rgba(12, 16, 7, 0.95); color: var(--white);
}
dialog.lightbox[open] { display: grid; place-items: center; }
dialog.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 80svh; border-radius: 12px; object-fit: contain; }
.lightbox .icon-btn { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .icon-btn:active { transform: translateY(-50%) scale(0.94); }
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { right: 16px; }
.lightbox .modal-close { background: rgba(255, 255, 255, 0.12); color: var(--white); box-shadow: none; }
.lb-count { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- Forms ---------- */
.form-card { padding: clamp(22px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--olive-900); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 12px 14px;
    border: 1.5px solid #d9dccd; border-radius: 12px; background: var(--white);
    font: 400 1rem var(--font-body); color: var(--ink);
    transition: border-color 160ms ease, box-shadow 160ms ease;
    -webkit-appearance: none; appearance: none;
}
.field select { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b35' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 42px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--grass-600); box-shadow: 0 0 0 4px rgba(111, 174, 74, 0.2); }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #c0392b; }
.validation-message { color: #b3261e; font-size: 0.85rem; margin-top: 6px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
    border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.5px #d9dccd;
    font-weight: 500; font-size: 0.95rem; cursor: pointer; user-select: none;
    transition: box-shadow 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.choice span:active { transform: scale(0.97); }
.choice input:checked + span { background: var(--olive-900); color: var(--white); box-shadow: none; }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--ink-3); margin: 14px 0 0; }
.alert { padding: 16px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.alert-error { background: #fdecea; color: #8c1d18; }
.success { text-align: center; padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 40px); animation: rise 400ms var(--ease-out) both; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--grass-100); color: var(--grass-600); }
.success-icon svg { width: 34px; height: 34px; }

/* ---------- Quiz ---------- */
.quiz { max-width: 760px; margin: 0 auto; }
.quiz-progress { height: 6px; border-radius: 6px; background: rgba(93, 107, 53, 0.15); overflow: hidden; margin-bottom: 28px; }
.quiz-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--grass), var(--gold)); border-radius: 6px; transform-origin: left; transition: transform 400ms var(--ease-out); }
.quiz-step { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grass-600); margin-bottom: 10px; }
.quiz h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.quiz-help { color: var(--ink-2); margin-bottom: 24px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option {
    display: flex; align-items: center; gap: 14px; width: 100%;
    min-height: 60px; padding: 14px 18px; border: 0; border-radius: 14px; cursor: pointer;
    background: var(--white); box-shadow: inset 0 0 0 1.5px #dfe2d4;
    font: 500 1.04rem var(--font-body); color: var(--ink); text-align: left;
    transition: box-shadow 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.quiz-option:active { transform: scale(0.985); }
.quiz-option .dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px #c9cdb9; flex: none; transition: box-shadow 160ms ease, background-color 160ms ease; }
.quiz-option.selected { box-shadow: inset 0 0 0 2px var(--grass-600); background: #f6faf1; }
.quiz-option.selected .dot { background: var(--grass-600); box-shadow: inset 0 0 0 5px #f6faf1, 0 0 0 2px var(--grass-600); }
@media (hover: hover) and (pointer: fine) { .quiz-option:hover { box-shadow: inset 0 0 0 1.5px var(--olive-300); } .quiz-option.selected:hover { box-shadow: inset 0 0 0 2px var(--grass-600); } }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.quiz-panel { animation: panel-in 280ms var(--ease-out); }
.quiz-result { display: grid; grid-template-columns: 1fr 1.1fr; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.quiz-result img.photo { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.quiz-result-body { padding: clamp(24px, 4vw, 40px); }
.match { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--grass-600); line-height: 1; margin-bottom: 8px; }
.match small { font-family: var(--font-body); font-size: 0.85rem; color: var(--ink-3); font-weight: 500; }
.runner-ups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; }
.runner-up { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); transition: box-shadow 200ms ease; }
.runner-up img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.runner-up strong { display: block; color: var(--olive-900); }
.runner-up span { font-size: 0.85rem; color: var(--ink-3); }
.runner-up:hover { box-shadow: inset 0 0 0 1.5px var(--olive-300); color: var(--ink); }

/* ---------- Yard calculator ---------- */
.calc { padding: clamp(20px, 4vw, 36px); }
.calc-row { display: grid; grid-template-columns: 1.1fr 1fr 1.7fr 110px 44px; gap: 12px; align-items: end; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.calc-row:first-of-type { padding-top: 0; }
.calc-dims { display: flex; gap: 8px; }
.calc-dims .field { flex: 1; min-width: 0; }
.calc-area { font-weight: 700; color: var(--olive-900); text-align: right; padding-bottom: 13px; font-variant-numeric: tabular-nums; }
.calc-remove { width: 44px; height: 50px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; border-radius: 10px; display: grid; place-items: center; transition: background-color 160ms ease, color 160ms ease; }
.calc-remove:hover { background: #fdecea; color: #b3261e; }
.calc-remove svg { width: 18px; height: 18px; }
.calc-total { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 24px; background: rgba(255, 255, 255, 0.1); border-radius: 14px; overflow: hidden; }
.calc-total div { background: var(--olive-900); color: #cdd4bb; padding: 18px 20px; font-size: 0.88rem; }
.calc-total strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--white); line-height: 1.15; font-variant-numeric: tabular-nums; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 20px; }

/* ---------- Locations ---------- */
.loc-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; }
.loc-list { display: grid; gap: 14px; }
.loc-card {
    position: relative; display: block; width: 100%; text-align: left;
    padding: 22px 22px 20px; border-radius: var(--radius);
    background: var(--white); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
    transition: box-shadow 200ms ease;
}
.loc-card.active { box-shadow: var(--shadow), 0 0 0 2px var(--grass-600); }
.loc-card h3 { font-size: 1.25rem; margin: 8px 0 6px; }
.loc-card .addr { color: var(--ink-2); margin-bottom: 12px; }
.loc-meta { display: grid; gap: 6px; font-size: 0.93rem; }
.loc-meta div { display: flex; gap: 10px; align-items: flex-start; }
.loc-meta svg { width: 16px; height: 16px; margin-top: 4px; color: var(--grass-600); flex: none; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.map-frame { position: sticky; top: calc(var(--header-h) + 20px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--cream); aspect-ratio: 4 / 3.6; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Downloads ---------- */
.dl-card { display: flex; align-items: center; gap: 16px; padding: 14px; text-decoration: none; color: var(--ink); transition: box-shadow 200ms ease, transform 160ms var(--ease-out); }
.dl-card:active { transform: scale(0.99); }
.dl-card:hover { box-shadow: var(--shadow), 0 0 0 1px var(--line); color: var(--ink); }
.dl-card img { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.dl-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--gold-100); color: #8a5f00; display: grid; place-items: center; flex: none; }
.dl-icon svg { width: 24px; height: 24px; }
.dl-card strong { display: block; color: var(--olive-900); line-height: 1.3; }
.dl-card span { font-size: 0.88rem; color: var(--ink-3); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; overflow-wrap: anywhere; }
.steps li::before { content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--olive-950); font-weight: 700; display: grid; place-items: center; font-size: 0.9rem; }

/* ---------- Job card ---------- */
.job { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 24px; }
.job h3 { margin: 0 0 4px; font-size: 1.3rem; }
.job p { margin: 0; color: var(--ink-2); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.js .reveal-stagger.in > *:nth-child(2) { transition-delay: 50ms; }
.js .reveal-stagger.in > *:nth-child(3) { transition-delay: 100ms; }
.js .reveal-stagger.in > *:nth-child(4) { transition-delay: 150ms; }
.js .reveal-stagger.in > *:nth-child(5) { transition-delay: 200ms; }
.js .reveal-stagger.in > *:nth-child(6) { transition-delay: 250ms; }
.js .reveal-stagger.in > *:nth-child(n + 7) { transition-delay: 300ms; }

/* Blazor's error bar */
#blazor-error-ui {
    background: #fdecea; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); display: none;
    left: 0; padding: 0.6rem 1.25rem 0.7rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
    .nav, .header-actions .btn-call, .utility-tagline { display: none; }
    .menu-toggle { display: inline-flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    :root { --header-h: 66px; }
    body { font-size: 1rem; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    .utility { display: none; }
    .brand img { height: 46px; }
    .header-actions .btn-order { display: none; }
    .split, .split-wide, .audience, .facts, .loc-layout, .quiz-result, .cta-band { grid-template-columns: 1fr; }
    .order-first-mobile { order: -1; }
    .grid-3, .pvm { grid-template-columns: 1fr; }
    .stat-strip { grid-template-columns: 1fr 1fr; }
    .topic-grid { grid-template-columns: 1fr; }
    .media-frame::before { inset: 12px -10px -12px 10px; }
    .post-card.featured { flex-direction: column; }
    .post-card.featured .post-card-media { min-height: 0; aspect-ratio: 16 / 9; flex: none; }
    .bio[open] { grid-template-columns: 1fr; overflow-y: auto; }
    .bio img { max-height: 320px; }
    .bio-body { max-height: none; padding: 24px 22px; }
    .map-frame { position: static; aspect-ratio: 4 / 3; order: -1; }
    .calc-row { grid-template-columns: 1fr 1fr; }
    .calc-row .calc-dims { grid-column: 1 / -1; }
    .calc-area { text-align: left; padding-bottom: 0; align-self: center; }
    .calc-remove { justify-self: end; }
    .calc-total { grid-template-columns: 1fr; }
    .tabs { display: flex; width: 100%; }
    .tab { flex: 1; justify-content: center; padding: 0 10px; }
    .scroll-hint { display: block; }
    .audience-card { min-height: 280px; }
    .post-hero-img { margin-top: -32px; }

    .action-bar {
        display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
        position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(251, 250, 245, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--line);
    }
    .action-bar .btn { min-height: 48px; }
}

@media (max-width: 560px) {
    .grid-2, .grid-4, .form-grid { grid-template-columns: 1fr; }
    .hero { min-height: 84svh; }
    .hero-content { padding-top: 96px; }
    .hero .btn-row .btn, .page-hero .btn-row .btn, .cta-band .btn { flex: 1; }
    .stat { padding: 20px 16px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav .next { text-align: left; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .sod-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .lightbox .icon-btn { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); transform: none; }
    .lightbox .icon-btn:active { transform: scale(0.94); }
    .char-table th, .char-table td { padding: 11px 12px; }
    .quiz-nav .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
    .js .reveal, .js .reveal-stagger > * { transform: none; transition: opacity 300ms ease; }
    .marquee-track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 24px; }
    .marquee-track [aria-hidden="true"] { display: none; }
    .marquee { mask-image: none; -webkit-mask-image: none; }
}
