/* ==========================================================================
   Wright Touch Mobile Phlebotomy Services
   Design System — variables, type, base
   ========================================================================== */

:root {
    /* Color */
    --wt-blue:        #1E4FA0;
    --wt-blue-deep:    #15356E;
    --wt-blue-soft:    #E8EFFA;
    --wt-green:        #2F9E51;
    --wt-green-deep:   #1F7038;
    --wt-green-soft:   #E7F6EC;
    --wt-red:          #D2302C;
    --wt-red-soft:     #FBEAEA;
    --wt-ink:          #1C2430;
    --wt-slate:        #4B5563;
    --wt-slate-light:  #7C8794;
    --wt-paper:        #FBFCFE;
    --wt-cloud:        #F2F5F9;
    --wt-line:         #E2E8F0;
    --wt-white:        #FFFFFF;

    /* Type */
    --font-display: 'Outfit', 'Poppins', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Radii / shadow */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 10px rgba(28, 36, 48, 0.06);
    --shadow-md: 0 12px 32px rgba(28, 36, 48, 0.10);
    --shadow-lg: 0 24px 60px rgba(28, 36, 48, 0.14);

    /* Layout */
    --container-max: 1180px;
    --nav-height: 84px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--wt-ink);
    background: var(--wt-paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

svg { width: 1em; height: 1em; flex-shrink: 0; }

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    margin: 0 0 0.5em 0;
    line-height: 1.15;
    color: var(--wt-ink);
    font-weight: 600;
}

h1 { font-size: clamp(1.7rem, 5.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 4.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 3.4vw, 1.35rem); }
h4 { font-size: clamp(1rem, 2.8vw, 1.1rem); }

p { margin: 0 0 1em 0; color: var(--wt-slate); }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 88px 0;
}

.section-tight { padding: 56px 0; }

.section-alt {
    background: var(--wt-cloud);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wt-green-deep);
    background: var(--wt-green-soft);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}

.eyebrow.blue { color: var(--wt-blue-deep); background: var(--wt-blue-soft); }
.eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--wt-red);
}

.section-head {
    max-width: 680px;
    margin: 0 0 48px 0;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head p {
    font-size: 1.08rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 15px 28px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--wt-blue);
    color: var(--wt-white);
    box-shadow: 0 10px 24px rgba(30, 79, 160, 0.28);
}
.btn-primary:hover { background: var(--wt-blue-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 79, 160, 0.34); }

.btn-accent {
    background: var(--wt-red);
    color: var(--wt-white);
    box-shadow: 0 10px 24px rgba(210, 48, 44, 0.28);
}
.btn-accent:hover { background: #B82622; transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: var(--wt-blue);
    border: 1.5px solid var(--wt-blue);
}
.btn-outline:hover { background: var(--wt-blue-soft); transform: translateY(-2px); }

.btn-outline-light {
    background: rgba(255,255,255,0.08);
    color: var(--wt-white);
    border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Top announcement bar ---------- */
.topbar {
    background: var(--wt-blue-deep);
    color: rgba(255,255,255,0.92);
    font-size: 0.84rem;
    font-family: var(--font-display);
    font-weight: 500;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 9px;
    padding-bottom: 9px;
    gap: 16px;
    flex-wrap: wrap;
}
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a svg, .topbar-right svg { width: 14px; height: 14px; }
.topbar a:hover { color: var(--wt-white); }
.topbar-right { display: flex; gap: 22px; align-items: center; }

/* ---------- Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--wt-paper);
    border-bottom: 1px solid var(--wt-line);
    isolation: isolate;
    transform: translateZ(0);
    will-change: transform;
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand img { height: 46px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.96rem;
}
.nav-links a {
    position: relative;
    padding: 6px 2px;
    color: var(--wt-ink);
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--wt-green);
    transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--wt-blue); }
.nav-contact-link { display: none; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--wt-ink);
    margin: 5px 0;
    transition: 0.25s;
    border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 940px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--wt-white);
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 18px 24px 28px;
        border-bottom: 1px solid var(--wt-line);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--wt-line); }
    .nav-cta .btn-outline { display: none; }
    .nav-contact-link { display: block !important; }
    .nav-toggle { display: block; }
    .topbar-right span:last-child { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--wt-blue-deep);
    color: rgba(255,255,255,0.82);
    padding: 64px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-grid h4 {
    color: var(--wt-white);
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.footer-grid a, .footer-grid p { color: rgba(255,255,255,0.78); font-size: 0.95rem; }
.footer-grid a { display: block; margin-bottom: 10px; transition: color 0.2s; }
.footer-grid a:hover { color: var(--wt-white); }
.footer-brand img { height: 42px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0;
}
.footer-social a:hover { background: var(--wt-green); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.55);
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--wt-white); }

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(.22,.85,.4,1), transform 0.7s cubic-bezier(.22,.85,.4,1);
    will-change: opacity, transform;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
.reveal.in-view:not(:hover) {
    /* Drop the GPU layer once the animation has settled so it stops being
       composited against the sticky header on every scroll frame (this is
       what causes the soft blur/ghosting near the header while scrolling). */
    will-change: auto;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- Cards ---------- */
.card {
    background: var(--wt-white);
    border: 1px solid var(--wt-line);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.icon-badge {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.blue { background: var(--wt-blue-soft); color: var(--wt-blue); }
.icon-badge.green { background: var(--wt-green-soft); color: var(--wt-green-deep); }
.icon-badge.red { background: var(--wt-red-soft); color: var(--wt-red); }

.price-tag {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--wt-blue);
    font-size: 1.1rem;
}

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 980px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Route motif (signature element) ---------- */
.route-divider {
    position: relative;
    height: 90px;
    overflow: hidden;
}
.route-divider svg { width: 100%; height: 100%; display: block; }
.route-path {
    fill: none;
    stroke: var(--wt-line);
    stroke-width: 2;
    stroke-dasharray: 8 10;
}
.route-dot {
    fill: var(--wt-red);
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--wt-blue-deep), var(--wt-blue) 60%);
    color: var(--wt-white);
    padding: 64px 0 70px;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 70%);
}
.page-hero .eyebrow { background: rgba(255,255,255,0.14); color: var(--wt-white); }
.page-hero h1 { color: var(--wt-white); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 620px; font-size: 1.08rem; }
.breadcrumb {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 18px;
    font-family: var(--font-display);
}
.breadcrumb a:hover { color: var(--wt-white); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--wt-line); }
table { width: 100%; border-collapse: collapse; background: var(--wt-white); }
table th, table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--wt-line); }
table th { font-family: var(--font-display); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wt-slate-light); background: var(--wt-cloud); }
table tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 7px;
    color: var(--wt-ink);
}
input, select, textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--wt-line);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.98rem;
    background: var(--wt-white);
    color: var(--wt-ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--wt-blue);
    box-shadow: 0 0 0 4px var(--wt-blue-soft);
}
textarea { resize: vertical; min-height: 110px; }
.field-hint { font-size: 0.82rem; color: var(--wt-slate-light); margin-top: 6px; }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.76rem;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-green { background: var(--wt-green-soft); color: var(--wt-green-deep); }
.badge-blue { background: var(--wt-blue-soft); color: var(--wt-blue-deep); }
.badge-red { background: var(--wt-red-soft); color: var(--wt-red); }
.badge-gray { background: var(--wt-cloud); color: var(--wt-slate); }

/* ---------- Alert/flash ---------- */
.alert {
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-family: var(--font-body);
}
.alert-success { background: var(--wt-green-soft); color: var(--wt-green-deep); border: 1px solid #BFE6CB; }
.alert-error { background: var(--wt-red-soft); color: var(--wt-red); border: 1px solid #F3C5C3; }

/* ---------- CTA banner (used sitewide) ---------- */
.cta-banner {
    background: linear-gradient(120deg, var(--wt-green-deep), var(--wt-green));
    border-radius: var(--radius-lg);
    padding: 56px;
    color: var(--wt-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.cta-banner h2 { color: var(--wt-white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.88); margin-bottom: 0; }
.cta-banner .btn-primary { background: var(--wt-white); color: var(--wt-green-deep); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.cta-banner .btn-primary:hover { background: #F2F5F9; }

@media (max-width: 760px) {
    .cta-banner { padding: 36px 28px; text-align: center; justify-content: center; }
}

/* ---------- Misc utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--wt-slate-light); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* ---------- Mobile typography & spacing pass ---------- */
@media (max-width: 600px) {
    body { font-size: 0.94rem; }
    p { font-size: 0.96rem; }
    .section { padding: 56px 0; }
    .section-tight { padding: 40px 0; }
    .section-head { margin-bottom: 32px; }
    .section-head p, .hero-copy p.lead, .page-hero p { font-size: 0.96rem; }
    .eyebrow { font-size: 0.68rem; padding: 6px 13px; margin-bottom: 14px; }
    .btn { font-size: 0.88rem; padding: 13px 22px; }
    .btn-sm { font-size: 0.8rem; padding: 9px 16px; }
    .card { padding: 22px; }
    .icon-badge { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px; }
    .icon-badge svg { width: 22px; height: 22px; }
    .price-tag { font-size: 0.98rem; }
    .page-hero { padding: 40px 0 46px; }
    .breadcrumb { font-size: 0.78rem; }
    .cta-banner h2 { font-size: 1.4rem; }
    .cta-banner { padding: 28px 22px; }
    .badge { font-size: 0.7rem; padding: 4px 10px; }
    table th, table td { padding: 12px 14px; font-size: 0.86rem; }
    .stat-card .stat-num, .trust-item .num { font-size: 1.5rem; }
    .dp-day { font-size: 1.15rem; }
    .hero-card { padding: 22px; }
    .hero-card-row strong { font-size: 0.88rem; }
    .hero-card-row span { font-size: 0.78rem; }
    .route-step h4 { font-size: 0.98rem; }
    .route-step p { font-size: 0.86rem; }
}
