/* ========================================================= */
/* GLOBAL.CSS — THE MASTER FOUNDATION                        */
/* (Variables, Base, Header, Footer, Global Components)      */
/* ========================================================= */

/* 1. RESET & BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: var(--font-body);
    background-color: var(--bg-fallback);
    color: var(--text-body);
    line-height: 1.7;
    scroll-behavior: smooth;
    padding-top: 0px;
    min-height: 100vh;
    overflow-x: clip;
    max-width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* 2. VARIABLES (FIXED: Flattened :root) */
:root {
    /* Typography Scale — Responsive with clamp() */
--text-xs:  clamp(0.625rem, 0.575rem + 0.2vw, 0.75rem);   /* badges, tiny labels */
--text-sm:  clamp(0.75rem,  0.7rem   + 0.25vw, 0.875rem);  /* small text */
--text-base: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);     /* body text */
--text-lg:  clamp(1rem,     0.95rem  + 0.3vw,  1.125rem);  /* large body */
--text-xl:  clamp(1.1rem,   1rem     + 0.4vw,  1.25rem);   /* subheadings */
--text-2xl: clamp(1.25rem,  1.1rem   + 0.6vw,  1.5rem);
--text-3xl: clamp(1.5rem,   1.25rem  + 0.9vw,  1.875rem);
--text-4xl: clamp(1.75rem,  1.4rem   + 1.2vw,  2.25rem);
--text-5xl: clamp(2.25rem,  1.75rem  + 1.8vw,  3rem);      /* section headings */
--text-6xl: clamp(2.75rem,  2rem     + 2.5vw,  3.75rem);   /* big headings */
--text-7xl: clamp(3rem,     2.25rem  + 3vw,    4.5rem);    /* hero headings */

    /* Fonts */
    --font-body: 'Inter', 'Mukta', system-ui, sans-serif;
    --font-heading: 'Inter', 'Mukta', system-ui, sans-serif;
    --font-hindi: 'Mukta', sans-serif;

    /* Core Brand Colors */
    --bg-fallback: #E8FFEA;
    --brand-cherry: #D50000;
    --brand-cherry-dark: #b91c1c;
    --brand-primary: #00E676;
    --bg-dark: #0A2F44;

    /* Theme Colors */
    --emerald-dark: #064E3B;
    --emerald-mid: #047857;
    --emerald-light: #10B981;
    --teal-soft: #7EB8D4;
    --gold-sunrise: #FCD34D;
    --gold-warm: #F59E0B;
    --earth-brown: #4B2E0A;
    --cream-bg: #F8FAF5;
    --calc-bg: #FDE047;
    --health-bg: #0F6B3E;
    --border-light: #d1fae5;
    --bg-black: #000000b3;


    /* UI Surface Colors (Previously hidden/broken) */
    --bg-white: #ffffff;
    --bg-cherry-light: #fee2e2;
    --bg-surface-light: #f8fafc;
    --bg-surface-lighter: #fafbfc;
    --bg-surface-green: #f4fcf7;
    --border-subtle: #e9edf2;
    --border-slide: #dee2e8;
    --bg-dot-hover: #d1d9e6;
    --green-dark: #1fa86a;

    /* Text Colors */
    --text-light: #E2E8F0;
    --text-white: #FFFFFF;
    --text-dark: #1F2937;
    --text-muted: #64748b; /* Standardized */
    --text-muted-dark: #475569;
    --text-muted-light: #94a3b8;
    --text-body: #334155;

    /* Layout */
    --header-height: 80px;
    --transition-speed: 0.3s;
}

/* 3. UTILITIES */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.text-cherry { color: var(--brand-cherry); font-weight: 800; }
.text-primary { color: var(--brand-primary); }
.text-gold { color: var(--gold-warm); }
.gradient-text-red { background: linear-gradient(135deg, #FF6B6B, var(--brand-cherry)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.gradient-text-gold { background: linear-gradient(135deg, #FCD34D, #F59E0B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* 4. BUTTONS */
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1.5rem; border-radius: 30px;
    font-family: var(--font-heading); font-weight: 700;
    transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--brand-primary); color: var(--bg-dark); box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3); }
.btn-primary:hover { background: var(--text-white); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text-white); border: 2px solid rgba(255, 255, 255, 0.2); }
.btn-secondary:hover { border-color: var(--brand-primary); background: rgba(0, 230, 118, 0.1); }


/* ========================================================= */
/* 5. HEADER — COMPLETE (with wrapper fix)                   */
/* ========================================================= */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 14px 40px;
    background: rgba(10, 47, 68, 0.85);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex; flex-direction: row; justify-content: space-between; align-items: center;
    transition: background 0.3s ease;
}

/* 👇 THE MISSING PIECE — makes logo + nav + CTA sit in ONE line */
.header-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
}

.header .logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.header .logo .icon { font-size: var(--text-2xl); color: var(--brand-primary); }
.header .logo .brand { font-size: var(--text-xl); font-weight: 800; color: var(--brand-primary); }
.header .logo .brand span { color: var(--brand-primary); }
.header .header-right { display: flex; align-items: center; gap: 1rem; }
.header .nav { display: flex; flex-direction: row; align-items: center; gap: 0.3rem; list-style: none; margin: 0; padding: 0; }
.header .nav a { color: rgba(255, 255, 255, 0.7); font-size: var(--text-sm); font-weight: 500; padding: 0.5rem; transition: color 0.3s; white-space: nowrap; }
.header .nav a:hover { color: #FFFFFF; }
.header .nav a .dropdown-arrow { font-size: var(--text-xs); margin-left: 0.1rem; opacity: 0.4; }
.header .nav .dropdown { position: relative; display: inline-block; }
.header .nav .dropdown-content {
    display: none; position: absolute; top: 100%; left: 0;
    background: rgba(10, 47, 68, 0.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px;
    padding: 0.5rem 0; min-width: 220px; margin-top: 0.3rem;
    z-index: 1001; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.header .nav .dropdown:hover .dropdown-content { display: block; }
.header .nav .dropdown-content a { display: block; padding: 0.5rem 1.2rem; font-size: var(--text-sm); color: rgba(255, 255, 255, 0.7); white-space: nowrap; }
.header .nav .dropdown-content a:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.05); }
.header .cta-nav { background: linear-gradient(135deg, var(--brand-primary), #10B981); color: var(--bg-dark); font-weight: 700; padding: 0.5rem 1.2rem; border-radius: 50px; font-size: var(--text-sm); white-space: nowrap; }
.menu-toggle { display: none; background: transparent; border: none; color: var(--text-white); font-size: var(--text-2xl); cursor: pointer; }
.mobile-cta { display: none; }

@media (max-width: 768px) {
    .header { padding: 12px 20px; }
    .header .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: rgba(10, 47, 68, 0.97); padding: 1.5rem 2rem; gap: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .header .nav.open { display: flex; }
    .header .nav .dropdown-content { position: static; display: none; background: transparent; border: none; box-shadow: none; padding: 0.3rem 0 0 1rem; min-width: 0; }
    .header .nav .dropdown-content.open { display: block; }
    .menu-toggle { display: block; }
    .header .cta-nav { display: none; }
    .mobile-cta { display: inline-flex; }
}
/* 6. FOOTER (Solid Background - No Stretching) */
.footer {
    background-color: var(--bg-fallback);
    background-image: url('../public/image/homepage/epr_neo_green_vasundhara_hompage_background_image.jpg');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    padding: 5rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 0;
    color: var(--brand-cherry);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; max-width: 1280px; margin-left: auto; margin-right: auto; padding: 0 1.5rem; }
.footer h4 { font-size: var(--text-lg); margin-bottom: 1.5rem; color: var(--brand-cherry); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.footer a { color: var(--brand-cherry); transition: color 0.3s; }
.footer a:hover { color: var(--brand-cherry-dark); text-decoration: underline; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(210, 4, 45, 0.2); font-size: var(--text-sm); color: var(--brand-cherry); max-width: 1280px; margin: 0 auto; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-col { margin-bottom: 1rem; }
}

/* 7. GLOBAL COMPONENT: WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed; bottom: 2rem; right: 2rem;
    background-color: #25d366; color: white;
    width: 60px; height: 60px; border-radius: 50%;
    font-size: 32px; box-shadow: 2px 2px 15px rgba(0,0,0,0.4);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

/* 8. GLOBAL COMPONENT: 2026 EPR CTA SECTION */
.cta-section {
    padding: 6rem 2rem;
    background: transparent;
    position: relative;
}

.cta-wrapper {
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 3rem 3rem;
    background-color: var(--bg-dark);
    border-radius: 32px;
    border: 2px solid rgba(255, 255, 255, 0.01);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
}

.cta-glow { position: absolute; width: 400px; height: 400px; border-radius: 50%; filter: blur(120px); opacity: 0.15; pointer-events: none; z-index: 0; }
.glow-tr { top: -100px; right: -100px; background: var(--brand-primary); }
.glow-bl { bottom: -100px; left: -100px; background: var(--brand-cherry); }

/* Equal height columns */
.cta-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
    align-items: stretch;
}

.cta-left-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    grid-column: auto !important;
}

.cta-right-col {
    grid-column: auto !important;
}

.cta-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(210, 4, 45, 0.1); border: 1px solid rgba(210, 4, 45, 0.3); color: var(--brand-cherry); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; padding: 0.5rem 1.2rem; border-radius: 50px; text-transform: uppercase; margin-bottom: 1.5rem; width: fit-content; }

.cta-title { font-size: var(--text-5xl); font-weight: 900; color: #FFFFFF; line-height: 1.2; margin-bottom: 1rem; }
.gradient-gold { background: linear-gradient(135deg, #FFD54F, #FF8F00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.cta-desc { font-size: var(--text-lg); color: rgba(255, 255, 255, 0.6); line-height: 1.7; margin-bottom: 2rem; }

.cta-form-box { background: #1a2a35; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 1.8rem; margin-top: auto; }
.cta-form-title { font-size: var(--text-lg); font-weight: 700; color: #FFFFFF; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
.cta-form-title i { color: var(--brand-primary); }
.cta-form-group { display: flex; flex-direction: column; gap: 0.8rem; }
.cta-input { padding: 0.9rem 1.3rem; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05); color: #FFFFFF; font-size: var(--text-sm); width: 100%; }
.cta-input:focus { outline: none; border-color: var(--brand-primary); }
.cta-input::placeholder { color: rgba(255, 255, 255, 0.3); }
.cta-btn { padding: 0.9rem 1.5rem; border-radius: 12px; border: none; background: linear-gradient(135deg, var(--brand-primary), #34D399); color: var(--bg-dark); font-size: var(--text-base); font-weight: 700; cursor: pointer; width: 100%; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 230, 118, 0.35); }

/* Right column - equal height with left */
.cta-right-col {
    display: flex;
    flex-direction: column;
}

.cta-lessons-title { font-size: var(--text-xl); font-weight: 800; color: #FFFFFF; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.8rem; }
.cta-lessons-icon { width: 40px; height: 40px; background: rgba(0, 230, 118, 0.1); border: 1px solid rgba(0, 230, 118, 0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--brand-primary); }

/* Grid fills full height, cards stretch equally */
.cta-lessons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    flex-grow: 1;
    align-content: stretch;
}

.cta-lesson-card { background: #1a2a35; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px; padding: 1.5rem; border-top: 3px solid transparent; display: flex; flex-direction: column; }
.cta-lesson-card:hover { background: #223540; transform: translateY(-4px); }
.cta-lesson-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.cta-lesson-emoji { font-size: 1.5rem; }
.cta-lesson-title { font-size: var(--text-sm); font-weight: 700; color: #FFFFFF; }
.cta-lesson-desc { font-size: var(--text-xs); color: rgba(255, 255, 255, 0.5); line-height: 1.6; margin-bottom: 0.8rem; flex-grow: 1; }
.cta-lesson-tip { font-size: var(--text-xs); font-weight: 600; font-style: italic; padding: 0.4rem 0.8rem; border-radius: 8px; display: inline-block; margin-top: auto; }

.theme-emerald { border-top-color: #10B981; }
.theme-emerald .cta-lesson-tip { background: rgba(16, 185, 129, 0.08); color: #34D399; }
.theme-amber { border-top-color: #F59E0B; }
.theme-amber .cta-lesson-tip { background: rgba(245, 158, 11, 0.08); color: #FBBF24; }
.theme-rose { border-top-color: #F43F5E; }
.theme-rose .cta-lesson-tip { background: rgba(244, 63, 94, 0.08); color: #FB7185; }
.theme-blue { border-top-color: #3B82F6; }
.theme-blue .cta-lesson-tip { background: rgba(59, 130, 246, 0.08); color: #60A5FA; }

/* Bottom CTA button - WHITE background, GREEN text */
.cta-bottom-action { text-align: center; margin-top: 3rem; position: relative; z-index: 1; }
.cta-talk-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    border-radius: 60px;
    background: #FFFFFF;
    color: var(--health-bg);
    font-size: var(--text-lg);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.cta-talk-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .cta-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .cta-wrapper { padding: 2rem 1.5rem; }
}
@media (max-width: 768px) {
    .cta-lessons-grid { grid-template-columns: 1fr; }
    .cta-wrapper { border-radius: 24px; padding: 2rem 1rem; }
    .cta-section { padding: 3rem 20px; }
    
    /* APPLE FIX: Stop Safari from hiding parallax background images on mobile */
    * { background-attachment: scroll !important; }
}

/* APPLE FIX: Let touch events pass through overlays so the Safari Play button works */
.process-overlay, .hero-video-overlay, .video-overlay {
    pointer-events: none !important;
}
