/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--color-offwhite-350);
    color: var(--color-text-primary);
}
/* <body> page fader specific */
body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}


/* ── Scrollbars ── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-warm-95);
}

::-webkit-scrollbar-thumb {
    background: var(--color-warm-70);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-tertiary);
}


/* ============================================
   HERO SECTION – Textured Background
   ============================================ */
.hero-section {
    position: relative;               /* required for overlay */
    width: 100%;
    padding: 80px 20px;
    background: var(--color-offwhite-250);               /* your calm structural field */
    display: flex;
    justify-content: center;
    overflow: hidden;                 /* contain texture */
    margin-top: 95px;
}

/* Texture overlay */
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/static/assets/1024_woven_texture.png");
    background-repeat: repeat;
    background-size: 512px 512px;
    opacity: 0.08;                     /* slightly lighter than mission */
    pointer-events: none;
    z-index: 0;
}

/* Ensure content sits above texture */
.hero-container {
    position: relative;
    width: 100%;
    display: flex;
    z-index: 1;
}


.hero-section .section-header {
    text-align: left;
    margin-bottom: 28px;
}

.hero-split {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

/* Left */
.hero-left {
    width: 66%;
    max-width: 600px;
    padding-right: 10px;
}

.hero-headline {
    font-size: 44px;
    line-height: 1.12;
    margin-bottom: 14px;
    font-weight: 800;
    font-family: 'Young Serif', sans-serif;
    max-width: 500px;
    color: var(--color-text-heading);
}

.hero-blurb {
    font-size: 18px;
    line-height: 1.7;
    max-width: 62ch;
    margin-bottom: 20px;
    opacity: 0.92;
    max-width: 500px;
    color: var(--color-text-primary);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Buttons */
.hero-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid var(--color-border-soft);
    background: var(--color-offwhite-200);
    transition: all 0.2s ease;
    color: var(--color-secondary);
}
.hero-cta-button:hover {
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    background: var(--color-offwhite-0);
}

.hero-info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 400;
    border: 1px solid var(--color-border-soft);
    background: var(--color-offwhite-200);
    transition: all 0.2s ease;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}
.hero-info-button:hover {
    border: 1px solid transparent;
    background: var(--color-offwhite-0);
}

.hero-info-wrap {
    position: relative;
}

.hero-info-popover {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    width: 300px;
    background: var(--color-offwhite-200);
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid rgba(140, 35, 124, 0.22);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.hero-info-wrap.info-open .hero-info-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-info-popover p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-primary);
    margin: 0;
    padding-right: 20px;
}

.hero-info-popover-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.hero-info-popover-close:hover {
    color: var(--color-text-primary);
    background: rgba(0, 0, 0, 0.06);
}

.hero-right {
    width: 33%;
    position: relative;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    min-width: 300px;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    object-fit: cover;
    display: block;
    border: 2px solid var(--color-warm-85);
    box-shadow: var(--shadow-md);
}

/* Decorative corner accent */
.hero-right::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    width: 60px;
    height: 60px;
    border-top: 3px solid var(--color-secondary);
    border-left: 3px solid var(--color-secondary);
    border-radius: 18px 0 0 0;
    opacity: 0.3;
    z-index: 1;
}

/* Responsive */
@media (max-width: 920px) {
    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-headline {
        font-size: 36px;
    }

    .hero-right {
        max-width: 520px;
    }
}

@media (max-width: 900px) {
    .hero-section {
        margin-top: 70px;
        padding-top: 20px;
    }
}

/* Responsive: stack hero under 700px (image -> text -> buttons) */
@media (max-width: 900px) {
    .hero-split {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    /* Order: image first */
    .hero-right {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-right::before {
        display: none;
    }

    /* Then text + buttons */
    .hero-left {
        order: 2;
        width: 100%;
        max-width: 600px;
        padding-right: 0;
        margin: 0 auto;
        text-align: left;
    }

    .hero-headline {
        max-width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    .hero-blurb {
        width: 100%;
        padding: 20px;
        max-width: none;
        margin-bottom: 0px;
    }

    .hero-actions {
        order: 3;
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    /* Make the image block responsive */
    .hero-image {
        width: calc(100vw - 100px);
        max-width: 300px;
        min-width: 0;
        aspect-ratio: 1 / 1;
    }
}


@media (max-width: 560px) {
    .hero-section {
        padding: 20px 18px;
    }

    .hero-headline {
        font-size: 32px;
    }
}


/* ============================================
   MISSION SECTION - Organization Purpose
   ============================================ */
.mission-section {
    width: 100%;
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--color-secondary), var(--color-primary));
    display: flex;
    justify-content: center;
}


.mission-container {
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.section-title.mission-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-offwhite);
    margin-bottom: 15px;
}

.mission-tagline {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-offwhite);
    font-style: italic;
    margin-bottom: 20px;
    text-align: center;
}

.mission-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--color-offwhite);
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

/* Mission Section - Responsive */
@media (max-width: 900px) {
    .mission-section {
        padding: 60px 20px;
    }


    .mission-title {
        font-size: 32px;
    }

    .mission-text {
        font-size: 17px;
    }
}

/* ============================================
   NEWSLETTER SIGNUP - Two-Panel Layout
   ============================================ */
.services-section {
    width: 100%;
    padding: 100px 20px 80px 20px;
    background: var(--color-offwhite);
    display: flex;
    justify-content: center;
}

.services-container {
    max-width: 900px;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 28px;
}

.section-title {
    font-family: 'Young Serif', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    font-weight: 400;
    max-width: 760px;
    margin: 0 auto;
}

.newsletter-panel {
    border: 1px solid var(--color-border-soft);
    background: var(--color-offwhite-250);
    border-radius: 18px;
    padding: 35px;
    backdrop-filter: blur(6px);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.newsletter-body {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 18px;
    align-items: stretch;
}

.newsletter-left {
    display: grid;
    gap: 12px;
}

.newsletter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.newsletter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.newsletter-label {
    font-size: 13px;
    color: var(--color-text-primary);
    font-weight: 600;
}

.newsletter-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--color-border-soft);
    background: var(--color-offwhite-350);
    font-size: 15px;
    outline: none;
}

.newsletter-input::placeholder {
    color: var(--color-text-muted);
    opacity: 1;
}

.newsletter-input:focus {
    border-color: rgba(140, 35, 124, 0.45);
    box-shadow: 0 0 0 4px rgba(140, 35, 124, 0.10);
}

/* Dropdown select styling */
select.newsletter-input {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238C237C' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: background-image 0.3s ease;
}

select.newsletter-input::-ms-expand {
    display: none;
}

select.newsletter-input.dropdown-open {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238C237C' d='M1.41 8L6 3.42 10.59 8 12 6.59l-6-6-6 6z'/%3E%3C/svg%3E");
}

.newsletter-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-benefits {
    width: 100%;
    height: 100%;
    min-height: 144px;
    border-radius: 16px;
    border: 1px solid rgba(140, 35, 124, 0.18);
    background: rgba(140, 35, 124, 0.06);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsletter-benefits-title {
    font-weight: 800;
    color: var(--color-text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.newsletter-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.newsletter-benefit {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
}

.benefit-check {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    color: #8C237C;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(140, 35, 124, 0.25);
}

.benefit-text {
    font-size: 14px;
    line-height: 1.45;
    color: var(--color-text-secondary);
}

.newsletter-actions {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.newsletter-submit {
    background: #8C237C;
    color: var(--color-offwhite-350);
    border: none;
    border-radius: 17px;
    padding: 15px 35px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-submit:hover {
    background: #CF4362;
}

.newsletter-privacy {
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: left;
}

/* Responsive */
@media (max-width: 700px) {
    .newsletter-body {
        grid-template-columns: 1fr;
    }

    .newsletter-submit {
        width: 100%;
    }
}




/* ============================================
   TEAM SECTION - Simple Bios
   ============================================ */
.team-section {
    width: 100%;
    padding: 80px 20px;
    background: var(--color-offwhite-350);
    display: flex;
    justify-content: center;
}

.team-container {
    width: 100%;
    max-width: 1200px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    justify-items: center;
}

/* Team Card */
.team-card {
    display: flex;
    flex-direction: column;
    padding: 35px;
    background: var(--color-offwhite-200);
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    max-width: 500px;
    width: 100%;
}

.team-card:hover {
    border-color: rgba(140, 35, 124, 0.3);
    box-shadow: 0 4px 12px rgba(140, 35, 124, 0.1);
}

/* Header with headshot + name side-by-side */
.team-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.headshot {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--color-border-soft);
    background: linear-gradient(135deg, #8C237C, #701F56);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.headshot-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-primary);
    font-family: 'Roboto Serif', sans-serif;
    margin: 0;
}

.headshot-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Bio text */
.team-bio {
    margin-top: 0;
    position: relative;
}

.team-bio p.bio-primary {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-primary);
    font-family: 'Roboto Slab', sans-serif;
    margin-bottom: 10px;
    cursor: pointer;
    transition: color 0.15s;
}

.team-bio p.bio-primary:hover {
    color: var(--color-secondary);
}

.bio-hint {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-secondary);
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.15s;
    user-select: none;
}

.bio-hint:hover {
    opacity: 1;
}

/* Popover */
.bio-popover {
    position: absolute;
    top: 0;
    left: -6px;
    right: -6px;
    background: var(--color-offwhite-200);
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid rgba(140, 35, 124, 0.22);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.team-card.bio-open {
    position: relative;
    z-index: 10;
}

.team-card.bio-open .bio-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.bio-popover p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-primary);
    font-family: 'Roboto Slab', sans-serif;
    margin: 0;
    padding-right: 20px;
}

.bio-popover-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.bio-popover-close:hover {
    color: var(--color-text-primary);
    background: rgba(0, 0, 0, 0.06);
}

/* Responsive */
@media (max-width: 900px) {
    .team-section {
        padding: 60px 20px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-card {
        padding: 25px;
    }

    .team-card-header {
        flex-direction: column;
        text-align: center;
    }

    .headshot {
        width: 120px;
        height: 120px;
    }

    .headshot-name {
        font-size: 22px;
    }
}

/* ============================================
   STATS SECTION – Tension / Stakes Panel
   ============================================ */

.stats-section {
    width: 100%;
    padding: 80px 20px;
    background: var(--color-offwhite-0);
    display: flex;
    justify-content: center;
}

.stats-container {
    max-width: 1000px;
    width: 100%;
}

.stats-section .section-header {
    text-align: center;
    margin-bottom: 36px;
}

.stats-section .section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--color-text-heading);
    letter-spacing: 0.2px;
    margin-bottom: 12px;
    text-align: center;
}

.stats-section .section-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-primary);
    max-width: 760px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 10px 25px;
}

.stat-card {
    padding: 24px 20px;
    border-radius: 16px;
    background: var(--color-offwhite-200);
    border: 1px solid var(--color-border-soft);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.stat-number {
    font-size: 34px;
    font-weight: 900;
    color: var(--color-secondary);
    font-family: 'Young Serif', sans-serif;
    margin-bottom: 10px;
    letter-spacing: 0.4px;
    text-align: center;
}

.stat-number sup {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-left: 2px;
}

.stat-label {
    font-size: 15px;
    line-height: 1.55;
    color: var(--color-text-muted);
    text-align: center;
}

/* Sources Footer */
.stats-sources {
    margin-top: 48px;
    padding: 28px 32px;
    background: var(--color-offwhite-100);
    border-radius: 12px;
    border: 1px solid var(--color-border-soft);
}

.sources-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.sources-list {
    list-style: none;
    counter-reset: source-counter;
    padding: 0;
    margin: 0;
}

.sources-list li {
    counter-increment: source-counter;
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.sources-list li:last-child {
    margin-bottom: 0;
}

.sources-list li::before {
    content: counter(source-counter);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 12px;
}

.source-journal {
    font-weight: 700;
    color: var(--color-text-tertiary);
}

.source-title {
    font-style: italic;
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 980px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-sources {
        padding: 24px 20px;
    }
}

@media (max-width: 560px) {
    .stats-section {
        padding: 64px 18px;
    }

    .stats-section .section-title {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: unset;
    }

    .stats-sources {
        padding: 20px 16px;
    }

    .sources-list li {
        font-size: 12px;
        padding-left: 20px;
    }
}



/* ============================================
   CTA SECTION - Call to Action for Booking
   ============================================ */
.cta-section {
    width: 100%;
    padding: 80px 20px;
    background: linear-gradient(135deg, #8C237C, #701F56);
    display: flex;
    justify-content: center;
}

.cta-container {
    max-width: 800px;
    text-align: center;
}

.cta-title {
    font-size: 42px;
    font-weight: 500;
    color: var(--color-offwhite);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 20px;
    color: var(--color-offwhite);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Button (used in CTA section) */
.cta-section .hero-cta-button,
.cta-button {
    display: inline-block;
    padding: 18px 60px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: var(--color-offwhite-200);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-family: 'Roboto Slab', sans-serif;
}
.final-cta-button:hover {
    background: var(--color-accent);
    color: var(--color-offwhite-50);
}
.cta-button:hover {
    color: var(--color-text-primary);
    background: var(--color-offwhite-300);
    border: 2px solid var(--color-secondary);
}

/* CTA Section - Responsive */
@media (max-width: 900px) {
    .cta-section {
        padding: 60px 20px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-text {
        font-size: 17px;
        margin-bottom: 24px;
    }

    .cta-features {
        gap: 25px;
        margin-bottom: 28px;
    }

    .cta-feature-item {
        font-size: 14px;
    }

    .cta-section .hero-cta-button,
    .cta-button {
        padding: 16px 48px;
        font-size: 18px;
    }
}
