/* ============================================================
   Royal Exotics — design system
   The original royalexoticsusa.com look (white page, black header,
   maroon pill buttons, gold headline, Poppins), rebuilt light.
   ============================================================ */

:root {
  /* ------------------------------------------------------------------
     Semantic surface/text roles. The page is LIGHT; the site chrome
     (header, nav, footer, call bar) is DARK. Components reference the role
     tokens, so nothing else in this file needs to know which zone it is in
     — .rex-dark below re-declares the same roles with the dark palette.
     ------------------------------------------------------------------ */
  --rex-surface:    #ffffff;   /* page: plain white, as the original */
  --rex-surface-2:  #ffffff;   /* cards, panels */
  --rex-surface-3:  #f0f0f0;   /* the original review-card grey; insets */
  --rex-border:     #e3e3e3;
  --rex-text:       #222222;
  --rex-text-muted: #5f5f5f;

  /* Brand colours hold across both zones. */
  --rex-maroon:     #8b0000;
  --rex-maroon-lit: #b31414;
  --rex-maroon-deep:#5e0000;

  /* Darkened until small uppercase text clears WCAG AA (4.5:1) on both the
     page and card surfaces — the brand gold reads only 3.46:1 on light. */
  --rex-gold:       #8a6614;
  --rex-gold-soft:  #6d5010;
  --rex-star:       #d4af37;   /* rating stars: decorative, always brand gold */

  /* The light zone darkens the gold for contrast, so text on it must be
     light — dark-on-dark-gold only reaches 3.43:1. */
  --rex-on-gold:    #ffffff;
  --rex-brand-gold: #d4af37;   /* the original headline gold — large text only (3.5:1 on white) */

  /* Anything sitting on a photograph keeps the bright brand gold and light
     text, because the scrim underneath is always dark. */
  --rex-on-image:      #f4f1ea;
  --rex-gold-on-image: #d4af37;
  --rex-scrim:         #0a0a0b;

  --rex-grain:      0;

  /* Legacy aliases: the rest of this stylesheet still uses these names. */
  --rex-black:      var(--rex-surface);
  --rex-ink:        var(--rex-surface-2);
  --rex-ink-2:      var(--rex-surface-3);
  --rex-line:       var(--rex-border);
  --rex-bone:       var(--rex-text);
  --rex-smoke:      var(--rex-text-muted);

  --rex-display: "Fira Sans Condensed", "Arial Narrow", sans-serif;
  --rex-body:    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --rex-max:   1320px;
  --rex-gut:   clamp(1.25rem, 4vw, 3rem);
  --rex-radius:    12px;
  --rex-radius-sm: 8px;

  --rex-ease:  cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------------------------------------------
   Dark zone: the site chrome. Header (which contains the nav, the mega
   panels and the off-canvas menu), footer and the mobile call bar keep the
   original dark palette while the page stays light.

   The legacy aliases MUST be re-declared here: a custom property that reads
   var(--rex-surface) is resolved on the element where it is declared, so the
   :root aliases would otherwise inherit their already-computed LIGHT values.
   ------------------------------------------------------------------ */
.rex-header,
.rex-footer,
.rex-callbar,
.rex-club {
  --rex-surface:    #000000;
  --rex-surface-2:  #111111;
  --rex-surface-3:  #1d1d1d;
  --rex-border:     #333333;
  --rex-text:       #ffffff;
  --rex-text-muted: #b5b5b5;

  /* The dark zone uses the bright brand gold, so text on it must be dark. */
  --rex-gold:       #d4af37;
  --rex-gold-soft:  #e8cd7a;
  --rex-on-gold:    #0a0a0b;

  --rex-black:      var(--rex-surface);
  --rex-ink:        var(--rex-surface-2);
  --rex-ink-2:      var(--rex-surface-3);
  --rex-line:       var(--rex-border);
  --rex-bone:       var(--rex-text);
  --rex-smoke:      var(--rex-text-muted);

  color: var(--rex-text);
}

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

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

body {
  margin: 0;
  background: var(--rex-black);
  color: var(--rex-bone);
  font-family: var(--rex-body);
  font-weight: 400;
  font-size: clamp(.95rem, .25vw + .88rem, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* filmic grain — depth without weight */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--rex-grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Headings are Poppins semibold in title case, as on the original site. */
h1, h2, h3, h4 {
  font-family: var(--rex-body);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rex-text);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); }
h3 { font-size: clamp(1.05rem, 1.4vw, 1.25rem); }

p { margin: 0 0 1.15em; }

/* ---------- layout ---------- */

.rex-wrap { width: 100%; max-width: var(--rex-max); margin-inline: auto; padding-inline: var(--rex-gut); }
.rex-section { padding-block: clamp(3.5rem, 8vw, 7.5rem); }
/* in-page anchors (#enquire) must land below the sticky 78px header */
.rex-section[id], .rex-form-panel[id], .rex-wrap[id] { scroll-margin-top: calc(78px + 1rem); }

/* a hairline that fades — used to separate sections without a hard rule */
.rex-rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--rex-line) 18%, var(--rex-line) 82%, transparent);
}

/* ---------- eyebrow / section heading ---------- */

.rex-eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--rex-display);
  font-weight: 600; font-size: .78rem;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--rex-gold);
  margin-bottom: 1.1rem;
}
.rex-eyebrow::before {
  content: ""; width: 34px; height: 1px;
  background: currentColor; opacity: .75;
}

.rex-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.rex-head p { color: var(--rex-smoke); margin: 0; }

/* ---------- buttons ---------- */

.rex-btn {
  --btn-bg: var(--rex-maroon);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .95rem 1.9rem;
  font-family: var(--rex-display);
  font-weight: 700; font-size: .95rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 0; cursor: pointer;
  border-radius: var(--rex-radius-sm);
  transition: background .35s var(--rex-ease), transform .35s var(--rex-ease), color .35s var(--rex-ease);
}
.rex-btn:hover { background: var(--rex-maroon-lit); transform: translateY(-2px); }
.rex-btn:focus-visible { outline: 2px solid var(--rex-gold); outline-offset: 3px; }

.rex-btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--rex-bone);
  box-shadow: inset 0 0 0 1px var(--rex-line);
}
.rex-btn--ghost:hover { --btn-fg: var(--rex-black); background: var(--rex-gold); }

.rex-btn--gold { --btn-bg: var(--rex-gold); --btn-fg: var(--rex-on-gold); }
.rex-btn--gold:hover { background: var(--rex-gold-soft); }

/* ---------- header ---------- */

.rex-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--rex-black) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--rex-line);
}
.rex-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 78px;
}
/* nav grows so the toggle and burger stay pinned right */
.rex-header__inner > .rex-nav { margin-left: auto; }
@media (max-width: 900px) { .rex-header__inner > .rex-nav { margin-left: 0; } }
.rex-brand {
  font-family: var(--rex-display);
  font-weight: 900; font-size: 1.35rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--rex-bone);
  display: inline-flex; align-items: baseline; gap: .45rem;
}
.rex-brand span { color: var(--rex-maroon-lit); }
.rex-brand img { max-height: 46px; width: auto; }

.rex-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.rex-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.rex-nav a:not(.rex-btn) {
  position: relative;
  font-family: var(--rex-display);
  font-weight: 600; font-size: .93rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--rex-bone); padding-block: .4rem;
  transition: color .3s var(--rex-ease);
}
.rex-nav a:not(.rex-btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--rex-gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .38s var(--rex-ease);
}
.rex-nav a:not(.rex-btn):hover { color: var(--rex-gold); }
.rex-nav a:not(.rex-btn):hover::after { transform: scaleX(1); transform-origin: left; }

.rex-burger { display: none; background: none; border: 0; color: var(--rex-bone); cursor: pointer; padding: .5rem; }

/* The burger only exists below this width; the off-canvas panel itself is
   defined once, further down. */
@media (max-width: 900px) {
  .rex-burger { display: block; }
}

/* ---------- hero ---------- */

.rex-hero { position: relative; min-height: clamp(520px, 82vh, 860px); display: grid; align-items: end; overflow: hidden; }
.rex-hero__media { position: absolute; inset: 0; }
.rex-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.rex-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--rex-scrim) 2%, color-mix(in srgb, var(--rex-scrim) 72%, transparent) 34%, color-mix(in srgb, var(--rex-scrim) 34%, transparent) 100%),
    linear-gradient(105deg, color-mix(in srgb, var(--rex-maroon-deep) 45%, transparent), transparent 58%);
}
.rex-hero__body { position: relative; padding-bottom: clamp(3rem, 7vw, 6rem); }
.rex-hero h1 { margin-bottom: .35em; }
.rex-hero h1 em { font-style: normal; color: var(--rex-gold); display: block; }
.rex-hero h1 { color: var(--rex-on-image); }
.rex-hero__lede { max-width: 52ch; color: color-mix(in srgb, var(--rex-on-image) 78%, transparent); font-size: 1.05rem; }
.rex-hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* staggered load-in */
.rex-rise { opacity: 0; transform: translateY(26px); animation: rexRise .95s var(--rex-ease) forwards; }
.rex-rise:nth-child(1) { animation-delay: .05s }
.rex-rise:nth-child(2) { animation-delay: .17s }
.rex-rise:nth-child(3) { animation-delay: .29s }
.rex-rise:nth-child(4) { animation-delay: .41s }
@keyframes rexRise { to { opacity: 1; transform: none; } }

/* ---------- category tiles ---------- */

/* Four white cards in a row on desktop, mirroring the original site's
   cut-out car images; 2x2 on tablet so a row never orphans one. */
.rex-tiles {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(.75rem, 1.5vw, 1.25rem);
  max-width: var(--rex-max); margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--rex-gut) 0;
}
@media (min-width: 900px) { .rex-tiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px)  { .rex-tiles { grid-template-columns: 1fr; } }

.rex-tile {
  display: grid; gap: .5rem; align-content: start;
  padding: clamp(.9rem, 2vw, 1.4rem) clamp(.9rem, 2vw, 1.4rem) 1.2rem;
  background: #fff; border: 1px solid var(--rex-border); border-radius: var(--rex-radius);
  box-shadow: 0 1px 2px rgb(22 22 26 / .04), 0 8px 24px rgb(22 22 26 / .05);
  text-align: center; color: var(--rex-text);
  transition: border-color .35s var(--rex-ease), transform .35s var(--rex-ease), box-shadow .35s var(--rex-ease);
}
.rex-tile:hover { border-color: var(--rex-gold); transform: translateY(-4px); box-shadow: 0 2px 4px rgb(22 22 26 / .05), 0 16px 36px rgb(22 22 26 / .1); }
.rex-tile__media { display: grid; place-items: center; aspect-ratio: 3 / 2; overflow: hidden; }
.rex-tile__media img {
  width: 100%; height: 100%; object-fit: contain; min-width: 0; min-height: 0;
  transition: transform .6s var(--rex-ease);
}
.rex-tile:hover .rex-tile__media img { transform: translateY(-4px) scale(1.03); }
.rex-tile__label { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.rex-tile__label h3 { margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.25rem); letter-spacing: .08em; text-transform: uppercase; }
.rex-tile__label span { color: var(--rex-gold); font-size: 1.2rem; transform: translateX(-6px); opacity: 0; transition: all .4s var(--rex-ease); }
.rex-tile:hover .rex-tile__label span { transform: none; opacity: 1; }

/* ---------- fleet grid ---------- */

.rex-fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.1rem, 2vw, 1.9rem); }
/* the homepage shows six: two even rows of three, never four-and-two */
@media (min-width: 900px) { .rex-fleet--home { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.rex-card {
  position: relative; background: var(--rex-ink);
  border: 1px solid var(--rex-line);
  border-radius: var(--rex-radius); overflow: hidden;
  transition: border-color .4s var(--rex-ease), transform .4s var(--rex-ease);
  display: flex; flex-direction: column;
}
.rex-card:hover { border-color: var(--rex-gold); transform: translateY(-5px); }
.rex-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rex-ink-2); }
.rex-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--rex-ease); }
.rex-card:hover .rex-card__media img { transform: scale(1.07); }
/* Marque badge. z-index matters: on hover the photo gains a transform, which
   makes it a stacking context painted after this badge in tree order — without
   an explicit z-index the photo covers the badge the moment the card is hovered. */
.rex-card__brand {
  position: absolute; top: .75rem; left: .75rem; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .45rem 1rem;
  background: var(--rex-maroon); border-radius: var(--rex-radius-sm);
  font-family: var(--rex-display); font-weight: 700;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 2px 10px rgb(0 0 0 / .28);
  transition: transform .3s var(--rex-ease), box-shadow .3s var(--rex-ease);
}
/* logos are artwork drawn for a white ground, so the plate is fixed white */
.rex-card__brand--logo {
  width: 50px; height: 50px; padding: 5px;
  background: #fff;
}
.rex-card__brand--logo img {
  width: 100%; height: 100%; min-width: 0; min-height: 0;
  object-fit: contain; display: block;
}
.rex-card__brand:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 0 0 / .32); }
.rex-card__body { padding: 1.35rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.rex-card__body h3 { font-size: 1.22rem; margin-bottom: .7rem; }
.rex-card__body h3 a { transition: color .3s var(--rex-ease); }
.rex-card:hover .rex-card__body h3 a { color: var(--rex-gold); }

.rex-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rex-card__rate { font-family: var(--rex-display); font-weight: 700; color: var(--rex-gold); font-size: 1.05rem; letter-spacing: .04em; }
.rex-card__rate small { color: var(--rex-smoke); font-weight: 400; font-size: .7rem; letter-spacing: .1em; }
.rex-card__more { font-family: var(--rex-display); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rex-bone); }
.rex-card__more:hover { color: var(--rex-gold); }

/* ---------- book by car make ---------- */

.rex-makes { padding-top: 0; }
.rex-head--row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem; max-width: none;
}
.rex-head--row > div { max-width: 60ch; }
.rex-head--row h2 { margin-bottom: .35rem; }
.rex-makes__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.75rem, 1.5vw, 1.1rem);
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 560px)  { .rex-makes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px)  { .rex-makes__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rex-makes__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rex-make {
  display: grid; gap: .7rem; justify-items: center; align-content: start;
  height: 100%; padding: clamp(1rem, 2vw, 1.4rem) .75rem 1.1rem;
  background: #fff; border: 1px solid var(--rex-border); border-radius: var(--rex-radius);
  box-shadow: 0 1px 2px rgb(22 22 26 / .04), 0 8px 24px rgb(22 22 26 / .05);
  color: var(--rex-text); text-align: center;
  transition: border-color .35s var(--rex-ease), transform .35s var(--rex-ease), box-shadow .35s var(--rex-ease);
}
.rex-make:hover { border-color: var(--rex-gold); transform: translateY(-4px); box-shadow: 0 2px 4px rgb(22 22 26 / .05), 0 16px 36px rgb(22 22 26 / .1); }
.rex-make__logo { display: grid; place-items: center; width: clamp(64px, 7vw, 88px); aspect-ratio: 1; }
.rex-make__logo img {
  width: 100%; height: 100%; min-width: 0; min-height: 0;
  object-fit: contain; transition: transform .5s var(--rex-ease);
}
.rex-make:hover .rex-make__logo img { transform: scale(1.06); }
.rex-make strong {
  font-family: var(--rex-display); font-weight: 700;
  font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2;
}

/* ---------- royal club band ---------- */

/* Dark band on the light page (it is in the dark-zone token list above), with
   the Membership page's photo behind a scrim that keeps the copy side solid. */
.rex-club {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  background: var(--rex-surface); color: var(--rex-text);
  border-block: 1px solid var(--rex-border);
}
.rex-club__media { position: absolute; inset: 0; z-index: -1; }
.rex-club__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.rex-club__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--rex-scrim) 0%, color-mix(in srgb, var(--rex-scrim) 94%, transparent) 36%, color-mix(in srgb, var(--rex-scrim) 28%, transparent) 72%, color-mix(in srgb, var(--rex-scrim) 55%, transparent) 100%),
    linear-gradient(105deg, color-mix(in srgb, var(--rex-maroon-deep) 55%, transparent), transparent 55%);
}
.rex-club__inner { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem); }
.rex-club__copy { max-width: 56ch; }
.rex-club h2 { margin: 0 0 .6rem; font-size: clamp(2rem, 4vw, 3rem); }
.rex-club__lede { margin: 0 0 1.5rem; font-size: 1.05rem; line-height: 1.7; color: color-mix(in srgb, var(--rex-text) 84%, transparent); }
.rex-club__perks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, max-content));
  gap: .6rem 1.4rem; list-style: none; margin: 0 0 1.9rem; padding: 0;
}
.rex-club__perks li {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--rex-display); font-weight: 600;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
}
.rex-club__perks .rex-i { color: var(--rex-gold); }
.rex-club__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 900px) {
  /* no free column on a phone: veil the whole photo so the copy stays readable */
  .rex-club__media::after {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--rex-scrim) 90%, transparent), color-mix(in srgb, var(--rex-scrim) 80%, transparent)),
      linear-gradient(105deg, color-mix(in srgb, var(--rex-maroon-deep) 50%, transparent), transparent 60%);
  }
}

/* ---------- homepage story (copy from the Homepage page) ---------- */

.rex-story { padding-top: 0; }
.rex-story__inner {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
@media (max-width: 900px) { .rex-story__inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
.rex-story__aside { display: grid; gap: .9rem; }
@media (min-width: 901px) { .rex-story__aside { position: sticky; top: 98px; } }
.rex-story__photo {
  margin: 0; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--rex-radius); border: 1px solid var(--rex-border); background: var(--rex-surface-3);
}
.rex-story__photo img { width: 100%; height: 100%; object-fit: cover; }
.rex-story__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.rex-story__stats > div {
  padding: .9rem .6rem; text-align: center;
  background: var(--rex-surface-2); border: 1px solid var(--rex-border); border-radius: var(--rex-radius);
}
.rex-story__stats dt {
  font-family: var(--rex-display); font-weight: 600;
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rex-text-muted);
}
.rex-story__stats dd {
  margin: .25rem 0 0; font-family: var(--rex-display); font-weight: 800;
  font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1; color: var(--rex-gold);
}
.rex-story__stats dd small { font-size: .55em; font-weight: 600; color: var(--rex-text-muted); }
.rex-story__prose { max-width: 68ch; }
.rex-story__prose > p:first-of-type { font-size: 1.1rem; line-height: 1.75; }
.rex-story__prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 1.3em; }


/* ---------- vehicle detail ---------- */

/* Gallery left, buy-box right, description beneath the gallery. On narrow
   screens this collapses to gallery -> title/price -> description, which keeps
   the H1 near the top instead of buried under the copy. */
/* Stacked by default so the order is gallery -> title/price/specs -> copy.
   Putting the long description before the buy-box pushes it off-screen. */
.rex-vehicle { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; align-items: start; }

@media (min-width: 981px) {
  /* Named areas with the aside spanning both rows. Auto-placement put the
     prose in row 2 of column 1, which left the gallery column blank for the
     whole height of the taller aside. */
  .rex-vehicle {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-areas:
      "media aside"
      "prose aside";
    grid-template-rows: auto auto;
    column-gap: clamp(2rem, 4vw, 3.5rem);
    row-gap: clamp(1.5rem, 2.5vw, 2.25rem);
  }
  .rex-vehicle__media { grid-area: media; }
  .rex-vehicle__aside { grid-area: aside; }
  .rex-vehicle__prose { grid-area: prose; margin-top: 0; }
}

.rex-gallery__main { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rex-ink-2); border: 1px solid var(--rex-line); border-radius: var(--rex-radius); }
.rex-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.rex-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .55rem; margin-top: .55rem; }
.rex-gallery__thumbs button {
  border-radius: var(--rex-radius-sm);
  padding: 0; border: 1px solid var(--rex-line); background: none; cursor: pointer;
  aspect-ratio: 4 / 3; overflow: hidden;
  transition: border-color .3s var(--rex-ease), opacity .3s var(--rex-ease);
  opacity: .62;
}
.rex-gallery__thumbs button:hover,
.rex-gallery__thumbs button[aria-current="true"] { border-color: var(--rex-gold); opacity: 1; }
.rex-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Deliberately not sticky. The buy-box runs ~1200px with the spec table, which
   is taller than most viewports — sticking it either overlaps the description
   (stacked) or needs a nested scrollbar (side by side). Both are worse than
   letting it scroll normally; the mobile call bar covers persistent CTA. */
.rex-vehicle__aside { position: static; }
.rex-vehicle__brandline { color: var(--rex-gold); font-family: var(--rex-display); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .82rem; }
.rex-vehicle h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-block: .3em .5em; }

.rex-specs { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: .9rem; }
.rex-specs th, .rex-specs td { text-align: left; padding: .8rem .25rem; border-bottom: 1px solid var(--rex-line); }
.rex-specs th { width: 45%; color: var(--rex-smoke); font-weight: 400; font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; }
.rex-specs td { font-weight: 500; }

.rex-price { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.4rem; }
.rex-price strong { font-family: var(--rex-display); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; color: var(--rex-gold); line-height: 1; }
.rex-price span { color: var(--rex-smoke); font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- enquiry form ---------- */

.rex-form-panel {
  background: linear-gradient(150deg, var(--rex-ink) 0%, var(--rex-ink-2) 100%);
  border: 1px solid var(--rex-line);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-radius: var(--rex-radius);
}
.rex-form { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rex-form .rex-field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .rex-form { grid-template-columns: minmax(0, 1fr); } }

.rex-field label {
  display: block; margin-bottom: .4rem;
  font-family: var(--rex-display); font-weight: 600;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rex-smoke);
}
.rex-field input, .rex-field select, .rex-field textarea {
  border-radius: var(--rex-radius-sm);
  width: 100%; padding: .85rem 1rem;
  background: var(--rex-black);
  border: 1px solid var(--rex-line);
  color: var(--rex-bone);
  font-family: var(--rex-body); font-size: .95rem;
  transition: border-color .3s var(--rex-ease), box-shadow .3s var(--rex-ease);
}
.rex-field input:focus, .rex-field select:focus, .rex-field textarea:focus {
  outline: 0; border-color: var(--rex-gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rex-gold) 18%, transparent);
}
.rex-field textarea { min-height: 120px; resize: vertical; }

/* honeypot — never shown, catches naive bots */
.rex-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; }

.rex-notice { padding: .9rem 1.1rem; margin-bottom: 1.2rem; border-left: 3px solid; font-size: .92rem; border-radius: var(--rex-radius-sm); }
.rex-notice--ok  { border-color: var(--rex-gold); background: color-mix(in srgb, var(--rex-gold) 10%, transparent); }
.rex-notice--err { border-color: var(--rex-maroon-lit); background: color-mix(in srgb, var(--rex-maroon-lit) 12%, transparent); }

/* ---------- prose (pages & posts) ---------- */

.rex-prose { max-width: 74ch; }
/* category copy sits between the title and the grid */
.rex-termcopy { margin: -0.5rem 0 clamp(2rem, 4vw, 3rem); }
.rex-termcopy h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-top: 1.4em; }
.rex-termcopy .rex-btn { text-decoration: none; }
.rex-prose h2, .rex-prose h3 { margin-top: 1.8em; }
.rex-prose a { color: var(--rex-gold); text-decoration: underline; text-underline-offset: .18em; }
.rex-prose ul, .rex-prose ol { padding-left: 1.25rem; }
.rex-prose li { margin-bottom: .5em; }
.rex-prose img { margin-block: 1.5rem; }
.rex-prose blockquote {
  margin: 1.8rem 0; padding: .5rem 0 .5rem 1.5rem;
  border-left: 2px solid var(--rex-maroon-lit);
  color: var(--rex-smoke); font-style: italic;
}

/* ---------- breadcrumbs ---------- */

.rex-crumbs { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rex-smoke); margin-bottom: 1.4rem; }
.rex-crumbs a:hover { color: var(--rex-gold); }
.rex-crumbs span { opacity: .45; margin-inline: .5rem; }

/* ---------- footer ---------- */

/* ---------- footer ---------- */

/* A full-bleed CTA band sits above the footer proper — the last chance to
   convert, and it separates the utility links from the sales message. */
.rex-cta-band {
  position: relative;
  color: var(--rex-on-image);
  background: linear-gradient(115deg, var(--rex-maroon-deep) 0%, var(--rex-scrim) 62%);
  border-top: 1px solid var(--rex-line);
  overflow: hidden;
}
.rex-cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 160% at 88% 10%, color-mix(in srgb, var(--rex-gold) 12%, transparent), transparent 60%);
  pointer-events: none;
}
.rex-cta-band__inner {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.rex-cta-band h2 { margin: 0 0 .35rem; font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
.rex-cta-band p { margin: 0; color: color-mix(in srgb, var(--rex-on-image) 74%, transparent); max-width: 46ch; }
.rex-cta-band .rex-btn--ghost { --btn-fg: var(--rex-on-image); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rex-on-image) 30%, transparent); }
.rex-cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.rex-footer { background: var(--rex-ink); padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem; }
.rex-footer__grid {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1.5fr repeat(3, minmax(140px, 1fr));
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
@media (max-width: 900px) { .rex-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .rex-footer__grid { grid-template-columns: 1fr; } }

.rex-footer__about { max-width: 40ch; }
.rex-footer__about p { color: var(--rex-smoke); font-size: .92rem; margin: 1rem 0 1.4rem; }

/* contact rows, gold-keyed */
.rex-footer__contact { list-style: none; margin: 0; padding: 0; }
.rex-footer__contact li { display: flex; gap: .7rem; margin-bottom: .6rem; align-items: baseline; }
.rex-footer__contact span { color: var(--rex-gold); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; min-width: 62px; }
.rex-footer__contact a, .rex-footer__contact em { color: var(--rex-bone); font-style: normal; font-size: .95rem; }

.rex-footer h4 {
  font-size: .74rem; letter-spacing: .22em; color: var(--rex-gold);
  margin-bottom: 1.15rem; padding-bottom: .7rem;
  border-bottom: 1px solid var(--rex-line);
}
.rex-footer ul:not(.rex-footer__contact) { list-style: none; margin: 0; padding: 0; }
.rex-footer li { margin-bottom: .5rem; }
.rex-footer a { color: var(--rex-smoke); font-size: .92rem; transition: color .3s var(--rex-ease), padding-left .3s var(--rex-ease); }
.rex-footer ul:not(.rex-footer__contact) a:hover { color: var(--rex-gold); padding-left: 5px; }

.rex-footer__bar {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding-top: 1.6rem; border-top: 1px solid var(--rex-line);
  color: var(--rex-smoke); font-size: .8rem;
}
.rex-footer__bar nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* sticky call bar, mobile only — mirrors the old site's CALL TO BOOK behaviour */
.rex-callbar { display: none; }
@media (max-width: 780px) {
  .rex-callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    border-top: 1px solid var(--rex-maroon-lit);
  }
  .rex-callbar a {
    flex: 1; text-align: center; padding: .95rem 1rem;
    font-family: var(--rex-display); font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; font-size: .88rem;
    background: var(--rex-maroon); color: #fff;
  }
  .rex-callbar a + a { background: var(--rex-ink); color: var(--rex-gold); }
  body { padding-bottom: 54px; }
}

/* ---------- pagination & misc ---------- */

/* paginate_links(type=list) wraps everything in <ul class="page-numbers">, so
   style the items rather than the container — otherwise the list itself picks
   up the border and the row collapses. */
.rex-pagination { margin-top: clamp(2.5rem, 5vw, 4rem); }
.rex-pagination ul.page-numbers {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem; margin: 0; padding: 0; list-style: none; border: 0;
}
.rex-pagination li { margin: 0; }
.rex-pagination li > .page-numbers {
  border-radius: var(--rex-radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; padding: .65rem 1rem;
  border: 1px solid var(--rex-line);
  font-family: var(--rex-display); font-weight: 600;
  font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rex-smoke);
  transition: color .3s var(--rex-ease), border-color .3s var(--rex-ease), background .3s var(--rex-ease);
}
.rex-pagination li > a.page-numbers:hover { color: var(--rex-bone); border-color: var(--rex-smoke); }
.rex-pagination li > .page-numbers.current {
  background: var(--rex-maroon); border-color: var(--rex-maroon); color: #fff;
}
.rex-pagination li > .page-numbers.dots { border-color: transparent; }

.rex-skip {
  position: absolute; left: -9999px;
  background: var(--rex-gold); color: var(--rex-black);
  padding: .8rem 1.4rem; z-index: 999;
  font-weight: 600;
}
.rex-skip:focus { left: 1rem; top: 1rem; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rex-rise { opacity: 1; transform: none; }
}

/* ---------- fleet filters ---------- */

.rex-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.6rem, 3vw, 2.5rem); }
.rex-chip {
  border-radius: var(--rex-radius-sm);
  display: inline-flex; align-items: baseline; gap: .5rem;
  padding: .6rem 1.15rem;
  border: 1px solid var(--rex-line);
  font-family: var(--rex-display); font-weight: 600;
  font-size: .84rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rex-smoke);
  transition: all .3s var(--rex-ease);
}
.rex-chip small { font-size: .7rem; opacity: .6; }
.rex-chip:hover { color: var(--rex-bone); border-color: var(--rex-smoke); }
.rex-chip.is-on { background: var(--rex-maroon); border-color: var(--rex-maroon); color: #fff; }
.rex-chip.is-on small { opacity: .8; }

/* ---------- term grid (brands / classes) ---------- */

.rex-termgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 760px)  { .rex-termgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .rex-termgrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 460px)  { .rex-termgrid { grid-template-columns: 1fr; } }
.rex-termcard {
  display: block; background: var(--rex-ink);
  border: 1px solid var(--rex-line);
  border-radius: var(--rex-radius); overflow: hidden;
  transition: border-color .4s var(--rex-ease), transform .4s var(--rex-ease);
}
.rex-termcard:hover { border-color: var(--rex-gold); transform: translateY(-4px); }
.rex-termcard__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rex-ink-2); }
.rex-termcard__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5); transition: filter .5s var(--rex-ease), transform .9s var(--rex-ease); }
.rex-termcard:hover .rex-termcard__media img { filter: none; transform: scale(1.06); }
.rex-termcard__body { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding: 1.05rem 1.2rem; }
.rex-termcard__body strong {
  font-family: var(--rex-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.rex-termcard__body small { color: var(--rex-smoke); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.rex-termcard:hover .rex-termcard__body strong { color: var(--rex-gold); }

/* ---------- html sitemap ---------- */

.rex-sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(1.6rem, 3vw, 3rem); align-items: start; }
.rex-sitemap h2 { font-size: 1.15rem; letter-spacing: .1em; color: var(--rex-gold); margin-bottom: .9rem; }
.rex-sitemap h2 small { color: var(--rex-smoke); font-size: .72rem; font-weight: 400; }
.rex-sitemap ul { list-style: none; margin: 0; padding: 0; }
.rex-sitemap li { margin-bottom: .45rem; }
.rex-sitemap a { color: var(--rex-smoke); font-size: .92rem; transition: color .3s var(--rex-ease); }
.rex-sitemap a:hover { color: var(--rex-bone); }

/* ---------- nav dropdowns ---------- */

/* The flex row applies to the TOP-LEVEL list only. Submenus previously
   inherited it and laid themselves out as a horizontal strip. */
.rex-nav > ul { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.rex-nav li { position: relative; }

/* One column by default so a short menu never orphans an item; two only once
   there are four or more. Browsers without :has() get the single column, which
   is the safe direction. */
.rex-mega {
  border-radius: var(--rex-radius);
  display: grid !important;
  grid-template-columns: minmax(240px, 1fr);
  gap: 2px;
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: max-content; max-width: min(94vw, 620px);
  margin: 0; padding: 10px;
  list-style: none; z-index: 60;
  background: var(--rex-ink);
  border: 1px solid var(--rex-line);
  border-top: 2px solid var(--rex-maroon);
  box-shadow: 0 24px 60px rgba(0,0,0,.62);
  opacity: 0; visibility: hidden;
  transition: opacity .26s var(--rex-ease), transform .26s var(--rex-ease), visibility .26s;
}
/* hover bridge, so the gap under the trigger does not close the panel */
/* Desktop only. :has() carries the specificity of its argument, so left
   unscoped this outranks the single-column mobile rule and pushes half the
   items outside the off-canvas panel. */
@media (min-width: 901px) {
  .rex-mega:has(> li:nth-child(4)) { grid-template-columns: repeat(2, minmax(230px, 1fr)); }
}

/* hover bridge, so the gap under the trigger does not close the panel */
.rex-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }

/* Desktop only. This rule is more specific than the mobile .rex-mega reset, so
   unscoped it re-applies translateX(-50%) on hover/tap and slides the open
   submenu half its width to the left inside the off-canvas panel. */
@media (min-width: 901px) {
  .rex-nav li:hover > .rex-mega,
  .rex-nav li:focus-within > .rex-mega {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  }
}

.rex-mega li { display: block; }
.rex-mega a {
  border-radius: var(--rex-radius-sm);
  display: block; padding: .85rem 1rem;
  border-left: 2px solid transparent;
  white-space: normal;
  transition: background .25s var(--rex-ease), border-color .25s var(--rex-ease);
}
.rex-mega a::after { display: none; }
.rex-mega a:hover { background: var(--rex-ink-2); border-left-color: var(--rex-gold); }

.rex-mega strong {
  display: block;
  font-family: var(--rex-display); font-weight: 700;
  font-size: .88rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rex-bone); line-height: 1.25;
  white-space: nowrap;
}
.rex-mega a:hover strong { color: var(--rex-gold); }
.rex-mega small {
  display: block; margin-top: .22rem;
  font-family: var(--rex-body); font-weight: 300;
  font-size: .76rem; letter-spacing: 0; text-transform: none;
  color: var(--rex-smoke); line-height: 1.4;
}

/* caret on the trigger */
.rex-nav .rex-has-children > a { padding-right: 15px; }
.rex-nav .rex-has-children > a::before {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 5px; height: 5px; margin-top: -4px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg); opacity: .55;
  transition: transform .3s var(--rex-ease);
}
.rex-nav .rex-has-children:hover > a::before { transform: rotate(225deg); margin-top: -1px; }

/* ---------- off-canvas mobile navigation ---------- */

.rex-nav__head, .rex-nav__close, .rex-nav__foot, .rex-scrim-bg { display: none; }
/* "Home" exists for the off-canvas panel only; the logo covers it on desktop */
@media (min-width: 901px) { .rex-nav .rex-menu-home { display: none; } }

@media (max-width: 900px) {
  /* backdrop-filter establishes a containing block, which would trap the
     position:fixed panel inside the 78px header instead of the viewport.
     The blur is a desktop nicety; drop it here. */
  .rex-header { backdrop-filter: none; background: var(--rex-surface); }

  .rex-scrim-bg {
    display: block; position: fixed; inset: 0; z-index: 108;
    background: color-mix(in srgb, var(--rex-scrim) 62%, transparent);
    backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none;
    transition: opacity .32s var(--rex-ease);
  }
  .rex-scrim-bg[data-open="true"] { opacity: 1; pointer-events: auto; }

  .rex-nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    z-index: 110;
    /* align-items must be reset — the desktop rule centres items, which in a
       column makes children size to their content and overflow the panel. */
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    width: min(86vw, 380px);
    max-width: 100vw; box-sizing: border-box;
    padding: 0;
    background: var(--rex-surface-2);
    border-left: 1px solid var(--rex-border);
    box-shadow: -24px 0 60px rgb(0 0 0 / .34);
    transform: translateX(100%);
    transition: transform .38s var(--rex-ease);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .rex-nav[data-open="true"] { transform: translateX(0); }

  .rex-nav__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--rex-border);
    position: sticky; top: 0; z-index: 2;
    background: var(--rex-surface-2);
  }
  .rex-nav__title {
    font-family: var(--rex-display); font-weight: 700;
    font-size: .78rem; letter-spacing: .26em; text-transform: uppercase;
    color: var(--rex-text-muted);
  }
  .rex-nav__close {
    border-radius: var(--rex-radius-sm);
    display: grid; place-items: center;
    width: 38px; height: 38px; padding: 0;
    background: none; border: 1px solid var(--rex-border);
    color: var(--rex-text); cursor: pointer;
  }
  .rex-nav__close:hover { border-color: var(--rex-gold); color: var(--rex-gold); }

  .rex-nav > ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0; width: 100%; }
  .rex-nav > ul > li { width: 100%; }
  .rex-nav > ul > li { border-bottom: 1px solid var(--rex-border); }
  .rex-nav > ul > li > a {
    display: block; padding: 1rem 1.25rem;
    font-size: 1rem; letter-spacing: .1em;
  }
  .rex-nav > ul > li > a::after { display: none; }

  /* submenus collapse behind a chevron instead of dumping every link on screen */
  .rex-nav .rex-has-children,
  .rex-nav .menu-item-has-children { position: relative; }
  .rex-subtoggle {
    border-radius: var(--rex-radius-sm);
    position: absolute; top: 4px; right: 8px;
    display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    background: none; border: 0; color: var(--rex-text-muted); cursor: pointer;
  }
  .rex-subtoggle .rex-i { transition: transform .3s var(--rex-ease); }
  .rex-subtoggle[aria-expanded="true"] .rex-i { transform: rotate(180deg); }

  .rex-mega {
    position: static; transform: none; opacity: 1; visibility: visible;
    display: grid !important; grid-template-columns: minmax(0, 1fr);
    /* box-sizing + minmax(0,…) matter: a grid track defaults to min-content,
       so nowrap titles would size the track past the panel width. */
    width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
    margin: 0 0 0 1.25rem; padding: 0 1.25rem .5rem 0;
    border: 0; border-left: 2px solid var(--rex-maroon);
    box-shadow: none; background: transparent;
    height: 0; overflow: hidden;
  }
  .rex-mega > li, .rex-mega a { min-width: 0; max-width: 100%; }
  /* the desktop rule keeps titles on one line; here they must wrap */
  .rex-mega strong { white-space: normal; overflow-wrap: anywhere; }
  .rex-mega small { white-space: normal; }
  .rex-mega[data-open="true"] { height: auto; }
  .rex-mega::before { display: none; }
  .rex-mega a { padding: .6rem 1rem; }
  .rex-mega small { display: block; }

  .rex-nav__cta { margin: 1.25rem; justify-content: center; }

  .rex-nav__foot {
    display: grid; gap: .1rem;
    margin-top: auto; padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid var(--rex-border);
  }
  .rex-nav__foot a {
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem 0;
    font-family: var(--rex-body); font-weight: 400;
    font-size: .9rem; letter-spacing: 0; text-transform: none;
    color: var(--rex-text-muted);
  }
  .rex-nav__foot a::after { display: none; }
  .rex-nav__foot a:hover { color: var(--rex-gold); }
  .rex-nav__foot .rex-i { color: var(--rex-gold); }

  .rex-nav .rex-has-children > a::before,
  .rex-nav .menu-item-has-children > a::before { display: none; }

  body[data-rex-locked="true"] { overflow: hidden; }
}

/* ---------- contact ---------- */

.rex-contact { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
@media (max-width: 960px) { .rex-contact { grid-template-columns: 1fr; } }

.rex-contact__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.1rem); }
@media (max-width: 520px) { .rex-contact__cards { grid-template-columns: 1fr; } }

.rex-contact__card {
  border-radius: var(--rex-radius);
  display: block; padding: 1.5rem 1.4rem;
  background: var(--rex-ink); border: 1px solid var(--rex-border);
  box-shadow: 0 1px 2px rgb(22 22 26 / .04), 0 8px 24px rgb(22 22 26 / .05);
  transition: background .3s var(--rex-ease), border-color .3s var(--rex-ease);
}
a.rex-contact__card:hover { border-color: var(--rex-gold); }
a.rex-contact__card:hover { background: var(--rex-ink-2); }
.rex-contact__card svg { width: 22px; height: 22px; color: var(--rex-maroon-lit); margin-bottom: .9rem; }
a.rex-contact__card:hover svg { color: var(--rex-gold); }
.rex-contact__label {
  display: block; font-family: var(--rex-display); font-weight: 600;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--rex-smoke); margin-bottom: .4rem;
}
.rex-contact__card strong { display: block; font-size: 1.02rem; font-weight: 500; line-height: 1.4; }
.rex-contact__card small { display: block; margin-top: .35rem; color: var(--rex-smoke); font-size: .78rem; }
a.rex-contact__card:hover strong { color: var(--rex-gold); }

.rex-contact__note {
  border-radius: var(--rex-radius);
  margin-top: 1.6rem; padding: 1.5rem 1.6rem;
  border: 1px solid var(--rex-line); border-left: 2px solid var(--rex-maroon);
}
.rex-contact__note p:not(.rex-eyebrow) { color: var(--rex-smoke); font-size: .92rem; }

/* term cards carry a description now, so the body needs structure */
.rex-termcard__body { display: block; padding: 1.15rem 1.25rem 1.3rem; }
.rex-termcard__head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.rex-termcard__desc {
  display: block; margin: .6rem 0 .9rem;
  color: var(--rex-smoke); font-size: .84rem; line-height: 1.55;
}
.rex-termcard__cta {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--rex-display); font-weight: 600;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rex-smoke); transition: color .3s var(--rex-ease);
}
.rex-termcard__cta em { font-style: normal; transition: transform .3s var(--rex-ease); }
.rex-termcard:hover .rex-termcard__cta { color: var(--rex-gold); }
.rex-termcard:hover .rex-termcard__cta em { transform: translateX(4px); }

/* Brand logos are artwork on a light ground — contain them and give them room,
   rather than cropping like a photograph. */
/* Marque logos are artwork drawn for a white ground, so the plate is a fixed
   colour rather than a theme token — --rex-bone now aliases --rex-text, which
   is dark in the light theme and produced a black frame around every logo. */
.rex-termcard--logo .rex-termcard__media {
  aspect-ratio: 16 / 10;
  background: #fff;
  display: grid; place-items: center;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  overflow: hidden;
  border-bottom: 1px solid var(--rex-border);
}
.rex-termcard--logo .rex-termcard__media img {
  /* auto + max-* lets the logo shrink to fit; width/height:100% does not
     resolve against an aspect-ratio box, so the natural size overflowed.
     min-*:0 is required too — grid items default to min-height:auto, which
     refuses to shrink below the image's intrinsic size and defeats max-height. */
  width: auto; height: auto;
  min-width: 0; min-height: 0;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: none;
  transition: transform .5s var(--rex-ease);
}
.rex-termcard--logo:hover .rex-termcard__media img { transform: scale(1.04); }

/* the card itself keeps the theme surface; only the plate is fixed white */
.rex-termcard--logo { background: var(--rex-surface-2); }

/* uploaded logo in the header */
.rex-brand--img { display: inline-flex; align-items: center; }
.rex-brand__img { height: 44px; width: auto; max-width: 210px; object-fit: contain; display: block; }
@media (max-width: 600px) { .rex-brand__img { height: 34px; max-width: 160px; } }

/* ---------- icons ---------- */

.rex-i { flex-shrink: 0; vertical-align: middle; }

.rex-card__more { display: inline-flex; align-items: center; gap: .35rem; }
.rex-card__more .rex-i,
.rex-termcard__cta .rex-i { transition: transform .3s var(--rex-ease); }
.rex-card:hover .rex-card__more .rex-i,
.rex-termcard:hover .rex-termcard__cta .rex-i { transform: translateX(4px); }

.rex-footer__contact .rex-i { color: var(--rex-gold); }

/* ---------- service benefits ---------- */

.rex-benefits {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem; margin: 0; padding: 0; list-style: none;
  background: none; border: 0;
}
.rex-benefits li { background: var(--rex-ink); padding: 1.6rem 1.5rem; border: 1px solid var(--rex-line); border-radius: var(--rex-radius); }
.rex-benefits__icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 1rem;
  color: var(--rex-gold);
  background: color-mix(in srgb, var(--rex-gold) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rex-gold) 26%, transparent);
}
.rex-benefits strong {
  display: block; margin-bottom: .35rem;
  font-family: var(--rex-display); font-weight: 700;
  font-size: 1rem; letter-spacing: .08em; text-transform: uppercase;
}
.rex-benefits li > span:not(.rex-benefits__icon) {
  display: block; color: var(--rex-smoke); font-size: .9rem; line-height: 1.6;
}

/* ---------- FAQ accordion ---------- */

.rex-faq { max-width: 820px; border-top: 1px solid var(--rex-line); }
.rex-faq__item { border-bottom: 1px solid var(--rex-line); }
.rex-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.25rem .25rem; cursor: pointer; list-style: none;
  font-family: var(--rex-display); font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.15rem); letter-spacing: .03em;
  text-transform: uppercase; line-height: 1.3;
  transition: color .3s var(--rex-ease);
}
.rex-faq__item summary::-webkit-details-marker { display: none; }
.rex-faq__item summary:hover { color: var(--rex-gold); }
.rex-faq__item summary:focus-visible { outline: 2px solid var(--rex-gold); outline-offset: 3px; }
.rex-faq__item summary .rex-i { color: var(--rex-gold); transition: transform .3s var(--rex-ease); }
.rex-faq__item[open] summary { color: var(--rex-gold); }
.rex-faq__item[open] summary .rex-i { transform: rotate(180deg); }
.rex-faq__answer { padding: 0 .25rem 1.4rem; }
.rex-faq__answer p { margin: 0; color: var(--rex-smoke); font-size: .95rem; line-height: 1.75; max-width: 68ch; }

/* ---------- "call for rates" as a real action ---------- */

.rex-card__rate--call {
  border-radius: var(--rex-radius-sm);
  display: inline-flex; align-items: center; gap: .42rem;
  color: var(--rex-gold);
  padding: .3rem .6rem .3rem .5rem;
  margin-left: -.5rem;
  border: 1px solid transparent;
  transition: border-color .3s var(--rex-ease), background .3s var(--rex-ease);
}
.rex-card__rate--call small { color: inherit; font-weight: 500; }
.rex-card__rate--call:hover {
  border-color: color-mix(in srgb, var(--rex-gold) 45%, transparent);
  background: color-mix(in srgb, var(--rex-gold) 8%, transparent);
}
.rex-card__rate--call:focus-visible { outline: 2px solid var(--rex-gold); outline-offset: 2px; }

.rex-price__call {
  border-radius: var(--rex-radius);
  display: inline-flex; align-items: center; gap: .85rem;
  padding: .75rem 1.15rem .75rem .95rem;
  border: 1px solid var(--rex-line);
  border-left: 2px solid var(--rex-gold);
  transition: background .3s var(--rex-ease), border-color .3s var(--rex-ease);
}
.rex-price__call .rex-i { color: var(--rex-gold); }
.rex-price__call strong {
  display: block; font-family: var(--rex-display); font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.1; color: var(--rex-bone);
  letter-spacing: .02em;
}
.rex-price__call small {
  display: block; margin-top: .15rem;
  color: var(--rex-smoke); font-size: .76rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.rex-price__call:hover { background: var(--rex-ink-2); border-color: var(--rex-gold); }
.rex-price__call:hover strong { color: var(--rex-gold); }
.rex-price__call:focus-visible { outline: 2px solid var(--rex-gold); outline-offset: 3px; }

/* ---------- vehicle actions & summary ---------- */

.rex-vehicle__actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.rex-vehicle__actions .rex-btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 420px) { .rex-vehicle__actions .rex-btn { flex-basis: 100%; } }

/* The imported excerpt is long and reads as supporting detail, so it sits after
   the price, actions and spec table rather than pushing them below the fold. */
.rex-vehicle__summary {
  margin: 1.5rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rex-line);
  color: var(--rex-smoke);
  font-size: .9rem;
  line-height: 1.7;
}

/* ---------- page banner ---------- */

.rex-pagehero { position: relative; display: grid; align-items: end; min-height: clamp(340px, 46vh, 520px); overflow: hidden; }
.rex-pagehero__media { position: absolute; inset: 0; }
.rex-pagehero__media img { width: 100%; height: 100%; object-fit: cover; }
/* These banners are already dark photographs — a heavy scrim turns them black.
   Enough to hold text contrast at the bottom, and little else. */
.rex-pagehero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--rex-scrim) 0%, color-mix(in srgb, var(--rex-scrim) 82%, transparent) 24%, color-mix(in srgb, var(--rex-scrim) 26%, transparent) 64%, transparent 100%),
    linear-gradient(100deg, color-mix(in srgb, var(--rex-maroon-deep) 26%, transparent), transparent 48%);
}
/* Lift the source a touch so detail survives the scrim. */
.rex-pagehero__media img { filter: brightness(1.12) contrast(1.04); }
.rex-pagehero__body { position: relative; padding-block: clamp(2rem, 5vw, 3.5rem); }
.rex-pagehero__body .rex-crumbs { margin-bottom: 1rem; color: color-mix(in srgb, var(--rex-on-image) 70%, transparent); }
.rex-pagehero__body .rex-crumbs a:hover { color: var(--rex-on-image); }
.rex-pagehero h1 { margin-bottom: .35em; font-size: clamp(2.1rem, 5.2vw, 4rem); color: var(--rex-on-image); }
.rex-pagehero__lede { max-width: 56ch; color: color-mix(in srgb, var(--rex-on-image) 76%, transparent); margin: 0; }

/* ---------- imported prose: figures & lists ---------- */

/* Legacy images came through at full size — some 1500px tall. Constrain them
   so a portrait shot cannot own the whole viewport. */
.rex-prose img { max-width: 100%; height: auto; }
.rex-prose figure { margin: 1.75rem 0; }
.rex-prose > figure img { max-height: 68vh; width: auto; margin-inline: auto; }

.rex-figuregrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(.8rem, 1.6vw, 1.25rem);
  margin: clamp(1.75rem, 3vw, 2.5rem) 0;
}
.rex-figuregrid figure {
  border-radius: var(--rex-radius);
  margin: 0; position: relative; overflow: hidden;
  border: 1px solid var(--rex-line);
  background: var(--rex-ink);
}
.rex-figuregrid figure img {
  display: block; width: 100%; height: 100%;
  aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .8s var(--rex-ease);
}
.rex-figuregrid figure:hover img { transform: scale(1.05); }
.rex-figuregrid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem .95rem .8rem;
  font-family: var(--rex-display); font-weight: 700;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rex-on-image);
  background: linear-gradient(to top, var(--rex-scrim) 14%, transparent);
}

/* Short headings used as a list of occasions. */
.rex-ticklist {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .55rem; list-style: none; margin: 1.4rem 0 1.8rem; padding: 0;
}
.rex-ticklist li {
  border-radius: var(--rex-radius);
  position: relative; margin: 0; padding: .7rem .9rem .7rem 2.1rem;
  border: 1px solid var(--rex-line);
  border-left: 2px solid var(--rex-maroon);
  font-family: var(--rex-display); font-weight: 600;
  font-size: .88rem; letter-spacing: .1em; text-transform: uppercase;
}
.rex-ticklist li::before {
  content: ""; position: absolute; left: .95rem; top: 50%;
  width: 6px; height: 6px; margin-top: -3px;
  background: var(--rex-gold);
}

/* A lone h6 with no figure to attach to still shouldn't look like a heading. */
.rex-prose h6 {
  font-family: var(--rex-body); font-weight: 500; font-size: .9rem;
  letter-spacing: .04em; text-transform: none; color: var(--rex-smoke);
  margin: .6rem 0 1.2rem;
}

/* ---------- reviews (Google) ---------- */

.rex-reviews {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--rex-border);
}
.rex-reviews__inner {
  display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem); align-items: center;
}
.rex-reviews__summary { display: grid; gap: .45rem; justify-items: start; }
.rex-reviews__summary .rex-eyebrow { margin-bottom: .2rem; }
.rex-reviews__label {
  margin: 0; font-family: var(--rex-display); font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
.rex-reviews__meta { margin: .2rem 0 0; color: var(--rex-text-muted); font-size: .95rem; }
.rex-reviews__meta a {
  color: var(--rex-text); font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rex-gold);
}
.rex-reviews__meta a:hover { color: var(--rex-gold); }
.rex-reviews__google {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: .55rem;
  font-family: var(--rex-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em;
  color: var(--rex-text);
}
.rex-reviews__google small { font-family: var(--rex-body); font-weight: 400; font-size: .8rem; color: var(--rex-text-muted); margin-left: .25rem; }
a.rex-reviews__google:hover { color: var(--rex-gold); }
@media (max-width: 900px) {
  /* minmax(0, …), not 1fr: a bare 1fr is minmax(auto, 1fr) and the scrolling
     track's full width would size the column and push the page sideways. */
  .rex-reviews__inner { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .rex-reviews__summary { justify-items: center; text-align: center; }
}

/* stars: SVG on currentColor, so one helper serves cards and chrome */
.rex-stars { display: inline-flex; gap: 2px; color: var(--rex-star); line-height: 0; }
.rex-stars__star { fill: currentColor; }
.rex-stars__star.is-empty { fill: var(--rex-border); }

/* carousel: native scroll-snap; the arrows only nudge it */
.rex-reviews__carousel { position: relative; min-width: 0; }
/* position: relative matters: the cards hold absolutely positioned screen-reader
   text, and an absolute box is clipped by the scroll container only if that
   container is its containing block — otherwise it escapes to the carousel and
   widens the whole page on mobile. */
.rex-reviews__track {
  position: relative;
  display: flex; gap: clamp(.9rem, 1.5vw, 1.25rem);
  margin: 0; padding: .35rem .25rem 1.1rem; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scroll-padding-inline: .25rem;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rex-reviews__track::-webkit-scrollbar { display: none; }
.rex-reviews__track:focus-visible { outline: 2px solid var(--rex-gold); outline-offset: 4px; }
.rex-reviews__track > li { flex: 0 0 min(100%, 320px); scroll-snap-align: start; }
@media (max-width: 560px) { .rex-reviews__track > li { flex-basis: 86%; } }
@media (prefers-reduced-motion: reduce) { .rex-reviews__track { scroll-behavior: auto; } }

.rex-reviews__arrow {
  position: absolute; top: 50%; z-index: 2;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; margin-top: -22px;
  border-radius: 50%; border: 1px solid var(--rex-border);
  background: var(--rex-surface-2); color: var(--rex-text); cursor: pointer;
  box-shadow: 0 6px 18px rgb(22 22 26 / .12);
  transition: color .25s var(--rex-ease), border-color .25s var(--rex-ease), opacity .25s var(--rex-ease);
}
.rex-reviews__arrow--prev { left: -22px; }
.rex-reviews__arrow--next { right: -22px; }
.rex-reviews__arrow:hover { color: var(--rex-gold); border-color: var(--rex-gold); }
.rex-reviews__arrow:focus-visible { outline: 2px solid var(--rex-gold); outline-offset: 2px; }
.rex-reviews__arrow[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
  .rex-reviews__arrow--prev { left: -8px; }
  .rex-reviews__arrow--next { right: -8px; }
}

/* No explicit height: the track's default align-items: stretch is what makes
   every card in the row the height of the tallest one, and any non-auto
   height (even 100%) switches that off. */
.rex-reviewcard {
  display: flex; flex-direction: column; gap: .7rem; margin: 0;
  padding: 1.25rem 1.35rem 1.3rem;
  background: var(--rex-surface-2); border: 1px solid var(--rex-border);
  border-radius: var(--rex-radius);
  transition: border-color .35s var(--rex-ease);
}
.rex-reviewcard:hover { border-color: var(--rex-gold); }
.rex-reviewcard__top { display: flex; align-items: center; gap: .8rem; }
.rex-reviewcard__avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: var(--rex-maroon); color: #fff;
  font-family: var(--rex-display); font-weight: 700; font-size: 1.1rem;
}
.rex-reviewcard__who { min-width: 0; }
.rex-reviewcard__who strong {
  display: block; font-size: .98rem; font-weight: 600; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rex-reviewcard__who time { display: block; color: var(--rex-text-muted); font-size: .78rem; }
.rex-reviewcard__source { margin-left: auto; flex-shrink: 0; line-height: 0; }
.rex-reviewcard__text {
  margin: 0; padding: 0; border: 0; font-style: normal;
  color: var(--rex-text); font-size: .93rem; line-height: 1.65;
}
.rex-reviewcard__text p { margin: 0; }
.rex-reviewcard__text--empty p { color: var(--rex-text-muted); font-style: italic; }
.rex-reviewcard__text[data-clamp] p {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden;
}
.rex-reviewcard[data-open="true"] .rex-reviewcard__text[data-clamp] p { display: block; -webkit-line-clamp: unset; overflow: visible; }
.rex-reviewcard__more {
  align-self: flex-start; margin-top: auto; padding: 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--rex-display); font-weight: 600;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rex-gold);
}
.rex-reviewcard__more:hover { color: var(--rex-maroon); }
.rex-reviewcard__more:focus-visible { outline: 2px solid var(--rex-gold); outline-offset: 3px; }

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

/* ---------- light page corrections ---------- */

/* The wordmark is pure-white artwork on transparent; the header is dark, so
   it is used as-is. */
.rex-brand__img { filter: none; }

/* Cards read better with a hairline shadow on the light page. */
.rex-card,
.rex-termcard,
.rex-reviewcard,
.rex-form-panel {
  box-shadow: 0 1px 2px rgb(22 22 26 / .04), 0 8px 24px rgb(22 22 26 / .05);
}

/* Form fields: white wells on the light page. */
.rex-field input, .rex-field select, .rex-field textarea { background: var(--rex-surface-2); }

/* ------------------------------------------------------------------
   Everything inside a photographic scrim is theme-independent.
   Scoped as one block so a new component inherits the right colours
   instead of needing another one-off fix.
   ------------------------------------------------------------------ */

.rex-hero,
.rex-pagehero,
.rex-cta-band,
.rex-figuregrid figure { color: var(--rex-on-image); }

/* gold accents keep the bright brand gold; the darkened light-theme gold
   disappears against a dark scrim */
.rex-hero .rex-eyebrow,
.rex-pagehero .rex-eyebrow,
.rex-cta-band .rex-eyebrow,
.rex-hero h1 em,
.rex-figuregrid figcaption { color: var(--rex-gold-on-image); }
.rex-figuregrid figcaption { color: var(--rex-on-image); }

/* ghost buttons on a scrim: light label and light hairline in both themes */
.rex-hero .rex-btn--ghost,
.rex-pagehero .rex-btn--ghost,
.rex-cta-band .rex-btn--ghost {
  --btn-fg: var(--rex-on-image);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rex-on-image) 34%, transparent);
}
.rex-hero .rex-btn--ghost:hover,
.rex-pagehero .rex-btn--ghost:hover,
.rex-cta-band .rex-btn--ghost:hover {
  --btn-fg: var(--rex-scrim);
  background: var(--rex-gold-on-image);
}

.rex-footer h4 { color: var(--rex-gold); }

/* ---------- elements that must not follow the theme ---------- */

/* The brand badge sits on maroon, so its label is always light — otherwise it
   inherits the dark body text in light mode and disappears into the red. */
.rex-card__brand { color: var(--rex-on-image); }

/* Overlay labels on photography stay light in both themes. */
.rex-figuregrid figcaption,
.rex-hero h1,
.rex-pagehero h1 { color: var(--rex-on-image); }

/* ---------- reservation ---------- */

.rex-reserve { display: grid; gap: clamp(1.6rem, 3vw, 3rem); grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); align-items: start; }
@media (max-width: 900px) { .rex-reserve { grid-template-columns: 1fr; } }

/* homepage enquiry: copy + form side by side, stacked on mobile */
.rex-enquire { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 900px) { .rex-enquire { grid-template-columns: minmax(0, 1fr); } }

.rex-steps { list-style: none; counter-reset: rexstep; margin: 0 0 1.8rem; padding: 0; }
.rex-steps li {
  counter-increment: rexstep; position: relative;
  padding: 0 0 1.15rem 2.6rem; margin: 0;
}
.rex-steps li::before {
  border-radius: var(--rex-radius-sm);
  content: counter(rexstep);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--rex-gold); color: var(--rex-gold);
  font-family: var(--rex-display); font-weight: 700; font-size: .82rem;
}
.rex-steps li::after {
  content: ""; position: absolute; left: 13px; top: 30px; bottom: 4px; width: 1px;
  background: var(--rex-border);
}
.rex-steps li:last-child::after { display: none; }
.rex-steps strong { display: block; font-family: var(--rex-display); font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.rex-steps span { display: block; color: var(--rex-text-muted); font-size: .88rem; line-height: 1.6; margin-top: .15rem; }

.rex-reserve__call { padding: 1.2rem 1.3rem; border: 1px solid var(--rex-border); border-left: 2px solid var(--rex-maroon); }

/* grouped form sections */
.rex-fieldset { border: 0; margin: 0 0 1.6rem; padding: 0; }
.rex-fieldset legend {
  padding: 0 0 .7rem; margin-bottom: .9rem; width: 100%;
  border-bottom: 1px solid var(--rex-border);
  font-family: var(--rex-display); font-weight: 700;
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--rex-gold);
}
.rex-form--reservation > .rex-fieldset:last-of-type { margin-bottom: 1rem; }

.rex-checks { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.rex-checks label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--rex-body); font-weight: 400; font-size: .9rem;
  letter-spacing: 0; text-transform: none; color: var(--rex-text); margin: 0;
}
.rex-checks input { width: auto; }

.rex-fieldnote, .rex-paynote {
  display: flex; gap: .65rem; align-items: flex-start;
  margin: .4rem 0 0; padding: .8rem 1rem;
  background: color-mix(in srgb, var(--rex-gold) 10%, transparent);
  border-left: 2px solid var(--rex-gold);
  color: var(--rex-text-muted); font-size: .86rem; line-height: 1.6;
}
.rex-paynote { margin: 0 0 1.4rem; }
.rex-paynote strong { color: var(--rex-text); }
.rex-fieldnote .rex-i, .rex-paynote .rex-i { color: var(--rex-gold); flex-shrink: 0; margin-top: .1rem; }

/* ---------- tables inside imported prose ---------- */

.rex-prose table {
  width: 100%; border-collapse: collapse;
  margin: 1.5rem 0; font-size: .92rem;
  border: 1px solid var(--rex-border);
}
.rex-prose table th,
.rex-prose table td {
  text-align: left; vertical-align: top;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--rex-border);
}
.rex-prose table tr:last-child th,
.rex-prose table tr:last-child td { border-bottom: 0; }
.rex-prose table th {
  width: 34%;
  font-family: var(--rex-display); font-weight: 600;
  font-size: .76rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--rex-text-muted);
  background: color-mix(in srgb, var(--rex-text) 4%, transparent);
}
.rex-prose table td { color: var(--rex-text); line-height: 1.6; }
@media (max-width: 560px) {
  .rex-prose table th, .rex-prose table td { display: block; width: auto; }
  .rex-prose table th { border-bottom: 0; padding-bottom: .3rem; }
}

/* A bare <strong> acting as a section title above a table. */
.rex-prose > strong {
  display: block; margin: 2rem 0 .2rem;
  font-family: var(--rex-display); font-weight: 700;
  font-size: 1rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rex-gold);
}
.rex-prose hr { border: 0; height: 1px; background: var(--rex-border); margin: 2rem 0; }

/* ---------- multi-section forms ---------- */

/* The outer element is a vertical stack of fieldsets; only the inner .rex-form
   wrappers are two-column grids. Putting .rex-form on both turned the
   fieldsets themselves into grid items and paired them side by side. */
.rex-formstack { display: block; }
.rex-formstack .rex-field--full { grid-column: 1 / -1; }

.rex-formstack__submit {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-top: .4rem;
}
.rex-formstack__submit span { color: var(--rex-text-muted); font-size: .84rem; }

/* Buttons size to their label; only opt-in blocks stretch. */
.rex-btn { align-self: start; width: auto; }
.rex-form > .rex-field--full > .rex-btn { width: auto; }

/* ---------- banner → content rhythm ---------- */

/* A banner already gives the page its opening beat, so the section under it
   does not need a full section's worth of padding on top. */
.rex-pagehero + .rex-section,
.rex-pagehero + .rex-wrap.rex-section { padding-top: clamp(1.75rem, 3.5vw, 3rem); }
.rex-pagehero + .rex-wrap.rex-section > .rex-prose { margin-top: 0; }
.rex-pagehero { min-height: clamp(300px, 38vh, 440px); }

/* ---------- rental terms ---------- */

.rex-terms__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .9rem; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  background: none;
  border: 0;
}
.rex-terms__item {
  border: 1px solid var(--rex-border); border-radius: var(--rex-radius);
  display: grid; grid-template-columns: auto 1fr; gap: .15rem .8rem;
  align-content: start;
  padding: 1.15rem 1.25rem;
  background: var(--rex-surface-2);
}
.rex-terms__icon { grid-row: 1 / 3; align-self: center; color: var(--rex-gold); display: grid; place-items: center; }
.rex-terms__item dt {
  font-family: var(--rex-display); font-weight: 600;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rex-text-muted);
}
.rex-terms__item dd { margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.35; }

.rex-terms__notes { display: grid; gap: .55rem; max-width: 78ch; }
.rex-terms__notes p {
  display: flex; gap: .7rem; align-items: flex-start; margin: 0;
  color: var(--rex-text-muted); font-size: .9rem; line-height: 1.65;
}
.rex-terms__notes .rex-i { color: var(--rex-gold); flex-shrink: 0; margin-top: .18rem; }
.rex-terms__link { margin-top: .9rem !important; }

/* ---------- search ---------- */

.rex-search { display: flex; gap: 0; max-width: 560px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.rex-search input {
  border-radius: var(--rex-radius-sm) 0 0 var(--rex-radius-sm);
  flex: 1; min-width: 0; padding: .9rem 1.1rem;
  background: var(--rex-surface-2); border: 1px solid var(--rex-border); border-right: 0;
  color: var(--rex-text); font-family: var(--rex-body); font-size: .95rem;
}
.rex-search input:focus { outline: 0; border-color: var(--rex-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rex-gold) 16%, transparent); }
.rex-search button {
  border-radius: 0 var(--rex-radius-sm) var(--rex-radius-sm) 0;
  display: grid; place-items: center; width: 52px;
  background: var(--rex-maroon); border: 1px solid var(--rex-maroon);
  color: #fff; cursor: pointer;
  transition: background .3s var(--rex-ease);
}
.rex-search button:hover { background: var(--rex-maroon-lit); }

.rex-search__heading {
  font-size: 1.1rem; letter-spacing: .16em; color: var(--rex-gold);
  margin: clamp(2rem, 4vw, 3rem) 0 1.2rem;
  padding-bottom: .7rem; border-bottom: 1px solid var(--rex-border);
}

.rex-results { list-style: none; margin: 0; padding: 0; }
.rex-results li { border-bottom: 1px solid var(--rex-border); }
.rex-results a { display: block; padding: 1.1rem .25rem; }
.rex-results strong {
  display: block; font-family: var(--rex-display); font-weight: 700;
  font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase;
}
.rex-results small { display: block; margin-top: .25rem; color: var(--rex-text-muted); font-size: .88rem; line-height: 1.6; }
.rex-results a:hover strong { color: var(--rex-gold); }

.rex-noresults { max-width: 56ch; }
.rex-noresults p { color: var(--rex-text-muted); }
.rex-noresults p:last-child { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* ---------- membership tiers ---------- */

.rex-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; background: none; border: 0; }
.rex-tier { display: grid; gap: .3rem; align-content: start; padding: 1.6rem 1.4rem 1.5rem; background: var(--rex-surface-2); transition: background .3s var(--rex-ease); border: 1px solid var(--rex-border); border-radius: var(--rex-radius); }
.rex-tier:hover { background: var(--rex-surface-3); }
.rex-tier__rank { font-family: var(--rex-display); font-weight: 700; font-size: .72rem; letter-spacing: .2em; color: var(--rex-text-muted); }
.rex-tier strong { font-family: var(--rex-display); font-weight: 800; font-size: 1.5rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.rex-tier__note { color: var(--rex-text-muted); font-size: .88rem; line-height: 1.55; margin-bottom: .5rem; }
.rex-tier a { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--rex-display); font-weight: 600; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rex-gold); }
.rex-tier a .rex-i { transition: transform .3s var(--rex-ease); }
.rex-tier a:hover .rex-i { transform: translateX(3px); }
.rex-tier--top { box-shadow: inset 0 3px 0 var(--rex-gold); }

/* ==================================================================
   CLASSIC LOOK — the original royalexoticsusa.com, rebuilt
   ------------------------------------------------------------------
   Everything below re-skins the components above to match the old
   site (Feb 2026 capture): white page, solid black header with
   "CALL TO BOOK!", centred Poppins headings, maroon pill buttons,
   gold H1, grey review cards, cut-out cars on white, #222 Royal Club
   band, #111 footer. Kept as one layer so the look can be tuned in
   one place.
   ================================================================== */

:root {
  --rex-star: #f9b707;          /* Google-review yellow, as on the old widget */
  --rex-headline-gold: #b48e29; /* the old #d4af37, deepened to 3:1 on white */
  --rex-max: 1280px;
}

.rex-section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.rex-center { text-align: center; margin-top: clamp(1.75rem, 3vw, 2.5rem); }

/* ---------- headings & eyebrows ---------- */

.rex-head { max-width: 72ch; margin-inline: auto; text-align: center; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.rex-head p { color: var(--rex-text-muted); }
.rex-head p a { color: var(--rex-maroon); font-weight: 500; }
/* the old inner pages had a plain title, no kicker */
.rex-head .rex-eyebrow { display: none; }

.rex-eyebrow {
  font-family: var(--rex-body); font-weight: 700;
  font-size: clamp(.95rem, 1.2vw, 1.15rem); letter-spacing: .1em;
  color: var(--rex-maroon);
}
.rex-eyebrow::before { display: none; }

/* ---------- buttons: maroon pills ---------- */

.rex-btn {
  border-radius: 999px;
  padding: .8rem 1.85rem;
  font-family: var(--rex-body); font-weight: 500;
  font-size: .95rem; letter-spacing: .01em; line-height: 1.2;
  justify-content: center;
}
.rex-btn:hover { background: #a80f0f; transform: translateY(-1px); }
.rex-btn--gold { --btn-bg: var(--rex-maroon); --btn-fg: #fff; }
.rex-btn--gold:hover { background: #a80f0f; }
.rex-btn--ghost { --btn-fg: var(--rex-maroon); box-shadow: inset 0 0 0 2px var(--rex-maroon); }
.rex-btn--ghost:hover { --btn-fg: #fff; background: var(--rex-maroon); }

/* ---------- header: solid black bar ---------- */

.rex-header { background: #000; backdrop-filter: none; border-bottom: 0; }
.rex-header__inner { min-height: 70px; max-width: 1440px; gap: 1rem; }
.rex-brand img, .rex-brand__img { max-height: 60px; width: auto; }
@media (min-width: 901px) { .rex-header__inner > .rex-nav { margin-left: clamp(.5rem, 3vw, 3.5rem); } }

.rex-nav a:not(.rex-btn) {
  font-family: var(--rex-display); font-weight: 600;
  font-size: .95rem; letter-spacing: .01em;
  color: #fff;
}
.rex-nav a:not(.rex-btn)::after { height: 2px; background: #fff; }
.rex-nav a:not(.rex-btn):hover { color: #fff; }
.rex-nav .current-menu-item > a::after,
.rex-nav .current-menu-ancestor > a::after,
.rex-nav .current_page_item > a::after { transform: scaleX(1); }

.rex-header__call {
  margin-left: auto; flex-shrink: 0;
  display: grid; justify-items: center; line-height: 1.4;
  font-family: var(--rex-body); color: #fff; text-align: center;
  transition: color .25s var(--rex-ease);
}
.rex-header__call span { font-size: .82rem; font-weight: 500; text-transform: uppercase; }
.rex-header__call strong { font-size: .92rem; font-weight: 500; white-space: nowrap; }
.rex-header__call:hover { color: var(--rex-brand-gold); }

@media (min-width: 901px) {
  .rex-nav .rex-menu-home { display: list-item; }
  .rex-nav__cta { display: none; }
  /* Eight items, logo and phone share the bar: tighten before it wraps. */
  .rex-nav > ul { gap: clamp(.85rem, 1.5vw, 1.9rem); }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .rex-nav a:not(.rex-btn) { font-size: .82rem; }
  .rex-nav > ul { gap: .8rem; }
  .rex-header__call span { display: none; }
  .rex-header__call strong { font-size: .82rem; }
  .rex-brand img, .rex-brand__img { max-height: 50px; }
}

/* dropdowns: black, compact, no blurbs, like the old menu */
.rex-mega small { display: none; }
.rex-mega strong { font-weight: 600; font-size: .9rem; letter-spacing: .02em; color: #fff; }
.rex-mega a:hover strong { color: var(--rex-brand-gold); }
@media (min-width: 901px) {
  /* .rex-nav ul sets a wide flex gap that also hit the panel's grid rows */
  .rex-nav .rex-mega { gap: 0; padding: 6px; }
  .rex-mega { background: #000; border: 1px solid #222; border-top: 2px solid var(--rex-maroon); border-radius: 0 0 8px 8px; box-shadow: 0 18px 40px rgb(0 0 0 / .45); }
  .rex-mega:has(> li:nth-child(4)) { grid-template-columns: minmax(240px, 1fr); }
  .rex-mega a { padding: .65rem 1rem; }
  .rex-mega a:hover { background: #151515; border-left-color: var(--rex-maroon); }
}
@media (max-width: 900px) {
  .rex-nav .rex-mega { gap: 0; }
  .rex-mega a { padding: .55rem .25rem; }
  .rex-nav__foot a { text-transform: none; letter-spacing: 0; }
}

/* phone & tablet: burger left, logo centre, "Call to book" right — the old mobile bar */
@media (max-width: 900px) {
  .rex-header { background: #000; }
  .rex-header__inner {
    display: grid; grid-template-columns: 48px minmax(0, 1fr) auto;
    min-height: 70px; padding-inline: .75rem; gap: .5rem;
  }
  .rex-burger { grid-column: 1; grid-row: 1; color: #fff; justify-self: start; }
  .rex-brand { grid-column: 2; grid-row: 1; justify-self: center; }
  .rex-header__call { grid-column: 3; grid-row: 1; margin: 0; max-width: 150px; }
  .rex-header__call span, .rex-header__call strong { font-size: .72rem; }
  .rex-brand img, .rex-brand__img { max-height: 52px; }

  /* off-canvas slides in from the left, under the burger */
  .rex-nav { left: 0; right: auto; transform: translateX(-100%); border-left: 0; border-right: 1px solid var(--rex-border); background: #0b0b0b; }
  .rex-nav__head { background: #0b0b0b; }
  .rex-nav > ul > li > a { font-size: .98rem; letter-spacing: .02em; }
  .rex-nav .rex-menu-home { display: list-item; }
}
@media (max-width: 380px) {
  .rex-header__call span { display: none; }
}

/* ---------- Google reviews: first section, grey cards ---------- */

.rex-reviews { border-bottom: 0; padding-block: clamp(1.75rem, 3vw, 2.5rem) .5rem; }
.rex-reviews__inner { max-width: 1440px; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.rex-reviews__summary { justify-items: center; text-align: center; gap: .3rem; }
.rex-reviews__label {
  font-family: var(--rex-body); font-weight: 600;
  font-size: clamp(1.4rem, 2vw, 1.7rem); letter-spacing: .01em; color: #000;
}
.rex-reviews__meta { color: #000; font-size: .95rem; }
.rex-reviews__meta a { color: #000; font-weight: 600; text-decoration-color: currentColor; }
.rex-reviews__google { margin-top: .1rem; }
.rex-gword { font-family: var(--rex-body); font-weight: 500; font-size: 2.1rem; letter-spacing: -.03em; line-height: 1; }
.rex-gword span:nth-child(1), .rex-gword span:nth-child(4) { color: #4285f4; }
.rex-gword span:nth-child(2), .rex-gword span:nth-child(6) { color: #ea4335; }
.rex-gword span:nth-child(3) { color: #fbbc05; }
.rex-gword span:nth-child(5) { color: #34a853; }

.rex-reviewcard { background: var(--rex-surface-3); border: 0; box-shadow: none; }
.rex-reviewcard:hover { border-color: transparent; }
.rex-reviewcard__who strong { color: #000; }
.rex-reviewcard__text { color: #222; font-size: .92rem; }
.rex-reviewcard__more { font-family: var(--rex-body); font-weight: 600; letter-spacing: .04em; color: var(--rex-maroon); }
.rex-reviews__track > li { flex-basis: calc((100% - 3 * 1.25rem) / 4); }
@media (max-width: 1200px) { .rex-reviews__track > li { flex-basis: calc((100% - 2 * 1.1rem) / 3); } }
@media (max-width: 900px)  { .rex-reviews__track > li { flex-basis: calc((100% - 1rem) / 2); } }
@media (max-width: 600px)  { .rex-reviews__track > li { flex-basis: 92%; } }
.rex-reviews__arrow { background: #fff; }
.rex-reviews__arrow:hover { color: var(--rex-maroon); border-color: var(--rex-maroon); }

/* ---------- intro: "Top rated" + gold H1 ---------- */

.rex-intro { text-align: center; padding-block: clamp(1.75rem, 3.5vw, 2.75rem) .5rem; }
.rex-intro .rex-eyebrow { display: block; margin-bottom: clamp(1.25rem, 3vw, 2.25rem); }
.rex-intro h1 {
  color: var(--rex-headline-gold);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.2;
  margin-bottom: .9rem;
}
.rex-intro__lede { max-width: 72ch; margin: 0 auto; color: #222; font-size: clamp(.98rem, 1.1vw, 1.08rem); line-height: 1.8; }

/* ---------- class tiles: cut-out cars straight on white ---------- */

.rex-tiles { max-width: 1440px; gap: clamp(.5rem, 2vw, 2rem); padding-top: clamp(1.25rem, 3vw, 2.5rem); }
@media (max-width: 899px) { .rex-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .rex-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rex-tile, .rex-tile:hover {
  background: none; border: 0; box-shadow: none; padding: 0; transform: none;
  gap: clamp(.4rem, 1.5vw, 1.25rem);
}
.rex-tile__media { aspect-ratio: 16 / 10; }
.rex-tile:hover .rex-tile__media img { transform: translateY(-6px) scale(1.03); }
.rex-tile__label {
  display: block; font-family: var(--rex-body); font-weight: 600;
  font-size: clamp(.9rem, 1.4vw, 1.15rem); text-transform: uppercase; letter-spacing: .01em; color: #222;
}
.rex-tile:hover .rex-tile__label { color: var(--rex-maroon); }

/* ---------- Book online / Call / Inquire ---------- */

.rex-ctarow {
  display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center;
  gap: 1rem 1.5rem; max-width: 1180px;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem);
}
.rex-ctarow .rex-btn { min-width: 172px; font-size: 1rem; text-transform: uppercase; }
@media (max-width: 600px) { .rex-ctarow { flex-direction: column; gap: 1.6rem; } }

/* ---------- "Make an Instant Booking" photo band ---------- */

.rex-band {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  min-height: clamp(240px, 32vw, 460px);
  background: #111; color: #fff;
}
.rex-band__media { position: absolute; inset: 0; z-index: -1; }
.rex-band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.rex-band__media::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .32); }
.rex-band__inner { padding-block: 2.5rem; }
.rex-band h2 {
  color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1;
  text-shadow: 0 2px 8px rgb(0 0 0 / .55); margin-bottom: 1.4rem;
}
.rex-band .rex-btn { text-transform: uppercase; }

/* ---------- Royal Club: plain #222 band, centred ---------- */

.rex-club { margin-top: 0; background: #222; border: 0; text-align: center; }
.rex-club__inner { padding-block: clamp(2.25rem, 4vw, 3rem) clamp(2.5rem, 5vw, 3.5rem); }
.rex-club h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-bottom: .75rem; }
.rex-club__lede { max-width: 62ch; margin: 0 auto 1.6rem; color: #fff; font-size: 1rem; line-height: 1.75; }

/* ---------- vehicle cards: photo + title, as the old showroom ---------- */

.rex-fleet { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1rem, 2vw, 1.75rem); }
.rex-card, .rex-card:hover {
  background: none; border: 0; border-radius: 0; box-shadow: none;
  overflow: visible; transform: none;
}
.rex-card__media { border-radius: 6px; background: var(--rex-surface-3); aspect-ratio: 4 / 3; }
.rex-card:hover .rex-card__media img { transform: scale(1.05); }
.rex-card__brand--logo { width: 46px; height: 46px; border-radius: 6px; }
.rex-card__body { padding: .9rem 0 0; }
.rex-card__body h3 {
  font-family: var(--rex-body); font-weight: 500;
  font-size: 1.05rem; line-height: 1.35; margin-bottom: .55rem; color: #222;
}
.rex-card:hover .rex-card__body h3 a { color: var(--rex-maroon); }
.rex-card__rate { font-family: var(--rex-body); color: var(--rex-maroon); }
.rex-card__rate small { color: var(--rex-maroon); font-size: .78rem; font-weight: 500; letter-spacing: .02em; }
.rex-card__rate--call { display: inline-flex; align-items: center; gap: .35rem; }
.rex-card__more {
  font-family: var(--rex-body); font-weight: 600; font-size: .74rem; letter-spacing: .06em;
  color: #222; border-bottom: 2px solid #222; padding-bottom: 2px;
  display: inline-flex; align-items: center; gap: .3rem;
}
.rex-card__more .rex-i { display: none; }
.rex-card__more:hover { color: var(--rex-maroon); border-color: var(--rex-maroon); }

/* homepage "Featured Exotics": centred titles, three across */
.rex-fleet--home .rex-card__body { text-align: center; }
.rex-fleet--home .rex-card__foot { justify-content: center; gap: 1.5rem; }
@media (max-width: 899px) and (min-width: 560px) { .rex-fleet--home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) {
  /* two per row, like the old mobile carousel */
  .rex-fleet--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .75rem; }
  .rex-fleet--home .rex-card__body h3 { font-size: .86rem; }
  .rex-fleet--home .rex-card__foot { flex-direction: column; gap: .5rem; }
  .rex-fleet--home .rex-card__brand--logo { width: 36px; height: 36px; padding: 4px; top: .5rem; left: .5rem; }
}

/* ---------- Book By Car Make: logos straight on white ---------- */

.rex-makes { padding-top: clamp(1rem, 3vw, 2rem); }
.rex-makes__grid { gap: clamp(1.25rem, 3vw, 2.5rem) clamp(.5rem, 2vw, 1.5rem); }
@media (max-width: 559px) { .rex-makes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rex-make, .rex-make:hover { background: none; border: 0; box-shadow: none; padding: 0; transform: none; gap: .6rem; }
.rex-make__logo { width: clamp(70px, 9vw, 120px); }
.rex-make strong { font-family: var(--rex-body); font-weight: 500; font-size: .95rem; letter-spacing: 0; text-transform: none; color: #222; }
.rex-make:hover strong { color: var(--rex-maroon); }

/* ---------- homepage SEO copy ---------- */

.rex-story { padding-top: clamp(1.5rem, 4vw, 3rem); }
.rex-story__prose { max-width: 1120px; margin-inline: auto; color: #444; }
.rex-story__prose > p:first-of-type { font-size: inherit; line-height: inherit; }
.rex-story__prose h2 { text-align: center; color: #222; font-size: clamp(1.5rem, 2.6vw, 2.15rem); margin: 1.5em 0 .7em; }
.rex-story__prose p { line-height: 1.85; }

/* ---------- homepage enquiry ---------- */

.rex-home-enquire { background: #f7f7f7; }
.rex-home-enquire .rex-form-panel { max-width: 920px; margin-inline: auto; }

/* ---------- forms ---------- */

.rex-form-panel { background: #fff; border: 1px solid var(--rex-border); }
.rex-field label { font-family: var(--rex-body); font-weight: 500; font-size: .82rem; letter-spacing: .02em; color: #333; }
.rex-field input, .rex-field select, .rex-field textarea { background: #fff; border-color: #cfcfcf; border-radius: 6px; color: #222; }
.rex-field input:focus, .rex-field select:focus, .rex-field textarea:focus { border-color: var(--rex-maroon); box-shadow: 0 0 0 3px rgb(139 0 0 / .12); }

/* ---------- inner-page bits ---------- */

.rex-crumbs { text-transform: none; letter-spacing: 0; font-size: .82rem; }
.rex-crumbs a:hover { color: var(--rex-maroon); }
.rex-prose a { color: var(--rex-maroon); }
.rex-chip { border-radius: 999px; font-family: var(--rex-body); font-weight: 500; font-size: .85rem; letter-spacing: 0; text-transform: none; }
.rex-termcard__body strong { font-family: var(--rex-body); font-weight: 600; letter-spacing: 0; text-transform: none; }
.rex-termcard:hover .rex-termcard__body strong { color: var(--rex-maroon); }
.rex-termcard__media img { filter: none; }
.rex-pagination li > .page-numbers { border-radius: 999px; font-family: var(--rex-body); letter-spacing: 0; }

/* ---------- footer: #111, Information / contact / social ---------- */

.rex-cta-band { display: none; }
.rex-footer { background: #111; color: #fff; padding-block: clamp(2.75rem, 5vw, 4rem) 1.5rem; }
.rex-footer__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, .8fr);
  gap: clamp(1.75rem, 4vw, 3.5rem); max-width: 1100px; margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 900px) { .rex-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } }
.rex-footer__title {
  font-family: var(--rex-body); font-weight: 500; font-size: 1.25rem; color: #fff;
  padding-bottom: .9rem; margin-bottom: 1.1rem; border-bottom: 1px solid #444;
}
.rex-footer__links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.rex-footer__links li { margin-bottom: .55rem; break-inside: avoid; }
.rex-footer a, .rex-footer__links a { color: #fff; font-size: .93rem; font-weight: 500; }
.rex-footer__links a:hover, .rex-footer__contact a:hover { color: var(--rex-brand-gold); padding-left: 0; }
.rex-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.rex-footer__contact li { display: flex; align-items: flex-start; gap: .65rem; margin: 0; font-size: .93rem; font-weight: 500; }
.rex-footer__contact .rex-i { flex-shrink: 0; margin-top: .25em; color: #fff; }
.rex-footer__contact a, .rex-footer__contact span { color: #fff; font-size: .93rem; }
.rex-footer__tag { margin: 1.4rem 0 0; font-weight: 600; font-size: .95rem; color: #fff; }
.rex-footer__social { list-style: none; margin: 0; padding: 0; display: flex; gap: .6rem; }
.rex-footer__social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: #222; color: #fff; transition: background .25s var(--rex-ease);
}
.rex-footer__social a:hover { background: var(--rex-maroon); }
.rex-footer__bar { justify-content: center; border-top: 1px solid #2c2c2c; color: #9a9a9a; font-size: .82rem; max-width: 1100px; margin-inline: auto; }

/* ---------- floating contact widgets: see the end of this file ---------- */

.rex-callbar { display: none !important; }
body { padding-bottom: 0 !important; }

/* ---------- classic look: fixes from the first visual pass ---------- */

/* photos fill the frame: the link around the <img> must be a block, and the
   frame matches the rex-card crop (720x450) so nothing is cut */
.rex-card__media { aspect-ratio: 16 / 10; }
.rex-card__media > a:not(.rex-card__brand) { display: block; width: 100%; height: 100%; }

/* phones: summary above the carousel (the base rule above re-set the columns) */
@media (max-width: 900px) {
  .rex-reviews__inner { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}

/* the off-canvas panel now opens from the left: its shadow must only show when open */
@media (max-width: 900px) {
  .rex-nav { box-shadow: none; }
  .rex-nav[data-open="true"] { box-shadow: 24px 0 60px rgb(0 0 0 / .45); }
}

@media (max-width: 600px) { .rex-ctarow { align-items: center; } }

.rex-footer__contact span { color: #fff; font-size: .93rem; letter-spacing: 0; text-transform: none; min-width: 0; }
.rex-ctarow .rex-btn, .rex-band .rex-btn, .rex-club .rex-btn, .rex-center .rex-btn { align-self: center; }

/* ---------- classic look: inner pages ---------- */

/* photo banners: plain title like the old pages, readable breadcrumb */
.rex-pagehero .rex-eyebrow { display: none; }
.rex-pagehero .rex-crumbs, .rex-pagehero .rex-crumbs a, .rex-pagehero .rex-crumbs span { color: rgb(255 255 255 / .85); opacity: 1; }
.rex-pagehero h1 { font-weight: 600; }

/* body copy sits centred under the centred titles, as a readable column */
.rex-section > .rex-prose,
.rex-wrap > .rex-prose,
.rex-wrap.rex-section > .rex-prose { margin-inline: auto; max-width: 900px; }

/* vehicle page: lighter title like the original */
.rex-vehicle h1 { font-weight: 500; color: #333; }
.rex-vehicle__brandline { font-family: var(--rex-body); font-weight: 600; letter-spacing: .08em; color: var(--rex-maroon); }
@media (max-width: 900px) { .rex-nav .rex-mega { margin-left: 1.25rem; padding-left: .85rem; } }
@media (max-width: 900px) { .rex-header .rex-brand img, .rex-header .rex-brand__img { max-height: 62px; } .rex-header__inner { min-height: 74px; } }
/* logo size as the original: the earlier fixed heights (44px / 34px) win over max-height */
.rex-header .rex-brand__img { height: 58px; max-width: 120px; }
@media (max-width: 1180px) and (min-width: 901px) { .rex-header .rex-brand__img { height: 50px; } }
@media (max-width: 900px) { .rex-header .rex-brand__img { height: 58px; max-width: 120px; } }


/* ==================================================================
   FLOATING CONTACT WIDGETS — the old site's side "Call to book now" tab
   and bottom-left "+" menu (call / text / WhatsApp), redesigned.
   ================================================================== */

/* ---- side tab: black arrow strip over a maroon call button ---- */
.rex-calltab {
  position: fixed; right: 0; top: 50%; z-index: 95;
  display: grid; width: 64px;
  transform: translateY(-50%);
  filter: drop-shadow(-3px 6px 14px rgb(0 0 0 / .25));
  transition: transform .35s var(--rex-ease);
}
.rex-calltab__toggle {
  display: grid; place-items: center; height: 30px; padding: 0;
  background: #000; color: #fff; border: 0; cursor: pointer;
  border-radius: 10px 0 0 0;
}
.rex-calltab__toggle .rex-i { transition: transform .35s var(--rex-ease); }
.rex-calltab__link {
  display: grid; justify-items: center; gap: .35rem;
  padding: .7rem .35rem .75rem;
  background: var(--rex-maroon); color: #fff;
  border-radius: 0 0 0 10px;
  font-family: var(--rex-body); font-weight: 600; font-size: .64rem;
  line-height: 1.15; text-align: center; text-transform: uppercase; letter-spacing: .02em;
  transition: background .25s var(--rex-ease);
}
.rex-calltab__link:hover { background: #a80f0f; }
.rex-calltab__toggle:focus-visible, .rex-calltab__link:focus-visible { outline: 2px solid var(--rex-brand-gold); outline-offset: -2px; }
/* tucked away: only the black arrow strip stays, pointing back in */
.rex-calltab[data-collapsed="true"] { transform: translate(calc(100% - 26px), -50%); }
.rex-calltab[data-collapsed="true"] .rex-calltab__toggle { border-radius: 10px 0 0 10px; justify-items: start; padding-left: 4px; height: 44px; }
.rex-calltab[data-collapsed="true"] .rex-calltab__toggle .rex-i { transform: rotate(180deg); }
.rex-calltab[data-collapsed="true"] .rex-calltab__link { visibility: hidden; }
@media (max-width: 600px) {
  .rex-calltab { width: 58px; top: 58%; }
  .rex-calltab__link { font-size: .58rem; padding: .6rem .3rem .65rem; }
}

/* ---- "+" menu, bottom-left ---- */
.rex-fab {
  position: fixed; left: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 96;
  display: grid; justify-items: start; gap: .75rem;
}
.rex-fab__toggle {
  display: grid; place-items: center;
  width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%;
  background: #800000; color: #fff; cursor: pointer;
  box-shadow: 0 8px 22px rgb(0 0 0 / .3);
  transition: background .25s var(--rex-ease), transform .25s var(--rex-ease);
}
.rex-fab__toggle:hover { background: #a80f0f; transform: scale(1.04); }
.rex-fab__toggle .rex-i { transition: transform .3s var(--rex-ease); }
.rex-fab[data-open="true"] .rex-fab__toggle .rex-i { transform: rotate(135deg); }
.rex-fab__toggle:focus-visible { outline: 3px solid var(--rex-brand-gold); outline-offset: 3px; }

.rex-fab__menu {
  display: grid; gap: .7rem; margin: 0; padding: 0 0 0 4px; list-style: none;
  visibility: hidden;
}
.rex-fab__item {
  display: flex; align-items: center; gap: .7rem;
  opacity: 0; transform: translateY(14px) scale(.9);
  transition: opacity .22s var(--rex-ease), transform .28s var(--rex-ease);
}
.rex-fab__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 50%; color: #fff;
  box-shadow: 0 6px 16px rgb(0 0 0 / .25);
  transition: transform .2s var(--rex-ease);
}
.rex-fab__item--call .rex-fab__icon { background: #1d588d; }
.rex-fab__item--sms  .rex-fab__icon { background: #4fa82f; }
.rex-fab__item--wa   .rex-fab__icon { background: #25d366; }
.rex-fab__label {
  padding: .5rem .85rem; border-radius: 8px;
  background: #fff; color: #222;
  box-shadow: 0 6px 18px rgb(0 0 0 / .18);
  font-family: var(--rex-body); font-weight: 600; font-size: .8rem;
  white-space: nowrap; text-transform: uppercase; letter-spacing: .02em;
}
.rex-fab__label b { display: block; font-weight: 500; font-size: .78rem; color: #555; text-transform: none; letter-spacing: 0; }
.rex-fab__item:hover .rex-fab__icon, .rex-fab__item:focus-visible .rex-fab__icon { transform: scale(1.07); }
.rex-fab__item:hover .rex-fab__label { color: var(--rex-maroon); }
.rex-fab__item:focus-visible { outline: none; }
.rex-fab__item:focus-visible .rex-fab__label { outline: 2px solid var(--rex-maroon); outline-offset: 2px; }

.rex-fab[data-open="true"] .rex-fab__menu { visibility: visible; }
.rex-fab[data-open="true"] .rex-fab__item { opacity: 1; transform: none; }
/* stagger: the item nearest the button appears first */
.rex-fab[data-open="true"] li:nth-child(3) .rex-fab__item { transition-delay: 0s; }
.rex-fab[data-open="true"] li:nth-child(2) .rex-fab__item { transition-delay: .05s; }
.rex-fab[data-open="true"] li:nth-child(1) .rex-fab__item { transition-delay: .1s; }

/* a soft veil behind the open menu so the labels never sit on top of page text */
.rex-fab-veil {
  position: fixed; inset: 0; z-index: 94;
  background: linear-gradient(20deg, rgb(0 0 0 / .45), rgb(0 0 0 / .08) 70%);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--rex-ease);
}
.rex-fab-veil[data-open="true"] { opacity: 1; pointer-events: auto; }

@media (max-width: 600px) {
  .rex-fab__toggle { width: 56px; height: 56px; }
  .rex-fab__icon { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .rex-fab__item, .rex-calltab { transition: none; }
}
/* labels line up as one even column */
.rex-fab__label { min-width: 13rem; min-height: 3.1rem; display: grid; align-content: center; }
@media (max-width: 380px) { .rex-fab__label { min-width: 11.5rem; } }


/* ==================================================================
   VEHICLE PAGE — the original layout: photo | title, make logo,
   "Call for Price", pitch, rates table, notes, share, buttons;
   then full-width Specifications and the description.
   ================================================================== */

.rex-vpage { padding-block: clamp(1.25rem, 3vw, 2.25rem) clamp(2.5rem, 5vw, 4rem); }
.rex-vpage .rex-crumbs { margin-bottom: 1.1rem; }

.rex-vtop { display: grid; gap: 1.75rem; align-items: start; }
@media (min-width: 981px) {
  .rex-vtop { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
  .rex-vtop__media { position: sticky; top: 90px; }
}
.rex-vtop .rex-gallery__main { border: 0; border-radius: 0; background: #f0f0f0; }

.rex-vtitle { font-family: var(--rex-body); font-weight: 500; color: #333;
  font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.2; margin: 0 0 .9rem; text-transform: none; letter-spacing: 0; }

.rex-vmake { display: inline-block; margin-bottom: 1.1rem; }
.rex-vmake img { display: block; height: 70px; width: auto; max-width: 140px; object-fit: contain; }
.rex-vmake--text { font-weight: 600; color: var(--rex-maroon); }

.rex-vprice { margin: 0 0 1.25rem; }
.rex-vprice strong { font-size: 2rem; color: var(--rex-maroon); }

/* "Call for Price": the old red pill, now with the number on it */
.rex-btn.rex-vcall {
  border-radius: 999px; padding: .8rem 1.5rem; gap: .55rem;
  font-size: 1rem; letter-spacing: .04em; margin-bottom: 1.4rem; flex-wrap: wrap;
}
.rex-vcall b { font-weight: 600; letter-spacing: .02em; opacity: .9; }
.rex-vcall b::before { content: "·"; margin-right: .55rem; opacity: .7; }

.rex-vpitch { color: #333; font-size: .97rem; line-height: 1.75; }
.rex-vpitch p { margin: 0 0 1rem; }

/* rates box: the old bordered table, with the values filled in */
.rex-vrates { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .93rem;
  border: 1px solid var(--rex-border); box-shadow: 0 2px 10px rgb(0 0 0 / .06); }
.rex-vrates th, .rex-vrates td { padding: .72rem .9rem; border-bottom: 1px solid var(--rex-border); text-align: left; vertical-align: top; }
.rex-vrates th { font-weight: 400; color: #444; width: 52%; }
.rex-vrates td { font-weight: 500; color: #222; }
.rex-vrates tr:nth-child(even) { background: #f3f3f3; }

.rex-vnotes { padding-top: 1rem; border-top: 1px solid var(--rex-border); }
.rex-vnotes p { margin: 0 0 .45rem; font-size: .8rem; font-style: italic; line-height: 1.7; color: #444; }
.rex-vnotes a { color: var(--rex-maroon); font-style: normal; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

.rex-vshare { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin: 1.25rem 0 1.5rem; }
.rex-vshare > span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #555; margin-right: .35rem; }
.rex-vshare__btn { display: inline-grid; place-items: center; width: 40px; height: 32px; border: 0; border-radius: 4px;
  color: #fff; cursor: pointer; transition: filter .2s, transform .2s; }
.rex-vshare__btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.rex-vshare__btn:focus-visible { outline: 2px solid var(--rex-maroon); outline-offset: 2px; }
.rex-vshare__btn--whatsapp { background: #25d366; }
.rex-vshare__btn--x { background: #111; }
.rex-vshare__btn--facebook { background: #1877f2; }
.rex-vshare__btn--mail { background: #444; }
.rex-vshare__btn--link { background: #9a9a9a; }
.rex-vshare__btn[data-copied] { background: #2e7d32; }

.rex-vactions { display: flex; flex-wrap: wrap; gap: .8rem; }
.rex-vactions .rex-btn { flex: 1 1 160px; justify-content: center; font-size: 1rem; }

/* full-width Specifications, label left / value right like the original */
.rex-vspecs { margin-top: clamp(2.5rem, 5vw, 4rem); }
.rex-vspecs h2, .rex-vprose h2 { text-align: left; }
.rex-vspecs__table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.rex-vspecs__table th, .rex-vspecs__table td { padding: .75rem 0; border-bottom: 1px solid #ececec; }
.rex-vspecs__table th { text-align: left; font-weight: 500; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: #555; }
.rex-vspecs__table td { text-align: right; color: #222; }

.rex-vprose { margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: none; }
.rex-vprose > :first-child { margin-top: 0; }
.rex-vprose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 2rem 0 .8rem; }
.rex-vmake { display: block; width: max-content; }
.rex-vactions .rex-btn { padding-inline: 1rem; letter-spacing: .06em; white-space: nowrap; }
@media (max-width: 480px) {
  .rex-btn.rex-vcall { padding-inline: 1.4rem; }
  .rex-vcall b { display: none; }          /* the number is in the header; the pill still dials it */
}
/* specs + description: one readable column, left-aligned with each other */
.rex-vpage > .rex-vspecs, .rex-vpage > .rex-vprose { max-width: 900px; margin-inline: 0; }
