/* ==========================================================================
   NODDIE NIGHT — site.css
   Shared by EVERY page: tokens, base type, layout, buttons, announcement bar,
   header + mobile menu, accordion, forms, cards / callout / table, footer,
   cookie notice, utilities, focus styles, reduced motion.

   Homepage-only sections live in home.css. Secondary-page layout lives in
   pages.css. Class reference: _audit/partials/README.md
   ========================================================================== */


/* ==== 1. DESIGN TOKENS ==================================================== */
:root {
    /* Brand palette (unchanged) */
    --ivory: #f7f5ee;
    --navy: #172b50;
    --amber: #c29a5b;
    --alt-bg: #dce6f3;
    --border: #d0d9e4;
    --white: #ffffff;

    /* Accessible text tokens. Contrast ratios are computed (WCAG 2.x), not guessed.
       Brand amber #c29a5b is 2.39:1 on ivory, 2.06:1 on alt-bg, 2.60:1 on white:
       it FAILS as text on every light surface. Use --amber only as a fill with
       navy text (5.39:1), as text on navy (5.39:1), or as pure decoration.      */
    --amber-ink: #7a5a28;      /* amber-coloured TEXT on light: 5.80 ivory / 5.02 alt-bg / 6.32 white */
    --muted: #56617a;          /* secondary text on light:     5.68 ivory / 4.92 alt-bg / 6.20 white */
    --navy-deep: #0f1f3d;      /* pressed / darker navy fill: ivory text 15.0:1 */
    --border-strong: #76829a;  /* form-field borders: 3.55:1 on ivory, 3.87:1 on white (non-text 3:1) */
    --danger: #9b2c2c;         /* error text on light:   6.90 ivory / 5.97 alt-bg / 7.53 white */
    --success: #1f6b3a;        /* success text on light: 5.97 ivory / 5.17 alt-bg / 6.52 white */

    /* On-navy text tokens */
    --on-navy: #f7f5ee;                        /* 12.85:1 */
    --on-navy-muted: rgba(247, 245, 238, 0.72);/* ≈ #b8bcc2, 7.35:1 */
    --on-navy-line: rgba(247, 245, 238, 0.16);
    --danger-on-navy: #ffb4a8;                 /* 8.24:1 */
    --success-on-navy: #bfe3c8;                /* 10.04:1 */

    /* Type */
    --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

    /* Layout */
    --container: 1400px;
    --gutter: 2rem;
    --header-h: 76px;          /* sticky header height; used for anchor offsets */
    --bottom-bar-h: 0px;       /* height of any fixed bottom bar (mobile buy bar). Set it where the bar is added so the footer clears it. */
    --shadow-soft: 0 12px 40px -12px rgba(23, 43, 80, 0.22);
}

@media (max-width: 900px) {
    :root { --header-h: 60px; --gutter: 1.25rem; }
}


/* ==== 2. RESET + BASE ===================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--ivory);
    color: var(--navy);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

[hidden] { display: none !important; }

img, svg, video { max-width: 100%; }
img { height: auto; }

/* Anchor targets (#shop, #faq, #main …) stop below the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }


/* ==== 3. TYPOGRAPHY ======================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.1;
    overflow-wrap: break-word;
}

.eyebrow {
    color: var(--amber-ink);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.headline-huge { font-size: clamp(3rem, 6vw, 5.5rem); margin-bottom: 1.5rem; }
.headline-large { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1.5rem; }
.headline-medium { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.headline-small { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 0.75rem; }

.lede { font-size: 1.25rem; line-height: 1.6; }
.small { font-size: 0.85rem; }
.muted { color: var(--muted); }

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s;
}

/* Amber text link. Underlined so colour is never the only cue (WCAG 1.4.1). */
a.link-amber {
    color: var(--amber-ink);
    border-bottom: 1px solid rgba(122, 90, 40, 0.45);
    padding-bottom: 1px;
    transition: color 0.3s, border-color 0.3s;
}
a.link-amber:hover {
    border-bottom-color: var(--amber-ink);
}

/* Plain underlined navy link for running text */
a.link-underline {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
a.link-underline:hover { color: var(--amber-ink); }

em {
    font-style: italic;
    opacity: 0.8;
}

/* Long-form text (policies, guides). Wrap the article body in .prose */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: 3rem; }
.prose h3 { font-size: 1.35rem; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.4rem; }
.prose a:not(.btn) {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.prose a:not(.btn):hover { color: var(--amber-ink); }
.prose strong { font-weight: 500; }


/* ==== 4. LAYOUT =========================================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container, .container-narrow { padding: 0 1.25rem; }
}

/* Generic section rhythm for pages that do not have bespoke section CSS */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--alt-bg); }
.section-line { border-bottom: 1px solid var(--border); }

/* Navy surface: flips text, eyebrow, links and focus rings */
.on-navy { background: var(--navy); color: var(--on-navy); }
.on-navy a:not(.btn) { color: var(--on-navy); }
.on-navy .eyebrow { color: var(--amber); }
.on-navy .muted { color: var(--on-navy-muted); }
.on-navy a.link-amber { color: var(--amber); border-bottom-color: rgba(194, 154, 91, 0.5); }
.on-navy a.link-amber:hover { border-bottom-color: var(--amber); }


/* ==== 5. BUTTONS ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    background: var(--navy);
    color: var(--ivory);
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    font-size: 1rem;
    line-height: 1.7;
}

/* Hover = amber fill with NAVY text (5.39:1). Ivory on amber was 2.39:1. */
.btn:hover {
    background: var(--amber);
    color: var(--navy);
}
.btn:active { background: var(--navy-deep); color: var(--ivory); }

.btn[disabled], .btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}
.btn[disabled]:hover, .btn[aria-disabled="true"]:hover {
    background: var(--navy);
    color: var(--ivory);
}

/* Amber fill, navy text. For use on navy surfaces (a plain .btn is navy and would vanish there). */
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: var(--ivory); color: var(--navy); }
.btn-amber:active { background: var(--amber); color: var(--navy); }

/* Ivory fill, navy text. Secondary action on navy surfaces. */
.btn-light { background: var(--ivory); color: var(--navy); }
.btn-light:hover { background: var(--amber); color: var(--navy); }

/* Outline. Secondary action on light surfaces. */
.btn-outline {
    background: transparent;
    color: var(--navy);
    box-shadow: inset 0 0 0 1px var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--ivory); }
.on-navy .btn-outline { color: var(--on-navy); box-shadow: inset 0 0 0 1px var(--on-navy); }
.on-navy .btn-outline:hover { background: var(--ivory); color: var(--navy); }

.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.9rem; }
.btn-block { display: flex; width: 100%; }

/* A button that looks like a text link (e.g. "Cookie preferences") */
.link-button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.link-button:hover { color: var(--amber-ink); }
.on-navy .link-button:hover { color: var(--amber); }


/* ==== 6. ACCESSIBILITY HELPERS + FOCUS ==================================== */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 0.75rem;
    z-index: 1000;
    background: var(--navy);
    color: var(--ivory);
    padding: 0.7rem 1.1rem;
    font-weight: 500;
    transform: translateY(-250%);
    transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

/* Visible keyboard focus in the brand look */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
}
:where(.on-navy, .site-footer, .announcement, .fact-strip, .shop-visual) :where(a, button, summary, input, select, textarea, [tabindex]):focus-visible,
.skip-link:focus-visible {
    outline-color: var(--amber);
}
main:focus { outline: none; }


/* ==== 7. ANNOUNCEMENT BAR ================================================= */
.announcement {
    background: var(--navy);
    color: var(--on-navy);
    text-align: center;
    padding: 0.55rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
}
.announce {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.15rem 0.85rem;
    max-width: var(--container);
    margin: 0 auto;
}
.ann-sep { color: var(--amber); font-variant-emoji: text; }   /* keep ✳ a text glyph, never a colour emoji */
.announcement a { color: var(--on-navy); text-decoration: underline; text-underline-offset: 3px; }

/* Phones: one segment at a time on a single line (main.js / shell.js move
   .is-on every 5s; hover or tap pauses). Hidden segments stay readable for
   screen readers. With reduced motion the swap is instant, with no fade.   */
@media (max-width: 700px) {
    .announcement { padding: 0.5rem 1rem; font-size: 0.78rem; }
    .announce { flex-wrap: nowrap; min-height: 1.5em; }
    .ann-sep { display: none; }
    .ann-seg:not(.is-on) {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .ann-seg.is-on { animation: ann-in 0.6s ease both; }
}
@keyframes ann-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}


/* ==== 8. HEADER + MOBILE MENU ============================================= */
.site-header {
    position: sticky;
    top: 0;
    background: var(--ivory);
    z-index: 200;               /* above the chat button (150) and cookie notice (160) so the open menu is never covered */
    border-bottom: 1px solid var(--border);
}
.header-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--header-h);
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1;
    white-space: nowrap;
    color: var(--navy);
    padding: 0.5rem 0;
}
.nav-links ul {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    list-style: none;
}
.nav-links a {
    display: inline-block;
    font-size: 0.9rem;
    padding: 0.6rem 0;
    white-space: nowrap;
    background: linear-gradient(var(--amber), var(--amber)) left calc(100% - 0.35rem) / 0 1px no-repeat;
    transition: background-size 0.3s, color 0.3s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
    background-size: 100% 1px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.header-cta { white-space: nowrap; }
.header-cta .cta-short { display: none; }

.burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.burger-box {
    position: relative;
    display: block;
    width: 22px;
    height: 14px;
}
.burger-box span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s, opacity 0.2s, top 0.25s;
}
.burger-box span:nth-child(1) { top: 0; }
.burger-box span:nth-child(2) { top: 6px; }
.burger-box span:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger-box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 900px) {
    .header-inner { padding: 0 1rem; gap: 0.5rem; }
    .logo { font-size: 1.35rem; }
    .burger { display: inline-flex; }
    .header-actions { gap: 0.25rem; }
    .header-cta { padding: 0.5rem 0.9rem; font-size: 0.85rem; }

    /* #menu becomes a drop-down panel under the header row */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ivory);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-soft);
        max-height: calc(100vh - var(--header-h));
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .nav-links.open {
        display: block;
        animation: menu-in 0.25s ease both;
    }
    .nav-links ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.25rem 1.25rem 1.25rem;
    }
    .nav-links li + li { border-top: 1px solid var(--border); }
    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
        padding: 0.5rem 0;
        font-family: var(--font-serif);
        font-size: 1.4rem;
        line-height: 1.2;
        white-space: normal;
        background: none;
    }
    .nav-links a::after {
        content: "\2197";            /* ↗ decorative */
        font-family: var(--font-sans);
        font-size: 1rem;
        color: var(--amber-ink);
    }
}
@media (max-width: 420px) {
    .header-cta .cta-full { display: none; }
    .header-cta .cta-short { display: inline; }
}
@keyframes menu-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}


/* ==== 9. ACCORDION (native <details>) ===================================== */
details {
    border-bottom: 1px solid var(--border);
}
details:first-of-type {
    border-top: 1px solid var(--border);
}
summary {
    padding: 1.5rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.25;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    flex: none;
    font-family: var(--font-sans);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--amber-ink);
}
details[open] summary::after { content: '2'; }   /* − */

.details-content p + p { margin-top: 0.75rem; }
.details-content {
    padding: 0 0 1.5rem 0;
    color: #555;
}
@media (max-width: 600px) {
    summary { font-size: 1.25rem; padding: 1.25rem 0; }
}


/* ==== 10. FORMS =========================================================== */
.field { margin-bottom: 1.25rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}
.label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}
.input, .textarea, .select {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;            /* 16px: stops iOS zooming on focus */
    line-height: 1.5;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--border-strong);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 9rem; resize: vertical; }
.select {
    padding-right: 2.5rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
    background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.85rem) 50%;
    background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
    background-repeat: no-repeat;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--navy); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--navy); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: inset 0 0 0 1px var(--danger);
}
.field-hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.checkbox input {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    accent-color: var(--navy);
}

/* Status line under a field or form. JS sets class "field-msg ok|bad". */
.field-msg {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-top: 0.6rem;
    color: var(--muted);
}
.field-msg:empty { display: none; }
.field-msg.ok { color: var(--success); }
.field-msg.bad { color: var(--danger); }
.on-navy .field-msg, .site-footer .field-msg { color: var(--on-navy-muted); }
.on-navy .field-msg.ok, .site-footer .field-msg.ok { color: var(--success-on-navy); }
.on-navy .field-msg.bad, .site-footer .field-msg.bad { color: var(--danger-on-navy); }


/* ==== 11. CARDS, CALLOUT, TABLE, PILL ===================================== */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2rem;
}
.card-tint { background: var(--alt-bg); border-color: transparent; }
.card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
}
@media (max-width: 600px) {
    .card { padding: 1.5rem; }
}

.callout {
    border-left: 3px solid var(--amber);
    background: rgba(220, 230, 243, 0.55);
    padding: 1.25rem 1.5rem;
}
.callout > * + * { margin-top: 0.6rem; }
.callout-title {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--amber-ink);
}
.callout-navy {
    background: var(--navy);
    color: var(--on-navy);
    border-left-color: var(--amber);
}
.callout-navy .callout-title { color: var(--amber); }
.callout-navy a:not(.btn) { color: var(--on-navy); text-decoration: underline; text-underline-offset: 3px; }

/* Wrap every table in .table-wrap so it scrolls inside itself at 360px */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    background: var(--white);
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}
.table th, .table td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.table thead th {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--ivory);
    white-space: nowrap;
}
.table tbody th { font-weight: 500; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.2rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.6;
    background: var(--navy);
    color: var(--ivory);
}
.pill-amber { background: var(--amber); color: var(--navy); }
.pill-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }


/* ==== 12. FOOTER ========================================================== */
.site-footer {
    background: var(--navy);
    color: var(--ivory);
    padding: 6rem 2rem calc(2rem + var(--bottom-bar-h));
}
.site-footer a:not(.btn) { color: var(--ivory); }
.site-footer a:not(.btn):hover { color: var(--amber); }
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}
.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--on-navy-line);
}
.site-footer .eyebrow { color: var(--amber); }
.footer-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 2.5rem;
}

/* Newsletter */
.newsletter { max-width: 30rem; }
.newsletter-label {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}
.newsletter-copy {
    font-size: 0.95rem;
    color: var(--on-navy-muted);
    margin-bottom: 1rem;
}
.newsletter-row {
    display: flex;
    gap: 0;
    border: 1px solid rgba(247, 245, 238, 0.6);   /* ≈ 5.6:1 against navy */
}
.newsletter-row:focus-within { border-color: var(--amber); }
.newsletter-row input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--ivory);
    background: transparent;
    border: 0;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}
.newsletter-row input::placeholder { color: var(--on-navy-muted); opacity: 1; }
.newsletter-row input:focus-visible { outline-offset: -4px; }
.newsletter-row .btn { flex: none; padding: 0.85rem 1.4rem; }
.newsletter-consent {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--on-navy-muted);
    margin-top: 0.75rem;
}
.newsletter-consent a { text-decoration: underline; text-underline-offset: 3px; }

/* Link columns */
.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    line-height: 1.7;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col a {
    display: inline-block;
    padding: 0.4rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

/* Socials + payments */
.footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    padding: 2rem 0 0;
}
.social-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--on-navy-line);
    border-radius: 50%;
    transition: color 0.3s, border-color 0.3s;
}
.social-links a:hover { border-color: var(--amber); }
.social-links svg { width: 20px; height: 20px; }

.footer-pay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
}
.footer-pay-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: var(--on-navy-muted);
}
.footer-pay-note svg { width: 15px; height: 15px; flex: none; }
.pay-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
}
.pay-badges li {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 0.6rem;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ivory);
    border: 1px solid rgba(247, 245, 238, 0.35);
    border-radius: 4px;
}

/* Big wordmark: one line, scales with the viewport, never overflows */
.footer-wordmark {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 13.4vw, 13rem);
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    margin: 4rem 0 2.5rem;
    padding-bottom: 0.08em;
}

/* Legal block */
.footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--on-navy-line);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--on-navy-muted);
}
.footer-bottom p + p { margin-top: 0.5rem; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom address { font-style: normal; margin-top: 0.5rem; }
.footer-bottom address + p { margin-top: 0.5rem; }
.footer-disclaimer { text-align: left; }
.footer-bottom .link-button { margin-top: 0.75rem; color: var(--ivory); min-height: 24px; }

@media (max-width: 1000px) {
    .footer-top { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
    .site-footer { padding: 4rem 1.25rem calc(1.5rem + var(--bottom-bar-h)); }
    .footer-top { padding-bottom: 3rem; }
    .footer-bottom { grid-template-columns: 1fr; }
    .footer-meta { flex-direction: column; align-items: flex-start; }
    .footer-wordmark { margin: 3rem 0 2rem; }
}
@media (max-width: 560px) {
    .footer-nav { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
    .footer-col a { padding: 0.55rem 0; }
}


/* ==== 13. COOKIE NOTICE =================================================== */
/* A small card, bottom-left. Under 900px it sits 72px up so it never covers
   the mobile buy bar. z-index: above the chat button (150), below modals.   */
.cookie {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 160;
    width: min(22.5rem, calc(100vw - 2.5rem));
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border);
    border-top: 3px solid var(--amber);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.15rem 1.15rem;
    font-size: 0.8438rem;
    line-height: 1.5;
    animation: cookie-in 0.35s ease both;
}
.cookie-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}
.cookie-title span { color: var(--amber); }
.cookie-text a {
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.cookie-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
}
.cookie-actions .btn { flex: 1; min-height: 44px; }
@media (max-width: 900px) {
    .cookie {
        left: 0.75rem;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        width: min(22.5rem, calc(100vw - 1.5rem));
    }
}
@keyframes cookie-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}


/* ==== 14. UTILITIES ======================================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }


/* ==== 15. REDUCED MOTION ================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    /* The announcement still swaps segments on phones, but instantly: the
       rule above removes the fade, and a tap on the bar pauses it. */
}
