:root {
  --color-primary: #111111;
  --color-on-primary: #ffffff;
  --color-accent: #00b7f5;
  --color-bg: #ffffff;
  --color-surface: #eef9fe;
  --color-text: #18181b;
  --color-muted: #52525b;
  --header-bg: #111111;
  --header-text: #ffffff;
  --header-line: #ffffff;
  --header-button-bg: #ffffff;
  --header-button-text: #111111;
  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --radius-button: 999px;
}

/* Shared structure for every theme. Colors, fonts and corners come from the
   :root custom properties generated per site; themes layer their personality on top. */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Leave room for a header that stays at the top, so it never covers the focused item or a link's target
   (WCAG 2.4.11). site.js keeps --header-height up to date; the fallback covers visitors without JavaScript. */
html { scroll-padding-top: calc(var(--header-height, 6rem) + 1rem); }
html:has(.header-bar) { scroll-padding-top: calc(var(--header-height, 8.5rem) + 1rem); }
html:has(> body.header-scroll-static) { scroll-padding-top: 0; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
/* <picture> only offers smaller copies; it adds no box, so layouts style the <img> as before. Its <source> must not
   become a flex or grid item either (it did, adding a gap before footer and header logos); browsers still read it. */
picture { display: contents; }
picture > source { display: none; }

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

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

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

/* Focus rings and the current-page underline use the primary color: it's tested at 4.5:1 against the
   background, while accents are decorative and often too light (WCAG 1.4.11 needs 3:1). On primary-filled
   or dark photo areas the ring turns light instead. */
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.section-cta :focus-visible { outline-color: var(--color-on-primary); }
.hero-background.has-image :focus-visible { outline-color: #fff; }

.visually-hidden {
  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: -3rem; z-index: 100;
  padding: 0.5rem 1rem; background: var(--color-primary); color: var(--color-on-primary);
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Layout */

.container { width: min(100% - 2rem, 72rem); margin-inline: auto; }
/* Every section shares the container's left edge. Reading text and forms keep a comfortable line length
   inside it (about 70 characters) instead of being centered in a narrower box, so edges line up down the page. */
.container.measure > * { max-width: 48rem; }
.container.measure-form > * { max-width: 40rem; }
.container.narrow { max-width: 40rem; }
.center { text-align: center; }

.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-heading { max-width: 44rem; margin-bottom: 2.5rem; }
.lead { font-size: 1.2rem; color: var(--color-muted); }

/* Formatted text from the editor toolbar */
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin-block: 0.25em; }
.prose li > p { margin: 0; }
.prose > :last-child { margin-bottom: 0; }

/* Buttons */

.button {
  display: inline-block;
  padding: 0.7em 1.4em;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-button);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 0 0 / 0.15); }
.button-large { font-size: 1.1rem; padding: 0.85em 1.7em; }
.button-inverse { background: var(--color-on-primary); color: var(--color-primary); border-color: var(--color-on-primary); }

/* Cards */

.card {
  background: var(--color-bg);
  border: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg, var(--color-bg));
  color: var(--header-text, var(--color-text));
  border-bottom: 1px solid color-mix(in srgb, var(--header-text, var(--color-text)) 10%, transparent);
}
/* Header background (Design tab): the theme sets --header-* from the palette. On a colored header the text color,
   picked by contrast, also draws the current-page underline and focus rings. */
.site-header :focus-visible { outline-color: var(--header-line, var(--color-primary)); }
.site-header .site-name { color: inherit; }
.header-scroll-static .site-header { position: static; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.site-name {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem;
  color: var(--color-text); text-decoration: none;
}
.site-name.has-logo { display: inline-flex; align-items: center; gap: 0.75rem; margin: 0; line-height: 1.2; }
.site-logo { display: block; width: auto; height: auto; max-height: 3.5rem; max-width: min(16rem, 60vw); }

/* Logo sizes, chosen separately for the header and the footer. Each shape gets its own height per size so logos look
   equally big; width caps keep wide ones off the menu. The footer can show its own logo (e.g. a white one on a dark footer). */
.site-header .site-name.has-logo { padding-block: 0.5rem; }
.site-header .site-logo { max-height: var(--logo-h, 4.5rem); max-width: min(var(--logo-w, 22rem), 60vw); }
.logo-small { --logo-w: 16rem; }
.logo-medium { --logo-w: 22rem; }
.logo-large { --logo-w: 28rem; }
.logo-wide.logo-small { --logo-h: 3rem; }
.logo-wide.logo-medium { --logo-h: 4.5rem; }
.logo-wide.logo-large { --logo-h: 6rem; }
.logo-landscape.logo-small { --logo-h: 4.5rem; }
.logo-landscape.logo-medium { --logo-h: 6rem; }
.logo-landscape.logo-large { --logo-h: 8rem; }
.logo-square.logo-small { --logo-h: 5rem; }
.logo-square.logo-medium { --logo-h: 7.5rem; }
.logo-square.logo-large { --logo-h: 10rem; }
.logo-tall.logo-small { --logo-h: 6rem; }
.logo-tall.logo-medium { --logo-h: 8.5rem; }
.logo-tall.logo-large { --logo-h: 11.25rem; }

/* A centered header gives the logo a row of its own, so on wider screens each size is a fifth bigger and may be wider. */
@media (min-width: 48rem) {
  .header-centered .site-header .logo-small { --logo-w: 20rem; }
  .header-centered .site-header .logo-medium { --logo-w: 28rem; }
  .header-centered .site-header .logo-large { --logo-w: 36rem; }
  .header-centered .site-header .logo-wide.logo-small { --logo-h: 3.5rem; }
  .header-centered .site-header .logo-wide.logo-medium { --logo-h: 5.5rem; }
  .header-centered .site-header .logo-wide.logo-large { --logo-h: 7.25rem; }
  .header-centered .site-header .logo-landscape.logo-small { --logo-h: 5.5rem; }
  .header-centered .site-header .logo-landscape.logo-medium { --logo-h: 7.25rem; }
  .header-centered .site-header .logo-landscape.logo-large { --logo-h: 9.5rem; }
  .header-centered .site-header .logo-square.logo-small { --logo-h: 6rem; }
  .header-centered .site-header .logo-square.logo-medium { --logo-h: 9rem; }
  .header-centered .site-header .logo-square.logo-large { --logo-h: 12rem; }
  .header-centered .site-header .logo-tall.logo-small { --logo-h: 7.25rem; }
  .header-centered .site-header .logo-tall.logo-medium { --logo-h: 10.25rem; }
  .header-centered .site-header .logo-tall.logo-large { --logo-h: 13.5rem; }
}

/* Footer logos are smaller than the header's: the footer is about the details beside and below them. */
.site-footer .site-logo { max-height: var(--logo-h, 3rem); max-width: min(var(--logo-w, 16rem), 60vw); }
.site-footer .logo-small { --logo-w: 12rem; }
.site-footer .logo-medium { --logo-w: 16rem; }
.site-footer .logo-large { --logo-w: 20rem; }
.site-footer .logo-wide.logo-small { --logo-h: 2rem; }
.site-footer .logo-wide.logo-medium { --logo-h: 3rem; }
.site-footer .logo-wide.logo-large { --logo-h: 4rem; }
.site-footer .logo-landscape.logo-small { --logo-h: 2.75rem; }
.site-footer .logo-landscape.logo-medium { --logo-h: 4rem; }
.site-footer .logo-landscape.logo-large { --logo-h: 5.25rem; }
.site-footer .logo-square.logo-small { --logo-h: 3rem; }
.site-footer .logo-square.logo-medium { --logo-h: 4.5rem; }
.site-footer .logo-square.logo-large { --logo-h: 6rem; }
.site-footer .logo-tall.logo-small { --logo-h: 3.5rem; }
.site-footer .logo-tall.logo-medium { --logo-h: 5.25rem; }
.site-footer .logo-tall.logo-large { --logo-h: 7rem; }

/* "Stays at top, logo shrinks": once scrolled, site.js adds .is-scrolled and the logo drops to 60% of its chosen size,
   so a Large logo stays larger than a Small one, but never below a compact height for its shape. */
.logo-wide { --logo-h-small: 2.5rem; }
.logo-landscape { --logo-h-small: 3.5rem; }
.logo-square { --logo-h-small: 4rem; }
.logo-tall { --logo-h-small: 4.5rem; }
.header-scroll-shrink .site-logo, .header-scroll-shrink .site-name.has-logo { transition: max-height 0.2s ease, max-width 0.2s ease, padding 0.2s ease; }
.site-header.is-scrolled .site-name.has-logo { padding-block: 0.25rem; }
.site-header.is-scrolled .site-logo { max-height: max(var(--logo-h-small, 3.5rem), calc(var(--logo-h, 4.5rem) * 0.6)); max-width: min(max(14rem, calc(var(--logo-w, 22rem) * 0.6)), 60vw); }
/* Header bar: a slim strip above the menu with the details ticked for the header (Business details tab). */
.header-bar { background: var(--color-surface); font-size: 0.9rem; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.header-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; min-height: 2.5rem; padding-block: 0.25rem; }
.header-contact { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.header-contact a { color: var(--color-text); font-weight: 600; text-decoration: none; display: inline-block; padding-block: 0.3rem; }
.header-contact a:hover { text-decoration: underline; }
.header-bar .social-links { margin: 0 0 0 auto; }
.header-bar .social-links a { width: 2rem; height: 2rem; }
.header-bar .social-icon { width: 1.05rem; height: 1.05rem; }
/* On a colored header the bar shares the header's color, set off by a faint line. */
body:not(.header-bg-light) .site-header .header-bar { background: transparent; color: inherit; border-bottom: 1px solid color-mix(in srgb, var(--header-text) 20%, transparent); }
body:not(.header-bg-light) .site-header .header-contact a,
body:not(.header-bg-light) .site-header .social-links a,
body:not(.header-bg-light) .site-header .social-links a:hover { color: var(--header-text); }
body:not(.header-bg-light) .site-header :focus-visible { outline-color: var(--header-line); }

.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--header-text, var(--color-text)); text-decoration: none; font-weight: 500; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--header-line, var(--color-primary)); }

.header-centered .header-inner { flex-direction: column; justify-content: center; padding-block: 1rem; gap: 0.5rem; }

.nav-toggle {
  display: none; width: 2.75rem; height: 2.75rem; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--header-text, var(--color-text));
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 1.5rem; height: 2px; margin-inline: auto; background: currentColor; content: ""; position: relative;
}
.nav-toggle-bar::before { position: absolute; top: -7px; }
.nav-toggle-bar::after { position: absolute; top: 7px; }

@media (max-width: 47.99rem) {
  .js .nav-toggle { display: block; }
  /* Keep the menu button beside the logo: the logo and name shrink (and the name wraps) instead. */
  .js .header-inner > .site-name { max-width: calc(100% - 3.75rem); }
  /* The header stays on screen while scrolling, so phones get 70% of the logo size. */
  .site-header .site-logo { max-height: calc(var(--logo-h, 4.5rem) * 0.7); max-width: 45vw; }
  .site-header.is-scrolled .site-logo { max-height: calc(max(var(--logo-h-small, 3.5rem), calc(var(--logo-h, 4.5rem) * 0.6)) * 0.7); max-width: 45vw; }
  .js .header-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .js .site-nav { display: none; width: 100%; padding-bottom: 1rem; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0.5rem; }
}

/* Page header (pages that don't start with a hero) */

.page-header { background: var(--color-surface); padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-header h1 { margin: 0; }

/* Hero */

.section-hero { position: relative; background: var(--color-surface); }
.hero-centered .hero-inner { text-align: center; }
.hero-centered .hero-text { max-width: 46rem; margin-inline: auto; }
.hero-split .hero-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 48rem) { .hero-split.has-image .hero-inner { grid-template-columns: 1.1fr 1fr; } }
.hero-media img { border-radius: var(--radius); width: 100%; }
.hero-centered .hero-media { max-width: 56rem; margin: 2.5rem auto 0; }

/* The dark background sits behind the photo: if the photo is slow or fails to load, the white text stays readable,
   and contrast checkers (which can't see images) measure white on the scheme's text colour, a tested AA pair. */
.hero-background.has-image { color: #fff; background-color: var(--color-text); min-height: min(80vh, 40rem); display: flex; align-items: center; }
.hero-background.has-image .lead { color: #fff; }
.hero-backdrop { position: absolute; inset: 0; }
.hero-backdrop img { width: 100%; height: 100%; object-fit: cover; }
/* The photo keeps nearly its full brightness (a light 10% tint so the panel doesn't look pasted on). The text sits
   on its own black panel, only as dark as that photo needs: App\Media\TextPanel measures each photo once and picks
   the lightest step where white text meets 4.5:1 (hero-panel-20 … -60; -60 passes even over pure white). */
.hero-backdrop::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.1); }
.hero-background .hero-inner { position: relative; }
.hero-background .hero-text {
  max-width: 40rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border-radius: var(--radius);
  background: rgb(0 0 0 / var(--hero-panel, 0.6));
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.hero-background .hero-text > :last-child { margin-bottom: 0; }
.hero-panel-20 { --hero-panel: 0.2; }
.hero-panel-30 { --hero-panel: 0.3; }
.hero-panel-40 { --hero-panel: 0.4; }
.hero-panel-50 { --hero-panel: 0.5; }
.hero-panel-60 { --hero-panel: 0.6; }

/* Split layouts (image + text) */

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 48rem) {
  .has-image .split { grid-template-columns: 1fr 1fr; }
  .image-right .split-media { order: 2; }
}
.split-media img { border-radius: var(--radius); width: 100%; }

/* Services */

.services-items { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.services-grid .services-items { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.services-list .services-items .card { border-width: 0 0 1px; border-radius: 0; background: none; }
.services-list .card-body { padding-inline: 0; }
.card-body { padding: 1.5rem; }
.card-body .prose { color: var(--color-muted); }
.card-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* Testimonials */

.section-testimonials { background: var(--color-surface); }
.testimonial-items { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.testimonial { margin: 0; padding: 1.75rem; height: 100%; display: flex; flex-direction: column; gap: 1rem; }
.testimonial blockquote { margin: 0; font-size: 1.1rem; flex: 1; }
.testimonial blockquote::before { content: "\201C"; display: block; font-family: var(--font-heading); font-size: 3rem; line-height: 1; color: var(--color-accent); }
.testimonial figcaption span { display: block; color: var(--color-muted); font-size: 0.95rem; }

/* Call to action */

.section-cta { background: var(--color-primary); color: var(--color-on-primary); }
.section-cta .lead { color: inherit; opacity: 0.9; }

/* Contact */

.contact-grid { display: grid; gap: 1.25rem; margin: 0; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.contact-grid .card { padding: 1.5rem; }
.contact-grid dt { font-weight: 700; margin-bottom: 0.35rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }
.contact-grid dd { margin: 0; }
.contact-grid .social-links { margin-left: -0.5rem; }

/* Social icons (header bar, footer, Contact details). Each link is at least 2rem square (WCAG 2.5.8 target size). */
.social-links { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.75rem 0 0 -0.5rem; padding: 0; list-style: none; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; color: var(--color-text); border-radius: var(--radius); }
.social-links a:hover { color: var(--color-primary); }
.social-icon { display: block; width: 1.3rem; height: 1.3rem; }

/* Opening hours */
.hours-list { margin: 0; padding: 0; list-style: none; }
.hours-list li { margin-bottom: 0.2rem; }
.hours-note { margin: 0.5rem 0 0; color: var(--color-muted); }

.contact-form { padding: clamp(1.25rem, 4vw, 2rem); margin-top: 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field .optional { font-weight: 400; color: var(--color-muted); }
.field input, .field textarea {
  width: 100%; padding: 0.7rem 0.85rem; font: inherit; color: inherit; background: var(--color-bg);
  border: 1px solid color-mix(in srgb, var(--color-text) 30%, transparent); border-radius: var(--radius);
}
.field input:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--color-primary) 35%, transparent); border-color: var(--color-primary); }
.hp-field { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius); background: var(--color-surface); font-weight: 600; }
.form-status.is-error { outline: 2px solid #b42318; }

/* Footer */

.site-footer { background: var(--color-surface); padding-top: 3rem; margin-top: 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-contact, .footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-contact li, .footer-nav li { margin-bottom: 0.4rem; }
.footer-nav a, .footer-contact a { color: var(--color-text); }
.footer-areas { max-width: 28rem; margin: 0.4rem 0 0; }
/* With the name beside the logo, the details below line up with the name: the logo takes the first column
   and everything else the second. (A logo on its own stands in for the name, so details sit under it.) */
.footer-brand:has(> .site-name.has-logo > .site-name-text) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.75rem; align-content: start; }
.footer-brand:has(> .site-name.has-logo > .site-name-text) > .site-name { display: contents; }
.footer-brand:has(> .site-name.has-logo > .site-name-text) .site-logo { grid-column: 1; grid-row: 1; }
.footer-brand:has(> .site-name.has-logo > .site-name-text) .site-name-text { grid-column: 2; grid-row: 1; align-self: center; }
.footer-brand:has(> .site-name.has-logo > .site-name-text) > :not(.site-name) { grid-column: 2; }
.footer-heading { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; }
.footer-legal { border-top: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent); margin-top: 2rem; padding-block: 1.25rem; color: var(--color-muted); font-size: 0.9rem; }
/* Site credit: below the copyright on phones; beside it, after a divider, on wider screens. The link is at least 24px tall (WCAG 2.5.8). */
.footer-legal p { margin: 0; }
.site-credit { margin-top: 0.35rem; }
.site-credit a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 1.5rem; color: inherit; text-decoration: none; }
.site-credit a:hover { text-decoration: underline; }
.site-credit img { display: block; flex: none; width: 17px; height: 22px; }
@media (min-width: 40rem) {
  .footer-legal { display: flex; align-items: center; flex-wrap: wrap; column-gap: 0.75rem; }
  .site-credit { display: flex; align-items: center; gap: 0.75rem; margin-top: 0; }
  .site-credit::before { content: "|" / ""; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .header-scroll-shrink .site-logo, .header-scroll-shrink .site-name.has-logo { transition: none; }
  .button:hover { transform: none; }
}

/* Bold theme: heavy headings, solid colour bands and square shapes, with Contact as a button in the menu.
   The primary colour fills the hero and page headers (its on-primary text is contrast-tested); the call to
   action sits on the scheme's darkest colour so it stands apart. Accents stay decorative. */

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }

/* Buttons: bigger and set in small capitals */
.button { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; padding: 0.85em 1.5em; }
.button-large { font-size: 1.05rem; padding: 1em 1.8em; }

/* Header: a thick primary stripe on top, stronger menu, Contact as a button (reversed on a colored header) */
.site-header { border-top: 6px solid var(--color-primary); }
/* With a header bar, the bar becomes the primary stripe (its on-primary text is contrast-tested). */
.site-header:has(.header-bar) { border-top: 0; }
.header-bar { background: var(--color-primary); color: var(--color-on-primary); border-bottom: 0; }
.header-bar .header-contact a, .header-bar .social-links a, .header-bar .social-links a:hover { color: var(--color-on-primary); }
.header-bar :focus-visible { outline-color: var(--color-on-primary); }
.site-nav a { font-weight: 700; }
.site-nav ul { align-items: center; }
.site-nav a[data-page-type="contact"] {
  display: inline-block;
  padding: 0.5em 1.1em;
  border-bottom: 0;
  border-radius: var(--radius-button);
  background: var(--header-button-bg, var(--color-primary));
  color: var(--header-button-text, var(--color-on-primary));
}
.site-nav a[data-page-type="contact"]:hover { text-decoration: underline; }
.site-nav a[data-page-type="contact"][aria-current="page"] { box-shadow: inset 0 -4px 0 var(--header-button-text, var(--color-on-primary)); }

/* Hero and page headers: a solid primary band (photo-backdrop heroes keep their dark overlay) */
.section-hero:not(.hero-background.has-image),
.page-header { background: var(--color-primary); color: var(--color-on-primary); }
.section-hero:not(.hero-background.has-image) .lead { color: inherit; }
.section-hero:not(.hero-background.has-image) .button { background: var(--color-on-primary); color: var(--color-primary); border-color: var(--color-on-primary); }
.section-hero :focus-visible, .page-header :focus-visible { outline-color: var(--color-on-primary); }
.section-hero h1, .section-hero h2 { font-size: clamp(2.6rem, 7vw, 4.6rem); }

/* Images get an offset accent block behind them */
.hero-media, .split-media { position: relative; }
.hero-media::before, .split-media::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  background: var(--color-accent);
  border-radius: var(--radius);
}
.hero-media img, .split-media img { position: relative; }
.image-right .split-media::before { inset: 1rem 1rem -1rem -1rem; }

/* Section headings: a thick accent block underneath */
.section-heading h2::after,
.section-text h2::after,
.split-text h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 6px;
  margin-top: 0.75rem;
  background: var(--color-accent);
}
.center h2::after { margin-inline: auto; }

/* Service cards: tinted, with a thick primary bar on top */
.services-grid .card {
  border: 0;
  border-top: 6px solid var(--color-primary);
  background: var(--color-surface);
}
.card h3 { font-size: 1.35rem; }

/* Testimonials: oversized quote marks, heavier names */
.testimonial blockquote::before { font-size: 4.5rem; font-weight: 800; }
.testimonial figcaption strong { font-weight: 800; }

/* Call to action: the scheme's darkest colour, so it stands apart from the primary hero */
.section-cta { background: var(--color-text); color: #fff; }
.section-cta .button-inverse { background: #fff; color: var(--color-text); border-color: #fff; }
/* As a page's last section it sits on the dark footer, so it takes the primary colour instead (the tested
   primary / on-primary pair, as in Classic), keeping a clear break between the two. */
main > .section-cta:last-child { background: var(--color-primary); color: var(--color-on-primary); }
main > .section-cta:last-child .button-inverse { background: var(--color-on-primary); color: var(--color-primary); border-color: var(--color-on-primary); }
/* Some schemes have a dark primary, so the footer's stripe switches to the accent there to mark the break. */
main:has(> .section-cta:last-child) + .site-footer { border-top-color: var(--color-accent); }

/* Footer: the scheme's darkest colour with white text (the same pair as the call to action, contrast-tested),
   under the primary stripe, so the page ends on a solid block instead of running into a pale last section. */
.site-footer { border-top: 6px solid var(--color-primary); background: var(--color-text); color: #fff; }
.site-footer .site-name,
.site-footer a,
.site-footer .social-links a,
.site-footer .social-links a:hover,
.site-footer .footer-legal,
.site-footer .hours-note { color: #fff; }
.site-footer .footer-legal { border-top-color: rgb(255 255 255 / 0.25); }
.site-footer :focus-visible { outline-color: #fff; }

@media (max-width: 47.99rem) {
  .js .site-nav ul { align-items: flex-start; }
  .hero-media::before, .split-media::before { inset: 0.6rem -0.6rem -0.6rem 0.6rem; }
  .image-right .split-media::before { inset: 0.6rem -0.6rem -0.6rem 0.6rem; }
  /* In the phone menu, Contact is a plain link like the others (same underline on hover and for the current page). */
  .site-nav a[data-page-type="contact"] {
    display: inline;
    padding: 0.25rem 0;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--header-text, var(--color-text));
  }
  .site-nav a[data-page-type="contact"]:hover { text-decoration: none; }
  .site-nav a[data-page-type="contact"]:hover,
  .site-nav a[data-page-type="contact"][aria-current="page"] { border-bottom-color: var(--header-line, var(--color-primary)); box-shadow: none; }
}
