/* ============================================================================
   FLEXECARE LAYOUT: containers, header chrome (Primary Careers tri-band,
   recoloured), sticky compact bar, mobile drawer, section rhythm, wave
   dividers, page title band, footer + cyan bottom legal bar.
   ========================================================================== */

/* ---- Containers ----------------------------------------------------------- */

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

.container--narrow { max-width: calc(var(--container-narrow) + (var(--gutter) * 2)); }

/* ---- Sections -------------------------------------------------------------- */

.section { padding-block: var(--space-section); background: var(--fc-white); }
.section--sm { padding-block: var(--space-section-sm); }
.section--ice { background: var(--fc-white); }
.section--navy {
  background: var(--fc-logo-blue-wash);
  color: var(--fc-body-text);
}
.section--clock {
  background: var(--fc-green);
  color: var(--fc-white);
}
.section--deep {
  background: var(--fc-white);
}

.section--navy h2, .section--navy h3,
.section--deep h2, .section--deep h3 { color: var(--fc-navy); }
.section--navy p, .section--deep p { color: var(--fc-ice-text); }
.section--clock h2,
.section--clock h3,
.section--clock p { color: var(--fc-white); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fc-cyan-deep);
  margin-bottom: 12px;
}

.section--navy .eyebrow, .section--deep .eyebrow { color: var(--fc-cyan); }
.section--clock .eyebrow { color: var(--fc-white); }
.section--clock .lead,
.section--clock .section-head .lead { color: var(--fc-white); }

.section--clock .btn--hollow {
  border-color: var(--fc-white);
  color: var(--fc-white);
}
.section--clock .btn--hollow:hover {
  background: var(--fc-white);
  color: var(--fc-navy);
}

.section--clock .text-link,
.section--clock .text-link:hover { color: var(--fc-white); }

/* Consecutive cyan bands (trust chips + partner logos) read as one slab */
.section--clock + .section--clock { padding-top: 0; }

/* Uppercase marketing H2s, Primary Careers voice */
.h2-caps {
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}

.section-head .lead { font-size: 1.0625rem; color: var(--fc-muted); }
.section--navy .lead, .section--deep .lead { color: var(--fc-ice-text); }

/* ---- Wave dividers (GoodOaks signature, single organic wave) --------------- */

.wave {
  display: block;
  line-height: 0;
  font-size: 0;
  background: var(--wave-from, transparent);
  /* Overlap adjacent sections so mobile subpixel rounding can't flash a
     1px body-coloured hairline between the SVG and the next band. */
  margin-top: -1px;
  margin-bottom: -2px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.wave svg {
  width: 100%;
  height: clamp(48px, 7vw, 96px);
  display: block;
  vertical-align: bottom;
  /* Nudge the fill 1px down so the path edge seals against the next section */
  position: relative;
  top: 1px;
}

.wave svg path { fill: var(--wave-to, var(--fc-white)); }

.wave--flip svg { transform: scaleX(-1); }

@media (max-width: 768px) {
  .wave {
    margin-top: -2px;
    margin-bottom: -3px;
  }
  .wave svg {
    top: 2px;
    height: clamp(44px, 12vw, 72px);
  }
}

/* ============================================================================
   HEADER, Primary Careers tri-band chrome + Care UK umbrella strip
   ========================================================================== */

.site-header { position: relative; z-index: var(--z-header); }

/* Band 0, audience umbrella strip — light brand chrome */
.umbrella {
  background: var(--fc-brand-bar);
  color: var(--fc-white);
}

.umbrella .container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: var(--h-umbrella);
  gap: 16px;
}

.umbrella__links { display: flex; }

/* Care UK umbrella anatomy: uppercase micro-links, hover inverts to white */
.umbrella a {
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fc-white);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.umbrella a:hover,
.umbrella a.is-current {
  background: var(--fc-white);
  color: var(--fc-green);
}

.umbrella__links a:first-child { padding-left: 0; }
.umbrella__links a:first-child:hover { padding-left: 15px; }

/* Band 1, utility bar: address left, hours right.
   Primary Careers signature: 2px accent line under the top bar. */
.utility {
  background: var(--fc-white);
  border-bottom: 1px solid var(--fc-line);
  color: var(--fc-muted);
}

.utility .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--h-utility);
  gap: 16px;
  font-size: var(--fs-tiny);
}

.utility__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.utility__item svg { width: 14px; height: 14px; color: var(--fc-cyan); flex: none; }

.utility strong { color: var(--fc-green); font-weight: 700; }

/* Band 2, brand row: logo + phone pill */
.brand-row {
  background: var(--fc-white);
  border-bottom: 1px solid var(--fc-line);
}

.brand-row .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--h-brand);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}

/* Transparent PNG logo, sits directly on navy chrome (no white plate). */
.brand-logo__plate {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  max-width: 100%;
}

.brand-logo__plate img {
  height: 56px;
  width: auto;
  max-width: min(280px, 58vw);
}

.brand-logo__plate--sm img { height: 48px; }

.brand-row__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
}

.brand-row__enquire {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--fc-navy);
  text-decoration: none;
  border-bottom: 2px solid var(--fc-green);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease);
}

.brand-row__enquire:hover { color: var(--fc-green); }

/* Band 3, coloured main navigation strip.
   Logo cyan — same as the hero “round the clock” accent — with white labels. */
.main-nav {
  background: var(--fc-green);
  box-shadow: var(--shadow-header);
}

.main-nav > .container { display: flex; }

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li { margin: 0; }

.nav-list > li { position: relative; }

.nav-list > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: var(--h-nav);
  padding: 0 16px;
  font-family: var(--font-ui);
  font-size: var(--fs-nav);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fc-white);
  white-space: nowrap;
  transition: background var(--dur) var(--ease);
}

/* Primary Careers "downwards-line" underline: slides down into place */
.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 9px;
  height: 2px;
  background: var(--fc-white);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-list > li > a .caret { width: 10px; height: 10px; opacity: 0.8; transition: transform var(--dur) var(--ease); }

.nav-list > li:hover > a,
.nav-list > li:focus-within > a,
.nav-list > li > a.is-current {
  background: rgba(255, 255, 255, 0.16);
}

.nav-list > li:hover > a::after,
.nav-list > li:focus-within > a::after,
.nav-list > li > a.is-current::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-list > li:hover > a .caret,
.nav-list > li:focus-within > a .caret { transform: rotate(180deg); }

/* Dropdown panels, same colour as the nav band (Primary Careers pattern) */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: var(--fc-green);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2), 0 16px 34px rgba(1, 13, 39, 0.22);
  padding: 10px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 5;
}

.nav-list > li:hover > .sub-menu,
.nav-list > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li { position: relative; }

.sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fc-white);
  border-radius: var(--radius-small);
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}

.sub-menu a:hover { background: rgba(255, 255, 255, 0.16); }

.sub-menu .flyout-caret { width: 9px; height: 9px; color: var(--fc-white); opacity: 0.85; flex: none; }

/* Nested flyout (Services → Care at Home → …) */
.sub-menu .sub-menu {
  top: -10px;
  left: 100%;
  border-radius: 8px;
  transform: translateX(8px);
}

.sub-menu li:hover > .sub-menu,
.sub-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ---- Sticky compact bar ("phantom" header) --------------------------------- */

.sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--fc-white);
  box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.07), var(--shadow-header);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.sticky-bar.is-active { transform: translateY(0); opacity: 1; }

.sticky-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--h-sticky);
}

.sticky-bar .brand-logo {
  flex: 0 0 auto;
  min-width: 0;
}

.sticky-bar .brand-logo__plate img { height: 42px; }

/* Nav sits in the middle band and must stay one line (no wrapped last letters) */
.sticky-bar nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.sticky-bar .nav-list {
  flex-wrap: nowrap;
  justify-content: center;
  max-width: 100%;
}

/* Sticky bar on white — navy labels, cyan/green accents */
.sticky-bar .nav-list > li > a {
  height: var(--h-sticky);
  color: var(--fc-navy);
  white-space: nowrap;
  padding: 0 12px;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  gap: 5px;
  flex: 0 0 auto;
}

.sticky-bar .nav-list > li > a::after {
  background: var(--fc-green);
  bottom: 14px;
  left: 12px;
  right: 12px;
}

.sticky-bar .nav-list > li:hover > a,
.sticky-bar .nav-list > li:focus-within > a,
.sticky-bar .nav-list > li > a.is-current { background: rgba(79, 187, 112, 0.12); color: var(--fc-cyan-deep); }

.sticky-bar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

/* ---- Hamburger -------------------------------------------------------------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: var(--radius-small);
  background: var(--fc-ice);
  border: 1px solid var(--fc-line);
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--fc-navy);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

/* ---- Mobile drawer (light brand — matches header / sticky bar) -------------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(3, 27, 78, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}

.drawer-backdrop.is-visible { opacity: 1; visibility: visible; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-drawer);
  width: min(88vw, 380px);
  background: var(--fc-white);
  color: var(--fc-navy);
  transform: translateX(102%);
  transition: transform 0.42s var(--ease);
  overflow-y: auto;
  padding: 22px 26px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -12px 0 40px rgba(3, 27, 78, 0.12);
  border-left: 1px solid var(--fc-line);
}

.mobile-drawer.is-open { transform: translateX(0); }

body.drawer-locked { overflow: hidden; }

.mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fc-line);
}

.mobile-drawer__top img,
.mobile-drawer__logo { height: 36px; width: auto; max-width: min(200px, 58vw); }

.drawer-close {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-small);
  background: var(--fc-ice);
  border: 1px solid var(--fc-line);
  color: var(--fc-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-close:hover {
  background: var(--fc-cyan);
  border-color: var(--fc-cyan);
  color: var(--fc-white);
}

.drawer-close svg { width: 16px; height: 16px; }

.drawer-nav ul { list-style: none; margin: 0; padding: 0; }

.drawer-nav > ul > li { border-bottom: 1px solid var(--fc-line); }

.drawer-nav > ul > li > a,
.drawer-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  padding: 14px 2px;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fc-navy);
  text-decoration: none;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
  background: transparent;
  border: 0;
}

.drawer-nav > ul > li > a:hover,
.drawer-sub-toggle:hover {
  color: var(--fc-cyan-deep);
}

.drawer-sub-toggle svg {
  width: 12px;
  height: 12px;
  color: var(--fc-cyan-deep);
  transition: transform var(--dur) var(--ease);
  flex: none;
}

.drawer-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.drawer-sub {
  display: none;
  padding: 0 0 12px 14px;
  border-left: 3px solid var(--fc-cyan);
  margin-left: 2px;
}

.drawer-sub.is-open { display: block; }

.drawer-sub a {
  display: block;
  padding: 9px 2px;
  font-size: 0.9rem;
  color: var(--fc-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.drawer-sub a:hover { color: var(--fc-cyan-deep); }

.drawer-sub .drawer-sub { padding-left: 14px; border-left-color: var(--fc-green); }
.drawer-sub .drawer-sub a { font-size: 0.85rem; }

.mobile-drawer__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}

.mobile-drawer__cta .btn { width: 100%; justify-content: center; }

.mobile-drawer__meta {
  font-size: var(--fs-tiny);
  color: var(--fc-muted);
  line-height: 1.6;
}

.mobile-drawer__meta a { color: var(--fc-cyan-deep); }

/* ---- Page title band (inner pages, Primary Careers style: light band,
        centered uppercase navy H1, min-height ~70px) ------------------------ */

.page-title {
  background: var(--fc-white);
  border-bottom: 1px solid var(--fc-line);
  padding: 26px 0 30px;
  text-align: center;
}

.page-title h1 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
}

.page-title h1::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  border-radius: 2px;
  margin: 12px auto 0;
  background: var(--fc-cyan);
}

.page-title .page-title__intro {
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--fc-muted);
  font-size: 1.0625rem;
}

.page-title .crumbs { justify-content: center; }

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  max-width: 100%;
  min-width: 0;
}

.crumbs li + li::before { content: "›"; color: var(--fc-cyan-deep); flex: none; }

.crumbs a { color: var(--fc-muted); text-decoration: none; }
.crumbs a:hover { color: var(--fc-blue); }
.crumbs [aria-current] {
  color: var(--fc-navy);
  overflow-wrap: anywhere;
  white-space: normal;
}

/* ============================================================================
   FOOTER, Primary Careers density + cyan bottom legal bar (signature)
   ========================================================================== */

.site-footer {
  background: var(--fc-white);
  color: var(--fc-ice-text);
  border-top: 1px solid var(--fc-line);
}

.site-footer__main { padding: clamp(48px, 6vw, 72px) 0 40px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.15fr 1.3fr;
  gap: clamp(28px, 4vw, 56px);
}

.footer-brand__logo {
  display: inline-block;
  background: transparent;
  padding: 0;
  margin-bottom: 18px;
}

.footer-brand__logo img { height: 62px; width: auto; }

.footer-brand p { font-size: var(--fs-small); }

.site-footer h2 {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fc-navy);
  margin-bottom: 18px;
}

.site-footer h2::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  margin-top: 8px;
  background: var(--fc-green);
}

.footer-links { list-style: none; margin: 0; padding: 0; }

.footer-links li { margin: 0 0 9px; }

.footer-links a {
  color: var(--fc-muted);
  font-size: var(--fs-small);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-links a:hover { color: var(--fc-green); }

.footer-contact { list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); }

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.footer-contact svg { width: 16px; height: 16px; color: var(--fc-green); flex: none; margin-top: 4px; }

.footer-contact a { color: var(--fc-navy); text-decoration: none; }
.footer-contact a:hover { color: var(--fc-cyan-deep); }

.footer-contact__service {
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.footer-contact__service + .footer-contact__service {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--fc-line);
}

.footer-contact__service-label {
  display: block;
  font-weight: 700;
  color: var(--fc-navy);
  margin-bottom: 2px;
}

.footer-contact__line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.footer-contact__line svg {
  width: 16px;
  height: 16px;
  margin-top: 0;
  color: var(--fc-green);
  flex: none;
}

.footer-contact__line a {
  color: var(--fc-muted);
  overflow-wrap: anywhere;
}

.footer-hours { font-size: var(--fs-small); }
.footer-hours dt { font-weight: 600; color: var(--fc-navy); margin-top: 10px; }
.footer-hours dd { margin: 2px 0 0; }

/* CQC + accreditations band */
.footer-trust {
  border-top: 1px solid var(--fc-line);
  padding: 26px 0;
}

.footer-trust .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cqc-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--fc-white);
  border-radius: var(--radius-card);
  padding: 12px 18px;
  text-decoration: none;
}

.cqc-badge img { height: 34px; width: auto; }

.cqc-badge__text { font-size: var(--fs-tiny); color: var(--fc-muted); line-height: 1.45; }

.cqc-badge__text strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--fc-navy);
}

.cqc-rating-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--fc-green);
  box-shadow: 0 0 0 3px rgba(24, 193, 243, 0.28);
  vertical-align: middle;
}

.cqc-badge__text .cqc-link { color: var(--fc-blue); text-decoration: underline; }

.footer-logos { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.footer-logos span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fc-white);
  border-radius: var(--radius-small);
  padding: 7px 10px;
}

.footer-logos img { height: 26px; width: auto; }

/* Brand green → cyan bar, matches the branding-board value strip */
.legal-bar {
  background: var(--fc-brand-bar);
  color: var(--fc-white);
}

.legal-bar .container {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  flex-wrap: wrap;
  padding-block: 8px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
}

.legal-bar__links { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }

.legal-bar__links li { margin: 0; display: inline-flex; align-items: center; }

/* Primary Careers bottom bar: pipe-separated legal links */
.legal-bar__links li + li::before {
  content: "|";
  opacity: 0.55;
  margin: 0 10px;
}

.legal-bar a {
  color: var(--fc-white);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.legal-bar a:hover { color: rgba(255, 255, 255, 0.78); }

.legal-bar__credit { white-space: nowrap; }

.legal-bar__credit a {
  font-weight: 700;
  text-decoration: none;
}

/* ============================================================================
   Scroll reveal
   ========================================================================== */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

html.js [data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1400px) {
  .sticky-bar .nav-list > li > a {
    padding: 0 9px;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
  }
  .sticky-bar .nav-list > li > a::after { left: 9px; right: 9px; }
  .sticky-bar .brand-logo__plate img { height: 38px; }
}

@media (max-width: 1250px) {
  .nav-list > li > a { padding: 0 13px; letter-spacing: 0.02em; }
  .sticky-bar .nav-list > li > a {
    padding: 0 7px;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    gap: 4px;
  }
  .sticky-bar .nav-list > li > a::after { left: 7px; right: 7px; bottom: 13px; }
  .sticky-bar .nav-list > li > a .caret { width: 9px; height: 9px; }
}

@media (max-width: 1100px) {
  .umbrella, .utility, .main-nav { display: none; }

  .brand-row .container { min-height: 70px; }
  .brand-logo__plate img { height: 52px; }
  .brand-row__enquire { display: none; }

  .nav-toggle { display: inline-flex; }

  .sticky-bar .nav-list { display: none; }

  /* Icon-only call button so the number can't crush the logo */
  .brand-row .btn--phone .btn__label,
  .sticky-bar .btn--phone .btn__label { display: none; }
  .brand-row .btn--phone,
  .sticky-bar .btn--phone { padding-inline: 14px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-trust .container {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .legal-bar .container {
    justify-content: center;
    text-align: center;
    gap: 10px 14px;
  }

  .cqc-badge {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    gap: 10px;
  }
  .cqc-badge img { height: 28px; }

  .mobile-drawer {
    width: min(92vw, 380px);
    padding: 18px 16px 32px;
  }
  .mobile-drawer__cta .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .brand-row .container {
    gap: 10px;
    min-height: 64px;
  }
  .brand-logo__plate img { height: 40px; }
  .brand-row__actions { gap: 8px; }
  .sticky-bar .brand-logo__plate img { height: 34px; }
  .sticky-bar .container { gap: 10px; }
  .sticky-bar__actions { gap: 8px; }
  .nav-toggle { width: 42px; height: 42px; }
  .brand-row .btn--phone,
  .sticky-bar .btn--phone { padding-inline: 12px; }

  .footer-brand__logo img { height: 48px; }
  .footer-col { min-width: 0; }
  .footer-col ul a { overflow-wrap: anywhere; }

  .page-title { padding: 18px 0 20px; }
  .page-title h1 { font-size: clamp(1.375rem, 1.15rem + 1.4vw, 1.75rem); }
  .page-title .page-title__intro { font-size: 1rem; margin-top: 10px; }
  .crumbs { letter-spacing: 0.04em; gap: 4px 8px; }
  .section-head { margin-bottom: 24px; }
  .section-head .lead { font-size: 1rem; }
}
