/* ==========================================================================
   Backhouse Solicitors: homepage
   Brand tokens are taken from the 2026 logo:
   periwinkle #7E9DC3 · orange #D06800 · black #020202
   ========================================================================== */

:root {
  /* Brand */
  --peri: #7e9dc3;
  --peri-600: #5d7faa;
  --peri-700: #3f5f8a;
  --peri-200: #c9d7ea;
  --peri-100: #e3ebf5;
  --peri-50: #f2f6fb;
  --orange: #d06800;
  --orange-600: #b25600;
  --orange-700: #924600;
  --orange-50: #fcf1e5;

  /* Neutrals */
  --ink: #0f1b2b;
  --ink-900: #0a1320;
  --ink-800: #16263b;
  --ink-700: #22364f;
  --text: #1b2533;
  --muted: #5a6779;
  --line: #dce3ec;
  --line-soft: #e9eef4;
  --paper: #faf8f5;
  --white: #ffffff;

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 43, .05), 0 2px 10px rgba(15, 27, 43, .04);
  --shadow-md: 0 10px 30px rgba(15, 27, 43, .08), 0 2px 8px rgba(15, 27, 43, .05);
  --shadow-lg: 0 30px 70px rgba(15, 27, 43, .16), 0 8px 22px rgba(15, 27, 43, .07);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --------------------------------------------------------------------------
   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(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-thickness: .06em; text-underline-offset: .18em; }
a:hover { color: var(--orange-600); }

h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

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

::selection { background: var(--peri-200); color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--sm { width: 18px; height: 18px; }
.ico--xs { width: 14px; height: 14px; stroke-width: 2.2; }

.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;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); position: relative; }

/* Eyebrow echoes the orange rule in the logo */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-600);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow--light { color: #f0a35c; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--peri-700); }

.section-intro {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34rem;
  text-wrap: pretty;
}

.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
}
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--peri-100);
  color: var(--peri-700);
  white-space: nowrap;
}
.pill--orange { background: var(--orange); color: var(--white); }

.stars { display: inline-flex; gap: 2px; color: #f5a524; vertical-align: -2px; }
.stars svg { width: 15px; height: 15px; fill: currentColor; }
.stars--sm svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(3px); }

.btn--primary {
  --btn-bg: var(--orange-600);
  box-shadow: 0 8px 20px -8px rgba(178, 86, 0, .6);
}
.btn--primary:hover { --btn-bg: var(--orange-700); box-shadow: 0 12px 26px -10px rgba(146, 70, 0, .7); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--white); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
  background: var(--white);
}
.btn--outline:hover { border-color: var(--ink); --btn-fg: var(--ink); }

.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--lg { padding: 17px 28px; font-size: 1.04rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px;
  transition: background-size .3s var(--ease), color .2s;
}
.link-arrow:hover { background-size: 100% 2px; color: var(--ink); }
.link-arrow .ico { transition: transform .2s var(--ease); }
.link-arrow:hover .ico { transform: translateX(3px); }
.link-arrow--light,
.link-arrow--light:hover { color: var(--white); }

.link-quiet {
  font-size: .95rem;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
}
.link-quiet:hover { color: var(--ink); text-decoration-color: var(--orange); }

/* --------------------------------------------------------------------------
   Utility bar
   -------------------------------------------------------------------------- */
.utility {
  background: var(--ink);
  color: #c7d3e3;
  font-size: .86rem;
}
.utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}
.utility a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.utility a:hover { color: var(--white); }
.utility strong { color: var(--white); font-weight: 650; }
.utility__news .pill { padding: 2px 8px; font-size: .66rem; }
.utility__links { display: flex; align-items: center; gap: 24px; }
.utility__links .ico { color: var(--peri); }
.utility__portal { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .14); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line-soft); box-shadow: 0 8px 28px -18px rgba(15, 27, 43, .35); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.site-header.is-scrolled .site-header__inner { height: 72px; }

.brand { flex: none; display: block; }
.brand img { width: 216px; height: auto; transition: width .3s var(--ease); }
.site-header.is-scrolled .brand img { width: 188px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__trigger,
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav__trigger:hover,
.nav__link:hover,
.nav__trigger[aria-expanded="true"] { background: var(--peri-50); color: var(--ink); }
.nav__trigger .ico { transition: transform .25s var(--ease); }
.nav__trigger[aria-expanded="true"] .ico { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 560px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
}
.dropdown::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav__item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .2s, transform .25s var(--ease), visibility 0s;
}
.dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dropdown__link {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  transition: background-color .2s;
}
.dropdown__link .ico { margin-top: 2px; color: var(--peri-700); }
.dropdown__link strong { display: block; font-size: .96rem; font-weight: 650; line-height: 1.3; }
.dropdown__link small { display: block; font-size: .84rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.dropdown__link:hover { background: var(--peri-50); color: var(--ink); }
.dropdown__link--feature { background: var(--orange-50); }
.dropdown__link--feature .ico { color: var(--orange-600); }
.dropdown__link--feature:hover { background: #f9e4cd; }

.site-header__actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
}
.header-phone .ico {
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: var(--peri-50);
  color: var(--peri-700);
}
.header-phone small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.header-phone:hover { color: var(--orange-600); }

.menu-toggle,
.menu-close {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--white);
  overflow-y: auto;
  animation: menu-in .3s var(--ease);
}
.mobile-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu__head img { width: 168px; }
.mobile-menu .menu-close { display: inline-flex; }
.mobile-menu__nav { padding: 8px var(--gutter); flex: 1; }
.mobile-menu details { border-bottom: 1px solid var(--line-soft); }
.mobile-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu details[open] summary .ico { transform: rotate(180deg); }
.mobile-menu details ul { padding: 0 0 16px; display: grid; gap: 2px; }
.mobile-menu details a,
.mobile-menu__plain a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 550;
}
.mobile-menu__plain { padding-top: 12px; }
.mobile-menu__plain a { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); font-weight: 400; padding: 8px 0; }
.mobile-menu__foot { display: grid; gap: 10px; padding: 20px var(--gutter) 28px; background: var(--paper); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 7vw, 104px);
  overflow: hidden;
  background:
    radial-gradient(1200px 520px at 0% 0%, #fff 0%, rgba(255, 255, 255, 0) 70%),
    var(--paper);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 10vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.028em;
  margin-bottom: 26px;
  font-optical-sizing: auto;
}
.hero__line { display: block; white-space: nowrap; }
.hero__title em {
  font-style: italic;
  color: var(--peri-700);
  padding-right: .04em;
  background: linear-gradient(var(--orange), var(--orange)) 0 92% / 0 .075em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: underline 1.1s .35s var(--ease) forwards;
}
@keyframes underline { to { background-size: 100% .075em; } }

.hero__lead {
  font-size: clamp(1.08rem, 1rem + .35vw, 1.27rem);
  line-height: 1.6;
  color: #3b4757;
  max-width: 36rem;
  margin-bottom: 34px;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.rating { display: flex; align-items: center; gap: 12px; }
.rating__logo {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  flex: none;
}
.rating__logo svg { width: 22px; height: 22px; }
.rating__text { display: flex; flex-direction: column; line-height: 1.25; }
.rating__score { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 1.05rem; color: var(--ink); }
.rating__meta { font-size: .88rem; color: var(--muted); }

/* Hero visual: the logo icon at monument scale (frame, B mark, orange bar),
   using the 2026 logo's own proportions relative to the mark */
.hero__visual { display: none; }
.monument {
  position: relative;
  width: calc(var(--m) * 1.287 + 4px);
  padding: calc(var(--m) * .1436);
  border: 2px solid var(--peri);
  background: rgba(255, 255, 255, .55);
}
.monument__mark { width: var(--m); height: var(--m); overflow: hidden; background: var(--peri); }
.monument__mark img { width: 100%; height: 100%; animation: mark-in 1.1s .1s var(--ease) both; }
.monument__bar {
  height: calc(var(--m) * .239);
  margin-top: calc(var(--m) * .0827);
  background: var(--orange);
  transform-origin: left center;
  animation: bar-in 1s .5s var(--ease) both;
}
@keyframes mark-in { from { opacity: 0; transform: scale(1.05); } }
@keyframes bar-in { from { transform: scaleX(0); } }

.hero__chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow-md);
  font-size: .84rem;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
  animation: chip-in .8s var(--ease) both;
}
.hero__chip strong { display: block; color: var(--ink); font-size: .93rem; font-weight: 700; }
.hero__chip .ico { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--peri-50); color: var(--peri-700); }
.hero__chip--top { top: 0; right: -22px; animation-delay: .8s; }
.hero__chip--bottom { bottom: 6px; left: -56px; animation-delay: 1s; }
.hero__chip--bottom .ico { background: var(--orange-50); color: var(--orange-600); }
@keyframes chip-in { from { opacity: 0; transform: translateY(10px); } }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(40px, 4.5vw, 72px); }
  .hero__title { font-size: clamp(3rem, 6.4vw - 6px, 4.75rem); }
  .hero__visual { --m: min(25.5vw, 372px); display: block; position: relative; justify-self: end; padding: 28px 0 40px; }
}

/* Booking bar: the call-back form, overlapping the hero */
.booking {
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * clamp(40px, 5vw, 76px));
  padding-bottom: clamp(36px, 5vw, 60px);
}
.booking__form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: 18px 44px;
  align-items: end;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3.2vw, 42px);
  background: var(--white);
  border: 1px solid rgba(15, 27, 43, .06);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.booking__form::after {
  content: "";
  position: absolute;
  left: 42px; right: 42px; bottom: -6px;
  height: 6px;
  border-radius: 0 0 6px 6px;
  background: var(--orange);
}
.booking__intro { align-self: center; }
.booking__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--orange-50);
  color: var(--orange-600);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.booking__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin-bottom: 6px;
  text-wrap: balance;
}
.booking__sub { font-size: .94rem; color: var(--muted); line-height: 1.5; }
.booking__fields {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.booking__fields .field { margin-bottom: 0; }
.booking__submit .btn { min-height: 50px; padding-block: 0; }
.booking__note { grid-column: 2; margin-top: -4px; }
.booking__form .form-status,
.booking__form .form-success { grid-column: 1 / -1; }

/* Forms */
.enquiry {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 3vw, 36px);
}
.enquiry__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label,
.field legend { font-size: .86rem; font-weight: 650; color: var(--ink); }
.field legend { margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.optional { font-weight: 500; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8b96a5; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #c4cfdc; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--peri-700);
  box-shadow: 0 0 0 4px rgba(126, 157, 195, .28);
}
.field .is-invalid,
.field [aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192, 57, 43, .12); }
.field-error { font-size: .82rem; color: #b03a2e; font-weight: 600; }

.select { position: relative; }
.select select { padding-right: 42px; cursor: pointer; }
.select select:invalid { color: #8b96a5; }
.select option { color: var(--ink); }
.select .ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--peri-50);
  border: 1px solid var(--line-soft);
}
.segmented--3 { grid-template-columns: repeat(3, 1fr); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span {
  display: block;
  padding: 9px 8px;
  border-radius: 9px;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.segmented input:checked + span { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 1px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; font-size: .88rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--orange-600); }
.check a { color: var(--ink); }

.form-note { margin-top: 14px; font-size: .82rem; line-height: 1.55; color: var(--muted); }
.form-note .ico { display: inline-block; vertical-align: -4px; margin-right: 6px; }
.form-note a { color: var(--ink); font-weight: 600; }

.form-status:empty { display: none; }
.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: .94rem;
  line-height: 1.5;
}
.form-status.is-error { background: #fdecea; color: #8a2a20; }
.form-success { text-align: center; padding: 18px 4px 6px; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--peri-50);
  color: var(--peri-700);
}
.form-success__icon .ico { width: 30px; height: 30px; stroke-width: 2.2; }
.form-success h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); }

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.trust { background: var(--white); border-block: 1px solid var(--line-soft); }
.trust__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-block: 26px;
}
.trust__lead {
  flex: none;
  margin: 0;
  max-width: 12rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--ink);
}
.trust__list { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-size: .86rem;
  line-height: 1.35;
  color: var(--muted);
}
.trust__list .ico { color: var(--peri-700); width: 26px; height: 26px; }
.trust__list strong { display: block; color: var(--ink); font-size: .92rem; }

/* --------------------------------------------------------------------------
   Services: tabs + cards
   -------------------------------------------------------------------------- */
.services { background: var(--paper); }
.tabs__list {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 32px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 650;
  color: var(--muted);
  transition: background-color .25s, color .25s;
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.tabs__tab[aria-selected="true"] .ico { color: var(--peri); }
.tabs__panel:focus-visible { outline-offset: 8px; border-radius: var(--r-lg); }
.tabs__panel:not([hidden]) { animation: fade-up .45s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card p { color: var(--muted); font-size: 1rem; }
.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--peri-50);
  color: var(--peri-700);
  box-shadow: inset 0 0 0 1px var(--peri-100);
}
.card__icon .ico { width: 26px; height: 26px; }
.card__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.card__meta {
  margin-top: auto;
  padding-top: 8px;
  font-size: .86rem !important;
  font-weight: 650;
  color: var(--orange-600) !important;
}
.card__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }

.card--cta {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.card--cta::before {
  content: "";
  position: absolute;
  width: 180px; height: 560px;
  right: -40px; top: -160px;
  background: rgba(126, 157, 195, .14);
  transform: rotate(-45deg);
}
.card--cta .card__title { color: var(--white); font-size: 1.75rem; }
.card--cta p { color: #c3cfdf; margin-bottom: 26px; }
.card--cta .btn { align-self: flex-start; margin-top: auto; position: relative; }
.card__phone { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .94rem; color: #c3cfdf; text-decoration: none; }
.card__phone:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   Why Backhouse (dark)
   -------------------------------------------------------------------------- */
.why { background: var(--ink); color: #c3cfdf; overflow: hidden; }
.why .section-title { color: var(--white); }
.why .section-title em { color: var(--peri); }
.why .section-intro { color: #aebdd0; }
/* the B's diagonal stem, used as a quiet graphic device */
.why__band {
  position: absolute;
  width: 260px;
  height: 180%;
  top: -40%;
  right: 12%;
  background: linear-gradient(180deg, rgba(126, 157, 195, .11), rgba(126, 157, 195, .03));
  transform: rotate(-45deg);
  pointer-events: none;
}
.why .container { position: relative; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.pillar { padding: 34px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, .12); }
.pillar__num { display: block; margin-bottom: 18px; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: #f0a35c; }
.pillar h3 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; color: var(--white); margin-bottom: 12px; text-wrap: balance; }
.pillar p { font-size: 1rem; color: #aebdd0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
  border: 1px solid rgba(126, 157, 195, .4);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat { padding: 30px 28px; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { border-left: 1px solid rgba(126, 157, 195, .25); }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 1.8rem + 2vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--white);
}
.stat__num small { font-size: .45em; color: var(--peri); margin-left: 2px; }
.stat__label { font-size: .94rem; color: #aebdd0; max-width: 15rem; }

.timeline { margin-top: clamp(48px, 6vw, 72px); }
.timeline__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
  counter-reset: t;
}
.timeline__list li { position: relative; padding-top: 30px; }
.timeline__list li::before {
  content: "";
  position: absolute;
  top: 6px; left: 0; right: -24px;
  height: 1px;
  background: rgba(126, 157, 195, .35);
}
.timeline__list li:last-child::before { right: 0; }
.timeline__list li::after {
  content: "";
  position: absolute;
  top: 1px; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(208, 104, 0, .22);
}
.timeline__year { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--white); margin-bottom: 6px; }
.timeline__list p { font-size: .94rem; color: #aebdd0; }

/* --------------------------------------------------------------------------
   Process + prices
   -------------------------------------------------------------------------- */
.process { background: var(--white); }
.process__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.steps { margin: 40px 0 36px; display: grid; gap: 4px; counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 22px 0;
}
.step + .step { border-top: 1px solid var(--line-soft); }
.step__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
}
.step__icon .ico { width: 24px; height: 24px; }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin-bottom: 6px; }
.step p { color: var(--muted); }

.prices {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--r-lg);
  background: var(--peri-50);
  border: 1px solid var(--peri-100);
}
.prices::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(126, 157, 195, .45);
  border-radius: calc(var(--r-lg) - 8px);
  pointer-events: none;
}
.prices__head { position: relative; margin-bottom: 18px; }
.prices__head h3 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; margin-bottom: 4px; }
.prices__head p { color: var(--muted); }
.prices__list { position: relative; margin: 0 0 18px; }
.prices__list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed #c6d4e6;
}
.prices__list dt { color: var(--text); font-size: .98rem; }
.prices__list dd { margin: 0; text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; }
.prices__list dd small { font-weight: 500; color: var(--muted); }
.prices__note { position: relative; font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.prices .link-arrow { position: relative; }

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */
.reviews {
  background:
    linear-gradient(180deg, var(--peri-50), var(--paper));
}
.reviews__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.quote { margin: 36px 0 0; position: relative; }
.quote__mark { width: 48px; height: 36px; fill: var(--orange); margin-bottom: 18px; }
.quote blockquote { margin: 0 0 18px; }
.quote blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}
.quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .95rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); }

.scorecards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.scorecard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.scorecard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--text); }
.scorecard__logo { width: 34px; height: 34px; margin-bottom: 6px; }
.scorecard__logo svg { width: 34px; height: 34px; }
.scorecard__score { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.scorecard .stars svg { width: 18px; height: 18px; }
.scorecard__meta { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.scorecard__meta strong { color: var(--ink); }
.scorecard__cta { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .9rem; color: var(--ink); }

.reviews__more { margin-top: 30px; }

/* --------------------------------------------------------------------------
   Offices + community
   -------------------------------------------------------------------------- */
.offices { background: var(--paper); }
.office-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.office,
.community,
.careers {
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
}
.office { grid-column: span 6; background: var(--white); border: 1px solid var(--line-soft); }
.office--new { position: relative; overflow: hidden; }
.office--new::after {
  content: "";
  position: absolute;
  right: -60px; top: -120px;
  width: 140px; height: 360px;
  background: var(--orange-50);
  transform: rotate(-45deg);
  z-index: 0;
}
.office > * { position: relative; z-index: 1; }
.office__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.office__head h3 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; letter-spacing: -.015em; }
.office__details { display: grid; gap: 14px; margin-bottom: 26px; }
.office__details li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); }
.office__details .ico { color: var(--peri-700); margin-top: 2px; }
.office__details a { font-weight: 700; color: var(--ink); text-decoration: none; }
.office__details a:hover { color: var(--orange-600); }
.office .link-arrow { margin-top: auto; align-self: flex-start; }

.community {
  grid-column: span 7;
  position: relative;
  overflow: hidden;
  background: var(--ink-800);
  color: #c3cfdf;
}
.community::before {
  content: "";
  position: absolute;
  width: 200px; height: 520px;
  right: 12%; top: -170px;
  background: rgba(126, 157, 195, .14);
  transform: rotate(-45deg);
}
.community > * { position: relative; }
.community h3,
.careers h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; margin-bottom: 12px; }
.community h3 { color: var(--white); }
.community p { max-width: 34rem; margin-bottom: 22px; }
.community .link-arrow { margin-top: auto; align-self: flex-start; }

.careers { grid-column: span 5; background: var(--white); border: 1px solid var(--line-soft); }
.careers p { color: var(--muted); }
.careers .card__links { margin-top: auto; }

/* --------------------------------------------------------------------------
   Insights
   -------------------------------------------------------------------------- */
.insights { background: var(--white); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 14px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--text);
  background: var(--white);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post__link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--text); }
.post__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  margin-bottom: 22px;
  border-radius: calc(var(--r-lg) - 6px);
  overflow: hidden;
  background: var(--peri);
  color: var(--white);
}
.post__art::before {
  content: "";
  position: absolute;
  width: 34%; height: 260%;
  left: 18%; top: -80%;
  background: rgba(255, 255, 255, .9);
  transform: rotate(-45deg);
  transition: transform .6s var(--ease);
}
.post__art::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14%;
  background: var(--orange);
}
.post__link:hover .post__art::before { transform: rotate(-45deg) translateY(-6%); }
.post__art .ico { position: relative; z-index: 1; width: 56px; height: 56px; stroke-width: 1.3; color: var(--ink); }
.post__art--b { background: var(--ink-700); }
.post__art--b::before { background: rgba(126, 157, 195, .55); }
.post__art--b .ico { color: var(--white); }
.post__art--c { background: var(--peri-100); }
.post__art--c::before { background: rgba(126, 157, 195, .55); }
.post__meta, .post__title, .post__more { padding-inline: 12px; }
.post__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: .84rem; color: var(--muted); }
.post__cat { font-weight: 700; color: var(--orange-600); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; }
.post__title { font-family: var(--serif); font-weight: 500; font-size: 1.42rem; line-height: 1.2; margin-bottom: 18px; text-wrap: balance; }
.post__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); }
.post__more .ico { transition: transform .2s var(--ease); }
.post__link:hover .post__more .ico { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Enquire (dark)
   -------------------------------------------------------------------------- */
.enquire {
  background:
    radial-gradient(800px 420px at 100% 100%, rgba(126, 157, 195, .16), rgba(126, 157, 195, 0) 70%),
    var(--ink);
  color: #c3cfdf;
  overflow: hidden;
}
.enquire::before {
  content: "";
  position: absolute;
  width: 300px; height: 160%;
  left: -2%; top: -30%;
  background: linear-gradient(180deg, rgba(126, 157, 195, .1), rgba(126, 157, 195, 0));
  transform: rotate(-45deg);
  pointer-events: none;
}
.enquire__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.enquire .section-title { color: var(--white); }
.enquire .section-title em { color: var(--peri); }
.enquire .section-intro { color: #aebdd0; margin-top: 22px; }
.contact-list { display: grid; gap: 12px; margin-top: 36px; max-width: 26rem; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid rgba(126, 157, 195, .28);
  text-decoration: none;
  color: var(--white);
  font-weight: 650;
  font-size: 1.08rem;
  transition: background-color .2s, border-color .2s;
}
.contact-list a:hover { background: rgba(126, 157, 195, .1); border-color: rgba(126, 157, 195, .55); color: var(--white); }
.contact-list small { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--peri); }
.contact-list__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: rgba(126, 157, 195, .14); color: var(--peri); }
.enquire__hours { display: flex; gap: 8px; align-items: center; margin-top: 18px; font-size: .9rem; color: #94a6bd; }
.enquiry .form-note { text-align: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: #93a3b8; font-size: .95rem; padding: clamp(56px, 7vw, 88px) 0 40px; }
.site-footer a { color: #c3cfdf; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer__top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: 56px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__brand img { width: 236px; margin-bottom: 22px; }
.footer__brand p { max-width: 20rem; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #c3cfdf;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.socials a:hover { background: var(--orange-600); color: var(--white); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }
.footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer__nav h3 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer__nav ul { display: grid; gap: 10px; }
.footer__contact li { line-height: 1.55; }
.footer__contact a { overflow-wrap: anywhere; }
.footer__contact strong { display: block; color: var(--white); font-weight: 650; }
.footer__legal { padding-top: 32px; display: grid; gap: 24px; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .88rem; }
.footer__reg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; align-items: start; font-size: .82rem; line-height: 1.6; color: #7d8ea5; }
.footer__reg p { grid-column: 2; margin: 0; }
.sra-badge {
  grid-row: span 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(126, 157, 195, .3);
  color: #c3cfdf;
  font-size: .82rem;
  line-height: 1.35;
}
.sra-badge .ico { color: var(--peri); }
.sra-badge strong { display: block; color: var(--white); }

/* --------------------------------------------------------------------------
   Mobile action bar
   -------------------------------------------------------------------------- */
.action-bar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: none;
  grid-template-columns: auto 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(15, 27, 43, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  transform: translateY(150%);
  transition: transform .4s var(--ease);
}
.action-bar.is-visible { transform: translateY(0); }
.action-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.action-bar__call { color: var(--white); background: rgba(255, 255, 255, .1); }
.action-bar__book { color: var(--white); background: var(--orange-600); }
.action-bar a:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   Simple pages (thank you, 404)
   -------------------------------------------------------------------------- */
.simple-page .site-header__inner { justify-content: space-between; }
.simple {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: clamp(56px, 10vw, 120px) 0;
  background:
    radial-gradient(900px 480px at 100% 0%, var(--peri-50), rgba(242, 246, 251, 0) 70%),
    var(--paper);
}
.simple__inner { max-width: 820px; }
.simple .section-intro { margin: 20px 0 32px; }
.simple__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.simple__icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-md);
  color: var(--peri-700);
}
.simple__icon .ico { width: 30px; height: 30px; stroke-width: 2.2; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .header-phone span { display: none; }
  .nav__trigger, .nav__link { padding: 10px 11px; }
}

@media (max-width: 1100px) {
  :root { --header-h: 76px; }
  .nav, .header-phone { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header__actions { margin-left: auto; }
  .brand img { width: 190px; }
  .site-header.is-scrolled .brand img { width: 172px; }

  .utility .utility__news { display: none; }
  .utility__inner { justify-content: center; }
  .booking__form { grid-template-columns: 1fr; gap: 20px; }
  .booking__fields { grid-template-columns: 1fr 1fr; }
  .booking__fields .field--topic,
  .booking__submit { grid-column: 1 / -1; }
  .booking__note { grid-column: auto; margin-top: 0; }

  .trust__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .trust__lead { max-width: none; }
  .trust__list { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(126, 157, 195, .25); }
  .timeline__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }

  .process__grid { grid-template-columns: 1fr; }
  .prices { position: relative; top: 0; }
  .reviews__grid { grid-template-columns: 1fr; }
  .community { grid-column: span 12; }
  .careers { grid-column: span 12; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts .post:last-child { display: none; }
  .enquire__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .utility__links { gap: 18px; }
  .utility__portal { display: none; }
  .section-head--split { grid-template-columns: 1fr; }
  .office { grid-column: span 12; }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__reg { grid-template-columns: 1fr; }
  .footer__reg p { grid-column: auto; }
  .sra-badge { grid-row: auto; justify-self: start; }
  .action-bar { display: grid; }
  body { padding-bottom: 84px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header__actions .btn--sm { display: none; }
  .simple-page .site-header__actions .btn--sm { display: inline-flex; }
  .utility { font-size: .8rem; }
  .utility__links { gap: 18px; }
  .utility__links .ico,
  .u-wide { display: none; }
  .eyebrow { letter-spacing: .1em; }
  .hero { padding-top: 32px; }
  .hero__actions .btn { width: 100%; }
  .hero__proof { gap: 16px; }
  .booking { margin-top: -28px; }
  .booking__fields { grid-template-columns: 1fr; }
  .booking__form::after { left: 24px; right: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .tabs__list { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; }
  .tabs__tab { justify-content: center; padding: 12px 10px; font-size: .92rem; border-radius: 14px; }
  .tabs__tab .ico,
  .tab-wide { display: none; }
  /* swipeable rows on phones */
  .cards,
  .posts {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 18px;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar,
  .posts::-webkit-scrollbar { display: none; }
  .card,
  .post { scroll-snap-align: start; }
  .card:hover,
  .post__link:hover { transform: none; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 22px 0 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 22px; }
  .pillar__num { margin-bottom: 6px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 18px; }
  .timeline__list { grid-template-columns: 1fr; gap: 0; }
  .timeline__list li { padding: 0 0 22px 32px; }
  .timeline__list li::before { top: 8px; bottom: -8px; left: 5px; right: auto; width: 1px; height: auto; }
  .timeline__list li:last-child::before { display: none; }
  .timeline__list li::after { top: 6px; }
  .scorecards { gap: 12px; }
  .scorecard { padding: 20px 18px; }
  .scorecard__score { font-size: 2.6rem; }
  .contact-list a { font-size: 1rem; overflow-wrap: anywhere; }
  .trust__list { grid-template-columns: 1fr; gap: 0; }
  .trust__list li { padding: 12px 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .trust__list li:first-child { border-top: 0; padding-top: 0; }
  .prices__list div { flex-direction: column; gap: 2px; }
  .prices__list dd { text-align: left; }
  .posts .post:last-child { display: block; }
  .segmented--3 span { font-size: .84rem; padding: 9px 4px; }
  .footer__nav { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}

@media (max-width: 400px) {
  .brand img { width: 168px; }
}

@media (max-width: 340px) {
  .utility__links li:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__title em { background-size: 100% .075em; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .utility, .site-header, .action-bar, .hero__visual, .mobile-menu { display: none !important; }
  body { background: #fff; }
}
