/* Public website. Loads after app.css and reuses its tokens, buttons and form fields.
   One bold element: the booking card (date tiles + open times) on the green hero.
   Everything else stays quiet. */

:root {
  --hero: #165440;
  --hero-ink: #ffffff;
  --hero-soft: #cfe5da;
  --card-edge: #0f3d2e;
  --chip-hover: var(--lemon);
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --hero: #0e211a;
    --hero-ink: #e4efe8;
    --hero-soft: #a9c4b7;
    --card-edge: #2e443b;
  }
}

body.site { background: var(--paper); }
.site main { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-head { background: var(--hero); color: var(--hero-ink); }
.site-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.site-head a { color: var(--hero-ink); }
.site-head :focus-visible, .hero :focus-visible { outline-color: var(--lemon); }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; text-decoration: none; min-width: 0; }
.mark img { flex: none; border-radius: 9px; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--hero-ink) 35%, transparent); }
.mark span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-links { display: flex; align-items: center; gap: 4px; flex: none; }
.head-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: var(--radius); font-weight: 500; text-decoration: none; }
.head-links a:hover { background: color-mix(in srgb, var(--hero-ink) 12%, transparent); }
.head-phone span { display: none; }
@media (min-width: 720px) { .head-phone span { display: inline; } }

/* ---------- Hero ---------- */
.hero { background: var(--hero); color: var(--hero-ink); padding: 24px 0 40px; }
.hero-grid { display: grid; gap: 28px; align-items: start; }
.hero h1 {
  color: var(--hero-ink);
  font-size: clamp(2.1rem, 1.35rem + 3.6vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 13em;
  margin: 8px 0 16px;
  text-wrap: balance;
}
.hero .lede { font-size: 1.15rem; color: var(--hero-soft); max-width: 30em; margin-bottom: 16px; }
.hero .area { display: inline-flex; align-items: center; gap: 8px; color: var(--hero-soft); margin: 0; }
@media (min-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; }
  .hero-copy { padding-top: 24px; }
}

/* ---------- Booking card ---------- */
.book-card {
  background: var(--paper); color: var(--text);
  border-radius: var(--radius-l);
  border: 1px solid var(--card-edge);
  padding: 20px 16px 16px;
}
@media (min-width: 480px) { .book-card { padding: 24px 24px 20px; } }
.book-card h2 { margin: 0 0 4px; font-size: 1.25rem; }
.book-card .card-sub { color: var(--muted); margin-bottom: 16px; }
.contact { display: flex; align-items: center; gap: 12px; padding: 0 0 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.contact p { margin: 0; color: var(--ink); font-weight: 500; }
.contact .who-note { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.avatar {
  flex: none; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--lemon); color: var(--on-lemon);
  font-weight: 700; font-size: 1.15rem;
}
@media (prefers-color-scheme: dark) { .avatar { color: #3b3200; } }
.avatars { display: inline-flex; flex: none; }
.avatars .avatar + .avatar { margin-left: -10px; box-shadow: 0 0 0 2px var(--paper); }

.days { list-style: none; margin: 0; padding: 0; }
.day { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.day:last-child { border-bottom: 0; }
.date-tile { text-align: center; line-height: 1.1; padding-top: 4px; color: var(--ink); }
.date-tile .dow { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.date-tile .dom { display: block; font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.date-tile .mon { display: block; font-size: 0.85rem; color: var(--muted); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 8px; align-content: start; }
.time {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 48px; padding: 4px 6px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  color: var(--ink); background: var(--paper);
  font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; line-height: 1.15;
  cursor: pointer;
}
.time:hover { border-color: var(--green); background: var(--ok-wash); }
.time .who { font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.more-times { display: flex; margin-top: 12px; }
.card-empty p { margin-bottom: 12px; }

/* Times as radio buttons (when the chosen time was just taken) */
.time-radio { position: relative; }
.time-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.time-radio input:checked + .time { background: var(--lemon); border-color: var(--lemon); color: var(--on-lemon); }
.time-radio input:checked + .time .who { color: var(--on-lemon); }
.time-radio input:focus-visible + .time { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------- Sections ---------- */
.band { padding: 48px 0; }
.band + .band { border-top: 1px solid var(--line); }
.band.quiet { background: var(--wash); border-top: 0; }
.band h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); letter-spacing: -0.01em; margin: 0 0 20px; }
.band p { max-width: 62ch; }
@media (min-width: 960px) { .band { padding: 72px 0; } }
.split { display: grid; gap: 8px 48px; }
@media (min-width: 960px) { .split { grid-template-columns: 320px minmax(0, 1fr); } .split > h2 { margin-top: 4px; } }

.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 40px; }
@media (min-width: 720px) { .services { grid-template-columns: 1fr 1fr; } }
.services li { padding: 16px 0; border-top: 1px solid var(--line); }
.services h3 { font-size: 1.1rem; margin-bottom: 4px; }
.services p { margin: 0; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 28px 60px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--green); color: var(--green); font-weight: 700; background: var(--paper);
}
.steps li:first-child::before { background: var(--green); color: var(--on-green); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.steps h3 { font-size: 1.1rem; margin: 6px 0 4px; }
.steps p { margin: 0; color: var(--text); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { padding: 60px 0 0; }
  .steps li:not(:last-child)::after { left: 52px; right: -20px; top: 19px; bottom: auto; width: auto; height: 2px; }
}

.area-line { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem); font-weight: 700; color: var(--ink); margin: 0 0 8px; max-width: 30ch; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 12px 0; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--ink); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .answer { padding: 0 0 18px; max-width: 62ch; }
.faq .answer p:last-child { margin-bottom: 0; }

.contact-band .btn-row { margin: 8px 0 0; }

/* ---------- Booking pages ---------- */
.page-head { background: var(--hero); color: var(--hero-ink); padding: 24px 0 28px; }
.page-head h1 { color: var(--hero-ink); font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); letter-spacing: -0.015em; margin: 4px 0 6px; }
.page-head p { color: var(--hero-soft); margin: 0; }
.page-head a { color: var(--hero-ink); }
.step-note { font-weight: 500; }
.narrow { max-width: 760px; }
.book-body { padding-top: 24px; padding-bottom: 56px; }
.book-body .contact { border-bottom: 0; padding-bottom: 8px; }
.notice { border-left: 4px solid var(--lemon); background: var(--lemon-wash); color: var(--on-lemon); padding: 12px 14px; margin: 0 0 20px; }

.picked {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  background: var(--lemon-wash); color: var(--on-lemon);
  border-left: 4px solid var(--lemon);
  padding: 14px 16px; margin: 0 0 24px;
}
.picked strong { display: block; font-size: 1.15rem; }
.picked a { color: var(--on-lemon); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }

.book-form fieldset { margin: 0 0 12px; padding-top: 4px; }
.book-form legend { font-size: 1.2rem; margin-top: 16px; }
.book-form .choice-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.book-form .field-service .choice-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.book-form .submit-row { margin-top: 24px; }
.book-form .fine { color: var(--muted); font-size: 0.95rem; margin-top: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Done page ---------- */
.done-when { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); font-weight: 700; color: var(--hero-ink); line-height: 1.2; margin: 6px 0 4px; }
.done-card { display: grid; gap: 4px 16px; grid-template-columns: auto 1fr; align-items: center; margin: 0 0 24px; }
.done-card .avatar { grid-row: span 2; }
.done-card p { margin: 0; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--muted); }
.foot-inner { display: grid; gap: 16px; }
@media (min-width: 720px) { .foot-inner { grid-template-columns: 1fr auto; align-items: end; } }
.foot-name { color: var(--ink); font-weight: 700; margin: 0 0 4px; }
.site-foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; }
.foot-links .staff { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Day strip on the booking page ---------- */
.pick-label { font-size: 1.05rem; margin: 20px 0 10px; }
.day-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.day-chip {
  position: relative; flex: none; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 64px; min-height: 84px; padding: 6px 4px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; line-height: 1.1; background: var(--paper);
}
.day-chip:hover { border-color: var(--green); background: var(--ok-wash); }
.day-chip .dow, .day-chip .mon { font-size: 0.85rem; color: var(--muted); }
.day-chip .dom { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.day-chip[aria-current="true"] { background: var(--lemon); border-color: var(--lemon); color: var(--on-lemon); }
.day-chip[aria-current="true"] .dow, .day-chip[aria-current="true"] .mon { color: var(--on-lemon); }
.day-panel .times { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }

/* Header book button: always visible, the main thing the site is for */
.head-links a.head-book { background: var(--lemon); color: var(--on-lemon); font-weight: 700; padding: 0 16px; }
.head-links a.head-book:hover { background: color-mix(in srgb, var(--lemon) 85%, #000); }
.head-links a.head-app { display: none; }
@media (min-width: 720px) { .head-links a.head-app { display: inline-flex; } }
.card-empty .btn-block { margin: 12px 0; }
.card-empty .small { margin: 8px 0 0; }
