/* Modern Premium Medical Design System */
:root {
    /* Color Palette */
    --clr-primary: #0A2540;
    /* Deep Sophisticated Navy */
    --clr-primary-light: #15406C;
    --clr-secondary: #008987;
    /* Muted Medical Teal */
    --clr-secondary-hover: #007675;
    --clr-accent: #E26D5C;
    /* Softer Coral for actions */

    /* Neutral Palette */
    --clr-bg-main: #F8FAFC;
    /* Extremely light blue-ish white */
    --clr-bg-alt: #F1F5F9;
    --clr-bg-dark: #0B192C;
    --clr-surface: #ffffff;

    --clr-text-main: #1E293B;
    --clr-text-muted: #64748B;
    --clr-text-light: #F8FAFC;

    --clr-border: #E2E8F0;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 2rem;
    --sp-lg: 4rem;
    --sp-xl: 6rem;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(10, 37, 64, 0.04), 0 1px 2px rgba(10, 37, 64, 0.02);
    --shadow-md: 0 10px 20px rgba(10, 37, 64, 0.06), 0 4px 8px rgba(10, 37, 64, 0.03);
    --shadow-lg: 0 20px 40px rgba(10, 37, 64, 0.08), 0 10px 20px rgba(10, 37, 64, 0.04);

    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg-main);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    color: var(--clr-primary);
    margin-bottom: var(--sp-sm);
    letter-spacing: -0.015em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: var(--sp-xl) 0;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--clr-primary);
}

.text-secondary {
    color: var(--clr-secondary);
}

.text-muted {
    color: var(--clr-text-muted);
}

.text-white {
    color: var(--clr-text-light);
}

.bg-light {
    background-color: var(--clr-bg-alt);
}

.bg-dark {
    background-color: var(--clr-bg-dark);
}

.mt-l {
    margin-top: var(--sp-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.3, 1);
    border: 2px solid transparent;
    font-family: var(--font-heading);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.75s ease;
}

.btn:hover::after {
    left: 200%;
}

.btn-primary {
    background-color: var(--clr-secondary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--clr-secondary-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 137, 135, 0.4);
}

.btn-secondary {
    background-color: var(--clr-primary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--clr-primary-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(10, 37, 64, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-secondary);
    color: var(--clr-secondary);
}

.btn-outline:hover {
    background-color: var(--clr-secondary);
    color: white;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius-md);
}

.btn-full {
    width: 100%;
}

/* Top Bar */
.top-bar {
    background-color: var(--clr-bg-dark);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-strip,
.location-strip {
    display: flex;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-link:hover {
    color: white;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.header.scrolled {
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    /* Removed box-shadow and background to let the logo breathe naturally */
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--clr-primary);
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--clr-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 2px;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--clr-text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-secondary);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--clr-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle,
.nav-close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--clr-primary);
}

/* Page Header Utilities */
.bg-primary {
    background-color: var(--clr-primary);
}

.page-header {
    padding: var(--sp-xl) 0;
    position: relative;
    overflow: hidden;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    color: white;
}

.page-desc {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-desc {
        font-size: 1.1rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    /* Slight zoom for image */
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 37, 64, 0.9) 0%, rgba(10, 37, 64, 0.7) 50%, rgba(0, 137, 135, 0.4) 100%);
}

.hero-container {
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 650px;
    color: white;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-title span {
    color: var(--clr-secondary);
    display: block;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-secondary);
    line-height: 1;
}

.stat-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Sections Global */
.section-subtitle {
    display: inline-block;
    font-weight: 600;
    color: var(--clr-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.section-subtitle.accent-teal {
    color: var(--clr-secondary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-description {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    background: linear-gradient(45deg, var(--clr-primary-light), var(--clr-secondary));
    border-radius: var(--border-radius-lg);
    aspect-ratio: 4/5;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.about-card-overlay {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 250px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 4px solid var(--clr-secondary);
}

.icon-lg {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.about-features {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--clr-text-main);
}

.about-features i {
    margin-top: 3px;
    font-size: 1.25rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--clr-surface);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.3, 1);
    border: 1px solid rgba(10, 58, 104, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 37, 64, 0.1);
    border-color: rgba(0, 137, 135, 0.25);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--clr-bg-alt), #eef6ff);
    color: var(--clr-secondary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin-bottom: 2rem;
    transition: var(--transition-normal);
    box-shadow: inset 0 0 0 1px rgba(0, 163, 161, 0.1);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.3, 1);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--clr-secondary), var(--clr-primary));
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 137, 135, 0.25);
}
.service-card:hover .service-icon img {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--clr-primary);
    transition: var(--transition-normal);
    letter-spacing: -0.02em;
}

.service-card:hover .service-title {
    color: var(--clr-secondary);
}

.service-text {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--clr-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-normal);
}

.service-link i {
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

.service-link:hover {
    color: var(--clr-primary);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.gallery-item {
    background-color: var(--clr-surface);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 58, 104, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-overlay i {
    color: white;
    font-size: 3rem;
    transform: scale(0.5);
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-img-wrapper img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-content {
    padding: 2rem;
}

.gallery-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--clr-primary);
}

.gallery-content p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Doctors Section */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.doctor-card {
    background-color: var(--clr-surface);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.doctor-image {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

.doctor-info {
    padding: 2rem;
    flex-grow: 1;
}

.doctor-name {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.doctor-role {
    color: var(--clr-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.doctor-creds {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 1rem;
}

.doctor-creds p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.small-text {
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.doctor-expertise h4 {
    font-size: 1.1rem;
    color: var(--clr-text-main);
    margin-bottom: 0.5rem;
}

.doctor-expertise ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.doctor-expertise li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.doctor-expertise li::before {
    content: '•';
    color: var(--clr-secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.staff-banner {
    background: linear-gradient(135deg, var(--clr-bg-alt), #e0f2fe);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    border-left: 5px solid var(--clr-primary);
}

.staff-banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.staff-icon {
    font-size: 3rem;
    color: var(--clr-primary);
    background: white;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.staff-text h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.staff-text p {
    color: var(--clr-text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.staff-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.staff-list li {
    font-size: 0.95rem;
    color: var(--clr-text-main);
    background: rgba(255, 255, 255, 0.5);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0, 137, 135, 0.1);
}

/* Approach Section */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.2);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    position: relative;
}

.timeline-dot {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--clr-secondary), #00A3A1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 0 0 5px var(--clr-bg-dark);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-grow: 1;
    transition: var(--transition-normal);
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.timeline-content h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.7);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--clr-surface);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--clr-bg-alt);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-card p,
.contact-card a {
    color: var(--clr-text-muted);
}

.contact-card a:hover {
    color: var(--clr-secondary);
}

.card-shadow {
    background-color: var(--clr-surface);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.appointment-form h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--clr-text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--clr-bg-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-secondary);
    box-shadow: 0 0 0 3px rgba(0, 137, 135, 0.1);
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    cursor: pointer;
}

.select-wrapper i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--clr-text-muted);
}

/* Footer */
.footer {
    background-color: #061526;
    /* Deepest Navy */
    color: white;
    padding-top: 4rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
}

.footer-links h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--clr-secondary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--clr-secondary);
    padding-left: 5px;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

[data-reveal="fade-up"] {
    transform: translateY(50px);
}

[data-reveal="fade-down"] {
    transform: translateY(-50px);
}

[data-reveal="fade-right"] {
    transform: translateX(-50px);
}

[data-reveal="fade-left"] {
    transform: translateX(50px);
}

[data-reveal="zoom-in"] {
    transform: scale(0.85);
}

[data-reveal="blur-in"] {
    transform: translateY(30px);
    filter: blur(10px);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
}

/* ============================================================
   ENTERPRISE RESPONSIVE SYSTEM
   Breakpoints: 1024px / 768px / 480px / 360px
   ============================================================ */

/* --- Large Tablets & Small Desktops (≤1024px) --- */
@media (max-width: 1024px) {
    :root {
        --sp-xl: 4rem;
        --sp-lg: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .tests-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .staff-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .staff-list {
        grid-template-columns: 1fr;
    }
}

/* --- Tablets & Large Phones (≤768px) --- */
@media (max-width: 768px) {
    :root {
        --sp-xl: 3rem;
        --sp-lg: 2rem;
        --sp-md: 1.25rem;
    }

    /* Hide top bar on mobile */
    .top-bar {
        display: none;
    }

    /* Container */
    .container {
        width: 92%;
    }

    /* Header */
    .header-container {
        height: 64px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .logo-title {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    /* Mobile Nav Drawer */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background-color: white;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
        padding: 5rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.3, 1);
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav.show-menu {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--clr-border);
    }

    .nav-link::after {
        display: none;
    }

    .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--clr-bg-alt);
        color: var(--clr-primary);
        font-size: 1.25rem;
        cursor: pointer;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: var(--border-radius-sm);
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--clr-primary);
        -webkit-tap-highlight-color: transparent;
    }

    .header-actions .btn {
        display: none;
    }

    /* Page Headers */
    .page-header {
        padding: var(--sp-lg) 0;
    }

    .page-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .page-desc {
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        min-height: 85vh;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.15;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.85rem;
        margin-bottom: 1rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem 1.25rem;
        width: 100%;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-text {
        font-size: 0.75rem;
    }

    .stat-divider {
        width: 1px;
        height: 30px;
    }

    /* About */
    .about-container {
        gap: 2rem;
    }

    .image-wrapper {
        aspect-ratio: 16/10;
    }

    .about-card-overlay {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: -2rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .service-title {
        font-size: 1.25rem;
    }

    .service-text {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    /* Tests */
    .tests-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .test-category-card {
        padding: 1.75rem 1.25rem;
    }

    .test-card-header h3 {
        font-size: 1.25rem;
    }

    .test-card-header i {
        font-size: 1.75rem;
        padding: 0.6rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-img-wrapper {
        height: 200px;
    }

    .gallery-content {
        padding: 1.25rem;
    }

    /* Doctors */
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .doctor-image {
        height: 280px;
    }

    .doctor-info {
        padding: 1.5rem;
    }

    .doctor-name {
        font-size: 1.3rem;
    }

    .doctor-expertise ul {
        gap: 0.35rem;
    }

    /* Staff Banner */
    .staff-banner {
        padding: 1.5rem;
    }

    .staff-banner-content {
        flex-direction: column;
        gap: 1rem;
        text-align: left;
    }

    .staff-icon {
        font-size: 2rem;
        padding: 0.75rem;
    }

    .staff-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .staff-list li {
        padding: 0.6rem 0.85rem;
        font-size: 0.875rem;
    }

    /* Timeline */
    .timeline {
        gap: 1.5rem;
    }

    .timeline::before {
        left: 18px;
    }

    .timeline-item {
        gap: 1rem;
    }

    .timeline-dot {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
        flex-shrink: 0;
        box-shadow: 0 0 0 4px var(--clr-bg-dark);
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-card {
        padding: 1.25rem;
    }

    .card-shadow {
        padding: 2rem 1.5rem;
    }

    /* Forms — 16px prevents iOS auto-zoom */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.85rem;
        font-size: 16px;
        border-radius: var(--border-radius-sm);
    }

    /* Footer */
    .footer {
        padding-top: 2.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Buttons */
    .btn-lg {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
}

/* --- Standard Phones (≤480px) --- */
@media (max-width: 480px) {
    :root {
        --sp-xl: 2.5rem;
        --sp-lg: 1.5rem;
    }

    .container {
        width: 94%;
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.75rem;
    }

    .service-card {
        padding: 1.5rem 1.25rem;
    }

    .service-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .service-title {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .test-category-card {
        padding: 1.25rem 1rem;
    }

    .doctor-image {
        height: 220px;
    }

    .gallery-img-wrapper {
        height: 180px;
    }

    .about-card-overlay {
        margin-top: -1.5rem;
        padding: 1rem;
    }

    .icon-lg {
        font-size: 2rem;
    }

    .timeline-dot {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .timeline::before {
        left: 15px;
    }
}

/* --- Very Small Phones (≤360px) --- */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .footer-links h4 {
        font-size: 1.1rem;
    }
}

/* --- Reduced Motion Accessibility --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .hero-bg img {
        animation: none;
    }
}

/* --- Landscape Phone Lock (prevent squished hero) --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-stats {
        flex-direction: row;
    }

    .stat-divider {
        width: 1px;
        height: 30px;
    }
}

/* Tests Section */
.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 2.5rem;
}

.test-category-card {
    background-color: var(--clr-surface);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--clr-secondary);
    transition: var(--transition-normal);
}

.test-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.test-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.test-card-header i {
    font-size: 2.25rem;
    color: var(--clr-secondary);
    background: var(--clr-bg-alt);
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
}

.test-card-header h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
    color: var(--clr-primary);
}

.test-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-text-main);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.test-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.test-list li i {
    color: var(--clr-secondary);
    font-size: 1.25rem;
    margin-top: 1px;
}

/* Packages List (no-card list format) */
.packages-list {
    max-width: 900px;
    margin: 0 auto;
}

.package-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--clr-border);
    transition: var(--transition-normal);
}

.package-item:first-child {
    padding-top: 0;
}

.package-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.package-item:hover {
    padding-left: 0.5rem;
}

.package-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-secondary), var(--clr-primary));
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.package-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.package-info p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 480px) {
    .package-item {
        gap: 1rem;
        padding: 1.25rem 0;
    }

    .package-number {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.8rem;
    }

    .package-info h4 {
        font-size: 1rem;
    }

    .package-info p {
        font-size: 0.875rem;
    }
}
