/* css/main.css - Core styles and variables */

:root {
    /* Color Scheme - Conceive: Clinical Authority, Reproductive Health, Causal Intelligence */
    
    /* Primary - Medical Navy */
    --color-primary-900: #061220;
    --color-primary-800: #0F2540;
    --color-primary-700: #1A3A5C;
    --color-primary-600: #2A507A;
    --color-primary-500: #3A6A94;
    --color-primary-400: #5A8AB0;
    --color-primary-300: #8AB0CC;
    --color-primary-200: #B4CCE3;
    --color-primary-100: #DCE8F2;
    --color-primary-50: #F0F5FA;
    
    /* Secondary - Fertility Teal */
    --color-secondary-900: #0A3D34;
    --color-secondary-800: #106055;
    --color-secondary-700: #1A8B7A;
    --color-secondary-600: #26A894;
    --color-secondary-500: #3CC0AC;
    --color-secondary-400: #60D0C0;
    --color-secondary-300: #88DDD0;
    --color-secondary-200: #B0ECE0;
    --color-secondary-100: #D8F6F0;
    --color-secondary-50: #F0FBF8;
    
    /* Accent - Causal Gold */
    --color-accent-900: #7A6220;
    --color-accent-800: #A5842B;
    --color-accent-700: #C49D30;
    --color-accent-600: #D4A437;
    --color-accent-500: #E0B54A;
    --color-accent-400: #E8C46A;
    --color-accent-300: #F0D48A;
    --color-accent-200: #F5E4B0;
    --color-accent-100: #FAF2D6;
    --color-accent-50: #FDF8EC;
    
    /* Neutral Grayscale */
    --color-gray-900: #0D1117;
    --color-gray-800: #161B22;
    --color-gray-700: #1F242F;
    --color-gray-600: #30363D;
    --color-gray-500: #484F58;
    --color-gray-400: #6E7681;
    --color-gray-300: #8B949E;
    --color-gray-200: #B1BAC4;
    --color-gray-150: #D0D7DE;
    --color-gray-100: #E6EDF4;
    --color-gray-50: #F0F6FC;
    
    /* Semantic Colors */
    --color-success: #27AE60;
    --color-success-bg: #DAFBE1;
    --color-warning: #F4A261;
    --color-warning-bg: #FEF2D5;
    --color-error: #C44536;
    --color-error-bg: #FDE2E2;
    --color-info: #58A6FF;
    --color-info-bg: #E1F0FF;
    
    /* Background & Surface */
    --color-background: #FFFFFF;
    --color-background-alt: var(--color-gray-50);
    --color-surface: #FFFFFF;
    --color-surface-alt: var(--color-gray-50);
    --color-surface-hover: var(--color-gray-100);
    
    /* Text */
    --color-text-primary: var(--color-gray-900);
    --color-text-secondary: var(--color-gray-700);
    --color-text-tertiary: var(--color-gray-500);
    --color-text-inverse: #FFFFFF;
    --color-text-link: var(--color-primary-600);
    
    /* Borders */
    --color-border: var(--color-gray-200);
    --color-border-light: var(--color-gray-150);
    --color-border-dark: var(--color-gray-300);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Source Serif Pro', Georgia, serif;
    
    /* Font Sizes */
    --text-5xl: clamp(3rem, 6vw, 4.5rem);
    --text-4xl: clamp(2.5rem, 5vw, 4rem);
    --text-3xl: clamp(2rem, 3.5vw, 3rem);
    --text-2xl: clamp(1.5rem, 2.5vw, 2rem);
    --text-xl: clamp(1.25rem, 1.8vw, 1.5rem);
    --text-lg: clamp(1.125rem, 1.2vw, 1.25rem);
    --text-base: clamp(1rem, 1vw, 1.125rem);
    --text-sm: clamp(0.875rem, 0.8vw, 0.95rem);
    --text-xs: clamp(0.75rem, 0.6vw, 0.85rem);
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.2;
    --leading-normal: 1.5;
    --leading-relaxed: 1.7;
    --leading-loose: 2;
    
    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;
    
    /* Containers */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
    /* Section Spacing */
    --section-padding: clamp(4rem, 8vw, 8rem);
    --section-padding-sm: clamp(3rem, 5vw, 4rem);
    
    /* Component Spacing */
    --component-gap: clamp(1.5rem, 3vw, 3rem);
    --component-padding: clamp(1.5rem, 2.5vw, 2.5rem);
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    line-height: var(--leading-relaxed);
    background-color: var(--color-background);
}

.container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

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

a:hover {
    color: var(--color-secondary-700);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-secondary-600);
    color: white;
    border-color: var(--color-secondary-600);
}

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

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary-600);
    color: var(--color-primary-600);
}

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

.btn-outline {
    background-color: transparent;
    border-color: white;
    color: white;
}

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: var(--text-lg);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header.light {
    color: white;
}

.section-header.light .section-title {
    color: white;
}

.section-header.light .section-subtitle {
    color: rgba(255,255,255,0.9);
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-3);
    position: relative;
    display: inline-block;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-tertiary);
    margin-top: -var(--space-2);
    margin-bottom: var(--space-4);
}

.title-highlight {
    color: var(--color-secondary-600);
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-600), var(--color-secondary-600));
    margin: var(--space-3) auto 0;
    border-radius: 2px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 820px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }
    
    .section-title {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    h1 { font-size: var(--text-2xl); }
    h2 { font-size: var(--text-xl); }
    
    .section-title {
        font-size: var(--text-xl);
    }
}
/* ===== HERO TEXT VISIBILITY - GLOBAL FIXES ===== */

/* Background Image Overlay (if using images) */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
}

/* Hero Content - Ensure Highest Z-Index */
.hero-content,
.internal-hero-content {
    position: relative;
    z-index: 10;
}

/* Hero Background - Lowest Z-Index */
.hero-background,
.internal-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Ensure all hero text is readable */
.hero *,
.internal-hero * {
    position: relative;
    z-index: 2;
}

/* WCAG-compliant contrast for hero text */
.hero-title,
.internal-hero-title {
    color: #FFFFFF !important;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.hero-subtitle,
.internal-hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 15px rgba(0, 0, 0, 0.3);
}

/* Badge visibility */
.hero-badge {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Stats visibility */
.hero-stat .stat-number {
    color: var(--color-secondary-400) !important;
}

.hero-stat .stat-label {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Trust pills visibility */
.hero-trust .trust-pill {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Meta indicators visibility */
.internal-hero-meta span {
    color: rgba(255, 255, 255, 0.8) !important;
}

.internal-hero-meta i {
    color: var(--color-secondary-400) !important;
}

/* Breadcrumb visibility */
.internal-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.7) !important;
}

.internal-hero-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.3) !important;
}

.internal-hero-breadcrumb .current {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Wave ensure proper fill */
.hero-wave svg,
.internal-hero-wave svg {
    fill: #ffffff !important;
}

/* Responsive adjustments for hero text */
@media (max-width: 820px) {
    .hero-title,
    .internal-hero-title {
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 480px) {
    .hero-title,
    .internal-hero-title {
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
    }
}
/* ===== REMOVE ALL WAVE DIVIDERS ===== */

/* Hide any wave patterns globally */
.hero-wave,
.internal-hero-wave,
.page-header-wave,
.hero-wave-container {
    display: none !important;
}

/* Ensure clean section transitions */
.section-transition {
    padding-top: 0;
    margin-top: 0;
}
/* ===== INTERNAL HERO ORDERING - GLOBAL FIX ===== */

.internal-hero {
    position: relative;
    overflow: hidden;
}

.internal-hero .container {
    position: relative;
    z-index: 10;
}

.internal-hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.internal-hero-breadcrumb {
    order: 1;
}

.internal-hero-badge {
    order: 2;
}

.internal-hero-title {
    order: 3;
}

.internal-hero-subtitle {
    order: 4;
}

.internal-hero-meta {
    order: 5;
}

.internal-hero-actions {
    order: 6;
}

.internal-hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 3;
    pointer-events: none;
}
/* ===== STANDARDIZED INTERNAL HERO ===== */

/* Internal Hero - Matches Homepage Quality */
.internal-hero-standard {
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary-800), var(--color-primary-900));
    color: white;
    overflow: hidden;
    padding: 50px 0 40px;
}

/* Same background as homepage */
.internal-hero-standard .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.internal-hero-standard .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

/* Same content styling as homepage */
.internal-hero-standard .hero-content {
    position: relative;
    z-index: 10;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

/* Same title styling as homepage */
.internal-hero-standard .hero-title {
    font-size: var(--text-4xl);
    font-weight: var(--weight-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
    font-family: var(--font-display);
    margin-bottom: var(--space-3);
    color: white;
}

.internal-hero-standard .hero-title .text-highlight {
    color: var(--color-secondary-400);
}

/* Same subtitle styling as homepage */
.internal-hero-standard .hero-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--leading-relaxed);
    max-width: 600px;
    margin: 0 auto var(--space-4);
}

/* Same actions styling as homepage */
.internal-hero-standard .hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.internal-hero-standard .hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

/* No waves - removed completely */
.internal-hero-standard .hero-wave {
    display: none !important;
}

/* Responsive - matching homepage */
@media (max-width: 820px) {
    .internal-hero-standard {
        padding: 40px 0 30px;
        min-height: 200px;
    }
    
    .internal-hero-standard .hero-title {
        font-size: var(--text-3xl);
    }
    
    .internal-hero-standard .hero-subtitle {
        font-size: var(--text-base);
    }
}

@media (max-width: 480px) {
    .internal-hero-standard {
        padding: 35px 0 25px;
        min-height: 180px;
    }
    
    .internal-hero-standard .hero-title {
        font-size: var(--text-2xl);
    }
    
    .internal-hero-standard .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .internal-hero-standard .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}