/* Epoxy Grout Experts, built on the epoxy regrouting template
 * Mobile first. Base styles are written for 375px with no media query.
 * Two breakpoints only: 768px (content column capped at 720px) and 1024px (desktop layout).
 */

/* Font: Inter 4.1 variable from rsms.me/inter, self-hosted latin subset.
 * Axes kept: weight 400 to 600 and optical size 14 to 32, so headings above 32px
 * render in the Inter Display cut automatically (font-optical-sizing: auto). */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var-opsz-400-600.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so the swap does not move text. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --white: #FFFFFF;
  --off-white: #F7F6F3;
  --placeholder: #ECEAE5;
  --hairline: #E4E2DD;
  --rail: #F1F0EC; /* vertical rails only: four steps lighter than the hairline */
  --ink: #141517;
  --ink-2: #5C5B57;
  --accent: #3A4656;
  --accent-hover: #2B3441;
  --ph-tint: #F1ECDF; /* behind [placeholders]: a value the owner has not supplied yet */
  --quote-tint: #F3F4F5; /* slate at 6% over white: the quote section, the one tinted section */
  --line-strong: #8A8883; /* form field lines at rest */
  --error: #9A3F33;
  --photo-veil: rgb(255 255 255 / 0.84); /* over the marble shower photo behind the hero */
  --band-ground: #1C222B; /* the final CTA band, under its photo at 28%: a 72% veil in effect */
  --star: #FBBC04; /* the five stars on the Google reviews link only: Google's own star colour */

  --font-body: "Inter", "Inter Fallback", Arial, sans-serif;
  --font-display: var(--font-body);

  --radius: 4px;
  --gutter: 20px;
  --header-h: 60px;
  --measure: 62ch;
  --section: 56px;
  --bar: 64px;
  --wa: 56px; /* the round WhatsApp button */

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --fast: 150ms;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* Below 1024px the fixed bottom bar would cover whatever keyboard focus scrolls to at the bottom. */
  scroll-padding-bottom: calc(var(--bar) + 16px + env(safe-area-inset-bottom, 0px));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  /* Room for the bottom bar and the WhatsApp button above it, so the footer's last line clears both. */
  padding-bottom: calc(var(--bar) + var(--gutter) + var(--wa) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

[hidden] { display: none !important; }

/* Placeholder: a value the owner has not supplied yet. main.js and the static HTML wrap each
 * [bracketed] token in it. None may be left when the site goes live. */
.ph {
  background: var(--ph-tint);
  border-radius: 2px;
  padding: 0 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

::selection { background: var(--hairline); color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: 2.375rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.012em; }

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color var(--fast) var(--ease);
}
a:hover { color: var(--accent-hover); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Layout */
.container {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(720px + 2 * var(--gutter)); }

.section { padding-block: var(--section); border-top: 1px solid var(--hairline); }
.section h2 { margin-bottom: 24px; }
p.section__lede {
  max-width: var(--measure);
  color: var(--ink-2);
  margin-bottom: 32px;
}
.lede {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: var(--measure);
}

/* Controls */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.button--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--white); }
.button--secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.button--secondary:hover { background: var(--off-white); color: var(--ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 30;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Header: sticky, no line at the top of the page; the hairline appears once the page has scrolled
 * (main.js toggles is-scrolled). The border is always there, transparent, so nothing shifts. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); }
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.wordmark:hover { color: var(--ink); }
.site-nav, .site-header__cta, .site-header__tel { display: none; }
.site-header__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -11px;
  color: var(--ink);
  border-radius: var(--radius);
}
.site-header__phone:hover { color: var(--accent); }

/* Hero */
/* Hero: the marble shower photo faint and soft behind it, under an 84% white veil. The copy, the
 * framed photo and the trust hairlines sit on it as before. It is kept off the LCP: the file is
 * 360px, lightly blurred and 5 KB (Chrome treats it as a low-entropy background; at 6 KB it became
 * the LCP at 320px, at 9 KB everywhere), and main.js fetches it only after the page has loaded, then adds .has-hero-backdrop and it
 * fades in. Fetched with the CSS, its request queued with the slider photos and moved Lighthouse's
 * simulated LCP from 2.1 s to 3.1 s. Without JavaScript it shows at once. */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: 40px 56px;
  background: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.no-js .hero::before,
.has-hero-backdrop .hero::before {
  /* Same path as in main.js (5). */
  background:
    linear-gradient(var(--photo-veil), var(--photo-veil)),
    url("images/hero-backdrop.jpg") center / cover no-repeat;
  opacity: 1;
}
.hero__grid { display: grid; gap: 32px; }
.hero h1 { margin-bottom: 20px; }
/* Phones and tablets: copy, photo, then the buttons. From 1024 the buttons go back under the copy. */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__actions .button { width: 100%; }

.frame {
  position: relative;
  margin: 0;
  background: var(--placeholder);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--3x2 { aspect-ratio: 3 / 2; }
.frame__ph {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.trust {
  list-style: none;
  margin: 40px auto 0;
  padding-inline: var(--gutter);
  display: grid;
}
/* Stacked between hairlines on phones (three in a row would wrap to four lines at 375); one row of
 * three from 768 */
.trust li {
  padding: 12px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  border-bottom: 1px solid var(--hairline);
}
.trust li:first-child { border-top: 1px solid var(--hairline); }

/* Services */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.service {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.service h3 { font-size: 1.375rem; }
.service p { margin: 0; }
.service .text-link { align-self: flex-start; margin-top: auto; }
/* An infinity pool faint and soft behind "What we fix", treated like the hero's backdrop: 84% white
 * veil, a 360px lightly blurred 4 KB file, fetched by main.js after load. The white cards sit on it.
 * Below 1024 the section is taller than wide, so the whole photo shows at full width across the top
 * (behind the heading) and its last fifth fades to white, instead of a cover crop of mostly sky. */
.section--services {
  position: relative;
  isolation: isolate;
  background: var(--white);
}
.section__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.no-js .section__backdrop,
.has-services-backdrop .section__backdrop {
  /* Same path as in main.js (5). The fade is sized to the photo: 3:2 at full width. */
  background:
    linear-gradient(var(--photo-veil), var(--photo-veil)),
    linear-gradient(transparent 80%, var(--white)) top / 100% 66.667vw no-repeat,
    url("images/services-backdrop.jpg") top / 100% auto no-repeat;
  opacity: 1;
}

/* Process */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 36px;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
}
.step__num {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3.25rem;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: lining-nums;
  min-width: 1.1em;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; }


/* Work: scroll-snap row on mobile; on desktop four to a row, the last row centred.
 * Below 1024 the section's bottom padding moves inside the row, so everything from the photos
 * down to the next section line swipes the row sideways. */
.section--work { padding-bottom: 0; }
.work-wrap { padding-inline: 0; }
.work {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-bottom: var(--section);
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}
.work::after { content: ""; flex: 0 0 1px; }
.work__item {
  flex: 0 0 85vw;
  scroll-snap-align: start;
}
.work figure { margin: 0; }
/* The slider takes horizontal drags on the photo, so the band under it is where the row scrolls:
 * a tall caption band gives the thumb room to swipe to the next job. */
.work figcaption {
  padding: 16px 0 32px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--placeholder);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--hairline);
  transform: translateX(-50%);
  pointer-events: none;
}
.compare__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--hairline);
  transform: translate(-50%, -50%);
}
.compare__handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-left: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  transform: translate(-50%, -50%);
  z-index: 1;
}
.compare__label {
  position: absolute;
  top: 12px;
  padding: 4px 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 3px;
  pointer-events: none;
}
.compare__label--before { left: 12px; }
.compare__label--after { right: 12px; }
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.compare:has(.compare__range:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.no-js .compare__range { display: none; }

/* Why epoxy */
.why { display: grid; gap: 32px; }
.why h2 { margin-bottom: 24px; }
.why__copy > p { max-width: var(--measure); }
.compare-table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  font-size: 1rem;
}
.compare-table th, .compare-table td {
  padding: 12px 8px 12px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}
.compare-table thead th {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.compare-table tbody th { font-weight: 500; }
.compare-table td:last-child { font-weight: 500; }
.why__brand {
  margin: 20px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* Pricing */
.price-lists { display: grid; gap: 32px; }
.price-list h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.price-list ul { list-style: none; margin: 0; padding: 0; }
.price-list li { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.price-close { max-width: var(--measure); margin: 32px 0 0; }

.owner-note {
  margin: 48px 0 0;
  padding-top: 24px;
  max-width: var(--measure);
  border-top: 1px solid var(--hairline);
}
.owner-note blockquote,
.review blockquote { margin: 0; }
.owner-note blockquote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.owner-note figcaption,
.review figcaption {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.owner-note cite { font-style: normal; }

/* Reviews: quotes from the Google profile at body size, a hairline above each, no card; stacked on
 * phones, side by side from 1024 */
.reviews { display: grid; gap: 32px; }
.review {
  margin: 0;
  max-width: var(--measure);
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.review__who { color: var(--ink); font-weight: 500; }
.reviews__more { margin: 24px 0 0; }
/* The Google G and five stars ride in the link, so the whole row opens the profile. At 320 the
 * label drops under them. */
.reviews__google { flex-wrap: wrap; column-gap: 10px; row-gap: 2px; }
.reviews__g, .reviews__stars { flex: none; }
.reviews__stars { color: var(--star); }

/* Service area */
.regions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.region {
  padding: 14px 12px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: pretty;
}
.area__travel {
  max-width: var(--measure);
  margin: 24px 0 0;
  color: var(--ink-2);
}

/* FAQ */
.faq { border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 16px 40px 16px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--fast) var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__answer { padding: 0 0 20px; max-width: var(--measure); }
.faq__answer p { margin: 0; }

/* Quote section: the one tinted surface, form in a white card */
.section--quote { background: var(--quote-tint); }
.quote-layout { display: grid; gap: 28px; }
.quote-intro .section__lede { margin-bottom: 20px; }
.quote-points {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.quote-points li {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9375rem;
  font-weight: 500;
}
.quote-whatsapp { margin: 12px 0 0; }
.quote-panel {
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

/* Quote form */
.quote-form { display: grid; gap: 24px; }
.field { display: grid; gap: 4px; }
.field label { font-weight: 500; font-size: 0.9375rem; }
.field__optional { font-weight: 400; color: var(--ink-2); }
.field__hint { margin: 0; font-size: 0.875rem; color: var(--ink-2); }
.field__error { margin: 0; font-size: 0.9375rem; color: var(--error); overflow-wrap: anywhere; }
/* Fields are underlines, not boxes: one strong line each, the same weight as the card's structure */
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  caret-color: var(--ink);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  /* Transparent, not none: Windows contrast themes drop the line and the shadow but paint the outline. */
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 0 var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23141517' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.field input[type="file"] {
  min-height: 48px;
  padding: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.field input[type="file"]:focus-visible { box-shadow: none; outline: 2px solid var(--ink); outline-offset: 3px; }
.field input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 12px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.form-trap { display: none; }
/* The form needs main.js; without it the phone number stands in. */
.no-js .quote-form { display: none; }
.js .quote-nojs { display: none; }
.quote-form__actions { display: grid; gap: 12px; margin-top: 4px; }
.quote-form__actions .button { width: 100%; }
.form-status { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }
/* Empty, the live region stays in the accessibility tree (so the first message is announced) but out of the grid. */
.form-status:empty { position: absolute; }
.form-error {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--error);
  border-radius: var(--radius);
}
.form-error p { margin: 0; }
.form-error .button { justify-self: start; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 12px; }
.form-success p { margin: 0; }
.form-success:focus-visible { outline-offset: 6px; }


/* Final CTA */
/* Final CTA band: a stock photo (marble walk-in shower) at 28% over band-ground, which reads as the
 * photo under a dark veil. The ground is the fallback too, so the white text keeps its contrast
 * before the lazy photo arrives. The photo edge divides it from the quote section, no hairline. */
.cta-band {
  position: relative;
  isolation: isolate;
  padding-block: 64px;
  background: var(--band-ground);
  color: var(--white);
}
.cta-band__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.cta-band h2 { margin-bottom: 16px; max-width: 18ch; }
.cta-band .section__lede { margin-bottom: 28px; color: rgb(255 255 255 / 0.86); }
.cta-band .button--primary { background: var(--white); border-color: var(--white); color: var(--ink); }
.cta-band .button--primary:hover { background: var(--off-white); border-color: var(--off-white); color: var(--ink); }
.cta-band .button--secondary { border-color: var(--white); color: var(--white); }
.cta-band .button--secondary:hover { background: rgb(255 255 255 / 0.12); color: var(--white); }
.cta-band :focus-visible { outline-color: var(--white); }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band__actions .button { width: 100%; }

/* Footer */
.site-footer {
  padding-block: 40px 32px;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.footer__grid { display: grid; gap: 24px; }
.site-footer p { margin: 0 0 4px; }
.footer__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}
.footer__legal {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.footer__legal a { margin-left: 12px; }
/* WhatsApp, Google reviews and TikTok as icons (the owner's request, 30/09/2026): 24px glyphs in
 * 44px targets, the row pulled left so the first glyph lines up with the text above. The G keeps
 * Google's colours; the other two are ink. */
.site-footer .footer__icons { display: flex; gap: 4px; margin: 4px 0 0 -10px; }
.site-footer .footer__icon { justify-content: center; width: 44px; }
.footer__icon:hover { color: var(--accent); }
/* The same three icons, centred under the before and after gallery (the owner's request, 03/10/2026). */
/* Below 1024 the icons sit under the row's scrollbar, so the whole swipe band (caption padding plus
 * the section padding inside the row) stays free for sideways swipes. */
.social { display: flex; justify-content: center; gap: 4px; margin-top: 24px; padding-bottom: var(--section); }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; color: var(--ink); }
.social a:hover { color: var(--accent); }

/* Sticky bottom bar, mobile and tablet only */
.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  height: calc(var(--bar) + env(safe-area-inset-bottom, 0px));
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--hairline);
  transition: transform 200ms var(--ease);
}
/* 8px gap and 10px padding so both short labels sit on one line down to 320px. */
.bottom-bar .button { min-height: 48px; padding-inline: 10px; }
.bottom-bar .button--secondary { white-space: nowrap; }
.js .bottom-bar { transform: translateY(100%); }
.js .bottom-bar.is-visible { transform: none; }

/* WhatsApp button, bottom right at every width. Below 1024 it sits one gutter above the bottom bar
 * and drops to the corner while the bar is hidden, sliding with it. */
.wa-float {
  position: fixed;
  right: var(--gutter);
  bottom: calc(var(--bar) + var(--gutter) + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: grid;
  place-items: center;
  width: var(--wa);
  height: var(--wa);
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  transition: transform 200ms var(--ease), background-color var(--fast) var(--ease);
}
.wa-float:hover { background: var(--accent-hover); color: var(--white); }
/* A white halo fills the gap under the ink ring, so focus reads on white and over the photo band. */
.wa-float:focus-visible { border-radius: 50%; box-shadow: 0 0 0 3px var(--white); }
.js .wa-float { transform: translateY(var(--bar)); }
.js .bottom-bar.is-visible ~ .wa-float { transform: none; }

/* 768px: content column capped at 720px */
@media (min-width: 768px) {
  :root { --section: 72px; --gutter: 24px; }
  .container { max-width: calc(720px + 2 * var(--gutter)); }
  h1 { font-size: 3rem; }
  .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust li { padding: 16px 12px 16px 0; border-top: 1px solid var(--hairline); }
  .trust li + li { padding-left: 12px; border-left: 1px solid var(--hairline); }
  h2 { font-size: 2.25rem; }
  .hero { padding-block: 56px; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  /* Room for both at any width now, so they split the bar evenly. */
  .bottom-bar { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero__actions .button { width: auto; min-width: 160px; white-space: nowrap; }
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
  .cta-band__actions .button { width: auto; min-width: 180px; white-space: nowrap; }
  .cta-band { padding-block: 80px; }
  .work__item { flex-basis: 60vw; }
  .regions { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* 1024px: desktop layout */
@media (min-width: 1024px) {
  :root { --section: 96px; --gutter: 32px; --header-h: 72px; }
  html { scroll-padding-bottom: 0; }
  body {
    font-size: 1.125rem; /* 18px */
    padding-bottom: 0;
  }
  .container { max-width: calc(1120px + 2 * var(--gutter)); }
  .container--narrow {
    max-width: calc(720px + 2 * var(--gutter));
    margin-left: max(0px, calc((100% - 1120px) / 2 - var(--gutter)));
  }
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.625rem; }
  .section h2 { margin-bottom: 32px; }
  .section__lede { margin-bottom: 40px; }
  .lede { font-size: 1.25rem; }
  .button { font-size: 1.0625rem; }

  .wordmark { white-space: nowrap; }
  .site-nav { display: block; }
  .site-nav ul {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
  }
  .site-nav a:hover { text-decoration: underline; color: var(--ink); }
  .site-header__cta { display: inline-flex; white-space: nowrap; }

  .hero { padding-block: 72px 64px; }
  /* Copy and buttons stacked in the left column and centred as one block against the photo */
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". photo" "copy photo" "actions photo" ". photo";
    column-gap: 56px;
    row-gap: 0;
  }
  .hero__copy { grid-area: copy; }
  .hero__photo { grid-area: photo; align-self: center; }
  .hero__actions { grid-area: actions; margin-top: 36px; }
  .trust { margin-top: 64px; }
  .trust li { padding: 20px 16px 20px 0; font-size: 1rem; }
  .trust li + li { padding-left: 16px; }

  .services { grid-template-columns: 1fr 1fr; gap: 24px; }
  /* Wider than tall from here: the photo covers the section again. */
  .no-js .section__backdrop,
  .has-services-backdrop .section__backdrop {
    background:
      linear-gradient(var(--photo-veil), var(--photo-veil)),
      url("images/services-backdrop.jpg") center / cover no-repeat;
  }
  .service { padding: 32px 28px; gap: 14px; }
  .service h3 { font-size: 1.5rem; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 40px; }
  .step { grid-template-columns: 1fr; align-content: start; }
  .step__num { grid-row: auto; font-size: 4.5rem; margin-bottom: 20px; }
  .step h3 { font-size: 1.375rem; }

  .work-wrap { padding-inline: var(--gutter); }
  .work {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .work::after { display: none; }
  .section--work { padding-bottom: var(--section); }
  .work__item { flex: 0 0 calc((100% - 3 * 24px) / 4); }
  .work figcaption { padding: 12px 0 0; }
  .social { margin-top: 32px; padding-bottom: 0; }

  .why { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .compare-table { font-size: 1.0625rem; }

  .price-lists { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .owner-note { margin-top: 64px; }
  .owner-note blockquote p { font-size: 1.5rem; }
  .reviews { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 48px; }


  .regions { gap: 20px; }
  .region { padding: 24px 22px; }
  .region { font-size: 1.0625rem; }

  .faq__item summary { padding-block: 20px; font-size: 1.125rem; }

  .quote-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 64px;
    align-items: start;
  }
  .quote-intro { position: sticky; top: calc(var(--header-h) + 32px); }
  .quote-panel { padding: 32px 28px; }

  .cta-band { padding-block: 112px; }
  .cta-band h2 { font-size: 3rem; }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }

  .bottom-bar { display: none; }
  .wa-float { bottom: var(--gutter); }
  .js .wa-float { transform: none; }
}

/* Blueprint rails: one hairline down each side of the page, 64px outside the content edge (the
 * 32px gutter plus 32px of air), and a 3px ink dot wherever a section line crosses it. Only from
 * 1280px, where the rails still keep 16px from the viewport edge. */
@media (min-width: 1280px) {
  :root {
    --rail-gap: 32px;
    --rail-inset: calc((100% - (1120px + 2 * var(--gutter))) / 2 - var(--rail-gap));
  }
  /* The rails are quieter than the section hairlines: lighter ink, and half a pixel on screens
   * that can draw it (a 1px line is the thinnest a 1x screen renders). */
  body::before, body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--rail);
    /* 1px is the thinnest line a 1x screen draws, so the line is scaled to half: the compositor
     * paints it at half coverage (measured 248 on white at 1x and 2x). A 0.5px width instead
     * snaps back to a full 1px in Chrome, so the transform is the reliable route. */
    transform: scaleX(0.5);
    z-index: 1;
    pointer-events: none;
  }
  body::before { left: var(--rail-inset); }
  body::after { right: var(--rail-inset); }

  /* The hero and What we fix sit above the rails on their photo grounds, so the frame starts at the
   * line under What we fix (the work dots are painted later in the tree and stay on top). */
  .hero, .section--services { position: relative; z-index: 2; }
  /* The photo band covers them too: the rails stop at its top edge and start again at the footer. */
  .cta-band { z-index: 2; }
  .section, .cta-band, .site-footer { position: relative; }
  /* A 3px dot inside a 15px patch that hides the lines around it, so the lines stop 6px short of the dot.
   * The patch is painted in the colours of the two sections it straddles. */
  .section::before, .section::after,
  .cta-band::before, .cta-band::after,
  .site-footer::before, .site-footer::after {
    content: "";
    position: absolute;
    top: -8px;
    width: 15px;
    height: 15px;
    background:
      radial-gradient(circle at center, var(--ink) 0 1.5px, transparent 2px),
      var(--white);
    z-index: 2;
    pointer-events: none;
  }
  .section::before, .cta-band::before, .site-footer::before { left: calc(var(--rail-inset) - 7px); }
  /* No rail meets the line between the two photo grounds, so it carries no dots. */
  .section--services::before, .section--services::after { content: none; }
  /* The first dots sit on the bottom edge of What we fix: see-through on the photo side. */
  .section--services + .section::before, .section--services + .section::after {
    background:
      radial-gradient(circle at center, var(--ink) 0 1.5px, transparent 2px),
      linear-gradient(to bottom, transparent 7px, var(--white) 7px);
  }
  .section::after, .cta-band::after, .site-footer::after { right: calc(var(--rail-inset) - 7px); }
  .section--quote::before, .section--quote::after {
    background:
      radial-gradient(circle at center, var(--ink) 0 1.5px, transparent 2px),
      linear-gradient(to bottom, var(--white) 50%, var(--quote-tint) 50%);
  }
  /* Around the photo band the patch is see-through on the photo side, split at the band's edge in
   * px (8px down to the band's top, 7px down to the footer's border) so no half pixel of line shows
   * on 2x screens. Only the footer that follows the band; privacy.html keeps the white patch. */
  .cta-band::before, .cta-band::after {
    background:
      radial-gradient(circle at center, var(--ink) 0 1.5px, transparent 2px),
      linear-gradient(to bottom, var(--quote-tint) 8px, transparent 8px);
  }
  main:has(> .cta-band:last-child) + .site-footer::before,
  main:has(> .cta-band:last-child) + .site-footer::after {
    background:
      radial-gradient(circle at center, var(--ink) 0 1.5px, transparent 2px),
      linear-gradient(to bottom, transparent 7px, var(--white) 7px);
  }
  .site-nav ul { gap: 24px; }
  .site-header__phone { display: none; }
  .site-header__tel {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    font-weight: 500;
    white-space: nowrap;
  }
}

/* Motion off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
