﻿/* Andy Warren for NC House — A Path Forward
   Light Theme • POP: HIGH • EXTRA SPICE • HERO SUBTITLE LEGIBILITY
   ------------------------------------------------------------
   • White base + dark text      • Animated brand accents
   • Elevated hero frames        • Card gradient borders + glow
   • CTA shine & flowing fills   • Donation spotlight sweep
   • Event accent growth         • Brand scrollbars
   • HERO SUBTITLE: frosted plate + micro outline for readability
   • Respects prefers-reduced-motion
*/

/* ===============================
   Core theme variables (NC colors)
=============================== */
:root {
    --bg: #ffffff;
    --text: #0b0e14;
    --muted: #4b5565;
    --blue: #002868; /* NC dark blue */
    --red: #BF0A30; /* NC red */
    --gold: #FFCA00; /* NC gold */

    --white: #FFFFFF;
    --surface: rgba(0,0,0,.02);
    --border: rgba(0,0,0,.12);
    /* Shadows / glow */
    --shadow-sm: 0 6px 16px rgba(17,24,39,.10);
    --shadow-md: 0 10px 24px rgba(17,24,39,.12);
    --shadow-lg: 0 18px 36px rgba(17,24,39,.16);
    --glow-brand: 0 0 0 2px rgba(255,202,0,.45), 0 12px 28px rgba(0,40,104,.20);
    /* Animated gradients */
    --grad: linear-gradient(90deg, var(--blue), var(--gold), var(--red));
    --grad-vert: linear-gradient(180deg, var(--blue), var(--gold));
    /* Radii */
    --r-sm: 12px;
    --r-md: 14px;
    --r-lg: 16px;
    --r-xl: 18px;
}

/* ===============================
   Base / resets
=============================== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Helvetica Neue", sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--text);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Light body with subtle brand vignette */
body {
    background-color: var(--bg);
    background-image: radial-gradient(720px 360px at 8% 18%, rgba(0,40,104,.08), transparent), radial-gradient(560px 260px at 84% 10%, rgba(191,10,48,.06), transparent), radial-gradient(820px 380px at 34% 84%, rgba(255,202,0,.10), transparent);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: auto;
    background-position: center;
    /* Sticky footer structure */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Layout containers */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 20px 0;
}

/* Sticky footer page structure */
main {
    flex: 1;
    padding-top: 12px;
    padding-bottom: 140px;
}

/* ===============================
   Header / Navigation (glass on light)
=============================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(10px) saturate(120%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 22px rgba(17,24,39,.10);
}

    .site-header::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 2px;
        background: var(--grad);
        opacity: .35;
        pointer-events: none;
    }

    .site-header.is-scrolled {
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(12px) saturate(130%);
        border-bottom-color: rgba(0,0,0,.10);
        box-shadow: 0 12px 28px rgba(17,24,39,.14);
    }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 24px;
}

.logo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--gold));
}

.brand-title .accent {
    color: #C99600;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    position: relative;
}

    .nav-link:hover {
        background: rgba(0,0,0,.06);
    }

    .nav-link.active {
        background: rgba(0,0,0,.08);
    }

        .nav-link.active::after {
            content: "";
            position: absolute;
            left: 10px;
            right: 10px;
            bottom: 4px;
            height: 2px;
            border-radius: 2px;
            background: var(--grad);
            opacity: .95;
            animation: slideGlow 2.6s ease-in-out infinite;
        }

@keyframes slideGlow {
    0%,100% {
        box-shadow: 0 0 0 rgba(255,202,0,0);
    }

    50% {
        box-shadow: 0 0 8px rgba(255,202,0,.45);
    }
}

/* Mobile nav */
.nav-toggle {
    display: none;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}

@media (max-width: 900px) {
    .primary-nav {
        display: none;
        position: absolute;
        right: 16px;
        top: 60px;
        flex-direction: column;
        background: rgba(255,255,255,.98);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 8px;
        min-width: 220px;
        box-shadow: var(--shadow-md);
    }

        .primary-nav.open {
            display: flex;
        }

    .nav-toggle {
        display: inline-block;
    }

    .primary-nav .nav-link {
        padding: 10px 12px;
    }
}

/* ===============================
   Buttons (shine + flowing gradient + press)
=============================== */
button, input[type=button], input[type=submit], input[type=reset], a.btn, button.btn, input.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: var(--r-sm);
    font-weight: 800;
    line-height: 1;
    text-align: center;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn, .btn-primary {
    background: var(--grad);
    color: #00131a;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: linear-gradient(90deg, var(--blue), var(--gold));
    color: #fff;
}

.btn-outline, input[type=reset], button[type=reset] {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-small {
    padding: 8px 12px;
    font-weight: 700;
}

.btn-large {
    padding: 14px 22px;
    font-size: 18px;
    font-weight: 800;
}

/* Top highlight + sheen sweep */
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--r-sm);
    background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,0) 30%);
    pointer-events: none;
}

.btn::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -20%;
    width: 40%;
    height: 180%;
    transform: rotate(25deg) translateX(-120%);
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 100%);
    mix-blend-mode: screen;
    opacity: .9;
    transition: transform .45s ease;
}

.btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    transition: transform .15s ease, filter .15s ease;
}

    .btn:hover::after {
        transform: rotate(25deg) translateX(140%);
    }

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 8px 18px rgba(17,24,39,.12);
}

.btn:focus-visible, button:focus-visible, input[type=submit]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.primary-nav .btn {
    margin-left: 4px;
}

/* Flowing gradient background + pulse ring on hover */
.btn, .btn-primary, .btn-secondary {
    background-size: 220% 100%;
    animation: btnFlow 9s linear infinite;
}

@keyframes btnFlow {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.btn:hover, .btn:focus-visible {
    animation-duration: 3s;
    box-shadow: 0 18px 32px rgba(17,24,39,.18), 0 0 0 2px rgba(255,202,0,.45), 0 0 26px rgba(255,202,0,.28);
}

/* ===============================
   Heroes (cinematic + standard) with premium frame
=============================== */
.hero--cinematic,
.hero {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.hero--cinematic {
    min-height: clamp(460px, 72vh, 760px);
    display: grid;
    place-items: center;
    text-align: center;
    margin: 12px -24px 24px; /* full-bleed inside container */
}

@media (max-width: 900px) {
    .hero--cinematic {
        margin: 12px -16px 20px;
    }
}

.hero {
    padding-top: 28px;
}

    .hero .section-sub {
        margin-top: 6px;
        color: var(--muted);
    }

.hero__bg, .hero__bg video, .hero__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,.38) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    max-width: 980px;
}

.hero__title {
    font-size: clamp(40px, 8.5vw, 96px);
    font-weight: 900;
    letter-spacing: .5px;
    line-height: 1.05;
    margin: 0;
}

.hero__subtitle {
    margin-top: 10px;
    font-size: clamp(18px, 3.2vw, 28px);
    color: rgba(11,14,20,.78);
    font-style: italic;
    text-shadow: 0 2px 14px rgba(0,0,0,.22);
}

/* Animated gradient edge frame */
.hero--cinematic::after,
.hero::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--r-xl);
    pointer-events: none;
    padding: 1px;
    background: var(--grad) border-box;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: .4;
    filter: drop-shadow(0 0 14px rgba(255,202,0,.25));
    animation: heroEdge 12s linear infinite;
}

@keyframes heroEdge {
    0% {
        filter: hue-rotate(0deg) drop-shadow(0 0 10px rgba(255,202,0,.18));
    }

    50% {
        filter: hue-rotate(20deg) drop-shadow(0 0 16px rgba(255,202,0,.32));
    }

    100% {
        filter: hue-rotate(0deg) drop-shadow(0 0 10px rgba(255,202,0,.18));
    }
}

/* Optional soft diagonal sheen through the cinematic hero */
.hero--cinematic::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,.08), rgba(255,255,255,0) 30%, rgba(255,255,255,.10) 60%, rgba(255,255,255,0));
    transform: translateX(-30%);
    animation: heroSheen 8s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes heroSheen {
    0%,100% {
        transform: translateX(-30%);
        opacity: .25
    }

    50% {
        transform: translateX(30%);
        opacity: .45
    }
}

/* Hero Logo */
.hero-logo {
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 10;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
}

    .hero-logo img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        display: block;
        background: transparent;
    }

    .hero-logo::before, .hero-logo::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        pointer-events: none;
        filter: blur(1px);
    }

    .hero-logo::before {
        background: linear-gradient(105deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.20) 50%, rgba(255,255,255,0) 65%);
        transform: translateX(-140%);
        animation: heroSheenLtoR 10s ease-in-out infinite;
        animation-delay: .6s;
    }

    .hero-logo::after {
        background: linear-gradient(105deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.18) 50%, rgba(255,255,255,0) 65%);
        transform: translateX(140%);
        animation: heroSheenRtoL 10s ease-in-out infinite;
        animation-delay: 5.8s;
    }

@keyframes heroSheenLtoR {
    0% {
        transform: translateX(-140%);
        opacity: 0
    }

    5% {
        opacity: .85
    }

    12% {
        transform: translateX(140%);
        opacity: .75
    }

    16% {
        opacity: 0
    }

    100% {
        transform: translateX(140%);
        opacity: 0
    }
}

@keyframes heroSheenRtoL {
    0% {
        transform: translateX(140%);
        opacity: 0
    }

    5% {
        opacity: .85
    }

    12% {
        transform: translateX(-140%);
        opacity: .75
    }

    16% {
        opacity: 0
    }

    100% {
        transform: translateX(-140%);
        opacity: 0
    }
}

@media (hover:hover) and (pointer:fine) {
    .hero-logo:hover {
        transform: scale(1.03);
        transition: transform .25s ease;
    }
}

@media (max-width: 600px) {
    .hero-logo {
        width: 68px;
        height: 68px;
        top: 18px;
        left: 18px;
    }
}

/* ===============================
   Grid & Cards (gradient borders + glow)
=============================== */
.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 20px;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: var(--r-lg);
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform-style: preserve-3d;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    will-change: transform;
    isolation: isolate; /* ensure pseudo-elements layer correctly */
}

    .card h3 {
        margin-top: 0;
        position: relative;
        padding-top: 12px;
    }

        /* Brand ribbon above h3 (animated length) */
        .card h3::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            height: 4px;
            width: 54px;
            border-radius: 3px;
            background: var(--grad);
            opacity: .95;
            transition: width .25s ease, opacity .25s ease, filter .25s ease;
            filter: drop-shadow(0 2px 6px rgba(191,10,48,.18));
        }

    /* Animated gradient border “halo” */
    .card::after {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: calc(var(--r-lg) + 2px);
        padding: 1px;
        background: var(--grad) border-box;
        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        mask-composite: exclude;
        -webkit-mask-composite: xor;
        opacity: .0;
        pointer-events: none;
        transition: opacity .25s ease;
    }

    .card:hover::after {
        opacity: .35;
    }

    /* Sheen sweep inside card */
    .card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: var(--r-lg);
        background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,.22), rgba(255,255,255,0));
        transform: translateX(-120%);
        transition: transform .6s ease;
        pointer-events: none;
        mix-blend-mode: screen;
    }

    .card:hover::before {
        transform: translateX(0);
    }

    .card:hover {
        transform: translateY(-6px) scale(1.012);
        box-shadow: var(--shadow-lg);
        border-color: rgba(0,0,0,.10);
    }

    .card:focus-within {
        box-shadow: var(--shadow-lg), var(--glow-brand);
    }

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(12px);
}

    .reveal.visible {
        opacity: 1;
        transform: none;
        transition: all .5s ease;
    }

/* Tilt support */
.card[data-tilt="true"] {
    perspective: 800px;
}

    .card[data-tilt="true"] .tilt-inner {
        transform: rotateX(0deg) rotateY(0deg);
        transition: transform .12s ease-out;
        will-change: transform;
    }

/* CSS-only micro tilt (also works without JS) */
@media (hover:hover) and (pointer:fine) {
    .card:not(.no-tilt):hover .tilt-inner {
        transform: translateZ(0) rotateX(1.4deg) rotateY(-1.4deg);
    }

    .grid > .card .tilt-inner {
        transition: transform .18s ease;
    }
}

/* ===============================
   Forms (light fields)
=============================== */
input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: #f8fafc;
    color: var(--text);
    transition: box-shadow .2s ease, border-color .2s ease;
}

    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: rgba(0,0,0,.18);
        box-shadow: 0 0 0 3px rgba(255,202,0,.28);
    }

label {
    display: block;
    margin: 10px 0 6px;
    color: var(--muted);
}

form .row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

    form .row > div {
        grid-column: span 6;
    }

@media (max-width: 900px) {
    form .row > div {
        grid-column: span 12;
    }
}

form .actions {
    margin-top: 12px;
}

/* ===============================
   Meet page portrait / placeholder
=============================== */
.placeholder {
    flex: 0 0 auto;
}

    .placeholder.photo {
        width: 100%;
        max-width: 560px;
        aspect-ratio: 4 / 3;
        border-radius: var(--r-lg);
        background: #ffffff;
        border: 2px dashed var(--border);
        overflow: hidden;
        background-size: cover;
        background-position: center;
    }

        .placeholder.photo img, .meet-portrait, .meet-photo {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: var(--r-lg);
        }

    .meet-portrait, .meet-photo, .placeholder.photo {
        align-self: start;
    }

/* ===============================
   Footer
=============================== */
.footer {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    color: var(--muted);
    clear: both;
}

    .footer .footer-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 16px;
    }

        .footer .footer-grid > div {
            grid-column: span 4;
        }

@media (max-width: 900px) {
    .footer .footer-grid > div {
        grid-column: span 12;
    }
}

.badge-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.05);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
}

.footer a {
    color: var(--text);
}

.footer p, .footer strong {
    margin: 4px 0;
}

.compliance {
    font-size: 12px;
    color: var(--muted);
}

/* Footer medallion refinement on light */
.footer-logo-wrap {
    position: absolute;
    top: 20px;
    z-index: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 0deg, var(--blue), var(--gold), var(--red), var(--blue));
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 22px rgba(17,24,39,.12), 0 6px 26px rgba(17,24,39,.10);
    pointer-events: none;
}

    .footer-logo-wrap img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: #ffffff;
        padding: 6px;
        box-shadow: inset 0 0 12px rgba(0,0,0,0.05);
        transition: transform .25s ease;
    }

        .footer-logo-wrap img:hover {
            transform: scale(1.05);
        }

.footer-logo-left {
    left: 20px;
}

.footer-logo-right {
    right: 20px;
}

footer.container.footer {
    position: relative;
    z-index: 1;
}

/* ===============================
   Link underline effect (content areas)
=============================== */
main a:not(.btn):not(.nav-link) {
    background-image: var(--grad);
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .25s ease, color .2s ease, text-shadow .2s ease;
}

    main a:not(.btn):not(.nav-link):hover {
        background-size: 100% 2px;
        text-decoration: none;
        text-shadow: 0 1px 0 rgba(255,202,0,.15);
    }

/* ===============================
   Section titles (flag + pulse)
=============================== */
.section-title {
    position: relative;
    padding-left: 14px;
}

    .section-title::before {
        content: "";
        position: absolute;
        left: 0;
        top: 6px;
        width: 6px;
        height: 18px;
        border-radius: 2px;
        background: var(--grad-vert);
        box-shadow: 0 4px 10px rgba(0,0,0,.12);
        animation: flagPulse 2.4s ease-in-out infinite;
    }

@keyframes flagPulse {
    0%,100% {
        filter: drop-shadow(0 0 0 rgba(255,202,0,0))
    }

    50% {
        filter: drop-shadow(0 0 8px rgba(255,202,0,.45))
    }
}

/* ===============================
   Citations Card (Issues page)
=============================== */
.citations-card {
    display: block;
    width: 100%;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}

.grid > .citations-card .tilt-inner {
    height: auto;
}

.citations-card a {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.card::before, .card::after {
    pointer-events: none;
}

.citations-columns {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    margin-top: 8px;
}

@media (max-width: 1200px) {
    .citations-columns {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 900px) {
    .citations-columns {
        grid-template-columns: 1fr;
    }
}

.citations-col h4 {
    margin: 0 0 8px;
    color: var(--text);
    font-weight: 800;
}

.citations-list {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
    color: var(--muted);
    font-size: 14px;
}

    .citations-list li {
        margin: 6px 0;
        line-height: 1.5;
        word-break: break-word;
    }

    .citations-list a {
        color: var(--muted);
        text-decoration: none;
        border-bottom: 1px dotted var(--border);
        overflow-wrap: anywhere;
    }

        .citations-list a:hover {
            color: var(--text);
            border-bottom-color: var(--text);
        }

.citations-card::before, .citations-card::after {
    content: none !important;
}

/* ===============================
   Countdown
=============================== */
.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }
}

.countdown__unit {
    text-align: center;
    padding: 16px;
    border-radius: var(--r-md);
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

    .countdown__unit::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: var(--r-md);
        background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 40%);
        pointer-events: none;
    }

.countdown__num {
    display: block;
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 900;
    line-height: 1;
}

.countdown__label {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.countdown--soon .countdown__unit {
    border-color: rgba(255,202,0,.55);
    box-shadow: 0 10px 28px rgba(255,202,0,.18);
}

.countdown__unit:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ===============================
   News page
=============================== */
.news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.news-controls {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.news-control {
    grid-column: span 3;
}

.news-actions {
    grid-column: span 3;
    display: flex;
    gap: 8px;
    align-items: end;
}

@media (max-width: 900px) {
    .news-control, .news-actions {
        grid-column: span 12;
    }
}

#news-list {
    margin-top: 8px;
}

    #news-list > li.card {
        margin: 10px 0;
    }

@media (min-width: 1200px) {
    .news-controls {
        gap: 14px;
    }

    #news-list > li.card {
        margin: 12px 0;
    }
}

.container--wide {
    max-width: 1480px;
}

#volunteerForm .actions {
    display: flex;
    gap: 12px;
}

/* ===============================
   Events list
=============================== */
.event-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 14px;
    align-items: start;
    padding: 14px;
    margin: 10px 0;
    border-radius: var(--r-md);
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .event-item::before {
        content: "";
        position: absolute;
        left: -1px;
        top: -1px;
        bottom: -1px;
        width: 4px;
        border-radius: 14px 0 0 14px;
        background: linear-gradient(180deg, var(--blue), var(--gold), var(--red));
        transform: scaleY(.6);
        opacity: .65;
        transition: transform .25s ease, opacity .25s ease;
    }

    .event-item:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: rgba(0,0,0,.10);
    }

        .event-item:hover::before {
            transform: scaleY(1);
            opacity: 1;
        }

.event-left {
    display: flex;
    justify-content: center;
}

.event-datebox {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    text-align: center;
    line-height: 1;
}

.event-day {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
}

.event-mon {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.event-main {
    display: grid;
    gap: 6px;
}

.event-title {
    font-weight: 800;
    font-size: 16px;
    color: var(--text);
}

.event-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.event-desc {
    margin: 6px 0 0;
    color: var(--text);
    font-size: 14px;
}

.event-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.event-btn {
    padding: 6px 10px;
}

@media (max-width: 600px) {
    .event-item {
        grid-template-columns: 56px 1fr;
    }

    .event-datebox {
        width: 48px;
        height: 48px;
    }

    .event-day {
        font-size: 18px;
    }
}

/* Grouped day header */
.event-day-header {
    margin: 12px 0 6px;
    padding: 6px 10px;
    border-left: 3px solid var(--gold);
    color: var(--muted);
    list-style: none;
}

.event-day-title {
    font-weight: 800;
    color: var(--text);
}
/* Meta chips */
.event-meta .event-time, .event-meta .event-loc {
    line-height: 1.4;
}

.event-loc {
    white-space: nowrap !important;
    display: inline-block !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===============================
   Donation section
=============================== */
.donation-section {
    margin: 20px 0;
}

.donation-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: var(--r-lg);
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    width: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
    isolation: isolate;
}
    /* Animated border */
    .donation-card::after {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: calc(var(--r-lg) + 2px);
        padding: 1px;
        background: var(--grad) border-box;
        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        mask-composite: exclude;
        -webkit-mask-composite: xor;
        opacity: .28;
        pointer-events: none;
        animation: borderFlow 8s linear infinite;
    }

@keyframes borderFlow {
    0% {
        filter: hue-rotate(0deg)
    }

    50% {
        filter: hue-rotate(20deg)
    }

    100% {
        filter: hue-rotate(0deg)
    }
}

.donation-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Moving spotlight sweep */
.donation-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(240px 160px at -10% 30%, rgba(255,255,255,.55), transparent 60%), radial-gradient(240px 160px at 110% 70%, rgba(255,255,255,.40), transparent 60%);
    mix-blend-mode: screen;
    animation: donationSweep 12s ease-in-out infinite;
    opacity: .35;
    pointer-events: none;
}

@keyframes donationSweep {
    0% {
        transform: translateX(0%);
        opacity: .30
    }

    50% {
        transform: translateX(-3%);
        opacity: .45
    }

    100% {
        transform: translateX(0%);
        opacity: .30
    }
}

.donation-card .tilt-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.donation-title {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 6px;
    text-align: left;
}

.donation-sub {
    margin: 0 0 12px;
    color: var(--muted);
    text-align: left;
    max-width: 72ch;
}

.donation-amounts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.donation-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}

.donation-amounts .is-selected {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
}
/* Punch up main Donate on hover */
.donation-actions .btn-large:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 22px 36px rgba(17,24,39,.22), 0 0 0 2px rgba(255,202,0,.55), 0 0 28px rgba(255,202,0,.32);
}
/* Disable tilt if .no-tilt is present */
.no-tilt .tilt-inner {
    transform: none !important;
}

@media (max-width: 600px) {
    .donation-amounts {
        justify-content: flex-start;
    }

    .donation-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Spacing harmony with Events */
#events-card {
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

/* ===============================
   Dividers between stacked sections
=============================== */
.section + .section,
.section + .donation-section,
.donation-section + #events-card {
    position: relative;
    margin-top: 24px;
}

    .section + .section::before,
    .section + .donation-section::before,
    .donation-section + #events-card::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -12px;
        height: 1px;
        background: linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,.0) 30%, rgba(0,0,0,.10) 70%, rgba(0,0,0,.0));
    }

/* ===============================
   Accessibility & Motion
=============================== */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,1px,1px);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   EXTRA SPICE (LOUD++) — kinetic titles, nav underline,
   card speckles & halo pulse, brand scrollbars, etc.
========================================================= */

/* Intensity knobs */
:root {
    --pop-anim-speed: 9s; /* slower = calmer; faster = louder */
    --pop-anim-speed-fast: 3s; /* hover acceleration */
    --pop-glow: 1; /* 0.8 subtle → 1 strong */
}

/* HERO: kinetic gradient title text */
.hero__title {
    background: linear-gradient(90deg, var(--blue), var(--gold), var(--red), var(--blue));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: heroTextFlow var(--pop-anim-speed) linear infinite;
    text-shadow: 0 2px 14px rgba(0,0,0,.22);
}

@keyframes heroTextFlow {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

/* Optional gradient shimmer for generic hero subtitles (overridden for cinematic heroes below) */
.hero__subtitle {
    background: linear-gradient(90deg, #111, #333, #111);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: subtitleSlow 16s linear infinite;
    text-shadow: none;
}

@keyframes subtitleSlow {
    0%,100% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }
}

/* NAV: animated underline on hover */
.primary-nav .nav-link {
    background-image: linear-gradient(90deg, var(--blue), var(--gold), var(--red));
    background-size: 0% 2px;
    background-position: 50% 100%;
    background-repeat: no-repeat;
    transition: background-size .22s ease;
}

    .primary-nav .nav-link:hover {
        background-size: 100% 2px;
    }

/* CARDS: soft brand speckles that drift + halo pulse + ribbon breathe */
.card {
    background-image: radial-gradient(18px 18px at 10% 12%, rgba(0,40,104,.06), transparent 60%), radial-gradient(22px 22px at 82% 28%, rgba(191,10,48,.06), transparent 60%), radial-gradient(20px 20px at 28% 82%, rgba(255,202,0,.08), transparent 60%);
    background-blend-mode: screen;
    transition: background-position .35s ease;
}

    .card:hover {
        background-position: 12% 8%, 78% 24%, 32% 78%;
    }

        .card:hover::after {
            animation: cardHalo 2.2s ease-in-out infinite;
        }

@keyframes cardHalo {
    0%,100% {
        opacity: .28;
        filter: drop-shadow(0 0 10px rgba(255,202,0,.22))
    }

    50% {
        opacity: .42;
        filter: drop-shadow(0 0 16px rgba(255,202,0,.38))
    }
}

.card h3::before {
    animation: ribbonPulse 2.4s ease-in-out infinite;
}

@keyframes ribbonPulse {
    0%,100% {
        filter: drop-shadow(0 2px 6px rgba(191,10,48,.18))
    }

    50% {
        filter: drop-shadow(0 3px 12px rgba(255,202,0,.40))
    }
}

/* BRAND SCROLLBAR (WebKit/Blink) */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: rgba(0,0,0,.05);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background-image: linear-gradient(180deg, var(--blue), var(--gold), var(--red));
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.6);
}

    *::-webkit-scrollbar-thumb:hover {
        filter: brightness(1.08);
    }

/* ===============================
   HERO SUBTITLE LEGIBILITY — for cinematic heroes (Home & Meet)
   Overrides shimmer with a frosted plate + micro-outline
=============================== */
.hero--cinematic .hero__subtitle {
    position: relative;
    z-index: 3; /* above overlay */
    color: #fff; /* force white text for contrast */
    -webkit-text-fill-color: #fff;
    /* punchy but clean glow + micro outline for bright zones */
    text-shadow: 0 2px 18px rgba(0,0,0,.45), 0 0 1px rgba(0,0,0,.6);
    -webkit-text-stroke: 0.4px rgba(0,0,0,.30);
    text-stroke: 0.4px rgba(0,0,0,.30);
    /* kill the generic shimmer background for this context */
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

    /* Frosted/blurred plate behind the subtitle line only */
    .hero--cinematic .hero__subtitle::before {
        content: "";
        position: absolute;
        inset: -6px -12px; /* padding around subtitle text */
        border-radius: 999px; /* pill shape */
        background: rgba(0,0,0,.32); /* translucent dark plate */
        box-shadow: 0 6px 28px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.08);
        backdrop-filter: blur(6px) saturate(115%);
        -webkit-backdrop-filter: blur(6px) saturate(115%);
        z-index: -1; /* sits behind the text */
    }

/* Slight spacing so the plate breathes on smaller screens */
@media (max-width: 600px) {
    .hero--cinematic .hero__subtitle::before {
        inset: -8px -10px;
    }
}

/* Motion safety for LOUD++ */
@media (prefers-reduced-motion: reduce) {
    .hero__title, .hero__subtitle,
    .btn, .btn-primary, .btn-secondary,
    .card::after, .card h3::before, .donation-card::before,
    .event-item::before, .section-title,
    .primary-nav .nav-link {
        animation: none !important;
        transition: none !important;
    }
}


/* =========================================================
   HERO: Clouds drift + Ken Burns (no HTML changes)
   Targets your .hero--cinematic and .hero__bg structure.
   The cloud overlay sits between the <img> and your .hero__overlay.
   ========================================================= */

/* 1) Subtle Ken Burns on the base hero image */
.hero__bg img {
    will-change: transform;
    transform-origin: center 40%;
    animation: heroKenBurns 60s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
    0% {
        transform: scale(1.05) translate3d(0px, 0px, 0);
    }

    50% {
        transform: scale(1.08) translate3d(-10px, -6px, 0);
    }

    100% {
        transform: scale(1.11) translate3d(-20px, -10px, 0);
    }
}

/* 2) Procedural clouds layer (CSS-only), below your overlay */
.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0; /* below .hero__overlay (which is a sibling) */
    pointer-events: none;
    /* Soft, abstract cloud shapes via layered radial-gradients */
    background: radial-gradient(120px 60px at 15% 30%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%), radial-gradient(200px 90px at 40% 20%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%), radial-gradient(160px 70px at 70% 28%, rgba(255,255,255,.16), rgba(255,255,255,0) 60%), radial-gradient(220px 100px at 85% 40%, rgba(255,255,255,.14), rgba(255,255,255,0) 60%), radial-gradient(180px 80px at 30% 70%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%), radial-gradient(260px 120px at 60% 75%, rgba(255,255,255,.16), rgba(255,255,255,0) 60%);
    /* Make them feel airy */
    opacity: .30;
    filter: blur(0.5px) saturate(105%);
    mix-blend-mode: screen;
    /* Slow drift */
    background-repeat: repeat;
    background-size: 1200px 800px, 1600px 900px, 1300px 840px, 1700px 920px, 1500px 880px, 1800px 960px;
    animation: cloudsDrift 120s linear infinite;
}

/* Animate the layered backgrounds horizontally for drift */
@keyframes cloudsDrift {
    0% {
        background-position: 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px;
    }

    100% {
        background-position: -600px 0px, -800px 0px, -650px 0px, -900px 0px, -780px 0px, -960px 0px;
    }
}

/* 3) (Optional) Use a tiled PNG for photo-real clouds
   ---------------------------------------------------
   Add /assets/clouds-loop.png (transparent, seamless tile).
   Then uncomment the block below to replace the procedural clouds:

.hero__bg::after {
  background-image: url("/assets/clouds-loop.png");
  background-repeat: repeat;
  background-size: 1200px 700px;
  animation: cloudsTile 90s linear infinite;
  opacity: .28;
  filter: blur(0.6px) saturate(110%);
  mix-blend-mode: screen;
}
@keyframes cloudsTile {
  from { background-position: 0 0; }
  to   { background-position: -1200px 0; }
}
*/

/* 4) Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero__bg img,
    .hero__bg::after {
        animation: none !important;
        transform: none !important;
    }
}

/* =========================================================
   HERO: Clouds drift + Ken Burns (tile-based)
   Targets your .hero--cinematic and .hero__bg structure.
   The clouds tile sits ABOVE the <img> and BELOW .hero__overlay.
   ========================================================= */

/* 1) Subtle Ken Burns on the base hero image */
.hero__bg img {
    will-change: transform;
    transform-origin: center 40%;
    animation: heroKenBurns 60s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
    0% {
        transform: scale(1.05) translate3d(0px, 0px, 0);
    }

    50% {
        transform: scale(1.08) translate3d(-10px, -6px, 0);
    }

    100% {
        transform: scale(1.11) translate3d(-20px, -10px, 0);
    }
}

/* --- Safe cross-document fade transition (no hero interference) --- */
@view-transition {
    navigation: auto;
}

/* Slightly extend duration; default is very quick */
::view-transition-group(root) {
    animation-duration: 360ms;
    animation-timing-function: ease-in-out;
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(root) {
        animation-duration: 0ms !important;
    }
}

/* 2) Cloud layer: uses your new /assets/clouds-loop.png */
.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0; /* below .hero__overlay */
    pointer-events: none;
    background-image: url("/assets/clouds-loop.png");
    background-repeat: repeat;
    background-size: 1200px 700px;
    background-position: 0 0;
    /* Gentle drift to the left; slow and calm by default */
    animation: cloudsTile 90s linear infinite;
    /* Airy feel: transparent white clouds over photo */
    opacity: .28;
    filter: blur(0.6px) saturate(110%);
    mix-blend-mode: screen;
}

@keyframes cloudsTile {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -1200px 0;
    }
}

/* 3) Motion safety */
@media (prefers-reduced-motion: reduce) {
    .hero__bg img,
    .hero__bg::after {
        animation: none !important;
        transform: none !important;
    }
}

/* Register to Vote button tweaks */
.register-btn {
    margin-top: 8px;
    display: inline-block;
    text-align: center;
    background: linear-gradient(90deg, var(--blue), var(--gold), var(--red));
    color: #fff !important;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(17,24,39,.16);
}

    .register-btn:hover {
        filter: brightness(1.06);
        transform: translateY(-1px);
    }

/* Register to Vote button tuning */
.register-btn {
    /* inherits your .btn-secondary gradient (blue → gold) */
    white-space: nowrap;
}

/* Tighten the pair on narrow screens if needed */
@media (max-width: 600px) {
    .donation-actions .btn {
        width: 100%;
    }
}

/* Roomy = more padding; Steady = no hover raise/glow */
.card.card--roomy {
    /* already added earlier, repeated here for convenience */
    padding: clamp(24px, 3vw, 36px) !important;
    border-radius: 18px;
}

    /* Disable the hover "lift"/scale for roomy cards */
    .card.card--roomy:hover {
        transform: none !important; /* stops translateY/scale */
        box-shadow: var(--shadow-md) !important; /* keep a consistent shadow */
        border-color: var(--border) !important; /* avoid glow change */
    }

    /* Also stop the sheen sweep and the gradient halo on hover */
    .card.card--roomy::before,
    .card.card--roomy::after {
        transition: none !important;
    }

    .card.card--roomy:hover::before,
    .card.card--roomy:hover::after {
        transform: none !important;
        opacity: 0 !important; /* no animated highlights */
    }

    /* If your roomy card uses .tilt-inner, keep it steady too */
    .card.card--roomy .tilt-inner {
        transform: none !important;
        transition: none !important;
    }

/* (Optional) If you never want pointer-driven elevation on these, make the cursor default */
.card.card--roomy {
    cursor: default;
}

.issue-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .issue-link-card:hover .card {
        /* keeps your hover effects clean */
        transform: translateY(-4px);
    }

/* ===============================
   Issue pages: typography & layout
=============================== */
/* Issue pages: full hero width */
.issue-page {
    max-width: 1180px; /* matches your container width */
    margin: 0 auto;
    padding: clamp(16px, 2.5vw, 32px);
}

.issue-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: clamp(26px, 3vw, 42px);
}

.issue-title {
    margin: 0 0 8px;
    font-size: clamp(26px, 4.6vw, 40px);
    line-height: 1.12;
    font-weight: 900;
}

.issue-subtitle {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: clamp(14px, 2.6vw, 18px);
}

/* Body copy */
.issue-body p {
    margin: 12px 0; /* separate each paragraph */
    line-height: 1.65;
    font-size: clamp(15px, 2.4vw, 18px);
}

/* Section headings inside the issue body */
.issue-body h3 {
    margin: 20px 0 8px;
    font-size: clamp(18px, 3.4vw, 24px);
    line-height: 1.25;
    font-weight: 800;
}

/* Brand bullets */
.issue-body ul {
    margin: 10px 0 14px 0;
    padding-left: 24px;
    list-style: none;
}

    .issue-body ul li {
        position: relative;
        margin: 8px 0;
        line-height: 1.6;
        padding-left: 22px;
    }

        .issue-body ul li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.68em;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: linear-gradient(90deg, var(--blue), var(--gold), var(--red));
            box-shadow: 0 2px 6px rgba(0,0,0,.12);
        }

/* “Readability plate” for any pull-quote or key statement */
.issue-quote {
    margin: 18px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0,0,0,.035);
    border: 1px solid var(--border);
    font-weight: 700;
}

/* CTA row under each page */
.issue-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* Optional: subtle top card (hero) look */
.issue-hero {
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

/* Respect reduced motion for any subtle effects you may add later */
@media (prefers-reduced-motion: reduce) {
    .issue-card {
        transition: none !important;
    }
}

/* ===============================
   Meet page — biography layout
=============================== */
.bio-wrap {
    max-width: 1180px; /* match your hero/container width */
    margin: 0 auto;
    padding: clamp(16px, 2.8vw, 32px);
}

.bio-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    padding: clamp(24px, 3.4vw, 44px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(16px, 2vw, 24px);
}

/* If you want a two-column look on desktop: portrait | text */
@media (min-width: 980px) {
    .bio-card {
        grid-template-columns: 420px 1fr; /* left portrait (or photo panel) + right text */
        align-items: start;
    }
}

/* Portrait / image panel */
.bio-photo {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

    .bio-photo img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

/* Title + subhead */
.bio-title {
    margin: 0 0 6px;
    font-size: clamp(26px, 4.6vw, 40px);
    line-height: 1.12;
    font-weight: 900;
}

.bio-sub {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: clamp(14px, 2.6vw, 18px);
}

/* Body copy */
.bio-body p {
    margin: 12px 0;
    line-height: 1.68;
    font-size: clamp(15px, 2.4vw, 18px);
}

/* Section headings within biography */
.bio-body h3 {
    margin: 20px 0 8px;
    font-size: clamp(18px, 3.4vw, 24px);
    line-height: 1.25;
    font-weight: 800;
}

/* Brand bullets for highlights/timeline */
.bio-body ul {
    margin: 10px 0 14px 0;
    padding-left: 24px;
    list-style: none;
}

    .bio-body ul li {
        position: relative;
        margin: 8px 0;
        line-height: 1.6;
        padding-left: 22px;
    }

        .bio-body ul li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.68em;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: linear-gradient(90deg, var(--blue), var(--gold), var(--red));
            box-shadow: 0 2px 6px rgba(0,0,0,.12);
        }

/* Pull-quote (values-forward) */
.bio-quote {
    margin: 18px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0,0,0,.035);
    border: 1px solid var(--border);
    font-weight: 800;
}

/* Accents row (badges, small stats, endorsements logos, optional) */
.bio-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.bio-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.04);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text);
}

/* CTAs under biography */
.bio-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

/* Optional: make the whole top card feel like your “hero card” */
.bio-card.bio-hero {
    box-shadow: var(--shadow-lg);
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
    .bio-card {
        transition: none !important;
    }
}

/* ===============================
   Premium Quote Carousel
   Fade + Slide Hybrid
=============================== */
.quote-carousel-wrap {
    max-width: 1180px;
    margin: 30px auto;
    padding: clamp(16px, 3vw, 32px);
}

.quote-carousel-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: clamp(26px, 3vw, 42px);
}

/* Slides container */
.quote-carousel {
    position: relative;
    height: auto;
    min-height: 140px;
}

/* Each slide */
.quote-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .6s ease, transform .6s ease;
    pointer-events: none;
}

    /* Active slide */
    .quote-slide.active {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

/* Text styling */
.quote-text {
    font-size: clamp(18px, 3vw, 24px);
    line-height: 1.45;
    font-weight: 600;
    margin: 0 0 8px;
}

.quote-author {
    font-size: clamp(14px, 2.3vw, 16px);
    color: var(--muted);
    font-style: italic;
}

/* Controls */
.quote-prev,
.quote-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

    .quote-prev:hover,
    .quote-next:hover {
        background: rgba(0,0,0,.05);
        transform: translateY(-50%) scale(1.08);
    }

.quote-prev {
    left: 12px;
}

.quote-next {
    right: 12px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .quote-slide {
        transition: none !important;
        transform: none !important;
    }
}

/* Make sure slides stack correctly inside the card */
.quote-carousel-card {
    position: relative;
}

.quote-carousel {
    position: relative;
}

.quote-slide {
    position: absolute;
    inset: 0;
}

/* Ensure controls sit above slides and are clickable */
.quote-prev, .quote-next {
    z-index: 5;
}

/* Safety: prevent any accidental pointer-events blocking on wrappers */
.quote-carousel-card, .quote-carousel {
    pointer-events: auto;
}

/* Move carousel arrows to the bottom corners */
.quote-prev,
.quote-next {
    top: auto; /* cancel 50% vertical centering */
    transform: none; /* remove translateY */
    bottom: 14px; /* adjust vertical offset */
}

.quote-prev {
    left: 12px;
}

.quote-next {
    right: 12px;
}

/* Give the slide a little extra bottom padding so text doesn't sit on the arrows */
.quote-carousel-card {
    padding-bottom: calc(clamp(26px, 3vw, 42px) + 46px); /* add ~button height spacing */
}

/* Make entire Home cards clickable without changing their look */
.issue-link-card {
    display: block; /* anchor acts like a block wrapper */
    text-decoration: none; /* no underline on headings */
    color: inherit; /* keep your card text color */
}

    /* Preserve your existing hover/lift effects on .card */
    .issue-link-card .card:hover {
        /* If you previously disabled hover on specific cards, keep that class instead */
        transform: translateY(-4px);
    }

    /* Keyboard focus ring for accessibility */
    .issue-link-card:focus-visible .card,
    .issue-link-card .card:focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: 3px;
        border-radius: 16px; /* match your card radius */
    }

/* Add breathing room between navbar and top cards on News, Issues, Volunteer */
.page-news main,
.page-issues main,
.page-volunteer main {
    margin-top: 24px; /* adjust between 20–36px for taste */
}

/* Optional: if your top element is NOT inside <main>, apply to the container */
.page-news .container:first-child,
.page-issues .container:first-child,
.page-volunteer .container:first-child {
    margin-top: 24px;
}

/* Insert a spacer *inside* main, so header never changes size */
.content-offset-28::before {
    content: "";
    display: block;
    height: 28px; /* adjust to 24–36px to taste */
}

/* Reusable, predictable spacers — use on any page */
.top-gap-20 {
    height: 20px;
}

.top-gap-24 {
    height: 24px;
}

.top-gap-28 {
    height: 28px;
}
/* ← the one used above */
.top-gap-32 {
    height: 32px;
}

/* ===============================
   Spotlight on Community Leaders
=============================== */

/* Page wrap that matches your site container width */
.spotlight-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(16px, 3vw, 32px);
}

/* Slim “hero” header band */
.spotlight-hero {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: clamp(18px, 3vw, 28px);
    margin-bottom: clamp(16px, 2.4vw, 24px);
}

.spotlight-title {
    margin: 0 0 6px;
    font-size: clamp(24px, 4.4vw, 36px);
    font-weight: 900;
    line-height: 1.12;
}

.spotlight-sub {
    margin: 0;
    color: var(--muted);
    font-size: clamp(14px, 2.6vw, 18px);
}

/* Leader grid (cards) */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(14px, 2vw, 20px);
    margin-top: clamp(12px, 2vw, 18px);
}

.leader-card {
    grid-column: span 6; /* 2-up on desktop, 1-up mobile */
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

@media (max-width: 900px) {
    .leader-card {
        grid-column: span 12;
    }
}

.leader-photo {
    aspect-ratio: 16 / 9;
    background: #f3f5f8;
    border-bottom: 1px solid var(--border);
    display: grid;
    place-items: center;
}

    .leader-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.leader-body {
    padding: clamp(16px, 2.4vw, 22px);
}

.leader-name {
    margin: 0 0 4px;
    font-size: clamp(18px, 3.4vw, 24px);
    font-weight: 900;
}

.leader-role {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: clamp(13px, 2.4vw, 15px);
}

.leader-blurb {
    margin: 0;
    line-height: 1.6;
}

.leader-actions {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

/* Make entire card clickable if wrapped in <a> */
a.leader-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Individual Leader Profile Card (detailed) */
.leader-profile {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    padding: clamp(24px, 3.4vw, 44px);
    margin-top: clamp(16px, 2.4vw, 24px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(16px, 2vw, 24px);
}

@media (min-width: 980px) {
    .leader-profile {
        grid-template-columns: 420px 1fr; /* photo | text */
        align-items: start;
    }
}

.leader-profile .bio-photo {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

    .leader-profile .bio-photo img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

.leader-heading {
    margin: 0 0 6px;
    font-size: clamp(26px, 4.6vw, 40px);
    line-height: 1.12;
    font-weight: 900;
}

.leader-sub {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: clamp(14px, 2.6vw, 18px);
}

.leader-bodycopy p {
    margin: 12px 0;
    line-height: 1.68;
    font-size: clamp(15px, 2.4vw, 18px);
}

.leader-bodycopy h3 {
    margin: 18px 0 8px;
    font-size: clamp(18px, 3.4vw, 24px);
    font-weight: 800;
}

.leader-quote {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0,0,0,.035);
    border: 1px solid var(--border);
    font-weight: 700;
}

/* CTA row under the profile */
.leader-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

/* Optional: small header spacer for this page only */
body.page-spotlight .site-header + main {
    padding-top: 24px;
}

.footer-quicklinks {
    margin-top: 12px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .footer-quicklinks a {
        text-decoration: none;
        color: var(--muted);
    }

        .footer-quicklinks a:hover {
            text-decoration: underline;
            color: var(--text);
        }

@media (max-width: 768px) {
    .primary-nav {
        display: none;
        flex-direction: column;
        gap: 1rem;
        background: white;
        padding: 1rem;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.15s ease-out;
    }

        .primary-nav.open {
            display: flex;
            opacity: 1;
        }

    .nav-toggle {
        display: block;
        font-size: 2rem;
        background: none;
        border: none;
        cursor: pointer;
    }
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }
}
.form-message {
    opacity: 0;
    transition: opacity 0.4s ease;
    margin-top: 12px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.95rem;
}

    .form-message.show {
        opacity: 1;
    }

    .form-message.error {
        background: #ffe5e5;
        color: #a40000;
        border: 1px solid #ffb3b3;
    }

    .form-message.success {
        background: #e6ffe6;
        color: #006600;
        border: 1px solid #b3ffb3;
    }
/* Invisible Turnstile overlay fix */
.turnstile-wrapper {
    position: relative;
    width: 1px;
    height: 1px;
}

.cf-turnstile {
    position: relative !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.section-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0 8px;
}

    .section-nav a:hover {
        text-decoration: underline;
    }

.section-nav {
    position: sticky;
    top: 0;
    background: white;
    padding: 10px 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
}

.jump-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px; /* keep this */
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.25rem;
}

    .jump-bar a {
        color: #1a1a1a;
        text-decoration: none;
        font-weight: 500;
        padding-bottom: 2px;
        transition: color 0.2s ease, border-color 0.2s ease;
        border-bottom: 2px solid transparent;
    }

        .jump-bar a:hover {
            color: var(--accent-color, #0a4d2a); /* uses your existing accent if defined */
            border-color: var(--accent-color, #0a4d2a);
        }

@media (max-width: 600px) {
    .jump-bar {
        overflow-x: auto;
        gap: 1.25rem;
        padding: 0.65rem 1rem;
        justify-content: flex-start;
    }
}

.jump-bar a:hover,
.jump-bar a.active {
    color: #0A1F44; /* deep navy */
    border-color: #0A1F44;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* prevents titles from hiding under the bar */
}

.jump-bar a {
    transition: color 0.25s ease, border-color 0.25s ease;
}

.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #0A1F44;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden; /* important for shimmer clipping */
}

    .back-to-top.visible {
        opacity: 1;
        pointer-events: auto;
    }

    /* shimmer */
    .back-to-top::after {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 80%;
        height: 100%;
        background: linear-gradient( 120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100% );
        transform: skewX(-20deg);
        animation: shimmer 2.8s ease-in-out infinite;
        pointer-events: none;
    }

@keyframes shimmer {
    0% {
        left: -120%;
    }

    60% {
        left: 140%;
    }

    100% {
        left: 140%;
    }
}

body.nav-open .jump-bar {
    opacity: 0.3;
    pointer-events: none;
}

.leader-profile {
    max-width: 1100px;
    margin: 0 auto;
}

/* Two-column layout */
.leader-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
}

.leader-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 260px;
}

.leader-right {
    flex: 1;
}

/* Kill old float behavior on this image */
#trevor-hardwick .bio-photo img {
    float: none;
    display: block;
}

/* Connect row under photo */
.connect-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
.leader-socials {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0A1F44; /* navy */
    transition: background-color 0.2s ease, transform 0.15s ease;
}

    .icon-circle i {
        color: #ffffff;
        font-size: 16px;
    }

    .icon-circle:hover {
        background-color: #122d63; /* lighter navy */
        transform: translateY(-2px);
    }
.icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 4px;
}

    .icon-wrap span {
        font-size: 12px;
        color: #0A1F44;
        font-weight: 500;
    }

.connect-label {
    font-size: 12px;
    font-weight: 500;
    color: #0A1F44;
    margin-bottom: 6px;
    opacity: 0.75;
}

#trevor-hardwick .bio-photo img {
    float: none !important;
    margin: 0 !important;
    display: block;
}

#trevor-hardwick .bio-photo {
    float: none !important;
}

#trevor-hardwick.leader-profile {
    display: block !important;
}

#trevor-hardwick .leader-flex {
    display: flex !important;
}

#trevor-hardwick .bio-photo img {
    width: 418px; /* or 280px, 300px — whatever matches your other leaders */
    height: auto;
}

#trevor-hardwick .bio-photo {
    width: 418px;
    height: 628px;
    max-width: 418px;
    max-height: 628px;
}

    #trevor-hardwick .bio-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
#trevor-hardwick .bio-photo {
    height: 500px;
}
