/* ================================================================
   Mascot Healthcare – Unified Blue Theme
   shared.css — linked by all lab test pages
   ================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
    --primary:        #2563eb;
    --primary-light:  #93c5fd;
    --primary-dark:   #1e40af;
    --accent:         #38bdf8;
    --accent-light:   #bae6fd;
    --bg-base:        #f8fafc;
    --bg-alt:         #eff6ff;
    --bg-card:        #ffffff;
    --text-dark:      #0f172a;
    --text-mid:       #1e3a5f;
    --text-soft:      #475569;
    --font-display:   'Cormorant Garamond', Georgia, serif;
    --font-body:      'DM Sans', system-ui, -apple-system, sans-serif;
    --wa-green:       #25D366;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Base ── */
body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(248,250,252,0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(37,99,235,0.1);
    transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 30px rgba(15,23,42,0.08); }

.nav-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    justify-content: space-between;
}
.nav-back {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-back:hover { color: var(--primary); }
.nav-brand {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 0.04em;
    text-decoration: none;
    flex: 1;
    text-align: center;
}
.nav-brand span { color: var(--accent); }
.nav-cta {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.nav-cta:hover { background: var(--primary); transform: translateY(-1px); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 80px 80px;
    position: relative;
    overflow: hidden;
    gap: 60px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 70% 50%, rgba(37,99,235,0.08) 0%, transparent 70%),
                radial-gradient(ellipse 40% 60% at 10% 80%, rgba(56,189,248,0.07) 0%, transparent 60%);
    pointer-events: none;
}
.hero-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero-deco-1 {
    width: 500px; height: 500px;
    right: -60px; top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
    border: 1px solid rgba(37,99,235,0.08);
}
.hero-deco-2 {
    width: 300px; height: 300px;
    right: 60px; top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(56,189,248,0.06) 0%, transparent 70%);
    border: 1px solid rgba(56,189,248,0.1);
}
.hero-text { position: relative; z-index: 2; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 24px;
}
.hero-eyebrow::before {
    content: '';
    width: 32px; height: 1px;
    background: var(--primary-dark);
}
.hero-h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4.5vw, 4.2rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.hero-h1 em {
    font-style: italic;
    color: var(--primary-dark);
}
.hero-subtitle-line {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 300;
    color: var(--text-soft);
    margin-bottom: 32px;
    font-style: italic;
}
.hero-desc {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.75;
    max-width: 440px;
    margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary-hero {
    background: var(--primary-dark);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s;
    display: inline-block;
    position: relative;
    overflow: hidden;
}
.btn-primary-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.btn-primary-hero:hover::before { transform: translateX(0); }
.btn-primary-hero span { position: relative; z-index: 1; }
.btn-primary-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(30,64,175,0.3); color: white; }
.btn-ghost-hero {
    border: 1.5px solid var(--primary-light);
    color: var(--primary-dark);
    padding: 15px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}
.btn-ghost-hero:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 52px;
    padding-top: 32px;
    border-top: 1px solid rgba(37,99,235,0.15);
}
.stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-soft);
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* ── Hero Visual Card Stack ── */
.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-card-stack {
    position: relative;
    width: 340px;
    height: 420px;
}
.hcard {
    position: absolute;
    border-radius: 24px;
    padding: 28px;
    background: white;
    box-shadow: 0 20px 60px rgba(15,23,42,0.1);
}
.hcard-main {
    width: 280px;
    top: 40px; left: 30px;
    background: white;
    z-index: 3;
}
.hcard-back {
    width: 260px;
    top: 10px; left: 50px;
    background: var(--bg-alt);
    z-index: 1;
    transform: rotate(3deg);
    box-shadow: 0 10px 40px rgba(15,23,42,0.06);
}
.hcard-accent {
    width: 160px;
    bottom: 20px; right: 0;
    background: var(--primary-dark);
    color: white;
    z-index: 4;
    padding: 20px;
    transform: rotate(-2deg);
    box-shadow: 0 15px 40px rgba(30,64,175,0.3);
}
.hcard-tag {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}
.hcard-accent .hcard-tag { color: rgba(255,255,255,0.65); }
.hcard-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.hcard-accent .hcard-title { color: white; font-size: 1rem; }
.hcard-value {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--primary-dark);
    line-height: 1;
}
.hcard-unit {
    font-size: 0.75rem;
    color: var(--text-soft);
    margin-top: 4px;
}
.hcard-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}
.hcard-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-alt);
    border-radius: 2px;
    overflow: hidden;
}
.hcard-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-dark));
    border-radius: 2px;
    animation: barGrow 2s ease-out 0.5s both;
}
.hcard-bar-pct { font-size: 0.7rem; color: var(--text-soft); }
.hcard-dot-row { display: flex; gap: 6px; margin-top: 8px; }
.hcard-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}
.hcard-dot.active { background: white; }

/* ================================================================
   CONTENT SECTIONS
   ================================================================ */
section { padding: 100px 80px; }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 18px;
}
.section-eyebrow::before {
    content: '';
    width: 24px; height: 1px;
    background: var(--primary-dark);
}
.section-h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.section-h2 em { font-style: italic; color: var(--primary-dark); }
.section-lead {
    font-size: 1rem;
    color: var(--text-soft);
    max-width: 560px;
    line-height: 1.75;
}

/* ── About Section ── */
.about-section {
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}
.about-section::before {
    position: absolute;
    font-family: var(--font-display);
    font-size: 14rem;
    font-weight: 600;
    color: rgba(37,99,235,0.04);
    top: 50%; left: -40px;
    transform: translateY(-50%);
    pointer-events: none;
    line-height: 1;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}
.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.acard {
    background: white;
    border-radius: 20px;
    padding: 28px 24px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}
.acard:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(15,23,42,0.09); }
.acard:first-child {
    grid-column: 1 / -1;
    background: var(--primary-dark);
    color: white;
}
.acard-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(37,99,235,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 14px;
}
.acard:first-child .acard-icon { background: rgba(255,255,255,0.15); }
.acard-h {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.acard:first-child .acard-h { color: white; font-size: 1.3rem; }
.acard-p {
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.6;
}
.acard:first-child .acard-p { color: rgba(255,255,255,0.78); }

/* ── When Section ── */
.when-section { background: var(--bg-base); }
.when-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 56px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.indicator-list { display: flex; flex-direction: column; gap: 0; }
.indicator-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid rgba(37,99,235,0.1);
    cursor: default;
    transition: all 0.25s;
    position: relative;
}
.indicator-item::before {
    content: '';
    position: absolute;
    left: -24px;
    width: 3px;
    height: 0;
    background: var(--primary-dark);
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    transition: height 0.25s;
}
.indicator-item:hover::before { height: 60%; }
.ind-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-light);
    line-height: 1;
    min-width: 36px;
    transition: color 0.25s;
}
.indicator-item:hover .ind-num { color: var(--primary-dark); }
.ind-title {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.ind-desc {
    font-size: 0.82rem;
    color: var(--text-soft);
    line-height: 1.55;
}
.when-visual { position: sticky; top: 100px; }
.timeline-card {
    background: white;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(15,23,42,0.07);
}
.tl-heading {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(37,99,235,0.12);
}
.tl-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.tl-label {
    font-size: 0.75rem;
    color: var(--text-soft);
    width: 120px;
    flex-shrink: 0;
}
.tl-track {
    flex: 1;
    height: 6px;
    background: var(--bg-alt);
    border-radius: 3px;
    overflow: hidden;
}
.tl-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-dark));
    animation: barGrow 1.5s ease-out both;
}
.tl-val {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-dark);
    width: 110px;
    text-align: right;
    flex-shrink: 0;
}
.tl-note {
    margin-top: 24px;
    padding: 16px;
    background: rgba(37,99,235,0.06);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}
.tl-note p {
    font-size: 0.78rem;
    color: var(--text-mid);
    line-height: 1.55;
}

/* ── Preparation Section ── */
.prep-section { background: var(--bg-alt); }
.prep-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.prep-card {
    background: white;
    border-radius: 20px;
    padding: 36px 28px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.prep-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(15,23,42,0.1); }
.prep-card.featured {
    background: var(--text-dark);
    color: white;
}
.prep-num {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 16px;
}
.prep-card.featured .prep-num { color: rgba(147,197,253,0.4); }
.prep-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.prep-card.featured .prep-title { color: white; }
.prep-text {
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.65;
}
.prep-card.featured .prep-text { color: rgba(255,255,255,0.62); }

/* ── Why Section ── */
.why-section { background: var(--bg-base); }
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.why-features { display: flex; flex-direction: column; gap: 20px; }
.why-feat {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    border-radius: 16px;
    transition: background 0.25s, transform 0.25s;
    cursor: default;
}
.why-feat:hover { background: var(--bg-alt); transform: translateX(6px); }
.why-feat-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    background: rgba(37,99,235,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.why-feat-h {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.why-feat-p {
    font-size: 0.83rem;
    color: var(--text-soft);
    line-height: 1.6;
}
.testimonial-card {
    background: var(--primary-dark);
    color: white;
    border-radius: 28px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    font-family: var(--font-display);
    font-size: 14rem;
    font-weight: 600;
    color: rgba(255,255,255,0.05);
    top: -20px; left: 20px;
    line-height: 1;
}
.test-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}
.test-author {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.test-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.test-name { font-size: 0.85rem; font-weight: 600; }
.test-role { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}
.trust-badge {
    background: white;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
}
.badge-num {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--primary-dark);
}
.badge-label {
    font-size: 0.7rem;
    color: var(--text-soft);
    margin-top: 2px;
}

/* ── Related Tests ── */
.related-section {
    background: var(--bg-alt);
    padding: 60px 80px;
}
.related-inner { max-width: 1200px; margin: 0 auto; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}
.related-card {
    background: white;
    border-radius: 16px;
    padding: 22px 18px;
    text-decoration: none;
    color: var(--text-dark);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(37,99,235,0.08);
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37,99,235,0.12);
    color: var(--primary-dark);
}
.related-icon { font-size: 2rem; margin-bottom: 10px; }
.related-name {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.3;
}
.related-arrow {
    font-size: 0.75rem;
    color: var(--primary);
    margin-top: 8px;
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
    background: var(--text-dark);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 100px 80px;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(37,99,235,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.cta-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 20px;
}
.cta-eyebrow::before, .cta-eyebrow::after {
    content: '';
    width: 20px; height: 1px;
    background: var(--primary-light);
}
.cta-h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 16px;
}
.cta-h2 em { color: var(--primary-light); font-style: italic; }
.cta-p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 8px;
    line-height: 1.6;
}
.cta-addr {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.42);
    margin-bottom: 44px;
}
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-cta-call {
    background: white;
    color: var(--text-dark);
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-cta-call:hover { background: var(--accent-light); transform: translateY(-2px); color: var(--text-dark); }
.btn-cta-wa {
    background: var(--wa-green);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-cta-wa:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,0.35); color: white; }
.btn-cta-book {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-cta-book:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); color: white; }
.cta-hours {
    margin-top: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
}
.cta-hours::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74,222,128,0.2);
    animation: pulse 2s infinite;
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
    background: #0b1221;
    color: rgba(255,255,255,0.4);
    padding: 32px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 1rem;
    color: rgba(255,255,255,0.62);
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary-light); }

/* ================================================================
   ANIMATIONS & UTILITIES
   ================================================================ */
@keyframes barGrow {
    from { width: 0; }
    to { width: var(--w, 65%); }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.2); }
    50% { box-shadow: 0 0 0 6px rgba(74,222,128,0.08); }
}
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Section max-width wrappers ── */
.section-inner { max-width: 1200px; margin: 0 auto; }

/* ── Breadcrumb ── */
.breadcrumb-nav {
    background: white;
    border-bottom: 1px solid rgba(37,99,235,0.08);
    padding: 10px 80px;
    font-size: 0.78rem;
    color: var(--text-soft);
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 64px; /* below fixed nav */
}
.breadcrumb-nav a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-sep { color: rgba(0,0,0,0.25); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    nav { padding: 14px 20px; }
    .nav-brand { display: none; }
    .hero {
        grid-template-columns: 1fr;
        padding: 100px 24px 60px;
        gap: 40px;
        text-align: center;
    }
    .hero-desc { margin: 0 auto 36px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-deco-1, .hero-deco-2 { display: none; }
    .hero-card-stack { width: 280px; height: 340px; margin: 0 auto; }
    section { padding: 60px 24px; }
    .about-grid,
    .when-grid,
    .why-grid { grid-template-columns: 1fr; gap: 40px; }
    .when-visual { position: static; }
    .prep-grid { grid-template-columns: 1fr; }
    .cta-section { padding: 60px 24px; }
    footer {
        flex-direction: column;
        gap: 14px;
        padding: 24px;
        text-align: center;
    }
    .footer-links { justify-content: center; }
    .related-section { padding: 40px 24px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .breadcrumb-nav { padding: 10px 24px; margin-top: 56px; }
}

@media (max-width: 480px) {
    .hero-card-stack { width: 260px; height: 300px; }
    .hcard-main { width: 240px; }
    .prep-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-actions { flex-direction: column; align-items: center; }
}

/* ================================================================
   LAGOS TEMPLATE EXTENSIONS
   Classes used in tests/lagos/ pages — supplements the above.
   ================================================================ */

/* ── Container ── */
.container { max-width: 1200px; margin-left: auto; margin-right: auto; }

/* ── Section label / intro ── */
.section-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}
.section-intro {
    font-size: 1rem;
    color: var(--text-soft);
    max-width: 680px;
    line-height: 1.75;
    margin-bottom: 40px;
}

/* ── Hero inner (Lagos 2-col wrapper spans both hero grid columns) ── */
.hero-inner {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4.5vw, 4.2rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.hero h1 em { font-style: italic; color: var(--primary-dark); }
.hero-sub {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.75;
    max-width: 440px;
    margin-bottom: 32px;
}
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stat { display: flex; flex-direction: column; }

/* ── Buttons ── */
.btn-primary {
    background: var(--primary-dark);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}
.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30,64,175,0.3);
    color: white;
}
.btn-outline {
    border: 1.5px solid var(--primary-light);
    color: var(--primary-dark);
    padding: 15px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}
.btn-outline:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

/* ── Hero visual (Lagos lab-report card — no .hero-card-stack wrapper) ── */
.hero-inner .hero-visual { position: relative; height: 420px; }

/* All three Lagos card layers need position:absolute (normally from .hcard base class) */
.hero-inner .hcard-main,
.hero-inner .hcard-back,
.hero-inner .hcard-accent { position: absolute; }

.hero-inner .hcard-main {
    border-radius: 24px;
    padding: 24px;
    background: white;
    box-shadow: 0 20px 60px rgba(15,23,42,0.12);
    min-height: 280px;
}
.hero-inner .hcard-back {
    border-radius: 24px;
    padding: 24px;
    background: var(--bg-alt);
    box-shadow: 0 10px 40px rgba(15,23,42,0.06);
    min-height: 280px; /* empty decorative div needs explicit height */
}
.hero-inner .hcard-accent {
    border-radius: 20px;
    padding: 20px;
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 15px 40px rgba(30,64,175,0.3);
    min-height: 100px; /* empty decorative div needs explicit height */
}

/* Lab-report card internal structure */
.hcard-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(37,99,235,0.1);
}
.hcard-logo {
    background: var(--primary-dark);
    color: white;
    border-radius: 8px;
    width: 30px; height: 30px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hcard-header .hcard-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 0; }
.hcard-body { display: flex; flex-direction: column; gap: 7px; }
.hcard-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 7px 10px;
    background: var(--bg-alt);
    border-radius: 8px;
}
.hcard-label { font-size: 0.72rem; color: var(--text-soft); min-width: 0; }
.hcard-val   { font-size: 0.73rem; font-weight: 600; color: var(--text-dark); white-space: nowrap; }
.hcard-flag  { font-size: 0.6rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.flag-normal { background: #dcfce7; color: #15803d; }
.flag-high   { background: #fef2f2; color: #b91c1c; }
.flag-low    { background: #eff6ff; color: var(--primary); }
.flag-warn   { background: #fef9c3; color: #854d0e; }
.hcard-footer {
    font-size: 0.62rem;
    color: var(--text-soft);
    text-align: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(37,99,235,0.08);
}

/* ── About cards (Lagos 3-up layout) ── */
.about-cards:has(.about-card) { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-card {
    background: white;
    border-radius: 20px;
    padding: 28px 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(15,23,42,0.09); }
.about-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.about-card > p {
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.65;
    margin-bottom: 12px;
}
.about-list { list-style: none; display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.about-list li {
    font-size: 0.8rem;
    color: var(--text-mid);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}
.about-list li::before { content: '·'; position: absolute; left: 4px; color: var(--primary); font-weight: bold; }

/* ── When section — Lagos variant ── */
.when-indicators { display: flex; flex-direction: column; gap: 0; }
.indicator-icon { font-size: 1.4rem; width: 40px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.indicator-text { display: flex; flex-direction: column; gap: 4px; }
.indicator-text strong { font-size: 0.88rem; font-weight: 600; color: var(--text-dark); display: block; }
.indicator-text span  { font-size: 0.82rem; color: var(--text-soft); line-height: 1.55; }
.when-card {
    background: white;
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 20px 60px rgba(15,23,42,0.07);
    position: sticky;
    top: 100px;
}
.when-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(37,99,235,0.12);
}
.timeline { display: flex; flex-direction: column; }
.timeline-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(37,99,235,0.08);
}
.timeline-item:last-child { border-bottom: none; }
.tl-marker {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 5px;
}
.tl-content { display: flex; flex-direction: column; gap: 3px; }
.tl-content strong { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); display: block; }
.tl-content span   { font-size: 0.8rem; color: var(--text-soft); line-height: 1.55; }

/* ── Prep cards (Lagos 3-col variant) ── */
.prep-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.prep-step {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}
.prep-card h3 { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.prep-card > p { font-size: 0.85rem; color: var(--text-soft); line-height: 1.65; }

/* ── Why section — Lagos variant ── */
.why-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    border-radius: 16px;
    transition: background 0.25s, transform 0.25s;
}
.why-feature:hover { background: var(--bg-alt); transform: translateX(6px); }
.why-icon {
    font-size: 1.4rem;
    width: 50px; height: 50px;
    border-radius: 14px;
    background: rgba(37,99,235,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.why-feature strong { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); display: block; margin-bottom: 4px; }
.why-feature > div > p { font-size: 0.83rem; color: var(--text-soft); line-height: 1.6; margin: 0; }
.why-aside { display: flex; flex-direction: column; gap: 20px; }

/* Testimonial card (Lagos variant — inside .testimonial-card which already has dark bg) */
.testimonial-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    color: white;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.author-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}
.testimonial-author strong { font-size: 0.85rem; font-weight: 600; color: white; display: block; }
.testimonial-author span   { font-size: 0.75rem; color: rgba(255,255,255,0.6); display: block; }

/* Badges */
.badges { display: flex; flex-direction: column; gap: 10px; }
.badge {
    background: white;
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-mid);
}

/* ── Related section (Lagos variant) ── */
.related-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}
.related-desc { font-size: 0.78rem; color: var(--text-soft); line-height: 1.5; margin-top: 6px; }

/* ── Lagos responsive overrides ── */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-inner .hero-visual { height: 340px; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cta-row { justify-content: center; }
    .hero-stats { justify-content: center; }
    .about-cards:has(.about-card) { grid-template-columns: 1fr; }
    .prep-cards { grid-template-columns: 1fr; }
    .related-cards { grid-template-columns: repeat(2, 1fr); }
    .when-card { position: static; }
    .why-aside { gap: 16px; }
}
@media (max-width: 480px) {
    .hero-inner .hero-visual { height: 280px; }
    .related-cards { grid-template-columns: repeat(2, 1fr); }
}
