/* ==========================================================================
   Malligai Clinic - Professional Custom CSS Stylesheet
   Color Palette:
   - Primary Navy:   #0E3A70
   - Accent Gold:    #C5A059
   - WhatsApp Green: #25D366
   - Call Blue:      #0284C7
   - Dark Slate:     #0F172A
   - Background:     #F8FAFC
   ========================================================================== */

:root {
    --primary: #0E3A70;
    --primary-dark: #0A2952;
    --accent-gold: #C5A059;
    --accent-gold-hover: #B08D46;
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --call-blue: #0284C7;
    --call-blue-hover: #0369A1;
    --bg-light: #F8FAFC;
    --text-dark: #0F172A;
    --text-muted: #475569;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 4px 12px rgba(14, 58, 112, 0.04);
    --shadow-md: 0 12px 30px rgba(14, 58, 112, 0.08);
    --shadow-lg: 0 20px 40px rgba(14, 58, 112, 0.12);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
    width: 100%;
}

body.loading {
    overflow: hidden !important;
}

/* --- Preloader / Loading Screen (Fixed for Full Mobile Viewport) --- */
.preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.preloader-logo-ring {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.preloader-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    animation: logoPulse 2s ease-in-out infinite;
}

.preloader-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(14, 58, 112, 0.06);
    border-top: 3px solid var(--accent-gold);
    border-right: 3px solid var(--primary);
    border-radius: 50%;
    animation: spinRing 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.preloader-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
}

.preloader-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-top: 0.2rem;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(0.96);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

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

/* --- Top Contact Bar --- */
.top-bar {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.top-info span i, .top-phones a i {
    color: var(--accent-gold);
    margin-right: 0.4rem;
}

.top-phones {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.top-phones a {
    transition: var(--transition);
    padding: 2px 0;
}

.top-phones a:hover {
    color: var(--accent-gold);
    transform: translateY(-1px);
}

/* --- Main Navigation Header --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    width: 100%;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background-color: var(--white);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.5rem;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

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

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

.brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--primary);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.4rem;
    min-height: 44px;
    min-width: 44px;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, rgba(14, 58, 112, 0.94), rgba(10, 41, 82, 0.88)),
                url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&w=1600&q=80') center/cover fixed;
    color: var(--white);
    padding: 7rem 0;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(197, 160, 89, 0.2);
    border: 1px solid var(--accent-gold);
    color: #FDE047;
    padding: 0.45rem 1.4rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.hero-title-prefix {
    display: inline;
}

.typewriter-wrapper {
    display: inline-block;
    white-space: nowrap;
    text-align: left;
}

#typewriter {
    color: var(--accent-gold);
}

.typewriter-cursor {
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 300;
    margin-left: 2px;
    animation: blinkCursor 0.8s infinite;
}

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

.hero p {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    opacity: 0.92;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    min-height: 48px;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white) !important;
    padding: 0.95rem 2.4rem;
    font-size: 1.1rem;
    border-radius: 30px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #22bf5b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.btn-call {
    background-color: var(--call-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.btn-call:hover {
    background-color: var(--call-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

/* --- Clinic Statistics / Trust Bar --- */
.clinic-stats {
    background-color: var(--white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-gold);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

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

/* --- Highlights --- */
.highlights {
    background-color: var(--bg-light);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.highlight-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.highlight-item .icon {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
}

.highlight-item h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.highlight-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- About Doctor Section --- */
.about {
    padding: 6rem 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: center;
}

.about-image-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.about-image-card:hover {
    box-shadow: var(--shadow-lg);
}

.doctor-img {
    width: 100%;
    max-width: 300px;
    height: 360px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(14, 58, 112, 0.12);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    display: block;
    margin: 0 auto 1.5rem;
    object-fit: cover;
}

.doctor-img:hover {
    transform: scale(1.04);
    box-shadow: 0 16px 35px rgba(14, 58, 112, 0.2);
    cursor: pointer;
}

.experience-badge {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 1.4rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.exp-title {
    font-weight: 700;
    color: var(--accent-gold);
}

.exp-sub {
    font-size: 0.85rem;
    opacity: 0.9;
}

.section-tag {
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.about-text h2 {
    color: var(--primary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.qualifications {
    color: var(--accent-gold);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.designation {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

.bio {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1.02rem;
    line-height: 1.7;
}

.specialties-list {
    list-style: none;
    margin-top: 1.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.specialties-list li {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.specialties-list li i {
    color: var(--accent-gold);
}

/* --- Services Section --- */
.services {
    background-color: var(--bg-light);
    padding: 6rem 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    color: var(--primary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.text-center {
    text-align: center;
}

.service-filters {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.2rem;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.service-card:hover::before {
    height: 6px;
}

.card-icon {
    width: 54px;
    height: 54px;
    background: rgba(197, 160, 89, 0.12);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.4rem;
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.4rem;
    line-height: 1.6;
}

.card-features {
    list-style: none;
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
}

.card-features li {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0.3rem 0;
}

.card-features li::before {
    content: '• ';
    color: var(--accent-gold);
    font-weight: bold;
    margin-right: 4px;
}

/* --- FAQ Section --- */
.faq {
    padding: 6rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(197, 160, 89, 0.5);
}

.faq-question {
    width: 100%;
    padding: 1.3rem 1.6rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
    min-height: 54px;
}

.faq-question i {
    transition: var(--transition);
    color: var(--accent-gold);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.6rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding: 0 1.6rem 1.4rem;
    max-height: 300px;
}

/* --- Contact & WhatsApp Booking --- */
.contact {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.contact-info {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 3rem;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.info-group {
    display: flex;
    gap: 1.2rem;
    margin-top: 2.2rem;
}

.info-group .icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-top: 0.2rem;
}

.info-group h4 {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.info-group p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

.info-group p a {
    transition: var(--transition);
}

.info-group p a:hover {
    color: var(--accent-gold);
}

.appointment-form-wrapper {
    padding: 4rem 3rem;
    scroll-margin-top: 90px;
}

.appointment-form-wrapper h3 {
    color: var(--primary);
    font-size: 1.9rem;
    margin-bottom: 0.4rem;
    font-weight: 800;
}

.form-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
}

/* --- WhatsApp Form Controls --- */
.whatsapp-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.form-group label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
}

.optional-text {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-light);
    resize: vertical;
}

.form-group input[type="date"] {
    color: var(--text-dark);
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(14, 58, 112, 0.1);
}

.btn-whatsapp-submit {
    background-color: #25D366;
    color: var(--white);
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 0.6rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-submit:hover {
    background-color: #22bf5b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* --- Direct Call Cards --- */
.direct-call-box {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.call-card {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.6rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition);
    text-decoration: none;
}

.call-card:hover {
    border-color: var(--primary);
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.wa-card:hover {
    border-color: var(--whatsapp-green) !important;
}

.wa-icon {
    background: rgba(37, 211, 102, 0.12) !important;
    color: var(--whatsapp-green) !important;
    font-size: 1.5rem !important;
}

.call-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(14, 58, 112, 0.08);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.call-card:hover .call-card-icon {
    background: var(--primary);
    color: var(--white);
}

.call-card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.call-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.call-card-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.call-card .arrow {
    color: var(--text-muted);
    transition: var(--transition);
}

.call-card:hover .arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* --- Large Map Section --- */
.map-section {
    padding: 6rem 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.map-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    margin-top: 2.5rem;
}

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

/* --- Footer --- */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-brand h3 {
    color: var(--white);
    letter-spacing: 1px;
    font-size: 1.4rem;
}

.footer-brand p {
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
}

.footer-doctor {
    margin-bottom: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.8rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ==========================================================================
   Cinematic Blur-to-Focus Scroll Animations & Staggered Cascades
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    filter: blur(12px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Staggered Grid Cascades for Service Cards */
.services-grid .service-card:nth-child(1) { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.25s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(7) { transition-delay: 0.35s; }
.services-grid .service-card:nth-child(8) { transition-delay: 0.4s; }
.services-grid .service-card:nth-child(9) { transition-delay: 0.45s; }

/* Optional Stagger Delays for General Elements */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- Responsive Media Queries --- */

@media (max-width: 992px) {
    .about-container, .contact-card {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem 1.5rem;
        box-shadow: var(--shadow-md);
        display: none;
        border-top: 1px solid var(--border-color);
        gap: 1.2rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .about, .services, .faq, .contact, .map-section {
        padding: 4.5rem 0;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
    }

    .top-phones {
        justify-content: center;
    }

    .hero {
        padding: 5rem 0;
    }

    .hero h1 {
        font-size: clamp(2rem, 5vw, 2.4rem);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        line-height: 1.3;
        text-align: center;
    }

    .hero-title-prefix {
        display: block;
        margin-bottom: 0.3rem;
        text-align: center;
    }

    .typewriter-wrapper {
        display: inline-block;
        text-align: center !important;
        min-height: 1.5em;
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .appointment-form-wrapper, .contact-info {
        padding: 2.5rem 1.8rem;
    }

    .specialties-list {
        grid-template-columns: 1fr;
    }

    .map-wrapper iframe {
        height: 380px;
    }
}

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

    .brand-name {
        font-size: 1.2rem;
    }

    .brand-logo {
        height: 42px;
    }

    .service-card {
        padding: 1.8rem 1.5rem;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
    }

    .map-wrapper iframe {
        height: 320px;
    }
}
