/* ============================================================
   EvoSpine - Premium Healthcare Design System
   Brand Colors from Logo: #2F7E99, #256B82, #DFF4FA
   ============================================================ */

:root {
    --es-teal: #2F7E99;
    --es-teal-dark: #256B82;
    --es-teal-darker: #1A5568;
    --es-cyan-soft: #DFF4FA;
    --es-cyan-light: #EEF9FC;
    --es-white: #FFFFFF;
    --es-gray-soft: #F5F7FA;
    --es-gray-100: #E8EDF2;
    --es-gray-200: #CBD5E1;
    --es-gray-400: #94A3B8;
    --es-text: #1E293B;
    --es-text-muted: #64748B;
    --es-success: #10B981;
    --es-warning: #F59E0B;
    --es-danger: #EF4444;
    --es-whatsapp: #25D366;

    --gradient-primary: linear-gradient(135deg, var(--es-teal) 0%, var(--es-teal-dark) 100%);
    --gradient-soft: linear-gradient(180deg, var(--es-white) 0%, var(--es-cyan-soft) 100%);
    --gradient-hero: linear-gradient(135deg, var(--es-cyan-light) 0%, var(--es-white) 50%, var(--es-cyan-soft) 100%);

    --shadow-sm: 0 2px 8px rgba(47, 126, 153, 0.08);
    --shadow-md: 0 8px 24px rgba(47, 126, 153, 0.12);
    --shadow-lg: 0 16px 48px rgba(47, 126, 153, 0.15);
    --shadow-card: 0 4px 20px rgba(30, 41, 59, 0.06);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --font-primary: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --nav-height: 88px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --es-white: #0F172A;
    --es-gray-soft: #1E293B;
    --es-gray-100: #334155;
    --es-text: #F1F5F9;
    --es-text-muted: #94A3B8;
    --es-cyan-soft: #1A3A44;
    --es-cyan-light: #152028;
    --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #1A3A44 100%);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--es-text);
    background: var(--es-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.25;
    color: var(--es-text);
}

.main-content { padding-top: var(--nav-height); min-height: 60vh; }

/* ---- Loading Screen ---- */
img.brand-logo,
img.footer-logo,
img.loader-logo,
img.popup-logo,
img.auth-logo {
    background: transparent !important;
    box-shadow: none !important;
}

.page-loader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--es-white);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
/* Fallback: never block the page if JS/CSS fails to load */
@keyframes loaderFallback {
    0%, 85% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
.page-loader { animation: loaderFallback 2.5s ease forwards; }
.page-loader.hidden { animation: none; }
.loader-logo {
    height: 80px;
    width: auto;
    max-width: 280px;
    min-width: 0;
    object-fit: contain;
    margin-bottom: 24px;
    background: transparent !important;
    animation: pulse 1.5s ease infinite;
}
.loader-bar { width: 200px; height: 3px; background: var(--es-gray-100); border-radius: var(--radius-full); overflow: hidden; }
.loader-progress { height: 100%; width: 0; background: var(--gradient-primary); animation: loadBar 1.2s ease forwards; }
@keyframes loadBar { to { width: 100%; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

/* ---- Navbar ---- */
.navbar-evospine {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
    transition: var(--transition);
}
[data-theme="dark"] .navbar-evospine { background: rgba(15, 23, 42, 0.95); }
.navbar-evospine.scrolled {
    box-shadow: var(--shadow-md);
    padding: 6px 0;
}
.container-nav {
    max-width: 1440px;
}
.navbar-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
    margin-right: 8px;
    background: none;
    border: none;
}
.navbar-evospine .brand-logo {
    height: 64px;
    width: auto;
    max-width: 220px;
    min-width: 0;
    object-fit: contain;
    object-position: left center;
    background: transparent !important;
    transition: height 0.25s ease, max-width 0.25s ease;
}
.navbar-evospine.scrolled .brand-logo {
    height: 52px;
    max-width: 190px;
}
@media (min-width: 1200px) {
    .navbar-evospine .navbar-collapse {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        flex-grow: 1;
        gap: 8px;
        min-width: 0;
    }
    .navbar-evospine .navbar-nav-main {
        flex-direction: row;
        flex-wrap: nowrap;
        flex: 1 1 auto;
        justify-content: center;
        align-items: center;
        margin: 0 !important;
        min-width: 0;
    }
    .navbar-evospine .navbar-nav-main .nav-item {
        flex-shrink: 0;
    }
    .navbar-evospine .nav-actions {
        flex-shrink: 0;
        margin-left: 4px;
    }
}
.navbar-evospine .nav-link {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--es-text);
    padding: 8px 10px !important;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.navbar-evospine .nav-link:hover,
.navbar-evospine .nav-link.active { color: var(--es-teal); }
.nav-actions .btn-book-nav {
    white-space: nowrap;
}
.dropdown-menu-evospine {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px;
    margin-top: 8px;
}
.dropdown-menu-evospine .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.dropdown-menu-evospine .dropdown-item:hover { background: var(--es-cyan-soft); color: var(--es-teal-dark); }
.dropdown-menu-evospine.dropdown-menu-lg {
    max-height: 70vh;
    overflow-y: auto;
    min-width: 260px;
}

/* ---- Buttons (centered label + icon on all axes) ---- */
.btn,
a.btn,
button.btn,
input[type="submit"].btn,
input[type="button"].btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
    line-height: 1.2;
    vertical-align: middle;
    box-sizing: border-box;
}
.btn.w-100,
a.btn.w-100,
button.btn.w-100 {
    display: flex;
    width: 100%;
}
.btn i,
.btn .fas,
.btn .fab,
.btn .far {
    line-height: 1;
    flex-shrink: 0;
}
.btn-sm {
    padding: 0.5rem 1rem;
    min-height: 2.375rem;
    font-size: 0.8125rem;
}
.btn-lg {
    padding: 0.875rem 1.75rem;
    min-height: 3.125rem;
    font-size: 1.05rem;
}
.input-group > .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}
.hero-cta .btn {
    min-width: 10.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    min-height: 2.75rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(47, 126, 153, 0.35);
    transition: var(--transition);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(47, 126, 153, 0.45);
    background: linear-gradient(135deg, var(--es-teal-dark) 0%, var(--es-teal-darker) 100%);
    color: #fff;
}
.btn-outline-primary {
    border: 2px solid var(--es-teal);
    color: var(--es-teal);
    font-weight: 600;
    padding: calc(0.75rem - 2px) calc(1.75rem - 2px);
    min-height: 2.75rem;
    border-radius: var(--radius-full);
    background: transparent;
    transition: var(--transition);
}
.btn-outline-primary.btn-sm {
    padding: calc(0.5rem - 2px) calc(1rem - 2px);
    min-height: 2.375rem;
}
.btn-outline-primary.btn-lg {
    padding: calc(0.875rem - 2px) calc(1.75rem - 2px);
    min-height: 3.125rem;
}
.btn-outline-primary:hover {
    background: var(--es-teal);
    color: #fff;
    transform: translateY(-2px);
}
.btn-whatsapp {
    background: var(--es-whatsapp);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    min-height: 2.75rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.btn-whatsapp.btn-sm {
    padding: 0.5rem 1rem;
    min-height: 2.375rem;
}
.btn-whatsapp.btn-lg {
    padding: 0.875rem 1.75rem;
    min-height: 3.125rem;
}
.btn-light {
    background: var(--es-white);
    color: var(--es-teal-dark);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    min-height: 2.75rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.btn-light:hover {
    background: var(--es-cyan-soft);
    color: var(--es-teal-darker);
}
.btn-light.btn-lg {
    padding: 0.875rem 1.75rem;
    min-height: 3.125rem;
}
.btn-secondary,
.btn-outline-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    min-height: 2.375rem;
    border-radius: var(--radius-full);
}
.btn-primary.btn-sm {
    padding: 0.5rem 1rem;
    min-height: 2.375rem;
}
.btn-primary.btn-lg {
    padding: 0.875rem 1.75rem;
    min-height: 3.125rem;
}
.btn-whatsapp:hover { background: #1DA851; color: #fff; transform: translateY(-2px); }
.btn-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--es-gray-200);
    background: transparent;
    color: var(--es-text);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.btn-icon:hover { background: var(--es-cyan-soft); color: var(--es-teal); }

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    padding: 80px 0 100px;
    background: var(--gradient-hero);
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(47, 126, 153, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBg 8s ease-in-out infinite;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(223, 244, 250, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBg 10s ease-in-out infinite reverse;
}
@keyframes floatBg {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--es-white);
    border: 1px solid var(--es-cyan-soft);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--es-teal);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero-title span { color: var(--es-teal); }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--es-text-muted);
    max-width: 540px;
    margin-bottom: 32px;
    line-height: 1.8;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.hero-visual { position: relative; }
.hero-image-main {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}
.hero-float-card {
    position: absolute;
    background: var(--es-white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 12px;
    animation: floatCard 4s ease-in-out infinite;
}
.hero-float-card.card-1 { top: 10%; left: -30px; animation-delay: 0s; }
.hero-float-card.card-2 { bottom: 20%; right: -20px; animation-delay: 1s; }
.hero-float-card.card-3 { bottom: 5%; left: 10%; animation-delay: 2s; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero-float-card .icon-wrap {
    width: 44px; height: 44px;
    background: var(--es-cyan-soft);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--es-teal);
    font-size: 1.1rem;
}
.hero-float-card strong { display: block; font-size: 1.1rem; color: var(--es-teal); }
.hero-float-card small { color: var(--es-text-muted); font-size: 0.8rem; }

/* Trust Bar */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 20px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}
.trust-item i { color: var(--es-teal); font-size: 1.1rem; }

/* ---- Section Styles ---- */
.section { padding: 80px 0; }
.section-gray { background: var(--es-gray-soft); }
.section-cyan { background: var(--es-cyan-light); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--es-teal);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.section-desc { color: var(--es-text-muted); font-size: 1.05rem; }

/* ---- Cards ---- */
.premium-card {
    background: var(--es-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(47, 126, 153, 0.06);
    transition: var(--transition);
    height: 100%;
}
.premium-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(47, 126, 153, 0.15);
}
.card-icon {
    width: 56px; height: 56px;
    background: var(--es-cyan-soft);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--es-teal);
    margin-bottom: 20px;
    transition: var(--transition);
}
.premium-card:hover .card-icon {
    background: var(--gradient-primary);
    color: #fff;
}
.premium-card h4 { font-size: 1.15rem; margin-bottom: 12px; }
.premium-card p { color: var(--es-text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.card-link {
    color: var(--es-teal);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.card-link:hover { color: var(--es-teal-dark); gap: 10px; }

/* Problem Cards */
.problem-card {
    text-align: center;
    padding: 36px 24px;
}
.problem-card .card-icon { margin: 0 auto 20px; }

/* Service Cards */
.service-card { padding: 0; overflow: hidden; }
.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--es-cyan-soft);
}
.service-card-img[src$=".svg"] { object-fit: contain; padding: 20px; }
.doctor-image { background: var(--es-cyan-soft); }
.blog-card-img { background: var(--es-cyan-soft); min-height: 220px; }
.service-card-body { padding: 28px; }
.service-benefits { list-style: none; padding: 0; margin: 0 0 20px; }
.service-benefits li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--es-text-muted);
}
.service-benefits li i { color: var(--es-teal); margin-right: 8px; font-size: 0.75rem; }

/* ---- Comparison Section ---- */
.comparison-section { background: var(--gradient-primary); color: #fff; border-radius: var(--radius-xl); padding: 60px; margin: 0 15px; }
.comparison-section .section-label { color: rgba(255,255,255,0.8); }
.comparison-section .section-title { color: #fff; }
.comparison-table { width: 100%; }
.comparison-table th, .comparison-table td { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.comparison-table th { font-weight: 600; }
.comparison-table .check { color: #6EE7B7; }
.comparison-table .cross { color: rgba(255,255,255,0.4); }

/* ---- Testimonials ---- */
.testimonial-card {
    background: var(--es-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
    height: 100%;
}
.testimonial-stars { margin-bottom: 16px; }
.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--es-text);
    margin-bottom: 24px;
    line-height: 1.8;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: var(--es-cyan-soft);
}
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author small { color: var(--es-text-muted); }

/* Transformation Cards */
.transform-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.transform-images { display: grid; grid-template-columns: 1fr 1fr; }
.transform-images img { width: 100%; height: 180px; object-fit: cover; }
.transform-label {
    position: absolute;
    bottom: 8px; left: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}
.transform-body { padding: 24px; background: var(--es-white); }

/* ---- Doctor Cards ---- */
.doctor-card {
    text-align: center;
    padding: 0;
    overflow: hidden;
}
.doctor-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top;
}
.doctor-body { padding: 28px; }
.doctor-spec { color: var(--es-teal); font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.doctor-certs { font-size: 0.85rem; color: var(--es-text-muted); margin-bottom: 12px; }
.doctor-exp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--es-cyan-soft);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--es-teal-dark);
    margin-bottom: 16px;
}

/* ---- Blog Cards ---- */
.blog-card { padding: 0; overflow: hidden; }
.blog-card-img { width: 100%; height: 220px; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-category {
    display: inline-block;
    background: var(--es-cyan-soft);
    color: var(--es-teal);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.blog-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.blog-meta { font-size: 0.85rem; color: var(--es-text-muted); }

/* ---- Booking Section ---- */
.booking-section {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.booking-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
/* Teal booking band only — not standalone book-appointment page */
.booking-section .booking-form .form-control,
.booking-section .booking-form .form-select {
    border: 2px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.95);
    color: var(--es-text);
    border-radius: var(--radius-md);
    padding: 12px 16px;
}
.booking-section .booking-form .form-control::placeholder { color: var(--es-text-muted); }
.booking-section .booking-form .form-control:focus,
.booking-section .booking-form .form-select:focus {
    border-color: var(--es-white);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.25);
    color: var(--es-text);
}
.booking-section .booking-form .form-label { color: #fff; font-weight: 600; }
.booking-section .booking-form .form-select option { color: var(--es-text); }

/* Standalone / card appointment forms */
.appointment-form .form-control,
.appointment-form .form-select,
.premium-card .form-control,
.premium-card .form-select {
    background: var(--es-white);
    color: var(--es-text);
    border: 2px solid var(--es-gray-100);
}
.appointment-form .form-control:focus,
.appointment-form .form-select:focus,
.premium-card .form-control:focus,
.premium-card .form-select:focus {
    border-color: var(--es-teal);
    background: var(--es-white);
    color: var(--es-text);
    box-shadow: 0 0 0 4px rgba(47, 126, 153, 0.12);
}
.appointment-card { padding: 40px; }
.appointment-card .form-label { font-weight: 600; color: var(--es-text); margin-bottom: 8px; }
.appointment-card input[type="date"],
.appointment-card input[type="tel"],
.appointment-card input[type="email"],
.appointment-card input[type="text"],
.appointment-card select,
.appointment-card textarea {
    min-height: 48px;
}

/* ---- Forms (General) ---- */
.form-control, .form-select {
    border: 2px solid var(--es-gray-100);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--es-teal);
    box-shadow: 0 0 0 4px rgba(47, 126, 153, 0.1);
}
.form-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }

/* ---- FAQ Accordion ---- */
.faq-item {
    background: var(--es-white);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--es-gray-100);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--es-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}
.faq-question:hover { color: var(--es-teal); }
.faq-question i { transition: transform 0.3s; color: var(--es-teal); }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--es-text-muted);
    line-height: 1.8;
}
.faq-answer.open { max-height: 500px; }

/* ---- Gallery ---- */
.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 1;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(47, 126, 153, 0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 2rem; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 99998;
    background: rgba(0,0,0,0.9);
    display: none; align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 85vh; border-radius: var(--radius-md); }
.lightbox-close {
    position: absolute; top: 20px; right: 20px;
    color: #fff; font-size: 2rem; cursor: pointer;
    background: none; border: none;
}

/* ---- Counters ---- */
.stats-counter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.stats-counter-row > [class*="col-"] {
    display: flex;
}
.stats-counter-row .counter-box {
    width: 100%;
}
.counter-box {
    text-align: center;
    padding: 32px 24px;
}
.counter-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--es-teal);
    line-height: 1;
    margin-bottom: 8px;
}
.counter-label { color: var(--es-text-muted); font-weight: 500; }

/* ---- Page Header (Inner Pages) ---- */
.page-header {
    background: var(--gradient-hero);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-header .breadcrumb { justify-content: center; margin-bottom: 0; }
.breadcrumb-item a { color: var(--es-teal); text-decoration: none; }
.breadcrumb-item.active { color: var(--es-text-muted); }

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 90px; right: 24px;
    width: 56px; height: 56px;
    background: var(--es-whatsapp);
    color: #fff;
    border: none;
    outline: none;
    text-decoration: none;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
.whatsapp-float:focus, .whatsapp-float:focus-visible { outline: none; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--es-white);
    padding: 12px 16px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    display: flex; gap: 10px;
    z-index: 998;
}
.sticky-mobile-cta .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Footer ---- */
.footer-evospine { background: var(--es-text); color: rgba(255,255,255,0.8); }
.footer-evospine .footer-logo {
    height: 80px;
    width: auto;
    max-width: 280px;
    min-width: 0;
    object-fit: contain;
    object-position: left center;
    background: transparent !important;
    /* Teal logo → white on dark footer only (navbar keeps brand color) */
    filter: brightness(0) invert(1);
    opacity: 1;
}
.footer-desc { font-size: 0.95rem; line-height: 1.8; margin-bottom: 20px; }
.footer-heading { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: var(--transition); font-size: 0.9rem; }
.footer-links a:hover { color: var(--es-cyan-soft); }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { margin-bottom: 12px; font-size: 0.9rem; display: flex; gap: 10px; }
.footer-contact i { color: var(--es-teal); margin-top: 4px; }
.footer-contact a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--es-teal); }
.footer-top { padding: 60px 0 40px; }
.footer-newsletter { padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-newsletter h5 { color: #fff; }
.footer-bottom { padding: 20px 0; font-size: 0.85rem; }
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }

/* ---- Auth Pages ---- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    padding: 40px 0;
}
.auth-card {
    background: var(--es-white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}
.auth-logo {
    height: 72px;
    width: auto;
    max-width: 260px;
    min-width: 0;
    object-fit: contain;
    display: block;
    margin: 0 auto 24px;
    background: transparent !important;
}

/* Lead capture popup */
.lead-popup-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
#leadPopup .modal-dialog {
    max-width: 440px;
    margin: 1.75rem auto;
}
.popup-logo {
    height: 100px;
    width: auto;
    max-width: 400px;
    min-width: 200px;
    object-fit: contain;
    background: transparent !important;
}
.auth-card h2 { text-align: center; margin-bottom: 8px; }
.auth-card .subtitle { text-align: center; color: var(--es-text-muted); margin-bottom: 32px; }

/* ---- Admin Dashboard ---- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 300px;
    background: var(--es-text);
    color: #fff;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}
.admin-sidebar-logo { padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar-logo img {
    height: 144px;
    width: auto;
    max-width: 560px;
    min-width: 320px;
    object-fit: contain;
    object-position: left center;
    background: transparent !important;
    filter: brightness(0) invert(1);
}
.admin-nav { padding: 16px 12px; }
.admin-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 4px;
}
.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(47, 126, 153, 0.3);
    color: #fff;
}
.admin-nav-link i { width: 20px; text-align: center; }
.admin-main { margin-left: 300px; flex: 1; background: var(--es-gray-soft); min-height: 100vh; }
.admin-topbar {
    background: var(--es-white);
    padding: 16px 32px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: var(--shadow-sm);
}
.admin-content { padding: 32px; }
.stat-card {
    background: var(--es-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}
.stat-card .stat-icon {
    width: 48px; height: 48px;
    background: var(--es-cyan-soft);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--es-teal);
    font-size: 1.2rem;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--es-teal); }
.stat-card .stat-label { color: var(--es-text-muted); font-size: 0.9rem; }
.admin-table { background: var(--es-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.admin-table table { margin-bottom: 0; }
.admin-table th { background: var(--es-gray-soft); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; border: none; padding: 14px 16px; }
.admin-table td { padding: 14px 16px; vertical-align: middle; font-size: 0.9rem; border-color: var(--es-gray-100); }
.badge-status { padding: 6px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-confirmed { background: var(--es-cyan-soft); color: var(--es-teal-dark); }
.badge-completed { background: #D1FAE5; color: #065F46; }
.badge-cancelled { background: #FEE2E2; color: #991B1B; }

/* Patient Dashboard */
.dashboard-card {
    background: var(--es-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}
.dashboard-welcome { background: var(--gradient-primary); color: #fff; border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px; }

/* ---- Alert / Flash ---- */
.alert-evospine {
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-weight: 500;
}

/* ---- Pagination ---- */
.pagination .page-link {
    border: none;
    color: var(--es-teal);
    border-radius: var(--radius-sm);
    margin: 0 4px;
    font-weight: 500;
}
.pagination .page-item.active .page-link {
    background: var(--es-teal);
    color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .hero-section { padding: 60px 0 80px; }
    .hero-float-card { display: none; }
    .comparison-section { padding: 40px 24px; }
    .booking-section { padding: 40px 24px; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .section { padding: 60px 0; }
}

@media (max-width: 767.98px) {
    :root { --nav-height: 72px; }
    .navbar-evospine .brand-logo { height: 48px; max-width: 160px; }
    .footer-logo { height: 64px; max-width: 220px; }
    .loader-logo, .auth-logo { height: 56px; max-width: 200px; }
    .popup-logo { height: 100px; max-width: 400px; min-width: 200px; }
    .auth-card { padding: 32px 24px; }
    .trust-bar { gap: 16px; }
    .trust-item { font-size: 0.8rem; }
}

@media (min-width: 992px) {
    .sticky-mobile-cta { display: none !important; }
    body { padding-bottom: 0; }
}
@media (max-width: 991.98px) {
    body { padding-bottom: 70px; }
    .whatsapp-float { bottom: 80px; }
}
