/* Veritas Diagnostic & Laboratory Ltd — public site. Shared by every page. */
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 600; font-display: swap; src: url(fonts/source-sans-3-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 700; font-display: swap; src: url(fonts/source-sans-3-latin-700-normal.woff2) format('woff2'); }

/* Brand pair sampled from the logo — see DESIGN.md. */
:root {
  --brand: #014292; --deep: #002f6b; --accent: #e60201;
  --ink: #1f2937; --muted: #5b6472; --bg: #f5f7fb; --surface: #fff; --border: #e5e9f0;
  --radius: 14px; --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--ink); background: var(--surface); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0; color: var(--deep); }
h2 { font-size: clamp(28px, 4vw, 40px); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 56ch; }
section { padding: clamp(64px, 9vw, 112px) 0; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(230, 2, 1, .25); }
.btn-primary:hover { background: #c80201; }
.btn-ghost { background: #fff; color: var(--deep); box-shadow: inset 0 0 0 1.5px #c9d3e3; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }

/* Header */
header.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand b { display: block; font-size: 22px; line-height: 1; letter-spacing: .04em; color: var(--accent); }
.brand small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--deep); margin-top: 3px; }
nav.links { display: flex; align-items: center; gap: 26px; }
nav.links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
nav.links a:hover { color: var(--brand); }
nav.links .btn { padding: 10px 18px; font-size: 15px; color: #fff; }
@media (max-width: 860px) { nav.links a:not(.btn) { display: none; } }
@media (max-width: 420px) { .brand small { display: none; } nav.links .btn { padding: 10px 14px; } }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); background: linear-gradient(180deg, var(--bg), #fff); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.hero .pills li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px 8px 10px; font-weight: 600; font-size: 15px; color: var(--deep); }
.hero .pills i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--brand); color: #fff; font-style: normal; }
.hero .pills i.red { background: var(--accent); }
.hero .pills svg { width: 15px; height: 15px; }
.hero figure { margin: 0; position: relative; }
.hero figure img { width: 100%; max-height: min(620px, 78vh); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0, 47, 107, .35); }
.hero figure::before { content: ''; position: absolute; inset: auto -18px -18px auto; width: 60%; height: 60%; border-radius: 22px; background: var(--brand); z-index: -1; }
.hero { position: relative; isolation: isolate; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero figure { max-width: 460px; }
  .hero figure img { aspect-ratio: 4 / 3; object-position: 50% 28%; }
}

/* Services */
.services { background: #fff; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .body { padding: 22px 24px 26px; }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 560px; } }

/* Panorama */
.pano { padding: 0; background: var(--deep); }
.pano figure { margin: 0; position: relative; }
.pano img { width: 100%; height: clamp(260px, 42vw, 560px); object-fit: cover; object-position: 50% 55%; }
.pano figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 0 22px; background: linear-gradient(transparent, rgba(0, 31, 72, .85)); color: #fff; font-weight: 600; }

/* Tests */
.tests { background: var(--bg); }
.depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.depts .col { display: grid; gap: 20px; }
@media (max-width: 960px) { .depts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .depts { grid-template-columns: 1fr; } }
.dept { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; }
.dept h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.dept h3::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); flex: none; }
.dept ul { margin: 0; padding: 0; list-style: none; }
.dept li { padding: 7px 0; border-top: 1px solid #eef1f6; font-size: 16px; }
.dept li:first-child { border-top: 0; }
.dept.wide { grid-column: 1 / -1; }
.dept.wide ul { columns: 3 240px; column-gap: 32px; }
.dept.wide li { break-inside: avoid; border-top: 0; border-bottom: 1px solid #eef1f6; }
.note { margin-top: 28px; padding: 18px 22px; border-radius: var(--radius); background: #fff; border: 1px dashed #c9d3e3; color: var(--muted); }
.note a { font-weight: 700; }

/* Mission */
.mission { background: var(--deep); color: #fff; position: relative; overflow: hidden; }
.mission::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); }
.mission .eyebrow { color: #ff8a8a; }
.mission blockquote { margin: 0; max-width: 30ch; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.mission .rule { width: 64px; height: 4px; border-radius: 4px; background: var(--accent); margin: 28px 0 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; margin-top: 40px; }
.step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); color: var(--brand); font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { background: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 14px; margin-top: 40px; }
.grid figure { margin: 0; border-radius: 12px; overflow: hidden; position: relative; background: #dfe5ee; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.grid figure:hover img { transform: scale(1.04); }
.grid figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 31, 72, .78); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.grid .tall { grid-row: span 2; }
.grid .big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } .grid .big { grid-column: span 2; } }

/* Visit */
.visit .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.visit img { width: 100%; border-radius: 22px; aspect-ratio: 4 / 3; object-fit: cover; }
.contact { margin: 28px 0 32px; padding: 0; list-style: none; display: grid; gap: 18px; }
.contact li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact i { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); color: var(--brand); display: grid; place-items: center; }
.contact svg { width: 20px; height: 20px; }
.contact b { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact a:hover { color: var(--brand); text-decoration: underline; }
.contact span { display: block; }
.visit .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit .map { grid-column: 1 / -1; width: 100%; height: clamp(280px, 42vw, 420px); border: 0; border-radius: 22px; }
@media (max-width: 860px) { .visit .wrap { grid-template-columns: 1fr; } }

footer { background: #001f48; color: #b8c4d8; padding: 36px 0; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer b { color: #fff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .grid img { transition: none; } }

/* Book-a-visit band under the test list. */
.book-band { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 26px 28px; border-radius: var(--radius); background: var(--deep); color: #fff; }
.book-band h3 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.book-band p { margin: 0; color: #c9d5ea; max-width: 56ch; }

/* ── Book a visit (book/) ─────────────────────────────────────────────────── */
.booking { background: var(--bg); padding: clamp(36px, 6vw, 64px) 0 clamp(56px, 8vw, 96px); min-height: 70vh; }
.booking .wrap { max-width: 820px; }
.booking h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 12px; }
.booking .lede { margin: 0 0 28px; }
.bk-step { margin: 0 0 20px; padding: 24px clamp(18px, 3vw, 28px) 26px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; min-width: 0; }
.bk-step legend { float: left; width: 100%; padding: 0; margin: 0 0 16px; font-size: 21px; font-weight: 700; color: var(--deep); display: flex; align-items: center; gap: 12px; }
.bk-step legend span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 16px; flex: none; }
.bk-step legend + * { clear: both; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 16px; }
.row:last-of-type { margin-bottom: 0; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field small { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.field input, .field select, .field textarea, .search-tests input {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid #c9d3e3; border-radius: 10px; padding: 11px 13px; width: 100%; min-height: 46px; }
.field textarea { resize: vertical; min-height: 46px; }
.field input:focus, .field select:focus, .field textarea:focus, .search-tests input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(1, 66, 146, .15); }
.search-tests { display: block; margin-bottom: 10px; }
.picked { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.test-groups { display: grid; gap: 18px; max-height: 460px; overflow: auto; padding-right: 4px; border-top: 1px solid var(--border); padding-top: 14px; }
.test-group h3 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.test-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.test { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 15.5px; line-height: 1.35; }
.test:hover { background: var(--bg); }
.test input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.test input:checked + span { font-weight: 700; color: var(--deep); }
.test input:disabled + span { color: #a3acba; }
.hint { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.bk-consent { padding: 18px clamp(18px, 3vw, 28px); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { margin: 0 0 18px; padding: 14px 18px; border-radius: 10px; background: #fdecec; border: 1px solid #f3bcbc; color: #8a1418; font-weight: 600; }
.alert a { color: inherit; }
.btn-big { padding: 16px 28px; font-size: 18px; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.confirmation { scroll-margin-top: 88px; background: #fff; border: 1px solid var(--border); border-top: 6px solid var(--brand); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); outline: none; }
.confirmation h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 16px; }
.confirmation .code { font-size: clamp(40px, 9vw, 64px); font-weight: 700; letter-spacing: .14em; color: var(--deep); margin: 4px 0 22px; font-variant-numeric: tabular-nums; }
.confirmation dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 18px; }
.confirmation dt { color: var(--muted); font-weight: 600; }
.confirmation dd { margin: 0; }
.confirmation .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 520px) { .confirmation dl { grid-template-columns: 1fr; } .confirmation dd { margin-bottom: 8px; } }
@media print { header.top, footer, .confirmation .actions { display: none; } .booking { background: #fff; } }
button.btn { font: inherit; font-weight: 700; border: 0; cursor: pointer; }
button.btn-ghost { background: #fff; }

/* Questions people ask (2026-10-12): the same answers a search engine reads. */
.faq { background: var(--bg); }
.faq-list { margin-top: 32px; display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 18px; color: var(--deep); list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { margin: 14px 0 18px; color: var(--muted); }

