/*
 * Kūlanihākoʻi Band Boosters — site stylesheet.
 *
 * Theme: Deep Ocean Stage. A manta gliding through bioluminescent twilight.
 * Token names describe ROLE in that metaphor — depth (backgrounds), ink (text),
 * brand (purple, bioluminescence), silver (moonlight), coral (reef accent).
 *
 * Design source of truth: Boosters-Wiki/concepts/website-design-system.md
 * If this file and that document disagree, that document wins.
 */

/* ───────────────────────────────────────────────────────────────
   1. TOKENS
   ─────────────────────────────────────────────────────────────── */

:root {
    /* Depth scale — backgrounds (cool blue-charcoal, not pure black) */
    --depth-abyss:    #070C13;
    --depth-trench:   #0C141F;
    --depth-twilight: #13202E;
    --depth-shallow:  #1B2D3E;
    --depth-surface:  #243A4E;

    /* Ink scale — text (light filtering down through water) */
    --ink-moonlight:  #F0F4F8;
    --ink-bright:     #D9E0E8;
    --ink-muted:      #9BA8B8;
    --ink-faint:      #5C6B7D;
    --ink-deep:       #3A4856;

    /* Brand purple — bioluminescence */
    --brand-bright:   #C4B0F0;
    --brand:          #A98EE6;
    --brand-deep:     #7A60B8;
    --brand-shadow:   rgba(169, 142, 230, 0.20);

    /* Brand silver — moonlight reflection */
    --silver:         #C8D2DC;
    --silver-deep:    #7E8B98;

    /* Coral teal — reef accent (used sparingly) */
    --coral:          #5FB3B3;
    --coral-deep:     #3F8888;

    /* Structural lines */
    --line:           #1F2D3E;
    --line-bright:    #2D4054;
    --line-brand:     rgba(169, 142, 230, 0.30);

    /* Status — minimum viable */
    --success:        #5FBF8E;
    --error:          #E37070;

    /* Type stacks */
    --font-display:   'Fraunces', Georgia, serif;
    --font-body:      'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Spacing scale (4px base) */
    --space-1:  0.25rem;   /* 4  */
    --space-2:  0.5rem;    /* 8  */
    --space-3:  0.75rem;   /* 12 */
    --space-4:  1rem;      /* 16 */
    --space-6:  1.5rem;    /* 24 */
    --space-8:  2rem;      /* 32 */
    --space-12: 3rem;      /* 48 */
    --space-16: 4rem;      /* 64 */
    --space-24: 6rem;      /* 96 */
    --space-32: 8rem;      /* 128 */

    /* Layout */
    --container-max: 1080px;
    --container-pad: 1.5rem;
    --radius:        8px;
    --radius-sm:     4px;

    /* Motion */
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ───────────────────────────────────────────────────────────────
   2. RESET & BASE
   ─────────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--depth-abyss);
    color: var(--ink-bright);
    font-family: var(--font-body);
    font-size: 1.0625rem;       /* 17px floor for body */
    line-height: 1.6;
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-color: var(--line-brand);
    text-underline-offset: 0.2em;
    transition: color var(--transition), text-decoration-color var(--transition);
}
a:hover {
    color: var(--brand-bright);
    text-decoration-color: var(--brand-bright);
}

/* Focus rings — always visible, never outline:none without replacement */
:focus-visible {
    outline: 2px solid var(--brand-bright);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brand);
    color: var(--depth-abyss);
    padding: var(--space-3) var(--space-4);
    font-weight: 600;
    z-index: 9999;
}
.skip-link:focus {
    left: var(--space-4);
    top: var(--space-4);
}

/* ───────────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ─────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink-moonlight);
    line-height: 1.2;
    margin: var(--space-12) 0 var(--space-4);
    letter-spacing: -0.005em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; letter-spacing: 0; }

p { margin: 0 0 var(--space-4); }

.lead {
    font-size: 1.1875rem;
    line-height: 1.55;
    color: var(--ink-bright);
}

small, .meta {
    font-size: 0.9375rem;
    color: var(--ink-muted);
}

/* Eyebrow tag — the only place we use slight tracking, on micro labels */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--brand);
    margin-bottom: var(--space-3);
}
.eyebrow-coral { color: var(--coral); }
.eyebrow-silver { color: var(--silver); }

blockquote {
    border-left: 3px solid var(--line-brand);
    margin: var(--space-6) 0;
    padding: var(--space-2) var(--space-6);
    color: var(--ink-bright);
    font-style: italic;
}

code {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 0.9em;
    background: var(--depth-twilight);
    padding: 0.1em 0.4em;
    border-radius: var(--radius-sm);
    color: var(--ink-moonlight);
}

ul, ol { padding-left: var(--space-6); }
li + li { margin-top: var(--space-2); }

hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: var(--space-12) 0;
}

/* ───────────────────────────────────────────────────────────────
   4. LAYOUT PRIMITIVES
   ─────────────────────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

main { display: block; }

section { padding: var(--space-16) 0; }

/* ───────────────────────────────────────────────────────────────
   5. HEADER / NAV
   ─────────────────────────────────────────────────────────────── */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 20, 31, 0.85);              /* depth-trench @ 85% */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
header > .container {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--ink-moonlight);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -0.005em;
    text-decoration: none;
}
.logo:hover { color: var(--brand-bright); }
.logo-glyph {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.nav-links li { margin-top: 0; }
.nav-links a {
    display: inline-block;
    padding: var(--space-2) var(--space-3);
    color: var(--ink-bright);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.nav-links a:hover {
    color: var(--brand-bright);
    background: var(--depth-shallow);
}
.nav-cta-item .nav-cta {
    background: var(--brand);
    color: var(--depth-abyss);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.nav-cta-item .nav-cta:hover {
    background: var(--brand-bright);
    color: var(--depth-abyss);
}

/* Mobile nav toggle — hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: border-color var(--transition);
}
.nav-toggle:hover { border-color: var(--brand); }
.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--ink-bright);
    transition: transform var(--transition), opacity var(--transition);
}
header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ───────────────────────────────────────────────────────────────
   6. HERO — HOME
   ─────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    text-align: center;
    padding: var(--space-3) 0 var(--space-8);
    background:
        radial-gradient(ellipse at 50% 0%,
            rgba(122, 96, 184, 0.10) 0%,
            transparent 60%),
        linear-gradient(180deg,
            var(--depth-abyss) 0%,
            var(--depth-trench) 100%);
    overflow: hidden;
}

.hero-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}
.hero-logo {
    width: clamp(90px, 16vw, 140px);
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(7, 12, 19, 0.6));
    animation: manta-drift 12s ease-in-out infinite alternate;
}

.hero h1, .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0 0 var(--space-3);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--ink-moonlight);
}

.hero p, .hero-subtitle {
    max-width: 38em;
    margin: 0 auto var(--space-6);
    font-size: 1.1875rem;
    line-height: 1.55;
    color: var(--ink-bright);
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* ───────────────────────────────────────────────────────────────
   7. HERO — INTERIOR PAGES
   ─────────────────────────────────────────────────────────────── */

.hero-post {
    text-align: center;
    padding: var(--space-16) 0 var(--space-12);
    background: linear-gradient(180deg,
        var(--depth-abyss) 0%,
        var(--depth-trench) 100%);
    border-bottom: 1px solid var(--line);
}
.hero-post h1 {
    margin: 0 auto var(--space-3);
    max-width: 22em;
    font-size: clamp(2rem, 4.5vw, 2.5rem);
    color: var(--brand-bright);
}
.hero-post .lead {
    max-width: 36em;
    margin: 0 auto;
}

/* Post content container */
.post-container { padding: var(--space-12) 0 var(--space-16); }

.post-content h2 {
    margin-top: var(--space-12);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
}
.post-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.post-content details {
    background: var(--depth-twilight);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-4);
    margin: var(--space-3) 0;
}
.post-content details summary {
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink-moonlight);
}
.post-content details[open] summary { margin-bottom: var(--space-3); }

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-6) 0;
    background: var(--depth-twilight);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.post-content th,
.post-content td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.post-content th {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--ink-moonlight);
    background: var(--depth-shallow);
}
.post-content tr:last-child td { border-bottom: none; }

.post-content address {
    font-style: normal;
    background: var(--depth-twilight);
    border-left: 3px solid var(--brand);
    padding: var(--space-3) var(--space-4);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--ink-bright);
}

/* ───────────────────────────────────────────────────────────────
   8. CARDS
   ─────────────────────────────────────────────────────────────── */

.card {
    background: var(--depth-twilight);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-8);
    transition: transform var(--transition), border-color var(--transition);
}
.card:hover {
    transform: translateY(-2px);
    border-color: var(--line-bright);
}
.card-brand { border-color: var(--line-brand); }
.card-coral { border-color: var(--coral-deep); }
.card h3 { margin-top: 0; }

/* ───────────────────────────────────────────────────────────────
   9. UPDATES BANNER (top of page, conditional)
   ─────────────────────────────────────────────────────────────── */

.updates-banner {
    background: var(--depth-trench);
    border-bottom: 1px solid var(--line-brand);
    padding: var(--space-3) 0;
}
.updates-banner > .container {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
    border-left: 3px solid var(--brand);
    padding-left: var(--space-4);
}
.updates-banner-tag {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--brand-bright);
}
.updates-banner-msg {
    color: var(--ink-bright);
    font-size: 0.9375rem;
}

/* ───────────────────────────────────────────────────────────────
   10. CAROUSEL (photo highlights placeholder)
   ─────────────────────────────────────────────────────────────── */

.carousel { padding: var(--space-12) 0; }
.carousel-track {
    list-style: none;
    margin: 0;
    padding: 0 var(--container-pad);
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-deep) var(--depth-trench);
}
.carousel-track li { margin-top: 0; }
.carousel-slide {
    flex: 0 0 80%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    scroll-snap-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--depth-twilight);
}
.carousel-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.carousel-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    font-size: 0.9375rem;
    text-align: center;
    padding: var(--space-4);
    background: repeating-linear-gradient(
        135deg,
        var(--depth-twilight) 0 16px,
        var(--depth-shallow) 16px 32px);
}

/* ───────────────────────────────────────────────────────────────
   11. CALENDAR EMBED SLOT
   ─────────────────────────────────────────────────────────────── */

.home-calendar { padding: var(--space-12) 0; }
.calendar-embed-slot {
    margin-top: var(--space-6);
    padding: var(--space-8);
    background: var(--depth-twilight);
    border: 1px dashed var(--line-bright);
    border-radius: var(--radius);
    text-align: center;
    color: var(--ink-muted);
}
.calendar-embed-slot p { margin-bottom: var(--space-4); }
.calendar-embed-slot p:last-child { margin-bottom: 0; }

/* ───────────────────────────────────────────────────────────────
   12. CURRENT NEEDS LIST
   ─────────────────────────────────────────────────────────────── */

.current-needs { padding: var(--space-12) 0; }
.current-needs-list {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0;
    display: grid;
    gap: var(--space-3);
}
.current-needs-list li {
    background: var(--depth-twilight);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    padding: var(--space-4) var(--space-6);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 0;
    color: var(--ink-bright);
}

/* ───────────────────────────────────────────────────────────────
   13. INTENT FUNNEL (home page CTA form)
   ─────────────────────────────────────────────────────────────── */

.intent-funnel { padding: var(--space-12) 0; }
.intent-funnel-card {
    background: var(--depth-twilight);
    border: 1px solid var(--line-brand);
    border-radius: var(--radius);
    padding: var(--space-8);
}
.intent-funnel-title { margin: 0 0 var(--space-3); }
.intent-funnel-lead {
    color: var(--ink-bright);
    margin-bottom: var(--space-6);
}
.intent-funnel-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.intent-funnel-row {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr;
}
@media (min-width: 700px) {
    .intent-funnel-row { grid-template-columns: 1fr 1fr; }
}

/* ───────────────────────────────────────────────────────────────
   14. BUTTONS
   ─────────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    background: var(--brand);
    color: var(--depth-abyss);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--brand);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    line-height: 1.4;
}
.btn:hover {
    background: var(--brand-bright);
    border-color: var(--brand-bright);
    color: var(--depth-abyss);
    transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--brand);
    border-color: var(--line-brand);
}
.btn-secondary:hover {
    background: rgba(169, 142, 230, 0.10);
    border-color: var(--brand);
    color: var(--brand-bright);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-bright);
    border-color: transparent;
    padding: 0.75rem 0;
}
.btn-ghost:hover {
    background: transparent;
    color: var(--brand-bright);
    transform: none;
}

/* ───────────────────────────────────────────────────────────────
   15. FORMS
   ─────────────────────────────────────────────────────────────── */

.contact-field,
.intent-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.contact-field > span,
.intent-field > span {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
}

input, select, textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.625rem 0.875rem;
    background: var(--depth-twilight);
    color: var(--ink-bright);
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--brand-shadow);
}
input.error, select.error, textarea.error {
    border-color: var(--error);
}
input::placeholder, textarea::placeholder {
    color: var(--ink-faint);
}
textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}
select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239BA8B8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
select option {
    background: var(--depth-twilight);
    color: var(--ink-bright);
}

/* ───────────────────────────────────────────────────────────────
   16. SUPPORT RAIL (pre-footer donate CTA)
   ─────────────────────────────────────────────────────────────── */

.support-rail {
    background: var(--depth-trench);
    border-top: 1px solid var(--line-brand);
    border-bottom: 1px solid var(--line-brand);
    padding: var(--space-12) 0;
    margin-top: var(--space-16);
}
.support-rail-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    align-items: flex-start;
}
@media (min-width: 800px) {
    .support-rail-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.support-rail-msg { max-width: 36em; }
.support-rail-msg p {
    margin: var(--space-2) 0 0;
    color: var(--ink-bright);
}
.support-rail-tag {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--brand-bright);
    margin-bottom: var(--space-2);
    display: block;
}
.support-rail-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.support-rail-link {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.9375rem;
}
.support-rail-link:hover { color: var(--brand-bright); }

/* ───────────────────────────────────────────────────────────────
   17. FOOTER
   ─────────────────────────────────────────────────────────────── */

footer {
    background: var(--depth-trench);
    color: var(--ink-bright);
    border-top: 1px solid var(--line);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-12) var(--container-pad);
    max-width: var(--container-max);
    margin: 0 auto;
}
@media (min-width: 800px) {
    .footer-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: var(--space-12);
        padding-left: 0;
        padding-right: 0;
    }
}
.footer-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-moonlight);
    margin: 0 0 var(--space-3);
    letter-spacing: -0.005em;
}
.footer-col + .footer-col .footer-heading { margin-top: var(--space-6); }
.footer-col p {
    margin: var(--space-2) 0;
    color: var(--ink-bright);
}
.footer-col a { color: var(--ink-bright); }
.footer-col a:hover { color: var(--brand-bright); }
.footer-sub {
    color: var(--ink-muted);
    font-size: 0.9375rem;
}
.footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}
.footer-social li { margin-top: 0; }
.footer-social a {
    font-size: 0.9375rem;
    color: var(--ink-muted);
}
.footer-social a:hover { color: var(--brand-bright); }
.footer-legal {
    border-top: 1px solid var(--line);
    padding: var(--space-6) var(--container-pad);
    text-align: center;
    color: var(--ink-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
    max-width: var(--container-max);
    margin: 0 auto;
}
.footer-legal p { margin: var(--space-1) 0; }

/* Footer contact form — uses .contact-field tokens above */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 540px;
}

/* ───────────────────────────────────────────────────────────────
   18. 404
   ─────────────────────────────────────────────────────────────── */

.page-404 {
    text-align: center;
    padding: var(--space-24) 0 var(--space-16);
}
.page-404 .glyph {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(4rem, 14vw, 8rem);
    color: var(--brand);
    line-height: 1;
    margin: 0 0 var(--space-2);
    letter-spacing: -0.02em;
}
.page-404 h1 {
    font-size: 1.5rem;
    margin-top: 0;
}

/* ───────────────────────────────────────────────────────────────
   19. UTILITIES
   ─────────────────────────────────────────────────────────────── */

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ───────────────────────────────────────────────────────────────
   20. ANIMATIONS
   ─────────────────────────────────────────────────────────────── */

@keyframes manta-drift {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ───────────────────────────────────────────────────────────────
   21. RESPONSIVE
   ─────────────────────────────────────────────────────────────── */

@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.375rem; }
    h4 { font-size: 1.125rem; }
    section { padding: var(--space-24) 0; }
    .hero { padding: var(--space-3) 0 var(--space-6); }
    .hero-post { padding: var(--space-24) 0 var(--space-16); }
    .card { padding: var(--space-8); }
}

@media (min-width: 900px) {
    .carousel-slide { flex-basis: 45%; }
}

/* Tablet & below: hamburger nav */
@media (max-width: 767px) {
    .nav-toggle { display: flex; }
    header > .container {
        flex-wrap: wrap;
        height: auto;
        min-height: 56px;
        padding-top: var(--space-2);
        padding-bottom: var(--space-2);
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: var(--space-3) 0;
        border-top: 1px solid var(--line);
        margin-top: var(--space-2);
    }
    header.nav-open .nav-links { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        width: 100%;
        padding: var(--space-3) var(--space-4);
        border-radius: 0;
    }
    .nav-cta-item .nav-cta {
        margin: var(--space-2) var(--space-4);
        text-align: center;
        border-radius: var(--radius-sm);
    }
}

@media (max-width: 480px) {
    body { font-size: 1rem; }
    :root { --container-pad: 1rem; }
    .btn { width: 100%; text-align: center; }
    .btn-ghost, .nav-cta-item .nav-cta { width: auto; }
    .support-rail-actions { width: 100%; flex-direction: column; align-items: stretch; }
    .support-rail-link { text-align: center; }
}
