﻿/* ============================================
   CHERISH HOSPITAL â€” PREMIUM PORTAL STYLES
   Black & White | Clean Minimal | Apple-Inspired
   ============================================ */

/* ====== CSS VARIABLES ====== */
:root {
    --primary: #000000;
    --primary-light: #111111;
    --primary-mid: #0a0a0a;
    --accent: #ffffff;
    --accent-light: #e5e5e5;
    --accent-glow: rgba(255, 255, 255, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --text: #f5f5f7;
    --text-muted: #86868b;
    --text-dark: #1d1d1f;
    --success: #30d158;
    --success-bg: rgba(48, 209, 88, 0.12);
    --warning: #ffd60a;
    --warning-bg: rgba(255, 214, 10, 0.12);
    --danger: #ff453a;
    --danger-bg: rgba(255, 69, 58, 0.12);
    --info: #64d2ff;
    --info-bg: rgba(100, 210, 255, 0.12);
    --card-bg: #1c1c1e;
    --card-bg-hover: #2c2c2e;
    --card-border: rgba(255, 255, 255, 0.08);
    --surface: #000000;
    --surface-secondary: #1c1c1e;
    --blue-accent: #0071e3;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    --nav-height: 48px;

    /* Theme-aware tokens (dark defaults) */
    --bg-body: #000000;
    --bg-section-alt: #111111;
    --bg-section-alt2: #0a0a0a;
    --nav-bg: rgba(0, 0, 0, 0.72);
    --nav-bg-scrolled: rgba(0, 0, 0, 0.88);
    --nav-mobile-bg: rgba(0, 0, 0, 0.98);
    --hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.92) 100%);
    --hero-badge-bg: rgba(255, 255, 255, 0.06);
    --hero-badge-border: rgba(255, 255, 255, 0.1);
    --icon-bg: rgba(255, 255, 255, 0.08);
    --icon-color: #fff;
    --icon-hover-bg: #fff;
    --icon-hover-color: #000;
    --btn-accent-bg: #fff;
    --btn-accent-color: #000;
    --btn-accent-hover-bg: #e5e5e5;
    --btn-outline-hover-bg: rgba(255, 255, 255, 0.06);
    --btn-outline-hover-border: #fff;
    --btn-outline-hover-color: #fff;
    --filter-active-bg: #fff;
    --filter-active-color: #000;
    --filter-active-border: #fff;
    --avatar-bg: #fff;
    --avatar-color: #000;
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus-border: rgba(255, 255, 255, 0.35);
    --input-focus-bg: rgba(255, 255, 255, 0.06);
    --input-focus-shadow: rgba(255, 255, 255, 0.06);
    --input-color: #fff;
    --input-placeholder: rgba(255, 255, 255, 0.25);
    --label-color: rgba(255, 255, 255, 0.55);
    --optional-color: rgba(255, 255, 255, 0.3);
    --modal-overlay-bg: rgba(0, 0, 0, 0.8);
    --modal-bg: var(--card-bg);
    --toast-bg: rgba(28, 28, 30, 0.98);
    --toast-border: rgba(255, 255, 255, 0.08);
    --loading-bg: rgba(0, 0, 0, 0.8);
    --spinner-track: rgba(255, 255, 255, 0.1);
    --spinner-color: #fff;
    --scrollbar-track: #000;
    --scrollbar-thumb: #333;
    --scrollbar-thumb-hover: #555;
    --dept-card-border: rgba(255, 255, 255, 0.06);
    --dept-card-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    --dept-card-hover-border: rgba(255, 255, 255, 0.1);
    --dept-overlay-grad: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 50%, rgba(28,28,30,0.95) 85%, var(--card-bg) 100%);
    --dept-overlay-hover: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 50%, rgba(28,28,30,0.9) 80%, var(--card-bg) 100%);
    --dept-card-after: linear-gradient(90deg, transparent, #fff, transparent);
    --dept-icon-bg: rgba(255, 255, 255, 0.08);
    --dept-icon-border: rgba(255, 255, 255, 0.1);
    --link-arrow-bg: rgba(255, 255, 255, 0.06);
    --link-arrow-hover-color: #000;
    --link-arrow-hover-bg: #fff;
    --facility-overlay-bg: linear-gradient(to top, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.3) 50%, transparent 100%);
    --facility-overlay-hover-bg: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.5) 60%, rgba(10, 22, 40, 0.2) 100%);
    --director-quote-icon: rgba(255, 255, 255, 0.08);
    --director-quote-border: rgba(255, 255, 255, 0.12);
    --director-img-border: rgba(255, 255, 255, 0.08);
    --director-img-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
    --director-stat-border: rgba(255, 255, 255, 0.06);
    --chatbot-bg: #1c1c1e;
    --chatbot-border: rgba(255, 255, 255, 0.1);
    --chatbot-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    --newsletter-input-bg: rgba(255, 255, 255, 0.06);
    --newsletter-input-border: rgba(255, 255, 255, 0.1);
    --autofill-shadow: 0 0 0 1000px #1c1c1e inset;
    --color-scheme: dark;
    --date-invert: invert(0.7);
    --logo-invert: invert(1);
}

/* ====== LIGHT MODE ====== */
[data-theme="light"] {
    --primary: #ffffff;
    --primary-light: #f5f5f7;
    --primary-mid: #fafafa;
    --accent: #000000;
    --accent-light: #333333;
    --accent-glow: rgba(0, 0, 0, 0.06);
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-bg-hover: rgba(0, 0, 0, 0.06);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-border-hover: rgba(0, 0, 0, 0.18);
    --text: #1d1d1f;
    --text-muted: #6e6e73;
    --text-dark: #f5f5f7;
    --card-bg: #ffffff;
    --card-bg-hover: #f5f5f7;
    --card-border: rgba(0, 0, 0, 0.1);
    --surface: #ffffff;
    --surface-secondary: #f5f5f7;
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);

    --bg-body: #f8f8fa;
    --bg-section-alt: #ffffff;
    --bg-section-alt2: #f0f0f5;
    --nav-bg: rgba(248, 248, 250, 0.8);
    --nav-bg-scrolled: rgba(248, 248, 250, 0.95);
    --nav-mobile-bg: rgba(248, 248, 250, 0.98);
    --hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.55) 100%);
    --hero-badge-bg: rgba(255, 255, 255, 0.85);
    --hero-badge-border: rgba(0, 0, 0, 0.1);
    --icon-bg: rgba(0, 0, 0, 0.06);
    --icon-color: #1d1d1f;
    --icon-hover-bg: #1d1d1f;
    --icon-hover-color: #fff;
    --btn-accent-bg: #1d1d1f;
    --btn-accent-color: #fff;
    --btn-accent-hover-bg: #333;
    --btn-outline-hover-bg: rgba(0, 0, 0, 0.04);
    --btn-outline-hover-border: #1d1d1f;
    --btn-outline-hover-color: #1d1d1f;
    --filter-active-bg: #1d1d1f;
    --filter-active-color: #fff;
    --filter-active-border: #1d1d1f;
    --avatar-bg: #1d1d1f;
    --avatar-color: #fff;
    --input-bg: #ffffff;
    --input-border: rgba(0, 0, 0, 0.15);
    --input-focus-border: rgba(0, 0, 0, 0.4);
    --input-focus-bg: #ffffff;
    --input-focus-shadow: rgba(0, 0, 0, 0.08);
    --input-color: #1d1d1f;
    --input-placeholder: rgba(0, 0, 0, 0.35);
    --label-color: #6e6e73;
    --optional-color: rgba(0, 0, 0, 0.35);
    --modal-overlay-bg: rgba(0, 0, 0, 0.4);
    --modal-bg: #fff;
    --toast-bg: #ffffff;
    --toast-border: rgba(0, 0, 0, 0.12);
    --loading-bg: rgba(248, 248, 250, 0.9);
    --spinner-track: rgba(0, 0, 0, 0.1);
    --spinner-color: #1d1d1f;
    --scrollbar-track: #f0f0f5;
    --scrollbar-thumb: #c7c7cc;
    --scrollbar-thumb-hover: #a1a1a6;
    --dept-card-border: rgba(0, 0, 0, 0.08);
    --dept-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06);
    --dept-card-hover-border: rgba(0, 0, 0, 0.15);
    --dept-overlay-grad: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.85) 100%);
    --dept-overlay-hover: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.03) 40%, rgba(0,0,0,0.5) 75%, rgba(0,0,0,0.8) 100%);
    --dept-card-after: linear-gradient(90deg, transparent, rgba(0,0,0,0.15), transparent);
    --dept-icon-bg: #ffffff;
    --dept-icon-border: rgba(0, 0, 0, 0.12);
    --link-arrow-bg: rgba(0, 0, 0, 0.06);
    --link-arrow-hover-color: #fff;
    --link-arrow-hover-bg: #1d1d1f;
    --facility-overlay-bg: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    --facility-overlay-hover-bg: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.1) 100%);
    --director-quote-icon: rgba(0, 0, 0, 0.06);
    --director-quote-border: rgba(0, 0, 0, 0.12);
    --director-img-border: rgba(0, 0, 0, 0.1);
    --director-img-shadow: 0 32px 64px rgba(0, 0, 0, 0.12);
    --director-stat-border: rgba(0, 0, 0, 0.08);
    --chatbot-bg: #ffffff;
    --chatbot-border: rgba(0, 0, 0, 0.12);
    --chatbot-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    --newsletter-input-bg: #ffffff;
    --newsletter-input-border: rgba(0, 0, 0, 0.15);
    --autofill-shadow: 0 0 0 1000px #ffffff inset;
    --color-scheme: light;
    --date-invert: invert(0.3);
    --logo-invert: invert(0);
}

/* Light mode overrides for elements that need forced colors */
[data-theme="light"] .dept-icon {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .facility-overlay h4 {
    color: #fff;
}

[data-theme="light"] .facility-overlay p {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .hero h1,
[data-theme="light"] .hero-subtitle,
[data-theme="light"] .hero-badge,
[data-theme="light"] .hero-micro-copy,
[data-theme="light"] .hero .text-accent {
    color: #fff;
}

[data-theme="light"] .hero-badge {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

[data-theme="light"] .hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

[data-theme="light"] .footer {
    background: #1d1d1f;
    color: #f5f5f7;
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .footer .text-muted,
[data-theme="light"] .footer-col > p,
[data-theme="light"] .footer-col a,
[data-theme="light"] .footer-col li a {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .footer-col li a:hover,
[data-theme="light"] .footer-col a:hover {
    color: #fff;
}

[data-theme="light"] .footer-col h4 {
    color: #f5f5f7;
}

[data-theme="light"] .footer-col h4::after {
    background: #f5f5f7;
}

[data-theme="light"] .footer .nav-logo {
    color: #f5f5f7;
}

[data-theme="light"] .footer .nav-logo-img {
    filter: invert(1);
}

[data-theme="light"] .footer-socials a {
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .footer-socials a:hover {
    background: #fff;
    color: #1d1d1f;
}

[data-theme="light"] .footer .newsletter-form input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

[data-theme="light"] .footer .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .footer-bar {
    border-top-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .footer-bar p {
    color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .footer .newsletter-form .btn-accent {
    background: #fff;
    color: #1d1d1f;
}

[data-theme="light"] .footer .newsletter-form .btn-accent:hover {
    background: #f5f5f7;
}

[data-theme="light"] .testimonial-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .stat-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .why-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .contact-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s ease, color 0.4s ease;
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea {
    font-family: inherit;
    color-scheme: var(--color-scheme);
}

/* Native dropdown options (OS-rendered) */
option {
    background: var(--card-bg);
    color: var(--text);
}

/* Placeholder text */
::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

::-webkit-input-placeholder { color: var(--text-muted); opacity: 0.6; }
::-moz-placeholder { color: var(--text-muted); opacity: 0.6; }

/* Autofill fix â€” prevent browsers from injecting white backgrounds */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: var(--autofill-shadow);
    transition: background-color 5000s ease-in-out 0s;
}

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

.hidden { display: none !important; }
.text-accent { color: var(--text-muted); }
.text-muted { color: var(--text-muted); }

/* ====== CARD COMPONENT ====== */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.glass-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--glass-border-hover);
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-accent {
    background: var(--btn-accent-bg);
    color: var(--btn-accent-color);
    box-shadow: none;
}

.btn-accent:hover {
    transform: translateY(-1px);
    background: var(--btn-accent-hover-bg);
    box-shadow: var(--shadow);
}

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

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--btn-outline-hover-bg);
    border-color: var(--btn-outline-hover-border);
    color: var(--btn-outline-hover-color);
}

.btn-google {
    background: var(--btn-accent-bg);
    color: var(--btn-accent-color);
    font-weight: 500;
    border: 1px solid var(--glass-border);
    gap: 10px;
}

.btn-google:hover {
    background: var(--btn-accent-hover-bg);
    box-shadow: var(--shadow);
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(252, 129, 129, 0.3);
}

.btn-danger:hover {
    background: rgba(252, 129, 129, 0.25);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* ====== SECTION HEADERS ====== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    color: var(--text);
}

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

/* ====== AVATAR ====== */
.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--avatar-bg);
    color: var(--avatar-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    height: var(--nav-height);
    transition: all var(--transition);
}

/* When mobile menu is open, give navbar a solid background */
.navbar:has(.hamburger.active) {
    background: var(--nav-bg-scrolled);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom-color: var(--glass-border);
}

/* Revert to theme colors when menu is open */
.navbar:has(.hamburger.active) .nav-logo {
    color: var(--text);
}

.navbar:has(.hamburger.active) .nav-logo-text small {
    color: var(--text-muted);
}

.navbar:has(.hamburger.active) .nav-logo-img {
    filter: var(--logo-invert, invert(1)) !important;
}

.navbar:has(.hamburger.active) .theme-toggle {
    color: var(--text);
    border-color: var(--glass-border);
    background: var(--glass-bg);
}

.navbar:has(.hamburger.active) .hamburger span {
    background: var(--text);
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom-color: var(--glass-border);
    box-shadow: none;
}

/* Navbar over hero (not scrolled) â€” white text/icons */
.navbar:not(.scrolled) .nav-logo {
    color: #fff;
}

.navbar:not(.scrolled) .nav-logo-text small {
    color: rgba(255, 255, 255, 0.6);
}

.navbar:not(.scrolled) .nav-logo-img {
    filter: invert(1) !important;
}

.navbar:not(.scrolled) .nav-links:not(.open) a {
    color: rgba(255, 255, 255, 0.85);
}

.navbar:not(.scrolled) .nav-links:not(.open) a:hover,
.navbar:not(.scrolled) .nav-links:not(.open) a.active {
    color: #fff;
}

.navbar:not(.scrolled) .theme-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
}

.navbar:not(.scrolled) .hamburger span {
    background: #fff;
}

.navbar:not(.scrolled) .nav-actions .btn {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar:not(.scrolled) .nav-actions .btn-accent {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    backdrop-filter: blur(8px);
}

.navbar:not(.scrolled) .nav-actions .btn-accent:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: var(--logo-invert, invert(1));
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-text span {
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-logo-text small {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}

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

.nav-links a {
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: transparent;
}

.nav-links a.active {
    color: var(--text);
}

/* Theme Toggle */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

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

.nav-actions .btn {
    padding: 6px 14px;
    font-size: 0.75rem;
    border-radius: 8px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero + section {
    scroll-margin-top: var(--nav-height);
}

section:not(.hero) {
    scroll-margin-top: var(--nav-height);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-bg-video video.loaded {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--hero-overlay);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    background: var(--accent);
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -80px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 20%;
    animation: float 12s ease-in-out infinite 2s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 10%;
    animation: float 9s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: calc(var(--nav-height) + 80px) 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hero-badge-bg);
    border: 1px solid var(--hero-badge-border);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-micro-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ================================================
   DEPARTMENTS SECTION
   ================================================ */
.departments-section {
    padding: 100px 0;
    background: var(--bg-body);
}

.dept-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--filter-active-bg);
    color: var(--filter-active-color);
    border-color: var(--filter-active-border);
}

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

.dept-card {
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--dept-card-border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dept-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.dept-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

.dept-card:hover .dept-card-img img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.dept-card-img-overlay {
    position: absolute;
    inset: 0;
    background: var(--dept-overlay-grad);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.dept-card:hover .dept-card-img-overlay {
    background: var(--dept-overlay-hover);
}

.dept-card-content {
    padding: 0 24px 28px;
    position: relative;
    z-index: 2;
    margin-top: -40px;
}

.dept-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--dept-card-after);
    opacity: 0;
    transition: opacity var(--transition);
}

.dept-card:hover::after {
    opacity: 1;
}

.dept-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--dept-card-shadow);
    border-color: var(--dept-card-hover-border);
}

.dept-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: var(--dept-icon-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--dept-icon-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--icon-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 3;
}

.dept-card:hover .dept-icon {
    background: var(--icon-hover-bg);
    color: var(--icon-hover-color);
    transform: scale(1.1) rotate(3deg);
    border-color: var(--icon-hover-bg);
    box-shadow: var(--shadow);
}

.dept-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.dept-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

a.dept-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.dept-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--link-arrow-bg);
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-left: auto;
    margin-right: auto;
}

.dept-card:hover .dept-link-arrow {
    color: var(--link-arrow-hover-color);
    background: var(--link-arrow-hover-bg);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

/* ================================================
   DOCTOR SPOTLIGHT
   ================================================ */
.doctor-spotlight {
    padding: 100px 0;
    background: var(--bg-section-alt);
}

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

.spotlight-image {
    position: relative;
}

.spotlight-photo {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius);
    border: 2px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    display: block;
}

.spotlight-img-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    max-width: 400px;
    background: linear-gradient(135deg, var(--glass-bg), var(--primary-light));
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 3rem;
    color: var(--accent);
}

.spotlight-img-placeholder span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.spotlight-badge {
    position: absolute;
    bottom: 24px;
    right: -20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.spotlight-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--icon-bg);
    color: var(--text-muted);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.spotlight-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.spotlight-bio {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.spotlight-credentials {
    margin-bottom: 2rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.credential i {
    color: var(--text-muted);
    width: 20px;
    text-align: center;
}

/* ================================================
   SMART CALL SECTION
   ================================================ */
.smart-call-section {
    padding: 100px 0;
    background: var(--bg-body);
}

.smart-call-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

/* Primary Call Card */
.smart-call-card {
    text-align: center;
    padding: 48px 36px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.smart-call-primary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.smart-call-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.smart-call-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--btn-accent-bg);
    color: var(--btn-accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    position: relative;
}

.pulse-ring::before,
.pulse-ring::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--btn-accent-bg);
    opacity: 0;
    animation: pulseRing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-ring::after {
    animation-delay: 1s;
}

@keyframes pulseRing {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.smart-call-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.smart-call-number {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--text);
}

.smart-call-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.smart-call-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.05rem;
    padding: 16px 24px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.smart-call-availability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.smart-call-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #30d158;
    animation: livePulse 1.5s ease-in-out infinite;
}

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

/* Secondary Options */
.smart-call-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.smart-call-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.smart-call-option:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.smart-option-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.smart-option-info {
    flex: 1;
    min-width: 0;
}

.smart-option-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.smart-option-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.smart-option-arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

a.smart-call-option:hover .smart-option-arrow {
    transform: translateX(4px);
    color: var(--text);
}

/* Trust Badge */
.smart-call-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    font-size: 0.84rem;
    color: var(--text-muted);
    text-align: center;
}

.smart-call-trust i {
    color: var(--success);
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .smart-call-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .smart-call-card {
        padding: 36px 24px;
    }

    .smart-call-number {
        font-size: 1.5rem;
    }
}

/* ================================================
   FACILITIES GALLERY
   ================================================ */
.facilities-section {
    padding: 100px 0;
    background: var(--bg-body);
}

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

.facility-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.facility-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.facility-overlay {
    position: absolute;
    inset: 0;
    background: var(--facility-overlay-bg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: background var(--transition);
}

.facility-card:hover .facility-overlay {
    background: var(--facility-overlay-hover-bg);
}

.facility-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 4px;
}

.facility-overlay p {
    font-size: 0.85rem;
    color: var(--text-muted);
    transform: translateY(8px);
    opacity: 0;
    transition: all 0.3s ease;
}

.facility-card:hover .facility-overlay p {
    transform: translateY(0);
    opacity: 1;
}

/* ================================================
   WHY CHOOSE US
   ================================================ */
.why-section {
    padding: 100px 0;
    background: var(--bg-section-alt);
}

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

.why-card {
    padding: 32px 24px;
    text-align: center;
}

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

.why-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--icon-color);
    transition: all var(--transition);
}

.why-card:hover .why-icon {
    background: var(--icon-hover-bg);
    color: var(--icon-hover-color);
}

.why-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.why-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ================================================
   DIRECTOR'S MESSAGE
   ================================================ */
.director-section {
    padding: 100px 0;
    background: var(--bg-section-alt2);
    position: relative;
    overflow: hidden;
}

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

.director-image {
    position: relative;
}

.director-image img {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius);
    border: 2px solid var(--director-img-border);
    box-shadow: var(--director-img-shadow);
    display: block;
}

.director-content {
    position: relative;
}

.director-quote-icon {
    font-size: 2.5rem;
    color: var(--director-quote-icon);
    margin-bottom: 16px;
    line-height: 1;
}

.director-heading {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text);
}

.director-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-style: italic;
    margin: 0 0 32px;
    padding-left: 20px;
    border-left: 3px solid var(--director-quote-border);
}

.director-sign {
    margin-bottom: 32px;
}

.director-sign strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.director-sign span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.director-stats {
    display: flex;
    gap: 32px;
}

.director-stat {
    text-align: center;
    padding: 16px 24px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--director-stat-border);
}

.director-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.director-stat span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ================================================
   TESTIMONIALS â€” Marquee Auto-Scroll
   ================================================ */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-body);
    overflow: hidden;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    width: 360px;
    flex-shrink: 0;
    padding: 32px 24px;
    text-align: left;
}

.testimonial-stars {
    color: var(--text);
    margin-bottom: 16px;
    font-size: 0.85rem;
    display: flex;
    gap: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact-section {
    padding: 100px 0;
    background: var(--bg-section-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
}

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

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-color);
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.9rem;
}

.contact-map {
    min-height: 400px;
    padding: 4px;
    overflow: hidden;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--bg-body);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col .nav-logo {
    margin-bottom: 16px;
}

.footer-col > p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.footer-socials a:hover {
    background: var(--icon-hover-bg);
    color: var(--icon-hover-color);
    border-color: var(--icon-hover-bg);
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--text);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-col ul a:hover {
    color: var(--text);
    padding-left: 6px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    background: var(--newsletter-input-bg);
    border: 1px solid var(--newsletter-input-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.85rem;
    color-scheme: var(--color-scheme);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--blue-accent);
}

.newsletter-form .btn {
    padding: 10px 16px;
}

.footer-bar {
    border-top: 1px solid var(--glass-border);
    padding: 20px 0;
    text-align: center;
}

.footer-bar p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-credit {
    margin-top: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.02em;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.footer-credit a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

a.contact-card {
    cursor: pointer;
}

a.contact-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ================================================
   MODALS & OVERLAYS
   ================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--modal-overlay-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
    overflow-y: auto;
    animation: overlayIn 0.2s ease;
}

@keyframes overlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    position: relative;
    width: 100%;
    padding: 40px;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    transition: color var(--transition-fast);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--text);
    background: var(--glass-bg);
}

/* Auth Modal */
.auth-modal {
    max-width: 440px;
    text-align: center;
}

.auth-icon {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.auth-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Auth Loading Skeleton */
.auth-loading {
    padding: 2rem 0;
}

.skeleton-block {
    background: linear-gradient(90deg, var(--glass-bg) 25%, var(--glass-bg-hover) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-xs);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Appointments Modal */
.appointments-modal {
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.appointments-header {
    margin-bottom: 1.5rem;
}

.appointments-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.appointments-body {
    overflow-y: auto;
    flex: 1;
}

/* Appointment List */
.appointment-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    margin-bottom: 12px;
}

.appt-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.appt-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.appt-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-confirmed {
    background: var(--success-bg);
    color: var(--success);
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-cancelled {
    background: var(--danger-bg);
    color: var(--danger);
}

.appt-actions {
    display: flex;
    gap: 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--glass-border);
    margin-bottom: 1rem;
}

.empty-state h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Success Overlay */
.success-modal {
    max-width: 500px;
    text-align: center;
}

.success-animation {
    margin-bottom: 1.5rem;
}

.checkmark-svg {
    width: 80px;
    height: 80px;
}

.checkmark-circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: drawCircle 0.5s ease forwards;
}

.checkmark-check {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawCheck 0.3s 0.5s ease forwards;
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.success-modal h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--success);
    margin-bottom: 0.5rem;
}

/* Email Preview */
.email-preview {
    text-align: left;
    margin-top: 1.5rem;
    padding: 20px;
    background: var(--glass-bg);
}

.email-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.email-body {
    font-size: 0.85rem;
    line-height: 1.7;
}

.email-body hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 12px 0;
}

.email-body strong {
    color: var(--text);
}

/* Confirm Tooltip */
.confirm-tooltip {
    position: fixed;
    z-index: 3000;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    text-align: center;
    animation: modalIn 0.2s ease;
}

.confirm-tooltip p {
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.confirm-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* ================================================
   TOAST NOTIFICATIONS
   ================================================ */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 5000;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    background: var(--toast-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--toast-border);
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    min-width: 280px;
    max-width: 400px;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 3.7s forwards;
}

.toast i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.success i { color: var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.error i { color: var(--danger); }
.toast.info { border-left: 3px solid var(--info); }
.toast.info i { color: var(--info); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.warning i { color: var(--warning); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(60px); }
}

/* ================================================
   LOADING / SKELETON STATES
   ================================================ */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: var(--loading-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    z-index: 10;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--spinner-track);
    border-top-color: var(--spinner-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ================================================
   BACK TO TOP BUTTON
   ================================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--btn-accent-bg);
    color: var(--btn-accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

/* ================================================
   FLOATING EMERGENCY CTA
   ================================================ */
.float-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.float-phone {
    background: #ff453a;
    color: #fff;
}

.float-whatsapp {
    background: #30d158;
    color: #fff;
}

.float-whatsapp i {
    font-size: 1.1rem;
}

.float-label {
    display: none;
}

.float-btn:hover .float-label {
    display: inline;
}

.float-chat {
    background: var(--btn-accent-bg);
    color: var(--btn-accent-color);
    box-shadow: var(--shadow);
}

.float-chat:hover {
    background: var(--btn-accent-hover-bg);
}

/* ================================================
   CHATBOT POPUP
   ================================================ */
.chatbot-popup {
    position: fixed;
    bottom: 200px;
    right: 24px;
    z-index: 950;
    animation: chatPopIn 0.3s ease;
}

@keyframes chatPopIn {
    from { opacity: 0; transform: translateY(16px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-card {
    background: var(--chatbot-bg);
    border: 1px solid var(--chatbot-border);
    border-radius: 20px;
    padding: 32px 28px;
    width: 280px;
    text-align: center;
    box-shadow: var(--chatbot-shadow);
    position: relative;
}

.chatbot-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.chatbot-close:hover {
    color: var(--text);
    background: var(--glass-bg);
}

.chatbot-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--icon-color);
}

.chatbot-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.chatbot-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.chatbot-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    background: var(--icon-bg);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ================================================
   APPOINTMENT BADGE
   ================================================ */
.appt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--btn-accent-bg);
    color: var(--btn-accent-color);
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: auto;
}

/* ================================================
   SECTION REVEAL ANIMATIONS
   ================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children in grids */
.reveal.revealed .glass-card,
.reveal.revealed .stat-card,
.reveal.revealed .why-card,
.reveal.revealed .dept-card,
.reveal.revealed .contact-card {
    animation: cardReveal 0.5s ease forwards;
    opacity: 0;
}

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

.reveal.revealed .glass-card:nth-child(1),
.reveal.revealed .stat-card:nth-child(1),
.reveal.revealed .why-card:nth-child(1),
.reveal.revealed .dept-card:nth-child(1),
.reveal.revealed .contact-card:nth-child(1) { animation-delay: 0.05s; }
.reveal.revealed .glass-card:nth-child(2),
.reveal.revealed .stat-card:nth-child(2),
.reveal.revealed .why-card:nth-child(2),
.reveal.revealed .dept-card:nth-child(2),
.reveal.revealed .contact-card:nth-child(2) { animation-delay: 0.1s; }
.reveal.revealed .glass-card:nth-child(3),
.reveal.revealed .stat-card:nth-child(3),
.reveal.revealed .why-card:nth-child(3),
.reveal.revealed .dept-card:nth-child(3),
.reveal.revealed .contact-card:nth-child(3) { animation-delay: 0.15s; }
.reveal.revealed .glass-card:nth-child(4),
.reveal.revealed .stat-card:nth-child(4),
.reveal.revealed .why-card:nth-child(4),
.reveal.revealed .dept-card:nth-child(4),
.reveal.revealed .contact-card:nth-child(4) { animation-delay: 0.2s; }
.reveal.revealed .dept-card:nth-child(5) { animation-delay: 0.25s; }
.reveal.revealed .dept-card:nth-child(6) { animation-delay: 0.3s; }
.reveal.revealed .dept-card:nth-child(7) { animation-delay: 0.35s; }
.reveal.revealed .dept-card:nth-child(8) { animation-delay: 0.4s; }

/* ================================================
   SCROLLBAR STYLING
   ================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Appointments modal scrollbar */
.appointments-body::-webkit-scrollbar {
    width: 5px;
}

.appointments-body::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dept-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .facilities-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .spotlight-grid { grid-template-columns: 1fr; gap: 40px; }
    .spotlight-image { display: flex; justify-content: center; overflow: hidden; }
    .spotlight-photo { max-width: 320px; }
    .spotlight-badge { position: relative; right: auto; bottom: auto; margin: -20px auto 0; width: fit-content; }
    .director-grid { grid-template-columns: 1fr; gap: 40px; }
    .director-image { display: flex; justify-content: center; }
    .director-image img { max-width: 320px; }
    .testimonial-card { width: 300px; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-map { min-height: 300px; }
}

@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--nav-mobile-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--glass-border);
        transform: scale(0.95);
        transform-origin: top center;
        opacity: 0;
        visibility: hidden;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.25s;
        z-index: 1001;
    }

    .nav-links.open {
        transform: scale(1);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 12px 16px;
        font-size: 1rem;
    }

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

    /* Reduce section padding on mobile */
    .departments-section,
    .smart-call-section,
    .facilities-section,
    .why-section,
    .director-section,
    .testimonials-section,
    .contact-section,
    .doctor-spotlight {
        padding: 60px 0;
    }

    .hero-content { padding: calc(var(--nav-height) + 24px) 0 60px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }

    .section-title { font-size: 2rem; }

    .dept-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .dept-card-img { height: 160px; }

    .spotlight-grid { grid-template-columns: 1fr; }
    .spotlight-photo { max-width: 280px; margin: 0 auto; }
    .spotlight-img-placeholder { max-width: 280px; margin: 0 auto; }
    .spotlight-info h2 { font-size: 1.8rem; }

    .facilities-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .facility-card { aspect-ratio: 3/2; }
    .facility-overlay p { opacity: 1; transform: translateY(0); }

    .wizard-container { padding: 24px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .step-label { display: none; }
    .step-line { width: 40px; }
    .doctors-grid { grid-template-columns: 1fr; }
    .slots-grid { grid-template-columns: repeat(3, 1fr); }

    .why-grid { grid-template-columns: repeat(2, 1fr); }

    .director-grid { grid-template-columns: 1fr; text-align: center; }
    .director-image img { max-width: 280px; margin: 0 auto; }
    .director-quote { border-left: none; padding-left: 0; }
    .director-stats { justify-content: center; flex-wrap: wrap; gap: 16px; }
    .director-stat { padding: 12px 16px; }
    .director-heading { font-size: 1.7rem; }

    .testimonial-card { width: 280px; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-card p { overflow-wrap: break-word; word-break: break-word; }
    .contact-map { min-height: 250px; aspect-ratio: 16/10; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-socials a { width: 44px; height: 44px; font-size: 1rem; }
    .newsletter-form { flex-wrap: wrap; }
    .newsletter-form input { min-width: 0; flex: 1 1 100%; }

    .modal { padding: 28px 20px; }
    .modal-close { width: 44px; height: 44px; font-size: 1.1rem; }
    .appointment-item { grid-template-columns: 1fr; gap: 12px; }
    .appt-actions { justify-content: flex-start; }
    .appointments-modal { max-height: 90vh; }

    .btn-lg { padding: 14px 20px; font-size: 0.95rem; }

    .success-detail-row { padding: 10px 14px; }

    #toast-container { left: 16px; right: 16px; bottom: 90px; }
    .toast { min-width: auto; width: 100%; }

    .float-cta { bottom: 16px; right: 16px; }
    .float-btn { padding: 10px 12px; }
    .float-label { display: none !important; }
    .back-to-top { bottom: 24px; left: 16px; width: 44px; height: 44px; }
    .chatbot-popup { right: 16px; bottom: 180px; }
    .chatbot-card { width: 260px; padding: 24px 20px; }
    .theme-toggle { width: 44px; height: 44px; }

    /* Touch target improvements */
    .filter-btn { padding: 10px 20px; min-height: 44px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .departments-section,
    .smart-call-section,
    .facilities-section,
    .why-section,
    .director-section,
    .testimonials-section,
    .contact-section,
    .doctor-spotlight {
        padding: 48px 0;
    }

    .hero-content { padding: calc(var(--nav-height) + 16px) 0 40px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .section-title { font-size: 1.6rem; }

    .dept-grid { grid-template-columns: 1fr; gap: 16px; }
    .dept-card-img { height: 180px; }

    .spotlight-info h2 { font-size: 1.5rem; }

    .facilities-grid { grid-template-columns: 1fr; }
    .facility-card { aspect-ratio: 16/9; }

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

    .director-heading { font-size: 1.5rem; }

    .testimonial-card { width: 260px; }

    .slots-grid { grid-template-columns: repeat(2, 1fr); }

    .success-detail-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 14px; }

    .chatbot-popup { left: 16px; right: 16px; }
    .chatbot-card { width: 100%; }



}

@media (max-width: 360px) {
    .container { padding: 0 12px; }

    .hero h1 { font-size: 1.5rem; }
    .section-title { font-size: 1.4rem; }

    .stats-grid { gap: 8px; }
    .stat-card { padding: 14px 10px; }
    .stat-number { font-size: 1.4rem; }



    .testimonial-card { width: 240px; }
    .float-cta { bottom: 12px; right: 12px; }
    .back-to-top { left: 12px; bottom: 20px; width: 40px; height: 40px; }
}
