/* ==========================================================================
   Searchlight Polygraph — site styles
   Colors and fonts are set once here in :root. Change them here, not per page.
   ========================================================================== */

:root {
  /* Brand monochrome (from the logo) */
  --ink: #111111;          /* flashlight black */
  --beam: #f2f2f0;         /* beam off-white (sampled from the official logo PNG) */
  --stone: #c4c4c2;        /* logo box gray */

  /* Supporting neutrals */
  --text: #1c1c1a;
  --muted: #55554f;
  --paper: #ffffff;
  --line: #dcdcd8;
  --field: #8a8a85;

  /* Dark sections */
  --night: #141413;
  --night-2: #1f1f1d;
  --on-night: #f1f1ef;
  --on-night-muted: #bdbdb7;

  /* One accent: warm lamp light. Use sparingly. */
  --amber: #e9b44c;        /* on dark backgrounds, or as a fill with black text */
  --amber-deep: #7a5300;   /* amber for text on light backgrounds */

  --focus: var(--ink);
  --radius: 12px;
  --wrap: 1160px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; } /* anchor links land below the sticky header */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}

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

h1, h2, h3 {
  color: var(--ink);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); }
h3 { font-size: 1.25rem; font-stretch: 100%; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

::selection { background: var(--amber); color: var(--ink); }
input, select { caret-color: var(--ink); accent-color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.lede { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }

/* Things Theo still needs to fill in. Easy to spot on purpose. */
.ph {
  background: #fff4d6;
  border: 1px dashed #a07000;
  color: #5c4000;
  padding: 0 0.3em;
  border-radius: 4px;
  font-weight: 600;
}
.headshot { display: block; width: 100%; max-width: 420px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--beam); }

/* ---------- Dark sections ---------- */

.on-night { background: var(--night); color: var(--on-night); --focus: var(--amber); }
.on-night h1, .on-night h2, .on-night h3 { color: #fff; }
.on-night a { color: var(--on-night); }
.on-night .lede { color: var(--on-night-muted); }

/* ---------- The beam ----------
   The logo's idea at page scale: a crisp wedge of light entering from the left.
   .lit       the logo's gray field (client-facing pages)
   .lit-beam  the logo's off-white beam across that field
   .beam      a quieter beam on dark sections (officer, agency, attorney pages) */
.lit { background: var(--stone); color: var(--ink); --focus: var(--ink); }
.lit .lede, .lit p { color: #2e2e2b; }

.lit-beam, .beam { position: relative; overflow: hidden; isolation: isolate; }
.lit-beam::before, .beam::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  clip-path: polygon(0 30%, 100% -15%, 100% 115%, 0 70%);
}
.lit-beam::before { background: var(--beam); }
.beam::before { background: rgba(241, 241, 239, 0.075); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 50px;
  padding: 0.7em 1.3em;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit; font-size: 1rem; font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333331; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #f2c56b; }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { background: rgba(127, 127, 127, 0.12); }
.on-night .btn-amber { color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 479px) { .btn-row .btn { flex: 1 1 100%; } }

/* ---------- Header & navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding-top: 8px; padding-bottom: 8px; }

.brand { flex: none; display: block; }
/* The official logo PNG (3000x1200), never redrawn or edited.
   Header: a "light trim" view of the same file (approved by the owner 2026-09-28).
   The frame shows file area x 60-3000, y 170-1030, trimming only empty gray, so the
   words can be larger. To show the whole logo again, remove the .logo-frame wrapper
   in the header. The footer always shows the full, untrimmed logo. */
.brand .logo { display: block; width: auto; }
.logo-frame {
  --h: 68px;
  display: block; overflow: hidden;
  height: var(--h); width: calc(var(--h) * 2940 / 860);
}
.logo-frame .logo {
  width: calc(100% * 3000 / 2940); height: auto; max-width: none;
  margin-left: calc(-100% * 60 / 2940);
  margin-top: calc(-100% * 170 / 2940);
}
@media (min-width: 960px) { .logo-frame { --h: 72px; } }

.menu-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 16px;
  font: inherit; font-size: 1rem; font-weight: 700;
  color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 8px;
  cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }

.site-nav a, .nav-sub-btn {
  color: var(--text); text-decoration: none; font-weight: 600;
}
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

.nav-sub { list-style: none; margin: 0; padding: 0; }
.nav-sub-btn {
  font: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-sub-btn svg { width: 14px; height: 14px; transition: transform 0.15s; }
.nav-group.open .nav-sub-btn svg { transform: rotate(180deg); }
.nav-sub-title { display: none; }
.header-call { display: none; }

/* Phones, tablets, and small laptops: menu opens as a panel under the header */
@media (max-width: 1179px) {
  .js .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    padding: 8px 16px 20px;
    max-height: calc(100dvh - 88px - 62px - env(safe-area-inset-bottom)); overflow-y: auto;
  }
  .js .site-header.menu-open .site-nav { display: block; }
  .site-nav > a, .nav-sub a {
    display: block; padding: 14px 4px; font-size: 1.125rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-sub-btn { display: none; }
  .nav-sub-title {
    display: block; padding: 14px 4px 4px;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--amber-deep);
  }
  .nav-sub a { padding-left: 16px; }
}

/* From tablet width up, the Call button sits in the header (the bottom call bar is phone-only) */
@media (min-width: 960px) {
  .header-call { display: inline-flex; min-height: 44px; padding: 0.5em 1em; white-space: nowrap; }
}

/* Desktop: inline nav with a Services dropdown */
@media (min-width: 1180px) {
  .menu-btn { display: none; }
  .site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
  .site-nav > a, .nav-sub-btn { white-space: nowrap; }
  .nav-group { position: relative; }
  .nav-sub {
    display: none;
    position: absolute; top: calc(100% + 14px); left: -20px;
    min-width: 270px; padding: 8px;
    background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  }
  .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .nav-group.open .nav-sub, .nav-group:hover .nav-sub { display: block; }
  .nav-sub a { display: block; padding: 10px 12px; border-radius: 8px; }
  .nav-sub a:hover { background: var(--beam); }
}

/* ---------- Always-visible call bar on phones ---------- */

.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1.25fr 1fr 1fr;
  background: var(--night);
  border-top: 1px solid #333;
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 62px;
  color: var(--on-night); text-decoration: none;
  font-size: 0.9rem; font-weight: 700;
  --focus: var(--amber);
}
.action-bar a svg { width: 22px; height: 22px; }
.action-bar a.call { background: var(--amber); color: var(--ink); --focus: #fff; }
body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Heroes ---------- */

/* Home hero: the Atlanta skyline at sunset. The photo fills the section; a dark shade sits
   only where the text is, so the headline and buttons stay readable and the tower keeps its glow.
   Phones: text along the bottom. Desktop: text in the open sky on the right. */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 0; }
.photo-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
}
.hero-photo .photo-bg { object-position: 22% 50%; } /* keep the tall tower in view on narrow screens */
.hero-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,12,11,0.10) 0%, rgba(12,12,11,0.45) 32%, rgba(12,12,11,0.80) 58%, rgba(12,12,11,0.88) 100%);
}
.hero-photo .hero-inner { min-height: min(88svh, 760px); display: flex; align-items: flex-end; }
.hero-photo .hero-copy { padding: 200px 0 44px; max-width: 34rem; }
.hero h1 { max-width: 16ch; font-size: clamp(2.3rem, 1.4rem + 3.8vw, 3.75rem); letter-spacing: -0.02em; text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.hero .lede { margin-top: 1rem; max-width: 36rem; color: #ecece8; }
.hero-place { display: flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 1rem; font-weight: 600; color: #ecece8; }
.hero-place svg { width: 18px; height: 18px; flex: none; }
.hero-photo .btn-outline { color: #fff; }
@media (min-width: 900px) {
  .hero-photo .photo-bg { object-position: 50% 45%; }
  .hero-photo::after {
    background: linear-gradient(270deg, rgba(12,12,11,0.86) 0%, rgba(12,12,11,0.80) 36%, rgba(12,12,11,0.40) 58%, rgba(12,12,11,0.05) 78%, rgba(12,12,11,0) 100%);
  }
  .hero-photo .hero-inner { min-height: 640px; align-items: center; justify-content: flex-end; }
  .hero-photo .hero-copy { padding: 88px 0; max-width: 33rem; }
}

/* The promise: the one sentence that calms an anxious examinee, lit like the logo.
   The section itself is the beam; only the dark corners around it are drawn,
   so the text stays readable even if the shapes fail to render. */
.promise { position: relative; overflow: hidden; isolation: isolate; padding: 72px 0; background: var(--beam); }
.promise::before, .promise::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--night);
}
.promise::before { clip-path: polygon(0 0, 41% 0, 0 14%); }
.promise::after  { clip-path: polygon(0 86%, 41% 100%, 0 100%); }
.promise h2 {
  color: var(--ink);
  font-size: clamp(2.2rem, 1.2rem + 4vw, 4.5rem);
  font-stretch: 112%;
  letter-spacing: -0.025em;
  max-width: 17ch;
  margin-bottom: 0.4em;
}
.promise p { color: #2e2e2b; font-size: 1.2rem; max-width: 38rem; }
@media (min-width: 900px) {
  .promise { padding: 112px 0; }
  .promise::before { clip-path: polygon(0 0, 43% 0, 0 30%); }
  .promise::after  { clip-path: polygon(0 70%, 43% 100%, 0 100%); }
  .promise .wrap { padding-left: max(32px, 22vw); }
}


/* Inner-page headings */
.page-hero { padding: 48px 0 52px; }
.page-hero h1 { max-width: 22ch; }
@media (min-width: 960px) { .page-hero { padding: 72px 0 76px; } }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 88px 0; } }
.section-alt { background: var(--beam); }
.section-head { max-width: 44rem; margin-bottom: 36px; }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.split { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: start; }
}

/* Trust strip */
.trust {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.trust li { background: var(--paper); padding: 20px; }
.trust strong { display: block; color: var(--ink); font-size: 1.05rem; font-stretch: 108%; }
.trust span { display: block; color: var(--muted); font-size: 0.95rem; line-height: 1.4; margin-top: 4px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); } .trust li { padding: 24px; } }
.trust-band { padding: 0 0 64px; }
@media (min-width: 960px) { .trust-band { padding-bottom: 88px; } }

/* Cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--muted); }
.card-link { text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.card-link:hover { border-color: var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); }
.card-link h3 { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-arrow { flex: none; display: inline-flex; margin-top: 2px; }
.card-arrow svg { width: 20px; height: 20px; transition: transform 0.15s; }
.card-link:hover .card-arrow svg { transform: translateX(3px); }
.card-link p { margin-bottom: 0; }

/* The four exam types: 1 column on phones, 2 x 2 on tablets, 4 across on wide screens (never 3 + 1). */
.cards-4 { grid-template-columns: 1fr; gap: 12px; }
.cards-4 .card { padding: 18px 20px; }
@media (min-width: 600px) { .cards-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; } .cards-4 .card { padding: 24px; } }
@media (min-width: 1100px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.on-night .card { background: var(--night-2); border-color: #34342f; }
.on-night .card p { color: var(--on-night-muted); }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 28px; }
.steps > li { counter-increment: step; position: relative; padding-left: 64px; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-weight: 800; font-size: 1.1rem;
}
.steps p { color: var(--muted); }
.steps h3 { margin-bottom: 0.3em; }
@media (min-width: 900px) {
  .steps.row { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps.row > li { padding-left: 0; padding-top: 64px; }
}

/* Callout box */
.note {
  background: var(--beam);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 1.5em 0;
}
.section-alt .note { background: var(--paper); }
.note strong { color: var(--ink); }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em;
  width: 16px; height: 9px;
  border-left: 3px solid var(--amber-deep); border-bottom: 3px solid var(--amber-deep);
  transform: rotate(-45deg);
}
.on-night .checks li::before { border-color: var(--amber); }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 700; font-size: 1.125rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 42rem; }

/* CTA band */
.cta-band { padding: 64px 0; }
.cta-band .wrap { display: grid; gap: 8px; }
.cta-band p { max-width: 40rem; }

/* Contact details list */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.contact-list svg { width: 24px; height: 24px; margin-top: 3px; color: var(--amber-deep); }
.on-night .contact-list svg { color: var(--amber); }
.contact-list .label { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.on-night .contact-list .label { color: var(--on-night-muted); }
.contact-list a { font-weight: 700; }

.map {
  width: 100%; height: 340px; border: 0; border-radius: var(--radius);
  background: var(--beam);
}

/* Headshot + name block */
.person { display: grid; gap: 16px; }
.person .name { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin: 0; }
.person .role { color: var(--muted); margin: 0; }

/* ---------- Request form ---------- */

.form { display: grid; gap: 20px; }
.form label, .form legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.form .optional { font-weight: 400; color: var(--muted); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select {
  width: 100%; min-height: 50px;
  padding: 10px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper);
  border: 1px solid var(--field); border-radius: 8px;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.form input:focus-visible, .form select:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-privacy { font-size: 0.98rem; }
/* Form messages */
.form-intro { color: var(--muted); font-size: 0.98rem; margin: 0 0 4px; }
.field-hint { margin: 6px 0 0; font-size: 0.95rem; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: 0.95rem; font-weight: 600; color: #8a1c1c; }
.form [aria-invalid="true"] { border-color: #8a1c1c; box-shadow: inset 0 0 0 1px #8a1c1c; }
.form-status { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 1rem; }
.form-status p + p { margin-top: 0.5em; }
.form-status.info { background: var(--beam); }
.form-status.ok { background: #eef6ef; border-color: #1f5f2c; color: #173f20; }
.form-status.err { background: #fbeeee; border-color: #8a1c1c; color: #5e1414; }
.btn:disabled { opacity: 0.7; cursor: progress; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 600px) { .form-card { padding: 32px; } .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } }
.form .two { display: grid; gap: 20px; }

/* ---------- Footer ---------- */

.site-footer { padding: 56px 0 28px; font-size: 1rem; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; } }
.site-footer .brand-full .logo { height: 112px; }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; font-stretch: 100%; color: var(--on-night-muted); margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact { margin-top: 20px; display: grid; gap: 6px; }
.footer-contact a { font-weight: 700; }
.credentials { color: var(--on-night-muted); margin-top: 16px; font-size: 0.95rem; font-weight: 600; }
.legal {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid #34342f;
  color: var(--on-night-muted); font-size: 0.92rem; display: grid; gap: 8px;
}

/* ---------- Small spacing helpers (use these instead of style="...") ---------- */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: 0.5em; }
.mt-s { margin-top: 12px; }
.mt { margin-top: 24px; }
.mt-l { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.measure { max-width: 46rem; }
.muted { color: var(--muted); }
.h-card { font-size: 1.4rem; }
.h-sub { font-size: 1.6rem; }

/* ---------- Layout roles ---------- */

/* A section that follows the hero closely (the exam chooser). */
.section-tight { padding-top: 48px; padding-bottom: 40px; }
@media (min-width: 960px) { .section-tight { padding-top: 64px; padding-bottom: 48px; } }

/* Hidden on phones, where the fixed bottom bar already offers Text and Request. */
@media (max-width: 599px) { .not-phone { display: none !important; } }

/* Service pages: the booking card comes first in the page (first on phones and for keyboard
   users); on desktop it sits in the right column and stays in view while reading. */
@media (min-width: 900px) {
  .split.book-first > .book-card { grid-column: 2; grid-row: 1; }
  .split.book-first > .prose { grid-column: 1; grid-row: 1; }
  .book-card, .side-card { position: sticky; top: 112px; }
  .contact-split { grid-template-columns: 0.85fr 1.15fr; }
}


/* Map is shorter on phones. */
@media (max-width: 599px) { .map { height: 260px; } }

/* Comfortable tap targets for text links in lists (at least 44px tall). */
.footer-links { gap: 0; }
.footer-links a { display: inline-block; padding: 10px 0; }
.contact-list a { display: inline-block; padding: 8px 0; }

/* ---------- Resilience ---------- */

/* Without JavaScript the phone menu can't open, so show the links as a plain list instead. */
@media (max-width: 1179px) {
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .site-header { position: static; } /* the open list is tall; don't pin it over the page */
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { display: block; width: 100%; padding-bottom: 8px; }
  html:not(.js) .site-nav > a, html:not(.js) .nav-sub a { padding: 10px 4px; }
}
/* Without JavaScript the desktop Services list opens on hover and on keyboard focus. */
html:not(.js) .nav-group:focus-within .nav-sub { display: block; }

/* Long words (like email addresses) wrap instead of running off narrow screens. */
.footer-contact a, .contact-list a, .form-status a, .card h3 { overflow-wrap: anywhere; }
.card-link h3 { min-width: 0; }

/* What to Expect: questions grouped under short headings; two columns on wide screens. */
.faq-groups { display: grid; gap: 40px; }
.faq-group h3 { margin-bottom: 8px; }
.faq-groups .faq { max-width: none; }
@media (min-width: 900px) { .faq-groups { grid-template-columns: 1fr 1fr; gap: 48px 56px; align-items: start; } }

/* Founder story sign-off */
.signature { font-weight: 700; color: var(--ink); margin-top: 1.2em; }

/* About: the photo comes first so visitors see who they'll meet. Phones show a small photo
   beside the name; desktop puts the portrait in the right column beside the story. */
.headshot { border: 1px solid var(--line); }
.person-first .person { grid-template-columns: 112px 1fr; align-items: center; gap: 16px; }
@media (min-width: 900px) {
  .person-first .person { grid-template-columns: 1fr; align-items: start; grid-column: 2; grid-row: 1; }
  .person-first > .prose { grid-column: 1; grid-row: 1; }
}

/* Home "Schedule an exam": the night skyline, darkened so text and buttons stay readable. */
.cta-photo { position: relative; overflow: hidden; isolation: isolate; padding: 96px 0; }
.cta-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,12,11,0.88) 0%, rgba(12,12,11,0.76) 55%, rgba(12,12,11,0.62) 100%); }
.cta-photo p { color: #ecece8; }
.cta-photo .btn-outline { color: #fff; }
@media (min-width: 960px) { .cta-photo { padding: 128px 0; } }

/* Contact map fills the width now that the building photo placeholder is gone. */
@media (min-width: 900px) { .map { height: 420px; } }

/* Desktop computers usually can't send texts, so the home banner keeps Call and Request on one row. */
@media (min-width: 900px) { .hero-photo .btn-row a[href^="sms:"] { display: none; } }

/* Spam trap for Formspree: invisible to people, filled in only by bots. */
.gotcha { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:focus { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- Judgment-free statement ----------
   The logo's idea again: the flashlight at left, its beam lighting the words.
   The beam sits behind the text, so the shape never cuts words off. */
.statement {
  --lamp: 44px; --head: 13px; --gap: 1.3px;   /* --head = half the beam opening at the flashlight */
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  padding: 24px 20px;
  background: var(--stone);
  border-radius: var(--radius);
}
.statement .lamp { width: var(--lamp); height: auto; flex: none; }
.statement-body { position: relative; z-index: 0; flex: 1; min-width: 0; margin-left: var(--gap); padding: 6px 4px 6px 22px; }
.statement-body::before {
  content: ""; position: absolute; z-index: -1;
  top: -24px; bottom: -24px; left: 0; right: -20px;
  background: var(--beam);
  clip-path: polygon(0 calc(50% - var(--head)), 100% 0, 100% 100%, 0 calc(50% + var(--head)));
}
.statement .statement-head {
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem);
  font-stretch: 108%; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink); margin: 0 0 0.45em;
}
.statement p { color: #2e2e2b; font-size: 1.08rem; margin: 0; max-width: 40rem; }
@media (min-width: 700px) {
  .statement { --lamp: 96px; --head: 27px; --gap: 2.7px; padding: 36px 40px 36px 32px; }
  .statement-body { padding: 10px 8px 10px 44px; }
  .statement-body::before { top: -36px; bottom: -36px; right: -40px; }
  .statement p { font-size: 1.15rem; }
}
.statement-section { padding-bottom: 0; }

/* Home: address beside the map. */
.visit-split .map { align-self: stretch; min-height: 300px; }

/* Maps load only when scrolled to; give the box a visible edge before it loads. */
.map { border: 1px solid var(--line); }

/* ---------- Free consultation ---------- */
.btn-row-pair { margin-top: 12px; }
.consult-note { margin-top: 14px; font-size: 0.98rem; max-width: 34rem; }
.hero-photo .consult-note { color: #ecece8; }
.cta-photo .consult-note { color: #ecece8; }
.form-card .consult-note { color: var(--muted); margin-top: 8px; }

/* Request form: "What can we help with?" choices */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 16px; margin: 0;
  border: 1px solid var(--field); border-radius: 8px;
  font-weight: 600; cursor: pointer; background: var(--paper);
}
.form .choice { margin-bottom: 0; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--beam); box-shadow: inset 0 0 0 1px var(--ink); }

/* Choice boxes: beat the general ".form label" block style so the radio sits beside its text. */
.form .choice { display: inline-flex; align-items: center; margin: 0; }

/* What to Expect questions: "Before your exam" (the longest group) on the left, the other three
   stacked on the right. Fixed columns, so opening a question never moves groups around. */
.faq-col { display: grid; gap: 40px; align-content: start; }

/* PCSOT: the "never asked a question you haven't reviewed" promise, as a bold line. */
.lead-strong { font-size: 1.2rem; font-weight: 800; color: var(--ink); line-height: 1.35; }

/* Home "Schedule an exam" band: computers usually can't text, so Call, Schedule, Consultation on desktop. */
@media (min-width: 900px) { .cta-photo .btn-row a[href^="sms:"] { display: none; } }
