/* ==========================================================================
   Norah Jane's Light — Modernized Clinical & Advocacy Styling
   Palette: Norah's Purple (#3E1B6B / #4A148C), Soft Lavender (#F8F4FC / #EDE7F6),
            Radiant Sun Gold (#F59E0B / #D97706), Crisp Slate (#1E293B)
   ========================================================================== */

:root {
    --primary-color: #3E1B6B;
    --primary-light: #5B2B9D;
    --primary-dark: #250E46;
    --primary-gradient: linear-gradient(135deg, #3E1B6B 0%, #5B2B9D 100%);
    
    --secondary-color: #EDE7F6;
    --lavender-light: #FAF7FC;
    --lavender-border: #E4D5F0;
    --lavender-glow: rgba(91, 43, 157, 0.12);
    
    --accent-color: #F59E0B;
    --accent-light: #FDE68A;
    --accent-dark: #D97706;
    
    --text-main: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    
    --bg-page: #FAF9FC;
    --surface: #FFFFFF;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 6px rgba(37, 14, 70, 0.04);
    --shadow-md: 0 6px 20px rgba(37, 14, 70, 0.07);
    --shadow-lg: 0 16px 36px rgba(37, 14, 70, 0.12);
    --shadow-glow: 0 0 24px rgba(245, 158, 11, 0.35);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.75rem; font-weight: 700; }
h2 { font-size: 2.1rem; font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
    margin-bottom: 1.15rem;
    color: var(--text-main);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.25s ease;
}

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

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

/* Container */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.text-center { text-align: center; }
.section-padding { padding: 5rem 0; }
.section-padding-sm { padding: 3rem 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--surface);
    box-shadow: var(--shadow-md);
}

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

.btn-accent {
    background-color: var(--accent-color);
    color: #1E1202;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-accent:hover {
    background-color: #FBBF24;
    color: #1E1202;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

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

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

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

.btn-outline-white:hover {
    background: var(--surface);
    color: var(--primary-color);
}

/* Badges & Tags */
.badge-clinician {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 1rem;
    border: 1px solid var(--lavender-border);
}

.badge-featured {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--lavender-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    color: var(--accent-color);
    font-size: 1.35rem;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4));
}

nav ul {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 0.35rem 0.15rem;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(62, 27, 107, 0.94) 0%, rgba(91, 43, 157, 0.9) 100%);
    color: var(--surface);
    padding: 7rem 0 5.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.4rem;
    color: var(--surface);
    margin-bottom: 1.25rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    max-width: 820px;
    margin: 0 auto 2.25rem;
    color: #F1E9F7;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Status Milestone Banner */
.milestone-banner {
    background: linear-gradient(to right, #FAF7FC, #F3ECF8);
    border-left: 5px solid var(--accent-color);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin: -2.5rem auto 3rem;
    max-width: 960px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--lavender-border);
    border-right: 1px solid var(--lavender-border);
    border-bottom: 1px solid var(--lavender-border);
}

.milestone-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.milestone-header i {
    color: var(--accent-color);
}

.milestone-text {
    font-size: 1.02rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Feature Cards Grid */
.features {
    background-color: var(--surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--lavender-border);
    border-radius: var(--radius-md);
    padding: 2.25rem 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #D3BCE6;
}

.feature-icon {
    font-size: 2.25rem;
    color: var(--primary-light);
    margin-bottom: 1.25rem;
    display: inline-block;
}

/* Story Preview Component */
.story-preview {
    background: linear-gradient(135deg, #FAF7FC 0%, #F5EDFA 100%);
    border-top: 1px solid var(--lavender-border);
    border-bottom: 1px solid var(--lavender-border);
}

.container-flex {
    display: flex;
    gap: 3.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.story-image {
    flex: 1;
    min-width: 300px;
}

.story-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--surface);
}

.story-content {
    flex: 1.2;
    min-width: 300px;
}

/* Timeline (for Story Page) */
.timeline {
    position: relative;
    max-width: 860px;
    margin: 2rem auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light), var(--accent-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 1rem 2.5rem;
    position: relative;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    right: -9px;
    background-color: var(--surface);
    border: 3px solid var(--accent-color);
    top: 1.75rem;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

.timeline-item.right::after { left: -9px; }

.timeline-content {
    padding: 1.75rem 2rem;
    background-color: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--lavender-border);
    transition: transform 0.25s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--accent-dark);
    margin-bottom: 0.35rem;
}

/* Spotlight Card for Aaron Siri's Book */
.spotlight-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF7FD 100%);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3.5rem;
    position: relative;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 850px) {
    .spotlight-grid {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}



/* Video Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background-color: #000;
    margin-top: 1.25rem;
}

.video-wrapper video, .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Reform Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pillar-item {
    background: var(--surface);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    border-top: 1px solid var(--lavender-border);
    border-right: 1px solid var(--lavender-border);
    border-bottom: 1px solid var(--lavender-border);
}

.pillar-item:hover {
    border-left-color: var(--accent-color);
}

.pillar-num {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

/* Call to Action Banner */
.cta-banner {
    background: var(--primary-gradient);
    color: var(--surface);
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.cta-banner h2 {
    color: var(--surface);
}

.cta-banner p {
    color: #F1E9F7;
    max-width: 650px;
    margin: 0 auto 2rem;
    font-size: 1.15rem;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: #D8CCE4;
    padding: 4rem 0 2.5rem;
    text-align: center;
    border-top: 3px solid var(--accent-color);
}

footer a {
    color: var(--accent-light);
}

footer a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    list-style: none;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #E2D7ED;
    font-size: 0.95rem;
}



/* Responsive Media Queries */
@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        padding: 1.5rem 1.25rem;
        box-shadow: var(--shadow-lg);
        border-bottom: 2px solid var(--primary-color);
        gap: 1.15rem;
    }
    
    nav ul.nav-open {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .timeline::after {
        left: 24px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 55px;
        padding-right: 10px;
        text-align: left !important;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item::after {
        left: 15px !important;
    }
    
    .milestone-banner {
        margin: -1.5rem 1rem 2.5rem;
        padding: 1.25rem;
    }
}
