/* UK demo-site template. Colours + fonts come from tokens.css (compose.mjs writes it from site.json "theme").
   Design rules (frontend-design / design-elevation / interaction-design passes, 14.11.2026):
   - The memorable thing is the contact block: the phone number set as display type, with "open now" above it.
     Everything else stays quiet: plain lists, no card grid, no gradient washes, no uppercase labels.
   - Spacing on a 4px scale (0.25rem steps). Type scale ~1.25: 17 / 21 / 27 / 34 / 43 / 54px.
   - One orchestrated motion moment (contact block on load). Button feedback on press. Reduced motion = none.
   - Variants change identity, not structure: v-bold (trades), v-soft (beauty), v-fascia (shopfront sign). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; scroll-padding-bottom: 6rem; } /* WCAG 2.4.11: sticky header/bar never hide focus */
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-wrap: break-word; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .75rem; font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.3125rem; line-height: 1.25; margin-bottom: .25rem; }
p { margin: 0 0 1rem; }
.container { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: .75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

/* Demo banner: plain, honest, not alarming */
.demo-banner { background: var(--ink); color: var(--bg); font-size: .9375rem; line-height: 1.4; padding: .625rem 1rem; text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { display: inline-block; padding: .75rem 0; font: 700 1.125rem/1.2 var(--font-head); color: var(--ink); text-decoration: none; } /* 2.5.8 target size */
.header-call { display: inline-block; color: var(--ink); font-weight: 600; text-decoration: none; padding: .75rem 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-call:hover { text-decoration: underline; }

/* Buttons. States: default, hover (desktop), pressed, focus. 48px tall. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.25rem; border-radius: var(--radius-btn);
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent;
  transition: background-color .15s ease-out, transform .1s ease-out;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-wa { background: #097A3D; color: #fff; } /* white text passes AA on this green */
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn:active { transform: scale(.98); }
@media (hover: hover) {
  .btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
  .btn-wa:hover { background: #07652F; }
  .btn-ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1rem; }

/* Hero: name, one sentence, then the contact block */
.hero { padding: 2.5rem 0 3rem; }
.hero-inner { display: grid; gap: 2rem; }
.hero h1 { font-size: clamp(2.375rem, 9vw, 3.375rem); letter-spacing: -.02em; max-width: 14ch; }
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--muted); max-width: 34ch; margin: 0; }
.contact { padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.contact-number { margin: 0 0 1.25rem; }
.contact-number a {
  font: 700 clamp(2rem, 9.5vw, 3rem)/1 var(--font-head); letter-spacing: -.01em;
  color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.contact-number a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.status { font-weight: 600; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.status:empty { display: none; }
.status::before { content: ""; width: .625rem; height: .625rem; border-radius: 50%; background: var(--muted); flex: none; }
.status.is-open { color: var(--ok); }
.status.is-open::before { background: var(--ok); }
.rating { color: var(--muted); margin: 0; }
.rating strong { color: var(--ink); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-title { font-size: clamp(1.6875rem, 6vw, 2.125rem); letter-spacing: -.01em; max-width: 24ch; }

/* Services: a plain list, separated by rules, not a card grid */
.services { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.services li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.services p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Gallery: owner-uploaded photos only */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1.5rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-img); }

/* Reviews: the first one is the featured quote, the rest are quieter */
.quotes { display: grid; gap: 1.5rem; margin: 1.5rem 0; }
.quote { margin: 0; }
.quote p { margin-bottom: .5rem; max-width: 60ch; }
.quote footer { color: var(--muted); font-size: .9375rem; }
.quote:first-child p { font: 500 clamp(1.3125rem, 5vw, 1.75rem)/1.35 var(--font-head); color: var(--ink); max-width: 32ch; }
.quote:first-child p::before { content: "\201C"; }
.quote:first-child p::after { content: "\201D"; }

/* Hours + where */
.visit { background: var(--soft); }
.visit-grid { display: grid; gap: 2.5rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 26rem; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: .5rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { text-align: left; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.address { font-size: 1.1875rem; }

/* Closing call to action */
.final .section-title { font-size: clamp(1.875rem, 7vw, 2.625rem); }

/* Footer + sticky mobile bar */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 7rem; font-size: .9375rem; color: var(--muted); }
.site-footer a { color: var(--ink); }
.footer-grid { display: grid; gap: 1rem; }
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 20; display: flex; gap: .5rem;
  padding: .625rem 1rem calc(.625rem + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line); color: var(--ink);
  transition: transform .2s ease-out;
}
.sticky-cta .btn { flex: 1; white-space: nowrap; padding-inline: .75rem; }
.sticky-cta.is-hidden { transform: translateY(110%); }

/* Plain pages */
.plain-page .prose { max-width: 42rem; }
.bullets { padding-left: 1.25rem; }

@media (min-width: 48rem) {
  .hero { padding: 5rem 0 4.5rem; }
  .hero-inner { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 4rem; }
  .contact { padding: 0 0 0 2rem; border-top: 0; border-left: 2px solid var(--ink); }
  .services { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 2rem; border-top: 0; }
  .services li { border-bottom: 0; border-top: 2px solid var(--ink); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .quotes { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .quote:first-child { grid-column: 1 / -1; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 2rem; }
  html { scroll-padding-bottom: 0; }
}

/* ---------- Variants ---------- */
/* bold (trades): the hero is a solid colour block like a van livery; the number sits on an accent rule. */
.v-bold { --radius-btn: 4px; --radius-img: 4px; }
.v-bold .hero { background: var(--primary); color: var(--primary-ink); }
.v-bold .hero .lead, .v-bold .hero .rating { color: color-mix(in srgb, var(--primary-ink) 85%, var(--primary)); }
.v-bold .hero .rating strong, .v-bold .hero .contact-number a { color: var(--primary-ink); }
.v-bold .hero .contact { border-color: var(--accent); }
.v-bold .hero .btn-primary { background: var(--accent); color: var(--accent-ink); }
.v-bold .hero .status.is-open { color: var(--primary-ink); }
.v-bold .hero .status.is-open::before { background: var(--accent); }
.v-bold .hero .status::before { background: color-mix(in srgb, var(--primary-ink) 60%, var(--primary)); }

/* soft (beauty): rounded, calm, a solid tint behind the hero; the featured review is the moment. */
.v-soft { --radius-btn: 999px; --radius-img: 20px; }
.v-soft .hero { background: var(--soft); }
.v-soft .contact { border-color: var(--primary); }
.v-soft .hero h1 { font-weight: 600; }
.v-soft .quote:first-child p { font-weight: 400; }

/* fascia (premium shops): the business name set like a shopfront sign in a coloured band. */
.v-fascia { --radius-btn: 2px; --radius-img: 2px; }
.v-fascia .hero { padding-top: 0; }
.v-fascia .hero h1 {
  background: var(--primary); color: var(--primary-ink); max-width: none;
  margin: 0 calc(50% - 50vw) 1.5rem; padding: 1.5rem calc(50vw - 50%);
  font-weight: 500; letter-spacing: .02em; text-align: center;
}

/* The one motion moment: the contact block settles in after load. Only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .contact { animation: settle .45s cubic-bezier(.2, .7, .2, 1) .1s both; }
}
@keyframes settle { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.v-fascia { overflow-x: clip; }
.more { display: inline-block; padding: .5rem 0; } /* 2.5.8: standalone link, not inline in a sentence */
@media (min-width: 48rem) {
  /* fascia: the sign band spans the full row; lead and contact block sit side by side under it */
  .v-fascia .hero-text { display: contents; }
  .v-fascia .hero-inner { row-gap: 2.5rem; align-items: start; }
  .v-fascia .hero h1 { grid-column: 1 / -1; margin-bottom: 0; }
  .v-fascia .lead { align-self: center; }
}
