/* ==========================================================================
   Frontline Auto Plus — design tokens + components
   Art direction: shop-floor navy, brand red for action, cool concrete neutrals.
   ========================================================================== */

:root,
[data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Surfaces — cool concrete */
  --color-bg: #f4f5f7;
  --color-surface: #ffffff;
  --color-surface-2: #fafbfc;
  --color-surface-offset: #eaecf0;
  --color-surface-offset-2: #dfe2e8;
  --color-divider: #e2e5ea;
  --color-border: #cfd4dd;

  /* Ink — brand navy family */
  --color-text: #0f1b30;
  --color-text-muted: #56617a;
  --color-text-faint: #8b94a6;
  --color-text-inverse: #f6f8fb;

  /* Brand */
  --color-navy: #0e2547;
  --color-navy-deep: #081a34;
  --color-navy-soft: #1b3b68;

  /* Primary action — brand red */
  --color-primary: #cb1b25;
  --color-primary-hover: #a91218;
  --color-primary-active: #870d12;
  --color-primary-highlight: #fbe6e7;

  --color-success: #1f6f3d;
  --color-success-highlight: #e0efe5;
  --color-gold: #b07a00;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.625rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.25 0.03 260 / 0.08);
  --shadow-md: 0 6px 18px oklch(0.25 0.03 260 / 0.1);
  --shadow-lg: 0 18px 44px oklch(0.25 0.03 260 / 0.16);

  --content-narrow: 660px;
  --content-default: 980px;
  --content-wide: 1240px;

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0a1120;
  --color-surface: #101a2c;
  --color-surface-2: #14202f;
  --color-surface-offset: #16223a;
  --color-surface-offset-2: #1d2a44;
  --color-divider: #1c2740;
  --color-border: #2b3852;

  --color-text: #dbe2ee;
  --color-text-muted: #8e9ab3;
  --color-text-faint: #64708a;
  --color-text-inverse: #0a1120;

  --color-navy: #0a1526;
  --color-navy-deep: #060e1c;
  --color-navy-soft: #16294a;

  --color-primary: #f0464f;
  --color-primary-hover: #ff646c;
  --color-primary-active: #ff8188;
  --color-primary-highlight: #3a1a1f;

  --color-success: #57b177;
  --color-success-highlight: #16301f;
  --color-gold: #e0af3c;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 6px 18px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 18px 44px oklch(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0a1120;
    --color-surface: #101a2c;
    --color-surface-2: #14202f;
    --color-surface-offset: #16223a;
    --color-surface-offset-2: #1d2a44;
    --color-divider: #1c2740;
    --color-border: #2b3852;
    --color-text: #dbe2ee;
    --color-text-muted: #8e9ab3;
    --color-text-faint: #64708a;
    --color-text-inverse: #0a1120;
    --color-primary: #f0464f;
    --color-primary-hover: #ff646c;
    --color-primary-highlight: #3a1a1f;
    --color-success: #57b177;
    --color-success-highlight: #16301f;
  }
}

/* ---------- Layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-12));
}

.wrap--narrow {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.eyebrow--muted {
  color: var(--color-text-muted);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.h-hero {
  font-size: var(--text-2xl);
  font-weight: 800;
}

.h-sec {
  font-size: var(--text-xl);
  font-weight: 800;
}

.h-card {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lede {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
}

.sec-head {
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--primary:active {
  background: var(--color-primary-active);
  transform: none;
}

[data-theme='dark'] .btn--primary {
  color: #12060a;
}

.btn--ghost {
  border-color: color-mix(in oklab, currentColor 35%, transparent);
  color: var(--color-text);
}
.btn--ghost:hover {
  border-color: currentColor;
  background: color-mix(in oklab, currentColor 8%, transparent);
}

.btn--on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--on-dark:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.btn--block {
  width: 100%;
}

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

/* ---------- Header ---------- */

.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
}
.skip:focus {
  top: var(--space-4);
}

.topbar {
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-xs);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
}
.topbar__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}
.topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px;
}
.topbar a:hover {
  color: #ffb3b7;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 72px;
  padding-block: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.brand__mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand__logo {
  height: 58px;
  width: auto;
  flex-shrink: 0;
}
.loc__logowrap {
  display: block;
  min-width: 0;
}
.brand__type {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand__name em {
  font-style: normal;
  color: var(--color-primary);
}
.brand__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 3px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
}
/* the in-drawer Book button belongs to the mobile drawer only */
.nav > .btn {
  display: none;
}
.nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.nav a[aria-current='page'] {
  color: var(--color-text);
  box-shadow: inset 0 -2px 0 var(--color-primary);
}

.header__tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.icon-btn:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
}
.lang:hover {
  background: var(--color-surface-offset);
}

.burger {
  display: none;
}
.nav__close {
  display: none;
}

@media (max-width: 1020px) {
  /* backdrop-filter makes .header a containing block for fixed children,
     which collapses the off-canvas drawer into the header strip. Drop it. */
  .header {
    backdrop-filter: none;
    background: var(--color-surface);
  }
  .nav {
    visibility: hidden;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    background: var(--color-surface);
    border-left: 1px solid var(--color-divider);
    padding: var(--space-20) var(--space-5) var(--space-8);
    transform: translateX(100%);
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  .nav[data-open='true'] {
    visibility: visible;
    transform: none;
  }
  .nav__close {
    display: inline-flex;
    align-self: flex-end;
    margin-bottom: var(--space-2);
    color: var(--color-text);
  }
  .nav a {
    min-height: 52px;
    font-size: var(--text-base);
    white-space: normal;
    border-bottom: 1px solid var(--color-divider);
    border-radius: 0;
  }
  .nav > .btn {
    display: inline-flex;
    border-bottom: 0;
  }
  .header__tools > .btn {
    display: none;
  }
  .burger {
    display: inline-flex;
    margin-left: auto;
  }
  .header__tools {
    order: 3;
    flex-shrink: 0;
  }
}

@media (max-width: 560px) {
  /* reclaim header width: the wordmark alone carries the brand here */
  .brand__sub {
    display: none;
  }
  .brand__name {
    font-size: 0.9375rem;
  }
  /* no room for the manual theme switch here — the phone's own
     dark-mode setting already drives the palette via prefers-color-scheme */
  .header__tools [data-theme-toggle] {
    display: none;
  }
  .header__inner {
    gap: var(--space-2);
  }
  .brand__mark {
    width: 32px;
    height: 32px;
  }
  .brand__logo {
    height: 40px;
  }
  .lang {
    padding: 0 var(--space-2);
  }
  /* the holiday note is nice-to-have; the two phone numbers are not */
  .topbar__group:last-child {
    display: none;
  }
  .topbar__inner {
    justify-content: flex-start;
    gap: var(--space-2) var(--space-4);
  }
  .topbar a {
    font-size: 0.6875rem;
  }
  /* stack the card header so the long badge can never run off the edge */
  .loc__top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
  .loc__logo {
    width: 200px;
    max-width: 100%;
  }
  .loc__tag {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  /* clear the sticky call bar so it never covers the last line of content */
  body {
    padding-bottom: 64px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--color-navy-deep);
  color: #fff;
  overflow: hidden;
  padding-block: 0;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 14, 28, 0.95) 0%, rgba(6, 14, 28, 0.82) 42%, rgba(6, 14, 28, 0.3) 78%),
    linear-gradient(0deg, rgba(6, 14, 28, 0.7), rgba(6, 14, 28, 0));
}
/* Narrow viewports: the copy spans the full width, so the angled scrim leaves
   the bright doorway behind the body text. Use a flatter, heavier overlay and
   bias the crop toward the darker side of the bay. */
@media (max-width: 900px) {
  .hero__media img {
    object-position: 40% 50%;
  }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(6, 14, 28, 0.9) 0%, rgba(6, 14, 28, 0.82) 55%, rgba(6, 14, 28, 0.9) 100%),
      linear-gradient(90deg, rgba(6, 14, 28, 0.55), rgba(6, 14, 28, 0.35));
  }
}
.hero__inner {
  position: relative;
  padding-block: clamp(var(--space-16), 11vw, var(--space-32));
  max-width: 44rem;
}
.hero .h-hero {
  color: #fff;
}
.hero__lede {
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--text-base);
  margin-top: var(--space-5);
  max-width: 46ch;
}
.hero .btn-row {
  margin-top: var(--space-8);
}
.hero__eyebrow {
  color: #ff9ba0;
}

.hero__ticks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}
.hero__ticks li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.hero__ticks svg {
  color: #ff5a63;
  flex-shrink: 0;
}

/* ---------- Trust strip ---------- */

.trust {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.9);
  padding-block: var(--space-6);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
}
.trust__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust__big {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.trust__label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stars {
  color: #ffc043;
  letter-spacing: 0.08em;
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: var(--space-5);
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
/* hard two-up so an even set never leaves a lonely orphan card */
.grid--pair {
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .grid--pair {
    grid-template-columns: 1fr 1fr;
  }
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

/* ---------- Location cards ---------- */

.loc {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.loc__top {
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.loc__logo {
  width: 190px;
  max-width: 100%;
  height: auto;
}
.loc__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.loc__tag--muted {
  background: var(--color-navy);
  color: #fff;
}
.loc__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}
.loc__city {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.loc__meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.loc__meta li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  max-width: none;
}
.loc__meta svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}
.loc__meta a {
  color: var(--color-text);
  font-weight: 600;
}
.loc__feat {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.loc__feat li {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  border: 1px solid var(--color-divider);
  max-width: none;
}
.loc__feat li[data-hi='true'] {
  background: var(--color-primary-highlight);
  color: var(--color-primary-hover);
  border-color: color-mix(in oklab, var(--color-primary) 30%, transparent);
}
[data-theme='dark'] .loc__feat li[data-hi='true'] {
  color: var(--color-primary);
}
.loc__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.loc__actions .btn {
  flex: 1 1 150px;
}

/* ---------- Inspection band ---------- */

.band {
  background: var(--color-navy-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.band__media {
  position: absolute;
  inset: 0;
}
.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(85deg, rgba(6, 14, 28, 0.96) 0%, rgba(6, 14, 28, 0.86) 48%, rgba(6, 14, 28, 0.42) 100%);
}
.band__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
@media (max-width: 900px) {
  .band__inner {
    grid-template-columns: 1fr;
  }
}
.band h2 {
  color: #fff;
}
.band p {
  color: rgba(255, 255, 255, 0.84);
}
.band__price {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(6px);
}
.band__price dl {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.band__price .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.band__price .row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.band__price dt {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.78);
}
.band__price dd {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.band__note {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-4);
}

/* ---------- Service tiles ---------- */

.svc {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  color: var(--color-text);
}
.svc:hover {
  border-color: color-mix(in oklab, var(--color-primary) 45%, transparent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.svc__icon {
  color: var(--color-primary);
}
.svc__title {
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-body);
}
.svc__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}

.svc-list {
  columns: 3 210px;
  column-gap: var(--space-8);
  list-style: none;
}
.svc-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding-block: var(--space-2);
  font-size: var(--text-sm);
  break-inside: avoid;
  max-width: none;
}
.svc-list svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 4px;
}

/* ---------- Split feature ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split--flip .split__media {
  order: -1;
}
@media (max-width: 780px) {
  .split--flip .split__media {
    order: 0;
  }
}

/* ---------- Membership ---------- */

.tier {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.tier[data-featured='true'] {
  border-color: var(--color-primary);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}
.tier__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
}
.tier__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.tier__amount {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1;
}
.tier__per {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
}
[data-theme='dark'] .tier__per {
  color: var(--color-text);
}
.tier ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
  flex: 1;
}
.tier ul li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  max-width: none;
}
.tier ul svg {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 4px;
}
.tier__badge {
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

/* ---------- Reviews ---------- */

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.quote blockquote {
  font-size: var(--text-base);
  line-height: 1.55;
}
.quote figcaption {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: auto;
}
.quote figcaption a {
  color: var(--color-text-muted);
}

/* ---------- Bilingual band ---------- */

.bi {
  background: var(--color-primary);
  color: #fff;
}
[data-theme='dark'] .bi {
  background: #7c1016;
}
.bi__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.bi h2 {
  color: #fff;
}
.bi p {
  color: rgba(255, 255, 255, 0.88);
}

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

.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 74ch;
}
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: var(--text-base);
  display: flex;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  list-style: none;
  min-height: 32px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after {
  content: '\2013';
}
.faq details p {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-5);
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: var(--text-sm);
  font-weight: 700;
}
.field .hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  width: 100%;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 18%, transparent);
  outline: none;
}
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}
.radio-row input {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  min-height: 0;
}
.radio-row label:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}
[data-theme='dark'] .radio-row label:has(input:checked) {
  background: var(--color-primary-highlight);
}

.confirm {
  display: none;
  background: var(--color-success-highlight);
  border: 1px solid color-mix(in oklab, var(--color-success) 40%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.confirm[data-show='true'] {
  display: block;
}
.confirm h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.confirm pre {
  white-space: pre-wrap;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-block: var(--space-4);
}

/* ---------- Page header (interior) ---------- */

.phead {
  background: var(--color-navy-deep);
  color: #fff;
  padding-block: clamp(var(--space-12), 7vw, var(--space-20));
}
.phead h1 {
  color: #fff;
  font-size: var(--text-xl);
  font-weight: 800;
}
.phead p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-4);
  font-size: var(--text-base);
}
.crumb {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-4);
}
.crumb a {
  color: rgba(255, 255, 255, 0.75);
}

.alt {
  background: var(--color-surface-offset);
}

.prose h2 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 700;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}
.prose ul {
  margin: 0 0 var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--color-text-muted);
}

.note {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.note strong {
  color: var(--color-text);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding-block: var(--space-16) var(--space-8);
  font-size: var(--text-sm);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--space-10);
}
.footer h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-4);
}
.footer a {
  color: #fff;
  text-decoration: none;
}
.footer a:hover {
  color: #ff9ba0;
  text-decoration: underline;
}
.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}
.footer__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-6);
}
/* the footer carries the light-on-dark artwork, so no plate is needed */
.footer__logos img {
  height: 62px;
  width: auto;
}

/* ---------- Sticky mobile call bar ---------- */

.callbar {
  display: none;
}
@media (max-width: 720px) {
  .callbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--color-border);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -6px 20px oklch(0.2 0.03 260 / 0.14);
  }
  .callbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 56px;
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
    background: var(--color-surface);
    color: var(--color-text);
  }
  .callbar a[data-primary='true'] {
    background: var(--color-primary);
    color: #fff;
  }
  body {
    padding-bottom: 56px;
  }
}

/* ---------- Scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal='in'] {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: oklch(0.15 0.03 260 / 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.backdrop[data-open='true'] {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Membership: price bar ---------- */
.pricebar{
  display:grid; grid-template-columns:auto 1fr auto; gap:var(--space-10);
  align-items:center; padding:var(--space-10) var(--space-10);
  background:var(--color-surface); border:1px solid var(--color-line);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-md);
}
.pricebar__price{
  font-family:var(--font-display); font-weight:800; line-height:.9;
  font-size:clamp(3.4rem,7vw,5rem); color:var(--color-ink); letter-spacing:-.02em;
}
.pricebar__cur{ font-size:.5em; vertical-align:.42em; margin-right:.04em; }
.pricebar__per{ margin-top:var(--space-2); font-weight:700; color:var(--color-ink); }
.pricebar__valid{ margin-top:var(--space-1); font-size:var(--text-sm); color:var(--color-ink-soft); }
.pricebar__stats{
  display:flex; gap:var(--space-8); flex-wrap:wrap;
  border-left:1px solid var(--color-line); padding-left:var(--space-10);
}
.pstat__label{ font-size:var(--text-xs); letter-spacing:.1em; text-transform:uppercase; font-weight:700; color:var(--color-ink-soft); }
.pstat__num{ font-family:var(--font-display); font-weight:800; font-size:var(--text-2xl); line-height:1.05; margin-top:var(--space-1); color:var(--color-ink); }
.pstat--accent .pstat__num{ color:var(--color-primary); }
.pstat__sub{ font-size:var(--text-sm); color:var(--color-ink-soft); margin-top:var(--space-1); max-width:22ch; }
.pricebar__cta{ min-width:220px; }

@media (max-width:1020px){
  .pricebar{ grid-template-columns:1fr; gap:var(--space-8); text-align:left; }
  .pricebar__stats{ border-left:0; padding-left:0; border-top:1px solid var(--color-line); padding-top:var(--space-8); }
  .pricebar__cta{ min-width:0; }
}

/* ---------- Membership: benefit list ---------- */
.benlist{ display:grid; gap:var(--space-3); }
.ben{
  display:grid; grid-template-columns:auto 1fr auto; gap:var(--space-5);
  align-items:center; padding:var(--space-5) var(--space-6);
  background:var(--color-surface); border:1px solid var(--color-line); border-radius:var(--radius-md);
}
.ben__tick{ display:inline-flex; width:26px; height:26px; align-items:center; justify-content:center;
  border-radius:999px; background:var(--color-primary); color:#fff; flex:0 0 26px; }
.ben__tick svg{ width:15px; height:15px; }
.ben__body{ display:block; min-width:0; }
.ben__body strong{ display:block; font-weight:700; color:var(--color-ink); }
.ben__note{ display:block; font-size:var(--text-sm); color:var(--color-ink-soft); margin-top:2px; }
.ben__val{ text-align:right; flex:0 0 auto; white-space:nowrap; }
.ben__val b{ display:block; font-family:var(--font-display); font-weight:800; font-size:var(--text-lg); color:var(--color-primary); line-height:1.1; }
.ben__val i{ display:block; font-style:normal; font-size:var(--text-xs); letter-spacing:.08em;
  text-transform:uppercase; font-weight:700; color:var(--color-ink-soft); }
.ben[data-alt="true"]{ background:transparent; border-style:dashed; }
.ben[data-alt="true"] .ben__tick{ background:var(--color-ink-soft); }

@media (max-width:640px){
  .ben{ grid-template-columns:auto 1fr; row-gap:var(--space-3); padding:var(--space-5); }
  .ben__val{ grid-column:2; text-align:left; display:flex; align-items:baseline; gap:var(--space-2); }
  .ben__val i{ display:inline; }
}

/* ---------- Membership: terms ---------- */
.terms{ display:grid; grid-template-columns:repeat(2,1fr); gap:var(--space-6); }
.term{ padding:var(--space-6); background:var(--color-surface); border:1px solid var(--color-line); border-radius:var(--radius-md); }
.term h3{ font-family:var(--font-display); font-weight:700; font-size:var(--text-base); color:var(--color-ink); }
.term p{ margin-top:var(--space-2); font-size:var(--text-sm); color:var(--color-ink-soft); line-height:1.65; }
@media (max-width:820px){ .terms{ grid-template-columns:1fr; } }

/* ---------- Membership: join cards ---------- */
.joincard{ padding:var(--space-8); background:var(--color-surface); border:1px solid var(--color-line); border-radius:var(--radius-md); }
.joincard h3{ font-family:var(--font-display); font-weight:800; font-size:var(--text-xl); color:var(--color-ink); }
.joincard h3 span{ font-family:var(--font-body); font-weight:500; font-size:var(--text-sm); color:var(--color-ink-soft); margin-left:var(--space-2); }
.joincard p{ margin:var(--space-3) 0 var(--space-6); color:var(--color-ink-soft); line-height:1.65; }

/* ---------- Home membership card ---------- */
.memcard{
  padding:var(--space-8); background:var(--color-surface);
  border:1px solid var(--color-line); border-radius:var(--radius-lg); box-shadow:var(--shadow-md);
}
.memcard__eyebrow{ font-size:var(--text-xs); letter-spacing:.1em; text-transform:uppercase; font-weight:700; color:var(--color-primary); }
.memcard__price{ font-family:var(--font-display); font-weight:800; font-size:clamp(3rem,6vw,4rem);
  line-height:.95; color:var(--color-ink); margin-top:var(--space-3); letter-spacing:-.02em; }
.memcard__cur{ font-size:.5em; vertical-align:.42em; margin-right:.04em; }
.memcard__per{ font-weight:700; color:var(--color-ink-soft); margin-top:var(--space-1); }
.memcard__list{ display:grid; gap:var(--space-3); margin:var(--space-7) 0; }
.memcard__list li{ display:flex; gap:var(--space-3); align-items:flex-start; font-size:var(--text-sm); color:var(--color-ink); }
.memcard__list svg{ width:17px; height:17px; flex:0 0 17px; margin-top:3px; color:var(--color-primary); }
.confirm__to{ margin-top:var(--space-5); font-size:var(--text-sm); color:var(--color-ink-soft); }
.confirm__to b{ color:var(--color-ink); font-weight:700; }

/* ---------- Real Frontline logo: light/dark artwork pair ----------
   Kept last in the file so these display rules always win over the
   layout rules that size each placement. */

/* ---- membership card band ---- */
.cardband {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.cardband__art {
  perspective: 1400px;
}
.cardband__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  transform: rotate(-2.1deg);
  filter: drop-shadow(0 18px 34px rgba(6, 14, 28, 0.24))
    drop-shadow(0 3px 8px rgba(6, 14, 28, 0.16));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cardband__art img:hover {
  transform: rotate(-0.6deg) translateY(-4px) scale(1.015);
}
[data-theme='dark'] .cardband__art img {
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}
.cardband__copy .eyebrow {
  margin-bottom: var(--space-2);
}
.cardband__copy .h-sec {
  margin-bottom: var(--space-4);
}
.cardband__copy p:last-child {
  color: var(--text-muted);
  max-width: 46ch;
}
@media (max-width: 860px) {
  .cardband {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .cardband__art {
    max-width: 420px;
  }
  .cardband__art img {
    transform: rotate(-1.4deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cardband__art img {
    transition: none;
  }
  .cardband__art img:hover {
    transform: rotate(-2.1deg);
  }
}

.logo--light {
  display: block;
}
.logo--dark {
  display: none;
}
[data-theme='dark'] .logo--light {
  display: none;
}
[data-theme='dark'] .logo--dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo--light {
    display: none;
  }
  :root:not([data-theme]) .logo--dark {
    display: block;
  }
}

/* ---------- The header stays a white strip in dark mode ----------
   Ownership wants the logo on white on every device, not just desktop.
   Rather than plating the logo, the whole header keeps the light palette:
   re-declaring the light token values on .header lets the nav links,
   icon buttons, borders and the mobile drawer all inherit correctly
   without a single per-element override. Kept after the light/dark logo
   artwork rules above so the variant swap below wins. */

[data-theme='dark'] .header {
  --color-surface: #ffffff;
  --color-surface-offset: #eaecf0;
  --color-divider: #e2e5ea;
  --color-border: #cfd4dd;
  --color-text: #0f1b30;
  --color-text-muted: #56617a;
  /* the deeper light-mode red: the lifted dark-mode red goes pink on white */
  --color-primary: #cb1b25;
  --color-primary-hover: #a91218;
  --color-primary-active: #870d12;
  --color-primary-highlight: #fbe6e7;
  color: var(--color-text);
  /* opaque: the translucent light-mode bar picks up the dark page and greys */
  background: var(--color-surface);
}
[data-theme='dark'] .header .btn--primary {
  color: #fff;
}
[data-theme='dark'] .header .logo--light {
  display: block;
}
[data-theme='dark'] .header .logo--dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .header {
    --color-surface: #ffffff;
    --color-surface-offset: #eaecf0;
    --color-divider: #e2e5ea;
    --color-border: #cfd4dd;
    --color-text: #0f1b30;
    --color-text-muted: #56617a;
    --color-primary: #cb1b25;
    --color-primary-hover: #a91218;
    --color-primary-active: #870d12;
    --color-primary-highlight: #fbe6e7;
    color: var(--color-text);
    background: var(--color-surface);
  }
  :root:not([data-theme]) .header .btn--primary {
    color: #fff;
  }
  :root:not([data-theme]) .header .logo--light {
    display: block;
  }
  :root:not([data-theme]) .header .logo--dark {
    display: none;
  }
}

/* Footer sits on deep navy in both themes, so the logo gets the same plate. */
.logoplate {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.footer__logos .logoplate img {
  display: block;
  height: 52px;
  width: auto;
}
@media (max-width: 560px) {
  .logoplate {
    padding: 9px 14px;
  }
  .footer__logos .logoplate img {
    height: 44px;
  }
}

/* ---------- Towing band ---------- */
.tow .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.tow__icon {
  display: inline-flex;
  color: currentColor;
}
.tow__icon svg {
  width: 20px;
  height: 20px;
}
.tow__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
}
.tow__tel {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: #fff;
  text-decoration: none;
}
.tow__tel:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.tow__tel svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

/* ---------- Location photo gallery ---------- */
.gal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.gal__item {
  margin: 0;
}
.gal__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (max-width: 700px) {
  .gal {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-2);
  }
  .gal__item {
    scroll-snap-align: start;
  }
}

/* booking form: backup send buttons only appear when direct sending fails */
[data-appt-fallback][hidden] {
  display: none !important;
}
.confirm[data-state='fail'] {
  background: color-mix(in oklab, #d97706 10%, var(--color-surface));
  border-color: color-mix(in oklab, #d97706 45%, transparent);
}
.tow__photo {
  margin: 0;
}
.tow__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
