/* ==========================================================================
   DREMORA HEALTHCARE - Premium Design System (Fully Responsive)
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    /* Color Palette */
    --primary: #0EA5E9;
    --primary-dark: #0284C7;
    --primary-light: #E0F2FE;
    --accent: #22C55E;
    --accent-dark: #16A34A;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    
    /* Text Colors */
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    
    /* Utility Colors */
    --danger: #EF4444;
    --warning: #F59E0B;
    --success: #10B981;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Fluid Typography via clamp() */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --fs-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --fs-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    --fs-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
    
    /* Fluid Spacing */
    --spacing-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
    --spacing-sm: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
    --spacing-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --spacing-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --spacing-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --spacing-2xl: clamp(3rem, 2rem + 4vw, 6rem);
    
    /* Shadows - Premium Soft Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-pill: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base size for rem calculation */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-main);
}

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

ul {
    list-style: none;
}

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

input, button, textarea, select {
    font: inherit;
    font-size: 16px; /* Prevents iOS Safari Zoom */
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-2xl) 0;
}

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

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

.mb-4 {
    margin-bottom: var(--spacing-md);
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: var(--fs-sm);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    display: inline-block;
}

.section-title {
    font-size: var(--fs-3xl);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    border-radius: var(--radius-pill);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    min-height: 44px; /* Accessible Touch Target */
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--fs-base);
    min-height: 52px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
    color: white;
    outline: none;
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary);
    color: white;
    outline: none;
}

.btn-outline-danger {
    background-color: transparent;
    border-color: var(--danger);
    color: var(--danger);
}

.btn-outline-danger:hover, .btn-outline-danger:focus {
    background-color: var(--danger);
    color: white;
    outline: none;
}

.btn-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
}

.btn-link:hover, .btn-link:focus {
    color: var(--primary-dark);
    gap: 0.75rem;
    outline: none;
}

/* Focus outline for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* --- Loaders & Indicators --- */
.loader-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--primary-light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.scroll-progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    background: var(--primary);
    width: 0%;
    z-index: 10000;
    transition: width 0.1s;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: clamp(0.75rem, 1vw, 1.25rem) 0;
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--fs-xl);
    color: var(--text-main);
}

.logo i {
    color: var(--primary);
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: var(--fs-sm);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background-color: var(--bg-white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-normal);
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-main);
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    width: 100%;
}

.mobile-nav-links a {
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    padding: 0.5rem;
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding-top: clamp(6rem, 15vh, 10rem);
    padding-bottom: var(--spacing-2xl);
    background-color: var(--bg-light);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-shapes {
    position: absolute;
    top: -10%; right: -5%;
    width: clamp(300px, 50vw, 800px); 
    height: clamp(300px, 50vw, 800px);
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: var(--fs-4xl);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

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

.hero-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: var(--spacing-md);
}

.stat-item h3 {
    font-size: var(--fs-2xl);
    color: var(--primary);
}

.stat-item p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
}

.floating-card {
    position: absolute;
    bottom: -2rem; left: -2rem;
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.floating-card i {
    font-size: var(--fs-3xl);
    color: var(--accent);
}

.floating-card h4 {
    font-size: var(--fs-base);
    margin-bottom: 0.25rem;
}

.floating-card p {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- Trusted By --- */
.trusted-by {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background-color: var(--bg-white);
}

.trusted-title {
    text-align: center;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    font-size: var(--fs-xs);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-light);
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-normal);
}

.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    color: var(--text-main);
}

/* --- About --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

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

.about-main-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
}

.experience-badge {
    position: absolute;
    bottom: clamp(1rem, 5vw, 2rem); 
    right: clamp(-1rem, -5vw, -2rem);
    background: var(--primary);
    color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.experience-badge span {
    font-size: var(--fs-3xl);
    font-weight: 800;
    line-height: 1;
}

.experience-badge p {
    font-size: var(--fs-sm);
}

.about-features {
    margin: var(--spacing-lg) 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: var(--fs-sm);
}

.about-features i {
    color: var(--accent);
    font-size: var(--fs-lg);
}

.about-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.about-stat h3 {
    font-size: var(--fs-3xl);
    color: var(--primary);
    display: inline;
}

.about-stat span {
    font-size: var(--fs-2xl);
    color: var(--primary);
    font-weight: 700;
}

.about-stat p {
    color: var(--text-muted);
    font-weight: 500;
    font-size: var(--fs-sm);
}

/* --- Departments --- */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.dept-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.dept-icon {
    width: 64px; height: 64px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    transition: var(--transition-normal);
}

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

.dept-card h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--spacing-xs);
}

.dept-card p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

/* --- Doctors --- */
.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.doctor-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

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

.doc-img-wrapper {
    position: relative;
    height: clamp(300px, 40vw, 400px);
    overflow: hidden;
}

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

.doctor-card:hover .doc-img-wrapper img {
    transform: scale(1.05);
}

.doc-socials {
    position: absolute;
    bottom: -60px; left: 0; width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 2rem 0 1rem;
    transition: var(--transition-normal);
}

/* On touch devices, always show socials slightly or keep them accessible */
@media (hover: none) {
    .doc-socials {
        bottom: 0;
    }
}

.doctor-card:hover .doc-socials {
    bottom: 0;
}

.doc-socials a {
    width: 44px; height: 44px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.doc-socials a:hover {
    background: var(--primary);
    color: white;
}

.doc-info {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.doc-info h3 {
    font-size: var(--fs-lg);
    margin-bottom: 0.25rem;
}

.doc-spec {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    font-size: var(--fs-sm);
}

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.doc-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.doc-rating {
    color: var(--warning);
    font-weight: 600;
    font-size: var(--fs-xs);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.doc-info .btn {
    margin-top: auto;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.service-card img {
    height: clamp(200px, 25vw, 300px);
    width: 100%;
    object-fit: cover;
}

.service-content {
    padding: var(--spacing-lg);
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-icon {
    position: absolute;
    top: -30px; right: var(--spacing-lg);
    width: 60px; height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.service-content h3 {
    margin-bottom: var(--spacing-xs);
    font-size: var(--fs-xl);
    padding-right: 50px; /* Make space for icon */
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

/* --- Consultation Banner --- */
.consultation-banner {
    background: var(--primary);
    color: white;
    overflow: hidden;
}

.banner-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.banner-content {
    padding: var(--spacing-2xl) 0;
    max-width: 600px;
    flex: 1 1 300px;
}

.banner-content h2 {
    color: white;
    font-size: var(--fs-3xl);
    margin-bottom: var(--spacing-xs);
}

.banner-content p {
    font-size: var(--fs-lg);
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

.banner-actions .btn {
    background: white;
    color: var(--primary);
}

.banner-actions .btn:hover {
    background: var(--bg-light);
    box-shadow: none;
}

.banner-image {
    width: 100%;
    max-width: 500px;
    flex: 1 1 300px;
    margin-bottom: -5px; /* Removes baseline gap */
    display: flex;
    justify-content: flex-end;
}

.banner-image img {
    object-fit: contain;
    max-height: 500px;
}

/* --- Why Choose Us (Features) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-md);
}

.feature-icon {
    width: 80px; height: 80px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.feature-item h4 {
    font-size: var(--fs-lg);
    margin-bottom: 0.5rem;
}

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

/* --- Appointment & FAQ --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.booking-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: var(--fs-sm);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px; /* 16px min to prevent iOS zoom */
    color: var(--text-main);
    transition: var(--transition-fast);
    background-color: var(--bg-white);
    min-height: 44px;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-success-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #D1FAE5;
    color: var(--accent-dark);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.hidden {
    display: none;
}

/* FAQ Accordion */
.faq-section {
    padding-top: var(--spacing-md);
}

.accordion-item {
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 1rem;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-lg);
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    min-height: 44px;
}

.accordion-header i {
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-body {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
}

/* --- Testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.rating {
    color: var(--warning);
    margin-bottom: var(--spacing-sm);
    font-size: var(--fs-lg);
}

.review-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: var(--spacing-lg);
    font-size: var(--fs-base);
    flex-grow: 1;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.patient-info img {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.patient-info h4 {
    font-size: var(--fs-base);
    margin-bottom: 0.1rem;
}

.patient-info p {
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

/* --- Emergency Section --- */
.emergency-section {
    background: var(--danger);
    color: white;
    padding: var(--spacing-2xl) 0;
}

.emergency-container h2 {
    color: white;
    margin-bottom: 1rem;
}

.emergency-container p {
    font-size: var(--fs-lg);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.emergency-contact {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    background: white;
    color: var(--danger);
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 3vw, 3rem);
    border-radius: var(--radius-pill);
}

.emergency-contact i {
    font-size: clamp(2rem, 4vw, 3rem);
}

.emergency-contact h2 {
    color: var(--danger);
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.emergency-contact span {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: var(--fs-sm);
    display: block;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-2xl);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.icon-box {
    width: 50px; height: 50px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.25rem;
    font-size: var(--fs-base);
}

.info-item p {
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    min-height: 350px;
}

.map-placeholder {
    width: 100%; height: 100%;
}

/* --- Footer --- */
.footer {
    background: #0F172A;
    color: #94A3B8;
    padding-top: var(--spacing-2xl);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

/* Make first col wider on large screens */
@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-logo {
    color: white;
    margin-bottom: var(--spacing-md);
    display: inline-flex;
}

.footer-desc {
    margin-bottom: var(--spacing-lg);
    font-size: var(--fs-sm);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.social-links a {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-links a:hover, .social-links a:focus {
    background: var(--primary);
    outline: none;
}

.footer-col h4 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: var(--fs-lg);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #94A3B8;
    font-size: var(--fs-sm);
    padding: 0.25rem 0;
    display: inline-block;
}

.footer-col ul li a:hover, .footer-col ul li a:focus {
    color: var(--primary);
    padding-left: 5px;
    outline: none;
}

.newsletter-form {
    display: flex;
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1 1 150px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    outline: none;
    min-height: 44px;
}

.newsletter-form button {
    padding: 0 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    transition: var(--transition-normal);
    min-height: 44px;
}

.newsletter-form button:hover, .newsletter-form button:focus {
    background: var(--primary-dark);
    outline: none;
}

@media (max-width: 480px) {
    .newsletter-form input {
        border-radius: var(--radius-sm);
        margin-bottom: 0.5rem;
    }
    .newsletter-form button {
        border-radius: var(--radius-sm);
        width: 100%;
    }
}

.footer-bottom {
    background: #0B1120;
    padding: var(--spacing-md) 0;
}

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

.footer-bottom p {
    font-size: var(--fs-sm);
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links a {
    color: #94A3B8;
    font-size: var(--fs-sm);
    padding: 0.25rem;
}

.footer-bottom-links a:hover, .footer-bottom-links a:focus {
    color: white;
}

/* --- Floating Actions --- */
.floating-emergency {
    position: fixed;
    bottom: clamp(1rem, 3vw, 2rem); 
    left: clamp(1rem, 3vw, 2rem);
    width: clamp(50px, 12vw, 60px); 
    height: clamp(50px, 12vw, 60px);
    background: var(--danger);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    z-index: 1000;
    transition: var(--transition-normal);
}

.floating-emergency:hover, .floating-emergency:focus {
    transform: scale(1.1);
    color: white;
    outline: none;
}

.back-to-top {
    position: fixed;
    bottom: clamp(1rem, 3vw, 2rem); 
    right: clamp(1rem, 3vw, 2rem);
    width: clamp(40px, 10vw, 50px); 
    height: clamp(40px, 10vw, 50px);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 3vw, 1.25rem);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    transform: translateY(20px);
}

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

.back-to-top:hover, .back-to-top:focus {
    background: var(--primary-dark);
    outline: none;
}

/* --- Animations (AOS style) --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-up, .fade-left, .fade-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   Comprehensive Responsive Breakpoints (Mobile First to 4K Ultra-Wide)
   ========================================================================== */

/* Very Small Mobile (< 360px - e.g., older phones) */
@media (max-width: 359px) {
    .container { padding: 0 1rem; }
    .floating-card { display: none; } /* Hide on very small screens to save space */
    .experience-badge { right: 0; bottom: 0; padding: 1rem; }
    .btn { width: 100%; justify-content: center; } /* Full width buttons */
    .hero-cta { flex-direction: column; width: 100%; }
}

/* Mobile & Small Tablets (max 768px) */
@media (max-width: 768px) {
    .nav-links, .nav-actions .btn { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .hero { text-align: center; }
    .hero-container { grid-template-columns: 1fr; }
    .hero-content { margin: 0 auto; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; text-align: center; }
    
    .floating-card { 
        bottom: 1rem; 
        left: 50%; 
        transform: translateX(-50%);
        width: 90%;
        justify-content: center;
        animation: none; /* Disable float on mobile to prevent overflow issues */
    }
    
    .about-container { grid-template-columns: 1fr; }
    .about-image-wrapper { margin-bottom: 2rem; }
    .experience-badge { right: auto; left: 50%; transform: translateX(-50%); bottom: -1.5rem; }
    
    .split-layout { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    
    .banner-container { flex-direction: column; text-align: center; }
    .banner-content { padding: 3rem 0; width: 100%; }
    .banner-image { width: 100%; display: flex; justify-content: center; }
    
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }
}

/* Tablet to Laptop (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links { gap: 1rem; }
    .nav-link { font-size: 0.875rem; }
    
    .hero-container { gap: 2rem; }
    .about-container { gap: 2rem; }
    
    .experience-badge { right: -1rem; padding: 1.5rem; }
    
    .contact-grid { gap: 2rem; }
}

/* Large Desktop (1440px to 2560px) */
@media (min-width: 1441px) {
    .container { max-width: 1536px; }
}

/* Ultra-Wide & 4K Displays (> 2560px) */
@media (min-width: 2561px) {
    .container { max-width: 2000px; }
    body { font-size: 1.25rem; } /* Scale up base font size for readability */
    .hero-image-wrapper { display: flex; justify-content: flex-end; }
    .hero-image { max-width: 800px; }
}
