:root {
    /* Enterprise Medical Palette */
    --primary: #27b5e9; /* Brand cyan/teal from logo */
    --primary-hover: #209dc9;
    --primary-light: #e6f6fc;
    --navy: #0f172a; /* Sophisticated slate navy */
    --navy-hover: #1e293b;
    --bg-light: #f8fafc; 
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-gray: #475569;
    --border: #e2e8f0;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

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

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--navy);
}

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

.section {
    padding: 6rem 0;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    min-height: 48px; /* Touch friendly */
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(39, 181, 233, 0.2);
}

.btn-navy {
    background-color: var(--navy);
    color: white;
}
.btn-navy:hover {
    background-color: var(--navy-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.nav-logo img {
    max-height: 85px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-gray);
    transition: color 0.2s;
    font-size: 0.95rem;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
    stroke: var(--navy);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e6f6fc 0%, #ffffff 100%);
    padding-top: 10rem;
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
    content-visibility: visible;
}

/* Contact Page Specific */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}
.contact-page-info {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.contact-page-info h2 {
    margin-bottom: 2rem;
    color: var(--navy);
}
.contact-page-info .contact-info {
    flex-direction: column;
    gap: 1.5rem;
}
.contact-page-info .contact-info li {
    color: var(--text-gray);
    font-size: 1.1rem;
}
.contact-page-info .contact-info svg {
    color: var(--primary);
    width: 28px;
    height: 28px;
}
.map-container {
    margin-top: 3rem;
    width: 100%;
    height: 300px;
    background: #e2e8f0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}
.contact-page-form {
    background: var(--navy);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.contact-page-form h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}
.contact-page-form .form-group input, 
.contact-page-form .form-group select, 
.contact-page-form .form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.contact-page-form .form-group input:focus, 
.contact-page-form .form-group select:focus, 
.contact-page-form .form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}
.contact-page-form .form-group select option {
    background: var(--navy);
    color: white;
}

/* Animations */

/* Soft, authoritative glowing orb behind doctors instead of harsh pink shapes */
.hero::after {
    content: '';
    position: absolute;
    right: -10%;
    top: 10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(39, 181, 233, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

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

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 3;
}

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

.hero-image-wrapper {
    position: absolute; /* Take out of flow to prevent huge vertical gaps */
    bottom: 0;
    right: 0;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
}

.hero-image-wrapper img {
    position: relative;
    z-index: 2;
    max-height: 110%; /* Allow it to slightly overlap */
    width: auto;
    mix-blend-mode: multiply;
    object-position: bottom;
}

/* Inner Page Hero */
.inner-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary-hover) 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    color: white;
    margin-bottom: 4rem;
}
.inner-hero h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}
.inner-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.quick-care-panel {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
    margin-top: -80px; 
    margin-bottom: 4rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-care-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.quick-care-header h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.quick-care-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.care-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.care-pill {
    padding: 1.25rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.care-pill svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
    stroke-width: 1.5;
}

.care-pill:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

/* About Us */
.section-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--navy);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--navy);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.about-text-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-item:hover .stat-icon {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-info h4 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 0.25rem 0;
    line-height: 1;
}

.stat-info span {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-images {
    position: relative;
    height: 500px;
}

.about-img-main {
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.about-img-accent {
    width: 50%;
    height: 50%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: absolute;
    bottom: 5%;
    right: 0;
    z-index: 3;
    border: 8px solid white;
}

/* Image Cards Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.image-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    background: var(--navy);
}

.image-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.image-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.9;
}

.image-card:hover .image-card-bg {
    transform: scale(1.05);
    opacity: 1;
}

.image-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 2rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0));
    transition: var(--transition);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.card-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
        
.image-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.image-card-content p {
    font-size: 0.95rem;
    margin: 0;
    color: rgba(255,255,255,0.8);
    opacity: 0;
    max-height: 0;
    transition: all 0.4s ease;
}

.image-card:hover .image-card-content p {
    opacity: 1;
    max-height: 100px;
    margin-top: 1rem;
}

/* Infinite Carousel (Marquee) */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    background: white;
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    margin-top: 4rem;
}

.marquee-wrapper::before, .marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}
.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}
.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.marquee {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    align-items: center;
}

.marquee:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-item {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-gray);
    margin: 0 4rem;
    opacity: 0.4;
    transition: var(--transition);
    filter: grayscale(100%);
}

.partner-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    color: var(--navy);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    padding: 0 2rem;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    color: var(--navy);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--text-gray);
}
        
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary);
}

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

.mobile-only {
    display: none;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
    padding: 5rem 0;
    text-align: center;
    color: white;
}
.cta-section h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    margin-bottom: 1rem;
    color: white;
}
.cta-section p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Footer */
.footer {
    background: var(--navy); 
    color: #cbd5e1;
    padding: 6rem 0 3rem;
    position: relative;
    content-visibility: auto; 
    contain-intrinsic-size: 800px;
}

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

.footer-logo {
    max-width: 250px;
    display: block;
    margin-bottom: 2rem;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 400px;
}
        
.contact-info {
    list-style: none;
}
        
.contact-info li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: white;
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--primary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.contact-info svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-light);
    flex-shrink: 0;
}

.footer-form {
    background: rgba(255,255,255,0.03);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
}

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

.form-group {
    margin-bottom: 1.25rem;
}

.footer-form input, .footer-form textarea, .footer-form select {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-form input:focus, .footer-form textarea:focus, .footer-form select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.08);
}
        
.footer-form select option {
    background: var(--navy);
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    color: #64748b;
    font-size: 0.95rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   MOBILE RESPONSIVENESS FIXES
   ========================================= */

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
    .hero-image-wrapper img {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    
    /* Navbar & Mobile Menu */
    .mobile-menu-btn {
        display: block;
    }
    .nav-links, .navbar .btn {
        display: none;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border);
        gap: 1rem;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
    .nav-links.active li {
        width: 100%;
    }
    .nav-links.active a {
        font-size: 1.1rem;
        color: var(--navy);
        padding: 0.75rem 1rem;
        display: block;
        border-radius: var(--radius-sm);
        transition: var(--transition);
        font-weight: 500;
    }
    .nav-links.active a:hover, .nav-links.active a.active {
        background: var(--light-blue);
        color: var(--primary);
    }
    .nav-links.active .mobile-only {
        margin-top: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
    }
    .nav-links.active .mobile-only a {
        background: var(--primary);
        color: white;
        text-align: center;
        box-shadow: 0 4px 15px rgba(12, 175, 230, 0.2);
    }
    .navbar.mobile-active {
        background: var(--bg-white);
    }

    /* Hero Stacking */
    .hero {
        padding-top: 7rem;
        text-align: center;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .hero-content {
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-content h1 {
        max-width: 100%;
    }
    .hero-features {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        position: relative;
        width: 100%;
        margin-top: 2rem;
    }
    .hero-image-wrapper img {
        max-height: 500px;
    }

    /* Quick Care Panel */
    .quick-care-panel {
        margin-top: -40px; /* Pull up closer to the image on mobile */
        padding: 2rem 1.5rem;
    }
    .care-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* General layout adjustments */
    .story-section, .footer-grid, .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .about-images {
        height: 350px;
        order: -1; /* Move images above text on mobile */
    }
    .footer-form {
        padding: 2rem;
    }
    .mobile-only {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .care-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.25rem;
    }
    .btn {
        width: 100%;
    }
}
