/* =========================================================
   Trinity Cars — v1 stylesheet
   System font stack, monochrome-premium theme derived from the
   real logo ink (#101018). The mark is fully monochrome: there is
   no red and no gold in the brand. The only chromatic token is
   --star, reserved for the review stars.
========================================================= */

:root {
  /* --- Brand surfaces --- */
  --ink: #101018;          /* brand ink, sampled from the logo */
  --ink-deep: #08080E;     /* deepest sections / footer */
  --surface: #191922;      /* cards & panels on dark */
  --surface-2: #22222D;    /* raised / hover */
  --line: rgba(255, 255, 255, 0.14);   /* hairlines on dark */
  --paper: #F5F5F7;        /* light section background */
  --paper-line: rgba(16, 16, 24, 0.12); /* hairlines on light */

  /* --- Type --- */
  --text: #FFFFFF;
  --text-muted: #A2A4AE;      /* muted on dark  — 7.6:1 on --ink */
  --text-dim: #8E909B;        /* dimmest on dark — 4.9:1 on --surface-2 */
  --text-bright: #E8E9ED;     /* emphasised body copy on dark */
  --text-dark: #101018;
  --text-dark-muted: #55565F; /* muted on light — 6.7:1 on --paper */

  /* --- Accent ---
     The primary CTA is a solid WHITE button with an --ink label on dark
     backgrounds, and a solid --ink button with a white label on light ones.
     Secondary CTAs are transparent with a 1px --line border. */
  --accent: #FFFFFF;
  --accent-hover: #E6E6EA;
  --accent-soft: rgba(255, 255, 255, 0.08);

  /* --- The one permitted colour: review stars --- */
  --star: #C9A227;

  /* --- Legacy aliases (kept so every existing rule keeps resolving) --- */
  --black: var(--ink-deep);
  --near-black: var(--ink);
  --panel: var(--surface);
  --panel-light: var(--surface-2);
  --white: #ffffff;
  --off-white: var(--paper);
  --gray-100: var(--text-bright);
  --gray-400: var(--text-muted);
  --gray-600: var(--text-dim);
  --accent-dark: var(--accent-hover);
  --border-dark: var(--line);
  --border-light: var(--paper-line);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --radius: 10px;
  --radius-sm: 6px;

  --shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* The closed off-canvas menu sits just past the right edge; Chrome counts
     fixed boxes toward scrollable overflow, so clip it here. Set on <html>
     only — putting it on <body> too would break the sticky header. */
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--off-white);
  color: var(--near-black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

/* Primary CTA on LIGHT backgrounds: solid ink, white label. */
.btn--outline-dark {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline-dark:hover { background: var(--ink); color: var(--white); }

/* Secondary CTA on DARK backgrounds: transparent + hairline. */
.btn--outline-light {
  border-color: var(--line);
  color: var(--white);
}
.btn--outline-light:hover {
  background: var(--accent-soft);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
}

/* Primary pill (service cards, on dark panels): solid white, ink label. */
.btn--pill {
  border-radius: 999px;
  padding: 10px 22px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.72rem;
}
.btn--pill:hover { background: var(--accent-hover); color: var(--ink); }

/* Secondary pill (car cards, on dark panels): transparent + hairline. */
.btn--pill-dark {
  border-radius: 999px;
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 0.72rem;
}
.btn--pill-dark:hover { background: var(--accent-soft); border-color: rgba(255, 255, 255, 0.32); }

/* Primary CTA on DARK backgrounds: solid white, ink label. */
.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.btn--solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--ink); }

/* ---------- Focus states (accessibility) ----------
   White ring inside a dark halo, so it stays visible on both the
   dark sections and the paper ones without needing a colour. */
:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(16, 16, 24, 0.85);
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 400;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 700;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Placeholder pattern ---------- */
.placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface-2), #14141C);
}
.placeholder svg.placeholder__svg { width: 100%; height: 100%; display: block; }

/* Background variant: no centred label — the label is tucked into a corner chip
   so it can never collide with the copy layered on top of it. */
.placeholder--bg { border-radius: 0; }
.placeholder__tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  max-width: min(60vw, 340px);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(8, 8, 14, 0.55);
  color: var(--text-dim);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  pointer-events: none;
}

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--black);
  color: var(--gray-400);
  font-size: 0.78rem;
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  flex-wrap: wrap;
  gap: 4px;
}
.utility-bar__phones a { color: var(--gray-100); }
.utility-bar__phones a:hover { color: var(--accent); }
.utility-bar__divider { margin: 0 8px; color: var(--gray-600); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 14, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-dark);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
/* Real logo lockup. Intrinsic size lives on the <img> width/height attributes
   (1200x277) so the browser reserves the right box before the file loads;
   CSS only drives the rendered height. White variant — the bar is dark. */
.nav__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 24px;
}
.nav__link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-100);
  position: relative;
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  border-radius: 0;
  z-index: 0;
  min-height: 0;
}
/* Hero label sits top-left, out of the headline's way and under the lightest
   part of the overlay so it stays faint. */
.hero__bg .placeholder__tag {
  top: 14px;
  bottom: auto;
  left: 14px;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,14,0.55) 0%, rgba(8,8,14,0.78) 55%, rgba(8,8,14,0.95) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero__eyebrow {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero__title {
  color: var(--white);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 18px;
}
.hero__subtitle {
  color: var(--gray-100);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.badge {
  width: 74px;
  height: 74px;
  min-height: 0;
  border-radius: 999px;
  flex-shrink: 0;
}
.badge.placeholder { border-radius: 999px; }

/* ---------- Feature band ---------- */
.feature-band {
  background: var(--off-white);
  padding: 90px 0;
}
.feature-band__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: stretch;
  gap: 0;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-band__card {
  background: var(--white);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.feature-band__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dark-muted);
}
.feature-band__heading {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
}
.feature-band__text {
  color: var(--text-dark-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
.feature-band__card .btn { align-self: flex-start; margin-top: 10px; }
.feature-band__media { min-height: 340px; border-radius: 0; }

/* ---------- Section heading ---------- */
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-heading--start { text-align: left; margin: 0; max-width: 520px; }
.section-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.section-heading h2 { color: var(--text-dark); }
.section-heading--light h2 { color: var(--white); }
/* The rule flips with the section: ink on paper, white on ink. */
.section-heading__rule {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--ink);
  margin: 18px auto;
  border-radius: 2px;
}
.section-heading--light .section-heading__rule { background: var(--white); }
.section-heading--start .section-heading__rule { margin: 16px 0; }
.section-heading__intro {
  color: var(--text-dark-muted);
  font-size: 0.98rem;
}
.section-heading--light .section-heading__intro { color: var(--text-muted); }

/* ---------- Services ---------- */
.services {
  background: var(--white);
  padding: 100px 0;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,0.3); }
.service-card__media {
  height: 130px;
  border-radius: 0;
}
.service-card__body {
  padding: 24px 20px 26px;
  text-align: center;
  color: var(--white);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: var(--text);
  margin-bottom: 14px;
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-card__desc {
  font-size: 0.82rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 18px;
  min-height: 62px;
}

/* ---------- About ---------- */
.about {
  background: var(--paper);
  padding: 100px 0;
  border-top: 1px solid var(--paper-line);
}
.about__inner { text-align: center; }
.about__text {
  max-width: 720px;
  margin: 0 auto 50px;
  color: var(--text-dark-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}
.about__video {
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  height: auto;
  box-shadow: var(--shadow);
}

/* ---------- Our Cars ---------- */
.our-cars {
  background: var(--near-black);
  padding: 100px 0;
}
.car-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.car-card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.car-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.car-card__media {
  height: 170px;
  border-radius: 0;
}
.car-card__body {
  padding: 20px;
  color: var(--white);
}
.car-card__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.car-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.spec-chip {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray-400);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.car-card__price {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.section-heading__note {
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-dark-muted);
  font-style: italic;
}
.section-heading--light .section-heading__note { color: var(--text-dim); }

/* ---------- Customers / testimonials ---------- */
.customers {
  background: var(--black);
  padding: 100px 0;
}
.customers__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}
.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item {
  flex: 0 0 clamp(220px, 30%, 320px);
  aspect-ratio: 1 / 1;
  height: auto;
  scroll-snap-align: start;
}
.carousel__track { scroll-snap-type: x mandatory; }

.carousel__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.carousel__arrow svg { width: 20px; height: 20px; }
.carousel__arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: var(--gray-400);
  padding-top: 80px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-dark);
}
/* White lockup — the footer is the deepest surface on the page. */
.footer__logo {
  margin-bottom: 18px;
}
.footer__logo img {
  height: 44px;
  width: auto;
}
.footer__blurb {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 320px;
}
.footer__heading {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer__list li { margin-bottom: 12px; font-size: 0.88rem; }
.footer__list a:hover { color: var(--accent); }

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px;
  font-size: 0.78rem;
}
.footer__bottom-inner a:hover { color: var(--accent); }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: transparent;
  box-shadow: var(--shadow);
  z-index: 200;
  transition: transform 0.2s ease;
}
.whatsapp-fab svg { width: 100%; height: 100%; }
.whatsapp-fab:hover { transform: scale(1.08); }

/* ---------- Google reviews ---------- */
.reviews {
  background: var(--near-black);
  padding: 70px 0 90px;
}
.reviews__banner {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--panel), var(--panel-light));
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow);
}
.reviews__score { text-align: center; flex-shrink: 0; }
.reviews__number {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}
.reviews__stars { color: var(--star); letter-spacing: 0.14em; font-size: 0.95rem; margin-top: 4px; }
.reviews__meta { flex: 1 1 260px; }
.reviews__title { color: var(--white); font-size: 1.25rem; font-weight: 800; }
.reviews__count { color: var(--gray-400); font-size: 0.9rem; margin-top: 6px; }
.reviews__link { flex-shrink: 0; }

.reviews__notice {
  margin: 22px 0 18px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border-dark);
  border-left: 3px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-card__stars { color: var(--star); letter-spacing: 0.14em; font-size: 0.9rem; }
.review-card__quote { margin: 0; }
.review-card__quote p {
  color: var(--gray-100);
  font-size: 0.95rem;
  line-height: 1.7;
}
.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}
.review-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.review-card__name {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
}
.review-card__source {
  display: block;
  color: var(--gray-600);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

/* ---------- Shared form fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.field__req { color: var(--accent); }
.field__input {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field__input::placeholder { color: var(--gray-600); }
.field__input:hover { border-color: rgba(255, 255, 255, 0.22); }
.field__input:focus { border-color: var(--accent); background: rgba(255, 255, 255, 0.07); }
/* No red left in the palette, so the invalid state is signalled by weight:
   a full-strength white outline plus bold white error copy. */
.field__input.is-invalid {
  border-color: var(--white);
  box-shadow: inset 0 0 0 1px var(--white);
  background: rgba(255, 255, 255, 0.09);
}
.field__error {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--white);
}

/* ---------- Loan estimator ---------- */
.loan {
  background: var(--black);
  padding: 90px 0;
  border-top: 1px solid var(--border-dark);
}
.loan__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.loan__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.loan__heading {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}
.loan__text { color: var(--gray-400); font-size: 0.98rem; line-height: 1.75; margin-bottom: 18px; }
.loan__disclaimer {
  color: var(--gray-600);
  font-size: 0.82rem;
  line-height: 1.65;
  border-left: 2px solid rgba(255, 255, 255, 0.28);
  padding-left: 14px;
}
.loan__disclaimer strong { color: var(--text); }

.loan__widget {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.loan__fields {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.loan__result {
  background: var(--panel-light);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--border-dark);
}
.loan__result-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.loan__result-value {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}
.loan__breakdown {
  margin-top: 6px;
  border-top: 1px solid var(--border-dark);
  padding-top: 12px;
}
.loan__breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--gray-400);
  padding: 5px 0;
}
.loan__breakdown strong { color: var(--white); font-weight: 700; }
.loan__note {
  font-size: 0.72rem;
  color: var(--gray-600);
  letter-spacing: 0.03em;
}
.loan__cta { margin-top: auto; align-self: flex-start; }

/* ---------- Sell your car ---------- */
.sell {
  background: var(--near-black);
  padding: 90px 0;
}
.sell__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
.sell__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.sell__heading {
  color: var(--white);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}
.sell__text { color: var(--gray-400); font-size: 1rem; line-height: 1.75; margin-bottom: 22px; }
.sell__list { margin-bottom: 22px; }
.sell__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--gray-100);
  font-size: 0.92rem;
}
.sell__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.sell__note, .community__note {
  font-size: 0.76rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.sell__form {
  background: var(--panel);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
}
.sell__submit { width: 100%; margin-top: 4px; }
.sell__status {
  font-size: 0.82rem;
  color: var(--gray-400);
  min-height: 1.2em;
}
.sell__status.is-error { color: var(--white); font-weight: 700; }
.sell__status.is-success { color: var(--text-muted); }

/* ---------- Community ---------- */
.community {
  background: var(--black);
  padding: 100px 0;
}
.community__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 44px;
}
.community__item {
  aspect-ratio: 4 / 3;
  height: auto;
  border: 1px solid var(--border-dark);
}
.community__cta { text-align: center; display: grid; gap: 14px; justify-items: center; }

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-bar { display: none; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card:hover, .car-card:hover { transform: none; }
}
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .mobile-bar, .whatsapp-fab, .nav__toggle { display: none !important; }
}

/* ---------- Image slots (real photo + placeholder fallback) ----------
   Used where the photo file has not been supplied yet. The <img> sits on
   top of the labelled placeholder; js/main.js adds .is-loaded when the file
   resolves (placeholder dropped) or .is-fallback when it 404s (broken img
   hidden, placeholder stays). Nothing here depends on JS to look sane. */
.imgslot {
  position: relative;
  overflow: hidden;
}
.imgslot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}
.imgslot__ph {
  position: absolute;
  inset: 0;
  min-height: 0;
}
.imgslot.is-loaded .imgslot__ph { display: none; }
.imgslot.is-fallback .imgslot__img { display: none; }
/* The hero backdrop is itself absolutely positioned — keep that. */
.hero__bg.imgslot { position: absolute; inset: 0; }

/* ---------- Our Cars: real photos, one row of four ---------- */
.car-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  height: auto;
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface-2), #14141C);
}
/* Fixed ratio + cover, so differing source sizes never make the row ragged. */
.car-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}
.car-grid { align-items: stretch; }
.car-card { display: flex; flex-direction: column; }
.car-card__body { display: flex; flex-direction: column; flex: 1; }
.car-card__price { margin-top: auto; }
.car-card__body .btn { align-self: flex-start; }
.our-cars__more {
  margin-top: 44px;
  text-align: center;
}

/* ---------- Google reviews: spacing pass ----------
   Equal-height cards on a roomier grid; review 2 is much longer than the
   other two, so the row is stretched rather than left ragged. */
.reviews__grid {
  align-items: stretch;
  gap: 30px;
  margin-top: 40px;
}
.review-card {
  padding: 28px;
  height: 100%;
  gap: 16px;
}
.review-card__quote p + p { margin-top: 12px; }
.review-card__meta {
  display: block;
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* ---------- Footer ----------
   The "Our Services" column is archived (archive/footer-services-column.html),
   so the grid is three columns now. Restore the fourth `1fr` here if that
   column is ever pasted back in. */
.footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }

/* ---------- Footer social link ---------- */
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__social-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Phone pair (call number + WhatsApp number) ----------
   Reusable pair: [phone glyph] call number | [WhatsApp glyph] WA number.
   Both glyphs use currentColor so the pair reads correctly wherever it's
   dropped — dark utility bar, dark footer, or the white sell-form card. */
.phone-pair {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.phone-pair__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}
.phone-pair__item:hover { opacity: 0.75; }
.phone-pair__icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}
.phone-pair__sep {
  margin: 0 10px;
  opacity: 0.5;
}

/* ---------- Sell form: white card override ----------
   The sell-form card sits as a white panel on the dark "Sell Your Car"
   section. Every rule below is scoped to #valuationForm so nothing else
   on the page (the shared .field__* rules) is affected. */
#valuationForm {
  background: #ffffff;
  border-color: rgba(16, 16, 24, 0.12);
}
#valuationForm .field__label { color: #101018; }
#valuationForm .field__req { color: #b00020; }
#valuationForm .field__input {
  color: #101018;
  background: #f2f2f4;
  border-color: rgba(16, 16, 24, 0.14);
}
#valuationForm .field__input::placeholder { color: #8a8b93; }
#valuationForm .field__input:hover { border-color: rgba(16, 16, 24, 0.28); }
#valuationForm .field__input:focus {
  border-color: rgba(16, 16, 24, 0.4);
  background: #ffffff;
}
#valuationForm .field__input.is-invalid {
  border-color: #b00020;
  box-shadow: inset 0 0 0 1px #b00020;
  background: #fdf1f2;
}
#valuationForm .field__error { color: #b00020; }
#valuationForm .sell__access-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #101018;
  text-decoration: underline;
}
#valuationForm .sell__access-link:hover { color: #22222d; }
#valuationForm .sell__submit {
  background: #101018;
  border-color: #101018;
  color: #ffffff;
}
#valuationForm .sell__submit:hover {
  background: #22222d;
  border-color: #22222d;
  color: #ffffff;
}
#valuationForm .sell__phones {
  margin-top: 6px;
  text-align: center;
  color: #101018;
}
#valuationForm .sell__phones .phone-pair { justify-content: center; }
#valuationForm .sell__status { color: #55565f; }
#valuationForm .sell__status.is-error { color: #b00020; }
#valuationForm .sell__status.is-success { color: #55565f; }

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  /* .car-grid stays at four across down to 980px — the fleet row is a
     deliberate single row of four on desktop. */
}

@media (max-width: 980px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 26px;
    transform: translateX(100%);
    /* visibility keeps the closed panel out of both the scrollable overflow
       area (otherwise it widens the page on mobile) and the tab order. */
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.4);
  }
  .nav__links.is-open { transform: translateX(0); visibility: visible; }
  .nav__toggle { display: flex; }

  .feature-band__grid { grid-template-columns: 1fr; }
  .feature-band__media { min-height: 260px; }
  .feature-band__card { padding: 44px 30px; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .car-grid { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .reviews__grid { grid-template-columns: 1fr; }
  .loan__inner { grid-template-columns: 1fr; gap: 34px; }
  .sell__inner { grid-template-columns: 1fr; gap: 34px; }
  .community__grid { grid-template-columns: 1fr; }
}

/* ---------- Sticky mobile CTA bar (mobile only) ---------- */
@media (max-width: 768px) {
  .mobile-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    background: rgba(8, 8, 14, 0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-dark);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mobile-bar__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px 12px;
    color: var(--gray-100);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-right: 1px solid var(--border-dark);
  }
  .mobile-bar__btn:last-child { border-right: none; }
  .mobile-bar__btn svg { width: 20px; height: 20px; }
  /* WhatsApp green stays — it is a platform colour, not a brand colour. */
  .mobile-bar__btn--wa { color: #25d366; }
  .mobile-bar__btn--primary { background: var(--accent); color: var(--ink); }
  .mobile-bar__btn:active { background: var(--accent-soft); }
  .mobile-bar__btn--primary:active { background: var(--accent-hover); color: var(--ink); }

  /* Keep the bar from covering the footer / FAB */
  body { padding-bottom: 72px; }
  .whatsapp-fab { display: none; }
}

@media (max-width: 560px) {
  .nav__logo img { height: 32px; }
  .footer__logo img { height: 40px; }
  .utility-bar__inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero { min-height: 520px; }
  .services__grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .car-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .customers__head { flex-direction: column; align-items: flex-start; }
  .carousel__item { flex-basis: 78%; }

  .hero__actions .btn { width: 100%; max-width: 280px; }
  .reviews__banner { padding: 22px; }
  .reviews__link { width: 100%; }
  .loan__widget { grid-template-columns: 1fr; }
  .loan__result { border-left: none; border-top: 1px solid var(--border-dark); }
  .loan__fields, .loan__result { padding: 24px 20px; }
  .sell__form { padding: 24px 20px; }
  .loan__cta { width: 100%; }
}
