/* Optional blocks. This file is not part of site.css: build.py puts it at the top of assets/design.css,
   which only a site with "design" in its site.json loads. Sites without "design" are unaffected.
   Blocks styled here: the About page "people" photographs. (The home before and after gallery uses
   the .baband and .rail--ba rules already in site.css.) */

/* ---------- About: people photographs on a row ---------- */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.people--n1 { grid-template-columns: minmax(0, 340px); }
.people img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }
.people figcaption { display: grid; gap: 2px; }
.people figcaption b { font-size: 18px; font-weight: 600; color: var(--ink); }
.people figcaption span { font-size: 16px; font-weight: 400; color: var(--text); }
/* No name given: the role is the caption's main line. */
.people figcaption span:only-child { font-size: 18px; font-weight: 600; color: var(--ink); }
/* Stacked: the photographs come before the row's heading and copy. */
.aboutrow--people .people { order: -1; margin-bottom: 8px; }
@media (min-width: 900px) {
  .aboutrow--people .aboutrow__grid { grid-template-areas: "head people" "body people"; grid-template-rows: auto 1fr; row-gap: 20px; }
  .aboutrow--people .h2 { grid-area: head; }
  .aboutrow--people .aboutrow__body { grid-area: body; }
  .aboutrow--people .people { grid-area: people; order: 0; gap: 20px; margin-bottom: 0; }
}

/* =====================================================================================================
   Designed blocks (site.json "design": hero, gallery, header_quote; site.json "trust").
   Structure only. Colour, type and finish belong to each site's own design.css, which loads after this.
   ===================================================================================================== */

/* ---------- Header with the quote button (design.header_quote) ----------
   The full menu shows from 1200px (the engine default is 1300px). With a phone number as well, the number
   itself is text only from 1400px; Call now and the quote button are always there. */
.nav__call--quote .btn { min-height: 48px; padding-inline: 20px; white-space: nowrap; }
@media (max-width: 1199px) {
  .site-header--quote .nav__call { flex-wrap: wrap; gap: 10px; padding-top: 6px; }
  .site-header--quote .nav__call .btn { flex: 1 1 200px; }
}
@media (min-width: 1200px) and (max-width: 1299px) {
  .site-header--quote .site-header__in { min-height: 84px; gap: 24px; }
  .site-header--quote .menu-btn { display: none; }
  .site-header--quote .nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 22px; margin-left: auto;
    padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; max-height: none; overflow: visible;
  }
  .site-header--quote .nav ul { flex-direction: row; gap: 20px; }
  .site-header--quote .nav ul a { display: inline-flex; min-height: 44px; padding: 0; font-size: 16px; border-bottom: 0; }
  .site-header--quote .nav__call { gap: 10px; }
}
@media (min-width: 1200px) {
  .site-header--quote.site-header--phone .nav { gap: 20px; }
  .site-header--quote.site-header--phone .nav ul { gap: 18px; }
  .site-header--quote.site-header--phone .nav__call { gap: 12px; }
  .site-header--quote.site-header--phone .nav__call .btn { padding-inline: 16px; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .site-header--quote.site-header--phone .tel { display: none; }
  .site-header--quote.site-header--phone .nav ul { gap: 16px; }
}

/* ---------- Hero: eyebrow line and the breadcrumb trail carried on it ---------- */
.hero__eyebrow, .crumbs--hero { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 16px; line-height: 1.4; }
.hero__eyebrow::before, .crumbs--hero::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--timber); }
.crumbs--hero { padding: 0; background: none; border: 0; }
.crumbs--hero a { min-height: 44px; margin-block: -10px; }
.hero--index .crumbs--hero a { color: #fff; }
.hero--index .crumbs--hero [aria-current], .hero--index .hero__eyebrow, .hero--index .crumbs--hero li + li::before { color: var(--on-dark); }
.hero--index .hero__eyebrow::before, .hero--index .crumbs--hero::before { background: var(--sand); }

/* ---------- Hero "caption": copy beside one large photograph, caption card over its foot ---------- */
.hero--photo .hero__media { position: relative; }
.hero--photo .hero__media > .photo { position: absolute; inset: 0; aspect-ratio: auto; }
.hero--photo .hero__media > .photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--photo .hero__text { display: flex; flex-direction: column; min-width: 0; }
.hero--photo .hero__text .hero__lead { margin-top: 18px; }
.hero--caption .hero__media { height: clamp(250px, 72vw, 420px); }
.hero--caption.hero--portrait .hero__media > .photo > img { object-position: 50% 42%; }
.hero__cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 14px; border-radius: 10px; background: rgb(255 255 255 / .93); font-size: 16px; line-height: 1.4; color: var(--text);
}
.hero__cap p { min-width: 0; }
.hero__cap strong { font-weight: 600; color: var(--ink); }
.hero__cap span { display: block; }
.hero__cap a { display: none; flex: none; font-weight: 600; color: var(--ink); text-underline-offset: 4px; }
@media (min-width: 900px) {
  .hero--caption .hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(36px, 4.5vw, 64px); align-items: stretch; }
  .hero--caption .hero__text { justify-content: center; padding-block: clamp(12px, 2vw, 28px); }
  .hero--caption .hero__grid .actions { margin-top: 28px; padding-top: 0; }
  .hero--caption .hero__media { height: auto; min-height: clamp(440px, 40vw, 580px); }
  .hero__cap { left: 20px; right: 20px; bottom: 20px; padding: 14px 18px; }
  .hero__cap a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -8px; }
}

/* ---------- Hero "cover": full-width photograph, the copy in a card floating over it ----------
   The card hangs below the photograph's foot (--hang), so it reads as resting on the page, not printed on the photo.
   Stacked: photograph, then the card pulled up over its lower edge. */
.hero--cover { --hang: 0px; padding: 0; overflow: visible; }
.hero--cover > .hero__media { height: clamp(230px, 62vw, 400px); overflow: hidden; }
.hero--cover > .hero__grid { position: relative; z-index: 1; margin-top: -44px; }
.hero--cover .hero__text { padding: clamp(22px, 5vw, 34px); border-radius: var(--r); background: #fff; }
.hero--cover .hero__cap { display: none; }
@media (min-width: 900px) {
  .hero--cover { --hang: 56px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(clamp(440px, 39vw, 580px), auto) var(--hang); }
  .hero--cover > .hero__media { grid-area: 1 / 1 / 2 / 2; height: auto; }
  .hero--cover > .hero__grid { grid-area: 1 / 1 / 3 / 2; align-self: end; margin-top: 0; padding-top: 44px; flex-direction: row; }
  .hero--cover .hero__text { flex: 0 1 640px; padding: clamp(30px, 3vw, 44px); }
  .hero--cover .hero__grid .actions { margin-top: 26px; padding-top: 0; }
  .hero--cover .hero__cap { display: flex; left: auto; right: var(--bleed); bottom: 20px; max-width: min(46vw, 560px); }
  /* Stand-in photograph (too small to stretch across the page): it is shown sharp over the right-hand side only and
     fades on its left into a soft, tinted copy of itself that fills the rest of the band. A 2400 x 1200 photograph
     removes all of this and covers the band edge to edge. */
  .hero--soft > .hero__media::before { content: ""; position: absolute; inset: -48px; background: var(--hero-img) center / cover no-repeat; filter: blur(30px) saturate(1.1); }
  .hero--soft > .hero__media::after { content: ""; position: absolute; inset: 0; background: var(--hero-tint, rgb(255 255 255 / .16)); }
  .hero--soft > .hero__media > .photo {
    z-index: 1; inset: 0 0 0 auto; width: min(66%, 940px);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%); mask-image: linear-gradient(to right, transparent 0, #000 26%);
  }
  .hero--soft .hero__cap { z-index: 2; }
}

/* ---------- Trust bar under the hero (site.json "trust") ---------- */
.trustbar { padding-block: 18px; background: #fff; border-block: 1px solid var(--line); }
.trustbar__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.trustbar__list > li { min-width: 0; }
.trustbar__list a, .trustbar__item { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); text-decoration: none; }
.trustbar__list a:hover .trustbar__label { text-decoration: underline; text-underline-offset: 4px; }
.trustbar__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mist); color: var(--firth); }
.trustbar__badge { flex: none; display: grid; place-items: center; width: 64px; height: 44px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.trustbar__badge img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 0; }
@media (max-width: 359px) { .trustbar__list { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 700px) { .trustbar__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .trustbar__list { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; gap: 22px; }
}

/* ---------- Photo row and video row (design.gallery) ----------
   Every photograph keeps its own shape at one row height (--rh); the row scrolls sideways and runs off the
   right edge of the page. "row": copy left, row right. "stack": copy above the row. */
.rail--shapes { --rh: min(86vw, 340px); align-items: flex-start; }
.rail--shapes.rail--wide { --rh: 58vw; }
.rail--ideas.rail--shapes > li { flex: 0 0 auto; width: min(calc(var(--rh) * var(--ar)), 84vw); }
.rail--ideas.rail--shapes img { width: 100%; height: var(--rh); aspect-ratio: auto; object-fit: cover; border-radius: var(--r); }
.rail--ideas.rail--clips > li { flex: 0 0 auto; width: min(56vw, 230px); }
.rail--clips .ideas__clip video { width: 100%; height: auto; aspect-ratio: 9 / 16; }
.ideas + .ideas--video { padding-top: 0; }
.ideas__copy > .textlink { margin-top: 0; margin-bottom: 20px; }
@media (min-width: 700px) { .rail--shapes.rail--wide { --rh: clamp(300px, 44vw, 400px); } }
@media (min-width: 900px) {
  .rail--shapes, .rail--shapes.rail--wide { --rh: clamp(320px, 30vw, 440px); }
  .rail--ideas.rail--shapes > li { width: calc(var(--rh) * var(--ar)); }
  .rail--ideas.rail--clips > li { width: calc(clamp(320px, 30vw, 440px) * 9 / 16); }
  .ideas__copy > .textlink { margin: 18px 0 0; }
  .ideas--row .ideas__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .ideas--stack .ideas__grid { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3.4vw, 44px); }
  .ideas--stack .ideas__copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 88px); align-items: end; }
  .ideas--stack .ideas__copy { grid-template-rows: auto auto; }
  .ideas--stack .ideas__copy > .h2 { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin: 0; }
  .ideas--stack .ideas__copy > .lead { grid-column: 2; grid-row: 1; margin-top: 0; max-width: none; }
  .ideas--stack .ideas__copy > .actions { grid-column: 2; grid-row: 2; margin-top: 22px; }
  .ideas--stack .ideas__copy > .textlink { grid-column: 2; grid-row: 3; margin-top: 14px; }
  .ideas--stack .ideas__copy > .carousel__nav { grid-column: 2; grid-row: 2; justify-self: end; align-self: end; margin: 0; padding: 0; }
  /* Row: heading, sentence, buttons, onward link; the arrows close the column level with the photographs' foot. */
  .ideas--row .ideas__grid .actions { order: 0; }
  .ideas--row .ideas__grid .carousel__nav { order: 0; }
}

/* ---------- Town pages: "How we fit" while its photograph is still to come ----------
   Text only: heading left, the town's paragraph right, then the steps in one row across the full width. */
@media (min-width: 900px) {
  #how-we-fit .feature__plain { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "tail"; }
  #how-we-fit .feature__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 88px); }
  #how-we-fit .feature__head > .h2 { grid-column: 1; margin: 0; }
  #how-we-fit .feature__head > .lead { grid-column: 2; margin-top: 0; max-width: none; }
  #how-we-fit .feature__head > .fitrow { grid-column: 1 / -1; margin-top: clamp(30px, 3.6vw, 48px); }
  #how-we-fit .feature__tail .actions { margin-top: 4px; }
}

/* ---------- About: a row with its own photograph (optional "image" on a section) ---------- */
.about .aboutphoto { padding-block: clamp(32px, 4.6vw, 64px); }

/* Westhaven Bathrooms: the site's own look. Loaded after the engine's site.css (site.json "design").
   Crisp and direct: one family (Archivo), narrow and heavy for headings, regular for reading. Navy heroes
   on every page with the photographs hanging below the band, squared buttons and panels, ruled rows,
   and large numerals on the real sequences (the steps from first call to finished bathroom).
   House rules kept: body 18px / 1.65 / #303030, 16px image corners, photograph first when stacked. */

:root {
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --r-box: 8px;     /* buttons, panels, icon tiles (photographs keep 16px) */
  --hang: 64px;     /* how far a hero photograph hangs below the navy band */
}
body { font-family: var(--sans); font-stretch: 100%; }

/* ---------- Type ---------- */
.h2, .hero__title, .post__title, h3, .h3, .logo__text b, .tel, .callcard__num, .findus__num, .timeline__num, .steps__badge b { font-stretch: 82%; }
.h2 { font-size: clamp(29px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 600; }
h3, .h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; }
.lead { max-width: 56ch; }
figcaption { font-weight: 500; }
.textlink a { text-decoration-color: var(--timber); text-decoration-thickness: 2px; }
.textlink .icon { color: var(--timber); }

/* ---------- Buttons: squared, firm ---------- */
.btn { min-height: 54px; padding: 8px 24px; border-width: 2px; border-radius: var(--r-box); font-weight: 600; }
.menu-btn { border-width: 2px; border-radius: var(--r-box); font-weight: 600; }
.form input, .form textarea { border-radius: var(--r-box); }
.round { border-radius: var(--r-box); border-width: 2px; }
.btn--on-dark, .band-firth .btn--call { background: #fff; color: var(--ink); }
.btn--on-dark:hover, .band-firth .btn--call:hover { background: var(--sand); }

/* ---------- Header ---------- */
.site-header { background: #fff; }
.logo__mark { border-radius: var(--r-box); }
.logo__text b { font-size: 25px; font-weight: 700; letter-spacing: -0.02em; }
.logo__text span { font-size: 16px; letter-spacing: 0; }
.nav ul a { font-size: 16.5px; font-weight: 500; }
.nav ul a:hover, .nav ul a[aria-current] { text-decoration-thickness: 2px; text-decoration-color: var(--timber); }
.tel { font-size: 20px; font-weight: 700; }
/* Five menu items fit from 1240px, so the full menu shows on a 1280px laptop. */
@media (min-width: 1240px) and (max-width: 1299px) {
  .site-header__in { min-height: 84px; gap: 24px; }
  .menu-btn { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 24px; margin-left: auto; padding: 0; border: 0; background: none; box-shadow: none; max-height: none; overflow: visible; }
  .nav ul { flex-direction: row; gap: 22px; }
  .nav ul a { display: inline-flex; min-height: 44px; font-size: 16.5px; border-bottom: 0; }
  .nav__call { justify-content: flex-start; gap: 14px; }
}
@media (max-width: 1299px) { .nav { background: #fff; } }
/* Six menu items: tighter spacing so the number and Call now button stay on screen from 1240px. */
@media (min-width: 1240px) and (max-width: 1399px) {
  .site-header__in { gap: 16px; }
  .nav { gap: 16px; }
  .nav ul { gap: 14px; }
  .nav ul a, .nav ul a:link { font-size: 16px; }
  .tel { font-size: 18px; }
  .nav__call { gap: 12px; }
}

@media (max-width: 479px) { .logo__text b { font-size: 21px; } }

/* ---------- Heroes: a navy band on every page ---------- */
.hero--rail, .hero--split, .hero--split.band-stone { background: var(--firth); color: var(--on-dark); --line: rgb(255 255 255 / .22); }
.hero__title { font-size: clamp(33px, 9.4vw, 48px); line-height: 1; letter-spacing: -0.025em; font-weight: 650; }
.hero--rail .hero__title, .hero--split .hero__title, .hero--rail .hero__points li, .hero--split .hero__points li { color: #fff; }
.hero__points li { font-weight: 500; }
.hero--rail .hero__points .icon, .hero--split .hero__points .icon { color: var(--sand); }
.hero--rail .hero__note, .hero--split .hero__note { color: var(--on-dark); }
.hero--rail .btn--call, .hero--split .btn--call { background: #fff; color: var(--ink); }
.hero--rail .btn--call:hover, .hero--split .btn--call:hover { background: var(--sand); }
.hero--rail .btn--quote, .hero--split .btn--quote { border-color: rgb(255 255 255 / .65); color: #fff; }
.hero--rail .btn--quote:hover, .hero--split .btn--quote:hover { border-color: #fff; background: #fff; color: var(--firth); }
.hero--rail .round { border-color: rgb(255 255 255 / .7); color: #fff; }
.hero--rail .round:hover:not(:disabled) { border-color: #fff; background: #fff; color: var(--firth); }
.hero--rail .round:disabled { border-color: rgb(255 255 255 / .28); color: rgb(255 255 255 / .42); }
.hero--rail .dots i { background: rgb(255 255 255 / .3); }
.hero--rail .dots i.is-on { background: #fff; }
.hero--rail :focus-visible, .hero--split :focus-visible { outline-color: var(--sand); }
@media (min-width: 900px) {
  .hero__title { font-size: clamp(52px, 5.6vw, 80px); line-height: .96; }
  .hero--split .hero__title { font-size: clamp(42px, 4.5vw, 62px); line-height: .98; }
  /* The band stops short of the foot, so the photographs hang below it onto the page. */
  .hero--rail, .hero--split, .hero--split.band-stone {
    padding-bottom: 28px;
    background: linear-gradient(var(--firth) 0 calc(100% - var(--hang) - 28px), var(--paper) 0);
  }
  .hero--wide .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero--rail .hero__copy, .hero--split .hero__text { padding-bottom: calc(var(--hang) + clamp(32px, 3.6vw, 48px)); }
  .hero--rail { padding-top: clamp(28px, 3vw, 40px); }
  .hero--rail .hero__grid { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); row-gap: clamp(24px, 2.6vw, 34px); }
  .hero--rail .hero__points li { padding: 10px 0; }
  .hero--rail .hero__grid .actions { padding-top: 22px; }
}
/* Text heroes (About, hubs): the same band, a blue line along its foot. */
.hero--index::after { height: 6px; background: var(--timber); }
@media (min-width: 900px) {
  .hero--index .hero__title, .hero--index .hero__head .hero__title { font-size: clamp(48px, 5.2vw, 74px); line-height: .98; }
}

/* ---------- Finance strip: a blue bar ---------- */
.strip { background: var(--timber); color: #fff; }
.strip__in { font-weight: 500; }
.strip a { color: #fff; font-weight: 700; text-decoration-thickness: 2px; }
@media (max-width: 599px) { .strip__in { align-items: flex-start; justify-content: flex-start; } .strip__in .icon { margin-top: 2px; } }

/* ---------- Before and after: two sliders level with each other, copy on the right ---------- */
.baband .h2 { margin-bottom: 22px; }
.baband__grid .lead { order: 2; margin: 22px 0 0; }
.baband__grid .rail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin-right: 0; overflow: visible; }
.rail--ba > li, .rail--ba > li:last-child { margin-right: 0; }
.baband .ba__frame { aspect-ratio: 4 / 5; }
.baband .ba__tag { border-radius: 6px; font-weight: 600; }
.baband .ba__tag--after { background: var(--timber); color: #fff; }
.baband figcaption { padding-top: 12px; border-top: 2px solid var(--ink); margin-top: 14px; }
.baband .carousel__nav { display: none; }
@media (min-width: 640px) {
  .baband__grid .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 900px) {
  .baband__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; }
  .baband__grid .rail { order: -1; grid-auto-flow: row; gap: 24px; }
  .baband__copy { position: sticky; top: 32px; padding-top: 22px; border-top: 6px solid var(--timber); }
  .baband .h2 { margin-bottom: 0; }
  .baband__grid .lead { margin: 18px 0 0; }
}

/* ---------- Bathroom Ideas: the dark wall ---------- */
.showcase .h2 { font-size: clamp(32px, 4.6vw, 62px); line-height: .98; letter-spacing: -0.025em; }
.showcase__nav .round { border-color: rgb(255 255 255 / .6); }
.showcase__nav .round[data-next] { background: #fff; border-color: #fff; color: var(--ink); }
.showcase__nav .round[data-next]:hover:not(:disabled) { background: var(--sand); border-color: var(--sand); }
.showcase__bar i, .showcase__nav .dots i.is-on { background: #fff; }

/* ---------- Icon points: navy tiles on ruled rows ---------- */
.points--tile { gap: 0; }
.points--tile li { align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.points--tile li:last-child { border-bottom: 1px solid var(--line); }
.points--tile .points__icon, .band-stone .points--tile .points__icon, .feature--warm .points--tile .points__icon { width: 48px; height: 48px; border-radius: var(--r-box); background: var(--firth); color: #fff; }
.points--tick .points__icon, .points--plain .points__icon, .points--rule .points__icon { color: var(--timber); }
.points--rule .points__icon { border-bottom: 2px solid var(--ink); }
.offer__icon, .findus__icon, .popular__icon { border-radius: var(--r-box); }
.offer__icon, .findus__icon { background: var(--firth); color: #fff; }
.popular__go { border-radius: var(--r-box); border-width: 2px; }
.financebox { border-radius: var(--r-box); background: var(--firth); color: #fff; }
.financebox .icon { color: var(--sand); }
@media (min-width: 900px) { .split__body > .points--tile { padding-top: 24px; } }

/* A section with no photograph: ruled rows level with the heading. */
.feature__plain .points--tick { gap: 0; }
.feature__plain .points--tick li { padding: 13px 0; border-top: 1px solid var(--line); }
.feature__plain .points--tick li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .feature__plain .points { align-content: start; } }

/* ---------- Panels: squared ---------- */
.form, .callcard, .trio li, .review, .findus__list, .districts .chips--plain, .directory__foot, .prose__call, .notfound__links a,
.related__list a, .related__list span, .who .points, .feature--plain .points--ring, .trio__icon { border-radius: var(--r-box); }
.chip { border-radius: 6px; }
.chip--link { border-width: 2px; }
.trio li { border-top: 4px solid var(--sand); }
.callcard { border-top: 6px solid var(--timber); }
/* The home showroom panel runs the full width of the page here, not as a rounded card. */
.feature--warm { border-block: 1px solid var(--line); }
@media (min-width: 900px) {
  .feature--warm { padding-block: clamp(56px, 7vw, 104px); background: var(--linen); }
  .feature--warm > .container { padding: 0; border-radius: 0; background: none; }
}

/* ---------- Numbered sequences: large numerals over a rule ---------- */
.steps li { grid-template-columns: 58px minmax(0, 1fr); column-gap: 16px; padding: 18px 0 20px; border-top: 2px solid var(--ink); }
.steps li::before { display: none; }
.steps li:last-child { padding-bottom: 20px; }
.steps__badge { display: block; width: auto; height: auto; border: 0; border-radius: 0; }
.steps__badge .icon { display: none; }
.steps__badge b { position: static; display: block; width: auto; height: auto; border-radius: 0; background: none; color: var(--timber); font-size: 54px; font-weight: 600; line-height: .9; letter-spacing: -0.03em; text-align: left; }
.steps h3 { margin-top: 2px; }
@media (min-width: 1000px) {
  .steps { gap: 24px; }
  .steps li { padding: 20px 0 0; }
  .steps__badge b { font-size: 68px; }
  .steps h3 { margin-top: 18px; }
}
.timeline__num { font-weight: 600; color: var(--timber); }
.timeline li { border-top-width: 2px; border-top-color: var(--ink); }
.timeline li:last-child { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary h3 { font-size: 21px; }
.faq__mark { border-radius: var(--r-box); border-width: 2px; }
.faq details[open] .faq__mark { transform: none; }
.faq__mark .icon { transition: transform .2s; }
.faq details[open] .faq__mark .icon { transform: rotate(45deg); }

/* ---------- About: the two portraits level, a ruled caption under each ---------- */
.people figcaption { margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--ink); }
.people figcaption b, .people figcaption span:only-child { font-size: 22px; font-stretch: 82%; font-weight: 600; }
.aboutrow__grid { border-top: 2px solid var(--ink); }
.aboutrow--open .lead { font-weight: 500; }
@media (min-width: 900px) {
  .aboutrow--people .aboutrow__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ---------- Enquiry, footer, call bar ---------- */
.callcard__num, .findus__num, .site-footer .tel { font-weight: 700; letter-spacing: -0.02em; }
.site-footer__col h2 { font-stretch: 82%; font-size: 19px; }
.callbar { background: rgb(255 255 255 / .97); }

/* ---------- Style page gallery: smaller tiles, so three photographs show at once ---------- */
@media (min-width: 900px) { .rail--gallery { --gh: clamp(240px, 25vw, 330px); } }

/* ---------- Stand-in photographs are about 750px wide: where a long section stacks on a small laptop, the
   photograph stops at its own width and is not stretched across the page. ---------- */
@media (min-width: 900px) and (max-width: 1099px) {
  .feature--long .split__media > .photo { max-width: 748px; }
}

/* ---------- Before and After page: pairs in a grid ---------- */
.gallerypairs__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; list-style: none; margin: 28px 0; padding: 0; }
.gallerypairs .ba__frame { aspect-ratio: 4 / 5; }
.gallerypairs .ba__tag { border-radius: 6px; font-weight: 600; }
.gallerypairs .ba__tag--after { background: var(--timber); color: #fff; }
.gallerypairs figcaption { padding-top: 12px; border-top: 2px solid var(--ink); margin-top: 14px; }
@media (min-width: 700px) { .gallerypairs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1000px) { .gallerypairs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Home: "what makes a bathroom cost more or less" cards are numbered factors, not photo cards ---------- */
#bathroom-types .types__grid { counter-reset: cost; }
#bathroom-types .typecard { counter-increment: cost; border-top: 2px solid var(--ink); padding-top: 16px; }
#bathroom-types .typecard figure { display: none; }
#bathroom-types .typecard h3 { margin-top: 0; display: flex; align-items: center; gap: 12px; }
#bathroom-types .typecard h3::before { content: counter(cost); flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--timber); color: #fff; font-size: 16px; font-weight: 700; }
