:root {
  --container: 72rem;
  --space-section: clamp(3.5rem, 7vw, 6rem);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --font-heading: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-label: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, monospace;
  --bg: #ffffff;
  --surface: #f4f6f8;
  --surface-2: #eef1f4;
  --ink: #101820;
  --muted: #5a6773;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --line: #e2e7ec;
  --shadow: 0 18px 40px -28px rgb(16 24 32 / 45%);
  --ring: #1d4ed8;
  /* Photo hero (#76): text and buttons that sit on the darkened photo. The scrim is the theme's
     ink; themes whose accent disappears on it swap to a light button. */
  --hero-scrim: var(--ink);
  --hero-ink: #ffffff;
  --hero-button-bg: var(--accent);
  --hero-button-ink: var(--accent-ink);
  color-scheme: light;
}

html[data-theme="tradesman"] {
  --bg: #ffffff;
  --surface: #f2f5f8;
  --surface-2: #e8edf2;
  --ink: #0b1b2b;
  --muted: #516273;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --line: #dbe3ea;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --font-heading: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --ring: #c2410c;
}

html[data-theme="craft"] {
  --bg: #faf6ef;
  --surface: #f2eadf;
  --surface-2: #ebe1d2;
  --ink: #2a2721;
  --muted: #6c6459;
  --accent: #2f5d46;
  --accent-ink: #fdfbf6;
  --line: #e2d7c6;
  --radius: 4px;
  --radius-sm: 3px;
  --radius-lg: 6px;
  --font-heading: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --ring: #2f5d46;
  --hero-ink: #fdfbf6;
  --hero-button-bg: #fdfbf6;
  --hero-button-ink: #2f5d46;
}

html[data-theme="clean"] {
  --bg: #ffffff;
  --surface: #f4f6f9;
  --surface-2: #eceff4;
  --ink: #0b0f14;
  --muted: #5b636e;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --line: #e3e7ee;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --ring: #1d4ed8;
}

html[data-theme="bold"] {
  --bg: #ffffff;
  --surface: #f3f4f2;
  --surface-2: #e9ebe6;
  --ink: #0b0b0c;
  --muted: #565a55;
  --accent: #111827;
  --accent-ink: #d9f99d;
  --line: #e2e4df;
  --radius: 2px;
  --radius-sm: 2px;
  --radius-lg: 2px;
  --font-heading: "Helvetica Neue", "Arial Black", Arial, sans-serif;
  --ring: #111827;
  --hero-button-bg: #d9f99d;
  --hero-button-ink: #0b0b0c;
}

html[data-theme="warm"] {
  --bg: #fdf8f1;
  --surface: #f6ecdf;
  --surface-2: #efe1cd;
  --ink: #2c211a;
  --muted: #746253;
  --accent: #9a3412;
  --accent-ink: #fff7ed;
  --line: #e7d8c3;
  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 16px;
  --font-heading: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ring: #9a3412;
  --hero-ink: #fff7ed;
  --hero-button-bg: #fff7ed;
  --hero-button-ink: #9a3412;
}

html[data-theme="mono"] {
  --bg: #ffffff;
  --surface: #f5f5f3;
  --surface-2: #ebebe8;
  --ink: #111111;
  --muted: #5c5c58;
  --accent: #111111;
  --accent-ink: #ffffff;
  --line: #deded9;
  --radius: 0px;
  --radius-sm: 0px;
  --radius-lg: 0px;
  --font-heading: ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  --ring: #111111;
  --hero-button-bg: #ffffff;
  --hero-button-ink: #111111;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.45rem, 5.4vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 20;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  text-decoration: none;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-meta {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.5rem;
  min-width: 0;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-header nav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.header-cta {
  flex: none;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* A one-page site has no nav (#76), so the phone button takes the free space itself. */
.brand + .header-cta {
  margin-left: auto;
}

.header-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
main > section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-section) clamp(1rem, 4vw, 2.5rem);
  scroll-margin-top: 5rem;
}

main > section + section {
  padding-top: 0;
}

/* Rhythm (#76): services, testimonials and contact sit on a full-width surface band (painted with a
   border-image outset, so the markup and the container stay the same). A band needs its own top
   padding, and so does whatever follows a band or the photo hero. */
main > :is(.services, .testimonials, .contact) {
  border-image: conic-gradient(var(--surface) 0 0) fill 0 / / 0 100vw;
}

main > :is(.services, .testimonials, .contact),
main > :is(.services, .testimonials, .contact, .hero-overlay) + section {
  padding-top: var(--space-section);
}

main > :is(.services, .testimonials, .contact) + :is(.services, .testimonials, .contact) {
  border-top: 1px solid var(--line);
}

main:has(> :is(.services, .testimonials, .contact):last-child) + .site-footer {
  margin-top: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-head {
  display: grid;
  gap: 0.2rem;
  max-width: 48rem;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

/* Hero */
.hero {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  display: grid;
  justify-items: start;
}

.hero .lede {
  max-width: 46ch;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}

@media (min-width: 880px) {
  .hero-solo .lede {
    max-width: 54ch;
  }
}

/* Photo hero (#76). Phones: the photo leads at 4:3 and fades into an ink panel that carries the
   copy, so it is never dropped or buried under text. 720px and up: the photo fills the banner and
   a left-to-right scrim keeps the copy legible. */
main > .hero-overlay {
  position: relative;
  isolation: isolate;
  gap: 0;
  max-width: none;
  padding: 0;
  overflow: hidden;
  background: var(--hero-scrim);
  color: var(--hero-ink);
}

.hero-overlay .hero-media {
  position: relative;
  order: -1;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-overlay .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--hero-scrim) 55%, transparent) 75%, var(--hero-scrim) 100%);
}

.hero-overlay .hero-media img {
  height: 100%;
  object-position: 62% 50%;
}

/* The copy starts below the photo, whose fade already ends in the panel colour (#82). It used to be
   pulled up under the photo, and WebKit paints positioned grid items in DOM order (ignoring
   `order`), so on iPhone the photo covered the eyebrow and cut off the top of the headline. The
   z-index keeps the copy above the photo in every engine. */
.hero-overlay .hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.5rem clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 7vw, 3.5rem);
}

.hero-overlay .hero-copy > * {
  max-width: 38rem;
}

.hero-overlay h1 {
  color: var(--hero-ink);
  font-size: clamp(2.45rem, 5.6vw, 4.5rem);
}

.hero-overlay .eyebrow {
  color: color-mix(in srgb, var(--hero-ink) 86%, transparent);
}

.hero-overlay .lede {
  max-width: 36rem;
  color: color-mix(in srgb, var(--hero-ink) 86%, transparent);
}

.hero-overlay .button {
  border-color: var(--hero-button-bg);
  background: var(--hero-button-bg);
  color: var(--hero-button-ink);
}

.hero-overlay .button-ghost {
  border-color: color-mix(in srgb, var(--hero-ink) 55%, transparent);
  background: transparent;
  color: var(--hero-ink);
}

.hero-overlay .button-ghost:hover {
  border-color: var(--hero-ink);
  background: color-mix(in srgb, var(--hero-ink) 10%, transparent);
  color: var(--hero-ink);
}

@media (min-width: 720px) {
  .hero-overlay .hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
  }

  .hero-overlay .hero-media::after {
    background: linear-gradient(
      90deg,
      color-mix(in srgb, var(--hero-scrim) 90%, transparent) 0%,
      color-mix(in srgb, var(--hero-scrim) 76%, transparent) 34%,
      color-mix(in srgb, var(--hero-scrim) 28%, transparent) 66%,
      color-mix(in srgb, var(--hero-scrim) 8%, transparent) 100%
    );
  }

  .hero-overlay .hero-media img {
    aspect-ratio: auto;
  }

  .hero-overlay .hero-copy {
    min-height: clamp(30rem, 72vh, 42rem);
    margin-top: 0;
    padding-block: clamp(4rem, 9vh, 6.5rem);
    align-content: center;
  }

  .hero-overlay h1 {
    text-shadow: 0 1px 28px color-mix(in srgb, var(--hero-scrim) 45%, transparent);
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.45rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, background 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  filter: none;
}

/* Services */
.services ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-grid li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-grid li:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: var(--shadow);
}

.service-index {
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.service-grid p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

/* About */
.about {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 880px) {
  /* The photo leads here, opposite the hero copy, so the page alternates. */
  .about:has(.about-media) {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .about-media {
    order: -1;
  }
}

.about-copy {
  max-width: 60ch;
}

.about-body {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.03rem;
}

.proof {
  display: grid;
  gap: 0.55rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.proof li {
  position: relative;
  padding-left: 1.8rem;
  font-weight: 600;
}

.proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.about-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.35s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.testimonial-grid li {
  display: grid;
  gap: 1.2rem;
  align-content: space-between;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.testimonial-grid blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.attribution {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.attribution-name {
  color: var(--ink);
  font-weight: 700;
}

.attribution .source {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* FAQ */
.faq-list {
  display: grid;
  max-width: 56rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--font-label);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 1.2rem;
  max-width: 52ch;
  color: var(--muted);
}

/* Service area (#78) */
.areas .section-head {
  margin-bottom: 1rem;
}

.areas-body {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.area-list li {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Contact */
.contact {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 880px) {
  .contact {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-details > li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-details > li > span {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-details a {
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--accent);
}

.contact-details p {
  margin: 0;
}

.hours {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 20rem;
}

.hours li span:first-child {
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 0.95rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.form-row {
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
  min-height: 7rem;
}

.contact-form .field {
  position: absolute;
  left: -9999px;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.form-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-note {
  color: var(--muted);
}

.contact-form-demo fieldset {
  display: grid;
  gap: 0.95rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.contact-form-demo fieldset:disabled {
  opacity: 0.6;
}

.contact-form-demo .form-note {
  margin: 0;
  font-size: 0.88rem;
}

/* Footer */
.site-footer {
  margin-top: var(--space-section);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem) 1.5rem;
  background: var(--ink);
  color: color-mix(in srgb, var(--bg) 82%, transparent);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-brand strong {
  display: block;
  color: var(--bg);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.footer-brand p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
}

.footer-contact h3,
.footer-hours h3 {
  margin: 0 0 0.7rem;
  color: var(--bg);
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-contact a,
.footer-contact p {
  display: block;
  margin: 0 0 0.35rem;
  color: inherit;
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--bg);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.social-links a {
  padding: 0.25rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--bg) 28%, transparent);
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: capitalize;
  text-decoration: none;
}

.footer-hours ul {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 16rem;
}

.footer-hours span {
  color: color-mix(in srgb, var(--bg) 60%, transparent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: var(--container);
  margin: 2.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  text-decoration: underline;
}

/* #99: the notice under enquiry forms and the generated Privacy Notice page. */
.form-notice {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.form-notice p {
  margin: 0;
}

.form-notice a {
  color: inherit;
  text-decoration: underline;
}

.privacy-notice {
  padding: var(--space-section) 1.25rem;
}

.privacy-notice-inner {
  max-width: 46rem;
  margin: 0 auto;
}

.privacy-notice h1 {
  margin: 0.35rem 0 0.5rem;
}

.privacy-notice-meta {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.privacy-notice-block {
  margin-top: 2rem;
}

.privacy-notice-block h2 {
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
}

.privacy-notice-block p,
.privacy-notice-block li {
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.privacy-notice-block ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.privacy-notice-link {
  margin: 0.85rem 0 0;
}

.privacy-notice-link a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.privacy-notice-contact {
  margin-top: 2.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.privacy-notice-contact a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

/* Responsive + motion */
@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1.2rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .header-cta {
    margin-left: auto;
  }

  /* The name gives way (and wraps) before the phone button drops to a row of its own. */
  .brand {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Preview banner (trial sites) */
.preview-banner {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  color: #2a1a05;
  background: #ffd28a;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.preview-banner a {
  color: #2a1a05;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* #141: social profiles as icons, in the footer (default), the header, or both. Each link is a
   44px tap target with a 20px glyph in the surrounding text colour, so every theme styles it. */
.social-links a.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  letter-spacing: normal;
}

.social-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.header-socials.social-links {
  flex: none;
  gap: 0.1rem;
  margin: 0;
}

.header-socials a.social-icon {
  border: 0;
  color: var(--muted);
}

.header-socials a.social-icon:hover,
.header-socials a.social-icon:focus-visible {
  color: var(--accent);
}

/* Without a menu (one-page sites) the icons take the free space, as the phone button does. */
.brand + .header-socials {
  margin-left: auto;
}

@media (max-width: 720px) {
  .header-socials.social-links {
    order: 4;
    width: 100%;
    margin: -0.4rem 0 -0.3rem -0.6rem;
  }
}

/* Better sites: each business's look (src/lib/site-content/look.ts), on top of its theme. Every
   value comes from a validated list in the manifest's brand (palette, font, heroLayout,
   servicesLayout); a site without them renders exactly as before. */

/* Accent palettes: the accent and the deep tone of the banner, footer and headings. */
html[data-palette="harbor"] { --accent: #1d5fa7; --ring: #1d5fa7; --ink: #0f2236; }
html[data-palette="forest"] { --accent: #2f6b3f; --ring: #2f6b3f; --ink: #13241a; }
html[data-palette="brick"] { --accent: #a63a24; --ring: #a63a24; --ink: #2a1612; }
html[data-palette="slate"] { --accent: #3d5a73; --ring: #3d5a73; --ink: #151d26; }
html[data-palette="spruce"] { --accent: #0f6e6e; --ring: #0f6e6e; --ink: #0e2424; }
html[data-palette="plum"] { --accent: #7a2e5d; --ring: #7a2e5d; --ink: #26121f; }
html[data-palette="ochre"] { --accent: #a15c07; --ring: #a15c07; --ink: #2a1d0b; }

/* Themes whose banner button is light take the palette's accent for its text; bold's lime
   button gives way to the palette. */
html[data-palette]:is([data-theme="craft"], [data-theme="warm"], [data-theme="mono"]) {
  --hero-button-ink: var(--accent);
}

html[data-palette][data-theme="bold"] {
  --accent-ink: #ffffff;
  --hero-button-bg: #ffffff;
  --hero-button-ink: var(--accent);
}

/* Heading typefaces (system fonts only, like the themes). */
html[data-font="classic"] { --font-heading: "Iowan Old Style", Charter, "Palatino Linotype", "Book Antiqua", Georgia, serif; }
html[data-font="modern"] { --font-heading: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
html[data-font="sturdy"] { --font-heading: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif; }

/* Split banner: the copy sits on the page colour, the photo above it on phones and beside it on
   wider screens. Same markup as the photo banner; the copy never goes under the photo (#82). */
html[data-hero="split"] main > .hero-overlay {
  background: var(--bg);
  color: var(--ink);
}

html[data-hero="split"] .hero-overlay .hero-media {
  margin: clamp(0.75rem, 3vw, 1rem) clamp(1rem, 4vw, 2.5rem) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* The split banner's photo stands beside the copy: no scrim over it (content: none, so the photo
   itself is never hidden). */
html[data-hero="split"] .hero-overlay .hero-media::after {
  content: none;
}

html[data-hero="split"] .hero-overlay .hero-copy {
  padding-top: clamp(1.5rem, 5vw, 2rem);
}

html[data-hero="split"] .hero-overlay h1 {
  color: var(--ink);
  text-shadow: none;
}

html[data-hero="split"] .hero-overlay .eyebrow {
  color: var(--accent);
}

html[data-hero="split"] .hero-overlay .lede {
  color: var(--muted);
}

html[data-hero="split"] .hero-overlay .button {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

html[data-hero="split"] .hero-overlay .button-ghost,
html[data-hero="split"] .hero-overlay .button-ghost:hover {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

html[data-hero="split"] .hero-overlay .button-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (min-width: 720px) {
  html[data-hero="split"] main > .hero-overlay {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4rem);
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
    overflow: visible;
  }

  html[data-hero="split"] .hero-overlay .hero-media {
    position: relative;
    inset: auto;
    z-index: auto;
    order: 0;
    margin: 0;
    box-shadow: var(--shadow);
  }

  html[data-hero="split"] .hero-overlay .hero-media img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  html[data-hero="split"] .hero-overlay .hero-copy {
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  html[data-hero="split"] .hero-overlay h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  }
}

/* Services as a ruled list: no cards, the number beside each name. */
html[data-services="list"] .service-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3rem);
}

html[data-services="list"] .service-grid li {
  padding: 1.2rem 0 1.3rem 2.75rem;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

html[data-services="list"] .service-grid li:hover {
  transform: none;
  box-shadow: none;
}

html[data-services="list"] .service-index {
  position: absolute;
  top: 1.45rem;
  left: 0;
  margin: 0;
  font-size: 0.78rem;
}

/* Touch screens: form fields at 16px or more, so iOS Safari doesn't zoom in on focus and stay
   zoomed (review 1102, A1-14 / A2-19); phone and email links big enough to tap. */
@media (hover: none) and (pointer: coarse) {
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: max(16px, 1em);
  }

  .contact-details a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-contact > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
  }
}
