/* ==========================================================================
   Design System & Theme Variables (Branded Olive & Cream Palette)
   ========================================================================== */
:root {
    /* Google Fonts */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-handwritten: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Theme Colors: Redesign Palette */
    --bg-primary: #FAF9F4;       /* warm off-white */
    --bg-secondary: #F1F6EE;     /* light surface */
    --card-bg: #ffffff;          /* white cards */
    --primary-color: #2E4B24;    /* deep olive */
    --primary-hover: #1D2418;    /* darker olive */
    --primary-light: #E3EFD9;    /* mint */
    --secondary-color: #8AA37E;  /* sage */
    --secondary-hover: #2E4B24;  
    --secondary-light: #F1F6EE;  /* accent light */
    
    /* Semantic Texts & Borders */
    --text-main: #1D2418;        /* deep olive-black */
    --text-muted: #8AA37E;       /* sage for muted text */
    --border-color: #E3EFD9;     /* mint borders */
    --navbar-bg: rgba(250, 249, 244, 0.85); /* match bg-primary */
    --badge-bg: #E3EFD9;         /* mint */
    
    /* Accents */
    --accent-glow: #E8A33D;      /* amber */
    --accent-light: #F1F6EE;     /* light surface */
    --amber: #E8A33D;            /* amber */
    --mint: #E3EFD9;             /* mint */
    --sage: #8AA37E;             /* sage */

    /* Type Scale */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.8125rem;   /* 13px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 2rem;       /* 32px */
    --text-3xl: 2.25rem;    /* 36px */
    --text-4xl: 3rem;       /* 48px */
    --text-5xl: 3.75rem;    /* 60px */

    /* Layout & Animation constants */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 20px; /* updated for cards */
    --max-width: 1100px;
    
    /* New Card Shadows (two-layer soft shadows) */
    --shadow-sm: 0 4px 6px -1px rgba(29, 36, 24, 0.04);
    --shadow-md: 0 4px 6px -2px rgba(29, 36, 24, 0.04), 0 12px 24px -4px rgba(29, 36, 24, 0.08);
    --shadow-lg: 0 8px 12px -2px rgba(29, 36, 24, 0.06), 0 24px 48px -8px rgba(29, 36, 24, 0.12);
}

[data-theme="dark"] {
    /* Dark Mode (High-comfort Olive Forest) */
    --bg-primary: #151a12;       /* Deepest olive */
    --bg-secondary: #1d251a;     /* Deep sand/olive */
    --card-bg: #232e20;          /* Soft card bg */
    --primary-color: #a3c99b;    /* Light sage — readable on dark bg */
    --primary-hover: #bde0b5;
    --primary-light: rgba(163, 201, 155, 0.15);
    --secondary-color: #e59f63;  /* Warm golden wheat */
    --secondary-hover: #f1af78;
    --secondary-light: rgba(229, 159, 99, 0.15);
    
    --text-main: #f4ebe1;        /* Cream white text */
    --text-muted: #8ba286;       /* Muted sage */
    --border-color: rgba(163, 201, 155, 0.22);
    --navbar-bg: rgba(21, 26, 18, 0.88);
    --badge-bg: rgba(163, 201, 155, 0.12);
    
    --accent-glow: #e98877;
    --accent-light: rgba(233, 136, 119, 0.15);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--border-radius-sm);
    opacity: 0.8;
}

/* ==========================================================================
   Typography & Header Rules
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

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

/* Section Header (Alternating styles depending on strip theme) */
.section-header {
    max-width: 750px;
    margin: 0 auto 4rem auto;
}

.section-tagline {
    font-family: var(--font-handwritten);
    font-size: 1.35rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.tagline-cream {
    color: var(--bg-primary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.section-desc {
    font-size: 1.15rem;
    margin-bottom: 0;
}

/* Alternating Strips System */
.section-olive {
    background-color: var(--primary-color);
    color: var(--bg-primary);
    padding: 100px 0;
    position: relative;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

.section-olive p, 
.section-olive .section-desc,
.section-olive .timeline-text {
    color: rgba(244, 235, 225, 0.8);
}

.section-cream {
    background-color: var(--bg-primary);
    color: var(--text-main);
    padding: 100px 0;
    position: relative;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

.section-cream p {
    color: var(--text-muted);
}

/* Margins & Topography svg decors */
.topography-decor {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 160px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.15;
    z-index: 1;
}

.topography-decor.margin-right {
    left: auto;
    right: 0;
    transform: scaleX(-1);
}

.topography-decor svg {
    height: 100%;
    width: auto;
    color: var(--bg-primary); /* Default color for green sections */
}

.text-primary-decor svg {
    color: var(--primary-color); /* Color for light/cream sections */
}

/* Custom visual labels */
.badge {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    background-color: var(--badge-bg);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-handwritten);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.badge-olive {
    background-color: rgba(244, 235, 225, 0.12);
    color: var(--bg-primary);
    border-color: rgba(244, 235, 225, 0.25);
}

.badge-accent {
    background-color: var(--secondary-light);
    color: var(--secondary-color);
    border-color: rgba(210, 121, 55, 0.2);
}

.badge-disabled {
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.8rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    min-height: 48px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-white {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline-white:active {
    transform: translateY(1px);
}

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

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline:active {
    transform: translateY(1px);
}

.btn-text {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: transform var(--transition-fast);
}

.btn-text:hover {
    transform: translateX(4px);
}

/* ==========================================================================
   Utilities (Cards & Effects)
   ========================================================================== */
.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hover-lift:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Navigation Bar (Glassmorphic & Touch Optimized)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-slow), border-color var(--transition-slow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 46px;
    width: 46px;
    object-fit: contain;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    transition: transform var(--transition-normal);
}

.nav-logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 1.25rem;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.4rem 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px; /* Tap target standard */
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    width: 44px;
    height: 44px;
}

.theme-toggle:hover {
    background-color: var(--primary-light);
}

.sun-icon { display: none; }
.moon-icon { display: block; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all var(--transition-fast);
}

/* Menu Toggle Animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   Hero Section (Adaptive dynamic heights & Fluid Typography)
   ========================================================================== */
.hero-section {
    padding: 160px 0 110px 0;
    min-height: 90dvh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2E4B24 0%, #1c3315 100%);
}

.hero-section::before, .hero-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.hero-section::before {
    width: 600px;
    height: 600px;
    background: rgba(138, 163, 126, 0.15);
    top: -100px;
    right: -100px;
}

.hero-section::after {
    width: 500px;
    height: 500px;
    background: rgba(232, 163, 61, 0.1);
    bottom: -150px;
    left: -50px;
}

.hero-container {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-wrapper {
    width: clamp(110px, 15vw, 150px);
    height: clamp(110px, 15vw, 150px);
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 3px solid rgba(244, 235, 225, 0.4);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    overflow: hidden;
    animation: floatingHero 6s infinite ease-in-out;
}

.hero-logo-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

@keyframes floatingHero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-main-title {
    font-size: clamp(2.8rem, 8vw, 4.8rem); /* fluid text scales without overflow */
    color: var(--bg-primary);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-slogan {
    font-family: var(--font-handwritten);
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    color: rgba(244, 235, 225, 0.85);
    margin-bottom: 1.75rem;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background-color: var(--bg-primary);
    opacity: 0.5;
    border-radius: 50px;
    margin-bottom: 2.25rem;
}

.hero-sub-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 700;
    color: var(--bg-primary);
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-intro-text {
    font-size: clamp(1.05rem, 3vw, 1.2rem);
    line-height: 1.65;
    margin-bottom: 3rem;
    max-width: 95%;
}

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

/* ==========================================================================
   Beyond the Screen (Pillars Grid)
   ========================================================================== */
.beyond-screen-section {
    padding: 100px 0;
    position: relative;
}

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

.pillar-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: var(--primary-color);
}

.pillar-text {
    font-size: 1rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Our Mission Section (Alternating Split layout)
   ========================================================================== */
.mission-cta-section {
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}

.mission-split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4.5rem;
    align-items: center;
}

.mission-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mission-strip-title {
    font-size: 2.5rem;
    color: var(--bg-primary);
    margin-bottom: 1.5rem;
}

.mission-strip-body {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.mission-buttons-wrapper {
    display: flex;
    gap: 1.5rem;
}

.mission-image-block {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Circular graphic frames - Neuroseed inspired */
.mission-brand-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px dashed rgba(244, 235, 225, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: circularRotation 12s infinite linear;
}

.circular-brand-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 3px solid var(--border-color);
    animation: antiRotation 12s infinite linear;
}

.brand-orbit-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: var(--secondary-color);
    border: 2.5px solid var(--primary-color);
    border-radius: 50%;
    top: -7px;
    left: 50%;
    margin-left: -7px;
}

@keyframes circularRotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes antiRotation {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* ==========================================================================
   Screen Time Calculator (Reclaim Widget)
   ========================================================================== */
.calculator-section {
    padding: 100px 0;
    position: relative;
}

.calculator-wrapper {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: stretch;
}

.calculator-intro {
    padding: 4.5rem;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: sticky;
    top: 100px;
    align-self: start;
    height: max-content;
}

.text-olive-brand {
    color: var(--primary-color) !important;
}

.border-olive {
    border: 1px solid var(--border-color) !important;
}

.border-olive:hover {
    border-color: var(--primary-color) !important;
}

.calc-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 6px;
    background: var(--bg-secondary);
    outline: none;
    border: none;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    cursor: pointer;
    border: 4px solid #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.1s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-value {
    align-self: flex-start;
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--primary-light);
    padding: 0.25rem 1rem;
    border-radius: 50px;
}

.calculator-display {
    padding: 4.5rem;
    background-color: rgba(62, 78, 55, 0.01);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.display-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.display-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.display-stat-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: transform var(--transition-fast);
}

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

.display-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.6rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.display-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.reclaimed-hobbies h4 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.hobbies-alternatives {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hobby-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 0.85rem 1.25rem;
    transform: translateX(0);
    transition: transform var(--transition-fast);
}

.hobby-item:hover {
    transform: translateX(6px);
}

.hobby-icon {
    font-size: 1.35rem;
}

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

.hobby-desc strong {
    color: var(--text-main);
    font-size: 1.05rem;
}

/* ==========================================================================
   Our Story & History timeline (Olive block with Cream sub-boxes)
   ========================================================================== */
.story-history-section {
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}

.text-cream {
    color: var(--bg-primary) !important;
}

.text-cream-muted {
    color: rgba(244, 235, 225, 0.85) !important;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 5rem auto 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: rgba(244, 235, 225, 0.2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    position: absolute;
    border-radius: 50%;
    z-index: 5;
    top: 30px;
    border: 4px solid var(--primary-color);
}

.bg-cream-dot {
    background-color: var(--bg-primary);
}

.left-item { left: 0; }
.right-item { left: 50%; }
.left-item .timeline-dot { right: -9px; }
.right-item .timeline-dot { left: -9px; }

.content-cream-box {
    background-color: var(--bg-primary) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(244, 235, 225, 0.4);
}

.content-cream-box p,
.content-cream-box h1,
.content-cream-box h2,
.content-cream-box h3,
.content-cream-box span {
    color: var(--text-main) !important;
}

.timeline-content {
    padding: 2.25rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
    border-bottom: 1px dashed rgba(62, 78, 55, 0.15);
    padding-bottom: 0.75rem;
}

.timeline-date {
    font-family: var(--font-handwritten);
    font-size: 1.2rem;
    color: var(--secondary-color);
    letter-spacing: 0.05em;
}

.timeline-header h3 {
    font-size: 1.7rem;
    margin-top: 0.15rem;
}

.timeline-text {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-text:last-child {
    margin-bottom: 0;
}

.text-olive-dark {
    color: var(--text-main) !important;
}

/* ==========================================================================
   JOIN US! & Applications Section
   ========================================================================== */
.join-us-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.join-subtext {
    max-width: 800px;
    margin: -1.5rem auto 3rem auto;
    font-size: 1.15rem;
    line-height: 1.7;
}

.applications-section-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.app-role-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.role-header {
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role-header h4 {
    font-size: 1.45rem;
    color: var(--primary-color);
}

.role-badge-tag {
    font-family: var(--font-handwritten);
    font-size: 1.05rem;
    padding: 0.1rem 0.75rem;
    border-radius: 50px;
    align-self: flex-start;
}

.role-text {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.role-btn {
    margin-top: auto;
    width: 100%;
}

.instagram-notice {
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Checkbox inputs and custom forms inside General Member form modal */
.form-select-group {
    text-align: left;
    margin-top: 0.5rem;
}

.checkboxes-label {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem !important;
}

.checkbox-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
    min-height: 36px; /* Touch friendly check fields */
}

.check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.form-textarea-field {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.25rem;
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    resize: none;
    transition: border-color var(--transition-fast);
}

.form-textarea-field:focus {
    border-color: var(--primary-color);
}

/* ==========================================================================
   Resources Hub Section
   ========================================================================== */
.resources-section {
    padding: 100px 0;
    position: relative;
}

.resources-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2.5rem;
    margin-top: 4rem;
}

.resource-main-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Removed - was creating inconsistent left-border accent on only one card */

.main-card-title {
    font-size: 1.8rem;
    font-weight: 800;
}

.main-card-text {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.bg-olive-light {
    background-color: var(--primary-light);
}

.main-card-footer {
    display: flex;
}

.resource-badge {
    font-family: var(--font-handwritten);
    font-size: 1.15rem;
    color: var(--primary-color);
    background-color: var(--primary-light);
    padding: 0.25rem 0.9rem;
    border-radius: 50px;
}

.resources-sub-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
}

.resource-sub-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.resource-cat {
    font-family: var(--font-handwritten);
    font-size: 1.15rem;
    display: block;
    margin-bottom: 0.25rem;
}

.sub-card-title {
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
}

.sub-card-text {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.coming-soon-card {
    opacity: 0.85;
}

/* ==========================================================================
   Footer Section (Olive backdrop - matching Slide 2)
   ========================================================================== */
.footer {
    padding: 85px 0 35px 0;
    position: relative;
    border-top: 1px solid rgba(244, 235, 225, 0.12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.logo-footer .logo-text {
    color: var(--bg-primary);
}

.footer-tagline {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.footer-origin {
    font-family: var(--font-handwritten);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.footer-links-col h4, 
.footer-newsletter h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a:hover {
    color: var(--bg-primary) !important;
    text-decoration: underline;
}

.footer-newsletter p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.35rem;
    border-radius: 50px;
}

.newsletter-form input {
    flex: 1;
    border: none;
    background: none;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

.newsletter-status {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(244, 235, 225, 0.15);
    padding-top: 2rem;
}

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

.student-declaration {
    margin-bottom: 0;
}

/* ==========================================================================
   Modals & Overlays (Topography framed)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(33, 37, 41, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1.5rem;
}

.modal-overlay.open,
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-box {
    background: var(--bg-primary);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    padding: 2.5rem 2rem;
    position: relative;
    transform: scale(0.92);
    transition: transform var(--transition-normal);
    max-height: 90dvh; /* ensures popups scroll internally on small screens */
    overflow-y: auto;
}

.modal-large {
    max-width: 800px;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--primary-color);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-illustration {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-md);
    margin: 0 auto 1.25rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title {
    font-size: 1.7rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

.modal-text {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.waiting-list-form-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.small-info {
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 1rem;
}

.waiting-list-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.waiting-list-form input {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.25rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    min-height: 44px; /* touch height */
}

.waiting-list-form input:focus {
    border-color: var(--primary-color);
}

.form-status-msg {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    text-align: center;
}

/* Resources Modal lists */
.resources-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}

.resource-preview-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preview-tag {
    font-family: var(--font-handwritten);
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.resource-preview-card h4 {
    font-size: 1.1rem;
}

.resource-preview-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.preview-download-link {
    font-family: var(--font-handwritten);
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
}

.disabled-link {
    color: var(--text-muted);
    cursor: not-allowed;
}

.modal-footer-cta {
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-footer-cta p {
    font-size: 0.9rem;
    margin-bottom: 0;
    max-width: 60%;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card-bg);
    color: var(--text-main);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

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

.toast::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.toast.error::before {
    background-color: var(--accent-glow);
}

/* ==========================================================================
   Responsive Breakpoints (iPhone, Android, Tablets, iPads)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        padding: 0 1.5rem;
    }
    
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .mission-split-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }

    .mission-text-block {
        align-items: center;
    }

    .mission-image-block {
        border-top: 1px dashed var(--border-color);
        padding-top: 3.5rem;
        border-left: none;
    }

    .calculator-wrapper {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: stretch;
}

    .calculator-intro {
    padding: 4.5rem;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: sticky;
    top: 100px;
    align-self: start;
    height: max-content;
}

    .calculator-display {
    padding: 4.5rem;
    background-color: rgba(62, 78, 55, 0.01);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

    .applications-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    /* Center the third card if it wraps alone */
    .applications-grid > .app-role-card:nth-child(3) {
        grid-column: span 2;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

    .resources-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 1.5fr;
        gap: 2.5rem;
    }
}

/* [old mobile nav-menu block removed] */

    /* SVG topography decoration cleanup for smaller mobile widths */
    .topography-decor {
        width: 80px;
        opacity: 0.08;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .hero-actions-container {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding: 0 1rem;
    }

    .hero-actions-container .btn {
        width: 100%;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
    }

    .right-item {
        left: 0;
    }

    .left-item .timeline-dot, .right-item .timeline-dot {
        left: 22px;
        right: auto;
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .applications-grid > .app-role-card:nth-child(3) {
        grid-column: span 1;
        max-width: 100%;
    }

    .resources-modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-footer-cta {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }

    .modal-footer-cta p {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 3rem;
    }

    .footer-bottom-layout {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .mission-text-block {
        padding: 0.5rem;
    }

    .calculator-intro, .calculator-display {
    padding: 4.5rem;
    background-color: rgba(62, 78, 55, 0.01);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

    .display-stats-grid {
        grid-template-columns: 1fr;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .checkbox-options-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .app-role-card {
        padding: 1.75rem 1.25rem;
    }

    .resource-main-card {
        padding: 2.25rem 1.5rem;
    }

    .resource-sub-card {
        padding: 1.75rem 1.25rem;
    }
    
    .chapters-map-panel {
        padding: 1.5rem;
    }
    .chapter-details-card {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   Chapters Page Specific Styles
   ========================================================================== */
.chapters-hero {
    min-height: auto;
    padding: 180px 0 100px 0;
}

.chapters-display-section {
    padding: 100px 0;
    position: relative;
}

.chapters-split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.chapters-map-panel {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.map-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.5rem;
}

.map-wrapper {
    position: relative;
    background-color: rgba(62, 78, 55, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.world-map-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.map-marker-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.coordinate-bombay {
    left: 70%;
    top: 52%;
}

.coordinate-toronto {
    left: 24%;
    top: 32%;
}

.coordinate-georgia {
    left: 22%;
    top: 40%;
}

.coordinate-turkey {
    left: 54%;
    top: 38%;
}

.coordinate-austria {
    left: 51%;
    top: 31%;
}

.coordinate-qatar {
    left: 57.5%;
    top: 43%;
}

.coordinate-brazil {
    left: 31%;
    top: 73%;
}

.pulse-ring {
    width: 24px;
    height: 24px;
    border: 2.5px solid var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    animation: pulseRing 1.8s infinite ease-out;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 8px var(--secondary-color);
}

.marker-label {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-handwritten);
    font-size: 1.05rem;
    color: var(--primary-color);
    white-space: nowrap;
    background-color: var(--bg-primary);
    padding: 0.15rem 0.6rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.map-marker-pin:hover .marker-label,
.map-marker-pin:focus .marker-label {
    opacity: 1;
    pointer-events: auto;
}

@keyframes pulseRing {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.chapters-cards-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.chapter-details-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.chapter-card-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1rem;
}

.chapter-card-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.chapter-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.chapter-quote {
    font-family: var(--font-handwritten);
    font-size: 1.45rem;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.chapter-text {
    font-size: 1rem;
    margin-bottom: 1.75rem;
}

.chapter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    font-family: var(--font-handwritten);
    font-size: 1.1rem;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.85rem;
    border-radius: 50px;
}

.chapters-signup-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .chapters-split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ==========================================================================
   Executive Team Grid Styles
   ========================================================================== */
.bombay-details-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px dashed var(--border-color);
}

.exec-section-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
}

.exec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
    align-items: stretch; /* equal heights */
}

.exec-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.exec-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.exec-img-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid var(--border-color);
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.exec-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fallback-container {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-light) 100%);
    box-shadow: 0 4px 16px rgba(138, 163, 126, 0.25);
}

.avatar-fallback {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.exec-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.exec-name {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.exec-role {
    font-family: var(--font-handwritten);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.exec-bio {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .exec-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .exec-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .exec-card {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   Phase 5: Micro-interactions, Accessibility & Mobile Polish
   ========================================================================== */
.btn, .hover-lift, .nav-links a, a {
    transition: all 0.3s ease !important;
}

:focus-visible {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 3px !important;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px !important;
    }
}


@media (max-width: 1100px) {



    .menu-toggle {
        display: flex;
    }

    
    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2rem !important;
    }
    .hero-text-content {
        text-align: center !important;
        order: 2;
    }
    .hero-visual-content {
        order: 1;
        margin-bottom: 2rem;
    }
    .hero-actions-container {
        justify-content: center !important;
    }
}


.mission-brand-circle > svg {
    animation: antiRotation 12s infinite linear;
}

@media (prefers-reduced-motion: reduce) {
    .mission-brand-circle,
    .mission-brand-circle > svg,
    .circular-brand-img {
        animation-play-state: paused !important;
    }
}

/* Card Icon Badge Styling */
.card-icon-container {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}


/* ==========================================================================
   POLISH PASS — Visual Richness Additions
   ========================================================================== */

/* Two-layer lifted card shadow (replaces flat border-only look) */
.pillar-card,
.resource-main-card,
.resource-sub-card,
.exec-card,
.chapter-details-card,
.display-stat-card,
.hobby-item,
.static-calc-table-wrapper {
    box-shadow:
        0 1px 3px rgba(0,0,0,0.06),
        0 8px 24px rgba(0,0,0,0.04) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover,
.resource-main-card:hover,
.resource-sub-card:hover,
.exec-card:hover,
.chapter-details-card:hover {
    box-shadow:
        0 2px 6px rgba(0,0,0,0.08),
        0 16px 40px rgba(0,0,0,0.08) !important;
}

/* Calculator progress ring */
.calc-progress-ring {
    width: 64px;
    height: 64px;
    position: relative;
    flex-shrink: 0;
}

.calc-progress-ring svg {
    transform: rotate(-90deg);
}

.calc-progress-ring .ring-bg {
    fill: none;
    stroke: var(--bg-secondary);
    stroke-width: 5;
}

.calc-progress-ring .ring-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.4s ease;
}

/* Scroll-triggered fade-up animations */
/* Fade-up: only animate if JS adds the 'observe-ready' class to body first,
   so content is always visible if JS fails */
body.observe-ready .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

body.observe-ready .fade-up.visible,
.fade-up {
    opacity: 1;
    transform: translateY(0);
}


/* Dark mode nav link overrides */
[data-theme="dark"] .nav-link {
    color: #C5D4BC;
}
[data-theme="dark"] .nav-link:hover, 
[data-theme="dark"] .nav-link.active {
    color: #F4EBE1;
}


/* Dark mode logo overrides */
[data-theme="dark"] .logo-img,
[data-theme="dark"] .hero-logo-img,
[data-theme="dark"] .mission-brand-circle,
[data-theme="dark"] .footer-brand .logo-img {
    background-color: #FAF9F4 !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}


/* Dark mode primary button consistency */
[data-theme="dark"] .btn-primary {
    background-color: #2E4B24 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .btn-primary:hover {
    background-color: #434B38 !important;
}


/* Dark mode Hero Depth */
[data-theme="dark"] .hero-section {
    background: radial-gradient(circle at center, #232e20 0%, #151a12 100%) !important;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(138, 163, 126, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
}

[data-theme="dark"] .hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(232, 163, 61, 0.06) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
}

/* Global Dark Mode Consistency Fixes (Footer, Buttons, Sections) */

[data-theme="dark"] .section-olive {
    background-color: var(--bg-secondary) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] .section-olive p, 
[data-theme="dark"] .section-olive .section-desc,
[data-theme="dark"] .section-olive .timeline-text,
[data-theme="dark"] .footer-tagline,
[data-theme="dark"] .footer-origin {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .btn-secondary {
    background-color: transparent !important;
    color: var(--text-main) !important;
    border: 1px solid var(--text-muted) !important;
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .badge-accent,
[data-theme="dark"] .resource-badge,
[data-theme="dark"] .badge-olive {
    background-color: rgba(227, 239, 217, 0.15) !important;
    color: var(--primary-color) !important;
    border-color: rgba(227, 239, 217, 0.3) !important;
}

[data-theme="dark"] .calc-progress-ring .ring-fill {
    stroke: var(--primary-color) !important;
}

[data-theme="dark"] #ringPercent {
    color: var(--text-main) !important;
}


/* ==========================================================================
   PHASE 1 ADDITIONS — Nav Drawer, Impact Stats, Badges, Privacy Notice
   ========================================================================== */

/* ---- New sticky nav structure ---- */
.nav-sticky-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-sticky-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 0.25rem;
    transition: color var(--transition-fast);
}
.nav-sticky-link:hover { color: var(--primary-color); }

[data-theme="dark"] .nav-sticky-link { color: #C5D4BC; }
[data-theme="dark"] .nav-sticky-link:hover { color: #F4EBE1; }

.btn-amber {
    background-color: var(--amber) !important;
    color: #ffffff !important;
    border: none !important;
}
.btn-amber:hover {
    background-color: #cc8e31 !important;
}

/* ---- Mobile Drawer ---- */
.mobile-drawer {
    display: block;
    pointer-events: none;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background-color: var(--bg-primary);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0 2rem;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

.mobile-drawer.open .drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}
.mobile-drawer.open .drawer-panel {
    transform: translateX(0);
}
.mobile-drawer.open {
    display: block;
    pointer-events: auto;
}

.drawer-close {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    transition: background-color var(--transition-fast);
}
.drawer-close:hover { background-color: var(--primary-light); }

.drawer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-link {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 1.75rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
.drawer-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Show hamburger on mobile; hide it on desktop */
.menu-toggle { display: none; }
@media (max-width: 900px) {
    .nav-menu { display: none !important; }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
    }
    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--primary-color);
        transition: all var(--transition-fast);
    }
    .nav-sticky-link { display: none; }
}
@media (min-width: 901px) {
    .nav-sticky-link { display: inline-flex; }
    .menu-toggle { display: none !important; }
}

/* ---- Impact Stats Section ---- */
.impact-stats-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 500;
}

.stat-expand-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0.25rem 0;
    min-height: 36px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}
.stat-expand-btn:hover { color: var(--primary-color); }

.stat-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: left;
    background: var(--primary-light);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    width: 100%;
    margin-top: 0.25rem;
}

.stats-subline {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 2rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .stat-card { padding: 1.25rem 1rem; }
    .impact-stats-section { padding: 40px 0; }
}

/* ---- Chapter Status Badges ---- */
.badge-status-active {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

[data-theme="dark"] .badge-status-active {
    background-color: rgba(46, 75, 36, 0.4);
    color: #a3c99b;
    border-color: rgba(163, 201, 155, 0.3);
}

.badge-coming-soon {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

[data-theme="dark"] .badge-coming-soon {
    background-color: rgba(232, 163, 61, 0.2);
    color: #e8a33d;
    border-color: rgba(232, 163, 61, 0.4);
}

.coming-soon-chapter-card {
    opacity: 0.9;
    border-style: dashed !important;
}

/* ---- Privacy Notice Banner ---- */
.privacy-notice-banner {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.privacy-details {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.privacy-summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    list-style: none;
    min-height: 44px;
    user-select: none;
}
.privacy-summary::-webkit-details-marker { display: none; }
.privacy-summary:hover { color: var(--primary-color); }

.privacy-body {
    padding: 1rem 1.5rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

/* ---- Hero text link ---- */
.hero-text-link {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: var(--font-body);
    display: inline-block;
    margin-top: 0.25rem;
    min-height: 36px;
    line-height: 36px;
    transition: color var(--transition-fast);
}
.hero-text-link:hover { color: rgba(255,255,255,0.95); }

/* =========================================
   RESOURCES PAGE CSS
   ========================================= */
.filter-chip {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: var(--card-bg);
    color: var(--text-main);
}

.filter-chip.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* =========================================
   CHAPTERS MOBILE MAP / SELECTOR CSS
   ========================================= */
.mobile-chapter-selector {
    display: none;
}

@media (max-width: 900px) {
    .chapters-map-panel {
        display: none !important;
    }
    .mobile-chapter-selector {
        display: block;
    }
}

/* =========================================
   PHASE 6: FORM & ACCESSIBILITY POLISH
   ========================================= */
input, select, textarea, button, .btn {
    min-height: 44px; /* Accessible minimum touch target */
}

/* Ensure forms have generous padding on mobile */
.waiting-list-form, .newsletter-form {
    padding: 0.5rem;
}

.waiting-list-form input,
.waiting-list-form select,
.waiting-list-form textarea {
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    width: 100%;
}

.modal-box {
    padding: 2.5rem !important; /* Larger padding for modal */
}

@media (max-width: 768px) {
    .modal-box {
        padding: 1.5rem !important;
        width: 95% !important;
        margin: 1rem auto;
    }
}

/* =========================================
   PHASE 7: GLOBAL ACCESSIBILITY & A11Y
   ========================================= */
html, body {
    font-size: 16px; /* Prevent iOS auto-zoom */
    overflow-x: hidden; /* Prevent horizontal scroll on 320px devices */
    width: 100%;
}

/* Clear, visible focus states for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--accent-glow);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Ensure contrasting focus on dark backgrounds */
[data-theme="dark"] :focus-visible,
.section-olive :focus-visible {
    outline-color: var(--amber);
}

/* Base text contrast assurance */
.text-muted {
    opacity: 0.85; /* ensure WCAG 4.5:1 minimum on standard backgrounds */
}

/* =========================================
   MOBILE FRIENDLINESS POLISH (Phase 9)
   ========================================= */
body {
    -webkit-text-size-adjust: 100%;
}

@media (max-width: 600px) {
    /* Make typography tighter on small screens */
    .hero-main-title {
        font-size: 2.25rem !important;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .section-title {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }
    
    .hero-slogan {
        font-size: 1.1rem !important;
    }
    
    .section-desc, .hero-intro-text {
        font-size: 1rem !important;
        line-height: 1.5;
    }

    /* Better spacing for mobile sections */
    section {
        padding: 3rem 0 !important;
    }
    
    .hero-section {
        padding-top: 6rem !important;
    }

    /* Make buttons full width on small screens to make tapping easier */
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    /* Make sure cards have enough padding inside and out */
    .card, .pillar-card, .resource-card, .chapter-details-card, .exec-card, .app-role-card, .display-stat-card, .resource-main-card, .resource-sub-card {
        padding: 1.5rem !important;
        border-radius: 16px !important;
        margin-bottom: 1.25rem !important;
        box-shadow: var(--shadow-sm);
        border-width: 1px;
    }
    
    .resources-grid {
        gap: 1.5rem !important;
    }

    /* Enlarge tap targets for mobile drawer links */
    .drawer-link {
        font-size: 1.25rem;
        padding: 1rem 0;
        display: block;
    }
    
    /* Ensure the newsletter form on mobile stacks properly */
    .newsletter-form {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form button {
        width: 100%;
        height: 48px;
        border-radius: 4px !important;
    }
}


/* =========================================
   CALCULATOR MOBILE OPTIMIZATION
   ========================================= */
@media (max-width: 900px) {
    .calculator-wrapper {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .calculator-intro {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding: 2rem 1.5rem !important;
        position: static !important;
    }
    
    .calculator-display {
        padding: 2rem 1.5rem !important;
    }
    
    .display-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .plain-language-frame {
        padding: 1rem !important;
    }
}

@media (max-width: 480px) {
    .hobbies-alternatives {
        grid-template-columns: 1fr !important;
    }
    
    .slider-control-wrapper {
        padding: 1rem !important;
    }
    
    .calculator-intro h1.section-title {
        font-size: 1.8rem !important;
    }
}



/* =========================================
   LIGHTHOUSE CLS OPTIMIZATION
   ========================================= */
.hero-section {
    contain: layout paint;
}
.hero-main-title {
    min-height: 1.1em;
}
.hero-section::before, .hero-section::after {
    will-change: transform;
    transform: translateZ(0);
}


/* =========================================
   MOBILE NAV LINK VISIBILITY FIX
   ========================================= */
@media (max-width: 900px) {
    /* Override display: none to make Leadership and Chapters visible */
    .nav-sticky-link { 
        display: inline-flex !important; 
        font-size: 0.85rem !important;
        padding: 0 0.25rem !important;
    }
    
    /* Reduce gaps so everything fits */
    .nav-sticky-actions {
        gap: 0.35rem !important;
    }
    
    /* Shrink the Join Us button slightly on mobile to save space */
    .nav-sticky-actions .nav-cta {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Give the navbar a bit more breathing room by reducing side padding */
    .nav-container {
        padding: 0 0.5rem !important;
    }
    
    /* If the screen is very small, allow the navbar to wrap so nothing is compromised */
    .nav-container {
        flex-wrap: wrap !important;
        min-height: 70px !important;
        height: auto !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .nav-logo {
        margin-right: auto !important;
    }
}

@media (max-width: 400px) {
    .nav-sticky-link {
        font-size: 0.75rem !important;
    }
    .logo-text {
        font-size: 1.1rem !important;
    }
}



/* =========================================
   PREMIUM RESOURCE CARDS UPGRADE
   ========================================= */
.resource-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.resource-cover {
    position: relative;
    height: 180px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
}

.resource-badge {
    position: absolute !important;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.resource-cover span:not(.resource-badge) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    font-size: 3rem !important; 
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    z-index: 1;
    line-height: 1;
}

.resource-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.resource-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.resource-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 600;
    opacity: 0.8;
}

.resource-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.resource-card .btn {
    margin-top: auto !important; 
}

