/* ==========================================================================
   Sharples Roofing — main stylesheet
   Mobile-first. Brand colours are taken directly from the logo.
   Sections: 1 Fonts · 2 Tokens · 3 Base · 4 Layout · 5 Buttons · 6 Header/Nav
             7 Hero · 8 Sections & cards · 9 Content pages · 10 Forms
             11 CTA/Footer · 12 Utilities · 13 Motion
   ========================================================================== */

/* 1. Fonts (self-hosted for speed + privacy) ------------------------------ */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks reduce layout shift while fonts load */
@font-face {
  font-family: "Poppins Fallback";
  src: local("Arial");
  size-adjust: 112%;
  ascent-override: 93%;
  descent-override: 31%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* 2. Design tokens --------------------------------------------------------- */
:root {
  /* Brand (from logo) */
  --brand-red: #ea3829;
  --brand-slate: #505050;
  --brand-oxblood: #2f0b08;

  /* Working palette */
  --red: #d2311f;          /* accessible red for buttons/links on white (5:1) */
  --red-dark: #b0281a;
  --red-light: #ff6b5b;    /* red text on dark backgrounds */
  --ink: #15100e;          /* warm near-black */
  --ink-2: #211916;
  --ink-3: #2d2320;
  --text: #2a2422;
  --muted: #625a56;
  --line: #e7e1db;
  --paper: #ffffff;
  --stone: #f6f3f0;
  --stone-2: #efeae5;
  --on-dark: #f4efeb;
  --on-dark-muted: #b9afa9;
  --whatsapp: #128c7e;     /* WhatsApp's darker green: white icon/text passes contrast */
  --whatsapp-dark: #0e6f64;

  /* Type */
  --font-head: "Poppins", "Poppins Fallback", system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --fs-h1: clamp(2.125rem, 1.35rem + 3.4vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);

  /* Space & shape */
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgb(21 16 14 / 0.06), 0 2px 8px rgb(21 16 14 / 0.05);
  --shadow: 0 2px 4px rgb(21 16 14 / 0.05), 0 12px 32px rgb(21 16 14 / 0.1);
  --shadow-lg: 0 24px 60px rgb(21 16 14 / 0.22);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

}

/* 3. Base ------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
h4 { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p, li { text-wrap: pretty; }

a { color: var(--red); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-dark); }

strong { font-weight: 600; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand-red); color: #fff; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 4. Layout ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: var(--section); }
.section--stone { background: var(--stone); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark p { color: var(--on-dark-muted); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow) { font-size: var(--fs-lead); color: var(--muted); margin: 0; }
.section--dark .section-head p:not(.eyebrow) { color: var(--on-dark-muted); }

/* Eyebrow label with a small logo-style triangle */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 12px; height: 10.4px;
  background: var(--brand-red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow { color: var(--red-light); }

.grid { display: grid; gap: clamp(1rem, 0.75rem + 1vw, 1.5rem); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

/* 5. Buttons ------------------------------------------------------------------ */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  --btn-bd: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bd);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { --btn-bg: var(--red-dark); --btn-bd: var(--red-dark); color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 8px 20px rgb(210 49 31 / 0.28); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); box-shadow: none; }

.btn--light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 0.4); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; box-shadow: none; }

.btn--white { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--white:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); box-shadow: none; }

.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0.6rem 1.15rem; font-size: 0.9375rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--red);
  text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* 6. Header & navigation ------------------------------------------------------ */
.topbar {
  display: none;
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
}
.topbar p { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.topbar svg { width: 16px; height: 16px; color: var(--brand-red); }
.topbar ul { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.topbar a { color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 1024px) { .topbar { display: block; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgb(21 16 14 / 0.07); }

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { width: auto; height: 38px; }
@media (min-width: 1024px) { .brand img { height: 44px; } }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.header-phone {
  display: none;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
}
.header-phone small { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.header-phone strong { font-family: var(--font-head); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.01em; }
.header-phone .icon-badge { width: 40px; height: 40px; }
.header-phone:hover strong { color: var(--red); }
@media (min-width: 1200px) { .header-phone { display: inline-flex; } }

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgb(234 56 41 / 0.1);
  color: var(--red);
  flex-shrink: 0;
}
.icon-badge svg { display: block; width: 20px; height: 20px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn--call { background: var(--red); border-color: var(--red); color: #fff; }

.header-quote { display: none; }
@media (min-width: 640px) { .header-quote { display: inline-flex; } }

/* Primary navigation — mobile panel first */
.nav-toggle { display: inline-grid; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.primary-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: #fff;
  overflow-y: auto;
  padding: 1rem var(--gutter) 7rem;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}
.primary-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-list, .subnav { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 0.25rem;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.nav-link[aria-current="page"],
.nav-link.is-active { color: var(--red); }
.nav-link .chev { width: 20px; height: 20px; transition: transform 0.2s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.subnav { display: none; padding: 0 0 0.75rem 0.25rem; }
.subnav.is-open { display: block; }
.subnav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.5rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--stone); color: var(--red); }
.subnav a small { display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 400; }
.subnav .icon-badge { width: 38px; height: 38px; }
.subnav .icon-badge svg { width: 18px; height: 18px; }
.nav-cta { display: grid; gap: 0.75rem; margin-top: 1.5rem; }

body.nav-open { overflow: hidden; }

/* Desktop navigation */
@media (min-width: 1024px) {
  .nav-toggle, .nav-cta, .icon-btn--call { display: none; }
  .primary-nav {
    position: static;
    inset: auto;
    visibility: visible;
    opacity: 1;
    transform: none;
    padding: 0;
    overflow: visible;
    background: none;
    transition: none;
  }
  .nav-list { display: flex; align-items: center; gap: 0.25rem; }
  .nav-list > li { position: relative; border: 0; }
  .nav-link {
    padding: 0.6rem 0.85rem;
    font-size: 0.9688rem;
    border-radius: 999px;
  }
  .nav-link:hover { color: var(--red); }
  .nav-link .chev { width: 16px; height: 16px; }
  .subnav {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    min-width: 320px;
    padding: 0.6rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, 6px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
  }
  .subnav::before { /* hover bridge */
    content: "";
    position: absolute;
    inset: -12px 0 auto 0;
    height: 12px;
  }
  .has-sub:hover > .subnav,
  .has-sub:focus-within > .subnav,
  .subnav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  }
}

/* 7. Hero ---------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(2.75rem, 2rem + 4vw, 6rem) clamp(5rem, 4rem + 5vw, 8.5rem);
}
.hero-art {
  position: absolute;
  z-index: -1;
  right: -4%;
  bottom: -2px;
  width: min(980px, 120%);
  pointer-events: none;
  opacity: 0.9;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 4rem; }
}
.hero h1 { color: #fff; margin-bottom: 0.4em; font-size: clamp(2.125rem, 1.35rem + 2.9vw, 3.5rem); }
.hero h1 em { font-style: normal; color: var(--brand-red); }
.hero .lead { font-size: var(--fs-lead); color: var(--on-dark-muted); max-width: 40rem; margin-bottom: 1.75rem; }

.tick-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.6rem; }
.tick-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.tick-list svg { width: 22px; height: 22px; color: var(--brand-red); margin-top: 0.12em; }
.hero .tick-list li, .page-hero .tick-list li { color: var(--on-dark); font-weight: 500; }
@media (min-width: 640px) { .hero .tick-list { grid-template-columns: repeat(2, max-content); column-gap: 2rem; } }

/* Trust strip that overlaps the bottom of the hero */
.trust {
  position: relative;
  z-index: 2;
  margin-top: calc(clamp(3rem, 2.5rem + 3vw, 5rem) * -1);
}
.trust-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #fff;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.trust-card::before { /* red rule along the top edge */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-red), var(--red-dark));
}
.trust-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.3rem 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
.trust-item:nth-last-child(-n+2) { border-bottom: 0; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 0.9688rem; line-height: 1.25; color: var(--ink); }
.trust-item div span { display: block; margin-top: 0.15rem; font-size: 0.8125rem; color: var(--muted); line-height: 1.35; }
.trust-item .icon-badge {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand-red), var(--red-dark));
  color: #fff;
  box-shadow: 0 6px 14px rgb(210 49 31 / 0.22);
}
.trust-item .icon-badge svg { width: 22px; height: 22px; }
@media (max-width: 479px) {
  .trust-item { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}
@media (min-width: 900px) {
  .trust-card { grid-template-columns: repeat(4, 1fr); }
  .trust-item { border: 0; padding: 1.75rem 1.5rem 1.6rem; gap: 1rem; }
  .trust-item:nth-child(odd) { border-right: 0; }
  .trust-item + .trust-item::before { /* short divider that stops shy of the card edges */
    content: "";
    position: absolute;
    left: 0; top: 28%; bottom: 24%;
    width: 1px;
    background: var(--line);
  }
  .trust-item strong { font-size: 1.0625rem; }
  .trust-item div span { font-size: 0.875rem; }
}

/* Inner page hero */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(3rem, 2.5rem + 3vw, 5rem);
}
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { font-size: var(--fs-lead); color: var(--on-dark-muted); max-width: 44rem; margin-bottom: 1.75rem; }
.page-hero .tick-list { margin-bottom: 1.75rem; }
@media (min-width: 640px) { .page-hero .tick-list { grid-template-columns: repeat(2, max-content); column-gap: 2rem; } }

.breadcrumb { margin-bottom: 1.75rem; font-size: var(--fs-sm); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; opacity: 0.5; }
.breadcrumb a { color: var(--on-dark); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--on-dark-muted); }

/* 8. Sections & cards ----------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: clamp(1.4rem, 1.2rem + 0.8vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card h3 { margin: 0.9rem 0 0.4rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.card p { color: var(--muted); margin-bottom: 1.1rem; }
.card .link-arrow { margin-top: auto; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card:focus-within { box-shadow: 0 0 0 3px var(--brand-red); }
.card .icon-badge { width: 52px; height: 52px; border-radius: 14px; }
.card .icon-badge svg { width: 26px; height: 26px; }

.card--feature { background: var(--ink); border-color: var(--ink); color: var(--on-dark); overflow: hidden; }
.card--feature::before {
  content: "";
  position: absolute;
  right: -40px; bottom: -30px;
  width: 190px; height: 165px;
  background: var(--brand-red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.9;
}
.card--feature h3, .card--feature strong { color: #fff; }
.card--feature p { color: var(--on-dark-muted); max-width: 90%; }
.card--feature .icon-badge { background: rgb(255 255 255 / 0.1); color: #fff; }
.card--feature .link-arrow { color: #fff; position: relative; }
.card--feature .tag {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.25rem;
}
@media (min-width: 1000px) { .card--wide { grid-column: span 2; } }

/* Feature list with triangle bullets */
.tri-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.75rem; }
.tri-list li { position: relative; padding-left: 1.6rem; }
.tri-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 11px; height: 9.5px;
  background: var(--brand-red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* Systems chips (EPDM, GRP etc.) */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.chips li {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.section--dark .chips li { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.14); color: var(--on-dark); }

/* Diagram / figure frame */
.figure {
  margin: 0;
  padding: clamp(1rem, 0.5rem + 2vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-sm);
}
.figure figcaption { margin-top: 0.75rem; font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.section--stone .figure { background: #fff; }

/* Story / generations band */
.story { position: relative; overflow: hidden; }
.story-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .story-grid { grid-template-columns: 1.05fr 0.95fr; gap: 5rem; } }
.gen-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.gen {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.1);
}
.gen-num {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1;
  color: #fff;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.16);
}
.gen:last-child .gen-num {
  background: linear-gradient(135deg, var(--brand-red), var(--red-dark));
  border-color: transparent;
  box-shadow: 0 6px 14px rgb(210 49 31 / 0.3);
}
.gen-num svg { display: block; width: 24px; height: 24px; }
.gen-list--icons .gen-num { /* icon version: every tile is red, not just the last */
  background: linear-gradient(135deg, var(--brand-red), var(--red-dark));
  border-color: transparent;
  box-shadow: 0 6px 14px rgb(210 49 31 / 0.3);
}
.gen h3 { margin: 0 0 0.3rem; font-size: 1.125rem; }
.gen p { margin: 0; font-size: 0.9688rem; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 2rem; background: rgb(255 255 255 / 0.1); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 1.25rem; background: var(--ink); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: #fff; line-height: 1.1; }
.stat span { font-size: 0.875rem; color: var(--on-dark-muted); }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand-red);
}
.step h3 { font-size: 1.125rem; margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.9688rem; }

/* Why-us feature items */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature h3 { font-size: 1.0625rem; margin: 0.35rem 0 0.35rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.9688rem; }
.section--dark .feature p { color: var(--on-dark-muted); }
.section--dark .icon-badge { background: rgb(234 56 41 / 0.16); color: var(--red-light); }

/* Areas */
.areas-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .areas-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.area-links { display: grid; gap: 0.75rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
@media (min-width: 520px) { .area-links { grid-template-columns: repeat(2, 1fr); } }
.area-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.area-link small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.area-link svg { width: 20px; height: 20px; color: var(--red); transition: transform 0.2s var(--ease); }
.area-link:hover { border-color: var(--red); color: var(--red); }
.area-link:hover svg { transform: translateX(3px); }
.town-list { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin: 0; padding: 0; list-style: none; }
.town-list li {
  font-size: 0.875rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--stone-2);
  color: var(--text);
}
.coverage-map { width: 100%; max-width: 560px; margin-inline: auto; }

/* Reviews */
.review {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review .stars { display: flex; gap: 2px; color: #f2a516; }
.review .stars svg { width: 18px; height: 18px; }
.review blockquote { margin: 0; font-size: 1rem; color: var(--text); }
.review blockquote p { margin: 0; }
.review figcaption { margin-top: auto; font-size: var(--fs-sm); color: var(--muted); }
.review figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); }
.review-mark { height: 1.6rem; font-family: var(--font-head); font-weight: 700; font-size: 3.25rem; line-height: 1; color: var(--brand-red); }
.review figcaption a { color: var(--muted); text-decoration: underline; }
.review figcaption a:hover { color: var(--red); }
/* Real reviews only: cards centre themselves however many there are */
.reviews-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 0.75rem + 1vw, 1.5rem); }
.reviews-grid .review { flex: 1 1 280px; max-width: 420px; }

/* FAQ accordion (native <details>) */
.faq-list { display: grid; gap: 0.75rem; }
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq[open] { border-color: rgb(234 56 41 / 0.45); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0313rem;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--stone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d2311f' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") no-repeat center / 16px;
  transition: transform 0.2s var(--ease);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem 1.2rem; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* 9. Content pages -------------------------------------------------------------- */
.content-layout { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 1024px) {
  .content-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
}

.prose { max-width: 760px; }
.prose > h2 { margin-top: 2.5em; font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 1.75em; }
.prose ul:not([class]) { padding-left: 0; list-style: none; margin: 0 0 1.4em; display: grid; gap: 0.6rem; }
.prose ul:not([class]) li { position: relative; padding-left: 1.6rem; }
.prose ul:not([class]) li::before {
  content: "";
  position: absolute; left: 0; top: 0.52em;
  width: 11px; height: 9.5px;
  background: var(--brand-red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.prose ol:not([class]) { padding-left: 1.25rem; margin: 0 0 1.4em; display: grid; gap: 0.5rem; }
.prose ol:not([class]) li::marker { font-family: var(--font-head); font-weight: 700; color: var(--red); }
.prose .figure { margin: 2rem 0; }
.prose .lead-p { font-size: var(--fs-lead); color: var(--ink); }

.callout {
  position: relative;
  margin: 2rem 0;
  padding: 1.4rem 1.5rem 1.4rem 1.6rem;
  background: var(--stone);
  border-left: 4px solid var(--brand-red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout p:last-child { margin: 0; }
.callout strong { display: block; margin-bottom: 0.3rem; font-family: var(--font-head); }
.callout--dark { background: var(--ink); color: var(--on-dark); }
.callout--dark strong { color: #fff; }
.callout--dark a { color: var(--red-light); }

/* Comparison table */
.table-wrap {
  margin: 1.75rem 0 0.75rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.9375rem; }
caption { text-align: left; padding: 1rem 1.1rem 0; font-weight: 600; color: var(--ink); caption-side: top; }
th, td { padding: 0.9rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--stone); }
tbody th { font-family: var(--font-head); font-weight: 600; color: var(--ink); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.table-note { font-size: 0.8125rem; color: var(--muted); }

/* System cards (flat roofing page) */
.system {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.system h3 { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.5rem; font-size: 1.125rem; }
.system h3::before {
  content: "";
  width: 14px; height: 12px;
  background: var(--brand-red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.system p { margin: 0; color: var(--muted); font-size: 0.9688rem; }
.system dl { margin: 1rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; font-size: 0.875rem; }
.system dt { color: var(--muted); }
.system dd { margin: 0; font-weight: 600; color: var(--ink); }

/* Sidebar */
.sidebar { display: grid; gap: 1.25rem; }
.side-card {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.side-card h2, .side-card h3 { font-size: 1.1875rem; margin-bottom: 0.4rem; }
.side-card p { font-size: 0.9375rem; color: var(--muted); }
.side-card--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.side-card--dark h2, .side-card--dark h3 { color: #fff; }
.side-card--dark p { color: var(--on-dark-muted); }
.side-phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.side-phone:hover { color: var(--red-light); }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.side-links a:hover, .side-links a[aria-current="page"] { color: var(--red); }
.side-links svg { width: 18px; height: 18px; color: var(--red); }

/* Values (about) */
.value { padding: 1.75rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.value h3 { margin: 1rem 0 0.4rem; font-size: 1.125rem; }
.value p { margin: 0; color: var(--muted); font-size: 0.9688rem; }

.logo-panel {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 1rem + 4vw, 4rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}
.logo-panel img { width: 100%; max-width: 440px; }

/* 10. Forms -------------------------------------------------------------------- */
.quote-card {
  position: relative;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.1rem);
  background: #fff;
  color: var(--text);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
}
.quote-card::before { /* red roof-peak accent on the card */
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  width: 64px; height: 8px;
  transform: translateX(-50%);
  background: var(--brand-red);
  border-radius: 0 0 6px 6px;
}
.quote-card h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); margin-bottom: 0.3rem; }
.quote-card > p { color: var(--muted); font-size: 0.9375rem; margin-bottom: 1.25rem; }

.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.35rem; }
.field label, .field .label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.field .optional { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem; /* 16px prevents iOS zoom */
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #d9d1ca;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  appearance: none;
}
.field select {
  padding-right: 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315100e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.85rem center / 18px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #bdb2a9; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgb(234 56 41 / 0.16);
}
.field [aria-invalid="true"] { border-color: var(--red); background-color: #fff6f5; }
.field-error { font-size: 0.8125rem; color: var(--red-dark); font-weight: 500; }
.field-error:empty { display: none; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.875rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 0.1rem 0 0; accent-color: var(--red); flex: 0 0 auto; }
.form-note { display: flex; gap: 0.5rem; align-items: center; margin: 0; font-size: 0.8125rem; color: var(--muted); }
.form-note svg { width: 16px; height: 16px; color: #2e8b57; }
.form-status { padding: 0.9rem 1rem; border-radius: var(--radius-sm); font-size: 0.9375rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { background: #fff1ef; color: var(--red-dark); border: 1px solid #f6c7c1; }
.form-status.is-success { background: #eef8f1; color: #1d6b3d; border: 1px solid #bfe3cb; }
.hp { position: absolute !important; left: -9999px !important; } /* honeypot */

/* Contact cards */
.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-card h2, .contact-card h3 { font-size: 1rem; margin: 0 0 0.2rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.contact-card a { font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; color: var(--ink); text-decoration: none; }
.contact-card a:hover { color: var(--red); }

.hours { width: 100%; min-width: 0; font-size: 0.9375rem; }
.hours th, .hours td { padding: 0.35rem 0; border: 0; }
.hours th { font-family: var(--font-body); font-weight: 500; color: var(--muted); white-space: normal; }
.hours td { text-align: right; font-weight: 600; color: var(--ink); }

/* 11. CTA band & footer --------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--red);
  color: #fff;
  padding-block: clamp(3rem, 2.5rem + 3vw, 5rem);
}
.cta-inner { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; gap: 3rem; } }
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { margin: 0; font-size: var(--fs-lead); color: rgb(255 255 255 / 0.92); max-width: 44rem; }
.cta-band .btn--light:hover { --btn-fg: var(--red); }

.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  padding-top: clamp(3.5rem, 3rem + 3vw, 5.5rem);
}
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; } }
.footer-brand img { width: auto; height: 46px; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 34ch; }
.site-footer h2 {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.footer-contact a, .footer-contact p { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; }
.footer-contact svg { width: 18px; height: 18px; color: var(--brand-red); }
.footer-contact .footer-phone { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.8125rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* Mobile action bar (call / quote) */
.mobile-bar {
  position: fixed;
  z-index: 95;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgb(21 16 14 / 0.08);
}
.mobile-bar .btn { min-height: 48px; padding-inline: 0.75rem; font-size: 0.9688rem; }
body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* Floating WhatsApp button — sits above the mobile action bar */
.whatsapp-fab {
  position: fixed;
  z-index: 94;
  right: var(--gutter);
  bottom: calc(70px + 0.75rem + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9688rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.whatsapp-fab:hover { background: var(--whatsapp-dark); color: #fff; transform: translateY(-2px); }
.whatsapp-fab svg { width: 30px; height: 30px; flex: none; }
.whatsapp-fab span { /* label slides out on hover or keyboard focus */
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.3s var(--ease), opacity 0.2s var(--ease), margin 0.3s var(--ease);
}
.whatsapp-fab { gap: 0; padding-inline: 13px; }
@media (hover: hover) {
  .whatsapp-fab:hover span, .whatsapp-fab:focus-visible span { max-width: 9rem; margin-left: 0.55rem; margin-right: 0.3rem; opacity: 1; }
}
@media (min-width: 768px) {
  .whatsapp-fab { bottom: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab, .whatsapp-fab span { transition: none; }
  .whatsapp-fab:hover { transform: none; }
}

/* 12. Utilities ------------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--muted); }
.center-row { display: flex; justify-content: center; margin-top: 2.5rem; }
.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.14);
  font-size: 0.875rem;
  color: var(--on-dark);
  margin-bottom: 1.5rem;
}
.pill-note .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ecf7a; box-shadow: 0 0 0 4px rgb(62 207 122 / 0.2); }

/* 13. Motion --------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .mobile-bar, .whatsapp-fab, .chat-fab, .chat-panel, .cta-band, .site-footer, .hero-art, .quote-card { display: none !important; }
  body { padding: 0; color: #000; }
  .hero, .page-hero, .section--dark { background: none; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
}

/* Sidebar dark card link */
.side-card--dark .link-arrow { color: #fff; }
.side-card--dark .link-arrow:hover { color: var(--red-light); }
.trust-card { list-style: none; margin: 0; padding: 0; }

/* Roof build-up diagram */
.diagram { display: grid; gap: 1.25rem; align-items: center; }
.diagram svg { width: 100%; max-width: 520px; margin-inline: auto; }
.diagram-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; counter-reset: layer; }
.diagram-legend li {
  counter-increment: layer;
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
}
.diagram-legend li::before {
  content: counter(layer);
  grid-row: span 2;
  display: grid;
  place-items: end center;
  width: 28px; height: 25px;
  padding-bottom: 1px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8125rem;
  color: #fff;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.diagram-legend strong { font-family: var(--font-head); font-size: 0.9375rem; }
.diagram-legend span { color: var(--muted); }
@media (min-width: 560px) { .diagram-legend { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; } }
.contact-card > div { flex: 1; min-width: 0; }
.contact-card a.link-arrow { font-size: 0.9375rem; color: var(--red); }
.contact-card a.text-link { font-family: var(--font-body); font-size: inherit; font-weight: 500; color: var(--red); text-decoration: underline; }
@media (min-width: 1000px) { .area-links--4 { grid-template-columns: repeat(4, 1fr); } }
.side-phone svg { width: 26px; height: 26px; color: var(--red-light); }
.content-layout > * { min-width: 0; } /* lets wide tables scroll instead of stretching the column */
.contact-card a { overflow-wrap: anywhere; }
.field input[type="checkbox"] { appearance: auto; -webkit-appearance: checkbox; min-height: 0; width: 20px; height: 20px; padding: 0; border: 0; box-shadow: none; }
.contact-card a[href^="mailto"] { font-size: 0.9375rem; }
@media (min-width: 400px) { .hours td { white-space: nowrap; padding-left: 1rem; } }

/* ==========================================================================
   14. Photography
   ========================================================================== */

/* Photo hero backgrounds (home + inner pages) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero--photo::before,
.page-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgb(21 16 14 / 0.78) 0%, rgb(21 16 14 / 0.9) 100%);
}
.page-hero--photo { background: var(--ink); }
@media (min-width: 900px) {
  .hero--photo::before,
  .page-hero--photo::before {
    background:
      linear-gradient(90deg, rgb(21 16 14 / 0.95) 0%, rgb(21 16 14 / 0.84) 38%, rgb(21 16 14 / 0.42) 72%, rgb(21 16 14 / 0.24) 100%);
  }
}

/* Service photo tiles */
.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}
@media (min-width: 1000px) { .tile { min-height: 420px; } }
.tile-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(21 16 14 / 0.05) 10%, rgb(21 16 14 / 0.55) 45%, rgb(21 16 14 / 0.94) 100%);
}
.tile::after { /* red rule that grows on hover */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--brand-red);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.tile:hover .tile-img, .tile:focus-within .tile-img { transform: scale(1.06); }
.tile:hover::after, .tile:focus-within::after { transform: scaleX(1); }
.tile:focus-within { box-shadow: 0 0 0 3px var(--brand-red); }
.tile-body { padding: 1.5rem 1.4rem 1.6rem; }
.tile h3 { margin: 0 0 0.45rem; color: #fff; font-size: 1.25rem; }
.tile h3 a { color: inherit; text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; } /* whole tile clickable */
.tile p { margin: 0 0 1rem; font-size: 0.9375rem; color: rgb(255 255 255 / 0.82); }
.tile .link-arrow { color: #fff; }
.tile .tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

/* Compact secondary service cards */
.mini-cards { margin-top: clamp(1rem, 0.75rem + 1vw, 1.5rem); }
.card--mini { padding: 1.25rem 1.3rem; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 0.9rem; }
.card--mini .icon-badge { width: 44px; height: 44px; border-radius: 12px; }
.card--mini .icon-badge svg { width: 22px; height: 22px; }
.card--mini h3 { margin: 0; font-size: 1rem; flex: 1; }
.card--mini p { flex-basis: 100%; margin: 0.6rem 0 0; font-size: 0.875rem; }

/* Why-us split with photo */
.why-grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 1000px) { .why-grid { grid-template-columns: 0.85fr 1.15fr; } }
.why-media {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
@media (min-width: 1000px) { .why-media { aspect-ratio: 4 / 5; } }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-media::after { /* logo-style red peak in the corner */
  content: "";
  position: absolute;
  right: -1px; bottom: -1px;
  width: 120px; height: 104px;
  background: var(--brand-red);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.why-badge {
  position: absolute;
  left: 1.25rem; bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: rgb(21 16 14 / 0.88);
  color: #fff;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(6px);
}
.why-badge strong { font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--brand-red); }
.why-badge span { font-size: 0.8125rem; line-height: 1.3; max-width: 11ch; color: var(--on-dark); }
.why-grid .section-head { margin-bottom: 2rem; }
/* Why-us feature cards: numbered, with a solid icon tile and a red bar that draws in on hover */
.why-features { gap: 1rem; counter-reset: why; }
.why-features .feature {
  position: relative;
  display: block;
  padding: 1.35rem 1.35rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  counter-increment: why;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.why-features .feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.why-features .feature::after {
  content: counter(why, decimal-leading-zero);
  position: absolute;
  top: 1.2rem; right: 1.35rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.why-features .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.why-features .feature:hover::before { transform: scaleX(1); }
.why-features .icon-badge {
  width: 48px; height: 48px;
  margin-bottom: 0.95rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-red), var(--red-dark));
  color: #fff;
  box-shadow: 0 6px 14px rgb(210 49 31 / 0.25);
}
.why-features .icon-badge svg { width: 24px; height: 24px; }
.why-features .feature h3 { margin: 0 0 0.35rem; }
@media (prefers-reduced-motion: reduce) {
  .why-features .feature, .why-features .feature::before { transition: none; }
  .why-features .feature:hover { transform: none; }
}

/* Photo figures inside long-form content */
.figure--photo { padding: 0; overflow: hidden; }
.figure--photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.figure--photo figcaption { margin: 0; padding: 0.85rem 1.1rem; text-align: left; border-left: 4px solid var(--brand-red); }

/* Full-bleed photo statement band */
.photo-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(340px, 28vw + 200px, 520px);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  background: var(--ink);
  color: #fff;
}
.photo-band-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(21 16 14 / 0.92) 0%, rgb(21 16 14 / 0.7) 50%, rgb(21 16 14 / 0.25) 100%);
}
.photo-band-statement {
  max-width: 20ch;
  margin: 0 0 1.75rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.625rem, 1.1rem + 2.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* red base line under photo heroes — a nod to the logo */
.page-hero--photo { box-shadow: inset 0 -4px 0 var(--brand-red); }

/* Textured CTA band */
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.15);
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .tile:hover .tile-img, .tile:focus-within .tile-img { transform: none; }
}

/* Story section: faint photo woven into the right-hand side */
.story { isolation: isolate; }
.story-bg {
  position: absolute;
  top: 0; right: 0;
  z-index: -1;
  width: 60%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
@media (max-width: 959px) {
  .story-bg { width: 100%; height: 45%; top: auto; bottom: 0; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%); mask-image: linear-gradient(180deg, transparent 0%, #000 60%); opacity: 0.22; }
}

/* Section head with a photo filling the space beside it */
.head-split { display: grid; gap: 1.5rem; align-items: end; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.head-split .section-head { margin-bottom: 0; }
.head-photo { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 7; box-shadow: var(--shadow-sm); }
.head-photo img { width: 100%; height: 100%; object-fit: cover; }
.head-photo::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34%; height: 4px; background: var(--brand-red); }
@media (min-width: 960px) { .head-split { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* FAQ split: heading + photo alongside the questions */
.faq-split { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 1000px) {
  .faq-split { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .faq-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.faq-aside h2 { margin-bottom: 0.6rem; }
.faq-photo { margin: 1.5rem 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; }
.faq-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 999px) { .faq-photo { display: none; } }

/* ==========================================================================
   15. Postcode checker, quote wizard
   ========================================================================== */
html:not(.js) .js-only { display: none !important; }
.flip { transform: scaleX(-1); }


/* Ghost button (wizard Back) */
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bg: var(--stone); --btn-fg: var(--ink); --btn-bd: var(--line); box-shadow: none; }

/* ---- Postcode checker (map panel) ---- */
.map-panel { display: grid; gap: 1rem; }
.postcode-check {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.pc-label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.7rem; font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.pc-label svg { width: 20px; height: 20px; color: var(--red); }
.pc-row { display: flex; gap: 0.5rem; }
.pc-row input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0.7rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--ink);
  border: 1.5px solid #d9d1ca;
  border-radius: 999px;
}
.pc-row input::placeholder { text-transform: none; color: #8a807a; }
.pc-row input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgb(234 56 41 / 0.16); }
.pc-row .btn { min-height: 50px; padding-inline: 1.4rem; }
.pc-help { margin: 0.55rem 0 0; font-size: 0.8125rem; color: var(--muted); }
.pc-result:empty { display: none; }
.pc-result { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--stone); font-size: 0.9375rem; }
.pc-result p { margin: 0 0 0.4rem; }
.pc-result .pc-title { font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; color: var(--ink); }
.pc-result.is-good { background: #eef8f1; border-color: #bfe3cb; }
.pc-result.is-good .pc-title { color: #1d6b3d; }
.pc-result.is-warn { background: #fff8ec; border-color: #f3dcb0; }
.pc-result.is-bad { background: #fff1ef; border-color: #f6c7c1; }
.pc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.75rem; }

/* Map highlight when a postcode matches */
.map-town .hit-ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
.map-town.is-hit .hit-ring { opacity: 1; animation: pc-pulse 1.6s var(--ease) infinite; }
.map-town.is-hit .town-dot { fill: #ea3829; }
.map-town.is-hit text { fill: #b0281a; font-weight: 700; }
@keyframes pc-pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---- Quote wizard ---- */
.wizard-card { padding-top: clamp(1.3rem, 1rem + 1vw, 1.75rem); }
.wz-head h2 { margin-bottom: 0.25rem; }
.wz-head p { margin: 0 0 1.1rem; font-size: 0.875rem; color: var(--muted); }
.wizard { gap: 0; }
.js .wizard:not(.is-ready) .wz-step:not([data-step="1"]) { display: none; }
.js .wizard[data-chat] .wz-step, .js .wizard[data-chat] .wz-progress { display: none; } /* chat forms: the chat replaces the long form */
.wz-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1.05rem; }
.wz-step[hidden] { display: none; }
html:not(.js) .wz-step + .wz-step { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.wz-title {
  display: block;
  float: left; /* legends need this to behave like block headings */
  width: 100%;
  margin: 0 0 0.25rem;
  padding: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wz-title:focus { outline: none; }
.wz-title + * { clear: both; }

/* progress */
.wz-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}
.wz-progress::before, .wz-progress::after {
  content: "";
  position: absolute;
  top: 13px; left: 12.5%; right: 12.5%;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}
.wz-progress::after { right: auto; width: calc(0.75 * var(--wz-progress, 0%)); background: var(--red); transition: width 0.35s var(--ease); }
.wz-progress li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.wz-dot {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.wz-progress .is-current .wz-dot { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 4px rgb(234 56 41 / 0.14); }
.wz-progress .is-current { color: var(--ink); }
.wz-progress .is-done .wz-dot { background: var(--red); border-color: var(--red); color: #fff; }

/* service choice cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.svc-opt { position: relative; cursor: pointer; }
.svc-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.svc-body {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.3rem;
  height: 100%;
  padding: 0.8rem 0.4rem 0.7rem;
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.svc-body svg { width: 26px; height: 26px; color: var(--red); }
.svc-body strong { font-family: var(--font-head); font-size: 0.8438rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.svc-body small { display: none; font-size: 0.75rem; line-height: 1.3; color: var(--muted); }
.svc-opt:hover .svc-body { border-color: #cfc5bc; transform: translateY(-1px); }
.svc-opt input:checked + .svc-body { border-color: var(--red); background: #fff6f4; box-shadow: 0 0 0 1px var(--red) inset; }
.svc-opt input:checked + .svc-body::after {
  content: "";
  position: absolute;
  top: 7px; right: 7px;
  width: 16px; height: 14px;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.svc-opt input:focus-visible + .svc-body { outline: 3px solid var(--brand-red); outline-offset: 2px; }
.wizard--full .svc-body { padding: 1rem 0.6rem 0.9rem; }
.wizard--full .svc-body small { display: block; }
.wizard--full .svc-body strong { font-size: 0.9375rem; }

/* chip radios */
.chip-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.chip-set[hidden] { display: none; }
.chip-legend { float: left; width: 100%; padding: 0; margin: 0 0 0.45rem; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.chip-legend + * { clear: both; }
.chip-hint { clear: both; margin: -0.2rem 0 0.5rem; font-size: 0.8125rem; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip-opt { position: relative; cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-opt span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.chip-opt:hover span { border-color: #cfc5bc; }
.chip-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-opt input:focus-visible + span { outline: 3px solid var(--brand-red); outline-offset: 2px; }

/* alerts */
.wz-alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff1ef;
  border: 1px solid #f6c7c1;
  font-size: 0.875rem;
  color: var(--text);
}
.wz-alert[hidden] { display: none; }
.wz-alert svg { width: 20px; height: 20px; color: var(--red); margin-top: 2px; }
.wz-alert a { font-weight: 700; white-space: nowrap; }

/* nav */
.wz-nav { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 0.3rem; }
.wz-nav .btn { min-height: 48px; }
.wz-nav .btn[type="submit"], .wz-nav [data-wz-next] { flex: 1; max-width: 320px; margin-left: auto; }
html:not(.js) .wz-nav { justify-content: flex-end; }

/* photo upload */
.dropzone {
  position: relative;
  border: 2px dashed #d9d1ca;
  border-radius: var(--radius-sm);
  background: var(--stone);
  transition: border-color 0.15s, background-color 0.15s;
}
.dropzone.is-drag { border-color: var(--red); background: #fff6f4; }
.dz-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dz-input:focus-visible + .dz-label { outline: 3px solid var(--brand-red); outline-offset: 2px; border-radius: var(--radius-sm); }
.dz-label { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.1rem; cursor: pointer; }
.dz-label svg { width: 30px; height: 30px; color: var(--red); flex-shrink: 0; }
.dz-label strong { display: block; font-family: var(--font-head); font-size: 0.9375rem; color: var(--ink); }
.dz-label small { display: block; font-size: 0.8125rem; color: var(--muted); line-height: 1.35; }
.dz-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.5rem; margin: 0; padding: 0 1rem; list-style: none; }
.has-files .dz-previews { padding-bottom: 1rem; }
.dz-previews li { position: relative; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.dz-previews img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dz-previews span { display: block; padding: 0.2rem 0.35rem; font-size: 0.6875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.dz-previews button {
  position: absolute;
  top: 4px; right: 4px;
  width: 26px; height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgb(21 16 14 / 0.75);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.dz-msg:empty { display: none; }
.dz-msg { margin: 0; padding: 0 1rem 0.8rem; font-size: 0.8125rem; color: var(--red-dark); }

/* coverage + summary */
.pc-inline { margin: -0.4rem 0 0; font-size: 0.875rem; font-weight: 500; }
.pc-inline:empty { display: none; }
.pc-inline.is-good { color: #1d6b3d; }
.pc-inline.is-warn { color: #8a5a00; }
.pc-inline.is-bad { color: var(--red-dark); }
.wz-summary { padding: 0.9rem 1rem; background: var(--stone); border-radius: var(--radius-sm); }
.wz-summary[hidden] { display: none; }
.wz-summary-title { margin: 0 0 0.45rem; font-family: var(--font-head); font-weight: 600; font-size: 0.875rem; color: var(--ink); }
.wz-summary dl { margin: 0; display: grid; gap: 0.3rem; }
.wz-summary dl > div { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 0.5rem; align-items: baseline; font-size: 0.8125rem; }
.wz-summary dt { color: var(--muted); }
.wz-summary dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.wz-edit { padding: 0; border: 0; background: none; font: inherit; font-size: 0.75rem; font-weight: 600; color: var(--red); text-decoration: underline; cursor: pointer; }

/* compact wizard in narrow columns (sidebar) */
.sidebar .svc-body { padding: 0.7rem 0.3rem 0.6rem; }
.sidebar .svc-body strong { font-size: 0.78rem; }
.sidebar .wz-label { font-size: 0.6875rem; }
@media (max-width: 400px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .wz-summary dl > div { grid-template-columns: 1fr auto; }
  .wz-summary dd { grid-column: 1; }
}
@media (min-width: 900px) {
  .wizard--full .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
}
.areas-grid > *, .map-panel, .map-panel > * { min-width: 0; }

/* Five service tiles: flat roofing leads as a wide feature tile */
.tiles-5 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles-5 { grid-template-columns: repeat(2, 1fr); } .tiles-5 > :first-child { grid-column: span 2; } }
@media (min-width: 1000px) { .tiles-5 { grid-template-columns: repeat(3, 1fr); } .tiles-5 > :first-child { grid-column: span 2; } }

/* ==========================================================================
   Quote chat — a conversational layer over the quote form (built by main.js)
   ========================================================================== */
.chat { display: grid; gap: 0.85rem; min-width: 0; }
.chat-progress { height: 4px; border-radius: 999px; background: var(--stone-2); overflow: hidden; }
.chat-progress span {
  display: block;
  width: var(--chat-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--brand-red);
  transition: width 0.4s var(--ease);
}
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 150px;
  max-height: 330px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 0.9rem;
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.wizard--full .chat-log { max-height: 440px; }
.chat-log:focus-visible { outline: 3px solid var(--brand-red); outline-offset: 2px; }
.chat-msg { display: flex; align-items: flex-end; gap: 0.5rem; max-width: 94%; animation: chat-in 0.3s var(--ease) both; }
.chat-msg--user { align-self: flex-end; }
.chat-avatar {
  flex: none;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff url("../img/logo-mark.svg") center / 68% no-repeat;
}
.chat-bubble {
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.chat-msg--bot .chat-bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text); }
.chat-msg--user .chat-bubble { background: var(--ink); border-bottom-right-radius: 4px; color: #fff; }
.chat-bubble p { margin: 0; }
.chat-bubble a { color: var(--red); font-weight: 600; text-decoration: underline; }
.chat-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 0.8rem; margin: 0.6rem 0; font-size: 0.875rem; }
.chat-summary dt { color: var(--muted); }
.chat-summary dd { margin: 0; font-weight: 600; color: var(--ink); }

.chat-composer { display: grid; gap: 0.7rem; min-width: 0; }
.chat-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chat-chip {
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9063rem;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chat-chip:hover { border-color: var(--red); background: #fff6f4; color: var(--red); }
.chat-input { display: flex; align-items: center; gap: 0.5rem; }
.chat-input input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid #cfc5bc;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.chat-input input[aria-invalid="true"] { border-color: var(--red); }
.chat-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.chat-send:hover { background: var(--red-dark); }
.chat-send svg { display: block; width: 20px; height: 20px; }
.chat-error { margin: 0; font-size: 0.8125rem; font-weight: 500; color: var(--red-dark); }
.chat-error:empty { display: none; }
.chat-actions { display: flex; justify-content: space-between; gap: 1rem; }
.chat-actions:empty { display: none; }
.chat-link {
  min-height: 32px;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.chat-link:hover { color: var(--ink); }
.chat-link--skip { margin-left: auto; }
.chat-chip:focus-visible, .chat-send:focus-visible, .chat-link:focus-visible, .chat-input input:focus-visible { outline: 3px solid var(--brand-red); outline-offset: 2px; }
.chat-composer > .btn { width: 100%; }
@keyframes chat-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .chat-msg { animation: none; }
  .chat-log { scroll-behavior: auto; }
  .chat-progress span, .chat-chip, .chat-send { transition: none; }
}

/* Floating quote assistant: launcher sits above the WhatsApp button and opens the chat in a panel */
.chat-fab {
  position: fixed;
  z-index: 94;
  right: var(--gutter);
  bottom: calc(70px + 0.75rem + 56px + 0.75rem + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px; height: 56px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9688rem;
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.chat-fab:focus-visible, .chat-panel-close:focus-visible { outline: 3px solid var(--brand-red); outline-offset: 2px; }
.chat-fab img { display: block; width: 36px; height: auto; }
.chat-fab span { /* label slides out on hover or keyboard focus, like the WhatsApp button */
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.3s var(--ease), opacity 0.2s var(--ease), margin 0.3s var(--ease);
}
@media (hover: hover) {
  .chat-fab:hover span, .chat-fab:focus-visible span { max-width: 8rem; margin-left: 0.55rem; margin-right: 0.45rem; opacity: 1; }
}
.chat-panel {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-panel-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--brand-red);
}
.chat-panel-head p { flex: 1; min-width: 0; margin: 0; line-height: 1.25; }
.chat-panel-head strong { display: block; font-family: var(--font-head); font-size: 0.9688rem; color: #fff; }
.chat-panel-head p span { display: block; font-size: 0.8125rem; color: var(--on-dark-muted); }
.chat-panel-head .chat-avatar { width: 38px; height: 38px; border: 0; }
.chat-panel-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -0.4rem;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
}
.chat-panel-close:hover { background: rgb(255 255 255 / 0.12); }
.chat-panel-close svg { display: block; width: 22px; height: 22px; }
.chat-panel .quote-card {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.chat-panel .quote-card::before { display: none; }
.chat-panel .wz-head { display: none; } /* the panel header already says what this is */
.chat-panel .chat-log { max-height: none; min-height: 180px; }
@media (min-width: 768px) {
  .chat-fab { bottom: calc(1.5rem + 56px + 0.75rem); }
  .chat-panel {
    inset: auto var(--gutter) 1.5rem auto;
    width: 390px;
    max-height: min(680px, calc(100vh - 3rem));
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow-lg);
  }
  .chat-panel .chat-log { max-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-fab, .chat-fab span { transition: none; }
  .chat-fab:hover { transform: none; }
}

/* Sidebar: compact two-column quote form, and a call card that follows the reader down the page */
.sidebar .quote-card { padding: 1.35rem 1.25rem 1.25rem; }
.sidebar .quote-card h2 { font-size: 1.3125rem; margin-bottom: 0.2rem; }
.sidebar .quote-card > p { font-size: 0.875rem; margin-bottom: 0.9rem; }
.sidebar .form, .sidebar .form-row { gap: 0.7rem; }
.sidebar .field { gap: 0.25rem; }
.sidebar .field label { font-size: 0.8125rem; }
.sidebar .field input, .sidebar .field select, .sidebar .field textarea { min-height: 44px; padding: 0.5rem 0.7rem; }
.sidebar .field select { padding-right: 2rem; background-position: right 0.6rem center; background-size: 16px; text-overflow: ellipsis; }
.sidebar .field textarea { min-height: 68px; }
.sidebar .form-row--2 { grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) {
  .content-layout { grid-template-columns: minmax(0, 1fr) 400px; }
  .sidebar { display: flex; flex-direction: column; align-self: stretch; }
  .sidebar .side-card--dark { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* Photo beside text in a two-column section: match the text column's height, top to bottom */
@media (min-width: 960px) {
  .split > .figure--photo { align-self: stretch; display: flex; flex-direction: column; margin: 0; }
  .split > .figure--photo img { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
}

/* Hero quote form: dark frosted-glass card so the hero photo shows through, blurred */
.hero .quote-card {
  background: rgb(21 16 14 / 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgb(255 255 255 / 0.16);
  color: var(--on-dark);
}
.hero .quote-card h2 { color: #fff; }
.hero .quote-card > p, .hero .form-note { color: var(--on-dark-muted); }
.hero .field label { color: #fff; }
.hero .field .optional { color: var(--on-dark-muted); }
.hero .field input, .hero .field select, .hero .field textarea {
  background-color: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.28);
  color: #fff;
}
.hero .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.hero .field select option { color: var(--ink); background: #fff; } /* the open list is drawn by the browser on white */
.hero .field ::placeholder { color: rgb(255 255 255 / 0.55); }
.hero .field input:hover, .hero .field select:hover, .hero .field textarea:hover { border-color: rgb(255 255 255 / 0.5); }
.hero .field input:focus, .hero .field select:focus, .hero .field textarea:focus {
  border-color: var(--red-light);
  box-shadow: 0 0 0 4px rgb(255 107 91 / 0.28);
}
.hero .field-error { color: var(--red-light); }
.hero .form-note svg { color: #6fd39a; }
.hero .form-note a { color: #fff; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero .quote-card { background: rgb(21 16 14 / 0.92); } /* no blur support: keep the text readable */
}

/* Trust banner straddles the hero's bottom edge: half over the hero, half over the section below */
@media (min-width: 900px) {
  .trust { height: 0; margin-top: 0; }
  .trust-card { transform: translateY(-50%); }
  .trust + .section { padding-top: calc(var(--section) + 3.75rem); }
}

/* Homepage hero photo stays put while the page scrolls over it.
   clip-path makes the hero clip its fixed-position photo, so it never shows outside the hero. */
@media (prefers-reduced-motion: no-preference) {
  .hero--photo { clip-path: inset(0); }
  .hero--photo .hero-bg { position: fixed; inset: 0; height: 100vh; height: 100lvh; }
}

/* Family business section: its photo stays put while the page scrolls, like the homepage hero */
@media (prefers-reduced-motion: no-preference) {
  .story { clip-path: inset(0); }
  .story-bg { position: fixed; top: 0; height: 100vh; height: 100lvh; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 959px) {
  .story-bg { top: 0; bottom: auto; }
}

/* Reviews band: photo background (fixed while scrolling, like the hero) with frosted-glass review cards */
.reviews-band { position: relative; isolation: isolate; overflow: hidden; }
.reviews-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.reviews-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(21 16 14 / 0.86) 0%, rgb(21 16 14 / 0.78) 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .reviews-band { clip-path: inset(0); }
  .reviews-bg { position: fixed; height: 100vh; height: 100lvh; }
}
.reviews-band .review {
  background: rgb(21 16 14 / 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-color: rgb(255 255 255 / 0.16);
}
.reviews-band .review blockquote, .reviews-band .review blockquote p { color: #fff; }
.reviews-band .review figcaption, .reviews-band .review figcaption a { color: var(--on-dark-muted); }
.reviews-band .review figcaption strong { color: #fff; }
.reviews-band .review figcaption a:hover { color: #fff; }
.reviews-band .review-mark { color: var(--red-light); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .reviews-band .review { background: rgb(21 16 14 / 0.88); }
}
/* A lone review fills the row on desktop as one large featured quote */
@media (min-width: 900px) {
  .reviews-grid .review:only-child {
    flex-basis: 100%;
    max-width: none;
    align-items: center;
    gap: 1.25rem;
    padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) clamp(2rem, 1rem + 5vw, 6rem);
    text-align: center;
  }
  .reviews-grid .review:only-child .review-mark { height: 2.4rem; font-size: 5rem; }
  .reviews-grid .review:only-child blockquote { max-width: 46rem; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); line-height: 1.35; }
  .reviews-grid .review:only-child figcaption { margin-top: 0.5rem; font-size: 1rem; }
  .reviews-grid .review:only-child figcaption strong { font-size: 1.125rem; }
}

/* Interactive "How we work" steps (classes added by main.js) */
.steps--live .step {
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.steps--live .step::before { transition: color 0.3s var(--ease); }
.steps--live .step::after { /* progress bar along the top of each card */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.steps--live .step.is-done::after, .steps--live .step.is-active::after { transform: scaleX(1); }
.steps--live .step.is-done::before, .steps--live .step.is-active::before { color: var(--brand-red); }
.steps--live .step.is-active { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.steps--live .step h3 { transition: color 0.3s var(--ease); }
.steps--live .step.is-active h3 { color: var(--red); }
@media (prefers-reduced-motion: reduce) {
  .steps--live .step, .steps--live .step::before, .steps--live .step::after, .steps--live .step h3 { transition: none; }
  .steps--live .step.is-active { transform: none; }
}

/* One large logo triangle in a corner of a row, running off the edge (assets/img/shapes/triangle-*.svg,
   half opacity, behind the content). Default: red, bottom-right. --flip: bottom-left.
   --top: top-right, pointing down (with --flip: top-left). --slate: slate instead of red. */
.tri-corners { position: relative; overflow: hidden; --tri: min(1vw, 16px); }
.tri-corners > .container { position: relative; z-index: 1; }
.tri-corners::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  z-index: 0;
  width: calc(13 * var(--tri));
  height: calc(23 * var(--tri));
  opacity: 0.5;
  pointer-events: none;
  background: url("../img/shapes/triangle-red.svg?v=2") left bottom / calc(26 * var(--tri)) auto no-repeat;
}
.tri-corners--slate::after { background-image: url("../img/shapes/triangle-slate.svg?v=2"); }
.tri-corners--grey::after { background-image: url("../img/shapes/triangle-grey.svg?v=2"); } /* the lighter grey from the footer logo */
.tri-corners--flip::after { right: auto; left: 0; transform: scaleX(-1); }
.tri-corners--top::after { bottom: auto; top: 0; transform: scaleY(-1); }
.tri-corners--top.tri-corners--flip::after { transform: scale(-1); } /* top-left, pointing down */
@media print { .tri-corners::after { content: none; } }

/* Homepage hero: one red triangle cutting the top-left corner, behind the text, form and banner */
.hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background: url("../img/shapes/triangle-red-down.svg?v=2") left -16vw top 0 / 26vw auto no-repeat;
}
/* Phones: no decorative triangles anywhere, and rows go back to not clipping their content */
@media (max-width: 767px) {
  .hero--photo::after, .tri-corners::after { content: none; }
  .section.tri-corners { overflow: visible; }
}
@media print { .hero--photo::after { content: none; } }

/* Corner triangles slide in from their own corner when it scrolls into view (main.js adds .is-tri-in).
   `translate` is separate from `transform`, so it doesn't disturb the flips that position each triangle. */
.tri-marker { position: absolute; left: 0; bottom: 0; width: 1px; height: calc(23 * var(--tri, 1vw)); visibility: hidden; pointer-events: none; }
.tri-marker--top { bottom: auto; top: 0; }
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .js .tri-corners::after, .js .hero--photo::after {
    opacity: 0;
    transition: translate 1s var(--ease), opacity 0.8s var(--ease);
  }
  .js .tri-corners::after { translate: 70% 70%; }                       /* bottom-right */
  .js .tri-corners--flip::after { translate: -70% 70%; }                /* bottom-left */
  .js .tri-corners--top::after { translate: 70% -70%; }                 /* top-right */
  .js .tri-corners--top.tri-corners--flip::after { translate: -70% -70%; } /* top-left */
  .js .hero--photo::after { translate: -12vw -12vw; }                   /* top-left */
  .js .tri-corners.is-tri-in::after, .js .hero--photo.is-tri-in::after { translate: 0 0; opacity: 0.5; }
}
