/* =============================================================================
   chrome.css (foundation): header, overlay menu, search panel, aside modals
   (call-back, sign in), breadcrumbs, footer, cookie bar, back-to-top.
   Spec: docs/reference/01-global-chrome.md (measurements at 1440 unless noted).
   ============================================================================= */

/* ---------------------------------------------------------------- Scroll lock (01 §1.4) */
body.no-scroll { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

/* ---------------------------------------------------------------- Page wrappers */
.site-main, .site-footer {
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease-io);
}
.site-main { display: block; }

/* ============================================================================
   HEADER (01 §2, §4)
   Layout is a single flex row: logo · [dots + nav list] · phone · icon bar.
   Sizes are custom properties so each breakpoint only changes numbers.
   ============================================================================ */
.site-header {
  --logo-h: 24px;            /* ~158px wide: optically fills the 01 §2.3 logo slot */
  --nav-fs: 10px;
  --nav-gap: 9px;            /* li margin-left */
  --menu-btn: 32px;
  --menu-dot: 4px;
  --menu-rect: 12px;
  --menu-ml: 10px;
  --dot-color: var(--c-ink);
  --phone-fs: 13px;
  --phone-sub-fs: 14px;
  --phone-w: 116px;
  --phone-ml: 15px;
  --bar-icon: 18px;
  --bar-gap: 8px;
  position: relative;
  z-index: var(--z-header);
  width: 100%;
  color: var(--c-ink);
  background: transparent;
  transition: background-color var(--dur-2) var(--ease-io), color var(--dur-2) var(--ease-io), transform var(--dur-2) var(--ease-io);
}
.site-header__inner {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 32px 0;
  border-bottom: 1px solid var(--c-line);
  transition: border-color var(--dur-1) var(--ease);
}
.site-header a { color: inherit; }

/* Logo */
/* Flex wrapper: the logo is centred on the row instead of hanging at the top
   of a body-text line box that is taller than it is. */
.site-header__logo { display: flex; align-items: center; width: calc(var(--logo-h) * 6.6035); flex-grow: 1; flex-shrink: 0; }
.logo-link { display: inline-block; vertical-align: top; color: inherit; }
.logo { display: block; fill: currentColor; }
.site-header__logo .logo { height: var(--logo-h); width: calc(var(--logo-h) * 6.6035); }

/* Dots button + nav list */
.site-header__nav { display: flex; align-items: center; flex-grow: 12; min-width: 0; }
.menu-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: var(--menu-btn); min-width: var(--menu-btn); height: var(--menu-btn);
  margin-left: var(--menu-ml);
  border-radius: var(--r-round);
  background: var(--c-surface-100);
  transform-origin: 50% 50%;
  transition: transform var(--dur-2) var(--ease-expo), background-color var(--dur-2) var(--ease-expo);
}
.menu-btn__rect { position: relative; display: block; width: var(--menu-rect); height: var(--menu-rect); }
.menu-btn__dot {
  position: absolute; width: var(--menu-dot); height: var(--menu-dot); border-radius: var(--r-round);
  background: var(--dot-color);
  transition: transform var(--dur-1) var(--ease), background-color var(--dur-2) var(--ease-io);
}
.menu-btn__dot:nth-child(1) { top: 0; left: 0; }
.menu-btn__dot:nth-child(2) { top: 0; right: 0; }
.menu-btn__dot:nth-child(3) { bottom: 0; right: 0; }
.menu-btn__dot:nth-child(4) { bottom: 0; left: 0; }
.menu-btn:hover .menu-btn__dot:nth-child(1) { transform: translate(1px, 1px); }
.menu-btn:hover .menu-btn__dot:nth-child(2) { transform: translate(-1px, 1px); }
.menu-btn:hover .menu-btn__dot:nth-child(3) { transform: translate(-1px, -1px); }
.menu-btn:hover .menu-btn__dot:nth-child(4) { transform: translate(1px, -1px); }

.site-header__nav-list { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.site-header__nav-list > li { margin-left: var(--nav-gap); }
.site-header__nav-list a {
  display: block;
  font-size: var(--nav-fs);
  font-weight: var(--fw-medium);
  line-height: 16px;
  letter-spacing: var(--ls-caps-tight);
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--dur-1) var(--ease);
}
.site-header__nav-list a:hover { opacity: var(--hover-dim); }

/* Phone + "Request a call" */
.site-header__phone {
  display: flex; flex-direction: column; align-items: flex-start;
  min-width: var(--phone-w); flex-grow: 1; flex-shrink: 0;
  margin-left: var(--phone-ml);
  white-space: nowrap; line-height: 1;
}
.site-header__tel { display: block; font-size: var(--phone-sub-fs); line-height: 1; }
.site-header__tel b { font-size: var(--phone-fs); font-weight: var(--fw-bold); }
.site-header__callback { font-size: var(--phone-sub-fs); line-height: 1; opacity: .3; transition: opacity var(--dur-1) var(--ease); }
.site-header__callback:hover { opacity: .6; }

/* Icon bar */
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--bar-gap); flex-grow: 3; flex-shrink: 0; }
.site-header__bar > li { display: flex; transition: opacity var(--dur-1) var(--ease); }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: var(--bar-icon); height: var(--bar-icon); color: inherit;
  transition: transform var(--dur-1) var(--ease);
}
.icon-btn:hover { transform: scale(1.1); }
.icon-btn .icon { width: var(--bar-icon); height: var(--bar-icon); }
.cart-btn {
  display: flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 4px;
  border-radius: 12px;
  background: var(--c-surface-100);
  color: var(--c-ink) !important;
  font-size: var(--fs-9); font-weight: var(--fw-medium); line-height: 1;
  transition: transform var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.cart-btn:hover { transform: scale(1.1); background: var(--c-sage-light); }
/* Sage pill once the basket has something in it (04 §4.7.6). */
.cart-btn:has(.js-cart-count:not([data-count="0"])) { background: var(--c-sage-light); }

/* --- Breakpoints (01 §2.4). Values between anchors are interpolated so the
       nine Accanto categories always fit on one line. */
@media (min-width: 1221px) and (max-width: 1439px) {
  .site-header {
    --logo-h: clamp(22px, calc(2.532vw - 8.91px), 24px);
    --nav-fs: calc(.4566vw + 3.425px);           /* 9px @1221 → 10px @1440 */
    --nav-gap: calc(2.283vw - 23.88px);          /* 4px @1221 → 9px @1440 */
    --phone-fs: calc(.4566vw + 6.425px);         /* 12px @1221 → 13px @1440 */
    --phone-ml: calc(2.283vw - 17.88px);         /* 10px → 15px */
    --bar-gap: calc(.9132vw - 5.15px);           /* 6px → 8px */
  }
}
/* The icon bar keeps the reference width (105px @1221 → 141px @1440) so the
   icons are spaced evenly instead of giving their share to the wider logo. */
@media (min-width: 1221px) and (max-width: 1600px) {
  .site-header__bar { min-width: clamp(103px, calc(17.4vw - 109px), 141px); }
  /* Clear space between the (wider) UK number and the search icon:
     10px @1221 → 14px @1440 and up, about the reference's 6–15px gap. */
  .site-header__phone { margin-right: clamp(10px, calc(1.83vw - 12.3px), 14px); }
}
@media (min-width: 1601px) {
  .site-header {
    --logo-h: min(calc(2.508vw - 16.15px), 32px);   /* 24px @1601 → 32px @1920 */
    --nav-fs: min(calc(.9404vw - 5.056px), 13px);   /* 10px → 13px */
    --nav-gap: min(calc(3.448vw - 46.2px), 20px);   /* 9px → 20px */
    --menu-ml: 16px;
    --phone-fs: 14px;
    --phone-ml: 10px;
    --bar-gap: 10px;
  }
  /* Header 99px @1601 → 105px @1920 (01 §2.4: ≈106). */
  .site-header__inner { padding: min(calc(.94vw + 17.9px), 36px) 0; }
  /* Clear space between the last link and the phone: 25px @1601 → 60px @1920. */
  .site-header__nav-list { padding-right: min(calc(10.97vw - 160.6px), 50px); }
  .site-header__phone { margin-right: 10px; flex-grow: 3; }
  .site-header__bar { flex-grow: 1; }
  .site-header__nav { flex-grow: 10; }
}
@media (min-width: 991px) and (max-width: 1220px) {
  .site-header {
    --logo-h: clamp(18px, calc(.4367vw + 13.67px), 19px);   /* 18px @991 → 19px @1220 (0.8 × the 1440 size) */
    --nav-fs: clamp(8.5px, calc(.2183vw + 6.337px), 9px);
    --nav-gap: clamp(3px, calc(.8734vw - 5.655px), 5px);
    --menu-btn: 22px;
    --menu-dot: 3px;
    --menu-rect: 8px;
    --phone-fs: 11px;
    --phone-sub-fs: 12px;
    --phone-w: 100px;
    --phone-ml: 10px;
    --bar-icon: 12px;
    --bar-gap: 5px;
  }
  .site-header__phone { margin-right: 10px; font-size: 13px; }
  .site-header__tel { font-size: 13px; }
  .site-header__nav { flex-grow: 5; }
}
@media (min-width: 991px) and (max-width: 1180px) {
  /* Too narrow for every link plus the phone: the company links (Services,
     Trade; .menu-item--aux, inc/setup.php) stay in the overlay menu, so the
     phone and "Request a call" keep their place, as in the reference at 1024. */
  .site-header__nav-list > .menu-item--aux { display: none; }
}

/* --- Mobile header ≤990 (01 §4): [dots] · logo centred · [basket] */
@media (max-width: 990px) {
  .site-header { --logo-h: 26px; --menu-ml: 0px; --bar-gap: 10px; }
  .site-header__inner { padding: 16px 0; justify-content: space-between; }
  .site-header__nav { order: -1; flex: 1; }
  .site-header__nav-list { display: none; }
  .menu-btn { background: none; }
  .site-header__logo { width: auto; flex-grow: 0; }
  .site-header__phone { display: none; }
  .site-header__bar { flex: 1; justify-content: flex-end; }
  .site-header__bar > li:not(.site-header__bar-item--cart) { display: none; }
  body.menu-active .site-header__bar > li { display: flex; }
  body.menu-active .site-header__logo { display: none; }
  body.menu-active .site-header__nav { flex: 0 0 auto; }
  .site-header.is-search-active .site-header__bar > li:not(:first-child) { opacity: .4; }
}

/* --- Home: transparent variant over the hero (01 §2.6) */
body:not(.menu-active) .site-header--transparent { color: var(--c-white); }
body:not(.menu-active) .site-header--transparent .site-header__inner { border-bottom-color: transparent; }
body:not(.menu-active) .site-header--transparent .menu-btn { background: var(--glass-white-20); }
body:not(.menu-active) .site-header--transparent { --dot-color: var(--c-white); }
@media (min-width: 501px) {
  body:not(.menu-active):not(.movable-active) .site-header--transparent:hover,
  body:not(.menu-active):not(.movable-active) .site-header--transparent:has(:focus-visible) { background: var(--c-white); color: var(--c-ink); --dot-color: var(--c-ink); }
  body:not(.menu-active):not(.movable-active) .site-header--transparent:hover .site-header__inner,
  body:not(.menu-active):not(.movable-active) .site-header--transparent:has(:focus-visible) .site-header__inner { border-bottom-color: var(--c-line); }
  body:not(.menu-active):not(.movable-active) .site-header--transparent:hover .menu-btn,
  body:not(.menu-active):not(.movable-active) .site-header--transparent:has(:focus-visible) .menu-btn { background: var(--c-surface-100); }
}
/* Entrance: the bar drops in on DOMContentLoaded (chrome.js adds .is-animated). */
html.js .site-header--transparent > .container {
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity var(--dur-3) ease-out, transform var(--dur-3) ease-out;
}
html.js .site-header--transparent.is-animated > .container { opacity: 1; transform: none; }

/* --- Overlay menu open (01 §2.5) */
body.menu-active .site-header { position: fixed; top: 0; left: 0; right: 0; }
body.menu-active .site-main { padding-top: var(--header-h); }
body.menu-active .menu-btn { background: var(--c-white); transform: rotate(135deg); }
body.menu-active .site-header { --dot-color: var(--c-ink); }
body.menu-active .site-header__nav-list a:not(:hover) { opacity: var(--hover-dim); }
body.menu-active .cart-btn { background: var(--c-ink); color: var(--c-white) !important; }
@media (min-width: 991px) {
  body.menu-active .site-header__inner { border-bottom-color: transparent; }
}

/* --- Aside modal open: header and main slide left (desktop) (01 §7.1) */
body.movable-active .site-header,
body.movable-active .site-main { transform: translateX(-33vw); }
@media (max-width: 990px) {
  body.movable-active .site-header { transform: none; }
  /* Mobile sheets open under the header, which stays in view. */
  body.aside-active .site-header { position: fixed; top: 0; left: 0; right: 0; background: var(--c-white); color: var(--c-ink); --dot-color: var(--c-ink); }
  body.aside-active .site-header .site-header__inner { border-bottom-color: var(--c-line); }
  body.aside-active .site-header .menu-btn { background: none; }
  body.aside-active .site-main { padding-top: var(--header-h); }
}

/* ============================================================================
   OVERLAY MENU (01 §3)
   ============================================================================ */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear var(--dur-3);
}
.site-menu.is-active { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.site-menu__bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--c-beige);
  transform: translateX(-100%);
  transition: transform var(--dur-3) var(--ease-io);
}
.site-menu.is-active .site-menu__bg { transform: none; }

.site-menu__container {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  height: 100%;
  overflow-x: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.site-menu__inner, .site-menu__bottom { opacity: 0; transition: opacity var(--dur-2) var(--ease); }
.site-menu.is-active .site-menu__inner,
.site-menu.is-active .site-menu__bottom { opacity: 1; transition: opacity var(--dur-2) var(--ease) .2s; }

.site-menu__inner { display: flex; align-items: flex-start; width: 100%; }
.site-menu a { color: var(--c-ink); }
.site-menu__nav-list a, .site-menu__sub-list a { transition: opacity var(--dur-1) var(--ease); }
.site-menu__nav-list a:hover, .site-menu__sub-list a:hover { opacity: .6; }

/* Column 1: big links */
.site-menu__nav { flex-shrink: 0; width: calc(3 * var(--column-and-gutter-unit)); margin-right: var(--column-and-gutter-unit); }
.site-menu__nav-list--desktop > li { margin-bottom: 8px; }
.site-menu__nav-list--desktop a { display: block; }
.site-menu__nav-list--mob, .site-menu__sub-list--mob { display: none; }

/* Column 2: secondary links */
.site-menu__sub-nav { flex-shrink: 0; width: calc(2 * var(--column-and-gutter-unit)); }
.site-menu__sub-list > li { margin-bottom: 16px; }
.site-menu__sub-list a {
  display: block;
  font-size: calc(.42283vw + 21.88161px);
  font-weight: var(--fw-medium);
  line-height: .8;
  letter-spacing: var(--ls-heading);
}
@media (min-width: 1920px) { .site-menu__sub-list a { font-size: 30px; } }

/* Column 3: contact info + newsletter */
.site-menu__info {
  flex-shrink: 0;
  width: calc(3 * var(--column-and-gutter-unit) - var(--gutter-unit));
  margin-left: auto;
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  line-height: 2;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}
.site-menu__address { margin-bottom: 24px; }
.site-menu__address .site-menu__callback { display: inline; font-size: inherit; letter-spacing: inherit; text-transform: inherit; opacity: .4; transition: opacity var(--dur-1) var(--ease); }
.site-menu__address .site-menu__callback:hover { opacity: 1; }
.site-menu__callback-wrap { white-space: nowrap; }
@media (min-width: 991px) and (max-width: 1220px) {
  /* Too narrow for the phone and "Request a call" on one line (the column is
     ~218–268px): the button takes its own line and the separator is dropped. */
  .site-menu__callback-wrap { display: block; }
  .site-menu__sep { display: none; }
}
.site-menu__email { display: block; margin-bottom: 24px; }
.site-menu__email:hover, .site-menu__address a:hover { opacity: .6; }

/* Social circles (overlay menu) */
.social { display: flex; flex-wrap: wrap; align-items: center; }
.social__link { display: flex; align-items: center; justify-content: center; color: inherit; transition: opacity var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
.social--circles { margin-left: -8px; }
.social--circles .social__item { margin-left: 8px; }
.social--circles .social__link { width: 40px; height: 40px; border: 1px solid var(--c-line); border-radius: var(--r-round); }
.social--circles .social__link:hover { border-color: var(--c-ink); }
.social--circles .icon { width: 16px; height: 16px; }

/* Newsletter */
.newsletter-form__title {
  padding: 25px 0 10px;
  font-size: 15px;
  font-weight: var(--fw-bold);
  line-height: 18px;
  letter-spacing: var(--ls-caps-tight);
  text-transform: uppercase;
}
.newsletter-form .input { padding-bottom: 14px; text-transform: none; letter-spacing: 0; }
.newsletter-form .input__field { font-weight: var(--fw-medium); }
.newsletter-form .input__field::placeholder { color: var(--c-placeholder); }
.newsletter-form__btn { margin-top: 0; }
.newsletter-form__note { margin-top: 12px; font-size: var(--fs-12); line-height: 1.3; text-transform: none; letter-spacing: 0; font-weight: var(--fw-regular); }
.newsletter-form__note:empty { display: none; }

/* Decorative arc (≥991): a hairline circle drawn on open (01 §3.3). */
.site-menu__circle {
  position: absolute; z-index: 1;
  width: 230vh; height: 230vh;
  left: calc(var(--unit) + var(--column-and-gutter-unit) + 101.7vh - 115vh);
  top: calc(72vh + 101.7vh - 115vh);
  transform: rotate(-90deg);
  pointer-events: none;
}
.site-menu__circle svg { width: 100%; height: 100%; overflow: visible; }
/* Stroke width is in viewBox units (36 across 230vh) so the dash pattern stays
   in pathLength units; a non-scaling stroke would apply it in screen pixels. */
.site-menu__circle path {
  fill: none;
  stroke: var(--c-ink-10);
  stroke-width: .01;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray var(--dur-2) var(--ease-expo);
}
.site-menu.is-active .site-menu__circle path { stroke-dasharray: 100 100; transition: stroke-dasharray 2s var(--ease-expo); }

.site-menu__bottom { display: none; }

/* Page fades behind the open menu */
body.menu-active .site-main,
body.menu-active .site-footer,
body.menu-active .cookie,
body.menu-active .up { opacity: 0; pointer-events: none; }

/* --- Overlay menu ≤990: categories (left) + company links (right), contact row at the bottom (01 §3.5, §3.6) */
@media (max-width: 990px) {
  .site-menu__circle, .site-menu__info { display: none; }
  .site-menu__container {
    flex-direction: column; align-items: stretch;
    padding-top: var(--header-h);
  }
  .site-menu__inner { flex: 0 0 auto; padding-top: 48px; }
  .site-menu__nav, .site-menu__sub-nav { width: 50%; margin: 0; }
  .site-menu__nav { padding-right: 16px; }
  .site-menu__nav-list--desktop { display: none; }
  .site-menu__nav-list--mob { display: flex; flex-direction: column; gap: 26px; }
  .site-menu__nav-list--mob a {
    display: block;
    font-size: 15px; font-weight: var(--fw-medium); line-height: .8; letter-spacing: var(--ls-heading);
  }
  .site-menu__sub-list--mob { display: flex; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--c-line); }
  .site-menu__sub-list { display: flex; flex-direction: column; gap: 18px; }
  .site-menu__sub-list > li { margin-bottom: 0; }
  .site-menu__sub-list a { font-size: 15px; line-height: 1; letter-spacing: var(--ls-heading); }
  .site-menu__bottom {
    display: block;
    margin-top: auto;
    padding-top: 48px;
    padding-bottom: 4.5vh;
  }
  .site-menu__bottom .social { margin-bottom: 24px; }
  .site-menu__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 24px; border-top: 1px solid var(--c-line); }
  .site-menu__phone { font-size: 16px; font-weight: var(--fw-medium); line-height: 1; }
  .site-menu__contact .site-menu__callback { font-size: 14px; line-height: 1; opacity: .3; }
}
@media (max-width: 500px) {
  .site-menu__phone { font-size: 15px; }
}

/* ============================================================================
   MODALS: shared shell (01 §6, §7, §12)
   ============================================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear var(--dur-2);
}
.modal.modal--active { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.modal__overlay {
  position: absolute; inset: 0;
  background: var(--overlay-modal);
  opacity: 0;
  cursor: pointer;
  transition: opacity var(--dur-2) var(--ease-expo);
}
.modal--active .modal__overlay { opacity: 1; }
.modal__close { display: flex; align-items: center; justify-content: center; color: var(--c-ink); }
.modal__close .icon { width: 20px; height: 20px; }
.modal__close:hover { opacity: .6; }

/* --- Search panel (01 §6) */
.modal--search { z-index: var(--z-search); }
.modal--search .modal__container {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  padding-top: var(--header-h);
  background: var(--c-white);
  opacity: 0;
  transform: translate(-50%, 0);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.modal--search.modal--active .modal__container { opacity: 1; transform: translate(-50%, -50%); }
.modal--search .modal__close { position: absolute; top: calc(var(--header-h) + 16px); right: var(--unit); width: 20px; height: 20px; z-index: 1; }

.search-form {
  position: absolute;
  top: 50%; left: 50%;
  width: calc(6 * var(--column-and-gutter-unit) - var(--gutter-unit));
  min-width: 480px;
  transform: translate(-50%, -50%);
}
.search-form__field { position: relative; margin-bottom: 32px; }
.search-form .input__field {
  height: 45px;
  padding: 0 48px 16px 0;
  font-size: 24px;
  font-weight: var(--fw-bold);
  line-height: 29px;
  letter-spacing: var(--ls-heading);
}
.search-form .input__field::placeholder { color: var(--c-ink); }
.search-form .input__field::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-form__btn {
  position: absolute; top: 0; right: 16px;
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  opacity: 0; pointer-events: none;
  visibility: hidden; /* out of the tab order until there is a query */
  transition: opacity var(--dur-1) var(--ease), visibility 0s linear var(--dur-1);
}
.search-form__btn .icon { width: 24px; height: 24px; }
.search-form__field.input--filled .search-form__btn,
.search-form__field:has(.input__field:not(:placeholder-shown)) .search-form__btn { opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.search-form__tips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-form__tips .chip { letter-spacing: var(--ls-caps-chip); }
@media (max-width: 990px) {
  /* 32px tap target, same top/right; the 20px icon centres inside it. */
  .modal--search .modal__close { width: 32px; height: 32px; }
}
@media (max-width: 500px) {
  .modal--search .modal__close { right: 24px; }
  .search-form { width: 100%; min-width: 0; padding: 0 24px; }
  .search-form__field { margin-bottom: 24px; }
  .search-form .input__field { font-size: 18px; height: auto; padding-right: 32px; line-height: 1.2; }
  .search-form__btn { right: 8px; width: 16px; height: 16px; }
  .search-form__btn .icon { width: 16px; height: 16px; }
  .search-form__tips .chip { font-size: 10px; }
}

/* --- Aside panels: call-back and sign in (01 §7) */
.modal--aside .modal__overlay { background: var(--overlay-aside); }
.modal--aside .modal__container {
  position: relative;
  width: 40vw;
  height: 100%;
  margin-left: auto;
  background: var(--c-white);
  transform: translateX(101%);
  transition: transform var(--dur-2) var(--ease-expo);
}
.modal--aside.modal--left .modal__container { margin-left: 0; margin-right: auto; transform: translateX(-101%); }
.modal--aside.modal--active .modal__container { transform: none; }
@media (min-width: 1501px) { .modal--aside .modal__container { width: 33vw; } }
.modal__close--desktop {
  position: absolute;
  top: 48px;
  right: calc(100% + 48px);
  width: 20px; height: 20px;
  color: var(--c-white);
  opacity: 0;
  transition: opacity var(--dur-1) var(--ease);
}
.modal--left .modal__close--desktop { right: auto; left: calc(100% + 48px); }
.modal--active .modal__close--desktop { opacity: 1; }
.modal__close--mobile { display: none; }
.modal__content {
  position: absolute; inset: 0;
  overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain;
}
@media (max-width: 990px) {
  .modal--aside { top: var(--header-h); height: calc(100% - var(--header-h)); }
  .modal--aside .modal__container { width: 100%; }
  .modal__close--desktop { display: none; }
  .modal__close--mobile {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; margin: var(--unit) 0 0 var(--unit); /* 24px ≤500, 32px @768, as the reference */
    color: var(--c-black);
  }
  .modal__close--mobile .icon { width: 24px; height: 24px; transform: rotate(90deg); }
}

/* Panel form (call-back, sign in) */
.panel-form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 100px clamp(24px, calc(10.2128vw - 27.06px), 120px) 80px;
  border-top: 8px solid var(--c-sage);
}
.panel-form__title {
  font-size: 24px;
  font-weight: var(--fw-bold);
  line-height: 1.6;
  letter-spacing: 0;
  text-align: center;
}
.panel-form__title--lg { font-size: 30px; font-weight: var(--fw-medium); }
.panel-form__body { margin: 80px 0; }
.panel-form__body > .input, .panel-form__body > .btn:not(:last-child) { margin-bottom: 32px; }
.panel-form__body .btn { width: 100%; }
.panel-form .input__tip-link { color: var(--c-ink); }
.panel-form__consent { margin-top: 15px; font-size: 14px; line-height: 1; }
.panel-form__consent a { text-decoration: underline; text-underline-offset: 2px; }
.panel-form__alt { display: inline-block; }
.panel-form__error { margin-bottom: 24px; color: var(--c-red); font-size: var(--fs-14); line-height: var(--lh-ui); }
.panel-form__error:empty { display: none; }
/* Sign in: an empty footer the height of the call-back panel's social footer,
   so space-between centres the form block the same way (01 §7.3). */
.panel-form__footer--reserved { height: 90px; }
.panel-form__footer-text { margin-bottom: 16px; font-size: 16px; font-weight: var(--fw-medium); line-height: 1.1; text-align: center; }
.social-bar { display: flex; width: 100%; }
.social-bar__item { flex: 1; }
.social-bar__link {
  display: flex; align-items: center; justify-content: center;
  height: 40px;
  margin-left: -1px;
  border: 1px solid var(--c-line-input);
  transition: background-color var(--dur-1) var(--ease);
}
.social-bar__item:first-child .social-bar__link { margin-left: 0; border-radius: var(--r-md) 0 0 var(--r-md); }
.social-bar__item:last-child .social-bar__link { border-radius: 0 var(--r-md) var(--r-md) 0; }
.social-bar__link:hover { background: var(--c-surface-150); }
.social-bar .icon { width: 16px; height: 16px; }
/* Honeypot */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 990px) {
  .panel-form { justify-content: flex-start; padding: 50px 24px 45px; border-top: 0; }
  /* Title → first field 110px, as the reference (its head adds 30px here). Set on
     the body's top margin: the call-back title sits in a block wrapper where a
     title margin would collapse into the body's 80px. */
  .panel-form__body { margin-top: 110px; }
  .panel-form__footer { margin-top: 100px; }
  .panel-form__footer--reserved { display: none; }
}
@media (min-width: 501px) and (max-width: 990px) {
  .panel-form { padding-left: clamp(24px, calc(10.2128vw - 27.06px), 120px); padding-right: clamp(24px, calc(10.2128vw - 27.06px), 120px); }
}
@media (max-width: 500px) {
  .panel-form__footer-text { font-size: 14px; }
}

/* ============================================================================
   BREADCRUMBS (01 §5)
   ============================================================================ */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-top: var(--crumbs-pt);
  margin-bottom: var(--crumbs-mb);
  font-size: var(--fs-10);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: var(--ls-caps-tight);
  text-transform: uppercase;
  color: var(--c-ink-30);
}
.crumbs > li { display: flex; align-items: center; }
.crumbs > li + li { margin-left: 8px; }
.crumbs__dot, .crumbs__delimeter {
  flex-shrink: 0;
  width: 3px; height: 3px;
  margin-right: 8px;
  border-radius: 4px;
  background: var(--c-crumb-dot);
}
.crumbs > li:first-child .crumbs__dot { display: none; }
.crumbs__link { color: inherit; transition: color var(--dur-1) var(--ease); }
a.crumbs__link:hover { color: var(--c-ink); }
.crumbs__more {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 14px;
  border: 1px solid var(--c-line-black-10);
  border-radius: var(--r-sm);
  color: var(--c-ink);
}
.crumbs__more .icon { width: 12px; height: 12px; opacity: .3; }
.crumbs.is-collapsed .crumbs__item--mid { display: none; }
.crumbs:not(.is-collapsed) .crumbs__item--more { display: none; }
.crumbs--white, .crumbs.color--white { color: var(--c-white); }
.crumbs--white .crumbs__dot, .crumbs.color--white .crumbs__dot { background: var(--c-white); }
.crumbs--white .crumbs__more, .crumbs.color--white .crumbs__more { border-color: rgba(255, 255, 255, .4); color: var(--c-white); }
@media (max-width: 500px) {
  .crumbs > li { margin-bottom: 5px; }
}

/* ============================================================================
   FOOTER (01 §8)
   ============================================================================ */
.site-footer {
  position: relative;
  padding: var(--footer-pt) 0 var(--footer-pb);
  background: var(--c-black);
  color: var(--c-white);
}
.site-footer a { color: var(--c-white); }
.site-footer__inner { display: flex; align-items: flex-start; margin-bottom: 80px; }
.site-footer__info { flex-shrink: 0; }
.site-footer__logo { display: block; width: max-content; margin-bottom: 56px; color: var(--c-white); }
.site-footer__logo .logo { height: 24px; width: calc(24px * 6.6035); }
.site-footer__info-block p { margin: 0; }
.site-footer__info-block {
  margin-bottom: 24px;
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  line-height: 2;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}
.site-footer__gap { height: 24px; }
.site-footer__email { display: block; margin-top: 123px; line-height: 1; } /* 01 §8.2: 123px below the info block */
.site-footer__info-block a:hover, .site-footer__email:hover { opacity: .6; }

.site-footer__nav { display: flex; margin-left: auto; }
.site-footer__col {
  width: calc(2 * var(--column-and-gutter-unit));
  padding-right: var(--gutter-unit);
}
.site-footer__col:last-child { width: calc(2 * var(--column-and-gutter-unit) - var(--gutter-unit)); padding-right: 0; }
@media (max-width: 1500px) {
  /* Every column, the last included, is 10em plus one gutter (01 §8.2). */
  .site-footer__col, .site-footer__col:last-child { width: calc(10em + var(--gutter-unit)); padding-right: var(--gutter-unit); }
}
.site-footer__nav-title { margin-bottom: 24px; }
.site-footer__links { opacity: .4; }
.site-footer__links > li { margin-bottom: 16px; }
.site-footer__links a {
  display: block;
  max-width: 10em;
  font-size: 16px;
  line-height: 1.125;
  transition: opacity var(--dur-1) var(--ease);
}
.site-footer__links:hover { opacity: 1; }
.site-footer__links:hover a { opacity: .4; }
.site-footer__links:hover a:hover { opacity: 1; }

.site-footer__copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 72px;
  border-top: 1px solid var(--c-line-footer);
}
.site-footer__copyright .social { margin-left: -24px; }
.site-footer__copyright .social__item { margin-left: 24px; }
.site-footer__copyright .social__link { height: 16px; }
.site-footer__copyright .social__link:hover { opacity: .6; }
.site-footer__copyright .icon { width: 16px; height: 16px; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 40px; }
.site-footer__copyright-text { opacity: .4; }
.site-footer__legal-link { color: inherit; opacity: .4; transition: opacity var(--dur-1) var(--ease); }
.site-footer__legal-link:hover { opacity: 1; }
.site-footer .accordion-list { display: none; }

/* --- Footer ≤990: centred logo, accordions, stacked bottom bar (01 §8.3) */
@media (max-width: 990px) {
  .site-footer__inner { flex-direction: column; align-items: stretch; margin-bottom: 0; }
  .site-footer__info { display: contents; }
  .site-footer__logo { order: 1; align-self: center; margin-bottom: 24px; }
  .site-footer__logo .logo { height: 26px; width: calc(26px * 6.6035); }
  .site-footer .accordion-list { display: block; order: 2; margin-bottom: 24px; }
  .site-footer__info-block { order: 3; }
  .site-footer__info-block > * { opacity: .4; }
  .site-footer__info-block > .site-footer__city { opacity: 1; }
  .site-footer__email { order: 4; opacity: .4; margin-top: 104px; margin-bottom: 48px; }
  .site-footer__nav { display: none; }
  .site-footer__copyright { flex-direction: column; align-items: flex-start; padding-top: 0; border-top: 0; }
  .site-footer__copyright .social { margin-bottom: 24px; }
  .site-footer__legal { width: 100%; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--c-line-footer); }
}

/* Accordion (footer ≤990; reusable) */
.accordion { position: relative; border-top: 1px solid var(--c-line-footer); }
.accordion:last-child { border-bottom: 1px solid var(--c-line-footer); }
.accordion__btn {
  position: relative;
  display: flex; align-items: center;
  width: 100%; min-height: 56px;
  padding: 22px 32px 22px 0;
  color: inherit;
  text-align: left;
}
.accordion__btn .icon { position: absolute; right: 16px; top: 50%; width: 9px; height: 6px; margin-top: -3px; transition: transform var(--dur-1) var(--ease); }
.accordion.is-open .accordion__btn .icon { transform: rotate(-180deg); }
/* Collapsed panels are also visibility:hidden, so their links leave the tab
   order and the accessibility tree; it flips after the close animation. */
.accordion__content { max-height: 0; overflow: hidden; visibility: hidden; transition: max-height var(--dur-1) var(--ease), visibility 0s linear var(--dur-1); }
.accordion.is-open .accordion__content { max-height: var(--acc-max-height, 1000px); visibility: visible; transition-delay: 0s; }
.accordion__content-inner { padding: 24px 0; }
.accordion__content-inner li { margin-bottom: 16px; }
.accordion__content-inner li:last-child { margin-bottom: 0; }
.accordion__content-inner a { display: block; font-size: 16px; line-height: 1.18; opacity: .4; transition: opacity var(--dur-1) var(--ease); }
.accordion__content-inner a:hover { opacity: 1; }

/* ============================================================================
   COOKIE BAR (01 §9) — Accept and Reject (UK PECR)
   ============================================================================ */
.cookie {
  position: fixed;
  left: 10vw;
  bottom: 48px;
  z-index: var(--z-cookie);
  display: flex;
  align-items: center;
  max-width: calc(80vw);
  padding: 16px 24px;
  border-radius: var(--r-md);
  background: var(--c-cookie);
  color: var(--c-white);
  font-size: 16px;
  line-height: 1.6;
  transition: opacity var(--dur-2) var(--ease);
}
.cookie__text a { position: relative; color: var(--c-white); }
.cookie__text a::before { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--c-white); }
.cookie__actions { display: flex; align-items: center; gap: 24px; margin-left: 40px; flex-shrink: 0; }
.cookie__btn { font-size: 16px; font-weight: var(--fw-medium); line-height: 1.6; color: var(--c-white); white-space: nowrap; transition: opacity var(--dur-1) var(--ease); }
.cookie__btn:hover { opacity: .6; }
/* Accept and Reject carry equal weight (UK PECR / ICO guidance): same size, weight and opacity. */
.cookie :focus-visible { outline-color: var(--c-white); }
@media (max-width: 767px) {
  .cookie {
    left: 0; bottom: 0;
    width: 100%; max-width: none;
    padding: 16px;
    justify-content: space-between;
    font-size: 14px;
  }
  .cookie__actions { margin-left: 24px; flex-direction: column; align-items: flex-end; gap: 4px; }
  .cookie__btn { font-size: 14px; }
}

/* ============================================================================
   BACK TO TOP (01 §10)
   ============================================================================ */
.up {
  position: fixed;
  left: 50px;
  bottom: 50px;
  z-index: var(--z-backtop);
  display: flex; align-items: center; justify-content: center;
  width: var(--backtop-size); height: var(--backtop-size);
  border-radius: var(--r-round);
  background: var(--c-surface-200);
  color: var(--c-ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity var(--dur-2), transform var(--dur-2), background-color var(--dur-2);
}
.up.is-active { opacity: 1; pointer-events: auto; transform: none; }
.up:hover { background: var(--c-surface-hover); }
.up .icon { width: 12px; height: 20px; }
@media (max-width: 990px) { .up { display: none; } }

/* ============================================================================
   Reduced motion: keep the state changes, drop the movement.
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  html.js .site-header--transparent > .container { transform: none; }
  .site-menu__bg { transition: none; }
  .modal--search .modal__container { transform: translate(-50%, -50%); }
  body.movable-active .site-header, body.movable-active .site-main { transform: none; }
  .modal--aside .modal__container { transition: none; }
  .up { transform: none; }
}
