/* ==============================
   Variables & Theme
   ============================== */
:root {
    /* Primary Medical Colors */
    --primary: #004a8f; /* Clinic Logo Blue */
    --primary-light: #3373b0;
    --primary-dark: #003366;
    
    /* Secondary & Accent Colors */
    --secondary: #e6f2ff; /* Soft medical blue */
    --accent: #48cae4; /* Calming cyan */
    
    /* Neutral Colors */
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    
    /* Gradients & Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 74, 143, 0.1), 0 2px 4px -1px rgba(0, 74, 143, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 74, 143, 0.1), 0 4px 6px -2px rgba(0, 74, 143, 0.05);
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --section-pad: 5rem;
    --border-radius: 8px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

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

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

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

.section-padding {
    padding: var(--section-pad) 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-primary { background-color: var(--primary); }
.text-white { color: white; }
.text-center { text-align: center; }

/* ==============================
   Typography
   ============================== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.text-white h2, .text-white h3, .text-white p {
    color: white;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ==============================
   Buttons
   ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

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

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

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

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

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

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

/* ==============================
   Header Navigation
   ============================== */
.header {
    background-color: var(--bg-main);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo i {
    font-size: 2.5rem;
    color: var(--primary);
}

.logo-text h1 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--primary-dark);
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    font-weight: 500;
    color: var(--text-main);
}

.nav-list a:hover {
    color: var(--primary);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* ==============================
   Hero Section
   ============================== */
.hero {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero-text-area {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 650px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.trust-signals-hero-prominent {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.trust-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trust-card .stars {
    color: #ffd700;
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}

.trust-card .rating-text {
    font-size: 0.95rem;
    color: white;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* ==============================
   Why Choose Us
   ============================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

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

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

/* ==============================
   Services
   ============================== */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-card {
    flex: 1 1 300px;
    max-width: 350px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.service-card ul li i {
    color: var(--primary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ==============================
   Facility Section
   ============================== */
.facility-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.facility-list {
    margin-top: 2rem;
}

.facility-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.facility-list li i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-top: 0.1rem;
}

.facility-image .image-placeholder {
    background-color: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.5);
    border: 2px dashed rgba(255,255,255,0.2);
}

/* ==============================
   Footer
   ============================== */
.footer {
    background-color: var(--text-main);
    color: white;
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo i { color: white; }
.footer-logo h2 { color: white; margin: 0; font-size: 1.5rem;}
.footer-logo span { color: var(--accent); }

.footer-desc {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-contact h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.contact-list li i {
    color: var(--accent);
    margin-top: 0.3rem;
}

.map-placeholder {
    background-color: rgba(255,255,255,0.05);
    height: 100%;
    min-height: 200px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    background-color: #1e293b;
    padding: 1.5rem 0;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* ==============================
   Scroll Animations
   ============================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for flex/grid children */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* ==============================
   Responsive Design
   ============================== */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h2 {
        font-size: 2.75rem;
    }
    
    .facility-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none; /* Hide for mobile initially */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: var(--shadow-md);
        padding: 1rem 0;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-cta .btn {
        display: none; /* Hide primary CTA on small mobile header, keep menu */
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .trust-signals-hero-prominent {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
        max-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
