/* ==========================================================================
   MZH Hospisol - Master Design System & Stylesheet
   Modern, Accessible, High-Performance Healthcare UI/UX
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ==========================================================================
   1. CSS Custom Properties / Design Tokens
   ========================================================================== */
:root {
    /* Brand Colors */
    --primary: #0E7490;          /* Deep Medical Teal */
    --primary-light: #06B6D4;    /* Vibrant Cyan / Light Teal */
    --primary-dark: #083344;     /* Deep Slate Cyan */
    --primary-subtle: #ECFEFF;   /* Ultra soft cyan tint */

    --accent: #14B8A6;           /* Mint Teal */
    --accent-light: #2DD4BF;
    --accent-dark: #0F766E;

    --secondary: #D97706;        /* Warm Healthcare Gold/Amber */
    --secondary-light: #F59E0B;  /* Golden Glow */
    --secondary-dark: #B45309;
    --secondary-subtle: #FFFBEB; /* Soft Gold Tint */

    --danger: #EF4444;           /* Emergency Red */
    --danger-dark: #DC2626;
    --danger-subtle: #FEF2F2;

    --success: #10B981;          /* Medical Green */
    --success-dark: #059669;
    --success-subtle: #ECFDF5;

    /* Neutrals & Surfaces */
    --navy-950: #020617;
    --navy-900: #0F172A;
    --navy-800: #1E293B;
    --navy-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;
    --white: #FFFFFF;

    /* Semantic Aliases */
    --bg-page: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-alt: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-inverse: #FFFFFF;
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    --border-focus: #06B6D4;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 20px 45px rgba(15, 23, 42, 0.16);
    --shadow-teal: 0 8px 25px rgba(14, 116, 144, 0.25);
    --shadow-gold: 0 8px 25px rgba(217, 119, 6, 0.25);
    --shadow-red: 0 8px 25px rgba(239, 68, 68, 0.3);

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Layout & Sizing */
    --navbar-height: 80px;
    --navbar-height-scrolled: 68px;
    --container-max: 1280px;

    /* Transitions */
    --ease-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--navbar-height) + 16px);
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-page);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.drawer-open {
    overflow: hidden;
    touch-action: none;
}

main {
    flex: 1 0 auto;
}

img, svg, picture, video, iframe {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--ease-fast), transform var(--ease-fast);
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: transparent;
}

ul, ol {
    list-style: none;
}

/* Selection */
::selection {
    background-color: var(--primary-light);
    color: var(--white);
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--slate-100);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    border: 2px solid var(--slate-100);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--secondary-light));
}

/* Focus Visible */
:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
    border-radius: var(--radius-xs);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 100000;
    transition: top var(--ease-normal);
}
.skip-link:focus {
    top: 20px;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--secondary));
    z-index: 100001;
    width: 0%;
    transition: width 0.1s linear;
}

/* ==========================================================================
   3. Container & Layout Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 640px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }
}

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

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

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.section-header.text-left {
    text-align: left;
    margin-left: 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--primary);
    margin-bottom: 12px;
    background: var(--primary-subtle);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(14, 116, 144, 0.15);
}

.section-label i {
    font-size: 12px;
    color: var(--secondary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.22;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--slate-600);
    line-height: 1.65;
}

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

/* ==========================================================================
   4. Buttons & UI Components
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--ease-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn i {
    font-size: 15px;
    transition: transform var(--ease-fast);
}

.btn:hover i {
    transform: translateX(2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: var(--shadow-teal);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(14, 116, 144, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
    box-shadow: var(--shadow-gold);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.4);
    color: var(--white);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline-dark:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-teal);
}

.btn-danger, .btn-emergency {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    color: var(--white);
    box-shadow: var(--shadow-red);
}
.btn-danger:hover, .btn-emergency:hover {
    background: linear-gradient(135deg, var(--danger-dark), #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.5);
    color: var(--white);
}

.btn-sm {
    padding: 9px 18px;
    font-size: 13.5px;
    gap: 6px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   5. Header & Navigation (Desktop & Mobile Drawer)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: height var(--ease-normal), background var(--ease-normal), box-shadow var(--ease-normal);
}

.navbar.scrolled {
    height: var(--navbar-height-scrolled);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img {
    height: 64px;
    width: auto;
    max-height: 68px;
    object-fit: contain;
    transition: height var(--ease-normal), transform var(--ease-normal);
}

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

.navbar.scrolled .nav-logo img {
    height: 52px;
    max-height: 54px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    color: var(--navy-800);
    font-size: 14.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all var(--ease-fast);
    position: relative;
}

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

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-teal);
    transition: all var(--ease-normal);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 116, 144, 0.35);
    color: var(--white);
}

/* Hamburger button */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    flex-direction: column;
    justify-content: space-around;
    border-radius: var(--radius-md);
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    cursor: pointer;
    z-index: 1100;
    transition: background var(--ease-fast);
}

.hamburger:hover {
    background: var(--slate-200);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--navy-900);
    border-radius: 2px;
    transition: transform var(--ease-normal), opacity var(--ease-normal);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    transition: opacity var(--ease-normal);
}

.nav-backdrop.active {
    display: block;
    opacity: 1;
}

@media (max-width: 960px) {
    .nav-logo img {
        height: 56px;
        max-height: 58px;
    }

    .hamburger {
        display: flex;
    }

    .nav-actions .nav-cta {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(340px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 90px 24px 30px;
        gap: 8px;
        box-shadow: -10px 0 35px rgba(15, 23, 42, 0.18);
        transform: translateX(105%);
        transition: transform var(--ease-smooth);
        z-index: 1080;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 16px;
        padding: 14px 18px;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--slate-100);
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-mobile-footer {
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid var(--slate-200);
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .nav-mobile-footer .btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   6. Hero Section (index.html)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--navbar-height) + 60px) 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-950) 0%, #0c2838 50%, var(--navy-900) 100%);
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    filter: brightness(0.9) saturate(1.2);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(14, 116, 144, 0.35) 0%, rgba(2, 6, 23, 0.85) 75%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-full);
    color: var(--secondary-light);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero-badge i {
    color: var(--secondary-light);
    font-size: 14px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(34px, 5.8vw, 68px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 16px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 18px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.cursor {
    display: inline-block;
    color: var(--secondary-light);
    font-weight: 400;
    animation: blink 0.9s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: clamp(15px, 1.8vw, 18px);
    color: rgba(241, 245, 249, 0.9);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--ease-normal);
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-3px);
}

.hero-feature i {
    color: var(--primary-light);
    font-size: 17px;
}

.hero-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-scroll a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: bounce 2s infinite;
    transition: color var(--ease-fast);
}

.hero-scroll a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@media (max-width: 640px) {
    .hero {
        padding-top: calc(var(--navbar-height) + 40px);
        padding-bottom: 60px;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .hero-features {
        gap: 10px;
    }
    .hero-feature {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

/* ==========================================================================
   7. Page Header / Breadcrumb (Multi-page subpages)
   ========================================================================== */
.page-header {
    position: relative;
    padding: calc(var(--navbar-height) + 60px) 0 70px;
    background: linear-gradient(135deg, var(--navy-950) 0%, #0e374d 60%, var(--primary-dark) 100%);
    text-align: center;
    overflow: hidden;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: url('images/hospital-hero.png') center/cover;
    opacity: 0.12;
    filter: saturate(1.2);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 20px;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--ease-fast);
}
.breadcrumb a:hover {
    color: var(--secondary-light);
}

.breadcrumb i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb span {
    color: var(--secondary-light);
    font-weight: 600;
}

/* ==========================================================================
   8. Stats Section (Animated Counter)
   ========================================================================== */
.stats-section {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--primary-dark) 100%);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 30px 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: all var(--ease-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 30px;
    margin-bottom: 14px;
    color: var(--primary-light);
}

.stat-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 6px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    color: var(--secondary-light);
}

.stat-label {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 580px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-card {
        padding: 22px 10px;
    }
}

/* ==========================================================================
   9. About Section & Story Grid
   ========================================================================== */
.about-preview, .about-full {
    background: var(--bg-surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform var(--ease-smooth);
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

.about-experience-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.experience-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    color: var(--secondary-light);
}

.experience-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.about-content .section-label {
    margin-bottom: 12px;
}

.about-text {
    color: var(--slate-600);
    margin-bottom: 16px;
    font-size: 15.5px;
    line-height: 1.75;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 28px 0 36px;
}

.about-highlight {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--slate-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    transition: all var(--ease-fast);
}

.about-highlight:hover {
    background: var(--white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.highlight-icon {
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.about-highlight h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 2px;
}

.about-highlight p {
    font-size: 13px;
    color: var(--slate-500);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image-wrapper img {
        height: 360px;
    }
}

@media (max-width: 540px) {
    .about-highlights {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Mission, Vision & Values */
.mission-vision {
    background: var(--slate-50);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mv-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--ease-normal);
}

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.mv-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-subtle), #cffafe);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.mv-card:hover .mv-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.mv-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 12px;
}

.mv-card p {
    font-size: 14.5px;
    color: var(--slate-600);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Achievements & Milestones */
.achievements {
    background: var(--bg-surface);
}

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

.achievement-card {
    background: var(--slate-50);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--slate-200);
    transition: all var(--ease-normal);
}

.achievement-card:hover {
    background: var(--white);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-light);
}

.achievement-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: var(--radius-md);
    background: var(--secondary-subtle);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.achievement-card:hover .achievement-icon {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
}

.achievement-card h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.achievement-card p {
    font-size: 13.5px;
    color: var(--slate-600);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 540px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   10. Search & Filter Bar
   ========================================================================== */
.filter-search-bar {
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
}

.filter-search-input {
    width: 100%;
    padding: 16px 24px 16px 52px;
    border-radius: var(--radius-full);
    border: 2px solid var(--slate-200);
    background: var(--white);
    font-size: 15px;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: all var(--ease-normal);
    outline: none;
}

.filter-search-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

.filter-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 18px;
    pointer-events: none;
}

/* Category Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-tab {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    border: 1px solid var(--slate-200);
    background: var(--white);
    color: var(--slate-600);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ease-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover {
    background: var(--slate-100);
    color: var(--primary);
    border-color: var(--slate-300);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-teal);
}

.filter-tab .tab-count {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.08);
}
.filter-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

/* ==========================================================================
   11. Departments Section (Cards & Grid)
   ========================================================================== */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dept-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 34px 28px;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all var(--ease-normal);
}

.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease-normal);
}

.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 116, 144, 0.2);
}

.dept-card:hover::before {
    transform: scaleX(1);
}

.dept-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-subtle), #cffafe);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    transition: all var(--ease-normal);
}

.dept-card:hover .dept-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    transform: scale(1.08) rotate(3deg);
}

.dept-card h3 {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 10px;
}

.dept-card > p {
    font-size: 14px;
    color: var(--slate-600);
    line-height: 1.65;
    margin-bottom: 18px;
    flex-grow: 1;
}

.dept-features {
    list-style: none;
    margin-bottom: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--slate-100);
}

.dept-features li {
    font-size: 13px;
    color: var(--slate-600);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dept-features li i {
    color: var(--accent);
    font-size: 12px;
}

.dept-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    margin-top: auto;
    transition: gap var(--ease-fast);
}

.dept-link:hover {
    gap: 12px;
    color: var(--secondary-dark);
}

@media (max-width: 1024px) {
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .departments-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   12. Doctors Section (Cards & Directory)
   ========================================================================== */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all var(--ease-normal);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 116, 144, 0.2);
}

.doctor-card.hidden {
    display: none;
}

.doctor-image-wrapper {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, var(--navy-900), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.doctor-avatar-icon {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.25);
    transition: transform var(--ease-normal);
}

.doctor-card:hover .doctor-avatar-icon {
    transform: scale(1.1);
}

.doctor-status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.9);
    color: var(--white);
    backdrop-filter: blur(6px);
}

.doctor-status-badge.available::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--white);
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.doctor-department-tag {
    position: absolute;
    bottom: 14px;
    left: 14px;
    padding: 4px 12px;
    background: rgba(15, 23, 42, 0.75);
    color: var(--secondary-light);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.doctor-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.doctor-header {
    margin-bottom: 10px;
}

.doctor-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.doctor-specialty {
    font-size: 13.5px;
    color: var(--primary);
    font-weight: 600;
}

.doctor-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 12.5px;
    color: var(--slate-600);
}

.doctor-rating i {
    color: #F59E0B;
}

.doctor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: var(--slate-50);
    border-radius: var(--radius-md);
}

.meta-item {
    font-size: 12px;
    color: var(--slate-600);
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--secondary);
}

.doctor-bio {
    font-size: 13px;
    color: var(--slate-600);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.doctor-actions {
    margin-top: auto;
}

@media (max-width: 1024px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .doctors-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   13. Services Section & Pricing Packages
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 34px 28px;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--ease-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 116, 144, 0.25);
}

.service-card.featured {
    border: 2px solid var(--primary-light);
    box-shadow: var(--shadow-md);
}

.featured-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-subtle), #cffafe);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    transition: all var(--ease-normal);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    transform: scale(1.08);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 10px;
}

.service-card > p {
    font-size: 14px;
    color: var(--slate-600);
    line-height: 1.65;
    margin-bottom: 18px;
}

.service-tests {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-tests li {
    font-size: 13px;
    color: var(--slate-600);
    padding: 6px 0;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-tests li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    flex-shrink: 0;
}

.service-price-box {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-price-label {
    font-size: 12px;
    color: var(--slate-500);
    font-weight: 500;
}

.service-price-val {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Package Comparison Table */
.package-table-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow-x: auto;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    margin-top: 40px;
}

.package-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.package-table th, .package-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--slate-100);
}

.package-table th {
    background: var(--slate-50);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: var(--navy-900);
}

.package-table td {
    font-size: 14px;
    color: var(--slate-600);
}

.package-table tr:hover td {
    background: var(--primary-subtle);
}

/* ==========================================================================
   14. Testimonial Carousel Section
   ========================================================================== */
.testimonials {
    background: linear-gradient(135deg, #f8fafc 0%, #ecfeff 100%);
    overflow: hidden;
}

.testimonial-slider {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}

.testimonial-track {
    overflow: hidden;
    position: relative;
    min-height: 280px;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity var(--ease-normal), transform var(--ease-normal);
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
    text-align: center;
    position: relative;
}

.testimonial-quote-icon {
    font-size: 36px;
    color: var(--primary-light);
    opacity: 0.3;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--navy-900);
    line-height: 1.7;
    margin-bottom: 26px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.testimonial-author-info h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: var(--navy-900);
    text-align: left;
}

.testimonial-author-info p {
    font-size: 13px;
    color: var(--slate-500);
    text-align: left;
}

.testimonial-rating {
    margin-top: 4px;
    text-align: left;
}

.testimonial-rating i {
    color: #F59E0B;
    font-size: 13px;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.testimonial-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--slate-300);
    background: var(--white);
    color: var(--navy-900);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ease-fast);
}

.testimonial-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.08);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--slate-300);
    cursor: pointer;
    transition: all var(--ease-fast);
}

.dot.active {
    background: var(--primary);
    width: 26px;
    border-radius: 5px;
}

@media (max-width: 640px) {
    .testimonial-card {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   15. Facilities Section & Lightbox Gallery
   ========================================================================== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.facility-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    height: 280px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--ease-normal);
}

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

.facility-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ease-smooth);
}

.facility-card:hover img {
    transform: scale(1.08);
}

.facility-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.9) 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
    transition: opacity var(--ease-normal);
}

.facility-overlay h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 4px;
}

.facility-overlay p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 540px) {
    .facilities-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--ease-normal);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ease-fast);
}

.lightbox-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    transform: rotate(90deg);
}

/* ==========================================================================
   16. Interactive FAQ Accordions (Details & Summary)
   ========================================================================== */
.faq-section {
    background: var(--slate-50);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: all var(--ease-fast);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-item summary {
    padding: 20px 24px;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--navy-900);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
    color: var(--primary);
    transition: transform var(--ease-normal);
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 24px 22px;
    font-size: 15px;
    color: var(--slate-600);
    line-height: 1.7;
}

/* ==========================================================================
   17. Contact & Appointment Section
   ========================================================================== */
.contact-section {
    background: var(--bg-surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.contact-method-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    border-left: 4px solid var(--primary);
    transition: all var(--ease-normal);
}

.contact-method-card:hover {
    background: var(--white);
    border-left-color: var(--secondary);
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-subtle), #cffafe);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-method-card h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.contact-method-card p {
    font-size: 14px;
    color: var(--slate-600);
    line-height: 1.5;
}

.contact-method-card a {
    color: var(--primary);
    font-weight: 600;
}
.contact-method-card a:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

/* Appointment Form Wrapper */
.appointment-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-xl);
}

.form-header {
    margin-bottom: 28px;
}

.form-header h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.form-header p {
    font-size: 14px;
    color: var(--slate-500);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label i {
    color: var(--primary);
    font-size: 13px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--slate-50);
    font-size: 15px;
    color: var(--text-primary);
    transition: all var(--ease-fast);
    outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary-light);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.form-select {
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

.form-feedback {
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
    border-color: var(--danger);
    background-color: var(--danger-subtle);
}

.form-group.error .form-feedback {
    color: var(--danger);
}

.form-group.success .form-input,
.form-group.success .form-select {
    border-color: var(--success);
    background-color: var(--success-subtle);
}

/* Toggle Radio Consultation Type */
.consult-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 6px;
}

.consult-type-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--slate-600);
    transition: all var(--ease-fast);
}

.consult-type-label input[type="radio"] {
    display: none;
}

.consult-type-label:has(input:checked) {
    background: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
@media (max-width: 600px) {
    .appointment-form-wrapper {
        padding: 26px 18px;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .consult-type-toggle {
        grid-template-columns: 1fr;
    }
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background: var(--slate-50);
}

.map-container {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* ==========================================================================
   18. Emergency Banner & CTA Sections
   ========================================================================== */
.emergency-banner-section {
    padding: 40px 0;
    background: var(--bg-surface);
}

.emergency-banner {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    border-radius: var(--radius-2xl);
    padding: 40px 48px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.35);
    position: relative;
    overflow: hidden;
}

.emergency-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
}

.emergency-banner-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.emergency-banner-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    animation: shake-icon 2s infinite;
}

@keyframes shake-icon {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-8deg); }
    20%, 40% { transform: rotate(8deg); }
    50% { transform: rotate(0deg); }
}

.emergency-banner-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 6px;
}

.emergency-banner-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.emergency-banner-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

@media (max-width: 800px) {
    .emergency-banner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    .emergency-banner-left {
        flex-direction: column;
    }
    .emergency-banner-actions {
        width: 100%;
        flex-direction: column;
    }
    .emergency-banner-actions .btn {
        width: 100%;
    }
}

/* General CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--navy-950) 0%, var(--primary-dark) 60%, var(--primary) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 17px;
    color: rgba(241, 245, 249, 0.9);
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 540px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .cta-buttons .btn {
        width: 100%;
    }
}

/* ==========================================================================
   19. Footer
   ========================================================================== */
.footer {
    background: var(--navy-950);
    color: var(--slate-400);
    padding: 80px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 72px;
    width: auto;
    max-height: 78px;
    object-fit: contain;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 24px;
    color: var(--slate-400);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--slate-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--ease-fast);
}

.footer-socials a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 22px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 28px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    border-radius: 2px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: var(--slate-400);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--ease-fast);
}

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

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--slate-400);
}

.footer-contact-item i {
    color: var(--primary-light);
    margin-top: 3px;
    font-size: 15px;
}

.footer-contact-item a {
    color: var(--slate-300);
    transition: color var(--ease-fast);
}
.footer-contact-item a:hover {
    color: var(--secondary-light);
}

/* Newsletter in Footer */
.newsletter-box {
    margin-top: 24px;
}

.newsletter-box p {
    font-size: 13px;
    color: var(--slate-400);
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    overflow: hidden;
    padding: 3px;
}

.newsletter-input {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 13.5px;
    outline: none;
}

.newsletter-input::placeholder {
    color: var(--slate-500);
}

.newsletter-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13.5px;
    transition: all var(--ease-fast);
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: scale(1.02);
}

.footer-bottom {
    padding: 26px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 13.5px;
    color: var(--slate-500);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--slate-400);
}
.footer-bottom-links a:hover {
    color: var(--secondary-light);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}
@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   20. Floating Speed-Dials & Toast Stack
   ========================================================================== */
/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all var(--ease-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-teal);
}

/* Mobile Quick Emergency Floating Button */
.floating-emergency {
    position: fixed;
    bottom: 28px;
    left: 24px;
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    display: none;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: var(--shadow-red);
    z-index: 999;
    animation: pulse-emergency 2s infinite;
}

@keyframes pulse-emergency {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    50% { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
}

@media (max-width: 768px) {
    .floating-emergency {
        display: inline-flex;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 96px;
    right: 24px;
    z-index: 100002;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    width: calc(100vw - 48px);
    pointer-events: none;
}

.toast {
    background: var(--navy-900);
    color: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: auto;
    cursor: pointer;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success {
    border-left-color: var(--success);
}
.toast.error {
    border-left-color: var(--danger);
}
.toast.info {
    border-left-color: var(--primary-light);
}

.toast.removing {
    animation: toastSlideOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ==========================================================================
   21. Scroll Reveal & Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-normal), transform 0.6s var(--ease-normal);
}

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

/* Accessibility / Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
}

/* Print Styles */
@media print {
    .navbar, .scroll-progress, .back-to-top, .floating-emergency, .toast-container, .hero-scroll {
        display: none !important;
    }
    .section {
        padding: 30px 0;
        page-break-inside: avoid;
    }
    body {
        background: #fff;
        color: #000;
    }
}