:root {
  --ink: #1B3A47;
  --soft: #45616D;
  --teal: #3691AB;
  --teal-dark: #2E7D94;
  --mango: #FFC76C;
  --mango-light: #FFF1D6;
  --orange: #FFA268;
  --melon: #FF5C66;
  --cream: #FFFBF3;
  --line: #F5DDB8;
  --white: #FFFFFF;
  --radius: 24px;
  --max: 1200px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); }
a:hover { color: var(--ink); }

h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.4rem; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.section { padding: 88px 0; }
.section-lead { margin: 12px 0 40px; color: var(--soft); max-width: 40em; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 10;
}
.skip-link:focus { left: 8px; }

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 1.1875rem;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
  border: 2px solid transparent;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); font-size: 1rem; padding: 12px 20px; }
.btn-dark:hover { background: var(--teal-dark); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { background: var(--cream); border-bottom: 2px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand span { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-weight: 600; font-size: 1rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Hero */
.hero { background: var(--mango); }
.hero-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border-radius: 999px; padding: 6px 14px; font-size: 0.9375rem; font-weight: 700; border: 2px solid var(--ink); }
.pill-solid { background: var(--ink); color: var(--mango); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.swash { background: var(--orange); border-radius: 14px; padding: 0 10px; }
.hero-sub { font-size: 1.25rem; max-width: 32em; }
.hero-note { font-size: 0.9375rem; font-weight: 700; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 400px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.card { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card p { color: var(--soft); }
.icon { width: 56px; height: 56px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.icon svg { width: 28px; height: 28px; }
.icon-teal { background: var(--teal); color: var(--white); }
.icon-orange { background: var(--orange); color: var(--ink); }
.icon-melon { background: var(--melon); color: var(--ink); }
.tests { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.tests li { background: var(--mango-light); border-radius: 999px; padding: 4px 12px; font-size: 0.9375rem; font-weight: 700; }

/* Steps */
.steps-band { background: var(--orange); }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.step { background: var(--cream); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step p { color: var(--soft); }
.step-num { width: 44px; height: 44px; border-radius: 999px; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 800; }

/* Pricing */
.price-card .prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 0; }
.price-card .prices div { background: var(--mango-light); border-radius: 16px; padding: 16px; }
.price-card dt { font-size: 0.9375rem; font-weight: 700; }
.price-card dd { margin: 4px 0 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.price-card dd span { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--soft); letter-spacing: 0; }
.badge { align-self: flex-start; background: var(--melon); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 0.875rem; font-weight: 800; }
.notes { margin: 32px 0 0; padding: 24px 28px; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); display: grid; gap: 10px; }
.notes ul { margin: 0; padding-left: 1.2em; color: var(--soft); display: grid; gap: 6px; }

/* Where + availability */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 32px; align-items: start; }
.places { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.places li { background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.places strong { display: block; font-size: 1.125rem; }
.places span { color: var(--soft); }
.fees { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 18px; overflow: hidden; border: 2px solid var(--line); }
.fees th, .fees td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fees th { background: var(--mango-light); font-size: 0.9375rem; }
.fees tr:last-child td { border-bottom: none; }
.small { font-size: 0.9375rem; color: var(--soft); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 40px; align-items: start; }
.portrait { width: 200px; height: 300px; border-radius: var(--radius); background: var(--mango); overflow: hidden; border: 6px solid var(--white); box-shadow: 0 0 0 2px var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.creds { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-weight: 600; }
.creds li { display: flex; gap: 10px; align-items: flex-start; }
.creds svg { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--teal-dark); }

/* Contact */
.contact-band { background: var(--ink); color: var(--white); }
.contact-band h2 { color: var(--white); }
.contact-band .section-lead { color: #D7E4E9; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin-top: 32px; }
.contact-tile { background: #24505F; border-radius: 18px; padding: 20px 22px; color: var(--white); text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.contact-tile:hover { background: #2E6577; color: var(--white); }
.contact-tile span { font-size: 0.9375rem; color: var(--mango); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-tile strong { font-size: 1.0625rem; overflow-wrap: anywhere; }
.btn-mango { background: var(--mango); color: var(--ink); }
.btn-mango:hover { background: var(--white); color: var(--ink); }

/* Footer */
.site-footer { background: var(--cream); border-top: 2px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-top: 32px; padding-bottom: 32px; font-size: 0.9375rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-inner a { color: var(--ink); }

/* Simple pages */
.page { max-width: 760px; margin: 0 auto; padding: 64px 32px 88px; }
.page h1 { font-size: clamp(2.25rem, 4vw, 3rem); margin-bottom: 8px; }
.page h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.page p, .page li { color: var(--soft); }
.page ul { padding-left: 1.2em; display: grid; gap: 6px; }

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero-inner { padding-top: 48px; padding-bottom: 56px; }
  .nav a:not(.btn):not(.nav-keep) { display: none; }
  .about { grid-template-columns: 1fr; }
  .portrait { width: 160px; height: 240px; }
  .price-card .prices { grid-template-columns: 1fr; }
}

/* Booking page */
.booking { max-width: 860px; margin: 0 auto; padding: 56px 32px 88px; }
.booking-intro h1 { font-size: clamp(2.25rem, 4vw, 3rem); }
.booking-intro p { margin-top: 12px; color: var(--soft); max-width: 40em; }
#booking-form, #inquiry-form { margin-top: 32px; display: grid; gap: 24px; }
.bk-step { border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 24px 26px 28px; margin: 0; display: block; min-width: 0; }
/* Normal flow with sibling spacing instead of grid: Safari mis-sizes the legend of a grid fieldset. */
.bk-step > * + * { margin-top: 16px; }
.bk-step > legend + * { margin-top: 0; }
.bk-step > .bk-title + * { margin-top: 20px; }
/* Each step's visible title is a heading inside the card; its legend stays for screen readers.
   (Safari lays out a legend on the card border one word per line on phones.) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bk-title { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 1.3rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.bk-num { flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--ink); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice-body { display: flex; flex-direction: column; gap: 4px; height: 100%; border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; background: var(--cream); }
.choice-body strong { font-size: 1.125rem; }
.choice-body span { color: var(--soft); font-size: 0.9375rem; }
.choice-body .badge { color: var(--ink); align-self: flex-start; margin-bottom: 4px; }
.choice-price { font-weight: 700; color: var(--ink) !important; }
.choice input:checked + .choice-body { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); background: var(--white); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--melon); outline-offset: 3px; }
.choice-sm .choice-body { padding: 12px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9375rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 2px solid var(--soft); border-radius: 12px; background: var(--white); color: var(--ink); min-width: 0; }
.field textarea { resize: vertical; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.field-wide { grid-column: 1 / -1; }
.zip-input { display: flex; gap: 10px; max-width: 320px; }
.zip-input input { flex: 1; }
#inperson-fields { display: grid; gap: 14px; }
.travel-result { margin: 0; padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.travel-result:empty { display: none; }
.travel-result.ok { background: #E3F2EC; }
.travel-result.fee { background: var(--mango-light); }
.travel-result.warn { background: #FFE3E5; }
/* Question groups inside a step (call or text, best times, screening) */
.sub-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.sub-group > legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 0.9375rem; }
.sub-group > legend + * { clear: both; }
.sub-group > .travel-result { margin-top: 12px; }
.time-picks { display: grid; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 44px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--cream); font-weight: 700; }
.chip small { font-size: 0.8125rem; font-weight: 600; color: var(--soft); }
.chip input:checked + span { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); background: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--melon); outline-offset: 3px; }
.slot-status { margin: 0; color: var(--soft); }
.slot-status:empty { display: none; }
.slot-status.warn { color: var(--ink); }
.field select:disabled { opacity: 0.6; cursor: not-allowed; }
.summary dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; padding: 16px 18px; background: var(--mango-light); border-radius: 16px; }
.summary dt { font-weight: 700; }
.summary dd { margin: 0; }
.summary .small { margin-top: 8px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; color: var(--soft); }
.agree input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #B3261E; font-weight: 700; margin: 0; }
.form-error:empty { display: none; }
.done { margin-top: 32px; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 14px; justify-items: start; }
.booking-help { margin-top: 28px; }
#submit { justify-self: start; }
#submit:disabled { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 720px) { .booking { padding: 40px 20px 64px; } .bk-step { padding: 20px 18px 24px; } }
