/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
   :root {
    /* Colors */
    --bg-primary: #FAF9F5; /* Warm off-white / ivory */
    --bg-secondary: #F0EFEA; /* Slightly darker warm gray */
    --text-primary: #042043; /* Brand navy */
    --text-secondary: #405064; /* Muted navy */
    --accent-color: #9F7A3A; /* Brand gold */
    --accent-hover: #7F602D;
    --border-color: #D6D5CF;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Elements */
    --border-radius: 4px;
    --transition-speed: 0.3s;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.text-center { text-align: center; }
.max-w-md { max-width: 800px; margin: 0 auto; }
.mt-4 { margin-top: 2rem; }

/* ==========================================================================
   Accessibility
   ========================================================================== */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

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

/* ==========================================================================
   Navigation / Header
   ========================================================================== */
.site-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--transition-speed) ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
}

.logo-abbr {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.logo-text {
    font-weight: 400;
    font-size: 1.1rem;
    display: none;
    border-left: 1px solid var(--border-color);
    padding-left: 0.75rem;
    margin-left: 0.25rem;
}

@media(min-width: 768px) {
    .logo-text { display: block; }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
}

.nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-list a:hover {
    color: var(--accent-color);
}

.nav-contact {
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 2px;
}

.nav-contact:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-md);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
}

/* ==========================================================================
   Grid & Cards
   ========================================================================== */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.focus-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.programs-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.impact-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-program {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Impact Section
   ========================================================================== */
.stat-block {
    padding: 2rem 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #111214;
    color: #F0EFEA;
    padding: var(--spacing-xl) 0 2rem;
}

.site-footer a {
    color: #A0A0A5;
}

.site-footer a:hover {
    color: #fff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    border-bottom: 1px solid #333;
    padding-bottom: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-brand p {
    color: #A0A0A5;
    font-size: 0.9rem;
}

.footer-links ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 3rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #777;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* ==========================================================================
   Mobile Responsiveness
   ========================================================================== */
@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content { margin: 0 auto; }
}

@media (max-width: 768px) {
    .section-padding { padding: 3rem 0; }
    
    /* Mobile Nav */
    .mobile-menu-toggle { display: block; }
    
    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        clip-path: circle(0% at top right);
        transition: clip-path 0.4s ease-in-out;
    }
    
    .main-nav.active {
        clip-path: circle(150% at top right);
    }
    
    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .stat-block {
        border: none;
        border-bottom: 1px solid var(--border-color);
    }
    .stat-block:last-child {
        border-bottom: none;
    }
}

/* ========================================================================== 
   Homepage Editorial Layout
   ========================================================================== */
.logo img {
    width: 142px;
    height: auto;
}

.eyebrow {
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.hero {
    min-height: 560px;
    padding: 5rem 0 5rem;
    background: linear-gradient(108deg, var(--bg-primary) 0%, var(--bg-primary) 62%, #eee9df 62%, #eee9df 100%);
}

.hero-inner {
    align-items: center;
}

.hero-title {
    font-size: clamp(3.3rem, 6vw, 5.8rem);
    letter-spacing: -0.025em;
    line-height: 0.98;
    margin-bottom: 1.75rem;
}

.hero-subtitle {
    max-width: 540px;
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-visual {
    height: 360px;
    position: relative;
}

.hero-visual::before,
.hero-visual::after {
    border: 1px solid rgba(108, 122, 101, 0.6);
    border-radius: 50%;
    content: '';
    height: 250px;
    position: absolute;
    transform: rotate(-37deg);
    width: 120px;
}

.hero-visual::before { left: 28%; top: 13%; }
.hero-visual::after { left: 50%; top: 25%; border-color: rgba(26, 28, 32, 0.2); }

.confluence-mark {
    height: 100%;
    position: relative;
    width: 100%;
}

.confluence-mark span {
    background: var(--accent-color);
    border-radius: 50%;
    height: 11px;
    position: absolute;
    width: 11px;
}

.confluence-mark span:nth-child(1) { left: 22%; top: 29%; }
.confluence-mark span:nth-child(2) { left: 67%; top: 23%; }
.confluence-mark span:nth-child(3) { left: 48%; top: 76%; }
.confluence-mark i {
    border-bottom: 1px solid var(--accent-color);
    border-left: 1px solid var(--accent-color);
    height: 170px;
    left: 28%;
    position: absolute;
    top: 29%;
    transform: skew(-23deg) rotate(-24deg);
    width: 135px;
}

.hero-visual p {
    bottom: 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    left: 0;
    line-height: 1.25;
    position: absolute;
}

.mission-inner,
.feature-inner,
.impact-inner,
.about-inner {
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(150px, 0.6fr) minmax(0, 1.4fr);
}

.mission-text { max-width: 720px; }
.mission h2, .feature-copy h2, .areas h2, .impact h2, .about h2, .cta h2 { font-size: clamp(2.25rem, 4vw, 4rem); letter-spacing: -0.02em; }
.mission-text p, .feature-copy > p:not(.feature-tagline):not(.metadata), .impact-inner > div:first-child > p:last-child, .about-inner > div p { max-width: 680px; }

.featured-program { background: #042043; color: #f7f6f0; }
.featured-program h2, .featured-program p { color: #f7f6f0; }
.feature-label .eyebrow { color: #b8c8ae; }
.feature-label > span { color: #b8c8ae; font-family: var(--font-heading); font-size: 5rem; line-height: 1; }
.feature-tagline { font-family: var(--font-heading); font-size: 1.35rem; margin-bottom: 1.4rem; }
.metadata { color: #b8c8ae !important; font-size: 0.78rem; letter-spacing: 0.06em; margin-top: 2rem; text-transform: uppercase; }
.metadata span { padding: 0 0.55rem; }
.text-link { border-bottom: 1px solid currentColor; display: inline-flex; gap: 0.75rem; padding-bottom: 0.25rem; }
.featured-program .text-link { color: #f7f6f0; margin-top: 1rem; }
.text-link:hover { color: var(--accent-color); }

.areas-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 3rem; }
.areas-heading h2 { max-width: 650px; margin-bottom: 0; }
.area-list { border-top: 1px solid var(--border-color); }
.area-list article { align-items: start; border-bottom: 1px solid var(--border-color); display: grid; gap: 2rem; grid-template-columns: 70px 1fr; padding: 1.65rem 0; }
.area-list article > span { color: var(--accent-color); font-size: 0.8rem; letter-spacing: 0.1em; padding-top: 0.35rem; }
.area-list h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.3rem; }
.area-list p { margin: 0; }

.impact { background: #ebe4d7; }
.impact-inner { grid-template-columns: 1fr 1fr; }
.impact-list { border-top: 1px solid rgba(26, 28, 32, 0.35); }
.impact-list > div { align-items: baseline; border-bottom: 1px solid rgba(26, 28, 32, 0.35); display: flex; gap: 1.5rem; justify-content: space-between; padding: 1.1rem 0; }
.impact-list strong { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 500; }
.impact-list span { color: var(--text-secondary); font-size: 0.9rem; text-align: right; }

.about-inner > div { max-width: 690px; }
.about-inner .text-link { margin-top: 1.25rem; }
.cta { padding-bottom: 7rem; padding-top: 7rem; }
.cta p { margin-left: auto; margin-right: auto; max-width: 650px; }

@media (max-width: 900px) {
    .hero { background: var(--bg-primary); padding: 3.75rem 0 4rem; }
    .hero-inner { flex-direction: column; }
    .hero-content { order: 1; }
    .hero-visual { order: 2; }
    .hero-visual { margin: 0 auto; max-width: 400px; width: 100%; }
    .mission-inner, .feature-inner, .about-inner { grid-template-columns: 1fr; gap: 1rem; }
    .impact-inner { grid-template-columns: 1fr; }
    .feature-label > span { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .logo img { width: 124px; }
    .hero { padding-top: 3rem; }
    .hero-title { font-size: 3rem; }
    .hero-inner { gap: 2rem; }
    .hero-visual { flex: 0 0 260px; height: 260px; margin-bottom: 0.5rem; }
    .hero-visual p { bottom: 0; left: 0; }
    .hero-visual::before { left: 24%; top: 6%; }
    .hero-visual::after { left: 48%; top: 17%; }
    .areas-heading { align-items: start; flex-direction: column; gap: 1.5rem; }
    .area-list article { gap: 1rem; grid-template-columns: 42px 1fr; }
    .impact-list > div { align-items: start; flex-direction: column; gap: 0.25rem; }
    .impact-list span { text-align: left; }
}

/* ========================================================================== 
   Interior Pages
   ========================================================================== */
.page-hero { border-bottom: 1px solid var(--border-color); padding: 7rem 0 5rem; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -0.03em; max-width: 900px; }
.page-hero p { font-size: 1.1rem; max-width: 650px; }
.page-content { max-width: 820px; padding-bottom: 7rem; padding-top: 5rem; }
.page-content h2 { font-size: 2rem; margin-top: 3rem; }
.page-content h3 { font-family: var(--font-body); font-size: 1.2rem; margin-top: 2rem; }
.page-content p, .page-content li { color: var(--text-secondary); }
.page-content ul { list-style: disc; margin: 1rem 0 1.5rem 1.5rem; }
.page-content li { margin-bottom: 0.6rem; padding-left: 0.35rem; }
.page-content .notice { border-left: 3px solid var(--accent-color); margin: 2rem 0; padding: 0.25rem 0 0.25rem 1.25rem; }
.coming-soon { min-height: 430px; }
.coming-soon h2 { max-width: 700px; }
.coming-soon .text-link { margin-top: 1rem; }
.contact-email { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 3rem); margin: 2rem 0 0.5rem; }
.contact-email a { color: var(--accent-color); }
.contact-email a:hover { color: var(--accent-hover); }

.consent-banner {
    align-items: center;
    background: var(--text-primary);
    bottom: 0;
    box-shadow: 0 -8px 30px rgba(4, 32, 67, 0.16);
    color: #fff;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    left: 0;
    padding: 1.25rem max(2rem, calc((100vw - var(--container-width)) / 2 + 2rem));
    position: fixed;
    right: 0;
    z-index: 200;
}
.consent-copy { max-width: 760px; }
.consent-title { color: #fff; font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 0.2rem; }
.consent-copy p:last-child { color: #dce3ec; font-size: 0.87rem; margin: 0; }
.consent-copy a { color: #d6b777; text-decoration: underline; text-underline-offset: 2px; }
.consent-copy a:hover { color: #fff; }
.consent-actions { display: flex; flex: 0 0 auto; gap: 0.75rem; }
.consent-actions .btn { min-width: 100px; }
.consent-decline { border-color: #dce3ec; color: #fff; }
.consent-decline:hover { background: #fff; color: var(--text-primary); }
@media (max-width: 600px) {
    .consent-banner { align-items: stretch; flex-direction: column; gap: 1rem; padding: 1.25rem; }
    .consent-actions { flex-direction: column-reverse; }
    .consent-actions .btn { width: 100%; }
}
@media (max-width: 768px) {
    .page-hero { padding: 4.5rem 0 3.5rem; }
    .page-content { padding-bottom: 4rem; padding-top: 3.5rem; }
}