/* Newbridge Accident Repair Centre */

/* Self-hosted Latin subsets of Oxanium and Sarabun (SIL Open Font License, see assets/fonts). */
@font-face { font-family: "Oxanium"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/oxanium-600.woff2") format("woff2"); }
@font-face { font-family: "Sarabun"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/sarabun-400.woff2") format("woff2"); }
@font-face { font-family: "Sarabun"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/sarabun-600.woff2") format("woff2"); }

:root {
  --red: #ee302c;
  --black: #000;
  --dark: #161616;
  --ink: #000;
  --light: #eee;
  --grey: #9a9a9a;
  --text: #7b7b7b;
  --line: #e1e1e1;
  --tint: #f3f3f3;
  --chip: rgba(209, 209, 209, 0.25);
  --heading: "Oxanium", "Arial Narrow", sans-serif;
  --body: "Sarabun", "Helvetica Neue", Arial, sans-serif;
  --container: 1100px;
  --header-h: 94px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--grey);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}
body.is-dark { background: var(--black); }

img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease-out; }
p { margin: 10px 0; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  word-wrap: break-word;
}
h1, .h1 { font-size: 100px; line-height: 1; letter-spacing: -0.05em; }
h2, .h2 { font-size: 45px; line-height: 1.0667; letter-spacing: normal; }
h3 { font-size: 30px; line-height: 1.2; }
h4 { font-size: 20px; line-height: 1.2; letter-spacing: 0.015em; }
h5 { font-size: 13px; line-height: 1.54; letter-spacing: 0.05em; }
h6 { font-size: 13px; line-height: 1.46; }
.h1, .h2, .h3, .h4 { margin: 0; font-family: var(--heading); font-weight: 600; text-transform: uppercase; color: var(--ink); }
.h3 { font-size: 30px; line-height: 1.2; }
.h5 { margin: 0; font-family: var(--heading); font-size: 13px; font-style: normal; font-weight: 600; line-height: 1.54; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.h4 { font-size: 20px; line-height: 1.2; letter-spacing: 0.015em; }

.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: 1000; padding: 12px 18px; background: var(--red); color: #fff; font-family: var(--heading); font-size: 13px; text-transform: uppercase; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: var(--container); margin: 0 auto; }
@media (min-width: 1441px) { :root { --container: 1400px; } }
@media (max-width: 1200px) { :root { --container: 960px; } }
@media (max-width: 1024px) { :root { --container: 86%; } }

/* ------------------------------------------------------------------ buttons */
.btn {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  padding: 25px 49px 21px 46px;
  background: var(--chip);
  color: var(--ink);
  font-family: var(--heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--red);
  z-index: -1;
  transition: width 0.4s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { width: 100%; }
.btn:hover, .btn:focus-visible { color: #fff; }
.btn__plus { position: relative; width: 14px; height: 14px; margin-right: 13px; flex-shrink: 0; }
.btn__plus::before, .btn__plus::after { content: ""; position: absolute; background: currentColor; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.btn__plus::before { left: 6px; top: 0; width: 2px; height: 14px; }
.btn__plus::after { left: 0; top: 6px; width: 14px; height: 2px; }
.btn:hover .btn__plus::before { transform: rotate(90deg); }
.btn--light { color: #fff; }
.btn--icon { padding: 0; width: 152px; height: 88px; justify-content: center; color: #fff; }
.btn--icon svg { fill: currentColor; transition: transform 0.4s var(--ease); }
.btn--icon:hover svg { transform: translateX(6px); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: relative;
  z-index: 50;
  height: var(--header-h);
  background: #fff;
}
.site-header--overlay { position: absolute; inset: 0 0 auto; background: transparent; }
.site-header.is-stuck {
  position: fixed;
  inset: 0 0 auto;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  animation: header-in 0.35s var(--ease);
}
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 50px;
}
.logo { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.logo img { width: 118px; height: auto; }
.logo .logo--light { display: none; }
.site-header--overlay:not(.is-stuck) .logo .logo--dark { display: none; }
.site-header--overlay:not(.is-stuck) .logo .logo--light { display: block; }

.nav { height: 100%; }
.nav__list { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; display: flex; align-items: center; padding: 0 32px; }
.nav__item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease);
}
.nav__item:hover::before, .nav__item:focus-within::before, .nav__item.is-current::before { transform: none; }
.nav__item.is-ancestor { background: var(--tint); }
.nav__link {
  color: var(--ink);
  font-family: var(--heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.53;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.site-header--overlay:not(.is-stuck) .nav__link { color: #fff; }
.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 243px;
  margin: 0;
  padding: 22px 0;
  list-style: none;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a {
  display: block;
  padding: 6px 32px;
  color: var(--grey);
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav__sub a:hover, .nav__sub a[aria-current] { color: var(--ink); }

.burger {
  position: relative;
  width: 26px;
  height: 18px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.burger span { position: absolute; right: 0; height: 2px; background: currentColor; transition: width 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 2px; width: 26px; }
.burger span:nth-child(2) { top: 8px; width: 26px; }
.burger span:nth-child(3) { top: 14px; width: 16px; }
.burger:hover span:nth-child(3) { width: 26px; }
.site-header--overlay:not(.is-stuck) .burger { color: #fff; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { width: 26px; transform: translateY(-6px) rotate(-45deg); }

.mobile-nav, .mobile-toggle { display: none; }

/* ------------------------------------------------------------------ side panel */
.side-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 200;
  width: 490px;
  max-width: 100%;
  padding: 120px 80px 60px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
.side-panel.is-open { transform: none; visibility: visible; }
.side-panel__close { position: absolute; top: 38px; right: 50px; width: 26px; height: 26px; padding: 0; background: none; border: 0; cursor: pointer; }
.side-panel__close::before, .side-panel__close::after { content: ""; position: absolute; top: 12px; left: -2px; width: 30px; height: 2px; background: var(--ink); }
.side-panel__close::before { transform: rotate(45deg); }
.side-panel__close::after { transform: rotate(-45deg); }
.side-panel img { width: 150px; margin-bottom: 18px; }
.side-panel p { margin: 15px 0 0; }
.side-panel .h3 { margin: 6px 0 10px; }
.side-panel .h3 a:hover { color: var(--red); }
.overlay { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, 0.3); opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s; }
.overlay.is-open { opacity: 1; visibility: visible; }

/* ------------------------------------------------------------------ hero slider */
.hero {
  position: relative;
  height: 900px;
  overflow: hidden;
  background: var(--black);
  color: #fff;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 60%); }
.hero__content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(calc((100% - 1240px) / 2 + 131px), 7%);
  margin-top: -40px;
  transform: translateY(-50%);
}
.hero__slide:first-child .hero__content { top: 40.9%; left: max(calc((100% - 1240px) / 2 + 17px), 7%); margin-top: 0; transform: none; }
.hero__title { margin: 0; color: #fff; font-family: var(--heading); font-size: 65px; font-weight: 600; line-height: 55px; text-transform: uppercase; max-width: 640px; }
.hero__title--xl { max-width: none; font-size: 155px; line-height: 131px; white-space: nowrap; }
.hero__title--xl small { display: block; margin-top: -13px; font-size: 100px; line-height: 131px; }
.hero .btn { width: 216px; margin-top: 50px; color: #fff; }
.hero__slide:first-child .btn { margin-top: 34px; }
.hero__content > * { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; transition-delay: 0.2s; }
.hero__slide.is-active .hero__content > .btn { transition-delay: 0.4s; }

.hero__arrows { position: absolute; z-index: 3; left: 30px; bottom: 50px; display: flex; gap: 4px; }
.hero__arrow { width: 66px; height: 64px; padding: 0; background: none; border: 0; color: #fff; cursor: pointer; }
.hero__arrow svg { fill: currentColor; transition: transform 0.3s var(--ease); }
.hero__arrow--next svg { transform: scaleX(-1); }
.hero__arrow--prev:hover svg { transform: translateX(-4px); }
.hero__arrow--next:hover svg { transform: scaleX(-1) translateX(-4px); }
.hero__dots { position: absolute; z-index: 3; right: 130px; bottom: 50px; display: flex; align-items: flex-end; gap: 12px; }
.hero__dot {
  padding: 4px 6px;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: font-size 0.3s var(--ease), opacity 0.3s;
}
.hero__dot[aria-current="true"] { font-size: 30px; opacity: 1; }

@media (max-width: 1240px) {
  .hero { height: 768px; }
  .hero__title--xl { font-size: 100px; line-height: 100px; }
  .hero__title--xl small { font-size: 50px; line-height: 70px; }
  .hero__title { font-size: 50px; line-height: 55px; }
}
@media (max-width: 1024px) {
  .hero__arrows { display: none; }
  .hero__dots { right: 7%; }
}
@media (max-width: 680px) {
  .hero { height: 560px; }
  .hero__content { left: 7%; right: 7%; }
  .hero__title--xl { font-size: 64px; line-height: 64px; }
  .hero__title--xl small { font-size: 34px; line-height: 44px; }
  .hero__title { font-size: 40px; line-height: 44px; }
  .hero .btn { margin-top: 32px; }
  .hero__dots { bottom: 30px; }
}

/* ------------------------------------------------------------------ page title */
.page-title { height: 390px; background: var(--tint); }
.page-title--compact { height: 111px; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 41px 0 0;
  list-style: none;
  color: var(--grey);
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 25px;
  text-transform: uppercase;
}
.breadcrumbs li + li::before { content: ""; display: inline-block; width: 2px; height: 12px; margin: 0 15px; background: var(--red); vertical-align: -1px; }
.breadcrumbs a:hover { color: var(--ink); }
.page-title h1 { margin-top: 81px; }

@media (max-width: 1024px) {
  .page-title { height: auto; padding-bottom: 80px; }
  .page-title--compact { padding-bottom: 40px; }
  .page-title h1 { margin-top: 60px; font-size: 80px; }
}
@media (max-width: 680px) {
  .page-title h1 { margin-top: 40px; font-size: 60px; }
}

/* ------------------------------------------------------------------ sections */
/* Page title over the banner photo, with a fade so the text stays readable */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 460px;
  aspect-ratio: 1920 / 700;
  overflow: hidden;
  background: var(--dark);
}
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.5) 42%, rgba(0, 0, 0, 0.08) 80%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 60%);
}
.page-hero__content { position: relative; z-index: 2; width: var(--container); padding: 60px 0 76px; }
.page-hero .breadcrumbs { padding-top: 0; color: rgba(255, 255, 255, 0.78); }
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero h1 { margin-top: 26px; color: #fff; }
.page-hero--long h1 { max-width: 900px; font-size: 64px; line-height: 1.05; letter-spacing: -0.03em; }
@media (max-width: 1024px) {
  .page-hero { min-height: 400px; }
  .page-hero h1 { font-size: 80px; }
  .page-hero--long h1 { font-size: 44px; }
}
@media (max-width: 680px) {
  .page-hero { min-height: 330px; aspect-ratio: auto; }
  .page-hero__content { padding: 40px 0 44px; }
  .page-hero h1 { margin-top: 20px; font-size: 52px; }
  .page-hero--long h1 { font-size: 34px; letter-spacing: -0.02em; }
}

.intro { display: grid; grid-template-columns: 34% 66%; padding: 155px 0 0; }
.intro--flush { padding-top: 0; }
.intro__text { max-width: 566px; color: var(--text); }
.intro__text p:first-child { margin-top: 10px; }
.welcome { margin-top: 6px; padding: 144px 0; background: #fff; }
.welcome .intro__heading { max-width: 305px; }
.split + .intro, .intro + .intro { padding-top: 155px; }

@media (max-width: 1024px) {
  .intro { grid-template-columns: 1fr; gap: 30px; padding-top: 100px; }
  .welcome { padding: 100px 0; }
  .split + .intro, .intro + .intro { padding-top: 100px; }
}

/* Image with an overlapping frosted panel ("image section info") */
.split { position: relative; margin-top: 155px; }
.page-hero + .split { margin-top: 144px; }
.split--loose { margin-top: 166px; }
.split__media { width: 62%; margin-left: -10.42%; }
.split__media img { width: 100%; aspect-ratio: 1180 / 649; object-fit: cover; }
.split__panel {
  position: absolute;
  top: 50%;
  right: 13.4%;
  width: 41.409%;
  padding: 98px 36px 98px 89px;
  color: var(--grey);
  background-color: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(10px) brightness(0.25);
  backdrop-filter: blur(10px) brightness(0.25);
  transform: translateY(-50%);
}
@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .split__panel { background-color: rgba(92, 92, 92, 0.13); }
}
.split__panel h2 { color: var(--light); }
.split__panel .split__text { margin-top: 20px; }
.split__text p:first-child { margin-top: 0; }
.split__text p:last-child { margin-bottom: 0; }
.split__panel .btn { margin-top: 40px; color: #fff; }
.split__panel::before, .split__panel::after, .split__corners::before, .split__corners::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--red);
}
.split__corners { position: absolute; inset: 0; pointer-events: none; }
.split__panel::before { top: -12px; left: -12px; }
.split__panel::after { top: -12px; right: -12px; }
.split__corners::before { bottom: -12px; left: -12px; }
.split__corners::after { bottom: -12px; right: -12px; }

@media (min-width: 1025px) and (max-width: 1440px) {
  .split__panel { padding: 7.4% 4% 7.4% 6%; }
}
@media (max-width: 1024px) {
  .split, .page-hero + .split, .split--loose { margin-top: 100px; }
  .split__panel { right: 6.3%; width: 50%; padding: 50px 40px; }
}
@media (max-width: 768px) {
  .split__media { width: 100%; margin-left: 0; }
  .split__panel { position: relative; top: auto; right: auto; width: auto; margin: -40px 7% 0; transform: none; padding: 55px 32px 60px; background-color: #2b2b2b; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* "What we do" interactive list */
.services { padding: 160px 0 135px; background: var(--black); }
.services .container { position: relative; display: flex; justify-content: space-between; }
.services__tagline { position: absolute; top: 0; left: 0; margin: 0; color: var(--grey); font-size: 13px; }
.services__list { display: flex; flex-direction: column; align-items: flex-start; margin: 36px 100px 0 0; padding: 0; list-style: none; }
.services__item {
  position: relative;
  display: inline-block;
  margin: -1px 0;
  padding: 0 6px 5px;
  color: transparent;
  font-family: var(--heading);
  font-size: 100px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-text-stroke: 2px #333;
}
.services__item span { position: absolute; top: 0; left: 6px; color: var(--light); -webkit-text-stroke-width: 0; clip-path: inset(0 100% 0 0); transition: clip-path 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.services__item.is-active span { clip-path: inset(0 0 0 0); }
.services__panels { position: relative; flex: 0 0 210px; margin-top: 16px; }
.services__panel { position: absolute; top: 0; left: 0; width: 210px; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s; }
.services__panel.is-active { opacity: 1; visibility: visible; z-index: 1; }
.services__panel .h4 { margin: 25px 0 16px; color: var(--light); }
.services__panel p { margin: 5px 0; }
.services__panel .btn { margin-top: 33px; color: #fff; }

@media (min-width: 1441px) { .services__list { margin-right: 236px; } }
@media (max-width: 1024px) {
  .services { padding: 120px 0 100px; }
  .services .container { flex-direction: column; }
  .services__item { font-size: 60px; white-space: normal; }
  .services__panels { flex-basis: auto; margin-top: 20px; }
  .services__panel { width: 100%; max-width: 480px; }
  .services__panel.is-active { position: relative; }
}
@media (max-width: 480px) { .services__item { font-size: 44px; } }

/* Full-width photo with video play button */
.video { position: relative; }
.video img { width: 100%; aspect-ratio: 1920 / 840; object-fit: cover; }
.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 66px;
  height: 64px;
  padding: 0;
  background: var(--chip);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 0;
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
}
.video__play::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--red); z-index: -1; transition: width 0.4s var(--ease); }
.video__play:hover::after { width: 100%; }
.video__play svg { fill: currentColor; margin-left: 4px; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 5vw; background: rgba(0, 0, 0, 0.9); }
.lightbox[hidden] { display: none; }
.lightbox__frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox__close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.lightbox__close::before, .lightbox__close::after { content: ""; position: absolute; top: 21px; left: 6px; width: 32px; height: 2px; background: #fff; }
.lightbox__close::before { transform: rotate(45deg); }
.lightbox__close::after { transform: rotate(-45deg); }

/* Dark call to action */
.cta { padding: 146px 0 160px; background: var(--dark); }
.cta .container { display: grid; grid-template-columns: 1fr 1fr; padding-top: 74px; }
.cta h2 { max-width: 490px; color: var(--light); }
.cta p { max-width: 462px; margin-top: 2px; }
.cta .btn { margin-top: 48px; }
@media (max-width: 1024px) {
  .cta { padding: 100px 0; }
  .cta .container { grid-template-columns: 1fr; gap: 30px; padding-top: 0; }
}

/* ------------------------------------------------------------------ about: history */
.history { padding: 150px 0 330px; }
@media (min-width: 769px) { main > .history:last-child { padding-bottom: 150px; } } /* the white footer follows */
.history h2 { margin-bottom: 160px; }
.timeline { max-width: 1023px; }
.timeline details { padding-bottom: 21px; border-bottom: 4px solid var(--line); }
.timeline summary {
  display: grid;
  grid-template-columns: 327px 1fr 64px;
  align-items: center;
  padding: 25px 0 4px;
  list-style: none;
  cursor: pointer;
}
.timeline summary::-webkit-details-marker { display: none; }
.timeline__year { padding-right: 20px; }
.timeline__text { display: block; }
.timeline__toggle { position: relative; width: 64px; height: 64px; background: var(--chip); transition: background-color 0.3s; }
.timeline__toggle::before, .timeline__toggle::after { content: ""; position: absolute; top: 31px; left: 25px; width: 14px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), background-color 0.3s; }
.timeline__toggle::after { transform: rotate(90deg); }
.timeline details[open] .timeline__toggle, .timeline summary:hover .timeline__toggle { background: var(--red); }
.timeline details[open] .timeline__toggle::before, .timeline details[open] .timeline__toggle::after,
.timeline summary:hover .timeline__toggle::before, .timeline summary:hover .timeline__toggle::after { background: #fff; }
.timeline details[open] .timeline__toggle::after { transform: rotate(0); }
.timeline__body { padding: 25px 40px 21px 327px; }
.timeline__body img { width: 500px; aspect-ratio: 2 / 1; object-fit: cover; }
@media (max-width: 1024px) { .history h2 { margin-bottom: 60px; } }
@media (max-width: 768px) {
  .history { padding: 100px 0 120px; }
  .timeline summary { grid-template-columns: 1fr 48px; gap: 10px 0; padding-bottom: 20px; }
  .timeline__text { grid-column: 1 / -1; grid-row: 2; }
  .timeline summary .timeline__toggle { grid-column: 2; grid-row: 1; width: 48px; height: 48px; }
  .timeline__toggle::before, .timeline__toggle::after { top: 23px; left: 17px; }
  .timeline__body { padding: 0 0 30px; }
}

/* ------------------------------------------------------------------ contact */
.contact-intro { padding: 144px 0 0; }
.contact-intro p { max-width: 847px; margin: 17px 0 0; color: var(--text); }
.centre { display: grid; grid-template-columns: 1fr 1fr; padding-top: 72px; }
.centre:last-of-type { padding-bottom: 72px; }
.centre__details { align-self: center; }
.centre__details > p { margin: 0 0 10px; color: var(--text); }
.centre__details .h2 { margin: 0; }
.centre__details .h2 a:hover { color: var(--red); }
.centre__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; max-width: 495px; margin-top: 45px; }
.centre__meta p { margin: 0 0 10px; color: var(--text); }
.centre__meta .h5 { overflow-wrap: break-word; }
.centre__meta .h5 a:hover { color: var(--red); }
.centre__map iframe { width: 424px; max-width: 100%; height: 450px; border: 0; }
@media (max-width: 1024px) {
  .centre { grid-template-columns: 1fr; gap: 40px; }
  .centre__map iframe { width: 100%; }
}
@media (max-width: 480px) { .centre__meta { grid-template-columns: 1fr; gap: 20px; } }

/* ------------------------------------------------------------------ quote form */
.quote { display: grid; grid-template-columns: 385px 1fr; padding: 160px 0; }
.quote h2 { align-self: start; max-width: 330px; }
.form { max-width: 715px; }
.form__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 30px; }
.field { display: block; margin-bottom: 55px; }
.field--upload { margin-bottom: 57px; }
.field--message { margin-bottom: 60px; }
.field__label {
  display: block;
  color: var(--ink);
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.53;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  height: 36px;
  padding: 5px 0;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  color: var(--grey);
  font-size: 17px;
  line-height: 24px;
  outline: 0;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239a9a9a'/%3E%3C/svg%3E") no-repeat right 4px center; cursor: pointer; }
.field textarea { height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }
.field__error { display: block; margin-top: 6px; color: var(--red); font-size: 13px; line-height: 1.3; }
.field__error:empty { display: none; }
.upload { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.upload input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.upload .btn { pointer-events: none; padding: 25px 50px 22px 46px; }
.upload input:focus-visible + .btn { outline: 2px solid var(--red); outline-offset: 3px; }
.upload__name { color: var(--text); font-size: 15px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 30px; padding: 16px 20px; border: 2px solid; font-size: 15px; }
.form__status[hidden] { display: none; }
.form__status.is-success { border-color: #46b450; color: #2e7d32; }
.form__status.is-error { border-color: #ffb900; color: var(--text); }
.form .btn[type="submit"] { padding: 28px 54px 24px 51px; }
.form.is-sending .btn[type="submit"] { opacity: 0.6; pointer-events: none; }
@media (max-width: 1024px) {
  .quote { grid-template-columns: 1fr; gap: 50px; padding: 100px 0; }
}
@media (max-width: 680px) { .form__row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ 404 */
.not-found { position: relative; display: grid; align-items: center; min-height: 660px; background: var(--black) url("/assets/images/404.jpg") center / cover no-repeat; }
.not-found::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1) 70%); }
.not-found .container { position: relative; padding: 120px 0; }
.not-found .breadcrumbs { margin-bottom: 30px; padding-top: 0; color: rgba(255, 255, 255, 0.78); }
.not-found .breadcrumbs a:hover { color: #fff; }
.not-found h1 { color: #fff; }
.not-found p { max-width: 460px; margin: 20px 0 40px; color: var(--light); }
.not-found .btn { color: #fff; }
@media (max-width: 680px) { .not-found { min-height: 520px; } }

/* ------------------------------------------------------------------ footer */
/* white footer: most pages end on the black "Questions" band; the rule separates it from pages that end on white */
.site-footer { color: var(--text); }
.footer-top { padding: 152px 0 130px; background: #fff; border-top: 1px solid var(--line); }
.footer-top .container { display: grid; grid-template-columns: 1fr repeat(3, 250px); column-gap: 40px; align-items: start; }
.footer-top img { width: 150px; }
.footer-top p { margin: 17px 0 6px; }
.footer-top .h3 { margin: 0; color: var(--ink); white-space: nowrap; }
.footer-top .h3 a:hover { color: var(--red); }
.footer-top .footer-top__reviews { margin: 8px 0 30px; font-size: 15px; }
.footer-top__reviews a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 0, 0, 0.25); }
.footer-top__reviews a:hover { color: var(--ink); text-decoration-color: var(--red); }
.footer-bottom { background: var(--tint); }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; min-height: 89px; }
.footer-bottom p { margin: 0; font-size: 12px; }
.footer-bottom a:hover, .footer-bottom__cookies:hover { color: var(--ink); }
.footer-bottom__cookies { padding: 0; background: none; border: 0; color: inherit; font-size: inherit; cursor: pointer; transition: color 0.2s ease-out; }
.social { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.social a { display: block; color: var(--ink); }
.social a:hover { color: var(--red); }
.social svg { display: block; width: 15px; height: 15px; fill: currentColor; }
@media (max-width: 1200px) {
  .footer-top .container { grid-template-columns: repeat(3, 1fr); gap: 0 30px; }
  .footer-top .footer-top__logo { grid-column: 1 / -1; margin-bottom: 20px; }
}
@media (max-width: 1024px) { .footer-top { padding: 100px 0; } }
@media (max-width: 900px) { .footer-top .h3 { font-size: 24px; } }
@media (max-width: 680px) {
  .footer-top .container { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column-reverse; justify-content: center; gap: 14px; padding: 24px 0; text-align: center; }
}

/* ------------------------------------------------------------------ back to top */
.to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  padding: 0;
  background: var(--chip);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 0;
  border-bottom: 6px solid var(--red);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease), color 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { fill: currentColor; }
.to-top.is-light { color: #fff; }
@media (max-width: 680px) { .to-top { right: 16px; bottom: 16px; width: 56px; height: 56px; } }

@media (prefers-reduced-motion: reduce) {
  .hero__slide, .hero__content > * { transition: none !important; }
}

/* ------------------------------------------------------------------ type scale on small screens */
@media (max-width: 768px) { h2, .h2 { font-size: 39px; } }
@media (max-width: 680px) { h1, .h1 { font-size: 60px; } h2, .h2 { font-size: 40px; } }
@media (max-width: 380px) { h2, .h2 { font-size: 34px; } }

/* ================================================================== pages built from content/ */

/* Menu: eight items with dropdowns, on one line from 1200px up; below that, the mobile menu */
@media (max-width: 1600px) { .nav__item { padding: 0 20px; } }
@media (max-width: 1440px) { .nav__item { padding: 0 16px; } }
@media (max-width: 1300px) {
  .site-header__inner { padding: 0 32px; }
  .nav__item { padding: 0 12px; }
  .nav__link { font-size: 14px; letter-spacing: 0.03em; }
}
.nav__item:nth-last-child(-n + 2) .nav__sub { left: auto; right: 0; }
.nav__sub li + li a { margin-top: 2px; }
@media (max-width: 1199px) {
  :root { --header-h: 70px; }
  .site-header, .site-header--overlay { position: relative; background: #fff; }
  .site-header__inner { padding: 0 7%; }
  .site-header .logo .logo--dark { display: block !important; }
  .site-header .logo .logo--light { display: none !important; }
  .logo img { width: 100px; }
  .site-header .burger { color: var(--ink) !important; }
  .nav, .site-header .side-toggle { display: none; }
  .mobile-toggle { display: block; }
  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    transition: max-height 0.4s var(--ease);
  }
  .mobile-nav.is-open { max-height: 80vh; overflow-y: auto; }
  .mobile-nav ul { margin: 0; padding: 20px 7% 26px; list-style: none; }
  .mobile-nav li { position: relative; }
  .mobile-nav a { display: block; padding: 12px 0; color: var(--ink); font-family: var(--heading); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
  .mobile-nav a[aria-current], .mobile-nav a:hover { color: var(--red); }
  .mobile-nav .mobile-nav__sub { padding: 0 0 0 18px; }
  .mobile-nav .mobile-nav__sub a { padding: 8px 0; color: var(--grey); }
  .mobile-nav .mobile-nav__sub a[aria-current], .mobile-nav .mobile-nav__sub a:hover { color: var(--red); }
}

/* Long H1s */
.page-title--long { height: auto; padding-bottom: 90px; }
.page-title--long h1 { max-width: 1100px; margin-top: 60px; font-size: 64px; line-height: 1.05; letter-spacing: -0.03em; }
.page-title__meta { display: flex; flex-wrap: wrap; gap: 0 12px; margin: 26px 0 0; color: var(--grey); font-family: var(--heading); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
@media (max-width: 1024px) {
  .page-title--long { padding-bottom: 70px; }
  .page-title--long h1 { margin-top: 44px; font-size: 44px; }
}
@media (max-width: 680px) {
  .page-title--long { padding-bottom: 50px; }
  .page-title--long h1 { margin-top: 32px; font-size: 34px; letter-spacing: -0.02em; }
}

/* Long-form body */
.prose-section { padding-top: 100px; }
.prose { max-width: 760px; color: var(--text); }
.prose__lead { color: var(--ink); font-size: 20px; line-height: 1.5; }
.prose p { margin: 0 0 16px; }
.prose h2 { margin: 70px 0 18px; font-size: 30px; line-height: 1.1; }
.prose h3 { margin: 40px 0 10px; font-size: 20px; line-height: 1.2; letter-spacing: 0.015em; }
.prose h2 + h3 { margin-top: 24px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin: 0 0 8px; padding-left: 4px; }
.prose ul { list-style: square; }
.prose ul li::marker { color: var(--red); }
.prose ol li::marker { color: var(--ink); font-family: var(--heading); font-weight: 600; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a, .history--faq .timeline__body a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.prose a:hover { color: var(--ink); text-decoration-color: #b8201d; }
.cta p a:hover { text-decoration-color: #fff; }
.prose__table { margin: 6px 0 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; }
.prose th, .prose td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { border-bottom-width: 2px; color: var(--ink); font-family: var(--heading); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 680px) {
  .prose-section { padding-top: 60px; }
  .prose__lead { font-size: 18px; }
  .prose h2 { margin-top: 50px; font-size: 24px; }
  .prose table { min-width: 520px; }
}

/* FAQ accordion on long pages (same markup as the history timeline) */
/* Questions: a full-width black band with white text, to break up the white pages */
.history--faq { margin-top: 120px; padding: 120px 0; background: var(--black); }
.history--faq h2, .history--faq .timeline__year, .history--faq .timeline__text { color: #fff; }
.history--faq h2 { margin-bottom: 60px; }
.history--faq .timeline details { border-bottom-color: rgba(255, 255, 255, 0.16); }
.history--faq .timeline__toggle::before, .history--faq .timeline__toggle::after { background: #fff; }
.history--faq .timeline__body { color: #c4c4c4; }
.history--faq .timeline__body p { margin: 0 0 12px; }
.history--faq .timeline__body strong, .history--faq .timeline__body a, .history--faq .timeline__body a:hover { color: #fff; }
.history--faq .timeline__body a:hover { text-decoration-color: #fff; }
.history--faq + .related { padding-top: 120px; }
@media (max-width: 768px) { .history--faq { margin-top: 80px; padding: 90px 0; } .history--faq + .related { padding-top: 80px; } }

/* Branch page: the centre block from the contact page */
.prose-section + .centre { padding-top: 100px; }

/* Town page: the branch that serves it */
.branch-card { margin-top: 100px; padding-top: 50px; border-top: 4px solid var(--line); }
.branch-card__label { margin: 0 0 8px; color: var(--grey); }
.branch-card__name { font-size: 30px; line-height: 1.1; }
.branch-card__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 240px)); gap: 20px 40px; margin: 30px 0 40px; }
.branch-card__grid p { margin: 0 0 10px; }
.branch-card__grid p:first-child { color: var(--text); }
.branch-card__grid a:hover { color: var(--red); }
@media (max-width: 680px) { .branch-card__grid { grid-template-columns: 1fr; } }

/* Article: related pages */
.related { padding-bottom: 120px; }
.related__list { max-width: 760px; margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.related__list li { border-bottom: 1px solid var(--line); }
.related__list a { display: block; padding: 18px 0; color: var(--ink); font-family: var(--heading); font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: 0.02em; text-transform: uppercase; }
.related__list a:hover { color: var(--red); }

/* Journal index: framed article cards */
.articles { padding: 100px 0 120px; }
.articles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 40px 0 0; padding: 0; list-style: none; }
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 36px 32px 42px;
  background: var(--tint);
  transition: background-color 0.3s;
}
.article-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--red); transition: width 0.4s var(--ease); }
.article-card:hover { background: #ebebeb; }
.article-card:hover::before { width: 10px; }
.article-card__title { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: 0.015em; }
.article-card__title a::after { content: ""; position: absolute; inset: 0; }
.article-card:hover .article-card__title a { color: var(--red); }
.article-card__title a:focus-visible { outline: 0; }
.article-card:focus-within { outline: 2px solid var(--red); outline-offset: 3px; }
.article-card__text { flex: 1; margin: 16px 0 26px; color: var(--text); font-size: 16px; }
.article-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--grey); font-family: var(--heading); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.article-card__more { display: inline-flex; align-items: center; color: var(--ink); }
.article-card__more .btn__plus { width: 12px; height: 12px; margin-right: 10px; }
.article-card__more .btn__plus::before { left: 5px; height: 12px; }
.article-card__more .btn__plus::after { top: 5px; width: 12px; }
.article-card:hover .btn__plus::before { transform: rotate(90deg); }
@media (max-width: 1200px) { .articles__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .articles { padding: 70px 0 90px; }
  .articles__grid { grid-template-columns: 1fr; gap: 20px; }
  .article-card { padding: 32px 26px 26px 32px; }
}

/* Panels with more than one button */
.split__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.split__panel .split__actions .btn { margin-top: 0; }

/* Footer: branch and town pages */
.footer-areas { display: grid; grid-template-columns: 1fr repeat(3, 250px); column-gap: 40px; margin-top: 40px; }
.footer-areas__label { margin: 0; }
.footer-areas__branch { margin: 0; color: var(--ink); font-family: var(--heading); font-size: 15px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-areas ul { margin: 6px 0 0; padding: 0; list-style: none; }
.footer-areas li { font-size: 15px; line-height: 1.8; }
.footer-areas a:hover { color: var(--red); }
@media (max-width: 1200px) {
  .footer-areas { grid-template-columns: repeat(3, 1fr); gap: 20px 30px; }
  .footer-areas__label { grid-column: 1 / -1; }
}
@media (max-width: 680px) { .footer-areas { grid-template-columns: 1fr; } }

/* Keeps the white menu readable over light parts of the hero photos */
.hero::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 160px; background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0)); pointer-events: none; }

/* Long single words ("Independent", "Newbridge") on narrow phones */
@media (max-width: 680px) { .split__panel h2 { font-size: 32px; } }
@media (max-width: 380px) { .split__panel h2 { font-size: 28px; } .page-hero h1 { font-size: 44px; } }

/* ------------------------------------------------------------------ cookie banner (built by site.js) */
.consent {
  position: fixed;
  left: 25px;
  bottom: 25px;
  z-index: 120;
  width: 560px;
  max-width: calc(100% - 50px);
  padding: 30px 34px 34px;
  background: var(--dark);
  border-bottom: 6px solid var(--red);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  color: var(--light);
  font-size: 15px;
}
.consent[hidden] { display: none; }
.consent__title { margin: 0 0 8px; color: #fff; font-family: var(--heading); font-size: 17px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.consent p { margin: 0; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.consent .btn { padding: 18px 30px 15px 26px; }
@media (max-width: 680px) {
  .consent { left: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 24px 22px 26px; }
  .consent__actions .btn { flex: 1 1 0; justify-content: center; padding-left: 18px; padding-right: 18px; }
}
