:root {
    --primary: #3a4f8a;        /* Brand blue */
    --primary-dark: #2a3a6b;   /* Darker brand blue */
    --secondary: #7d5ba6;      /* Keep for accents, not active states */
    --accent: #4fc1c5;
    --white: #ffffff;
    --dark-bg: #1a202c;
    --text: #2d3748;
    --text-light: #4a5568;
    --light-bg: #f8fafc;
    --border: #e2e8f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 2.6;
    background-color: #f8fafc;
    padding-top: 70px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1050;
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 14px 0; /* slightly slimmer */
    border-bottom: 1px solid var(--border);
}

.navbar-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
}

.navbar-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.95rem; /* smaller brand text */
    font-weight: 700; color: var(--primary); text-decoration: none;
    letter-spacing: 0.02em;
}

.navbar-nav { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }

.nav-link {
    text-decoration: none; font-size: 1rem; font-weight: 600; color: var(--text);
    transition: all 0.25s ease; padding-bottom: 6px; border-bottom: 2px solid transparent;
}

.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); border-bottom: 2px solid var(--primary); }

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

/* ===== HERO ===== */
.services-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
    padding: 64px 0; /* reduced height */
}

.hero-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.hero-content h1 { font-size: 2.2rem; margin-bottom: 14px; }
.hero-subtitle { font-size: 1.05rem; max-width: 700px; margin: 0 auto 22px; opacity: 0.9; }

.hero-buttons {
    display: flex; justify-content: center; gap: 14px; margin-top: 16px; flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 700;
    text-align: center; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background-color: var(--primary); color: var(--white); border-color: var(--primary);
    box-shadow: 0 6px 14px rgba(58, 79, 138, 0.28);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(42, 58, 107, 0.28);
}

.btn-secondary {
    background-color: transparent; color: var(--white); border-color: rgba(255,255,255,0.85);
}
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: rgba(255,255,255,0.12);
    color: var(--white);
    border-color: var(--white);
}

/* Hero stats trimmed a bit */
.hero-stats {
    display: flex; justify-content: center; gap: 32px; margin-top: 28px;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2.1rem; font-weight: 800; color: var(--accent); display: block; }
.stat-label { font-size: 0.95rem; opacity: 0.85; }

/* ===== QUICK NAV ===== */
.services-quick-nav { padding: 48px 0; background-color: var(--white); }
.quick-nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.quick-nav-card {
    background-color: #f8fafc; border-radius: 12px; padding: 24px; text-align: center; transition: all 0.25s ease; border: 1px solid #e2e8f0;
}
.quick-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--primary);
}
.card-icon {
    width: 64px; height: 64px; border-radius: 12px; background-color: var(--white);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.6rem; color: var(--primary);
}

/* ===== SERVICES SECTIONS ===== */
.services-section { padding: 64px 0; }
.bg-dark { background-color: var(--dark-bg); color: var(--white); }

.section-header { text-align: center; margin-bottom: 38px; }
.section-tag {
    display: inline-block; background-color: var(--accent); color: var(--white);
    padding: 5px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; margin-bottom: 12px;
}
.section-header h2 { font-size: 1.9rem; }
.section-subtitle { font-size: 1rem; max-width: 700px; margin: 0 auto; opacity: 0.9; }

.service-detail { margin-bottom: 44px; }

.detail-content { display: flex; gap: 40px; margin-bottom: 28px; align-items: center; }
.detail-text { flex: 1; }
.detail-image { flex: 1; border-radius: 12px; overflow: hidden; }
.detail-image img { width: 100%; height: auto; display: block; }

.service-features { margin: 22px 0; }
.feature { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.feature i { color: var(--primary); font-size: 1.1rem; margin-top: 4px; }
.feature h4 { font-size: 1.05rem; margin-bottom: 4px; }

.service-cta { margin-top: 26px; }
.service-cta .btn-primary { padding: 12px 20px; }

/* ===== CLINICAL CARDS ===== */
.clinical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 18px;
}

.clinical-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 18px 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.clinical-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.22);
}

.clinical-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.clinical-card p { opacity: 0.9; margin-bottom: 10px; }
.clinical-card ul { padding-left: 18px; opacity: 0.92; }
.clinical-card li { margin: 6px 0; }

/* ===== CTA (Get Started) ===== */
.cta-section {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(6px);
}

.cta-content h2 { margin-bottom: 12px; }

.cta-form { max-width: 520px; margin: 16px auto 0; }
.form-group { margin-bottom: 14px; }
.form-group input {
    width: 100%; padding: 14px 16px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.15);
    color: #fff; font-family: 'Inter', sans-serif;
}
.form-group input::placeholder { color: rgba(255,255,255,0.85); }

/* Make the submit button match brand blue, not purple */
.cta-form .btn-primary {
    width: 100%;
    font-size: 1rem;
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.cta-form .btn-primary:hover {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}


/* ===== FOOTER ===== */
footer { background: var(--dark-bg); color: var(--white); padding: 50px 0 20px; font-size: 0.9rem; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-content { display: flex; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-brand { flex: 1 1 300px; min-width: 250px; }
.footer-brand h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 15px; }
.footer-brand p { color: rgba(255, 255, 255, 0.7); line-height: 1.6; }
.footer-links-container { flex: 2 1 600px; display: flex; flex-wrap: wrap; gap: 30px; }
.footer-links { flex: 1; min-width: 150px; }
.footer-links h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 20px; position: relative; padding-bottom: 8px; }
.footer-links h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--accent); }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: all 0.2s ease; display: inline-block; }
.footer-links a:hover { color: var(--accent); transform: translateX(5px); }
.connect-with-us { flex: 1; min-width: 150px; }
.social-icons { display: flex; gap: 15px; margin-top: 15px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.social-icon:hover { background: var(--accent); transform: translateY(-3px); }
.social-icon img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-bottom p { margin: 0; color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; }
.footer-legal { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; }
.footer-legal a { color: rgba(255, 255, 255, 0.5); text-decoration: none; font-size: 0.85rem; transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .navbar-nav { display: none; }
    .nav-toggle { display: block; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; }
    .detail-content { flex-direction: column; }
    .quick-nav-grid { grid-template-columns: 1fr 1fr; }
    .footer-content { flex-direction: column; gap: 30px; }
    .footer-links-container { flex-direction: column; gap: 30px; }
    .footer-links, .connect-with-us { min-width: 100%; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
    .footer-legal { justify-content: center; }
}

@media (max-width: 480px) {
    .quick-nav-grid { grid-template-columns: 1fr; }
}

/* Navbar */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
}

.navbar-nav {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .navbar-collapse.show {
        transform: translateY(0);
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-link {
        padding: 10px 0;
        border-bottom: none !important;
    }
}