/* Layout and components. Colours and the typeface come from /theme.css (one set per business). */
:root { --field: color-mix(in srgb, var(--muted) 75%, var(--bg)); /* borders of inputs and buttons: strong enough to see (3:1) */ }
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  padding-bottom: 76px; /* room for the sticky button on phones */
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); margin-top: 1.6em; }
/* a small honey-gold bar under page section headings: decoration only */
.section > h2::after, .wrap > h2::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--highlight, var(--accent)); margin-top: 10px; }
.admin-section h2::after, .done h2::after, .card h2::after, details h2::after { display: none; }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
small { color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 32px, 960px); margin-inline: auto; }
.narrow { max-width: 640px; }
.section { padding-block: 40px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-text); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* draft banner */
/* Tap anywhere on a card: the small Book link stays, and its click area stretches over the whole card (one link, so screen readers hear it once) */
.card { position: relative; }
.card:has(.stretch) { cursor: pointer; }
.stretch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
/* a transform or filter on the link (like the button's hover lift) would shrink the stretched area back down to just the button */
.stretch, .stretch:hover, .stretch:active, .stretch:focus-visible { transform: none !important; filter: none !important; will-change: auto; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.draft { background: color-mix(in srgb, var(--highlight) 40%, var(--bg)); color: var(--text); border-bottom: 1px solid color-mix(in srgb, var(--highlight) 70%, var(--text)); padding: 10px 16px; font-size: .9rem; line-height: 1.4; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; margin-right: auto; }
.site-header nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: 8px 0; }
.site-header nav a[aria-current="page"], .site-header nav a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--field); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* hero */
.hero { padding: 56px 0 24px; background: radial-gradient(900px 340px at 20% -10%, color-mix(in srgb, var(--highlight) 6%, transparent), transparent 70%); }

/* cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cards-wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 0; }
.card h3, .card .h3 { margin-bottom: .3em; }
.cards + p { margin-top: 22px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 0; }
.price-from { font-weight: 650; }
.tag { margin-left: 8px; font-size: .75rem; padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); vertical-align: middle; font-weight: 500; }
.ticks { padding-left: 1.2em; color: var(--muted); }
.prices { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 14px 0; }
.prices dt { color: var(--text); }
.prices dd { margin: 0; font-weight: 650; text-align: right; }
.how { padding-left: 1.2em; display: grid; gap: 10px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips li { border: 1px solid var(--accent); color: var(--text); border-radius: 99px; padding: 4px 14px; }
.chips-soft li { border-color: var(--line); color: var(--muted); }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.prose h2 { font-size: 1.25rem; }
.fine { color: var(--muted); font-size: .9rem; }

/* forms */
label { display: block; font-weight: 600; margin: 18px 0 6px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="time"], textarea, select {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; /* 16px+ stops iOS zooming in */
  color: var(--text); background: var(--surface); border: 1.5px solid var(--field); border-radius: 12px;
}
textarea { resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: 6px; }
.help { color: var(--muted); font-size: .92rem; margin: 4px 0 10px; }
.two { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.row { display: flex; gap: 10px; }
.row input { flex: 1; }
.area-check .row { margin-top: 6px; }
.area-result { min-height: 1.5em; margin-top: 10px; }
.area-result[data-zone="core"] { color: var(--ok); }
.area-result[data-zone="extended"], .area-result[data-zone="outside"] { color: var(--warn); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choice { display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; margin: 0 0 10px; font-weight: 400; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice input { margin-top: 5px; width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.choice span { flex: 1; display: grid; }
.choice small { display: block; }
.choice .price { font-style: normal; font-weight: 650; white-space: nowrap; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--accent); flex: none; }

.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 20px; counter-reset: s; }
.steps li { flex: 1; text-align: center; font-size: .8rem; color: var(--muted); border-top: 4px solid var(--line); padding-top: 6px; }
.steps li.is-done, .steps li[aria-current="step"] { border-top-color: var(--accent); color: var(--text); }
/* headings and the confirmation box are focused by script for screen readers, but are not controls: no ring */
h2[tabindex="-1"]:focus, .done:focus { outline: none; }
.errors { background: color-mix(in srgb, var(--danger) 12%, var(--bg)); border: 1px solid var(--danger); color: var(--text); padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.errors ul { margin: 0; padding-left: 1.2em; }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.summary { margin: 16px 0; }
.summary:empty { display: none; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.summary .total { font-weight: 700; font-size: 1.1rem; }
.summary dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px 12px; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 14px; }
.slot { margin: 0; font-weight: 600; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid var(--field); border-radius: 12px; background: var(--surface); cursor: pointer; }
.slot input:checked + span { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.slot input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.nav-row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; }
.nav-row .btn { min-width: 120px; }
.done { background: var(--surface); border: 1.5px solid var(--accent); border-radius: 16px; padding: 24px; }
.done h2 { margin-top: 0; }

/* logo, bands, plans, price grids, groups */
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { height: 40px; width: auto; display: block; }
.band { background: color-mix(in srgb, var(--highlight) 5%, var(--bg)); border-block: 1px solid var(--line); }
.tag-accent { margin: 0 0 8px; background: var(--accent); color: var(--accent-text); border-color: var(--accent); display: inline-block; }
.muted-label { margin: 14px 0 4px; color: var(--muted); font-size: .9rem; }
.size-prices { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.size-prices li { display: grid; text-align: center; background: color-mix(in srgb, var(--highlight) 8%, var(--surface)); border: 1px solid var(--line); border-radius: 10px; padding: 6px 2px; }
.size-prices span { font-size: .78rem; color: var(--muted); }
.size-prices strong { font-size: 1.02rem; }
.flat-price { margin: 4px 0 12px; }
.flat-price strong { font-size: 1.1rem; }
.save { color: var(--ok); font-weight: 600; font-size: .95rem; }
.plan .ticks { margin-top: 0; }
details.group { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 10px; margin: 0 0 12px; }
details.group > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
details.group > .choice:first-of-type { margin-top: 6px; }
details.group .row { margin-bottom: 8px; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; aspect-ratio: 4 / 3; }
/* the discount line gets the honey-gold highlight (green text on gold passes contrast) */
.summary .line.discount { background: var(--highlight); color: var(--highlight-text); border-radius: 8px; padding: 6px 10px; margin: 4px 0; border-bottom: 0; font-weight: 700; }
.badge { display: inline-block; background: var(--highlight); color: var(--highlight-text); font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--highlight); color: var(--highlight-text); font-weight: 700; font-size: .95rem; padding: 8px 16px; border-radius: 99px; text-decoration: none; margin: 0 0 18px; }
.pill:hover { filter: brightness(.96); }
.plan { position: relative; }
.plan .badge { position: absolute; top: 16px; right: 16px; }
.summary ul { margin: 8px 0 0; padding-left: 1.2em; }
.visits { list-style: none; padding: 0; margin: 12px 0; }
.visits li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.visits .pending { color: var(--warn); font-size: .9rem; }

/* owner page */
body.admin .booking header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
body.admin .booking h3 { margin: 0 0 6px; }
body.admin .booking p { margin: 0 0 8px; }
body.admin .booking .actions { margin-top: 14px; }
.status-requested { border-color: var(--warn); color: var(--warn); }
.status-confirmed { border-color: var(--ok); color: var(--ok); }
.status-cancelled { color: var(--muted); }
.warn { color: var(--warn); }
.admin-section h2 { display: flex; align-items: center; gap: 10px; }

/* footer + sticky phone button */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 0; color: var(--muted); font-size: .95rem; }
.site-footer p { margin: 0 0 .4em; }
.foot { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 30; }
@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
}
@media (max-width: 520px) {
  .two { grid-template-columns: 1fr; }
  .site-header nav { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* address suggestions under the street box */
.suggestions { list-style: none; margin: 4px 0 0; padding: 4px; background: var(--surface); border: 1.5px solid var(--field); border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.08); position: relative; z-index: 5; }
.suggestions li { padding: 12px; border-radius: 8px; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.special-price { font-size: 1.15rem; margin: 8px 0 2px; }
.add-booking summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.add-booking fieldset { border: 0; padding: 0; margin: 14px 0 0; }
.add-booking legend { font-weight: 600; margin-bottom: 6px; }

/* the box a customer must tick on the last step: hard to miss */
.must-confirm { border: 3px solid var(--highlight); background: color-mix(in srgb, var(--highlight) 16%, var(--surface)); border-radius: 16px; padding: 18px 18px 16px; margin: 22px 0 8px; }
.must-confirm h3 { margin: 0 0 10px; font-size: 1.1rem; }
.must-confirm .check { font-weight: 700; font-size: 1.1rem; line-height: 1.4; margin: 0; }
.must-confirm .check input { width: 32px; height: 32px; margin-top: 0; }
.must-confirm.is-done { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.must-confirm-error { color: var(--danger); font-weight: 700; margin: 12px 0 0; }
.must-confirm.needs-attention { border-color: var(--danger); animation: nudge .45s ease 1; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .must-confirm.needs-attention { animation: none; } }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* rego lookup */
.rego-box { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px 12px; margin: 0 0 22px; }
.rego-box label { margin-top: 0; }
.rego-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.rego-row input { flex: 1 1 140px; width: auto; min-width: 0; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.rego-row select { flex: 0 0 auto; width: auto; }
.rego-result { margin: 10px 0 0; min-height: 1.4em; }
.rego-result.ok { color: var(--ok); font-weight: 600; }
.rego-result.bad { color: var(--danger); font-weight: 600; }
.rego-choices { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

/* "Book now" block at the end of each page, above the footer */
.end-cta { padding: 36px 0 44px; text-align: center; border-top: 1px solid var(--line); }
.end-cta-text { font-size: 1.2rem; font-weight: 700; margin: 0 0 14px; }
.sticky-cta { transition: transform .35s var(--ease, ease), opacity .3s; }
.sticky-cta.is-away { transform: translateY(110%); opacity: 0; pointer-events: none; }

body.no-float { padding-bottom: 0; }

/* customer account */
.inline-form { display: inline; }
