/* ==========================================================================
   COURS AVICENNE - VERSION 1.0 (V1)
   Design System & Master Stylesheet
   Excellence & Soutien Scolaire à Toulouse depuis 2006
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
    /* Brand Colors */
    --primary: #1e3a8a;          /* Deep Royal Blue - Prestigious & Academic */
    --primary-dark: #0f172a;     /* Midnight Navy */
    --primary-light: #2563eb;    /* Vivid Sapphire */
    --primary-soft: #eff6ff;     /* Light Blue Tint */
    
    --accent: #f59e0b;           /* Warm Amber / Gold - Iconic Avicenne Heritage */
    --accent-hover: #d97706;     /* Deep Gold */
    --accent-light: #fef3c7;     /* Soft Gold Tint */
    --accent-dark: #b45309;
    
    --whatsapp: #25D366;         /* WhatsApp Green */
    --whatsapp-dark: #128c7e;
    --whatsapp-soft: #dcfce7;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0284c7;

    /* Neutrals & Surfaces */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #ffffff;
    
    --border-color: #e2e8f0;
    --border-focus: #3b82f6;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Elevation / Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.10), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 36px -6px rgba(15, 23, 42, 0.14), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
    --shadow-accent: 0 8px 24px -4px rgba(245, 158, 11, 0.35);
    --shadow-whatsapp: 0 8px 24px -4px rgba(37, 211, 102, 0.35);

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-page);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 60px; /* Space for mobile bar */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

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

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.35rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.9rem, 1.65rem); }
h4 { font-size: 1.2rem; }

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

p:last-child {
    margin-bottom: 0;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.container-narrow {
    max-width: 900px;
}

.container-tight {
    max-width: 760px;
}

.section {
    padding: 70px 0;
    position: relative;
}

@media (max-width: 768px) {
    .section {
        padding: 45px 0;
    }
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-bar {
    background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 100%);
    color: #e2e8f0;
    font-size: 0.86rem;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 101;
}

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

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}

.top-bar-item svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-link {
    color: #f1f5f9;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-fast);
}

.top-bar-link:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .top-bar-info span:not(:first-child) {
        display: none;
    }
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Brand Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-xs);
    transition: transform var(--transition-fast);
}

.brand:hover .brand-logo-img {
    transform: scale(1.03);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.brand-name span {
    color: var(--primary);
}

.brand-sub {
    display: none;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--bg-subtle);
}

.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-soft);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: var(--radius-full);
}

/* Header CTAs */
.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-header-wa {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: var(--whatsapp);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 9px 16px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transition: var(--transition-fast);
}

.btn-header-wa:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-whatsapp);
    color: #ffffff;
}

.btn-header-insta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 9px 16px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.25);
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-header-insta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 39, 67, 0.4);
    color: #ffffff;
}

.btn-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 9px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(30, 58, 138, 0.15);
    transition: var(--transition-fast);
}

.btn-header-phone:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--text-primary);
}

.mobile-toggle svg {
    width: 26px;
    height: 26px;
}

@media (max-width: 1080px) {
    .nav-menu {
        display: none;
    }
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-cta-group .btn-header-phone {
        display: none;
    }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: #ffffff;
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right var(--transition-smooth);
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-close {
    background: var(--bg-subtle);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
}

.drawer-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.drawer-link.active, .drawer-link:hover {
    background-color: var(--primary-soft);
    color: var(--primary);
}

.drawer-cta-stack {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-base);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.08rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.88rem;
    border-radius: var(--radius-xs);
}

.btn-block {
    width: 100%;
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #172554 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: #ffffff;
}

.btn-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
}

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

.btn-whatsapp:hover {
    background-color: var(--whatsapp-dark);
    color: #ffffff;
}

.btn-phone {
    background-color: var(--bg-card);
    color: var(--primary);
    border: 1.5px solid var(--border-color);
}

.btn-phone:hover {
    border-color: var(--primary);
    background-color: var(--primary-soft);
    color: var(--primary);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-subtle);
    border-color: #cbd5e1;
}

.btn-review {
    background-color: #fffbeb;
    color: #92400e;
    border: 1.5px solid #fde68a;
}

.btn-review:hover {
    background-color: #fef3c7;
    border-color: #f59e0b;
}

.btn-insta,
.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.25);
}

.btn-insta:hover,
.btn-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(220, 39, 67, 0.4);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    box-shadow: none;
    padding: 10px 16px;
}

.btn-ghost:hover {
    background: var(--primary-soft);
    box-shadow: none;
}

/* Badges & Tags */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.badge-primary {
    background-color: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-accent {
    background-color: var(--accent-light);
    color: var(--accent-dark);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-success {
    background-color: var(--whatsapp-soft);
    color: #166534;
    border: 1px solid rgba(22, 101, 52, 0.2);
}

.badge-pill {
    border-radius: var(--radius-full);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding: 80px 0 70px;
    background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 10% 80%, rgba(30, 58, 138, 0.06) 0%, transparent 40%),
                linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.hero-badge-wrap {
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 3.8vw + 1rem, 3.4rem);
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.15;
    margin-bottom: 22px;
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    background: linear-gradient(120deg, var(--accent) 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 620px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-icon-box.gold {
    background-color: var(--accent-light);
    color: var(--accent-dark);
}

.trust-icon-box svg {
    width: 20px;
    height: 20px;
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-val {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.trust-lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Hero Visual / Card Showcase */
.hero-visual {
    position: relative;
}

.hero-visual-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.hero-image-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    background: #e2e8f0;
    aspect-ratio: 16/10;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-visual-card:hover .hero-image-wrap img {
    transform: scale(1.03);
}

.hero-floating-pill {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-floating-pill .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--whatsapp);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hero-stats-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hero-mini-stat {
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.hero-mini-stat .number {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
}

.hero-mini-stat .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-tag {
    margin-bottom: 12px;
}

.section-title {
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.section-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: #cbd5e1;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background-color: var(--primary-soft);
    color: var(--primary);
}

.card-icon-box.accent {
    background-color: var(--accent-light);
    color: var(--accent-dark);
}

.card-icon-box.whatsapp {
    background-color: var(--whatsapp-soft);
    color: var(--whatsapp-dark);
}

.card-icon-box.indigo {
    background-color: #e0e7ff;
    color: #4338ca;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 14px;
    color: var(--primary-dark);
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.94rem;
    color: var(--text-secondary);
}

.card-feature-item svg {
    width: 18px;
    height: 18px;
    color: var(--whatsapp-dark);
    flex-shrink: 0;
    margin-top: 2px;
}

.card-footer-action {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Service Card Variant (Featured / Highlighted) */
.card-featured {
    border: 2px solid var(--accent);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.featured-ribbon {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, var(--accent) 0%, #ea580c 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   FEATURE STRIPS & INFO BLOCKS
   ========================================================================== */
.strip-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.strip-banner::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.strip-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: center;
}

@media (max-width: 860px) {
    .strip-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .strip-actions {
        justify-content: center;
    }
}

.strip-title {
    color: #ffffff;
    font-size: clamp(1.6rem, 2.2vw + 1rem, 2.2rem);
    margin-bottom: 12px;
}

.strip-desc {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.strip-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

/* ==========================================================================
   SCHEDULE & TIMETABLE TABS
   ========================================================================== */
.tabs-container {
    margin-bottom: 30px;
}

.tabs-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--bg-card);
    padding: 8px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    max-width: 860px;
    margin: 0 auto 36px;
}

.tab-btn {
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--primary);
    background-color: var(--bg-subtle);
}

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

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Schedule Grade Card */
.schedule-grade-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.grade-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-subtle);
}

.grade-badge-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.grade-badge {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
}

.grade-title-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.schedule-group-row {
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.schedule-group-row:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .schedule-group-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.group-tag {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vacation-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pdf-download-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
    text-decoration: none;
}

.pdf-download-pill svg {
    width: 16px;
    height: 16px;
    color: #ef4444; /* PDF Red icon */
}

.pdf-download-pill:hover {
    background: var(--primary-soft);
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   PRICING & CONTRACTS
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
}

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

.pricing-card.popular {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-lg);
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-type {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.pricing-amount {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.pricing-unit {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pricing-feature svg {
    width: 18px;
    height: 18px;
    color: var(--success);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Tariff Table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.98rem;
}

.modern-table th {
    background-color: #0f172a;
    color: #ffffff;
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.modern-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.modern-table tr:last-child td {
    border-bottom: none;
}

.modern-table tr:hover td {
    background-color: var(--primary-soft);
}

/* ==========================================================================
   FORMS & INPUTS (Registration Page)
   ========================================================================== */
.form-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 820px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .form-card {
        padding: 24px 18px;
    }
}

.form-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-subtle);
}

.form-group-title svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.form-grid-1 {
    grid-template-columns: 1fr;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label .req {
    color: var(--danger);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background-color: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-input[readonly] {
    background-color: var(--bg-subtle);
    cursor: not-allowed;
    color: var(--text-muted);
}

.form-help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   INTERACTIVE RECEIPT MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 36px;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-subtle);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* Printable Receipt Card */
.invoice-print-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 24px;
    background: #ffffff;
    margin-bottom: 24px;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 20px;
}

.invoice-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 0.92rem;
    margin-bottom: 20px;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding-top: 60px;
    border-top: 1px solid #1e293b;
    font-size: 0.94rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-brand-title span {
    color: var(--accent);
}

.footer-brand-desc {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--accent);
    border-radius: var(--radius-full);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #cbd5e1;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    background: #090d16;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #64748b;
}

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

/* ==========================================================================
   FLOATING ACTION BUTTONS (WhatsApp & Mobile Bar)
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 990;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--whatsapp);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-base);
    animation: floatAnim 3s ease-in-out infinite;
}

.floating-whatsapp:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-4px) scale(1.03);
    color: #ffffff;
}

.floating-whatsapp svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

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

@media (max-width: 768px) {
    .floating-whatsapp span {
        display: none;
    }
    .floating-whatsapp {
        bottom: 75px;
        right: 18px;
        padding: 14px;
        border-radius: 50%;
    }
}

/* Mobile Bottom Action Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    display: none;
    grid-template-columns: 1fr 1fr;
    z-index: 980;
    padding: 10px 14px;
    gap: 12px;
}

@media (max-width: 991px) {
    .mobile-bottom-bar {
        display: grid;
    }
}

.mobile-bottom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.mobile-btn-wa {
    background-color: var(--whatsapp);
    color: #ffffff;
}

.mobile-btn-call {
    background-color: var(--primary);
    color: #ffffff;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .top-bar, .site-header, .site-footer, .floating-whatsapp, .mobile-bottom-bar,
    .btn, .mobile-drawer, .drawer-backdrop {
        display: none !important;
    }
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 12pt;
    }
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    .invoice-print-card {
        border: 1px solid #000000 !important;
        box-shadow: none !important;
    }
}
