/* ==========================================
   EXPERT MEDICAL CENTER — PREMIUM HOMEPAGE
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
    --navy-900: #0a0e27;
    --navy-800: #0f1535;
    --navy-700: #141c42;
    --navy-600: #1a2550;
    --teal-500: #14b8a6;
    --teal-400: #2dd4bf;
    --teal-300: #5eead4;
    --cyan-400: #22d3ee;
    --cyan-300: #67e8f9;
    --emerald-400: #34d399;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;

    --font-primary: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 60px rgba(20, 184, 166, 0.15);

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

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--navy-900);
    color: var(--gray-200);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---------- Gradient Text ---------- */
.gradient-text {
    background: linear-gradient(135deg, var(--teal-400), var(--cyan-400), var(--emerald-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Section Shared ---------- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: var(--radius-full);
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.25);
    color: var(--teal-400);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-400);
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- Reveal Animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* =================================================
   SPLASH SCREEN
   ================================================= */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.splash-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    animation: splashPulse 2s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(20, 184, 166, 0.2), 0 0 120px rgba(20, 184, 166, 0.1);
}

@keyframes splashPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(20, 184, 166, 0.2), 0 0 120px rgba(20, 184, 166, 0.1); }
    50% { transform: scale(1.05); box-shadow: 0 0 80px rgba(20, 184, 166, 0.35), 0 0 160px rgba(20, 184, 166, 0.15); }
}

.splash-loader {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.splash-loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--teal-500), var(--cyan-400));
    border-radius: 4px;
    animation: splashLoad 2s ease-in-out forwards;
}

@keyframes splashLoad {
    0% { width: 0%; }
    40% { width: 60%; }
    80% { width: 90%; }
    100% { width: 100%; }
}


/* =================================================
   NAVBAR
   ================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    z-index: 1001;
}

.nav-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.nav-logo:hover .nav-logo-img {
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--gray-300);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-400));
    color: var(--navy-900);
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(20, 184, 166, 0.45);
}

.nav-lang {
    position: relative;
}

.nav-lang-btn {
    padding: 9px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-200);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    transition: var(--transition);
}

.nav-lang-btn:hover {
    color: var(--white);
    border-color: rgba(45, 212, 191, 0.45);
    background: rgba(20, 184, 166, 0.12);
}

.nav-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 39, 0.97);
    box-shadow: var(--shadow-card);
    display: none;
    z-index: 2000;
}

.nav-lang-dropdown.open {
    display: block;
}

.lang-option {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--gray-200);
    text-align: left;
    padding: 8px 10px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.lang-option:hover,
.lang-option.is-active {
    background: rgba(20, 184, 166, 0.15);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}


/* =================================================
   HERO BANNER
   ================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 40%, var(--navy-700) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Floating medical icons */
.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
}

.fi-1 { top: 12%; left: 8%; animation-delay: 0s; animation-duration: 18s; }
.fi-2 { top: 22%; right: 12%; animation-delay: -3s; animation-duration: 22s; }
.fi-3 { bottom: 30%; left: 15%; animation-delay: -6s; animation-duration: 20s; }
.fi-4 { top: 60%; right: 8%; animation-delay: -9s; animation-duration: 24s; }
.fi-5 { top: 8%; left: 45%; animation-delay: -2s; animation-duration: 19s; }
.fi-6 { bottom: 15%; right: 30%; animation-delay: -5s; animation-duration: 21s; }
.fi-7 { top: 40%; left: 5%; animation-delay: -8s; animation-duration: 23s; }
.fi-8 { bottom: 20%; left: 50%; animation-delay: -4s; animation-duration: 17s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(5deg); }
    50% { transform: translate(-10px, 20px) rotate(-3deg); }
    75% { transform: translate(20px, 10px) rotate(4deg); }
}

/* Ambient glow orbs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--teal-500);
    top: -100px;
    right: -100px;
    opacity: 0.12;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: var(--cyan-400);
    bottom: -50px;
    left: -50px;
    opacity: 0.08;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: var(--emerald-400);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.06;
}

/* Hero content */
.hero-content {
    position: relative;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 820px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    border-radius: var(--radius-full);
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    color: var(--teal-300);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.2); }
    50% { box-shadow: 0 0 0 12px rgba(20, 184, 166, 0); }
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-tagline {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 500;
    color: var(--teal-300);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-400));
    color: var(--navy-900);
    box-shadow: 0 4px 30px rgba(20, 184, 166, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(20, 184, 166, 0.5);
}

.btn-primary svg {
    transition: transform var(--transition);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: var(--gray-200);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--teal-300), var(--cyan-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-400);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}


/* =================================================
   WHY CHOOSE US
   ================================================= */
.why-us {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(20, 184, 166, 0.2);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(34, 211, 238, 0.1));
    color: var(--teal-400);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--gray-400);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}


/* =================================================
   DOCTORS SECTION
   ================================================= */
.doctors {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
    position: relative;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.doctor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.doctor-card:hover {
    transform: translateY(-10px);
    border-color: rgba(20, 184, 166, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.doctor-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctor-card:hover .doctor-image {
    transform: scale(1.08);
}

.doctor-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 39, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: var(--transition);
}

.doctor-card:hover .doctor-overlay {
    opacity: 1;
}

.doctor-book-btn {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-400));
    color: var(--navy-900);
    border: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.doctor-card:hover .doctor-book-btn {
    transform: translateY(0);
}

.doctor-info {
    padding: 24px;
}

.doctor-name {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.doctor-specialty {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    color: var(--teal-400);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.doctor-bio {
    font-size: 0.88rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* Loading state */
.doctors-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 0;
    color: var(--gray-400);
    font-size: 0.95rem;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(20, 184, 166, 0.15);
    border-top-color: var(--teal-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.doctors-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--gray-400);
}


/* =================================================
   BOOKING MODAL
   ================================================= */
.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
}

.booking-modal.active {
    display: block;
}

.booking-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 10, 29, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.booking-modal-panel {
    position: relative;
    width: min(92vw, 560px);
    margin: 8vh auto;
    padding: 30px;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, rgba(20, 28, 66, 0.96), rgba(10, 14, 39, 0.98));
    border: 1px solid rgba(20, 184, 166, 0.25);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    animation: bookingPopupIn 0.25s ease;
}

@keyframes bookingPopupIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.booking-close {
    position: absolute;
    right: 16px;
    top: 12px;
    border: 0;
    background: transparent;
    color: var(--gray-300);
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.booking-close:hover {
    color: var(--white);
    transform: rotate(90deg);
}

.booking-header h3 {
    font-family: var(--font-primary);
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

.booking-header p {
    color: var(--gray-400);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.booking-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

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

.booking-field label {
    color: var(--gray-300);
    font-size: 0.86rem;
    font-weight: 600;
}

.booking-field input,
.booking-field select {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 21, 53, 0.85);
    color: var(--gray-100);
    font-size: 0.92rem;
    transition: var(--transition);
}

.booking-field input:focus,
.booking-field select:focus {
    outline: none;
    border-color: var(--teal-400);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16);
}

.booking-status {
    min-height: 22px;
    font-size: 0.88rem;
    color: var(--gray-300);
}

.booking-status.is-error {
    color: #f87171;
}

.booking-status.is-success {
    color: var(--emerald-400);
}

.booking-submit {
    border: 0;
    padding: 12px 16px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-400));
    color: var(--navy-900);
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 26px rgba(20, 184, 166, 0.25);
}

.booking-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(20, 184, 166, 0.35);
}

.booking-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Slot picker */
.booking-slots-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.booking-slots-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--gray-300);
}

.booking-slots-count {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--teal-400);
}

.booking-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.booking-slot-btn {
    padding: 9px 18px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(20, 184, 166, 0.3);
    background: rgba(20, 184, 166, 0.06);
    color: var(--teal-300);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.booking-slot-btn:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: var(--teal-400);
    color: var(--white);
}

.booking-slot-btn.selected {
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-400));
    border-color: transparent;
    color: var(--navy-900);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.35);
}

.booking-slots-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--gray-400);
}


/* =================================================
   FOOTER
   ================================================= */
.footer {
    position: relative;
    background: var(--navy-800);
    padding-top: 60px;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    color: var(--navy-900);
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 80px;
}

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

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding: 60px 0 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.footer-about {
    font-size: 0.92rem;
    color: var(--gray-400);
    line-height: 1.7;
}

.footer-contact h4,
.footer-hours h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-contact ul,
.footer-hours ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--gray-300);
}

.footer-contact li svg {
    color: var(--teal-400);
    flex-shrink: 0;
}

.footer-contact li a {
    color: var(--gray-300);
    transition: var(--transition);
}

.footer-contact li a:hover {
    color: var(--teal-400);
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--gray-400);
}

.emergency-badge {
    padding: 3px 12px;
    border-radius: var(--radius-full);
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    font-weight: 700;
    font-size: 0.8rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray-400);
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.3);
    color: var(--teal-400);
    transform: translateY(-3px);
}


/* =================================================
   RESPONSIVE
   ================================================= */
@media (max-width: 1024px) {
    .features-grid,
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-lang {
        margin-left: auto;
        margin-right: 8px;
    }

    .nav-toggle {
        display: flex;
    }

    /* Mobile menu */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 14, 39, 0.97);
        backdrop-filter: blur(20px);
        align-items: center;
        justify-content: center;
        gap: 8px;
        z-index: 999;
    }

    .nav-links.active a {
        font-size: 1.3rem;
        padding: 14px 32px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 24px;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .booking-modal-panel {
        margin: 6vh auto;
        padding: 22px;
    }

    .booking-row {
        grid-template-columns: 1fr;
    }
}

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }
}

/* ---------- RTL (Arabic) ---------- */
html[dir="rtl"] body {
    direction: rtl;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-lang-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] .lang-option {
    text-align: right;
}

html[dir="rtl"] .hero-buttons,
html[dir="rtl"] .booking-row,
html[dir="rtl"] .footer-bottom {
    direction: rtl;
}
