/* 
==================================================
DESIGN SYSTEM: VISHAKHA DENTAL CLINIC
Developed with premium healthcare aesthetics
Fonts: Plus Jakarta Sans (Headings) & Inter (Body)
==================================================
*/

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

:root {
    /* Color Palette */
    --primary: #0e7490;         /* Soft Medical Cyan/Teal (700) */
    --primary-dark: #155e75;    /* Deep Medical Teal (800) */
    --primary-light: #ecfeff;   /* Soothing Sky Cyan Background (50) */
    --primary-medium: #cffafe;  /* Soft border blue (100) */
    
    --accent: #10b981;          /* Fresh Mint Green (Hygiene/Healing) */
    --accent-dark: #059669;     /* Deep Green for hover actions */
    --accent-light: #ecfdf5;    /* Ultra light green tint */
    
    --text-dark: #0f172a;       /* Elegant Slate Dark (900) */
    --text-muted: #475569;      /* Readable Slate Neutral (600) */
    --text-light: #94a3b8;      /* Lighter details (400) */
    
    --bg-white: #ffffff;
    --bg-light: #f8fafc;        /* Slate Light Gray Background */
    --bg-overlay: rgba(15, 23, 42, 0.6); /* Backdrop blur dark filter */
    
    --emergency-red: #ea580c;   /* Dental Emergency Alert Amber/Red */
    --emergency-light: #fffaf0;
    
    /* Typography Scales */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(14, 116, 144, 0.08), 0 2px 4px -2px rgba(14, 116, 144, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(14, 116, 144, 0.1), 0 4px 6px -4px rgba(14, 116, 144, 0.1);
    --shadow-premium: 0 20px 25px -5px rgba(14, 116, 144, 0.15), 0 8px 10px -6px rgba(14, 116, 144, 0.1);
    --shadow-green: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
    
    /* Borders & Spacing */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --container-width: 1200px;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-muted);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

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

/* 
==================================================
2. UTILITIES & CONTAINER
==================================================
*/
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-bg {
    background-color: var(--primary-light);
}

.section-bg-dark {
    background-color: var(--bg-light);
}

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

.section-title-wrapper {
    max-width: 680px;
    margin: 0 auto 3.5rem auto;
}

.section-subtitle {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    margin-bottom: 1rem;
}

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

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-medium);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* 
==================================================
3. PREMIUM BUTTONS & CTA
==================================================
*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary);
    border: 1.5px solid var(--primary-medium);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

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

.btn-accent:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -3px rgba(16, 185, 129, 0.35);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 
==================================================
4. NAVIGATION HEADER
==================================================
*/
.top-bar {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-item a {
    color: var(--bg-white);
}

.top-bar-item a:hover {
    color: var(--accent-light);
}

.top-bar-item svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--primary-medium);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.header.sticky {
    box-shadow: var(--shadow-lg);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.75rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    box-shadow: var(--shadow-sm);
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.logo-text p {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* Optimized from 2rem to prevent wrapping on laptop viewports */
    list-style: none;
    flex-shrink: 0;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
    white-space: nowrap; /* Enforce single line to prevent vertical stacking and misalignment */
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

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

.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Nav Toggles */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 20px;
    justify-content: space-between;
    cursor: pointer;
    z-index: 110;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

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

/* 
==================================================
5. HERO SECTION
==================================================
*/
.hero {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    padding: 6rem 0 7rem 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-medium);
    border-radius: var(--radius-full);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    fill: var(--accent);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(16, 185, 129, 0.15);
    z-index: -1;
}

.hero-desc {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust-indicators {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    border-top: 1px solid var(--primary-medium);
    padding-top: 2rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-num {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.trust-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-image-wrapper {
    position: relative;
}

.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    z-index: 2;
    position: relative;
    border: 6px solid var(--bg-white);
}

.hero-img-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px dashed var(--primary-medium);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.hero-rating-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background-color: var(--bg-white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 3;
    border: 1px solid var(--primary-medium);
}

.rating-stars {
    color: #f59e0b; /* Gold Stars */
    font-size: 1.15rem;
}

.rating-info h4 {
    font-size: 1rem;
    font-weight: 800;
}

.rating-info p {
    font-size: 0.75rem;
}

/* 
==================================================
6. STATS & WHY CHOOSE US
==================================================
*/
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-white);
    border: 1px solid var(--primary-medium);
    border-radius: var(--radius-md);
    padding: 2.25rem 1.75rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

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

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

.feature-icon {
    width: 52px;
    height: 52px;
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    background-color: var(--accent-light);
    color: var(--accent);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.feature-desc {
    font-size: 0.95rem;
}

/* 
==================================================
7. SERVICES PREVIEW & SERVICES PAGE
==================================================
*/
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); /* Prevent grid overflow on small viewports like iPhone SE */
    gap: 2.5rem;
}

.service-card {
    background-color: var(--bg-white);
    border: 1px solid var(--primary-medium);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.service-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background-color: var(--accent-light);
    color: var(--accent);
    transform: scale(1.05);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.service-head h3 {
    font-size: 1.35rem;
    line-height: 1.2;
}

.service-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-benefits {
    list-style: none;
    margin-bottom: 2rem;
    border-top: 1px solid var(--bg-light);
    padding-top: 1rem;
}

.service-benefits li {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.service-benefits li svg {
    width: 14px;
    height: 14px;
    fill: var(--accent);
    flex-shrink: 0;
}

.service-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.service-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.service-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: var(--transition-smooth);
}

.service-card:hover .service-link svg {
    transform: translateX(3px);
}

/* 
==================================================
8. MEET THE DOCTOR SECTION
==================================================
*/
.doctor-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4.5rem;
    align-items: center;
}

.doctor-img-wrapper {
    position: relative;
}

.doctor-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    border: 8px solid var(--bg-white);
}

.doctor-experience-badge {
    position: absolute;
    top: 30px;
    right: -20px;
    background-color: var(--accent);
    color: var(--bg-white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

.doctor-experience-badge svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.doctor-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.doctor-credentials {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
}

.doctor-bio {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.doctor-points {
    list-style: none;
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.doctor-point {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.doctor-point svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

/* 
==================================================
9. TECHNOLOGY & STANDARDS
==================================================
*/
.tech-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    gap: 1.25rem;
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--primary-medium);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.tech-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(14, 116, 144, 0.25);
    transform: translateX(5px);
}

.tech-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tech-icon-box svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.tech-text h4 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.tech-text p {
    font-size: 0.9rem;
}

/* 
==================================================
10. GALLERY SECTION
==================================================
*/
.gallery-filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    background-color: var(--bg-light);
    border: 1px solid var(--primary-medium);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); /* Prevent gallery column overflows on narrow mobile screens */
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4 / 3;
    cursor: pointer;
    border: 3px solid var(--bg-white);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(14, 116, 144, 0.9), rgba(15, 23, 42, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-title {
    color: var(--bg-white);
    font-size: 1.15rem;
    font-weight: 700;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay-title {
    transform: translateY(0);
}

.gallery-overlay-cat {
    color: var(--accent-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    max-width: 85%;
    max-height: 80%;
    position: relative;
    border: 4px solid var(--bg-white);
    border-radius: var(--radius-sm);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: var(--bg-white);
    font-size: 2.25rem;
    cursor: pointer;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    color: var(--bg-white);
    text-align: center;
    font-family: var(--font-heading);
}

/* 
==================================================
11. PATIENT TESTIMONIALS SLIDER
==================================================
*/
.reviews-slider-container {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.reviews-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-slide {
    min-width: 100%;
    padding: 0 1.5rem;
}

.review-card-full {
    background-color: var(--bg-white);
    border: 1px solid var(--primary-medium);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.review-quote-icon {
    position: absolute;
    top: 30px;
    left: 30px;
    color: var(--primary-light);
    font-size: 5rem;
    font-family: Georgia, serif;
    line-height: 0.1;
    user-select: none;
}

.review-stars {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.review-text {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-style: italic;
    position: relative;
    z-index: 2;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.author-info h4 {
    font-size: 1.05rem;
}

.author-info p {
    font-size: 0.8rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--primary-medium);
    background-color: var(--bg-white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.slider-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 
==================================================
12. EMERGENCY CALL BANNER
==================================================
*/
.emergency-banner {
    background: linear-gradient(135deg, var(--emergency-red) 0%, #c2410c 100%);
    color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.emergency-banner-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.emergency-text h3 {
    font-size: 2rem;
    color: var(--bg-white);
    margin-bottom: 0.75rem;
}

.emergency-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.emergency-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.emergency-actions .btn {
    box-shadow: var(--shadow-sm);
}

.emergency-bg-pattern {
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 250px;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    z-index: 1;
}

/* 
==================================================
13. FAQ ACCORDION
==================================================
*/
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--primary-medium);
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(14, 116, 144, 0.25);
    box-shadow: var(--shadow-sm);
}

.faq-header {
    padding: 1.25rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--bg-white);
}

.faq-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.faq-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.faq-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, opacity 0.25s ease-out, padding 0.35s ease-out;
}

/* Open State */
.faq-item.active {
    border-color: var(--primary);
}

.faq-item.active .faq-header {
    background-color: var(--primary-light);
}

.faq-item.active .faq-header h3 {
    color: var(--primary-dark);
}

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

.faq-item.active .faq-content {
    max-height: 250px;
    opacity: 1;
    padding: 1.25rem 1.75rem 1.75rem 1.75rem;
    border-top: 1px solid var(--primary-medium);
}

/* 
==================================================
14. INTERACTIVE BOOKING & CONTACT FORM
==================================================
*/
.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.contact-card {
    display: flex;
    gap: 1.25rem;
}

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

.contact-card-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-card-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-card-text p, .contact-card-text a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-card-text a:hover {
    color: var(--primary);
}

.timing-table {
    width: 100%;
    font-size: 0.9rem;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.timing-table td {
    padding: 0.4rem 0;
    color: var(--text-muted);
}

.timing-table tr {
    border-bottom: 1px solid var(--bg-light);
}

.timing-table td:nth-child(2) {
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
}

/* Map Placeholder Panel */
.map-panel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--bg-white);
    aspect-ratio: 16 / 9;
    background-color: var(--bg-light);
    position: relative;
}

.map-panel iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Premium Form Styling */
.form-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-medium);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.form-desc {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

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

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-input, .form-select, .form-textarea {
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--primary-medium);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.1);
}

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

/* 
==================================================
15. APPOINTMENT POPUP MODAL
==================================================
*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-overlay);
    backdrop-filter: blur(6px);
    z-index: 150;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-container {
    width: 90%;
    max-width: 650px;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid var(--primary-medium);
    position: relative;
}

.modal-header {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--bg-white);
    font-size: 1.35rem;
}

.modal-close {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1;
}

.modal-close:hover {
    color: var(--bg-white);
}

.modal-body {
    padding: 2.25rem 2rem;
    max-height: 80vh;
    overflow-y: auto;
}

/* Success Overlay */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-overlay);
    backdrop-filter: blur(6px);
    z-index: 160;
    display: none;
    align-items: center;
    justify-content: center;
}

.success-container {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--primary-medium);
}

.success-icon {
    width: 72px;
    height: 72px;
    background-color: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem auto;
    box-shadow: var(--shadow-sm);
}

.success-icon svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
}

.success-container h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.success-container p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* 
==================================================
16. FIXED UTILITIES (WhatsApp, Back To Top, Mobile Nav Dock)
==================================================
*/
.floating-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 90;
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    color: var(--bg-white);
}

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

.btn-whatsapp {
    background-color: #25d366; /* WhatsApp Green */
}

.btn-whatsapp:hover {
    background-color: #128c7e;
}

.btn-whatsapp svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.btn-scrolltop {
    background-color: var(--primary);
    opacity: 0;
    pointer-events: none;
}

.btn-scrolltop.show {
    opacity: 1;
    pointer-events: auto;
}

.btn-scrolltop:hover {
    background-color: var(--primary-dark);
}

.btn-scrolltop svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Mobile Sticky Dock - Screen <= 767px */
.mobile-sticky-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    border-top: 1px solid var(--primary-medium);
    box-shadow: 0 -4px 15px rgba(15, 23, 42, 0.08);
    display: none;
    grid-template-columns: 1fr 1fr 1fr;
    z-index: 100;
    padding: 0.5rem 0.25rem;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
}

.dock-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.dock-item.dock-whatsapp {
    color: #128c7e;
}

.dock-item.dock-call {
    color: var(--primary);
}

.dock-item.dock-book {
    background-color: var(--accent);
    color: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.5rem;
    text-shadow: var(--shadow-sm);
}

.dock-item.dock-book:hover {
    background-color: var(--accent-dark);
}

/* Adjust layout space so floating widget doesn't block dock on mobile */
@media (max-width: 767px) {
    .floating-widget-container {
        bottom: 80px;
        right: 15px;
    }
    .float-btn {
        width: 48px;
        height: 48px;
    }
    body {
        padding-bottom: 4.5rem; /* Dock clearance */
    }
}

/* 
==================================================
17. FOOTER SECTION
==================================================
*/
.footer {
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr 0.9fr 1fr;
    gap: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4rem;
    margin-bottom: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-medium) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.footer-logo h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--bg-white);
}

.footer-desc {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-rating-stars {
    color: #f59e0b;
    font-size: 0.9rem;
}

.footer-rating-text {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.footer-col h3 {
    color: var(--bg-white);
    font-size: 1.15rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-links a svg {
    width: 8px;
    height: 8px;
    fill: currentColor;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--bg-white);
    transform: translateX(4px);
}

.footer-links a:hover svg {
    opacity: 1;
    fill: var(--primary);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-contact-item a {
    color: var(--text-light);
}

.footer-contact-item a:hover {
    color: var(--bg-white);
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    fill: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-timing-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-timing-row span:nth-child(2) {
    font-weight: 600;
    color: var(--bg-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
}

.footer-legal-links a {
    color: var(--text-light);
}

.footer-legal-links a:hover {
    color: var(--bg-white);
}

/* 
==================================================
18. RESPONSIVE BREAKPOINTS
==================================================
*/
@media (max-width: 1199px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-title { font-size: 3rem; }
    .nav-links {
        gap: 0.9rem; /* Further scale down gaps on smaller laptop screens to prevent wrapping */
    }
    .nav-links a {
        font-size: 0.9rem;
    }
    .header-cta {
        gap: 0.75rem;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-trust-indicators {
        justify-content: center;
    }
    .hero-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    .hero-rating-badge {
        left: -15px;
    }
    .doctor-layout, .tech-layout, .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .doctor-img-wrapper {
        max-width: 420px;
        margin: 0 auto;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none; /* Hide top-bar on mobile */
    }
    .hero-rating-badge {
        left: 10px !important;
        bottom: 10px !important;
        padding: 0.75rem 1.25rem !important;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 4.75rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 4.75rem);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2rem;
        transition: var(--transition-smooth);
        z-index: 100;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    }
    .nav-links.open {
        left: 0;
    }
    .header-cta .btn {
        display: none; /* Hide book btn in header, handled by sticky nav dock */
    }
    .mobile-sticky-dock {
        display: grid;
    }
    .section {
        padding: 4rem 0;
    }
    .hero-trust-indicators {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding-top: 1.5rem;
        max-width: 100%;
        border-top: 1px solid var(--primary-medium);
    }
    .trust-item {
        align-items: center;
        text-align: center;
    }
    /* Stack timing table vertically on all mobile/tablet viewports to prevent horizontal overflow */
    .timing-table tr {
        display: flex;
        flex-direction: column;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--bg-light);
    }
    .timing-table td {
        padding: 0.15rem 0;
        text-align: left !important;
        width: 100%;
        box-sizing: border-box;
    }
    .timing-table td:nth-child(2) {
        text-align: left !important;
        margin-top: 0.15rem;
        color: var(--primary) !important;
    }
    /* Set hero description scaling and max-width bounds to prevent layout shifts/squeezes on mobile/tablet */
    .hero-desc {
        font-size: 1rem !important;
        margin-bottom: 1.75rem !important;
        max-width: 550px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        line-height: 1.6 !important;
    }
    .form-card {
        padding: 2.25rem 1.5rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .review-card-full {
        padding: 2.5rem 1.5rem;
    }
    .review-quote-icon {
        font-size: 3.5rem;
        top: 15px;
        left: 15px;
    }
    .emergency-banner-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.75rem;
    }
    .emergency-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.15rem; }
    h2 { font-size: 1.75rem; }
    .hero-title { font-size: 1.85rem; } /* Slightly scaled down to prevent text wraps and shifts on load */
    .hero-desc { font-size: 1rem; margin-bottom: 1.75rem; }
    .hero-rating-badge {
        bottom: 10px;
        left: 10px;
        padding: 0.5rem 1rem;
    }
    .doctor-experience-badge {
        right: -10px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Restrict html, body, container and layout widths to prevent horizontal scroll */
    html {
        overflow-x: hidden;
    }
    body {
        overflow-x: hidden;
        width: 100%;
    }
    .container {
        padding: 0 1rem;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .contact-card {
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .form-card {
        padding: 2rem 1.25rem;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Custom interactive map links */
.top-bar-map-link:hover {
    color: var(--accent) !important;
}
.footer-map-link:hover {
    color: var(--accent) !important;
}
.card-map-link {
    transition: var(--transition-smooth);
}
.card-map-link:hover {
    color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
}

