/* ================================================
   VITAL TUTOR'S ACADEMY – Complete Redesign
   Colors: Blue #0c466e · Gold #e8952b
   Font: Outfit (body) + Playfair Display (headings)
   ================================================ */

/* ─── DESIGN TOKENS ─── */
:root {
    --blue: #0c466e;
    --blue-dark: #093450;
    --blue-light: #1a6da0;
    --blue-subtle: #e8f1f8;
    --gold: #e8952b;
    --gold-dark: #c87b1d;
    --gold-light: #f4b966;
    --gold-subtle: #fef4e8;

    --text-primary: #1a2332;
    --text-secondary: #4a5568;
    --text-muted: #718096;

    --surface: #ffffff;
    --surface-raised: #f7f9fc;
    --surface-overlay: rgba(255, 255, 255, 0.82);
    --border: rgba(12, 70, 110, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.04);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(12,70,110,0.06);
    --shadow-md: 0 8px 24px rgba(12,70,110,0.08);
    --shadow-lg: 0 16px 48px rgba(12,70,110,0.10);
    --shadow-xl: 0 24px 64px rgba(12,70,110,0.14);
    --shadow-gold: 0 8px 24px rgba(232,149,43,0.25);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: 0.2s var(--ease-out);
    --transition-mid: 0.35s var(--ease-out);
    --transition-slow: 0.5s var(--ease-out);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--surface-raised);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── BACKGROUND MESH ─── */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f5fa 0%, #fafbfd 40%, #fef9f3 100%);
}

.mesh-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: meshFloat 25s ease-in-out infinite alternate;
}
.mesh-1 {
    width: 50vw; height: 50vw;
    top: -15%; left: -10%;
    background: radial-gradient(circle, rgba(12,70,110,0.15), transparent 70%);
}
.mesh-2 {
    width: 45vw; height: 45vw;
    bottom: -10%; right: -5%;
    background: radial-gradient(circle, rgba(232,149,43,0.12), transparent 70%);
    animation-delay: -8s;
}
.mesh-3 {
    width: 30vw; height: 30vw;
    top: 40%; left: 50%;
    background: radial-gradient(circle, rgba(12,70,110,0.08), transparent 70%);
    animation-delay: -15s;
}

.mesh-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(12,70,110,0.03), transparent);
    height: 1px;
    width: 120%;
    left: -10%;
}
.mesh-line-1 { top: 25%; transform: rotate(-3deg); }
.mesh-line-2 { top: 55%; transform: rotate(2deg); }
.mesh-line-3 { top: 80%; transform: rotate(-1deg); }

@keyframes meshFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.05); }
}

/* ─── HEADER ─── */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast), box-shadow var(--transition-fast), padding var(--transition-fast);
}
#site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 20px;
}

/* Brand (logo + text) */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
}
.brand:hover { opacity: 0.85; }

.brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform var(--transition-mid);
    margin: -6px 0;
}
.brand:hover .brand-logo { transform: scale(1.06); }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--blue);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.brand-name-accent {
    display: block;
    font-weight: 900;
    font-size: 1.05rem;
}
.brand-slogan {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--gold);
    letter-spacing: 0.01em;
    margin-top: 2px;
}

/* Nav Actions (Desktop) */
.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.nav-btn i { font-size: 1rem; }

.nav-btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(12,70,110,0.25);
}
.nav-btn-primary:hover {
    background: var(--blue-dark);
    box-shadow: 0 6px 20px rgba(12,70,110,0.3);
    transform: translateY(-2px);
}

.nav-btn-outline {
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--blue);
}
.nav-btn-outline:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(12,70,110,0.2);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--blue);
    border-radius: 2px;
    transition: all var(--transition-fast);
    transform-origin: center;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Drawer */
.mobile-drawer {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 0 24px;
    background: rgba(255,255,255,0.98);
    border-top: 1px solid var(--border-subtle);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}
.mobile-drawer.open {
    max-height: 200px;
    padding-top: 16px;
    padding-bottom: 20px;
}
.mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--blue);
    background: var(--blue-subtle);
    transition: all var(--transition-fast);
}
.mobile-drawer-link:hover,
.mobile-drawer-link:active {
    background: var(--blue);
    color: #fff;
}
.mobile-drawer-link i { font-size: 1.1rem; }

/* ─── HERO ─── */
.hero {
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

/* Reveal animation base */
.hero-content,
.qr-wrapper,
.section-header,
.mission-text,
.stat-card,
.contact-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.revealed {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger stat-cards */
.stat-card:nth-child(2) { transition-delay: 0.1s; }
.stat-card:nth-child(3) { transition-delay: 0.2s; }
.stat-card:nth-child(4) { transition-delay: 0.3s; }
/* Stagger contact-cards */
.contact-card:nth-child(2) { transition-delay: 0.1s; }
.contact-card:nth-child(3) { transition-delay: 0.2s; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-subtle);
    color: var(--gold-dark);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 28px;
    border: 1px solid rgba(232,149,43,0.15);
}
.hero-badge i { font-size: 0.9rem; }

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    font-weight: 400;
    line-height: 1.7;
}

/* CTA Group */
.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease-out);
}
.btn:hover::after { transform: translateX(0); }

.btn i {
    font-size: 1.2rem;
    transition: transform 0.3s var(--ease-spring);
}
.btn:hover i { transform: scale(1.15) rotate(-8deg); }

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    box-shadow: 0 6px 20px rgba(12,70,110,0.3);
}
.btn-primary:hover {
    box-shadow: 0 10px 32px rgba(12,70,110,0.35);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--surface);
    color: var(--blue);
    border: 2px solid var(--blue);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(12,70,110,0.25);
}

/* QR Card */
.qr-wrapper {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--surface-overlay);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 180px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    transition: all var(--transition-mid);
}
.qr-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(12,70,110,0.15);
}

.qr-img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.qr-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.qr-label i { color: var(--gold); }

/* ─── SECTIONS (shared) ─── */
.section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-tag {
    display: inline-block;
    background: var(--blue-subtle);
    color: var(--blue);
    padding: 5px 16px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--blue);
}

/* ─── MISSION ─── */
.mission {
    background: var(--surface-overlay);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(8px);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.mission-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 18px;
}
.mission-text p:last-child { margin-bottom: 0; }

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

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-mid);
    cursor: default;
}
.stat-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(12,70,110,0.12);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ─── CONTACT ─── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-mid);
}
.contact-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(232,149,43,0.2);
    transform: translateY(-4px);
}

.contact-icon-wrap {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-subtle), #fff8ef);
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    font-size: 1.5rem;
    color: var(--gold);
    transition: all var(--transition-fast);
}
.contact-card:hover .contact-icon-wrap {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    transform: scale(1.08);
    box-shadow: var(--shadow-gold);
}

.contact-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

/* ─── FOOTER ─── */
#site-footer {
    background: var(--blue-dark);
    color: rgba(255,255,255,0.7);
    padding: 28px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}
.footer-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-copy {
    font-size: 0.82rem;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS
   =================================================== */

/* ── Desktop Wide (>1024px) – default above ── */

/* ── Tablet / Small Desktop (768-1024) ── */
@media (max-width: 1024px) {
    .header-inner { gap: 16px; }
    .brand-name { font-size: 1.05rem; }
    .brand-name-accent { font-size: 0.95rem; }
    .mission-grid { gap: 40px; }
    .contact-grid { gap: 18px; }
}

/* ── Mobile (<=768px) ── */
@media (max-width: 768px) {
    /* Header */
    .nav-actions { display: none; }
    .mobile-menu-btn { display: flex; }
    /* Drawer stays display:none until .open is added */
    .mobile-drawer.open { display: flex; }

    .header-inner {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .brand-logo { width: 48px; height: 48px; }
    .brand-name { font-size: 0.92rem; }
    .brand-name-accent { font-size: 0.85rem; }
    .brand-slogan { font-size: 0.68rem; }

    /* Hero */
    .hero { padding: 48px 0 28px; }
    .hero-badge { font-size: 0.75rem; padding: 6px 14px; margin-bottom: 20px; }
    .hero-subtitle { margin-bottom: 28px; }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 320px;
        padding: 14px 24px;
    }

    /* Mission */
    .section { padding: 56px 0; }
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .stats-grid { gap: 14px; }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .contact-card { padding: 28px 20px; }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Performance: reduce blur on mobile */
    .mesh-gradient { filter: blur(60px); }
}

/* ── Small phones (<=400px) ── */
@media (max-width: 400px) {
    .container { padding: 0 16px; }
    .brand-logo { width: 42px; height: 42px; }
    .brand { gap: 8px; }
    .brand-name { font-size: 0.82rem; }
    .brand-name-accent { font-size: 0.78rem; }
    .brand-slogan { font-size: 0.62rem; }
    .stat-card { padding: 22px 12px; }
    .stat-number { font-size: 1.8rem; }
}