/* ═══════════════════════════════════════════════════════════════
   Well Imaging Services — Main Stylesheet
   Author:  Well Imaging Services
   Version: 1.0.0

   TABLE OF CONTENTS
   1.  CSS Variables & Reset
   2.  Base / Typography
   3.  Navigation
   4.  Hero Section
   5.  Services Section
   6.  Why Well Section
   7.  How It Works Section
   8.  Our Team Section
   9.  Contact Section
   10. Footer
   11. Animations & Utilities
   12. Responsive — Tablet (≤1024px)
   13. Responsive — Mobile (≤768px)
═══════════════════════════════════════════════════════════════ */


/* ─── 1. CSS VARIABLES & RESET ─────────────────────────────── */
:root {
    --navy:       #1a2e5a;
    --teal:       #2eb8b0;
    --teal-light: #3ecfc7;
    --sky:        #e8f7f6;
    --slate:      #5a6a80;
    --white:      #ffffff;
    --off-white:  #f8fbfc;
    --text:       #1c2b3a;
    --border:     rgba(26, 46, 90, 0.1);

    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-pill: 100px;

    --shadow-sm:  0 4px 16px rgba(26,46,90,0.08);
    --shadow-md:  0 12px 40px rgba(26,46,90,0.12);
    --shadow-lg:  0 30px 80px rgba(26,46,90,0.20);

    --transition: 0.25s ease;
    --section-pad: 120px 80px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--teal);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    font-size: 14px;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }


/* ─── 2. BASE TYPOGRAPHY ────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: 'DM Serif Display', serif;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    color: var(--navy);
    margin-bottom: 20px;
}

.section-sub {
    font-size: 16px;
    color: var(--slate);
    line-height: 1.75;
    max-width: 520px;
    font-weight: 300;
    margin-bottom: 56px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--navy);
    color: white;
    padding: 15px 32px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 8px 24px rgba(26, 46, 90, 0.25);
    cursor: pointer;
    border: none;
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(46, 184, 176, 0.35);
    color: white;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 500;
    transition: gap var(--transition);
}
.btn-ghost:hover { gap: 14px; }
.btn-ghost span  { font-size: 18px; }

.btn-white {
    display: inline-block;
    background: white;
    color: var(--navy);
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    transition: background var(--transition), color var(--transition), transform var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.btn-white:hover,
.btn-white:focus-visible {
    background: var(--teal);
    color: white;
    transform: translateY(-2px);
}


/* ─── 3. NAVIGATION ─────────────────────────────────────────── */
nav#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 60px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
nav#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(26, 46, 90, 0.08);
}

.nav-logo img,
.nav-logo .custom-logo { height: 44px; width: auto; }
.nav-logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    color: var(--navy);
}
.nav-logo-text em {
    font-style: normal;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--slate);
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--slate);
    letter-spacing: 0.02em;
    transition: color var(--transition);
    padding: 4px 0;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }
.nav-links a:hover { color: var(--navy); }

.nav-cta {
    background: var(--teal) !important;
    color: white !important;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600 !important;
    transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
    background: var(--navy) !important;
    transform: translateY(-1px);
    color: white !important;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ─── 4. HERO SECTION ───────────────────────────────────────── */
#hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f0f9f9 0%, #e8f4f8 50%, var(--white) 100%);
    z-index: 0;
}
.hero-blob {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 55vw;
    height: 90vh;
    background: radial-gradient(ellipse at 60% 40%,
        rgba(46, 184, 176, 0.12) 0%,
        rgba(26, 46, 90, 0.06) 60%,
        transparent 100%);
    border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%;
    z-index: 0;
}

.hero-left {
    position: relative;
    z-index: 1;
    padding: 80px 60px 80px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sky);
    border: 1px solid rgba(46, 184, 176, 0.35);
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 28px;
}
.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.hero-headline {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.07;
    color: var(--navy);
    margin-bottom: 24px;
}
.hero-headline em {
    font-style: italic;
    color: var(--teal);
}

.hero-sub {
    font-size: 17px;
    color: var(--slate);
    line-height: 1.72;
    max-width: 460px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-right {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
}

.hero-visual {
    width: 100%;
    max-width: 480px;
    position: relative;
}

.hero-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-lg);
}

.stat-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-md);
    padding: 16px 22px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}
.stat-card.left     { bottom: -20px; left: -30px; }
.stat-card.top-right { top: -16px; right: -24px; }

.stat-icon {
    width: 42px;
    height: 42px;
    background: var(--sky);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    color: var(--navy);
    line-height: 1;
}
.stat-lbl {
    font-size: 10px;
    color: var(--slate);
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-top: 3px;
}


/* ─── 5. SERVICES SECTION ───────────────────────────────────── */
#services {
    padding: var(--section-pad);
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1080px;
}

.service-card {
    border-radius: 20px;
    padding: 48px 44px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover    { transform: translateY(-6px); }
.service-card:focus-within { transform: translateY(-6px); }

.service-card.xray {
    background: var(--navy);
    color: white;
}
.service-card.xray:hover { box-shadow: 0 24px 60px rgba(26,46,90,0.3); }

.service-card.ultrasound {
    background: var(--sky);
    border: 1px solid rgba(46,184,176,0.2);
}
.service-card.ultrasound:hover { box-shadow: 0 24px 60px rgba(46,184,176,0.18); }

.service-tag,
.service-coming {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    margin-bottom: 28px;
}
.xray       .service-tag     { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); }
.ultrasound .service-tag     { background: rgba(46,184,176,0.15);  color: var(--teal); }
.service-coming               { background: rgba(46,184,176,0.18); color: var(--teal); border: 1px solid rgba(46,184,176,0.4); }

.service-icon { font-size: 48px; margin-bottom: 20px; display: block; line-height: 1; }

.service-card h3 {
    font-size: 26px;
    margin-bottom: 14px;
}
.xray       h3 { color: white; }
.ultrasound h3 { color: var(--navy); }

.service-card p { font-size: 15px; line-height: 1.7; font-weight: 300; max-width: 340px; }
.xray       p  { color: rgba(255,255,255,0.72); }
.ultrasound p  { color: var(--slate); }

.service-deco {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    pointer-events: none;
}
.xray       .service-deco { background: white;      opacity: 0.05; }
.ultrasound .service-deco { background: var(--teal); opacity: 0.12; }


/* ─── 6. WHY WELL SECTION ───────────────────────────────────── */
#why {
    padding: var(--section-pad);
    background: var(--off-white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-visual {
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy) 0%, #1a4060 100%);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.why-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(46, 184, 176, 0.2);
}

.pillars { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }

.pillar {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.pillar-num {
    font-family: 'DM Serif Display', serif;
    font-size: 34px;
    color: var(--teal);
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
    opacity: 0.9;
}
.pillar-text h3 {
    font-size: 15px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    color: var(--navy);
    letter-spacing: 0;
    margin-bottom: 6px;
}
.pillar-text p {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.65;
    font-weight: 300;
}


/* ─── 7. HOW IT WORKS SECTION ───────────────────────────────── */
#how {
    padding: var(--section-pad);
    text-align: center;
    background: var(--white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 60px;
    position: relative;
    list-style: none;
}
.steps::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, var(--teal), var(--navy));
    opacity: 0.15;
    pointer-events: none;
}

.step { padding: 0 24px; }

.step-num {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--navy);
    background: var(--white);
    border: 2px solid var(--border);
    position: relative;
    z-index: 1;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition);
}
.step:hover .step-num,
.step:focus-within .step-num {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
    transform: scale(1.08);
}

.step h3 {
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    color: var(--navy);
    letter-spacing: 0;
    margin-bottom: 10px;
}
.step p { font-size: 13px; color: var(--slate); line-height: 1.65; font-weight: 300; }


/* ─── 8. OUR TEAM SECTION ───────────────────────────────────── */
#team {
    padding: var(--section-pad);
    background: var(--off-white);
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    background: white;
    border-radius: 20px;
    padding: 36px 24px 32px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--navy));
    opacity: 0;
    transition: opacity var(--transition);
}
.team-card:hover                { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-card:hover::before        { opacity: 1; }

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), #2a4a7a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: 'DM Serif Display', serif;
    font-size: 26px;
    color: white;
    position: relative;
    transition: box-shadow var(--transition);
}
.team-card:hover .team-avatar {
    box-shadow: 0 0 0 3px var(--teal);
}

.team-name {
    font-family: 'DM Serif Display', serif;
    font-size: 17px;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.team-role {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
}

.team-divider {
    width: 32px;
    height: 2px;
    background: var(--border);
    margin: 0 auto;
    transition: width var(--transition), background var(--transition);
}
.team-card:hover .team-divider { width: 56px; background: var(--teal); }


/* ─── 9. CONTACT SECTION ────────────────────────────────────── */
#contact {
    padding: var(--section-pad);
    background: var(--navy);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

#contact .section-eyebrow { color: var(--teal-light); }
#contact .section-title   { color: white; }
#contact .section-sub     { color: rgba(255,255,255,0.58); max-width: 420px; }

.cta-block { display: flex; flex-direction: column; gap: 14px; }

.contact-details { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-md);
    transition: background var(--transition);
}
.contact-item:hover { background: rgba(255,255,255,0.1); }

.contact-item-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }

.contact-item-text strong {
    display: block;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}
.contact-item-text span { color: rgba(255,255,255,0.52); font-size: 14px; }


/* ─── 10. FOOTER ────────────────────────────────────────────── */
footer {
    background: #111d2e;
    padding: 36px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

footer img,
footer .custom-logo { height: 36px; width: auto; }
footer .custom-logo-link { display: inline-block; }
.footer-logo-text { font-size: 16px; color: rgba(255,255,255,0.7); font-family: 'DM Serif Display', serif; letter-spacing: -0.01em; }

.footer-copy { font-size: 13px; color: rgba(255,255,255,0.32); }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.38);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal-light); }


/* ─── 11. ANIMATIONS & UTILITIES ────────────────────────────── */
@keyframes pulse {
    0%, 100% { opacity: 1;   transform: scale(1);   }
    50%       { opacity: 0.4; transform: scale(0.75); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.fade-up         { animation: fadeUp 0.7s ease both; }
.fade-up-1       { animation-delay: 0.10s; }
.fade-up-2       { animation-delay: 0.25s; }
.fade-up-3       { animation-delay: 0.40s; }
.fade-up-4       { animation-delay: 0.55s; }

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fade-up,
    .fade-up-1,
    .fade-up-2,
    .fade-up-3,
    .fade-up-4 {
        animation: none;
        opacity: 1;
    }
    html { scroll-behavior: auto; }
}

/* Focus-visible styles (keyboard nav) */
:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 4px;
}


/* ─── 12. RESPONSIVE — TABLET (≤1024px) ─────────────────────── */
@media (max-width: 1024px) {
    :root { --section-pad: 90px 48px; }

    nav#navbar { padding: 16px 40px; }

    .team-grid { grid-template-columns: repeat(2, 1fr); }

    .steps::before { display: none; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 48px; }
}


/* ─── 13. RESPONSIVE — MOBILE (≤768px) ──────────────────────── */
@media (max-width: 768px) {
    :root { --section-pad: 72px 24px; }

    /* Nav */
    nav#navbar { padding: 14px 24px; }

    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex; }
    .nav-links li   { width: 100%; }
    .nav-links a    { display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
    .nav-links li:last-child a { border-bottom: none; margin-top: 8px; }
    .nav-cta {
        display: inline-block !important;
        width: auto !important;
        padding: 12px 28px !important;
        border-radius: var(--radius-pill) !important;
        text-align: center;
        margin: 8px 0 4px !important;
        border-bottom: none !important;
    }

    /* Hero */
    #hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 76px;
    }
    .hero-left  { padding: 56px 24px 32px; }
    .hero-right { padding: 0 24px 64px; }
    .stat-card.top-right { display: none; }
    .stat-card.left { left: 0; bottom: -12px; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; }
    .service-card  { padding: 36px 28px; }

    /* Why Well */
    #why {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .why-visual { aspect-ratio: 16 / 7; }

    /* Steps */
    .steps { grid-template-columns: 1fr; gap: 40px; }

    /* Team */
    .team-grid { grid-template-columns: repeat(2, 1fr); }

    /* Contact */
    #contact {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Footer */
    footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
    }
    .footer-links { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
    .hero-headline { font-size: 36px; }
}


/* ═══════════════════════════════════════════════════════════════
   INNER PAGE STYLES
   Shared across: Services, Team, How It Works, Contact
═══════════════════════════════════════════════════════════════ */

/* ── Page Hero (shared) ──────────────────────────────────────── */
.page-hero {
    min-height: 340px;
    background: linear-gradient(135deg, #f0f9f9 0%, #e8f4f8 60%, var(--white) 100%);
    display: flex;
    align-items: center;
    padding: 120px 80px 80px;
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* nav height offset */
}
.page-hero--dark {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a5a 100%);
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
}
.page-hero-title {
    font-size: clamp(36px, 5vw, 58px);
    color: var(--navy);
    margin-bottom: 18px;
    line-height: 1.05;
}
.page-hero-sub {
    font-size: 17px;
    color: var(--slate);
    line-height: 1.72;
    font-weight: 300;
    max-width: 520px;
}
.page-hero-deco {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.deco-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(26,46,90,0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* ── Services Page ───────────────────────────────────────────── */
.service-detail {
    padding: 80px 80px;
    background: var(--white);
}
.service-detail--alt {
    background: var(--off-white);
}
.service-detail-inner {
    max-width: 1080px;
    margin: 0 auto;
}
.service-detail-header {
    margin-bottom: 48px;
}
.service-detail-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}
.service-detail-badge.available {
    background: rgba(46,184,176,0.12);
    color: var(--teal);
    border: 1px solid rgba(46,184,176,0.35);
}
.service-detail-badge.coming {
    background: rgba(255,180,0,0.1);
    color: #b07d00;
    border: 1px solid rgba(255,180,0,0.3);
}
.service-detail-icon {
    font-size: 52px;
    display: block;
    margin-bottom: 16px;
    line-height: 1;
}
.service-detail-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--navy);
    margin-bottom: 16px;
}
.service-detail-intro {
    font-size: 17px;
    color: var(--slate);
    line-height: 1.72;
    max-width: 680px;
    font-weight: 300;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 52px;
}
.service-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 28px 24px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-detail--alt .service-info-card {
    background: white;
}
.service-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}
.sic-icon { font-size: 28px; margin-bottom: 14px; line-height: 1; }
.service-info-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    color: var(--teal);
}
.sic-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sic-list li {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.55;
    padding-left: 16px;
    position: relative;
}
.sic-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-size: 12px;
}

.service-faq { margin-bottom: 48px; }
.service-faq h3 {
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 28px;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.faq-item {
    background: var(--off-white);
    border-radius: 14px;
    padding: 24px 24px 20px;
    border-left: 3px solid var(--teal);
}
.service-detail--alt .faq-item { background: white; }
.faq-item h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0;
    margin-bottom: 8px;
}
.faq-item p {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.65;
}

.service-cta { padding-top: 12px; }

.coming-soon-notice {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--navy), #1a3a60);
    border-radius: 16px;
    padding: 32px 32px;
    color: white;
    margin-top: 8px;
}
.csn-icon { font-size: 32px; flex-shrink: 0; margin-top: 2px; }
.coming-soon-notice h3 {
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
}
.coming-soon-notice p {
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
}


/* ── Team Page ───────────────────────────────────────────────── */
.team-page-section {
    padding: 80px 80px;
    background: var(--white);
}
.team-page-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.team-profile {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 48px;
    align-items: flex-start;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--border);
}
.team-profile:last-child { border-bottom: none; padding-bottom: 0; }
.team-profile--reverse {
    grid-template-columns: 1fr 160px;
}
.team-profile--reverse .team-profile-avatar {
    order: 2;
}
.team-profile--reverse .team-profile-content {
    order: 1;
}

.team-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), #2a4a7a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 36px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px var(--sky), 0 0 0 6px var(--teal);
    margin: 0 auto;
}

.team-profile-role {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 8px;
}
.team-profile-name {
    font-size: clamp(22px, 3vw, 30px);
    color: var(--navy);
    margin-bottom: 16px;
}
.team-profile-divider {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--navy));
    border-radius: 2px;
    margin-bottom: 20px;
}
.team-profile-bio {
    font-size: 15px;
    color: var(--slate);
    line-height: 1.78;
    font-weight: 300;
    margin-bottom: 20px;
}
.team-profile-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.profile-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: var(--sky);
    color: var(--teal);
    border: 1px solid rgba(46,184,176,0.25);
}

.team-cta-section {
    background: var(--navy);
    padding: 80px;
    text-align: center;
}
.team-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}


/* ── Contact Page ────────────────────────────────────────────── */
.contact-page-section {
    padding: 80px 80px;
    background: var(--white);
}
.contact-page-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: flex-start;
}

.contact-col-title {
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 28px;
}
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--off-white);
    border-radius: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    transition: background var(--transition);
}
.contact-info-card:hover { background: var(--sky); }
.cic-icon { font-size: 22px; flex-shrink: 0; }
.cic-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 3px;
}
.cic-text span, .cic-text a {
    font-size: 14px;
    color: var(--slate);
}
.cic-note {
    font-size: 12px !important;
    color: var(--teal) !important;
    margin-top: 3px;
    display: block;
    font-style: italic;
}
.contact-phone-link {
    color: var(--teal);
    font-weight: 500;
    transition: color var(--transition);
}
.contact-phone-link:hover { color: var(--navy); }

.contact-call-btn {
    display: block;
    text-align: center;
    margin: 20px 0 24px;
}
.contact-map {
    border-radius: 14px;
    overflow: hidden;
}
.map-placeholder {
    background: var(--off-white);
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 40px 24px;
    text-align: center;
    color: var(--slate);
}
.map-placeholder span { font-size: 36px; display: block; margin-bottom: 12px; }
.map-placeholder p { font-size: 14px; line-height: 1.6; }
.map-placeholder strong { color: var(--navy); }

/* Contact Form */
.contact-form-note {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.65;
    margin-bottom: 28px;
    padding: 14px 18px;
    background: var(--sky);
    border-radius: 10px;
    border-left: 3px solid var(--teal);
}
.contact-native-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.02em;
}
.form-group label span { color: var(--teal); }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: white;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(46,184,176,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { align-self: flex-start; cursor: pointer; }
.form-success {
    padding: 14px 18px;
    background: rgba(46,184,176,0.1);
    border: 1px solid rgba(46,184,176,0.3);
    border-radius: 10px;
    color: var(--teal);
    font-size: 14px;
    font-weight: 500;
}
.form-error {
    padding: 14px 18px;
    background: rgba(200,50,50,0.08);
    border: 1px solid rgba(200,50,50,0.2);
    border-radius: 10px;
    color: #c03030;
    font-size: 14px;
}


/* ── How It Works Page ───────────────────────────────────────── */
.hiw-page-section {
    padding: 80px 80px;
    background: var(--white);
}
.hiw-page-inner {
    max-width: 820px;
    margin: 0 auto;
}
.hiw-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
}
.hiw-step-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.hiw-step-item:last-child { border-bottom: none; }
.hiw-step-item::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 96px;
    bottom: -1px;
    width: 2px;
    background: linear-gradient(180deg, var(--teal) 0%, transparent 100%);
    opacity: 0.2;
}
.hiw-step-item:last-child::before { display: none; }

.hiw-step-num {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), #2a4a7a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(26,46,90,0.2);
}
.hiw-step-body h2 {
    font-size: clamp(20px, 2.5vw, 26px);
    color: var(--navy);
    margin-bottom: 14px;
}
.hiw-step-body p {
    font-size: 15px;
    color: var(--slate);
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 16px;
}
.hiw-tip {
    background: var(--sky);
    border-left: 3px solid var(--teal);
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--slate);
    line-height: 1.6;
    margin-top: 16px;
}
.hiw-tip strong { color: var(--navy); }

.hiw-inline-btn { margin-top: 20px; display: inline-block; }

.hiw-prep-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 18px;
}
.hiw-prep-card {
    background: var(--off-white);
    border-radius: 14px;
    padding: 22px 22px;
    border: 1px solid var(--border);
}
.hiw-prep-card--coming { opacity: 0.8; }
.hiw-prep-icon { font-size: 28px; margin-bottom: 10px; display: block; }
.hiw-prep-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.coming-badge {
    font-size: 9px;
    background: rgba(255,180,0,0.12);
    color: #b07d00;
    border: 1px solid rgba(255,180,0,0.3);
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hiw-prep-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hiw-prep-card ul li {
    font-size: 13px;
    color: var(--slate);
    padding-left: 14px;
    position: relative;
}
.hiw-prep-card ul li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: bold;
}

.hiw-bring-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}
.hiw-bring-list li {
    font-size: 15px;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hiw-cta-section {
    background: var(--off-white);
    border-top: 1px solid var(--border);
    padding: 80px;
    text-align: center;
}
.hiw-cta-inner {
    max-width: 560px;
    margin: 0 auto;
}
.hiw-cta-inner .section-eyebrow { margin-bottom: 14px; }
.hiw-cta-inner h2 {
    font-size: clamp(26px, 4vw, 38px);
    color: var(--navy);
    margin-bottom: 16px;
}
.hiw-cta-inner p {
    font-size: 16px;
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 32px;
    font-weight: 300;
}


/* ── Inner page responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
    .page-hero { padding: 110px 48px 64px; }
    .service-detail,
    .team-page-section,
    .contact-page-section,
    .hiw-page-section,
    .team-cta-section,
    .hiw-cta-section { padding: 64px 48px; }
}

@media (max-width: 768px) {
    .page-hero { padding: 100px 24px 56px; min-height: auto; }
    .page-hero-deco { display: none; }

    .service-detail,
    .team-page-section,
    .contact-page-section,
    .hiw-page-section,
    .team-cta-section,
    .hiw-cta-section { padding: 56px 24px; }

    .service-detail-grid,
    .faq-grid { grid-template-columns: 1fr; }

    .team-profile,
    .team-profile--reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .team-profile--reverse .team-profile-avatar,
    .team-profile--reverse .team-profile-content { order: unset; }
    .team-profile-divider { margin: 0 auto 20px; }
    .team-profile-tags { justify-content: center; }

    .contact-page-inner { grid-template-columns: 1fr; gap: 48px; }
    .form-row { grid-template-columns: 1fr; }

    .hiw-step-item { grid-template-columns: 1fr; gap: 16px; }
    .hiw-step-item::before { display: none; }
    .hiw-step-num { width: 56px; height: 56px; font-size: 20px; }
    .hiw-prep-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   TEAM BIOS PAGE STYLES
═══════════════════════════════════════════════════════════════ */

.bios-section {
    padding: 80px 80px;
    background: var(--white);
}
.bios-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Bio Card */
.bio-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.bio-card:hover { box-shadow: var(--shadow-md); }

/* Sidebar */
.bio-card-sidebar {
    background: linear-gradient(180deg, var(--navy) 0%, #1a3a5a 100%);
    padding: 40px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}
.bio-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 2px solid var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: white;
}
.bio-avatar--eng {
    background: rgba(46,184,176,0.2);
    border-color: var(--teal-light);
}
.bio-credentials {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bio-credentials span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.07);
    padding: 4px 10px;
    border-radius: 100px;
}
.bio-call-btn {
    display: inline-block;
    background: var(--teal);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.bio-call-btn:hover { background: white; color: var(--navy); transform: translateY(-2px); }

/* Content */
.bio-card-content {
    padding: 40px 44px;
    background: white;
}
.bio-role {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 8px;
}
.bio-name {
    font-size: clamp(22px, 2.8vw, 30px);
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.15;
}
.bio-creds-inline {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--slate);
    letter-spacing: 0;
}
.bio-divider {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--navy));
    border-radius: 2px;
    margin-bottom: 22px;
}
.bio-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}
.bio-body p {
    font-size: 15px;
    color: var(--slate);
    line-height: 1.78;
    font-weight: 300;
}

/* Tags */
.bio-tags-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.bio-tag-group { display: flex; flex-direction: column; gap: 8px; }
.bio-tag-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
}
.bio-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bio-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 100px;
    background: var(--sky);
    color: var(--teal);
    border: 1px solid rgba(46,184,176,0.2);
}
.bio-tag--edu {
    background: rgba(26,46,90,0.05);
    color: var(--navy);
    border-color: rgba(26,46,90,0.12);
}
.bio-tag--award {
    background: rgba(255,200,0,0.1);
    color: #8a6500;
    border-color: rgba(255,200,0,0.3);
}

/* Bottom CTA */
.bios-cta {
    background: var(--navy);
    padding: 80px;
    text-align: center;
}
.bios-cta-inner { max-width: 600px; margin: 0 auto; }

/* Also add "View Full Bio" link to team cards on /our-team */
.team-bio-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
    margin-top: 14px;
    letter-spacing: 0.04em;
    transition: gap 0.2s, color 0.2s;
}
.team-bio-link:hover { gap: 10px; color: var(--navy); }

/* Bios responsive */
@media (max-width: 900px) {
    .bios-section { padding: 56px 24px; }
    .bio-card { grid-template-columns: 1fr; }
    .bio-card-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 28px 24px;
        gap: 16px;
    }
    .bio-card-content { padding: 28px 28px; }
    .bios-cta { padding: 60px 24px; }
}
@media (max-width: 560px) {
    .bio-card-sidebar { flex-direction: column; }
}
