* {
    box-sizing: border-box;
}

:root {
    --sky: #15a9ef;
    --blue: #063d8f;
    --navy: #061d39;
    --yellow: #f8df19;
    --red: #e32924;
    --ink: #102033;
    --muted: #5c6978;
    --paper: #ffffff;
    --soft: #f5f9fc;
    --line: rgba(16, 32, 51, 0.12);
    --shadow: 0 22px 60px rgba(6, 29, 57, 0.18);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

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

a {
    color: inherit;
}

::selection {
    background: var(--yellow);
    color: var(--navy);
}

:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 2px;
}

/* Scroll-reveal (class added by script.js; no-JS users see everything) */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .hero-content > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .pulse-dot {
        animation: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.25s ease;
}

.nav.scrolled {
    box-shadow: 0 12px 32px rgba(6, 29, 57, 0.1);
}

.nav-container {
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-weight: 900;
    color: var(--navy);
    white-space: nowrap;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    margin-left: auto;
}

.nav-link {
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.92rem;
}

.nav-link:hover {
    color: var(--blue);
}

.mobile-menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Hero */
.hero {
    min-height: 88vh;
    padding: 136px 0 72px;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    background: var(--navy) url("images/video-thumb.jpg") center 28% / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 29, 57, 0.92), rgba(6, 29, 57, 0.72) 48%, rgba(6, 61, 143, 0.45));
}

.hero::after {
    content: "";
    position: absolute;
    right: -180px;
    top: -180px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 169, 239, 0.45), rgba(21, 169, 239, 0));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.section-kicker {
    margin: 0 0 0.75rem;
    color: var(--yellow);
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.1rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 223, 25, 0.45);
    background: rgba(248, 223, 25, 0.12);
    color: var(--yellow);
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 0 rgba(248, 223, 25, 0.6);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(248, 223, 25, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(248, 223, 25, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(248, 223, 25, 0);
    }
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.9;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
}

.hero h1 .accent {
    color: var(--yellow);
}

.hero-content > * {
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.hero-content > *:nth-child(2) {
    animation-delay: 0.1s;
}

.hero-content > *:nth-child(3) {
    animation-delay: 0.2s;
}

.hero-content > *:nth-child(4) {
    animation-delay: 0.3s;
}

.hero-content > *:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-subtitle {
    width: min(700px, 100%);
    margin: 1.2rem 0 1.6rem;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.8rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 900;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 18px 34px rgba(248, 223, 25, 0.35);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-primary {
    color: var(--navy);
    background: var(--yellow);
    box-shadow: 0 12px 24px rgba(248, 223, 25, 0.22);
}

.btn-secondary {
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.72);
}

/* Impact cards */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.6rem;
    max-width: 900px;
}

.impact-card {
    padding: 1.6rem;
    border-radius: 8px;
    color: white;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease;
}

.impact-card:hover {
    transform: translateY(-4px);
}

.impact-card.blue {
    background: var(--blue);
}

.impact-card.yellow {
    background: var(--yellow);
    color: var(--navy);
}

.impact-card.red {
    background: var(--red);
}

.impact-number {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 0.9;
    font-weight: 900;
}

.impact-label {
    margin-top: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.82rem;
}

/* Sections */
section {
    scroll-margin-top: 90px;
}

h2 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 1.05;
    color: var(--navy);
}

h3 {
    color: var(--navy);
}

.section-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-header p,
.intro-copy p,
.about-copy p,
.resource-card p,
.footer p {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-header .section-kicker,
.about-section .section-kicker,
.resources-section .section-kicker,
.intro-band .section-kicker {
    color: var(--blue);
}

/* Intro band */
.intro-band {
    padding: 5.5rem 0;
    background: var(--paper);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: start;
}

/* Events */
.events-section {
    padding: 5.5rem 0;
    background: var(--soft);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.event-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
    min-height: 170px;
    padding: 1.5rem;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--line);
    border-top: 6px solid var(--yellow);
    box-shadow: 0 12px 30px rgba(6, 29, 57, 0.08);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(6, 29, 57, 0.16);
}

.event-date {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    color: var(--navy);
    background: var(--yellow);
    font-weight: 900;
    font-size: 0.82rem;
    text-transform: uppercase;
}

/* Rotate card accents through the brand palette (4-cycle over a 3-column
   grid gives a diagonal pattern instead of solid color columns) */
.event-card:nth-child(4n+2) {
    border-top-color: var(--blue);
}

.event-card:nth-child(4n+2) .event-date {
    background: var(--blue);
    color: white;
}

.event-card:nth-child(4n+3) {
    border-top-color: var(--red);
}

.event-card:nth-child(4n+3) .event-date {
    background: var(--red);
    color: white;
}

.event-card:nth-child(4n) {
    border-top-color: var(--navy);
}

.event-card:nth-child(4n) .event-date {
    background: var(--navy);
    color: white;
}

.event-card h3 {
    margin: 0 0 0.4rem;
    color: var(--navy);
    font-size: 1.3rem;
    line-height: 1.25;
}

.event-desc {
    margin: 0.6rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.event-location {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.92rem;
    text-transform: uppercase;
}

.event-visit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue);
    font-weight: 900;
    font-size: 0.95rem;
}

.event-visit i {
    transition: transform 0.18s ease;
}

.event-card:hover .event-visit i {
    transform: translateX(5px);
}

.events-cta {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 8px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--sky));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: var(--shadow);
}

.events-cta h3 {
    margin: 0 0 0.35rem;
    color: white;
    font-size: 1.5rem;
}

.events-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

/* Past events */
.past-events-section {
    padding: 5.5rem 0;
    background: white;
}

.past-events-section .section-kicker {
    color: var(--blue);
}

.past-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.past-event-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(6, 29, 57, 0.08);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.past-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(6, 29, 57, 0.16);
}

.past-event-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top;
}

.past-event-name {
    display: block;
    padding: 0.9rem 1.1rem;
    color: var(--navy);
    font-weight: 900;
}

.past-event-name em {
    display: block;
    color: var(--muted);
    font-weight: 800;
    font-style: normal;
    font-size: 0.82rem;
    text-transform: uppercase;
}

/* About / M-10 */
.about-section {
    padding: 5.5rem 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 3rem;
    align-items: center;
}

.about-copy h2 {
    margin-bottom: 1.2rem;
}

.about-image img {
    border-radius: 8px;
    border: 4px solid white;
    box-shadow: var(--shadow);
}

.image-caption {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.timeline {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.timeline-item {
    padding: 1.25rem 1.5rem;
    border-left: 6px solid var(--yellow);
    border-radius: 0 8px 8px 0;
    background: var(--soft);
}

.timeline-item span {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: var(--blue);
    font-weight: 900;
    text-transform: uppercase;
}

.timeline-item p {
    margin: 0;
    color: var(--muted);
}

.video-band {
    padding: 0 0 5.5rem;
    background: white;
}

.video-facade {
    position: relative;
    display: block;
    max-width: 860px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-facade img {
    width: 100%;
    display: block;
}

.video-facade .video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--navy);
    background: var(--yellow);
    font-size: 1.8rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease;
}

.video-facade:hover .video-play {
    transform: translate(-50%, -50%) scale(1.08);
}

.video-facade .video-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.25rem;
    color: white;
    font-weight: 900;
    background: linear-gradient(transparent, rgba(6, 29, 57, 0.85));
}

/* Resources */
.resources-section {
    padding: 5.5rem 0;
    background: var(--soft);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.resource-card {
    padding: 1.5rem;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(6, 29, 57, 0.08);
}

.resource-card i {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    color: var(--navy);
    background: var(--yellow);
    border-radius: 50%;
    font-size: 1.3rem;
}

.resource-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.3rem;
}

.resource-card p {
    margin: 0 0 1rem;
}

.resource-link {
    color: var(--blue);
    font-weight: 900;
    text-decoration: none;
}

.principles-panel {
    margin-top: 3rem;
    padding: 2.5rem;
    border-radius: 8px;
    color: white;
    background: var(--navy);
    box-shadow: var(--shadow);
}

.principles-panel h3 {
    margin: 0 0 1rem;
    color: var(--yellow);
    font-size: 1.6rem;
}

.principles-panel ul {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.86);
}

/* Page header (subpages) */
.page-header {
    position: relative;
    padding: 140px 0 64px;
    color: white;
    background: var(--navy) url("images/video-thumb.jpg") center 28% / cover no-repeat;
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 29, 57, 0.92), rgba(6, 29, 57, 0.72) 48%, rgba(6, 61, 143, 0.45));
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.page-header p {
    width: min(680px, 100%);
    margin: 1rem 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.page-header .eyebrow {
    width: auto;
    margin: 0 0 1.1rem;
    font-size: 0.85rem;
    color: var(--yellow);
}

/* Support groups (community page) */
.support-section {
    padding: 5.5rem 0;
    background: var(--soft);
}

.support-category {
    margin-bottom: 3rem;
}

.category-title {
    margin: 0 0 1.25rem;
    font-size: 1.6rem;
    color: var(--navy);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.support-card {
    padding: 1.5rem;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--line);
    border-top: 6px solid var(--yellow);
    box-shadow: 0 12px 30px rgba(6, 29, 57, 0.08);
}

.support-card h4 {
    margin: 0 0 0.35rem;
    color: var(--navy);
    font-size: 1.15rem;
}

.support-card p {
    margin: 0.75rem 0 0;
    color: var(--muted);
}

.support-link {
    color: var(--blue);
    font-weight: 900;
    text-decoration: none;
    word-break: break-all;
}

.help-panel {
    padding: 2.5rem;
    border-radius: 8px;
    color: white;
    background: var(--navy);
    box-shadow: var(--shadow);
}

.help-panel h3 {
    margin: 0 0 1rem;
    color: var(--yellow);
    font-size: 1.6rem;
}

.help-panel p {
    color: rgba(255, 255, 255, 0.86);
}

.help-panel h4 {
    margin: 1.5rem 0 0.75rem;
    color: white;
}

.help-panel ul {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.86);
}

.back-link {
    margin-top: 2.5rem;
    text-align: center;
}

/* Contact */
.contact-section {
    padding: 5.5rem 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.contact-card,
.movement-panel {
    padding: 2rem;
    border-radius: 8px;
}

.contact-card {
    background: var(--soft);
    border: 1px solid var(--line);
}

.contact-card h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
    font-weight: 800;
}

.contact-item i {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--navy);
    background: var(--yellow);
    border-radius: 50%;
}

.contact-item a {
    color: var(--blue);
    text-decoration: none;
}

.movement-panel {
    color: white;
    background: var(--navy);
    box-shadow: var(--shadow);
}

.movement-panel h3 {
    margin: 0 0 0.8rem;
    color: var(--yellow);
    font-size: 1.5rem;
}

.movement-panel p {
    color: rgba(255, 255, 255, 0.84);
}

/* Footer */
.footer {
    position: relative;
    padding: 4rem 0 0;
    color: white;
    background: var(--navy);
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--sky) 35%, var(--yellow) 70%, var(--red) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.footer h2,
.footer h3 {
    color: white;
    margin: 0 0 0.8rem;
    font-size: 1.4rem;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.76);
}

.footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.footer ul a {
    text-decoration: none;
}

.footer ul a:hover {
    color: var(--yellow);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 980px) {
    .mobile-menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0.75rem 1rem 1rem;
        background: white;
        border-bottom: 1px solid var(--line);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 0.85rem 0;
    }

    .intro-grid,
    .about-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .events-grid,
    .resources-grid,
    .support-grid,
    .past-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .hero {
        padding-top: 110px;
    }

    .nav-container {
        min-height: 68px;
    }

    .nav-links {
        top: 68px;
    }

    .brand span {
        font-size: 0.98rem;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .events-grid,
    .resources-grid,
    .support-grid,
    .past-events-grid {
        grid-template-columns: 1fr;
    }

    .intro-band,
    .events-section,
    .about-section,
    .resources-section,
    .support-section,
    .past-events-section,
    .contact-section {
        padding: 4rem 0;
    }

    .video-band {
        padding-bottom: 4rem;
    }
}
