/*
Theme Name:  Ranch Trailers
Theme URI:   https://www.ranchtrailers.co.uk
Author:      Digital Source
Description: Ranch Trucks & Trailers Ltd - commercial vehicle body manufacturer, Bingham, Nottinghamshire. Modern industrial theme.
Version:     1.0.0
Text Domain: ranchtrailers
*/

/* ==========================================================================
   1. FONTS  (self-hosted, assets/fonts/barlow)
   ========================================================================== */

@font-face {
  font-family: 'Barlow';
  src: url('assets/fonts/barlow/barlow-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('assets/fonts/barlow/barlow-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('assets/fonts/barlow/barlow-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('assets/fonts/barlow/barlow-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/barlow/barlow-condensed-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/barlow/barlow-condensed-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ==========================================================================
   2. TOKENS
   ========================================================================== */

:root {
  /* Brand */
  --rt-navy:        #0D1F4C;
  --rt-navy-deep:   #071132;
  --rt-navy-soft:   #162E6B;
  --rt-blue:        #24499B;
  --rt-blue-dark:   #1B3877;

  /* Accent - hi-vis construction orange. Warmer/yellower than a red-orange so
     it sits with the brand blue. One token drives the whole site.
     Text ON the accent is --rt-navy-deep (6.9:1); white on it fails. */
  --rt-amber:       #FB8500;
  --rt-amber-dark:  #D96E00;
  --rt-amber-tint:  #FFF3E6;
  --rt-amber-on-navy: #FB8500;   /* clears 4.5:1 on navy unaided at this hue */

  /* Neutrals */
  --rt-cream:       #F6F3EC;
  --rt-white:       #FFFFFF;
  --rt-ink:         #111827;
  --rt-slate:       #4B5563;
  --rt-slate-light: #6B7280;
  --rt-line:        #E4E0D6;
  --rt-line-dark:   rgba(255,255,255,.16);

  /* Semantic */
  --color-background: var(--rt-white);
  --color-foreground: var(--rt-ink);
  --color-primary:    var(--rt-navy);
  --color-accent:     var(--rt-amber);
  --color-ring:       var(--rt-amber);

  /* Type */
  --font-head: 'Barlow Condensed', 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --fs-xs:   0.8125rem;   /* 13 */
  --fs-sm:   0.9375rem;   /* 15 */
  --fs-base: 1.0625rem;   /* 17 */
  --fs-lg:   1.1875rem;   /* 19 */
  --fs-xl:   clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --fs-2xl:  clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --fs-3xl:  clamp(2.1rem,  1.4rem + 3.2vw, 3.4rem);
  --fs-4xl:  clamp(2.6rem,  1.5rem + 5vw, 4.75rem);

  /* Spacing (8pt) */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;
  --space-4: 16px;  --space-5: 24px;  --space-6: 32px;
  --space-7: 48px;  --space-8: 64px;  --space-9: 96px;

  /* Radius: none. The design is square-cornered throughout; the only curves
     are the circular icon badges, which set 50% explicitly. */

  /* Angled corner cut shared by images, cards and the header band.
     A fixed length (not a %) so the angle stays 45° at every aspect ratio. */
  --cut: clamp(26px, 3.4vw, 54px);
  --cut-shape: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(7,17,50,.06), 0 2px 8px rgba(7,17,50,.05);
  --shadow-2: 0 4px 12px rgba(7,17,50,.08), 0 12px 32px rgba(7,17,50,.08);
  --shadow-3: 0 12px 28px rgba(7,17,50,.14), 0 32px 64px rgba(7,17,50,.14);

  /* Layout */
  --container: 1320px;
  --gutter: clamp(20px, 5vw, 48px);
  --brand-col: clamp(180px, 17vw, 236px);
  --header-utility-h: 84px;
  --header-main-h: 72px;
  --header-h: 156px;              /* both tiers, used for hero offset */

  /* Motion */
  --ease-out: cubic-bezier(.22,.85,.32,1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 420ms;

  /* Z scale */
  --z-base: 1; --z-sticky: 40; --z-header: 100; --z-drawer: 200;
}

/* ==========================================================================
   3. RESET / BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The utility bar collapses on scroll, so anchors only need to clear the nav row. */
  scroll-padding-top: calc(var(--header-main-h) + 16px);
}

/* Below the desktop breakpoint the utility bar is hidden entirely. */
@media (max-width: 1219px) {
  :root { --header-h: var(--header-main-h); }
}

body {
  margin: 0;
  /* The header is fixed and solid, so offset the page rather than letting
     content run underneath it. (A margin on the hero would collapse away.) */
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); font-weight: 600; line-height: 1.15; }
h4 { font-size: var(--fs-lg); font-weight: 600; }

p { margin: 0 0 var(--space-4); max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--rt-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rt-navy); }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.15em; }
li { margin-bottom: var(--space-2); }

button { font: inherit; cursor: pointer; }

hr { border: 0; border-top: 1px solid var(--rt-line); margin: var(--space-7) 0; }

::selection { background: var(--rt-amber); color: var(--rt-navy-deep); }

/* Focus — never removed, always visible */
:focus-visible {
  outline: 3px solid var(--rt-amber);
  outline-offset: 3px;
  border-radius: 0;
}
.on-dark :focus-visible { outline-color: var(--rt-amber); }

.skip-link {
  position: absolute; left: var(--space-4); top: -80px;
  z-index: 999;
  background: var(--rt-amber); color: var(--rt-navy-deep);
  padding: 12px 20px; border-radius: 0;
  font-weight: 600; text-decoration: none;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================== */

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

.container--narrow { max-width: 900px; }

.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.section--cream { background: var(--rt-cream); }
.section--navy  { background: var(--rt-navy); color: #EAEFFA; }
.section--white { background: var(--rt-white); }

.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--rt-white); }
/* Must exclude buttons: this selector is more specific than .btn--primary and
   was repainting the accent-filled button's own label in the accent colour. */
.section--navy a:not(.btn) { color: var(--rt-amber-on-navy); }
.section--navy a:not(.btn):hover { color: #FFB25E; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rt-blue);
  margin: 0 0 var(--space-3);
}
.eyebrow::before {
  content: ""; width: 28px; height: 3px;
  background: var(--rt-amber); flex: none;
}
.section-head--center .eyebrow::before { display: none; }
.section--navy .eyebrow { color: var(--rt-amber-on-navy); }

.lede {
  font-size: var(--fs-lg);
  color: var(--rt-slate);
  line-height: 1.6;
}
.section--navy .lede { color: #C3CEE7; }

.grid { display: grid; gap: clamp(20px, 2.5vw, 32px); }

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--rt-amber);
  color: var(--rt-navy-deep);
  border-color: var(--rt-amber);
  box-shadow: 0 6px 18px rgba(245,166,35,.32);
}
.btn--primary:hover { background: var(--rt-amber-dark); border-color: var(--rt-amber-dark); color: var(--rt-navy-deep); }
.btn--primary:active { transform: translateY(1px); }

.btn--navy { background: var(--rt-navy); color: #fff; border-color: var(--rt-navy); }
.btn--navy:hover { background: var(--rt-navy-soft); border-color: var(--rt-navy-soft); color: #fff; }

.btn--ghost { background: transparent; color: var(--rt-navy); border-color: rgba(13,31,76,.28); }
.btn--ghost:hover { background: var(--rt-navy); border-color: var(--rt-navy); color: #fff; }

.btn--ghost-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: #fff; color: var(--rt-navy); border-color: #fff; }

.btn--sm { min-height: 44px; padding: 10px 20px; font-size: var(--fs-xs); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: var(--fs-sm);
  letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none;
  min-height: 44px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   6. HEADER + NAVIGATION
   ========================================================================== */

/* Solid dark bar — it no longer overlays the hero, so nothing competes with
   the photo behind it. Brand sits in a fixed left column spanning both tiers. */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-header);
  background: var(--rt-navy-deep);
  transition: box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-3); }

/* The header is fixed and shrinks on scroll while body padding keeps the full
   height, so for a moment the gap below the shrunk header would show the white
   page background. Paint that zone header-navy behind the content instead.
   It is absolute (scrolls away with the page), not fixed: fixed, it stayed
   pinned behind the content and showed through transparent sections. Sitting
   in the body's top padding, it only ever fills the gap under the header. */
body::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--rt-navy-deep);
  z-index: -1;
  pointer-events: none;
}

.header-shell {
  position: relative; z-index: 2;
  display: flex; align-items: stretch;
  gap: var(--space-5);
}

.brand {
  display: flex; align-items: center;
  flex: none; min-height: 48px;
  width: var(--brand-col);
}
.brand img {
  width: auto; height: 60px; max-width: 100%;
  /* If the column ever clamps the width, letterbox rather than squash. */
  object-fit: contain; object-position: left center;
  transition: height var(--dur) var(--ease-out);
}

/* Full size while the two-tier header is showing; shrinks back to 60px as the
   utility bar collapses on scroll (the collapsed bar is only 72px tall). */
@media (min-width: 1220px) {
  .brand img { height: 105px; }
  .site-header.is-scrolled .brand img { height: 60px; }
}

.header-stack { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* --- The angled accent band ---------------------------------------------
   Placed on the header itself so it bleeds to the right viewport edge,
   starting just after the brand column. The clipped corner is the angle. */
.header-band {
  position: absolute; right: 0; bottom: 0;
  height: var(--header-main-h);
  /* Line the band up with the start of the content column:
     container offset + gutter + brand column + the shell's gap. */
  left: calc(max(0px, (100% - var(--container)) / 2) + var(--gutter) + var(--brand-col) + var(--space-5));
  background: var(--rt-amber);
  clip-path: polygon(54px 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
  transition: opacity var(--dur) var(--ease-out);
}
@media (max-width: 1219px) { .header-band { display: none; } }

/* --- Tier 1: contact details -------------------------------------------- */

.header-utility {
  height: var(--header-utility-h);
  display: flex; align-items: center; justify-content: flex-end;
  overflow: hidden;
  transition: height var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.site-header.is-scrolled .header-utility { height: 0; opacity: 0; }

.utility-list {
  display: flex; align-items: center; gap: clamp(18px, 2.2vw, 40px);
  list-style: none; margin: 0; padding: 0;
}

.utility-item { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; }

.utility-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border: 2px solid var(--rt-amber);
  border-radius: 50%;
  color: var(--rt-amber);
}
.utility-icon svg { width: 19px; height: 19px; }

.utility-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }

.utility-label { font-size: var(--fs-sm); font-weight: 400; color: rgba(255,255,255,.72); }

.utility-value {
  color: #fff; font-size: var(--fs-base); font-weight: 700;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.utility-value:hover { color: var(--rt-amber); }
/* Stretch each link's hit area over its whole block to clear 44px. */
.utility-value::after { content: ""; position: absolute; inset: 0; }
.utility-value:focus-visible { outline-offset: 6px; }

@media (max-width: 1219px) { .header-utility { display: none; } }

/* --- Tier 2: navigation, sitting on the band ---------------------------- */

.header-main {
  position: relative; z-index: 2;
  height: var(--header-main-h);
  display: flex; align-items: center; justify-content: flex-end;
  gap: var(--space-3);
}

.primary-nav { display: none; }

@media (min-width: 1220px) {
  /* Clear the 54px diagonal cut at the band's left edge. */
  .primary-nav { display: block; margin-right: auto; padding-left: 68px; }

  .nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
  /* flex-shrink would squeeze the multi-word items until their labels wrapped
     onto two lines, leaving the row with uneven heights. */
  .nav-list > li { margin: 0; position: relative; flex: none; }
  .nav-list > li > a { white-space: nowrap; }

  /* Navy on the orange band. White would only reach 3.55:1 and fail. */
  .nav-list > li > a {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 15px; min-height: 46px;
    color: var(--rt-navy-deep);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 1.125rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .03em;
    transition: background-color var(--dur-fast) var(--ease-out);
  }
  .nav-list > li > a:hover,
  .nav-list > li > a[aria-expanded="true"] { background: rgba(7,17,50,.14); }
  .nav-list > li > a[aria-current="page"]::after {
    content: ""; position: absolute; left: 15px; right: 15px; bottom: 8px;
    height: 3px; background: var(--rt-navy-deep);
  }
  .nav-caret { width: 13px; height: 13px; transition: transform var(--dur-fast) var(--ease-out); }
  [aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

  .submenu {
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 274px;
    background: #fff;
    box-shadow: var(--shadow-3);
    border-top: 4px solid var(--rt-amber);
    padding: 10px; list-style: none; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
  }
  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu,
  .submenu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .submenu li { margin: 0; }
  .submenu a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px; min-height: 44px;
    color: var(--rt-ink); text-decoration: none;
    font-size: var(--fs-sm); font-weight: 500;
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  }
  .submenu a:hover { background: var(--rt-cream); color: var(--rt-blue); }
  .submenu a svg { width: 26px; height: 16px; color: var(--rt-blue); flex: none; }
}

/* Eight nav items only fit between the brand column and the CTA at the compact
   size, and only above ~1200px, hence the 1220px breakpoint below. There is no
   roomier tier: at 18px the row needs 903px and never has more than 863px. */
@media (min-width: 1220px) {
  .primary-nav { padding-left: 60px; }
  .nav-list > li > a { padding-inline: 9px; font-size: 1.0625rem; letter-spacing: .01em; }
}

/* Square CTA sitting on the band, like the reference "Buy Now" */
.band-cta {
  display: none;
  align-self: stretch;              /* fills the band height, like the reference */
  align-items: center; justify-content: center;
  min-height: 48px; padding: 13px 28px;
  background: var(--rt-navy-deep);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.band-cta:hover { background: var(--rt-blue); color: #fff; }
@media (min-width: 1220px) { .band-cta { display: inline-flex; } }

/* Tap-to-call — mobile/tablet only */
.header-call {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: none;
  background: var(--rt-amber);
  color: var(--rt-navy-deep);
  border-radius: 0;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.header-call:hover { background: var(--rt-amber-dark); color: #fff; }
.header-call svg { width: 20px; height: 20px; }
@media (min-width: 1220px) { .header-call { display: none; } }

/* Mobile toggle */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 48px; min-height: 48px;
  padding: 0 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 0;
  color: #fff;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.nav-toggle:hover { background: rgba(255,255,255,.2); }
@media (min-width: 1220px) { .nav-toggle { display: none; } }

.nav-toggle-bars { width: 20px; height: 14px; position: relative; flex: none; }
.nav-toggle-bars span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0;
  z-index: var(--z-drawer);
  background: var(--rt-navy-deep);
  padding: calc(var(--header-h) + 16px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 32px);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
@media (min-width: 1220px) { .mobile-nav { display: none; } }

.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--rt-line-dark); }
.mobile-nav > ul > li > a,
.mobile-nav .m-sub-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
  padding: 18px 4px; min-height: 56px;
  background: none; border: 0;
  color: #fff; text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: .01em;
  text-align: left;
}
.mobile-nav > ul > li > a[aria-current="page"] { color: var(--rt-amber); }
.m-sub-toggle svg { width: 20px; height: 20px; flex: none; transition: transform var(--dur) var(--ease-out); }
.m-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.m-submenu { display: none; padding: 0 0 16px 4px; }
.m-submenu.is-open { display: block; }
.m-submenu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; min-height: 44px;
  color: #BFCBE6; text-decoration: none;
  font-size: var(--fs-base); font-weight: 500;
}
.m-submenu a:hover { color: var(--rt-amber); }
.m-submenu a svg { width: 28px; height: 18px; color: var(--rt-amber); flex: none; }

.mobile-nav-foot { margin-top: var(--space-6); display: grid; gap: 12px; }
.mobile-nav-foot .btn { width: 100%; }

/* ==========================================================================
   7. HERO
   ========================================================================== */

/* Framed hero — an orange border, rounded on three corners with the
   bottom-right cut to an angle.
   Two layers: the frame paints the border colour and the hero sits inside it,
   so the border follows the diagonal as well as the straight edges. A single
   element could not do this — clip-path would shear the border off the cut. */
/* The frame is a full-bleed orange band and the hero is inset inside it by
   padding. No margin, so there is no gap for the page background to show
   through — the previous version relied on a margin, which just exposed
   main's white. The orange here is a filled area, not an edge treatment,
   so it cannot render as anything else. */
.hero-frame {
  --frame: 10px;
  --frame-r: clamp(14px, 1.6vw, 26px);
  background: var(--rt-amber);
  padding: var(--frame) var(--frame) 0 var(--frame);
}


.hero {
  position: relative;
  /* Tall enough that the truck is not cropped harshly: the photo is 1506x1045
     and the stage is very wide, so every pixel of height here buys back roof. */
  min-height: min(82svh, 800px);
  /* Column so the credential bar sits below the image, not over it. */
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--rt-navy-deep);
  /* Rounded on three corners; square at the bottom right, where the angled
     orange wedge covers the image. overflow:hidden makes the radius clip
     the photo and the credential bar. */
  border-radius: var(--frame-r) var(--frame-r) 0 var(--frame-r);
  overflow: hidden;
}

.hero-content { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 80px); }

/* The photo occupies only the area ABOVE the credential bar, so the bar can
   never cover the bottom of the truck. */
.hero-stage {
  position: relative;
  flex: 1;
  display: flex; align-items: flex-end;
  isolation: isolate;
  min-height: 0;
}

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Bottom-aligned: the truck is taller than the window, so crop the
     sky and trailer roof rather than the wheels. */
  object-position: 58% 100%;
}
.hero-stage::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(7,17,50,.92) 0%, rgba(7,17,50,.72) 42%, rgba(7,17,50,.18) 78%, rgba(7,17,50,.05) 100%),
    linear-gradient(to top, rgba(7,17,50,.85) 0%, rgba(7,17,50,0) 46%);
}
@media (max-width: 767px) {
  .hero-stage::after {
    background: linear-gradient(to top, rgba(7,17,50,.94) 8%, rgba(7,17,50,.62) 55%, rgba(7,17,50,.45) 100%);
  }
}

.hero-inner { max-width: 720px; color: #fff; }

/* Not a real heading — the post title (the_content()'s <h1>, in the "Who
   We Are" section) is the page's only h1, so this hero line is a styled
   <p>. Properties that normally come from the shared h1-h4 rule are
   repeated here since a <p> doesn't pick those up. */
.hero .hero-heading {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  text-wrap: balance;
  font-size: var(--fs-4xl);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-5);
  max-width: 68ch;
}
.hero .hero-heading em {
  font-style: normal;
  color: var(--rt-amber);
}

/* --- Credential bar ------------------------------------------------------
   Orange strip at the foot of the hero. It needs no shape of its own now —
   the frame's rounded and angled corners clip it. */
.hero-credentials {
  --wedge: clamp(56px, 7vw, 116px);
  position: relative;
  background: var(--rt-amber);
  color: #fff;
}

/* The angle: a solid orange triangle rising out of the bar's right end and
   over the image, rather than a corner cut out of the frame. The gradient
   axis runs bottom-right to top-left, so the hard stop leaves a 45 degree
   edge from the bar's top-right up to the hero's right edge. */
.hero-credentials::before {
  content: "";
  position: absolute;
  right: 0; bottom: 100%;
  width: var(--wedge); height: var(--wedge);
  background: linear-gradient(to top left, var(--rt-amber) 49.7%, transparent 50%);
  pointer-events: none;
}

.cred-list {
  display: grid;
  grid-template-columns: 1fr;
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 640px)  { .cred-list { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .cred-list { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.cred-item {
  display: flex; align-items: center; gap: 14px;
  margin: 0;
  padding: clamp(16px, 1.8vw, 22px) clamp(14px, 1.6vw, 26px);
  border-bottom: 1px solid rgba(255,255,255,.32);
}
.cred-item:last-child { border-bottom: 0; }
.cred-item:first-child { padding-left: 0; }

@media (min-width: 640px) {
  .cred-item { border-bottom: 0; border-right: 1px solid rgba(255,255,255,.32); }
  .cred-item:nth-child(2n) { border-right: 0; }
}
@media (min-width: 1024px) {
  .cred-item { border-right: 1px solid rgba(255,255,255,.32); }
  .cred-item:nth-child(2n) { border-right: 1px solid rgba(255,255,255,.32); }
  .cred-item:last-child { border-right: 0; padding-right: 0; }
}

.cred-icon { width: 30px; height: 30px; flex: none; color: #fff; }

.cred-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }

.cred-label {
  font-family: var(--font-head);
  font-size: 1.125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
}
.cred-value {
  font-size: var(--fs-sm); font-weight: 500;
  color: rgba(255,255,255,.9);
}

/* Phones: one column, so run label and value on a single line to keep the bar
   from swallowing the hero. The cut is also reduced here — at the 20px gutter
   the full-size diagonal would clip the first icon. */
@media (max-width: 639px) {
  .cred-item { padding-block: 12px; gap: 12px; }
  .cred-icon { width: 24px; height: 24px; }
  .cred-text { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
  .cred-label { font-size: 1rem; }
}

.hero-sub {
  font-size: clamp(1.0625rem, .95rem + .5vw, 1.3125rem);
  line-height: 1.55;
  color: #D6DEF0;
  max-width: 56ch;
  margin-bottom: var(--space-6);
}



/* ==========================================================================
   8. TRUST STRIP
   ========================================================================== */

.trust {
  background: var(--rt-navy-deep);
  color: #fff;
  padding-block: clamp(36px, 5vw, 56px);
  border-top: 4px solid var(--rt-amber);
}
.trust-head { text-align: center; margin-bottom: var(--space-6); }
.trust-head h2 {
  font-size: var(--fs-xl);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: var(--space-2);
  color: #fff;
}
.trust-head p { margin: 0 auto; max-width: 62ch; color: #A9B7D6; font-size: var(--fs-sm); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--space-3);
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--space-4); } }

.trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  padding: var(--space-5) var(--space-3);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--rt-line-dark);
  border-radius: 0;
}
.trust-item svg { width: 34px; height: 34px; color: var(--rt-amber); }
.trust-item strong {
  font-family: var(--font-head);
  font-size: 1.1875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
  line-height: 1.1;
}
.trust-item span { font-size: var(--fs-xs); color: #A9B7D6; line-height: 1.4; }

/* ==========================================================================
   9. CATEGORY / TRAILER ICON GRID
   ========================================================================== */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--space-3);
}
@media (min-width: 600px)  { .cat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-4); } }
@media (min-width: 900px)  { .cat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 1180px) { .cat-grid { grid-template-columns: repeat(6, minmax(0,1fr)); } }

.cat-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: var(--space-3);
  min-height: 152px;
  padding: var(--space-5) var(--space-3) var(--space-4);
  background: var(--rt-white);
  border: 1px solid var(--rt-line);
  border-radius: 0;               /* square, to sit with the angled surfaces */
  text-align: center;
  text-decoration: none;
  color: var(--rt-navy);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out);
}
.cat-card::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--rt-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.cat-card:hover, .cat-card:focus-visible {
  border-color: var(--rt-navy);
  box-shadow: var(--shadow-2);
  color: var(--rt-navy);
}
.cat-card:hover::after, .cat-card:focus-visible::after { transform: scaleX(1); }

.cat-icon {
  width: 100%; max-width: 96px; height: 56px;
  color: var(--rt-blue);
  transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.cat-card:hover .cat-icon { color: var(--rt-navy); transform: translateX(3px); }

.cat-name {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.cat-foot {
  margin-top: clamp(28px, 4vw, 44px);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--rt-navy);
  border-radius: 0;
  color: #D6DEF0;
}
.cat-foot p { margin: 0; flex: 1 1 320px; font-size: var(--fs-base); }
.cat-foot strong { color: #fff; }

/* ==========================================================================
   10. SPLIT / MEDIA SECTIONS
   ========================================================================== */

.split {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-right .split-media { order: 2; }
  .split--wide-text { grid-template-columns: 1.05fr .95fr; }
}

.split-media { position: relative; }

/* Angled top-right cut. Note: clip-path also clips box-shadow, so these
   surfaces use the shape itself rather than a shadow for definition. */
.media-frame {
  position: relative;
  border-radius: 0;
  clip-path: var(--cut-shape);
  overflow: hidden;
  background: var(--rt-cream);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tall  { aspect-ratio: 4 / 5; }
.media-frame--wide  { aspect-ratio: 4 / 3; }
.media-frame--video { aspect-ratio: 16 / 10; }

/* Stacked/offset photo pair */
.media-stack { position: relative; padding-bottom: 56px; padding-right: 40px; }
.media-stack .media-frame--wide { aspect-ratio: 4 / 3; }
.media-stack .media-inset {
  position: absolute; right: 0; bottom: 0;
  width: 42%;
  border-radius: 0;
  clip-path: var(--cut-shape);
  overflow: hidden;
  border: 6px solid var(--rt-white);
  aspect-ratio: 4 / 5;
}
.section--cream .media-stack .media-inset { border-color: var(--rt-cream); }
.media-stack .media-inset img { width: 100%; height: 100%; object-fit: cover; }
/* Tall portrait in a 4:3 inset: bias the crop upward so both engineers and the
   cab stay in frame rather than centring on the chassis. */
.media-inset-img--design { object-position: 50% 38%; }

.badge-float {
  position: absolute; left: -8px; top: 24px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: var(--rt-amber);
  color: var(--rt-navy-deep);
  border-radius: 0;
  box-shadow: var(--shadow-2);
}
.badge-float strong {
  font-family: var(--font-head);
  font-size: 2rem; line-height: 1; font-weight: 700;
}
.badge-float span { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; line-height: 1.2; }
@media (max-width: 600px) {
  .badge-float { left: 0; top: 12px; padding: 10px 14px; }
  .badge-float strong { font-size: 1.5rem; }
  /* The 4:5 inset is tall enough to reach the badge's corner at this width;
     narrowing it slightly keeps the two clear of each other. */
  .media-stack .media-inset { width: 46%; }
}

/* Image collage: one tall portrait spanning both rows, two landscape shots
   stacked beside it. The tall frame stretches to whatever height the two wide
   frames add up to, so the block always squares off. Shared by the workshop
   and spray sections. */
.media-collage {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(10px, 1.2vw, 16px);
}
.media-collage .wm-tall { grid-row: 1 / span 2; height: 100%; }

@media (max-width: 700px) {
  .media-collage { grid-template-columns: 1fr; }
  .media-collage .wm-tall { grid-row: auto; height: auto; aspect-ratio: 4 / 3; }
}

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0 0 var(--space-6); display: grid; gap: var(--space-3); }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-size: var(--fs-base); }
/* Darker accent on light panels — the mid orange is only 2.48:1 on white. */
.check-list svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--rt-amber-dark); }
.section--navy .check-list svg { color: var(--rt-amber); }
.section--navy .check-list li { color: #D6DEF0; }

/* ==========================================================================
   11. STATS
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  background: var(--rt-line);
  border: 1px solid var(--rt-line);
  border-radius: 0;
  overflow: hidden;
  margin-top: clamp(32px, 4vw, 56px);
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.stat { background: var(--rt-white); padding: var(--space-5) var(--space-4); text-align: center; }
.section--cream .stat { background: var(--rt-cream); }
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 700; line-height: 1;
  color: var(--rt-navy);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.stat span { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rt-slate); }

/* ==========================================================================
   12. SERVICE CARDS
   ========================================================================== */

.card-grid { display: grid; gap: clamp(20px, 2.5vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 700px)  { .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .card-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.card {
  display: flex; flex-direction: column;
  background: var(--rt-white);
  border: 1px solid var(--rt-line);
  border-radius: 0;
  clip-path: var(--cut-shape);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
/* No shadow on hover — clip-path would cut it off. Border + lift instead. */
.card:hover { transform: translateY(-4px); border-color: var(--rt-amber); }

.card-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--rt-cream); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
/* Portrait-ish source in a 16:11 box loses 35% of its height. Bottom-align so
   the vehicle survives the crop and the booth ceiling is what goes. */
.card-media img.img-bottom { object-position: 50% 100%; }
.card:hover .card-media img { transform: scale(1.05); }

.card-tag {
  position: absolute; left: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: rgba(7,17,50,.86);
  color: #fff;
  border-radius: 0;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.card-tag svg { width: 15px; height: 15px; color: var(--rt-amber); }

.card-body { padding: var(--space-5) var(--space-5) var(--space-6); display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: var(--space-3); text-transform: uppercase; }
.card-body p { font-size: var(--fs-sm); color: var(--rt-slate); margin-bottom: var(--space-4); }
.card-body .link-arrow { margin-top: auto; color: var(--rt-blue); }

.card-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: 6px; }
.card-list li {
  position: relative; margin: 0; padding-left: 18px;
  font-size: var(--fs-sm); color: var(--rt-slate);
}
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .65em;
  width: 8px; height: 2px; background: var(--rt-amber);
}

/* ==========================================================================
   13. ACCORDION
   ========================================================================== */

.accordion { border-top: 1px solid var(--rt-line-dark); }
.acc-item { border-bottom: 1px solid var(--rt-line-dark); }

.acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) 0;
  min-height: 64px;
  background: none; border: 0;
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem);
  font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  text-align: left;
  transition: color var(--dur-fast) var(--ease-out);
}
.acc-trigger:hover { color: var(--rt-amber-on-navy); }

.acc-icon {
  position: relative; flex: none;
  width: 36px; height: 36px;
  border: 2px solid rgba(255,255,255,.32);
  border-radius: 50%;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: currentColor;
  transform: translate(-50%,-50%);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.acc-icon::before { width: 14px; height: 2px; }
.acc-icon::after  { width: 2px; height: 14px; }
.acc-trigger[aria-expanded="true"] .acc-icon { background: var(--rt-amber); border-color: var(--rt-amber); color: var(--rt-navy-deep); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }

.acc-panel { overflow: hidden; height: 0; transition: height var(--dur) var(--ease-out); }
.acc-panel-inner { padding: 0 0 var(--space-5); max-width: 62ch; color: #C3CEE7; font-size: var(--fs-base); }
.acc-panel-inner p:last-child { margin-bottom: 0; }

/* ==========================================================================
   14. FEATURE BANDS (Brian James / Van sales)
   ========================================================================== */

.band {
  display: grid;
  gap: 0;
  border-radius: 0;
  clip-path: var(--cut-shape);
  overflow: hidden;
  border: 1px solid var(--rt-line);
  background: var(--rt-white);
}
@media (min-width: 860px) { .band { grid-template-columns: 1.05fr .95fr; align-items: stretch; } }

.band-media { position: relative; min-height: 280px; }
.band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.band-body h3 { font-size: var(--fs-2xl); text-transform: uppercase; }

.band--amber { background: var(--rt-amber-tint); border-color: #F0DFBE; }
@media (min-width: 860px) { .band--single { grid-template-columns: 1fr; } }

/* The old spray-centre logo is a JPEG on white; multiply drops the white box
   out against the cream panel. */
.spray-logo {
  width: min(360px, 100%); height: auto;
  margin-bottom: var(--space-5);
  mix-blend-mode: multiply;
}

/* Divider between the two halves of a text-only band:
   a rule on top when stacked, on the left once side by side. */
.band-divider { border-top: 1px solid #F0DFBE; }
@media (min-width: 860px) {
  .band-divider { border-top: 0; border-left: 1px solid #F0DFBE; }
}

.grid--bands { gap: clamp(24px, 3vw, 40px); }
.btn-row--spaced { margin-top: var(--space-6); }

.contact-lines { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); }
.contact-lines li { display: flex; align-items: center; gap: 12px; margin: 0; font-size: var(--fs-base); font-weight: 500; }
.contact-lines svg { width: 20px; height: 20px; color: var(--rt-blue); flex: none; }
.contact-lines a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  text-decoration: none; font-weight: 600;
}
.contact-lines a:hover { text-decoration: underline; }

/* ==========================================================================
   13b. PROJECT SPOTLIGHT (tail lifts)
   ========================================================================== */

/* Asymmetric collage: one large cell, then five supporting shots. */
.project-grid {
  display: grid;
  gap: clamp(10px, 1.2vw, 16px);
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (min-width: 860px) { .project-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.project-cell {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--rt-navy-deep);
  clip-path: var(--cut-shape);
  aspect-ratio: 4 / 3;
}
.project-cell img { width: 100%; height: 100%; object-fit: cover; }

/* The hero shot takes a 2x2 block at the top left. */
.project-cell--hero { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 859px) {
  .project-cell--hero { grid-row: span 1; aspect-ratio: 4 / 3; }
  /* The tail lift shot is the point of the section, and its caption swamps a
     half-width cell at this size, so give it the full row. */
  .project-cell--feature { grid-column: span 2; aspect-ratio: 16 / 9; }
  .project-cell--feature figcaption { font-size: 0.9375rem; padding: 8px 12px; }
}

/* The tail lift shot is the point of the section, so it gets a caption. */
.project-cell--feature::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,17,50,.78) 0%, rgba(7,17,50,0) 52%);
  pointer-events: none;
}
.project-cell--feature figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  padding: 10px 16px;
  background: var(--rt-amber);
  color: var(--rt-navy-deep);
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
}

/* Spec strip */
.project-spec {
  display: grid; gap: 1px;
  grid-template-columns: repeat(2, minmax(0,1fr));
  margin: clamp(20px, 2.4vw, 28px) 0 0; padding: 0;
  list-style: none;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.24);
}
@media (min-width: 760px) { .project-spec { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.project-spec li {
  margin: 0; padding: var(--space-4) var(--space-5);
  background: var(--rt-navy);
  display: flex; flex-direction: column; gap: 2px;
}
.spec-label {
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: #C2D0EF;
}
.spec-value {
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
  color: #fff;
}

/* ==========================================================================
   14b. SISTER COMPANIES
   ========================================================================== */

.sister-grid { display: grid; gap: clamp(20px, 2.6vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 860px) { .sister-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.sister-card {
  display: flex; flex-direction: column;
  background: var(--rt-white);
  clip-path: var(--cut-shape);
  overflow: hidden;
}

/* Both van logos are blue artwork on a white JPEG, so they need a white
   plate to sit on: on the navy panel they would otherwise show as a box. */
.sister-logo {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 3vw, 36px) var(--space-5) var(--space-4);
  background: var(--rt-white);
}
.sister-logo img { width: auto; max-width: min(280px, 78%); height: auto; }

/* SVG logos have no intrinsic size to scale from, so give them a width. */
.sister-logo img[src$=".svg"] { width: 100%; max-width: 100%; height: auto; }

/* Left-align every logo with the heading and text below it. */
.sister-logo {
  justify-content: flex-start;
  padding-inline: clamp(22px, 2.6vw, 34px);
}

/* Three cards: sit side by side on wide screens, two-up on tablets. */
@media (min-width: 1100px) {
  .sister-grid:has(> .sister-card:nth-child(3)) { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.sister-body {
  padding: 0 clamp(22px, 2.6vw, 34px) clamp(26px, 3vw, 36px);
  display: flex; flex-direction: column; flex: 1;
}
.sister-body h3 {
  color: var(--rt-navy);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.sister-body p { font-size: var(--fs-sm); color: var(--rt-slate); margin-bottom: var(--space-3); }
.sister-body .btn { margin-top: auto; align-self: flex-start; }


/* ==========================================================================
   14c. CONTACT: MAP + FORM
   ========================================================================== */

.contact-grid { display: grid; gap: clamp(20px, 2.6vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 7fr 5fr; align-items: stretch; } }

.contact-map {
  position: relative;
  min-height: 320px;
  background: var(--rt-cream);
  clip-path: var(--cut-shape);
  overflow: hidden;
}
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.contact-panel {
  background: var(--rt-navy);
  color: #EAEFFA;
  clip-path: var(--cut-shape);
  padding: clamp(26px, 3vw, 40px);
}
.contact-panel .eyebrow { color: var(--rt-amber); }
.contact-panel h2 { color: #fff; font-size: var(--fs-2xl); margin-bottom: var(--space-5); }

/* Switch between the enquiry form and the call details.
   Square, not the reference's pill, to match the rest of the site. Navy on the
   accent, since white on this orange is only 2.5:1. */
.tab-switch {
  display: flex; gap: 6px;
  padding: 6px;
  margin-bottom: var(--space-5);
  background: rgba(255,255,255,.08);
}
.tab-switch-btn {
  flex: 1;
  min-height: 48px;
  padding: 12px 16px;
  background: none;
  border: 0;
  color: #C3CEE7;
  font-family: var(--font-head);
  font-size: 1.0625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.tab-switch-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
/* Narrow screens: keep each label on one line rather than wrapping to two. */
@media (max-width: 420px) {
  .tab-switch-btn { padding: 12px 8px; font-size: 1rem; letter-spacing: .01em; }
}
.tab-switch-btn.is-active {
  background: var(--rt-amber);
  color: var(--rt-navy-deep);
}

/* Panels are toggled with the hidden attribute, so no CSS is needed to hide
   them: the browser default for [hidden] does it, and it works without JS. */
.tab-panel[hidden] { display: none; }

/* Call details panel */
.call-details { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.call-details li { position: relative; display: flex; align-items: flex-start; gap: 14px; margin: 0; }
.call-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border: 2px solid var(--rt-amber); border-radius: 50%;
  color: var(--rt-amber);
}
.call-icon svg { width: 19px; height: 19px; }
.call-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; padding-top: 2px; }
.call-label { font-size: var(--fs-sm); color: #C3CEE7; }
.call-details a {
  color: #fff; font-weight: 700; font-size: var(--fs-base);
  text-decoration: none; word-break: break-word;
}
.call-details a:hover { color: var(--rt-amber); }
/* Stretch each link's hit area over its whole row to clear 44px. */
.call-details a::after { content: ""; position: absolute; inset: 0; }
.call-details a:focus-visible { outline-offset: 6px; }

/* Form. Visible labels, not placeholder-only. */
.contact-form .field { display: flex; flex-direction: column; margin-bottom: var(--space-4); }
/* Pairing two short fields keeps the panel from towering over the map. */
.contact-form .field-row { display: grid; gap: 0 var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 520px) { .contact-form .field-row { grid-template-columns: 1fr 1fr; } }
.contact-form label {
  font-size: var(--fs-sm); font-weight: 600;
  color: #fff; margin-bottom: 6px;
}
.contact-form .req { color: var(--rt-amber); }

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--rt-white);
  color: var(--rt-ink);
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);      /* 17px, so iOS does not zoom on focus */
  transition: border-color var(--dur-fast) var(--ease-out);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:hover, .contact-form textarea:hover { border-color: #C3CEE7; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--rt-amber); outline: none; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--rt-amber); outline-offset: 2px; }

.field-hint { margin-top: 6px; font-size: var(--fs-sm); color: #C3CEE7; }
.form-note { font-size: var(--fs-sm); color: #C3CEE7; margin: 0 0 var(--space-4); }
.contact-form .btn { width: 100%; }
@media (min-width: 560px) { .contact-form .btn { width: auto; } }

/* JetFormBuilder's real front-end classes (verified against the plugin's
   own render templates — includes/blocks/render/base.php,
   templates/common/field-label.php, templates/fields/textarea-field.php,
   includes/blocks/button-types/button-submit.php), restyled to match
   .contact-form above. Scoped to .contact-panel since that's the only
   place a [jet_fb_form] sits on a dark background in this theme. */
.contact-panel .jet-form-builder { width: 100%; }
.contact-panel .jet-form-builder-row { margin-bottom: var(--space-4); }

.contact-panel .jet-form-builder__label,
.contact-panel .jet-form-builder__label-text {
  display: block;
  font-size: var(--fs-sm); font-weight: 600;
  color: #fff; margin-bottom: 6px;
}
.contact-panel .jet-form-builder__required { color: var(--rt-amber); }

.contact-panel .jet-form-builder__field-wrap { width: 100%; }

/* Text/email/tel/textarea/select fields only — checkboxes and radios get
   their own small, theme-coloured treatment below, not the full-width
   white box (a checkbox picking this up is what made it render huge). */
.contact-panel .jet-form-builder__field:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--rt-white);
  color: var(--rt-ink);
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.contact-panel textarea.jet-form-builder__field { min-height: 120px; resize: vertical; }
.contact-panel .jet-form-builder__field:not([type="checkbox"]):not([type="radio"]):hover { border-color: #C3CEE7; }
.contact-panel .jet-form-builder__field:not([type="checkbox"]):not([type="radio"]):focus { border-color: var(--rt-amber); outline: none; }
.contact-panel .jet-form-builder__field:not([type="checkbox"]):not([type="radio"]):focus-visible { outline: 3px solid var(--rt-amber); outline-offset: 2px; }

/* Checkbox / radio fields (e.g. the GDPR consent field) — native size,
   recoloured to the theme accent instead of the browser-default blue. */
.contact-panel input[type="checkbox"].jet-form-builder__field,
.contact-panel input[type="radio"].jet-form-builder__field {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 2px 10px 0 0;
  flex-shrink: 0;
  accent-color: var(--rt-amber);
  cursor: pointer;
}
/* JetFormBuilder wraps a checkbox/radio field's label+input in a row —
   lay them out side by side instead of the stacked label-above-field
   pattern used for text fields. */
.contact-panel .jet-form-builder-row:has(input[type="checkbox"]),
.contact-panel .jet-form-builder-row:has(input[type="radio"]) {
  display: flex;
  align-items: flex-start;
}
.contact-panel .jet-form-builder-row:has(input[type="checkbox"]) .jet-form-builder__label,
.contact-panel .jet-form-builder-row:has(input[type="radio"]) .jet-form-builder__label {
  margin-bottom: 0;
  font-weight: 400;
  order: 2;
}

.contact-panel .jet-form-builder__field-error {
  margin-top: 6px; font-size: var(--fs-sm); color: #FFC9C9;
}
.contact-panel .field-has-error .jet-form-builder__field { border-color: #FFC9C9; }

/* Re-declare JetFormBuilder's own honeypot-hiding rule (normally injected
   as an inline <style> tag by modules/security/honeypot/module.php) here
   in the theme stylesheet. The plugin's inline tag isn't reliably reaching
   the page — likely stripped by LiteSpeed Cache's CSS optimization — which
   was exposing the 4 decoy name/email/phone/company inputs it adds before
   the submit button. Do not remove these fields; they're anti-spam, not a
   theme bug. */
.jfb-user-info,
.jfb-user-info input {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  user-select: none !important;
  pointer-events: none !important;
}

/* Hide the floating "protected by reCAPTCHA" badge Google injects
   (google.com's own .grecaptcha-badge class, fixed bottom-right). Google's
   terms require the reCAPTCHA disclosure text to appear somewhere on any
   page that hides this badge — e.g. in the footer or the form's own
   privacy-policy copy — see https://developers.google.com/recaptcha/docs/faq */
.grecaptcha-badge { visibility: hidden !important; }

.contact-panel .jet-form-builder__action-button-wrapper { margin-top: var(--space-2); }

.contact-panel .jet-form-builder__submit {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 52px;
  width: 100%;
  padding: 14px 26px;
  border: 2px solid var(--rt-amber);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--rt-amber);
  color: var(--rt-navy-deep);
  box-shadow: 0 6px 18px rgba(245,166,35,.32);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
@media (min-width: 560px) { .contact-panel .jet-form-builder__submit { width: auto; } }
.contact-panel .jet-form-builder__submit:hover { background: var(--rt-amber-dark); border-color: var(--rt-amber-dark); color: var(--rt-navy-deep); }

/* ==========================================================================
   15. CTA BAND
   ========================================================================== */

.cta-band {
  background: var(--rt-amber);
  color: var(--rt-navy-deep);
  padding-block: clamp(44px, 6vw, 80px);
}
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-5) var(--space-7);
}
.cta-inner h2 {
  color: var(--rt-navy-deep);
  text-transform: uppercase;
  font-size: var(--fs-2xl);
  margin: 0 0 var(--space-2);
  max-width: 18ch;
}
/* Solid, not 78% — on the orange the faded navy only reached 4.26:1. */
.cta-inner p { margin: 0; color: var(--rt-navy-deep); font-weight: 500; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cta-band .btn--navy { box-shadow: 0 6px 18px rgba(7,17,50,.22); }

/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.site-footer { background: var(--rt-navy-deep); color: #A9B7D6; padding-top: clamp(48px, 6vw, 80px); }

.footer-top {
  display: grid; gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
@media (min-width: 760px)  { .footer-top { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }

.footer-brand img { height: 120px; width: auto; margin-bottom: var(--space-4); }
.footer-brand p { font-size: var(--fs-sm); max-width: 38ch; margin-bottom: var(--space-4); }

/* VCA accreditation mark. The logo's own "VCA" ink is navy, which measures
   1.2:1 against the footer, so it sits on a white plate rather than directly
   on the panel. */
.footer-accred {
  display: inline-flex;
  margin-top: var(--space-5);
  padding: 12px 18px;
  background: var(--rt-white);
}
.footer-accred img { width: 170px; height: auto; }
.footer-accred a { display: block; line-height: 0; }
.footer-accred-link { margin: var(--space-3, 12px) 0 0; font-size: var(--fs-sm, 0.875rem); }
.footer-accred-link a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-accred-link a:hover { color: var(--rt-amber-on-navy, #FFB25E); }

.footer-col h3 {
  color: #fff;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer-col li { margin: 0; }
.footer-col a {
  display: inline-flex; align-items: center;
  min-height: 44px; min-width: 44px;   /* short labels like "Tipper" */
  color: #A9B7D6; text-decoration: none; font-size: var(--fs-sm);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--rt-amber); }

.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.footer-contact li { display: flex; gap: 12px; margin: 0; font-size: var(--fs-sm); line-height: 1.5; }
.footer-contact svg { width: 18px; height: 18px; color: var(--rt-amber); flex: none; margin-top: 3px; }
.footer-contact a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  color: #fff; text-decoration: none; font-weight: 600;
}
.footer-contact a:hover { color: var(--rt-amber); }

.footer-bottom {
  border-top: 1px solid var(--rt-line-dark);
  padding-block: var(--space-5);
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5);
  align-items: center; justify-content: space-between;
  font-size: var(--fs-xs);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); list-style: none; padding: 0; margin: 0; }
.footer-legal li { margin: 0; }
.footer-legal a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  color: #A9B7D6; text-decoration: none;
}
.footer-legal a:hover { color: var(--rt-amber); text-decoration: underline; }

/* Back to top */
.to-top {
  position: fixed; right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-sticky);
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rt-navy);
  color: #fff;
  border: 0; border-radius: 0;
  box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur), background-color var(--dur-fast) var(--ease-out);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--rt-amber); color: var(--rt-navy-deep); }
.to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   16b. LIGHTBOX
   ========================================================================== */

/* The gallery images are links, so they need to fill their cell. */
.lb-link { display: block; width: 100%; height: 100%; }
.lb-link img { width: 100%; height: 100%; object-fit: cover; }
.lb-link:focus-visible { outline: 3px solid var(--rt-amber); outline-offset: -3px; }

.lb {
  position: fixed; inset: 0;
  z-index: 300;                     /* above the drawer (200) */
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }

.lb-backdrop { position: absolute; inset: 0; background: rgba(7,17,50,.94); }

.lb-stage {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
}
.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  width: auto; height: auto;
  object-fit: contain;
  clip-path: var(--cut-shape);
}
.lb-cap {
  margin: 0; max-width: 70ch; text-align: center;
  color: #fff; font-size: var(--fs-base); line-height: 1.45;
}
.lb-count {
  margin: 0;
  color: var(--rt-amber);
  font-family: var(--font-head);
  font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.lb-btn {
  position: absolute; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.32);
  color: #fff;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.lb-btn:hover { background: var(--rt-amber); border-color: var(--rt-amber); color: var(--rt-navy-deep); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-btn[hidden] { display: none; }

.lb-close { top: clamp(12px, 2vw, 24px); right: clamp(12px, 2vw, 24px); }
.lb-prev  { left: clamp(8px, 1.6vw, 24px);  top: 50%; transform: translateY(-50%); }
.lb-next  { right: clamp(8px, 1.6vw, 24px); top: 50%; transform: translateY(-50%); }

/* On narrow screens the arrows would sit over the photo, so drop them to the
   bottom corners where they clear it. */
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-img { max-height: calc(100vh - 230px); }
}

/* ==========================================================================
   17. SCROLL REVEAL
   ========================================================================== */

/* Content is visible by default. The hidden start state is applied only when
   JavaScript is confirmed present (the .js class is set by an inline script in
   <head>), so a script failure can never leave the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 60ms; }
.reveal[data-delay="2"] { transition-delay: 120ms; }
.reveal[data-delay="3"] { transition-delay: 180ms; }
.reveal[data-delay="4"] { transition-delay: 240ms; }
.reveal[data-delay="5"] { transition-delay: 300ms; }

/* ==========================================================================
   18. REDUCED MOTION / PRINT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
  .card:hover .card-media img { transform: none; }
}

@media print {
  .site-header, .mobile-nav, .to-top, .cta-band, .hero-media { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding-block: 16pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* ==========================================================================
   19. GENERIC TEMPLATES — block-editor content, inner page hero,
       and the Customizer-logo text fallback shared by header.php/footer.php
   ========================================================================== */

/* Shown only when no Customizer logo has been set yet. */
.brand-fallback-text {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}

/* Plain WYSIWYG output — the front page's "Who We Are" section, and the
   fallback body of any inner page template (page.php, single.php, etc.)
   that just needs to print the block editor's content cleanly. Flush left
   (not auto-centred) so it lines up with the .page-hero title above it. */
.entry-content-wrap { max-width: 860px; }
.entry-content-wrap > h2,
.entry-content-wrap > h1 { margin-bottom: var(--space-5); }
/* Front page "Who We Are" (#about): full container width instead of the
   860px reading-width cap used elsewhere, so it matches the width of the
   other sections on the page. */
#about .entry-content-wrap { max-width: none; }
/* This h1 is the page's real title (see front-page.php "Who We Are"), kept
   at the same visual size as the other section titles elsewhere on the
   page (all h2, paired with .eyebrow) rather than the browser-default,
   much larger h1 size. */
.entry-content-wrap > h1 { font-size: var(--fs-3xl); }
.entry-content img,
.entry-content-wrap > img { max-width: 100%; height: auto; margin-bottom: var(--space-5); }
.entry-content p { color: var(--rt-slate); }
.entry-content .wp-block-buttons { margin-top: var(--space-5); }

/* Gutenberg's default Buttons block, styled to match .btn / .btn--navy so
   editors don't need to hand-pick a custom class in the block editor. */
.entry-content .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 2px solid var(--rt-navy);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .06em;
  background: var(--rt-navy);
  color: #fff;
  text-decoration: none;
}
.entry-content .wp-block-button__link:hover { background: var(--rt-navy-soft); border-color: var(--rt-navy-soft); color: #fff; }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: var(--rt-navy);
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--rt-navy); color: #fff; }

/* Inner-page hero band — page.php, single.php, archive/taxonomy templates,
   404.php, search.php. A lighter-weight version of the homepage hero. */
.page-hero {
  background: var(--rt-navy);
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
}
.page-hero .eyebrow { color: var(--rt-amber-on-navy); }
.page-hero h1 {
  color: #fff;
  margin-bottom: 0;
  font-size: var(--fs-2xl);
  font-weight: 600;
}
.page-hero .lede { color: #D6DEF0; margin: var(--space-3) 0 0; max-width: 62ch; }
.page-hero-breadcrumb { color: #9fb0d6; font-size: var(--fs-sm); margin-bottom: var(--space-3); }
.page-hero-breadcrumb a { color: #fff; text-decoration: underline; }

/* Variant for a Theme Options background image (e.g. 404_background_image) —
   adds a photo behind the navy, with a flat black overlay so the white
   title/lede/search form stay readable over it. */
.page-hero--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero--photo::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .55);
}
.page-hero--photo .container { position: relative; z-index: 1; }

/* 404 — everything (title, lede, search, buttons) lives in one hero band
   that the background photo covers, not a separate section below it. */
.page-hero--404 .lede { color: #fff; }
.page-hero--404 .btn-row { flex-wrap: wrap; }

.page-hero .search-form {
  display: flex;
  max-width: 480px;
  margin: var(--space-6) 0 0;
}
/* The default WP search form wraps the input in a <label> — flex sizing has
   to go on that direct child, not the input itself. */
.page-hero .search-form label { flex: 1; display: flex; }
.page-hero .search-field {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--rt-white);
  color: var(--rt-ink);
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.page-hero .search-field:hover { border-color: #C3CEE7; }
.page-hero .search-field:focus { border-color: var(--rt-amber); outline: none; }
.page-hero .search-field:focus-visible { outline: 3px solid var(--rt-amber); outline-offset: 2px; }
.page-hero .search-submit {
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid var(--rt-amber);
  border-radius: 0;
  background: var(--rt-amber);
  color: var(--rt-navy-deep);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.page-hero .search-submit:hover { background: var(--rt-amber-dark); border-color: var(--rt-amber-dark); }

/* WordPress hides the search form's "Search for:" label with this class, but
   core doesn't ship the CSS for it on the front end. */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.page-hero .search-field::placeholder { color: var(--rt-slate-light); opacity: 1; }

/* Generic content section directly under .page-hero on simple templates. */
.page-content { padding-block: clamp(48px, 7vw, 80px); }

/* Full-width cover image under .page-hero on single-*.php templates. */
.single-cover { max-width: var(--container); margin: var(--space-6) auto 0; padding-inline: var(--gutter, var(--space-4)); }
.single-cover img { width: 100%; height: auto; }

/* Prev/next links under a single post/service/vehicle body. */
.post-nav-services { padding-block: var(--space-6); border-top: 1px solid var(--rt-line); }
.post-nav-services .btn-row { justify-content: space-between; }

/* Small date/type label above a card title in blog/search listings. */
.card-date {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--rt-slate-light);
  margin-bottom: var(--space-2);
}

/* ---- Maintenance page: company information ---- */
.maint-info-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: clamp(28px, 4vw, 44px); }
.maint-info-card { background: var(--rt-white); border-top: 4px solid var(--rt-amber); padding: 28px; box-shadow: 0 2px 10px rgba(13,31,76,.08); }
.maint-info-card h3 { margin-top: 0; }
.maint-info-card p:last-child { margin-bottom: 0; }
.maint-info-card--wide { grid-column: 1 / -1; }
.maint-info-call { margin-top: clamp(28px, 4vw, 44px); }
.maint-info-call p { margin: 0 0 16px; font-weight: 700; }

/* ==========================================================================
   20. TYPE APPROVALS PAGE (block-editor Custom HTML content)
   ========================================================================== */

/* Three key facts under the intro */
.approval-facts {
  display: grid; gap: var(--space-4);
  grid-template-columns: 1fr;
  margin: var(--space-6) 0;
}
@media (min-width: 700px) { .approval-facts { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.approval-fact {
  background: var(--rt-cream);
  border-top: 4px solid var(--rt-amber);
  padding: var(--space-4) var(--space-5) var(--space-5);
}
.entry-content .approval-fact p { margin: 0; color: var(--rt-ink); }
.entry-content .approval-fact__label {
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--rt-blue);
  margin-bottom: var(--space-2);
}
.entry-content .approval-fact__value { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }

/* Our own approval number, the headline credential */
.approval-own {
  background: var(--rt-navy);
  clip-path: var(--cut-shape);
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
  margin: 0 0 var(--space-7);
}
.entry-content .approval-own p { margin: 0; max-width: none; }
.entry-content .approval-own__label {
  color: #C3CEE7;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.entry-content .approval-own__number {
  display: inline-block;
  color: var(--rt-amber-on-navy);
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}

.entry-content .approval-heading { font-size: var(--fs-2xl); margin-bottom: var(--space-5); }

/* One card per manufacturer: navy title bar, then contact details beside the
   approval numbers (stacked on small screens). */
.approval-list { display: grid; gap: clamp(20px, 2.5vw, 28px); }

.approval-card {
  background: var(--rt-white);
  border: 1px solid var(--rt-line);
  clip-path: var(--cut-shape);
  overflow: hidden;
}
.entry-content .approval-card__title {
  margin: 0;
  padding: 14px clamp(20px, 2.4vw, 28px);
  background: var(--rt-navy);
  color: #fff;
  font-size: 1.35rem;
  text-transform: uppercase; letter-spacing: .03em;
  /* keep the title clear of the angled corner */
  padding-right: calc(var(--cut) + 12px);
}

.approval-card__body {
  display: grid; gap: var(--space-5) var(--space-6);
  padding: clamp(20px, 2.4vw, 28px);
}
@media (min-width: 700px) { .approval-card__body { grid-template-columns: 220px minmax(0,1fr); } }

.approval-card__details {
  display: flex; flex-direction: column; gap: 2px;
  font-style: normal; font-size: var(--fs-sm);
  color: var(--rt-slate); line-height: 1.5;
}
.approval-card__details .approval-card__gap { margin-top: var(--space-3); }
.approval-card__details a { font-weight: 600; overflow-wrap: anywhere; }

.entry-content .approval-card__numbers-label {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--rt-blue);
}
.approval-card__numbers ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.approval-card__numbers li {
  margin: 0;
  padding: 7px 10px;
  background: var(--rt-cream);
  border-left: 3px solid var(--rt-amber);
  color: var(--rt-ink);
  font-size: .875rem; font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   21. AGRICULTURAL TRAILERS PAGE (range cards + partner band)
   ========================================================================== */

.entry-content .range-heading { font-size: var(--fs-2xl); margin: var(--space-6) 0 var(--space-5); }

.range-grid {
  display: grid; gap: clamp(16px, 2.2vw, 24px);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-7);
}
@media (min-width: 560px) { .range-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.range-card {
  display: flex; flex-direction: column;
  background: var(--rt-white);
  border: 1px solid var(--rt-line);
  clip-path: var(--cut-shape);
  overflow: hidden;
  color: var(--rt-navy);
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.range-card:hover, .range-card:focus-visible { transform: translateY(-4px); border-color: var(--rt-amber); color: var(--rt-navy); }

.range-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--rt-cream); }
.range-card__media img {
  width: 100%; height: 100%; margin: 0;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.range-card:hover .range-card__media img { transform: scale(1.05); }

.range-card__title {
  padding: var(--space-4) var(--space-5) 0;
  font-family: var(--font-head);
  font-size: 1.35rem; font-weight: 700; line-height: 1.15;
  text-transform: uppercase; letter-spacing: .02em;
}
.range-card__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: var(--space-2) var(--space-5) var(--space-5);
  font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--rt-blue);
}
.range-card__cta svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.range-card:hover .range-card__cta svg { transform: translateX(4px); }

/* Brian James partner panel: navy, logo on a white plate (it is a JPEG on white) */
.partner-band {
  display: grid; gap: var(--space-5) var(--space-6);
  align-items: center;
  background: var(--rt-navy);
  clip-path: var(--cut-shape);
  padding: clamp(24px, 3vw, 40px);
}
@media (min-width: 700px) { .partner-band { grid-template-columns: minmax(0, 300px) 1fr; } }
.partner-band__logo { background: var(--rt-white); padding: var(--space-5); }
.partner-band__logo img { width: 100%; height: auto; margin: 0; }
.partner-band h3 { color: #fff; text-transform: uppercase; margin-bottom: var(--space-3); }
.partner-band p { color: #fff; max-width: none; }
.partner-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-5) 0 0; }
.partner-band .btn--primary { color: var(--rt-navy-deep); }
.partner-band .btn--ghost-light { color: #fff; }
.partner-band .btn--ghost-light:hover { color: var(--rt-navy); }

/* ==========================================================================
   22. LEFT SIDEBAR (single templates) + RANGE PAGE TWEAKS
   ========================================================================== */

/* Sidebar sits left of the content on desktop, below it on mobile. */
.page-layout { display: grid; gap: var(--space-7); grid-template-columns: minmax(0,1fr); align-items: start; }
.page-layout > .side-nav { order: 2; }
@media (min-width: 960px) {
  .page-layout { grid-template-columns: 280px minmax(0,1fr); gap: clamp(32px, 4vw, 64px); }
  .page-layout > .side-nav { order: 0; position: sticky; top: calc(var(--header-main-h) + 24px); }
}
/* The reading-width cap belongs to the column, not the whole container. */
.page-layout__main.entry-content-wrap { max-width: 860px; min-width: 0; }

.side-nav {
  background: var(--rt-cream);
  border-top: 4px solid var(--rt-amber);
  padding: var(--space-5);
}
.side-nav__group + .side-nav__group { margin-top: var(--space-6); }

.side-nav__title {
  margin: 0 0 var(--space-2);
  font-size: 1.25rem; line-height: 1.1;
  text-transform: uppercase; letter-spacing: .04em;
}
.side-nav__title a { color: var(--rt-navy); text-decoration: none; }
.side-nav__title a:hover { color: var(--rt-blue); }

.side-nav__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rt-line); }
.side-nav__list li { margin: 0; border-bottom: 1px solid var(--rt-line); }
.side-nav__list a {
  display: flex; align-items: center;
  min-height: 44px; padding: 8px 12px;
  border-left: 3px solid transparent;
  color: var(--rt-ink); text-decoration: none;
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.3;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.side-nav__list a:hover { background: var(--rt-white); border-left-color: var(--rt-amber); color: var(--rt-blue); }
.side-nav__list a[aria-current="page"] {
  background: var(--rt-white); border-left-color: var(--rt-amber);
  color: var(--rt-navy); font-weight: 700;
}

.side-nav__note {
  margin: var(--space-6) 0 0; padding-top: var(--space-4);
  border-top: 1px dashed var(--rt-slate-light);
  font-size: var(--fs-sm); color: var(--rt-slate);
}

/* Landing page: description sits above the grid. */
.range-intro { margin-bottom: var(--space-6); }
.range-intro > :last-child { margin-bottom: 0; }
.range-card__cta svg { flex: none; }

/* ==========================================================================
   23. AGRICULTURAL TRAILER ENTRY CONTENT (imported posts)
   ========================================================================== */

.entry-content h2 { font-size: var(--fs-2xl); margin: var(--space-7) 0 var(--space-4); }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { text-transform: uppercase; }

/* Headings written in the block editor (core Heading blocks carry
   .wp-block-heading) use the brand navy rather than the default near-black. */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-content .wp-block-heading { color: var(--rt-navy); }
/* ...except on dark bands, where they stay white. */
.section--navy .entry-content h1,
.section--navy .entry-content h2,
.section--navy .entry-content h3,
.section--navy .entry-content h4,
.section--navy .entry-content .wp-block-heading,
.section--blue .entry-content h1,
.section--blue .entry-content h2,
.section--blue .entry-content h3,
.section--blue .entry-content h4,
.section--blue .entry-content .wp-block-heading,
.partner-band h3 { color: #fff; }
.entry-content ul { color: var(--rt-slate); }

/* Spec block: photo beside heading + list, text-only variant spans full width */
.range-variant {
  display: grid; gap: var(--space-5);
  grid-template-columns: minmax(0,1fr);
  align-items: center;
  padding: var(--space-5);
  margin: 0 0 var(--space-5);
  background: var(--rt-cream);
  border-left: 4px solid var(--rt-amber);
}
@media (min-width: 700px) { .range-variant { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.range-variant--text { grid-template-columns: minmax(0,1fr); }
.range-variant__media { display: block; clip-path: var(--cut-shape); overflow: hidden; background: var(--rt-white); }
.entry-content .range-variant__media img { width: 100%; height: auto; margin: 0; transition: transform var(--dur-slow) var(--ease-out); }
.range-variant__media:hover img { transform: scale(1.04); }
.range-variant__text h3 { margin-bottom: var(--space-3); }
.range-variant__text ul { margin: 0; padding-left: 1.15em; }

/* Photo gallery: every image opens in the theme lightbox (.lb-link) */
.range-gallery {
  display: grid; gap: clamp(10px, 1.2vw, 16px);
  grid-template-columns: repeat(2, minmax(0,1fr));
  margin: 0 0 var(--space-6);
}
@media (min-width: 700px) { .range-gallery { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.range-gallery .lb-link { aspect-ratio: 4 / 3; clip-path: var(--cut-shape); overflow: hidden; background: var(--rt-cream); }
.entry-content .range-gallery img { width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.range-gallery .lb-link:hover img { transform: scale(1.05); }
.range-gallery--featured .lb-link:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* Price list */
.entry-content .wp-block-table { margin: 0 0 var(--space-4); }
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.entry-content .wp-block-table td { padding: 12px 16px; border: 1px solid var(--rt-line); }
.entry-content .wp-block-table td:last-child { text-align: right; font-weight: 700; color: var(--rt-navy); }
.entry-content .wp-block-table tr:nth-child(odd) td { background: var(--rt-cream); }

/* ==========================================================================
   24. FRAMED COVER IMAGE (overlaps the page hero) + LAYOUT SAFEGUARD
   ========================================================================== */

/* Extra room at the foot of the hero for the image to ride up into. */
.page-hero--overlap { padding-bottom: clamp(96px, 12vw, 168px); }

.single-cover--framed {
  --frame: 8px;
  position: relative; z-index: 2;
  max-width: var(--container);
  margin: calc(-1 * clamp(64px, 8vw, 112px)) auto 0;
  padding-inline: var(--gutter);
}
/* Orange frame with the angled top-right corner; the image sits inside it with a
   slightly smaller cut so the border follows the diagonal at an even thickness. */
.single-cover__frame {
  background: var(--rt-amber);
  padding: var(--frame);
  clip-path: var(--cut-shape);
}
.single-cover__frame img {
  display: block;
  width: 100%;
  height: clamp(240px, 40vw, 520px);
  object-fit: cover;
  object-position: 50% 60%;
  clip-path: polygon(0 0, calc(100% - var(--cut) + 5px) 0, 100% calc(var(--cut) - 5px), 100% 100%, 0 100%);
}

/* Template with no sidebar rendered: let the content use the full width
   instead of collapsing into the (empty) sidebar column. */
.page-layout:not(:has(> .side-nav)) { grid-template-columns: minmax(0,1fr); }
.page-layout__main { min-width: 0; }

/* ==========================================================================
   25. SPLIT PAGE HERO (single templates): framed image left, title right
   ========================================================================== */

.page-hero--split { padding-block: clamp(40px, 5vw, 72px); }
.page-hero__grid { display: grid; gap: var(--space-5) clamp(28px, 4vw, 56px); align-items: center; }
/* Image takes 40% of the content width and hangs half way out of the navy band
   into the white below. The 4:3 image is 0.4 x 0.75 = 0.3 of the content width
   tall, so half of it (0.15) is the overhang. */
@media (min-width: 760px) {
  :root { --hero-overhang: calc((min(100vw, var(--container)) - 2 * var(--gutter)) * .15); }

  .page-hero--split:has(.has-media) { padding-bottom: 0; }
  .page-hero__grid.has-media { grid-template-columns: 40% minmax(0, 1fr); align-items: center; }
  .page-hero__media { position: relative; z-index: 3; margin-bottom: calc(-1 * var(--hero-overhang)); }
  /* Keep the title in the navy half, level with the top of the image. */
  .page-hero__grid.has-media .page-hero__text { padding-block: var(--space-4); }
  /* Clear the overhang so the content below does not run under the image. */
  .page-hero--split:has(.has-media) + .page-content,
  .page-hero--split:has(.has-media) + .section { padding-top: calc(var(--hero-overhang) + clamp(32px, 4vw, 56px)); }
}

.page-hero__text h1 { font-size: var(--fs-3xl); }
.page-hero__media .single-cover__frame { --frame: 6px; }
.page-hero__media .single-cover__frame img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-position: 50% 55%;
}

/* ==========================================================================
   26. NEWS POST: meta, tags, share buttons, pager, related posts
   ========================================================================== */

/* Meta row under the title in the split hero */
.post-meta {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  list-style: none; margin: var(--space-4) 0 0; padding: 0;
  color: #C3CEE7; font-size: var(--fs-sm);
}
.post-meta li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.post-meta svg { width: 16px; height: 16px; flex: none; fill: var(--rt-amber); }

/* Category + tag chips */
.post-foot { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--rt-line); }
.post-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0 0 var(--space-5); padding: 0; }
.post-tags li { margin: 0; }
.post-tags a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px;
  background: var(--rt-navy); color: #fff; text-decoration: none;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.post-tags a:hover { background: var(--rt-amber); color: var(--rt-navy-deep); }
.post-tags a.is-tag { background: var(--rt-cream); color: var(--rt-navy); text-transform: none; letter-spacing: .02em; }
.post-tags a.is-tag:hover { background: var(--rt-amber); }

/* Share */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.share__label {
  margin: 0; font-family: var(--font-head); font-size: 1.125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--rt-navy);
}
.share__list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.share__list li { margin: 0; }
.share__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: var(--rt-cream); color: var(--rt-navy);
  border: 2px solid var(--rt-navy); border-radius: 0; text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.share__btn svg { width: 18px; height: 18px; fill: currentColor; }
.share__btn:hover { background: var(--rt-amber); border-color: var(--rt-amber); color: var(--rt-navy-deep); }
.share__btn[hidden] { display: none; }
.share__status { font-size: var(--fs-sm); font-weight: 600; color: var(--rt-blue); }

/* Previous / next */
.post-pager { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
@media (min-width: 640px) { .post-pager { grid-template-columns: 1fr 1fr; } }
.post-pager__link {
  display: flex; flex-direction: column; gap: 4px; padding: var(--space-4) var(--space-5);
  background: var(--rt-cream); border-left: 4px solid var(--rt-amber);
  color: var(--rt-navy); text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.post-pager__link:hover { background: var(--rt-amber-tint); color: var(--rt-navy); }
.post-pager__link--next { text-align: right; border-left: 0; border-right: 4px solid var(--rt-amber); }
@media (min-width: 640px) { .post-pager__link--next { grid-column: 2; } }
.post-pager__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rt-blue); }
.post-pager__title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; line-height: 1.15; text-transform: uppercase; }

/* Related posts */
.related-posts .section-head { margin-bottom: var(--space-6); }
.related-posts .card-media img { width: 100%; height: 100%; object-fit: cover; }

/* Card titles are links but should not be underlined (Latest News, related posts). */
.card-body h3 a { color: var(--rt-navy); text-decoration: none; }
.card-body h3 a:hover, .card-body h3 a:focus-visible { color: var(--rt-blue); text-decoration: none; }

/* ==========================================================================
   27. OUR SERVICES PAGE: blue band behind the services loop
   ========================================================================== */

/* A plain blue background. Deliberately not .section--navy, whose rules would
   recolour the white cards' headings and links. */
.section--blue { background: var(--rt-navy); }
.services-band .card { border-color: transparent; }
.services-band .card:hover { border-color: var(--rt-amber); }
.services-intro + .services-band { margin-top: 0; }

/* Page copy sits at the top of the blue band, in white. */
.services-band .services-intro { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.services-band .services-intro > :first-child { margin-top: 0; }
.services-band .services-intro > :last-child { margin-bottom: 0; }
.services-band .services-intro,
.services-band .services-intro p,
.services-band .services-intro li { color: #fff; font-size: var(--fs-lg); line-height: 1.6; }
.services-band .services-intro h2,
.services-band .services-intro h3,
.services-band .services-intro h4 { color: #fff; }
.services-band .services-intro a { color: var(--rt-amber-on-navy); }
.services-band .services-intro a:hover { color: #FFB25E; }

/* ---------- 29. Stackable buttons in page content (match .btn--primary) ---------- */
.entry-content .stk-block-button .stk-button.stk-button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 2px solid var(--rt-amber);
  border-radius: 0;
  background: var(--rt-amber);
  color: var(--rt-navy-deep);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(245,166,35,.32);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.entry-content .stk-block-button .stk-button.stk-button:hover {
  background: var(--rt-amber-dark);
  border-color: var(--rt-amber-dark);
  color: var(--rt-navy-deep);
}
.entry-content .stk-block-button .stk-button.stk-button .stk-button__inner-text { color: inherit; }
.entry-content .stk-block-button-group { margin-top: var(--space-5); }
/* On the blue band the button keeps its orange fill; only plain links turn orange */
.services-band .services-intro .stk-button { color: var(--rt-navy-deep); }

/* ---------- 28. Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px max(16px, calc((100% - 1200px) / 2));
  background: rgba(7, 17, 50, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.4;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--rt-amber-on-navy); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner a:hover { color: #FFB25E; }
.cookie-banner__btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 18px;
  border: 0;
  background: var(--rt-amber);
  color: var(--rt-navy-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cookie-banner__btn:hover { background: var(--rt-amber-dark); }
.cookie-banner__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 8px; text-align: left; }
  .cookie-banner__btn { align-self: flex-end; }
}
