/* --- Design Tokens --- */
:root {
    --primary-color: #0c7bbd;
    --primary-dark: #0a4f8a;
    --primary-rgb: 12, 123, 189;
    --primary-dark-rgb: 10, 79, 138;
    --primary-teal: #036474;
    --dark-teal: #00323a;
    --donate-teal: #006378;
    --accent-coral: #f5a8c1;
    --sunrise-coral: #e19ab5;
    --sunrise-coral-rgb: 225, 154, 181;
    --evergreen-teal: #59a889;
    --evergreen-teal-rgb: 89, 168, 137;
    --peach-light: #f3c6b1;
    --peach-light-rgb: 243, 198, 177;
    --accent-coral-rgb: 245, 168, 193;
    --accent-teal: #58c0d9;
    --accent-teal-rgb: 88, 192, 217;
    --accent-sand: #f4f0ea;
    --accent-sky: #dff1fb;
    --navy: #16324f;
    --slate: #2d3a4a;
    --dark-text: #253049;
    --muted-text: #5d6983;
    --light-text: #ffffff;
    --background-color: #fdfefe;
    --border-color: #d7dee3;
    --header-font: 'Congenial Regular', 'Congenial', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --body-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --primary-bright: #18a6df;
    --primary-bright-rgb: 24, 166, 223;
    --gradient-primary: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(var(--accent-teal-rgb), 0.24));
    --gradient-coral: linear-gradient(135deg, rgba(var(--accent-coral-rgb), 0.22), rgba(var(--accent-coral-rgb), 0));
    --gradient-navy: linear-gradient(135deg, rgba(var(--primary-dark-rgb), 0.18), rgba(var(--primary-rgb), 0.22));
    --gradient-rose: linear-gradient(135deg, rgba(var(--accent-coral-rgb), 0.9), rgba(220, 130, 163, 0.92));
    --gradient-ocean: linear-gradient(135deg, rgba(var(--primary-rgb), 0.92), rgba(var(--primary-dark-rgb), 0.94));
    --radius: 38px;
    --cta-hover-overlay: rgba(255,255,255,0.14);
    --cta-shadow: 6px 12px 24px rgba(0, 0, 0, 0.2);
}

/* --- Typography --- */
/* Congenial is loaded via Adobe Fonts (Typekit) in HTML — do not reference missing local /assets/fonts files (avoids 404 on deploy). */

/* --- Global Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    line-height: 1.65;
    background-color: var(--background-color);
    color: var(--dark-text);
    padding-top: 120px;
}

html {
    font-size: 115%;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    color: var(--navy);
    margin-bottom: 15px;
    line-height: 1.25;
}

h2 {
    color: var(--primary-teal);
}

h1 { font-size: 2.9rem; }
h2 { font-size: 2.15rem; margin-top: 25px; }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 16px;
    color: var(--muted-text);
    font-size: 1.02rem;
}

ul, ol {
    margin: 0 0 16px 22px;
    color: var(--muted-text);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 40px 0;
}

/* --- Motion Utilities --- */
.reveal {
    opacity: 0;
    transform: translate3d(0, 48px, 0) scale(0.96);
    filter: blur(16px);
    transition:
        opacity 0.69s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.04s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.69s ease;
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform, filter;
}

.reveal[data-reveal-variant="lift"] {
    transform: translate3d(0, 56px, 0) scale(0.94);
}

.reveal[data-reveal-variant="slide-left"] {
    transform: translate3d(-52px, 36px, 0) scale(0.94);
}

.reveal[data-reveal-variant="slide-right"] {
    transform: translate3d(52px, 36px, 0) scale(0.94);
}

.reveal[data-reveal-variant="zoom"] {
    transform: translate3d(0, 64px, 0) scale(0.9);
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

/* --- Layout Utilities --- */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.large-text {
    font-size: 1.18rem;
    color: var(--dark-text);
}

.text-center { text-align: center; }

.section-caption {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 18px;
    padding-right: 18px;
}

.section-caption::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 58px;
    height: 3px;
    border-radius: 999px;
    background: var(--gradient-primary);
}

.theme-dark {
    color: rgba(255,255,255,0.92);
}

.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4,
.theme-dark h5,
.theme-dark h6 {
    color: var(--accent-sky);
}

.theme-dark p,
.theme-dark li,
.theme-dark a,
.theme-dark span {
    color: rgba(255,255,255,0.82);
}

.theme-dark strong {
    color: #ffffff;
}

.theme-dark a:hover {
    color: var(--accent-sky);
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

.pill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.pill {
    background: var(--accent-sky);
    color: var(--navy);
    padding: 10px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    border: 1px solid rgba(0,152,187,0.18);
}

#links .cta-panel .pill {
    background: #ffffff;
    color: var(--navy);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 14px rgba(22,50,79,0.08);
}

.card {
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 26px;
    box-shadow: 0 12px 30px rgba(22,50,79,0.08);
    height: 100%;
}

.simple-list {
    list-style: none;
    padding: 0;
}

.simple-list li {
    margin-bottom: 10px;
    padding-left: 18px;
    position: relative;
}

.simple-list li::before {
    content: '\2022';
    color: var(--accent-teal);
    position: absolute;
    left: 0;
}

/* --- Buttons & Links --- */
.cta-button,
.cta-button-secondary,
.cta-button-outline {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: var(--cta-shadow);
}

.cta-button {
    background: var(--gradient-ocean);
    color: var(--light-text);
    border: 2px solid rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 12px 26px rgba(var(--primary-dark-rgb), 0.22);
}

.cta-button-secondary {
    background: var(--gradient-rose);
    color: var(--light-text);
    border: 2px solid rgba(var(--accent-coral-rgb), 0.42);
    box-shadow: 0 12px 26px rgba(158, 61, 111, 0.22);
}

.cta-button-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid rgba(var(--primary-rgb), 0.45);
}

.link-arrow {
    font-weight: 700;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-arrow::after {
    content: '\2192';
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.link-arrow:hover::after { transform: translateX(4px); }

/* --- Header & Navigation --- */
header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: padding 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 0 4px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 18px;
    min-height: 88px;
    transition: min-height 0.25s ease, padding 0.25s ease;
}

.logo img { max-height: 102px; }
.logo img { transition: max-height 0.25s ease, transform 0.25s ease; }

.nav-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding-top: 40px;
    transition: padding-top 0.25s ease;
}

header.header-shrink {
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

header.header-shrink .header-container {
    min-height: 64px;
}

header.header-shrink .logo img {
    max-height: 78px;
}

header.header-shrink .nav-group {
    padding-top: 16px;
}

.nav-links a,
.nav-links a:hover,
.nav-links a:focus {
    text-decoration: none;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    white-space: nowrap;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark-text);
    padding: 8px 0 10px 0;
    border-bottom: 2px solid transparent;
    line-height: 1.4;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-teal);
    border-bottom-color: var(--primary-teal);
    text-decoration: none;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger-menu span {
    width: 26px;
    height: 3px;
    background: var(--dark-text);
    transition: all 0.3s ease;
}

/* --- Hero Sections --- */
.hero {
    text-align: center;
    padding: 96px 24px;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--primary-bright), var(--primary-dark));
}

.hero-wellness {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.hero-plans {
    background: linear-gradient(135deg, var(--navy), var(--primary-dark));
}

.hero-support {
    background: linear-gradient(
        135deg,
        rgba(var(--accent-teal-rgb), 0.9) 0%,
        rgba(255,255,255,0.92) 52%,
        rgba(var(--accent-coral-rgb), 0.9) 100%
    );
}

.hero.hero-support .hero-content {
    color: var(--slate);
}

.hero.hero-support h1 {
    color: var(--slate);
}

.hero.hero-support p {
    color: var(--slate);
}

.hero h1 { color: var(--light-text); margin: 0; }

.hero p {
    color: rgba(255,255,255,0.93);
    font-size: 1.22rem;
    max-width: 720px;
    margin: 12px auto 28px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-actions .cta-button,
.hero-actions .cta-button-secondary,
.hero-actions .cta-button-outline {
    min-width: 182px;
    text-align: center;
    box-shadow: var(--cta-shadow);
    border: none;
}

.hero-actions .cta-button {
    background: linear-gradient(135deg, rgba(var(--primary-bright-rgb), 0.98), rgba(var(--primary-dark-rgb), 0.92));
}

.hero-actions .cta-button-outline {
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.1));
    color: var(--light-text);
    border: 2px solid rgba(var(--light-text), 0.25);
}

.hero-actions .cta-button-secondary {
    background: linear-gradient(135deg, rgba(var(--accent-coral-rgb), 0.98), rgba(220, 130, 163, 0.9));
}

/* --- Home Specific Sections --- */
/* Mission / Our Purpose only (see index.html); keep copy left-aligned */
.strategic-pillars {
    text-align: left;
    background: linear-gradient(160deg, rgba(224,243,248,0.58), rgba(244,240,234,0.6));
    border-radius: 32px;
    box-shadow: 0 24px 48px rgba(22,50,79,0.08);
    overflow: hidden;
}

/*
 * Gap from hero: padding alone sits *inside* the gradient, so the panel still touched the blue hero.
 * margin-top lets the page background show between sections (matches .parallax-banner margin: 40px 0).
 */
#mission.strategic-pillars.page-content {
    margin-top: 40px;
}

/* Our Purpose: full-width caption, then two columns with matching h2 */
.strategic-pillars.mission-purpose .mission-purpose-lead {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    margin-bottom: 22px;
}

/* Button label stays centered inside the pill; block sits in left-aligned column */
#mission.strategic-pillars .cta-button {
    text-align: center;
}

.strategic-pillars.mission-purpose .mission-purpose-grid {
    align-items: start;
}

.strategic-pillars.mission-purpose .mission-purpose-col {
    text-align: left;
}

.strategic-pillars.mission-purpose .mission-purpose-col h2 {
    margin-top: 0;
    text-align: left;
}

.strategic-pillars.mission-purpose .mission-purpose-col p {
    text-align: left;
}

.strategic-pillars.mission-purpose .mission-purpose-col .link-arrow {
    justify-content: flex-start;
}

.strategic-pillars.mission-purpose .mission-purpose-col.cta-panel {
    background: linear-gradient(172deg, rgba(255,255,255,0.98), rgba(224,243,248,0.82));
    border-radius: var(--radius);
    padding: 28px 26px;
    border: 1px solid rgba(0,152,187,0.14);
    box-shadow: 0 18px 36px rgba(22,50,79,0.08);
}

.strategic-pillars.mission-purpose .mission-purpose-col .cta-button {
    margin-top: 8px;
}

.pillar-card {
    position: relative;
    background: linear-gradient(172deg, rgba(255,255,255,0.98), rgba(224,243,248,0.82));
    padding: 36px 26px;
    border-radius: var(--radius);
    border: 1px solid rgba(0,152,187,0.14);
    box-shadow: 0 18px 36px rgba(22,50,79,0.08);
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 24px;
    right: 24px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0,152,187,0.55), rgba(240,113,103,0.45));
    opacity: 0.85;
}

.pillar-card > * {
    position: relative;
    z-index: 1;
}

.pillar-card h3 { color: var(--navy); }

.metrics-band {
    background: var(--accent-sky);
    border-radius: var(--radius);
    padding: 64px 28px;
    margin-top: 20px;
}

.metrics-intro {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.stat-card {
    position: relative;
    background: linear-gradient(170deg, rgba(255,255,255,0.96), rgba(224,243,248,0.8));
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(0,152,187,0.12);
    box-shadow: 0 18px 34px rgba(22,50,79,0.08);
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 22px;
    left: 24px;
    right: 24px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0,152,187,0.45), rgba(58,183,149,0.45));
}

.stat-card > * {
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.05;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 1.05rem;
    font-family: var(--header-font);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.plan-highlight .cta-panel {
    position: relative;
    background: linear-gradient(165deg, rgba(244,240,234,0.94), rgba(224,243,248,0.88));
    border-radius: var(--radius);
    padding: 34px;
    border: 1px solid rgba(0,152,187,0.12);
    box-shadow: 0 20px 36px rgba(22,50,79,0.08);
    overflow: hidden;
}

.plan-highlight .cta-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(0,152,187,0.18), transparent 62%);
    pointer-events: none;
}

.plan-highlight .cta-panel > * {
    position: relative;
    z-index: 1;
}

.support-preview {
    background: linear-gradient(120deg, rgba(0,152,187,0.12), rgba(58,183,149,0.12));
    padding: 60px 0 80px;
}

.support-preview-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: center;
}

.support-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Wellness Page --- */
.mission-grid .card {
    position: relative;
    text-align: left;
    background: linear-gradient(170deg, rgba(255,255,255,0.98), rgba(224,243,248,0.82));
    border: 1px solid rgba(0,152,187,0.12);
    box-shadow: 0 18px 32px rgba(22,50,79,0.08);
    overflow: hidden;
}

.mission-grid .card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(240,113,103,0.22), transparent 58%);
    pointer-events: none;
}

.mission-grid .card > * {
    position: relative;
    z-index: 1;
}

.island-snapshot {
    background: var(--accent-sand);
    border-radius: 32px;
    margin: 40px auto;
    padding: 60px 28px;
}

.services-grid .service-card {
    position: relative;
    background: linear-gradient(168deg, rgba(255,255,255,0.98), rgba(224,243,248,0.82));
    border-radius: 16px;
    padding: 26px;
    border: 1px solid rgba(0,152,187,0.1);
    border-left: 4px solid var(--accent-teal);
    box-shadow: 0 18px 32px rgba(22,50,79,0.08);
    overflow: hidden;
}

.services-grid .service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(0,152,187,0.18), transparent 60%);
    pointer-events: none;
}

.services-grid .service-card > * {
    position: relative;
    z-index: 1;
}

.services-grid .service-card:nth-child(odd) {
    border-left-color: var(--primary-color);
}

.survey-section {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 36px rgba(22,50,79,0.1);
}

.survey-note {
    background: var(--accent-sky);
    border-radius: 18px;
    padding: 24px;
    color: var(--navy);
}

.survey-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.bar-chart {
    margin-top: 12px;
}

.bar-label {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.bar {
    position: relative;
    color: var(--light-text);
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 999px;
    font-weight: 700;
    text-align: right;
}

.bar::after {
    content: attr(data-percent);
}

.bar-primary { background: var(--primary-color); }
.bar-secondary { background: var(--accent-teal); }
.bar-tertiary { background: var(--accent-coral); }

.testimonial-section {
    background: var(--accent-sand);
    border-radius: 30px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.testimonial {
    background: #ffffff;
    border-left: 5px solid var(--primary-color);
    border-radius: 12px;
    padding: 24px;
    font-style: italic;
    color: var(--navy);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* --- Interactive Elements --- */
.pillar-card,
.stat-card,
.mission-grid .card,
.services-grid .service-card,
.plan-highlight .cta-panel,
.phase-card,
.survey-to-action .data-card,
.giving-card,
.partner-section .partner-card,
.volunteer-section .story-card,
.contact-card,
.testimonial {
    transition: transform 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
}

@media (hover: hover) {
    .pillar-card:hover,
    .stat-card:hover,
    .mission-grid .card:hover,
    .services-grid .service-card:hover,
    .plan-highlight .cta-panel:hover,
    .phase-card:hover,
    .survey-to-action .data-card:hover,
    .giving-card:hover,
    .partner-section .partner-card:hover,
    .volunteer-section .story-card:hover,
    .contact-card:hover,
    .testimonial:hover {
        transform: translateY(-10px);
        box-shadow: 0 28px 52px rgba(22,50,79,0.18);
        filter: brightness(1.02);
    }
}

.contact-band .contact-card {
    background: var(--navy);
    color: var(--light-text);
}

.contact-band .contact-card h3 {
    color: #ffffff;
}

.contact-band .contact-card p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-band .contact-card a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* --- Plans Page --- */
.plan-overview .insight-list {
    list-style: none;
    padding: 0;
}

.plan-overview .insight-list li {
    margin-bottom: 12px;
    background: var(--accent-sky);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--navy);
}

.timeline-section .timeline {
    display: grid;
    gap: 24px;
}

/* Allow timeline layout anywhere */
.timeline {
    display: grid;
    gap: 24px;
}

.timeline-section {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    overflow: visible;
}

.timeline-section::before {
    content: none;
}

.timeline-section > * {
    position: relative;
    z-index: 1;
}

.timeline .phase-card {
    border-top: 3px solid rgba(var(--primary-rgb), 0.22);
}

/* First card (wrapped with graphic) */
.plan-hero-wrap .phase-card {
    border-top-color: rgba(var(--evergreen-teal-rgb), 0.5);
}
.plan-hero-wrap .phase-card .status {
    background: rgba(var(--primary-rgb), 0.18); /* blue pill */
    color: var(--navy);
}

/* Remaining cards in order: blue, coral, peach, blue */
.timeline > .phase-card:nth-of-type(1) { border-top-color: rgba(var(--primary-rgb), 0.3); }
.timeline > .phase-card:nth-of-type(2) { border-top-color: rgba(var(--sunrise-coral-rgb), 0.48); }
.timeline > .phase-card:nth-of-type(3) { border-top-color: rgba(var(--peach-light-rgb), 0.55); }
.timeline > .phase-card:nth-of-type(4) { border-top-color: rgba(var(--primary-rgb), 0.3); }

.timeline > .phase-card:nth-of-type(1) .status { background: rgba(var(--sunrise-coral-rgb), 0.24); color: var(--navy); }
.timeline > .phase-card:nth-of-type(2) .status { background: rgba(var(--evergreen-teal-rgb), 0.2); color: var(--navy); }
.timeline > .phase-card:nth-of-type(3) .status { background: rgba(var(--peach-light-rgb), 0.26); color: var(--navy); }
.timeline > .phase-card:nth-of-type(4) .status { background: rgba(var(--primary-rgb), 0.18); color: var(--navy); }

.plan-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 16px;
}

.plan-hero-graphic {
    position: absolute;
    top: -142px;
    right: -48px;
    max-width: 440px;
    width: 44vw;
    height: auto;
    margin: 0;
    filter: drop-shadow(0 16px 32px rgba(22,50,79,0.24));
    pointer-events: none;
    z-index: 2;
    transition: transform 0.35s ease, filter 0.35s ease;
}

/* --- Leadership Cards --- */
.leader-grid .leader-card {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 18px;
    padding-bottom: 50px;
}

.leader-grid {
    gap: 20px;
}

.leader-card h3 {
    margin-bottom: 6px;
}

.leader-card p {
    margin: 0;
}

.leader-card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    align-self: stretch;
}

.avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(var(--primary-rgb), 0.22), rgba(var(--primary-dark-rgb), 0.62));
    border: 2px solid rgba(var(--light-text), 0.6);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.2), 0 12px 20px rgba(22,50,79,0.14);
    flex-shrink: 0;
}

.leader-expand {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    background: var(--navy);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(22,50,79,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.leader-expand:hover {
    transform: translate(-50%, -2px);
    background: var(--primary-dark);
    box-shadow: 0 14px 26px rgba(var(--primary-dark-rgb), 0.26);
}

/* --- Leadership Modal --- */
.leader-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.leader-modal.active {
    display: flex;
}

.leader-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 50, 79, 0.62);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.leader-modal.active .leader-modal-backdrop {
    opacity: 1;
}

.leader-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    max-width: 720px;
    width: min(90vw, 720px);
    margin: 20px;
    padding: 28px;
    box-shadow: 0 28px 64px rgba(22,50,79,0.26);
    transform: translateY(30px) scale(0.96);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    display: grid;
    gap: 20px;
}

.leader-modal.active .leader-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.leader-modal-body {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: center;
}

.leader-modal-photo .avatar-placeholder {
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.leader-role {
    color: var(--navy);
    font-weight: 700;
    margin-top: -6px;
}

.leader-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.leader-prev,
.leader-next,
.leader-close {
    background: var(--navy);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(22,50,79,0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.leader-prev:hover,
.leader-next:hover,
.leader-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(22,50,79,0.26);
}

.leader-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 720px) {
    .leader-modal-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .leader-modal-actions {
        justify-content: center;
    }
}

/* --- Parallax Banner --- */
/* Background on ::before with inset bleed (~10% zoom vs cover) + overflow hidden = no empty bands */
.parallax-banner {
    position: relative;
    isolation: isolate;
    min-height: 360px;
    margin: 40px 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(22,50,79,0.24);
    border-top: 6px solid rgba(var(--peach-light-rgb), 0.5);
    --parallax-y: 0px;
    background: transparent;
}

.parallax-banner::before {
    content: '';
    position: absolute;
    z-index: 0;
    /* ~10% zoom: paint area is 110% wide/tall so cover crops edges, never letterboxed */
    top: -5%;
    right: -5%;
    bottom: -5%;
    left: -5%;
    width: auto;
    height: auto;
    background-image: url('assets/photos/FERRY.2.JPG');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center calc(50% + var(--parallax-y, 0px));
    pointer-events: none;
}

@media (max-width: 768px) {
    .parallax-banner::before {
        background-position: left calc(50% + var(--parallax-y, 0px));
    }
}

@media (max-width: 900px) {
    .plan-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .plan-hero-graphic {
        position: static;
        width: 78vw;
        max-width: 320px;
        margin: -12px 0 -24px auto;
        align-self: flex-end;
        filter: drop-shadow(0 12px 24px rgba(22,50,79,0.2));
    }
}

.plan-hero-wrap {
    position: relative;
}

.plan-hero-wrap .phase-card {
    padding-top: 38px;
    border-left: none;
}

.plan-hero-wrap:hover .plan-hero-graphic {
    transform: translateY(-8px) scale(1.02);
    filter: drop-shadow(0 20px 40px rgba(22,50,79,0.28));
}
/* --- Floating Donate Button --- */
.floating-donate {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--gradient-ocean);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: var(--cta-shadow);
    border: 2px solid rgba(var(--primary-rgb), 0.4);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-donate.volunteer-trigger {
    bottom: 96px;
    background: var(--dark-teal) !important;
    border: none;
}

.floating-donate.donate-primary {
    background: var(--donate-teal) !important;
    border: none !important;
    color: #ffffff !important;
}

.floating-donate.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cta-button.donate-primary {
    background: var(--donate-teal) !important;
    border: none !important;
    color: #ffffff !important;
}

.volunteer-cta {
    background: var(--dark-teal) !important;
    border: none !important;
    color: #ffffff !important;
}

.volunteer-cta:hover {
    background: var(--dark-teal) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Ensure volunteer buttons override other CTA styles */
.cta-button.volunteer-trigger,
.cta-button-secondary.volunteer-trigger,
.volunteer-trigger {
    background: var(--dark-teal) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.cta-button.volunteer-trigger:hover,
.cta-button-secondary.volunteer-trigger:hover,
.volunteer-trigger:hover {
    background: var(--dark-teal) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Reset volunteer link inside nav to match other items */
.nav-links a.volunteer-trigger,
.nav-links a.volunteer-trigger:hover,
.nav-links a.volunteer-trigger:focus,
.nav-links a.volunteer-trigger.active {
    background: transparent !important;
    color: var(--dark-text) !important;
    border-bottom: 2px solid transparent;
    box-shadow: none !important;
    padding: 8px 0 10px 0;
}

.nav-links a.volunteer-trigger:hover,
.nav-links a.volunteer-trigger:focus,
.nav-links a.volunteer-trigger.active {
    color: var(--primary-teal) !important;
    border-bottom: 2px solid var(--primary-teal) !important;
}

/* Unified hover/active overlay for all CTAs and floating buttons */
.cta-button:hover,
.cta-button-secondary:hover,
.cta-button-outline:hover,
.cta-button.donate-primary:hover,
.cta-button.volunteer-trigger:hover,
.floating-donate:hover,
.floating-donate.donate-primary:hover,
.floating-donate.volunteer-trigger:hover {
    box-shadow: var(--cta-shadow), inset 0 0 0 999px var(--cta-hover-overlay);
    color: #ffffff !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

.phase-card {
    position: relative;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 24px rgba(22,50,79,0.07);
    background: #ffffff;
    overflow: hidden;
}

.phase-card::before {
    content: none;
}

.phase-card > * {
    position: relative;
    z-index: 1;
}

.phase-card .status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.phase-card.completed .status {
    background: rgba(58,183,149,0.18);
    color: var(--accent-teal);
}

.phase-card.in-progress .status {
    background: rgba(0,152,187,0.16);
    color: var(--primary-dark);
}

.phase-card.future .status {
    background: rgba(33,41,51,0.08);
    color: var(--muted-text);
}

.phase-card ul {
    margin-left: 18px;
}

.survey-to-action .data-card {
    position: relative;
    text-align: center;
    background: linear-gradient(165deg, rgba(244,240,234,0.94), rgba(224,243,248,0.88));
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(0,152,187,0.1);
    box-shadow: 0 18px 32px rgba(22,50,79,0.08);
    overflow: hidden;
}

.survey-to-action .data-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(58,183,149,0.2), transparent 62%);
    pointer-events: none;
}

.survey-to-action .data-card > * {
    position: relative;
    z-index: 1;
}

.callout-panel {
    background: linear-gradient(120deg, rgba(0,152,187,0.16), rgba(240,113,103,0.16));
    text-align: center;
    border-radius: 28px;
}

#events {
    margin-top: 48px;
}

.event-list {
    list-style: none;
    padding: 0;
    margin: 16px auto 0;
    max-width: 640px;
    text-align: left;
}

.event-list .event-message {
    text-align: center;
    color: var(--muted-text);
    padding: 10px 0;
}

.event-item {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 8px 18px rgba(22,50,79,0.06);
}

.event-date {
    font-weight: 700;
    color: var(--primary-dark);
}

.event-title {
    font-weight: 700;
    color: var(--navy);
    margin: 2px 0 4px;
}

.event-location,
.event-desc {
    font-size: 0.95rem;
    color: var(--muted-text);
}

/* --- Support Page --- */
.support-summary .impact-list {
    list-style: none;
    padding: 0;
}

.support-summary .impact-list li {
    margin-bottom: 12px;
    padding-left: 18px;
    position: relative;
}

.support-summary .grid-2-col {
    align-items: stretch;
    gap: 24px;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr);
}

.support-summary .impact-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
}

/* Charity / tax disclaimer (between Fundraising and FAQs) */
.charity-disclosure.page-content {
    padding-top: 28px;
    padding-bottom: 28px;
}

.charity-disclosure p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--muted-text);
    margin: 0;
    max-width: 52rem;
}

.charity-disclosure a {
    color: var(--primary-dark);
    word-break: break-all;
}

.giving-card {
    position: relative;
    background: linear-gradient(165deg, rgba(224,243,248,0.95), rgba(244,240,234,0.88));
    border-radius: 18px;
    padding: 30px;
    border: 1px solid rgba(0,152,187,0.12);
    box-shadow: 0 18px 34px rgba(22,50,79,0.08);
    overflow: hidden;
}

.giving-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(240,113,103,0.22), transparent 62%);
    pointer-events: none;
}

.giving-card > * {
    position: relative;
    z-index: 1;
}

.giving-options {
    display: grid;
    gap: 18px;
    margin: 20px 0;
}

.giving-options h4 {
    color: var(--navy);
    margin-bottom: 6px;
}

.giving-side {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 220px;
    gap: 16px;
    align-items: stretch;
}

.giving-side > * {
    height: 100%;
}

.thermo-card {
    width: 100%;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 12px 28px rgba(22,50,79,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.thermo-card h4 {
    margin-bottom: 6px;
}

.giving-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.giving-side {
    width: 100%;
    display: flex;
}

.thermo-label {
    font-weight: 1000;
    color: var(--navy);
    margin-bottom: 12px;
}

.thermo-body {
    position: relative;
    margin: 0 auto 12px;
    width: 34px;
    height: 100%;
    min-height: 240px;
    border-radius: 18px;
    background: #eef3f9;
    border: none;
    overflow: visible; /* allow ticks to show outside */
}

.thermo-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: #0c7bbd;
    transition: height 0.4s ease;
}

.thermo-bulb {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0c7bbd;
    border: none;
    box-shadow: 0 10px 22px rgba(22,50,79,0.18);
}

.thermo-updated {
    font-size: 0.9rem;
    color: var(--muted-text);
    margin: 6px 0 0;
}

.thermo-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.zeffy-embed-card {
    flex: 1 1 100%;
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 12px 28px rgba(22,50,79,0.08);
    text-align: center;
    display: grid;
    gap: 10px;
}

.zeffy-embed-card iframe {
    width: 100%;
    min-height: 860px;
    border: none;
    border-radius: 12px;
}

.zeffy-note {
    font-size: 0.92rem;
    color: var(--muted-text);
    margin: 0;
}

.mail-donate {
    background: rgba(0,0,0,0.04);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.98rem;
    color: var(--navy);
    text-align: left;
}

.giving-photo {
    margin: 12px 0;
    display: flex;
    justify-content: center;
}

.giving-photo img {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 38px;
    display: block;
    object-fit: cover;
}

.thermo-ticks {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: calc(100% - 14px);
    width: 120px;
    pointer-events: none;
    z-index: 5;
}

.thermo-ticks .tick {
    position: absolute;
    left: 0;
    width: 100%;
    height: 0;
    font-size: 0.9rem;
    color: var(--muted-text);
}

.thermo-ticks .tick-line {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 32px;
    height: 2px;
    border-radius: 2px;
    background: rgba(0,0,0,0.55);
}

.thermo-ticks .tick-label {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(calc(-50% + var(--tick-label-offset, 0px)));
    min-width: 60px;
}

/* --- Volunteer Modal --- */
.volunteer-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.volunteer-modal.active {
    display: flex;
}

.volunteer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22,50,79,0.55);
    backdrop-filter: blur(6px);
}

.volunteer-dialog {
    position: relative;
    max-width: 960px;
    width: min(92vw, 960px);
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 24px 28px 24px;
    box-shadow: 0 28px 64px rgba(22,50,79,0.18);
    z-index: 1;
    max-height: 90vh;
    overflow: auto;
}

.volunteer-embed {
    width: 100%;
    min-height: 640px;
}

.volunteer-embed iframe {
    width: 100%;
    min-height: 640px;
    border: 0;
    border-radius: 12px;
}

.volunteer-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf2f7;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.volunteer-form {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.volunteer-form label {
    font-weight: 600;
    color: var(--navy);
    display: block;
    margin-bottom: 4px;
}

.volunteer-form input,
.volunteer-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-family: var(--body-font);
}

.volunteer-form fieldset {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 8px;
}

.volunteer-form legend {
    font-weight: 700;
    color: var(--navy);
    padding: 0 6px;
}

.volunteer-form fieldset label {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 8px;
    font-weight: 500;
}

.volunteer-form input[type="checkbox"] {
    margin-top: 2px;
}

.volunteer-form textarea {
    min-height: 120px;
}

.volunteer-form button[type="submit"] {
    width: 100%;
    justify-self: center;
    background: var(--dark-teal);
    border: none;
    color: #ffffff;
}

@media (max-width: 900px) {
    .giving-side {
        grid-template-columns: 1fr;
    }

    .thermo-card {
        min-width: 0;
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }
}
.partner-section .partner-card,
.volunteer-section .story-card {
    position: relative;
    background: linear-gradient(170deg, rgba(255,255,255,0.98), rgba(224,243,248,0.82));
    border-radius: 16px;
    padding: 24px;
    border-left: 4px solid var(--primary-color);
    border: 1px solid rgba(0,152,187,0.1);
    box-shadow: 0 18px 32px rgba(22,50,79,0.08);
    overflow: hidden;
}

.partner-section .partner-card::before,
.volunteer-section .story-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(0,152,187,0.16), transparent 60%);
    pointer-events: none;
}

.partner-section .partner-card:nth-child(2)::before {
    background: radial-gradient(circle at top left, rgba(240,113,103,0.18), transparent 60%);
}

.partner-section .partner-card:nth-child(3)::before {
    background: radial-gradient(circle at top left, rgba(58,183,149,0.18), transparent 60%);
}

.partner-section .partner-card > *,
.volunteer-section .story-card > * {
    position: relative;
    z-index: 1;
}

.partner-section .partner-card:nth-child(2) {
    border-left-color: var(--accent-coral);
}

.partner-section .partner-card:nth-child(3) {
    border-left-color: var(--accent-teal);
}

.story-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card {
    background: linear-gradient(168deg, rgba(255,255,255,0.97), rgba(224,243,248,0.82));
    border-radius: 16px;
    padding: 26px;
    border: 1px solid rgba(0,152,187,0.12);
    box-shadow: 0 18px 36px rgba(22,50,79,0.08);
}

/* --- Forms --- */
.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    margin-top: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-family: var(--body-font);
    font-size: 1rem;
    background: #f9fbfc;
}

.contact-form textarea { resize: vertical; }

.contact-form button {
    margin-top: 18px;
    cursor: pointer;
}

/* --- Footer --- */
footer {
    background: var(--navy);
    color: rgba(255,255,255,0.88);
    padding-top: 48px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.footer-section h4 {
    color: var(--accent-sky);
    margin-bottom: 10px;
}

.footer-section p {
    margin: 8px 0;
}

.footer-credit {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.footer-credit-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer-credit-text p {
    margin: 0;
}
.footer-section ul { list-style: none; padding: 0; }

.footer-section li { margin-bottom: 8px; }

.footer-section a { color: rgba(255,255,255,0.88); }

.footer-bottom {
    text-align: center;
    padding: 24px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.18);
    font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    .reveal.reveal-visible {
        transition: none !important;
    }

    .pillar-card,
    .stat-card,
    .mission-grid .card,
    .services-grid .service-card,
    .plan-highlight .cta-panel,
    .phase-card,
    .survey-to-action .data-card,
    .giving-card,
    .partner-section .partner-card,
    .volunteer-section .story-card,
    .contact-card,
    .testimonial {
        transition: none !important;
    }

    .pillar-card:hover,
    .stat-card:hover,
    .mission-grid .card:hover,
    .services-grid .service-card:hover,
    .plan-highlight .cta-panel:hover,
    .phase-card:hover,
    .survey-to-action .data-card:hover,
    .giving-card:hover,
    .partner-section .partner-card:hover,
    .volunteer-section .story-card:hover,
    .contact-card:hover,
    .testimonial:hover {
        transform: none !important;
        box-shadow: inherit !important;
        filter: none !important;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .grid-3-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .grid-2-col,
    .survey-charts,
    .support-preview-inner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .reverse-mobile {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .support-preview-inner {
        text-align: center;
    }

    .support-actions { justify-content: center; }
}

@media (max-width: 768px) {
    body { font-size: 0.97rem; }
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.85rem; }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.97);
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links.open { display: block; }

    .nav-links ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-links li { border-bottom: 1px solid rgba(0,0,0,0.05); }

    .nav-links a {
        display: block;
        padding: 14px 24px;
    }

    .nav-links a:hover,
    .nav-links a.active {
        border-bottom-color: transparent;
    }

    .hamburger-menu { display: flex; }

    .hamburger-menu.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger-menu.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .grid-3-col { grid-template-columns: 1fr; }

    .page-content { padding: 46px 20px; }

    .hero { padding: 80px 20px; }
}

@media (max-width: 1000px) {
    .nav-links { display: none; }
    .hamburger-menu { display: flex; }
}

@media (max-width: 540px) {
    .hero-actions { flex-direction: column; }
    .stat-number { font-size: 3rem; }
    .pillar-card { padding: 26px 20px; }
}

/* --- Site login gate (optional; see optional/site-login-gate/README.md) --- */
/* When re-enabling the overlay, restore scroll lock: html:not(.site-auth-ready) body { overflow: hidden; } */

.site-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(160deg, rgba(10, 79, 138, 0.92), rgba(22, 50, 79, 0.94));
    box-sizing: border-box;
}

html.site-auth-ready .site-login-overlay {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

.site-login-card {
    width: 100%;
    max-width: 400px;
    padding: 32px 28px 36px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.site-login-brand {
    font-family: var(--header-font);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin: 0 0 8px;
}

.site-login-card h1 {
    font-size: 1.65rem;
    color: var(--navy);
    margin: 0 0 10px;
}

.site-login-lead {
    font-size: 0.98rem;
    color: var(--muted-text);
    margin: 0 0 22px;
    line-height: 1.5;
}

.site-login-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.site-login-input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    font-family: var(--body-font);
    box-sizing: border-box;
}

.site-login-input:focus {
    outline: 2px solid rgba(12, 123, 189, 0.45);
    outline-offset: 2px;
    border-color: rgba(12, 123, 189, 0.5);
}

.site-login-error {
    font-size: 0.92rem;
    color: #b4232c;
    margin: -4px 0 14px;
}

.site-login-submit {
    width: 100%;
    margin-top: 4px;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--body-font);
    color: var(--light-text);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95), rgba(var(--primary-dark-rgb), 0.92));
    box-shadow: 0 12px 28px rgba(var(--primary-dark-rgb), 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(var(--primary-dark-rgb), 0.32);
}
