/* 
   SumitZ Clinic Official Brand Healthcare Design System
   Brand Guidelines: Deep Navy (#0A2540), SumitZ Cyan-Blue (#0085C8), Accent Red (#E51937)
*/

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

:root {
    /* Brand Color Palette (Extracted from Brand Poster) */
    --primary-navy: #0A2540;
    --primary-navy-hover: #071A2E;
    --brand-blue: #0085C8;
    --brand-blue-hover: #006CA3;
    --brand-blue-light: #EBF4FB;
    --brand-blue-soft: #D4E5F7;
    
    /* Accent Red (Matching logo cross & highlight text "Pain") */
    --accent-red: #E51937;
    --accent-red-hover: #C40E29;
    --accent-red-light: #FDE8EA;
    
    /* Neutral & Background Surfaces */
    --bg-surface: #F4F8FC;
    --surface-white: #FFFFFF;
    --mist-blue: #EBF4FB;
    
    /* Typography Colors */
    --heading-navy: #0A2540;
    --body-text: #334155;
    --muted-text: #64748B;
    --border-color: #D4E5F7;
    --border-subtle: #E2E8F0;
    
    /* Functional Accents */
    --success: #16A34A;
    --error: #E51937;
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(10, 37, 64, 0.04);
    --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 16px 40px rgba(10, 37, 64, 0.12);
    --shadow-hover: 0 20px 48px rgba(0, 133, 200, 0.18);
    
    /* Border Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    /* Fonts */
    --font-heading: 'Outfit', 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-surface);
    color: var(--body-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-navy);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(34px, 4.5vw, 56px); }
h2 { font-size: clamp(26px, 3.2vw, 42px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: 20px; }
h5 { font-size: 17px; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: var(--brand-blue-hover);
}

ul { list-style: none; }

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

/* Accessibility Skip Link & Focus Rings */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--primary-navy);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 600;
    transition: top 0.2s ease;
}
.skip-to-content:focus {
    top: 20px;
}

:focus-visible {
    outline: 3px solid var(--brand-blue);
    outline-offset: 2px;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-wide {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
}
.section-spacing {
    padding: 96px 0;
}

/* Prevent horizontal overflow globally */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

@media (max-width: 991px) {
    .section-spacing { padding: 72px 0; }
}
@media (max-width: 576px) {
    .section-spacing { padding: 56px 0; }
    .container { padding: 0 16px; }
}

/* --- Top Utility Bar --- */
.top-bar {
    background-color: var(--primary-navy);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13.5px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.top-bar-item i {
    width: 15px;
    height: 15px;
    color: var(--brand-blue);
}
.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.top-bar-link {
    color: #fff;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.top-bar-link:hover {
    color: var(--brand-blue-soft);
}

/* Mobile: collapse top-bar to compact 2-column grid */
@media (max-width: 600px) {
    .top-bar-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 12px;
    }
    .top-bar-info {
        grid-column: 1 / -1;
        gap: 10px;
    }
    .top-bar-actions {
        grid-column: 1 / -1;
        gap: 12px;
    }
    .top-bar-item span,
    .top-bar-link {
        font-size: 12px;
    }
}

/* --- Header & Navigation --- */
.header {
    position: sticky;
    top: 0;
    background-color: var(--surface-white);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}
.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-blue);
    line-height: 1.1;
}
.logo-tagline {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-item {
    font-size: 15px;
    font-weight: 600;
    color: var(--heading-navy);
    padding: 8px 0;
    position: relative;
}
.nav-item:hover, .nav-item.active {
    color: var(--brand-blue);
}
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--brand-blue);
    border-radius: var(--radius-pill);
}

/* Dropdowns & Multi-Column Mega Menus */
.nav-dropdown-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background-color: var(--surface-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(7, 26, 46, 0.16);
    border: 1px solid var(--border-color);
    padding: 12px 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
    max-height: calc(85vh - 70px);
    overflow-y: auto;
}

/* Custom Scrollbar for Dropdown Menu */
.dropdown-menu::-webkit-scrollbar {
    width: 5px;
}
.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.nav-dropdown-item:hover .dropdown-menu,
.nav-dropdown-item:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--heading-navy);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu li a:hover {
    background-color: var(--brand-blue-light);
    color: var(--brand-blue);
    transform: translateX(3px);
}

/* Multi-Column Mega Menu Layouts */
.dropdown-menu.mega-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(210px, 1fr));
    gap: 2px 10px;
    width: max-content;
    min-width: 460px;
    max-width: 720px;
    left: -20px;
    padding: 16px;
}

.dropdown-menu.mega-menu-wide {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    min-width: 680px;
    max-width: 880px;
    left: -120px;
}

/* Responsive adjustments for laptop screens */
@media (min-width: 992px) and (max-width: 1200px) {
    .dropdown-menu.mega-menu {
        grid-template-columns: repeat(2, minmax(190px, 1fr));
        min-width: 410px;
        left: -30px;
    }
    .dropdown-menu.mega-menu-wide {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
        min-width: 460px;
        left: -80px;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Navigation Search Trigger Button */
.nav-search-trigger-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--heading-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-search-trigger-btn:hover {
    background-color: var(--brand-blue-light);
    color: var(--brand-blue);
    border-color: var(--brand-blue);
    transform: scale(1.05);
}

/* Fullscreen Search Modal Overlay */
.search-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 26, 46, 0.65);
    backdrop-filter: blur(6px);
    z-index: 3000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    animation: searchModalFadeIn 0.2s ease-out;
}

@keyframes searchModalFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-modal-container {
    width: 680px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(7, 26, 46, 0.28);
    border: 1px solid var(--border-color);
    overflow: hidden;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.search-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}

.search-modal-input-wrap {
    display: flex;
    align-items: center;
    flex-grow: 1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-modal-input-wrap:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 133, 200, 0.15);
    background: #ffffff;
}

.search-modal-icon {
    width: 20px;
    height: 20px;
    color: var(--brand-blue);
    margin-right: 12px;
    flex-shrink: 0;
}

.search-modal-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    width: 100%;
    color: var(--heading-navy);
    font-family: inherit;
}

.search-modal-clear-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--muted-text);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.search-modal-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--muted-text);
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.search-modal-close-btn:hover {
    color: var(--accent-red);
}

.search-modal-body {
    padding: 16px 20px 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.search-tag-btn {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--heading-navy);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-tag-btn:hover {
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.nav-search-status {
    padding: 16px;
    font-size: 13.5px;
    color: var(--muted-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--brand-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.nav-search-results-list {
    display: flex;
    flex-direction: column;
    padding: 6px;
}

.nav-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.nav-search-result-item:hover {
    background-color: var(--brand-blue-light);
}

.nav-search-thumb {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background-color: #e2e8f0;
}

.nav-search-details {
    flex-grow: 1;
    min-width: 0;
}

.nav-search-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.nav-search-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-search-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.nav-search-sub {
    font-size: 12.5px;
    color: var(--muted-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-search-empty {
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--muted-text);
}

/* Mobile Navigation Drawer */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--primary-navy);
}
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--surface-white);
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-drawer.active { right: 0; }
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 37, 64, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}
.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.mobile-drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--heading-navy);
    cursor: pointer;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    min-height: 48px;
    text-align: center;
    white-space: nowrap;
}
.btn-primary {
    background-color: var(--primary-navy);
    color: var(--surface-white);
}
.btn-primary:hover {
    background-color: var(--primary-navy-hover);
    color: var(--surface-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.btn-secondary {
    background-color: transparent;
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}
.btn-secondary:hover {
    background-color: var(--brand-blue);
    color: var(--surface-white);
    transform: translateY(-2px);
}
.btn-accent {
    background-color: var(--accent-red);
    color: #fff;
}
.btn-accent:hover {
    background-color: var(--accent-red-hover);
    color: #fff;
}
.btn-sm {
    padding: 9px 18px;
    font-size: 14px;
    min-height: 40px;
}
.btn-lg {
    padding: 16px 32px;
    font-size: 16.5px;
    min-height: 54px;
    border-radius: var(--radius-lg);
}
.btn-full { width: 100%; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-teal, .badge-blue {
    background-color: var(--brand-blue-light);
    color: var(--brand-blue);
    border: 1px solid var(--brand-blue-soft);
}
.badge-coral, .badge-red {
    background-color: var(--accent-red-light);
    color: var(--accent-red);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--brand-blue-light) 50%, var(--mist-blue) 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}
.hero-eyebrow { margin-bottom: 16px; }
.hero-title {
    margin-bottom: 20px;
    color: var(--heading-navy);
}
.hero-title .highlight-red {
    color: var(--accent-red);
}
.hero-subtitle {
    font-size: 18px;
    color: var(--body-text);
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 620px;
}
.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero-trust-row {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}
.trust-item { display: flex; flex-direction: column; }
.trust-number {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-blue);
    line-height: 1;
}
.trust-label {
    font-size: 13px;
    color: var(--muted-text);
    margin-top: 4px;
    font-weight: 500;
}

.hero-visual { position: relative; }
.hero-img-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    border: 4px solid var(--surface-white);
}
.hero-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-floating-card {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background-color: var(--surface-white);
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
}
.floating-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    background-color: var(--brand-blue-light);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Quick Care Symptom Finder --- */
.symptom-finder-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.symptom-card-wrapper {
    background-color: var(--surface-white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}
.symptom-header {
    text-align: center;
    margin-bottom: 24px;
}
.symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
}
.symptom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 12px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    color: var(--heading-navy);
    font-size: 14px;
    font-weight: 600;
}
.symptom-item:hover {
    background-color: var(--brand-blue-light);
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}
.symptom-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    color: var(--brand-blue);
}

/* --- Cards (Services, Treatments, Doctors, Blogs) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.medical-card {
    background-color: var(--surface-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.medical-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-blue-soft);
}
.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--brand-blue-light);
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.medical-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}
.card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-category {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.card-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--heading-navy);
}
.card-text {
    font-size: 15px;
    color: var(--body-text);
    margin-bottom: 20px;
    line-height: 1.65;
    flex-grow: 1;
}
.card-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--brand-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.card-link:hover {
    color: var(--brand-blue-hover);
    gap: 10px;
}

/* Specialist Portrait Card */
.doctor-card {
    background-color: var(--surface-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-smooth);
    text-align: center;
}
.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.doctor-img-container {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: var(--brand-blue-light);
}
.doctor-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.doctor-card-body { padding: 24px; }
.doctor-name {
    font-size: 22px;
    margin-bottom: 6px;
}
.doctor-designation {
    font-size: 14px;
    color: var(--brand-blue);
    font-weight: 600;
    margin-bottom: 16px;
}

/* Forms */
.form-card {
    background-color: var(--surface-white);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-navy);
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    height: 48px;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--heading-navy);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}
.form-control:focus {
    background-color: var(--surface-white);
    border-color: var(--brand-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 133, 200, 0.15);
}
textarea.form-control {
    height: auto;
    padding: 14px 16px;
}

/* Process Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.process-step {
    background-color: var(--surface-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1px solid var(--border-color);
}
.step-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--brand-blue-soft);
    margin-bottom: 12px;
    line-height: 1;
}

/* Testimonial Cards */
.testimonial-card {
    background-color: var(--surface-white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.testimonial-quote {
    font-size: 16px;
    color: var(--body-text);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-pill);
    background-color: var(--brand-blue-light);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Location Card */
.location-card {
    background-color: var(--surface-white);
    border-radius: var(--radius-xl);
    padding: 36px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}
.location-title {
    font-size: 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--heading-navy);
}

/* Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.accordion-item {
    background-color: var(--surface-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.accordion-body {
    padding: 0 24px 24px;
    font-size: 15.5px;
    color: var(--body-text);
    display: none;
}
.accordion-item.active .accordion-body { display: block; }

/* --- Global Footer --- */
.footer {
    background-color: var(--primary-navy);
    color: rgba(255, 255, 255, 0.88);
    padding: 80px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}
.footer-logo { margin-bottom: 20px; }
.footer-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 24px;
}
.footer-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 24px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14.5px;
}
.footer-links a:hover {
    color: var(--brand-blue-soft);
    padding-left: 4px;
}
.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

/* --- Mobile Sticky Action Bar --- */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--surface-white);
    box-shadow: 0 -4px 20px rgba(10, 37, 64, 0.15);
    z-index: 1500;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}
.mobile-sticky-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .nav-links { display: none; }
    .header-actions { display: none; }
    .mobile-nav-toggle { display: block; }
    .hero-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .mobile-sticky-bar { display: block; }
    body { padding-bottom: 70px; }
}

@media (max-width: 576px) {
    .process-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta-group .btn { width: 100%; }
}

/* --- Google Guidelines Performance & Core Web Vitals Optimizations --- */
.process-section,
.testimonials-section,
.blog-section,
.faq-section,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

/* Hardware-Accelerated Animations & Smooth Rendering */
.hero-visual, .card, .btn, .treatment-card, .specialist-card, .blog-card {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Image Aspect Ratio & Layout Shift (CLS) Prevention */
img {
    height: auto;
}

/* Sticky Floating Action Stack (WhatsApp, Live Chat, Back to Top) */
.floating-actions-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.floating-action-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.2s ease;
    box-shadow: 0 8px 24px rgba(7, 26, 46, 0.2);
}

.floating-action-btn:hover {
    transform: scale(1.08);
}

.floating-action-btn.whatsapp-btn {
    background-color: #25D366;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}
.floating-action-btn.whatsapp-btn:hover {
    background-color: #20ba5a;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.floating-action-btn.chat-btn {
    background-color: var(--brand-blue);
    box-shadow: 0 8px 24px rgba(0, 133, 200, 0.45);
    position: relative;
}
.floating-action-btn.chat-btn:hover {
    background-color: #006da8;
    box-shadow: 0 12px 30px rgba(0, 133, 200, 0.6);
}

.floating-action-btn.top-btn {
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--heading-navy);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.floating-action-btn.top-btn:hover {
    background-color: var(--brand-blue-light);
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

#chat-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Chat Widget Box Positioning */
.chat-widget-box {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 480px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(7, 26, 46, 0.25);
    border: 1px solid var(--border-color);
    z-index: 2600;
    flex-direction: column;
    overflow: hidden;
    animation: chatModalSlideIn 0.25s ease-out;
}

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

/* Back-to-top: hidden by default, shown via JS on scroll */
#back-to-top-btn {
    display: none;
}

@media (max-width: 991px) {
    /* On mobile: float the search trigger beside the hamburger */
    .header-actions {
        display: flex !important;
    }
    /* Hide only the Book Appointment button on mobile (keep search icon) */
    .header-actions .btn {
        display: none;
    }
    .nav-search-trigger-btn {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    /* Lift floating stack above the mobile sticky action bar (~70px) */
    .floating-actions-stack {
        bottom: 90px;
        right: 16px;
        gap: 10px;
    }
    .floating-action-btn {
        width: 48px;
        height: 48px;
    }
    .floating-action-btn.top-btn {
        width: 40px;
        height: 40px;
    }
    /* Chat widget lifts above the floating stack */
    .chat-widget-box {
        bottom: 160px;
        right: 16px;
        width: calc(100vw - 32px);
        height: 420px;
    }
}

/* ===================================================
   DETAIL PAGES — MOBILE RESPONSIVE GRID FIXES
   Targets: Treatment, Service, Specialist show pages
   All use inline `display: grid; grid-template-columns: 1fr 340px`
   or `grid-template-columns: 240px 1fr` — must stack on mobile.
=================================================== */

/* Utility class for 2-col detail page grids */
.detail-page-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}
.specialist-hero-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: center;
}

@media (max-width: 860px) {
    /* ── Treatment & Service: stack content + sidebar ── */
    .detail-page-grid,
    [style*="grid-template-columns: 1fr 340px"] {
        display: block !important;
    }
    [style*="grid-template-columns: 1fr 340px"] > div:last-child {
        position: static !important;
        margin-top: 32px;
    }

    /* ── Specialist hero: photo above name ── */
    .specialist-hero-grid,
    [style*="grid-template-columns: 240px 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }
    [style*="grid-template-columns: 240px 1fr"] > div:first-child,
    [style*="width: 240px; height: 280px"] {
        width: 100% !important;
        max-width: 280px !important;
        height: 240px !important;
    }

    /* ── Sidebar: full-width on mobile ── */
    [style*="position: sticky; top: 100px"] {
        position: static !important;
        width: 100% !important;
    }

    /* ── Accordion: larger tap targets ── */
    .accordion-header {
        padding: 16px 18px !important;
        font-size: 15px !important;
    }
    .accordion-body {
        padding: 0 18px 16px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 600px) {
    /* ── Hero breadcrumb: wrap properly ── */
    [style*="display: flex; gap: 8px; align-items: center"] {
        flex-wrap: wrap;
    }

    /* ── h1 on detail pages ── */
    h1 {
        font-size: clamp(26px, 8vw, 38px) !important;
    }

    /* ── Form cards: full-bleed ── */
    .form-card {
        border-radius: 12px;
        padding: 20px 16px;
    }

    /* ── Booking sidebar buttons: full width ── */
    .form-card .btn,
    .location-card .btn {
        width: 100%;
        justify-content: center;
    }

    /* ── Specialist hero photo: constrain ── */
    [style*="width: 240px"] {
        width: 100% !important;
        max-width: 220px !important;
    }
}

/* ===================================================
   GOOGLE MOBILE SEO: Touch target minimums (48px)
=================================================== */
@media (max-width: 860px) {
    .btn, button, a.btn, input[type="submit"] {
        min-height: 48px;
    }
    .form-control {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    select.form-control {
        font-size: 16px;
    }

    /* ── Floating buttons: always 52px on mobile ── */
    .floating-action-btn {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px;
        min-height: 52px;
    }
    .floating-action-btn.top-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        min-height: 44px;
    }
}

/* ===================================================
   GOOGLE MOBILE SEO: Font size legibility
=================================================== */
@media (max-width: 600px) {
    body {
        font-size: 15px;
        line-height: 1.7;
    }
    p {
        font-size: 15px;
    }
    .nav-item {
        font-size: 15px;
    }
    .top-bar {
        font-size: 12px;
    }
}

