/* =========================================================
   JST Motor Group — site styles
   ========================================================= */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f6f9;
  --tint: #ffffff;
  --border: rgba(13, 17, 23, 0.1);
  --text: #0d1117;
  --muted: #5b6573;
  --accent: #2fb4ec;
  --accent-dark: #1a8fc2;
  --accent-ink: #1283b8; /* darker blue for text on white */
  --shadow: 0 1px 2px rgba(13, 17, 23, 0.04), 0 10px 30px -14px rgba(13, 17, 23, 0.12);
  --shadow-lg: 0 30px 60px -25px rgba(15, 30, 50, 0.25);
  --accent-glow: rgba(47, 180, 236, 0.35);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: Arial, Helvetica, sans-serif;
  --sans: Arial, Helvetica, sans-serif;
  --header-h: 150px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: pageIn 0.7s var(--ease) both;
}

body.is-leaving {
  animation: pageOut 0.35s ease forwards;
}

@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pageOut {
  to { opacity: 0; }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- Scroll progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), #8fdcff);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1001;
}

/* =========================================================
   Header / navigation
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  background: #000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.4s ease, height 0.4s var(--ease), box-shadow 0.4s ease,
    backdrop-filter 0.4s ease;
}

.site-header.scrolled {
  --header-h: 104px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
}

/* logo on the left, nav buttons centred in the middle */
.nav-wrap {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.brand {
  grid-column: 1;
  justify-self: start;
}

.nav-links {
  grid-column: 2;
  grid-row: 1;
}

.nav-toggle {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.brand img {
  height: 130px;
  width: auto;
  transition: height 0.4s var(--ease), transform 0.4s var(--ease);
  animation: slideDown 0.9s var(--ease) both;
}

.site-header.scrolled .brand img {
  height: 84px;
}

.brand:hover img {
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s ease;
}

.nav-links li {
  animation: slideDown 0.8s var(--ease) both;
}
.nav-links li:nth-child(1) { animation-delay: 0.05s; }
.nav-links li:nth-child(2) { animation-delay: 0.1s; }
.nav-links li:nth-child(3) { animation-delay: 0.15s; }
.nav-links li:nth-child(4) { animation-delay: 0.2s; }
.nav-links li:nth-child(5) { animation-delay: 0.25s; }
.nav-links li:nth-child(6) { animation-delay: 0.3s; }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links .nav-cta {
  margin-left: 10px;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #fff;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.nav-links .nav-cta::after {
  display: none;
}

.nav-links .nav-cta:hover {
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  color: #04131b;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: none; }
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s ease, top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }

.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   Buttons — sharp corners, colour slides in on hover
   ========================================================= */
.btn {
  --fill: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease,
    transform 0.15s ease;
}

/* colour layer that slides in from the left on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fill);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
  z-index: -1;
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* small "press" when clicked */
.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease);
}

.btn:hover svg {
  transform: translateX(6px);
}

/* Solid blue button: a deeper blue slides across on hover */
.btn-primary {
  --fill: var(--accent-dark);
  background: var(--accent);
  border-color: var(--accent);
  color: #04131b;
}

.btn-primary:hover {
  border-color: var(--accent-dark);
  box-shadow: 0 12px 28px -12px var(--accent-glow);
}

/* Outline button: fills with blue on hover */
.btn-ghost {
  --fill: var(--accent);
  border-color: rgba(13, 17, 23, 0.3);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #04131b;
}

/* =========================================================
   Hero (home) & page banners
   ========================================================= */
.hero,
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  /* push the title below the header and logo so they never overlap */
  padding: calc(var(--header-h) + 40px) 0 110px;
}

.page-hero {
  min-height: 58vh;
  padding-top: var(--header-h);
}

/* plain white hero background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #fff;
}

.bg-golf {
  background-image: url("https://www.hdcarwallpapers.com/download/volkswagen_golf_r_20_years_2022_4k-original.jpg");
}

.bg-golf-alt {
  background-image: url("https://www.topgear.com/sites/default/files/2022/02/TopGear%20-%20Speedweek%20-%20Golf%20R%20%20-%20008.jpeg");
}

/* ---------- Home page: Golf R photo background ---------- */
.hero .hero-bg.bg-golf {
  inset: -4%;
  background-color: #0d1117;
  background-image: url("https://www.hdcarwallpapers.com/download/volkswagen_golf_r_20_years_2022_4k-original.jpg");
  background-size: cover;
  background-position: center;
  animation: kenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}

/* dark fade on the left so the title is readable, car stays clear on the right */
.hero .hero-bg.bg-golf::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 11, 0.85) 0%, rgba(8, 9, 11, 0.5) 50%, rgba(8, 9, 11, 0.15) 100%);
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.hero h1,
.hero .btn-ghost {
  color: #fff;
}

.hero h1 em,
.hero .eyebrow {
  color: #6fcdf5;
}

.hero .eyebrow::before {
  background: #6fcdf5;
}

.hero .hero-sub {
  color: rgba(255, 255, 255, 0.85);
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-ghost:hover {
  border-color: var(--accent);
  color: #04131b;
}

.hero .scroll-cue {
  color: rgba(255, 255, 255, 0.75);
}

.hero .scroll-cue .mouse {
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-content {
  max-width: 720px;
}

.page-hero .hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.page-hero .eyebrow::after {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.hero h1,
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero h1 {
  font-size: clamp(44px, 7.5vw, 96px);
}

.page-hero h1 {
  font-size: clamp(36px, 5.5vw, 68px);
}

.hero h1 em,
.page-hero h1 em,
.section-title em {
  font-style: italic;
  color: var(--accent-ink);
}

/* word-by-word reveal */
.split-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.split-line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: lineUp 1.1s var(--ease) forwards;
}

.split-line:nth-child(1) > span { animation-delay: 0.25s; }
.split-line:nth-child(2) > span { animation-delay: 0.4s; }
.split-line:nth-child(3) > span { animation-delay: 0.55s; }

@keyframes lineUp {
  to { transform: none; }
}

.hero-sub {
  margin-top: 24px;
  max-width: 540px;
  font-size: 18px;
  color: var(--muted);
}

.page-hero .hero-sub {
  margin: 20px auto 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.fade-up {
  opacity: 0;
  animation: fadeUp 1s var(--ease) forwards;
}

.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.7s; }
.d3 { animation-delay: 0.85s; }
.d4 { animation-delay: 1s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* scroll indicator */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.4s forwards;
}

.scroll-cue .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(13, 17, 23, 0.3);
  border-radius: 14px;
  position: relative;
}

.scroll-cue .mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 110px 0;
  position: relative;
}

.section-alt {
  background: var(--tint);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-head .eyebrow::after {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Feature / service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  position: relative;
  padding: 40px 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.5s ease;
}

/* glow that follows the cursor (set by script.js) */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 180, 236, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47, 180, 236, 0.4);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(47, 180, 236, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.icon-badge {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 180, 236, 0.2), rgba(47, 180, 236, 0.04));
  border: 1px solid rgba(47, 180, 236, 0.3);
  color: var(--accent-ink);
  margin-bottom: 26px;
  transition: transform 0.6s var(--ease), background 0.4s ease, color 0.4s ease;
}

.icon-badge svg {
  width: 28px;
  height: 28px;
}

.feature-card:hover .icon-badge {
  transform: rotate(-8deg) scale(1.08);
  background: var(--accent);
  color: #04131b;
}

.feature-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
  font-size: 15.5px;
}

.card-num {
  position: absolute;
  top: 26px;
  right: 30px;
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 700;
  color: rgba(13, 17, 23, 0.06);
  transition: color 0.4s ease;
}

.feature-card:hover .card-num {
  color: rgba(47, 180, 236, 0.18);
}

/* ---------- Split / about layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}

.split-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
}

.split-media .media-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.15);
  transition: transform 1.6s var(--ease);
}

.split-media.in-view .media-img {
  transform: scale(1);
}

.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 9, 11, 0.6), transparent 50%);
}

.media-tag {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 16px 22px;
  border-radius: 14px;
  background: rgba(8, 9, 11, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.media-tag strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: #fff;
}

.prose p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 20px;
}

.prose p.lead {
  font-size: 21px;
  color: var(--text);
  line-height: 1.6;
}

.check-list {
  list-style: none;
  margin: 30px 0 38px;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}

.check-list li::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(47, 180, 236, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fb4ec' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
  border: 1px solid rgba(47, 180, 236, 0.4);
}

/* ---------- Steps / journey ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.step {
  text-align: center;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  position: relative;
  transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.step:hover::before {
  background: var(--accent);
  color: #04131b;
  box-shadow: 0 0 0 8px rgba(47, 180, 236, 0.12);
}

.step h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 80px 60px;
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(47, 180, 236, 0.3);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  top: -260px;
  right: -120px;
  z-index: -1;
  animation: floatGlow 9s ease-in-out infinite alternate;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 180, 236, 0.18), transparent 65%);
  bottom: -240px;
  left: -100px;
  z-index: -1;
  animation: floatGlow 11s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  from { transform: translate(0, 0); }
  to   { transform: translate(-60px, 40px); }
}

.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 17px;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-top: 0;
}

/* =========================================================
   Vehicles
   ========================================================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 46px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: 500 14px var(--sans);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(13, 17, 23, 0.3);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #04131b;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* max 3 listings per row */
  gap: 26px;
}

@media (max-width: 1000px) {
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .car-grid {
    grid-template-columns: 1fr;
  }
}

.car-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s ease, border-color 0.4s ease,
    opacity 0.4s ease;
}

.car-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47, 180, 236, 0.4);
  box-shadow: var(--shadow-lg);
}

.car-card.is-hidden {
  display: none;
}

.car-card.pop-in {
  animation: popIn 0.5s var(--ease) both;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.car-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 120%, rgba(47, 180, 236, 0.18), transparent 60%),
    #f3f6f9;
}

.car-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.car-card:hover .car-media img {
  transform: scale(1.08);
}

/* shown if a car photo is missing */
.car-media.no-photo img {
  display: none;
}

.car-media.no-photo::before {
  content: "";
  position: absolute;
  inset: 18% 12% 26%;
  background: url("Images/logo.png") center / contain no-repeat;
  opacity: 1;
}

.car-media.no-photo::after {
  content: "Photos coming soon";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.car-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
}

.car-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car-body h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 14px;
}

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 22px;
}

.car-specs li {
  padding: 5px 11px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.car-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.car-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.car-price small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.car-foot .btn {
  padding: 11px 18px;
  font-size: 12px;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 40px;
}

.panel h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.info-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-of-type {
  border-bottom: 0;
}

.info-row .icon-badge {
  width: 50px;
  height: 50px;
  flex: none;
  margin: 0;
}

.info-row .icon-badge svg {
  width: 22px;
  height: 22px;
}

.info-row h4 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.info-row address {
  font-style: normal;
  font-size: 17px;
  line-height: 1.6;
}

.map-frame {
  margin-top: 26px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 260px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.status-pill.closed {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.3);
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 currentColor; }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hours-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.hours-table td {
  padding: 14px 18px;
  font-size: 16px;
  background: var(--surface-2);
  transition: background 0.3s ease;
}

.hours-table td:first-child {
  border-radius: 10px 0 0 10px;
  font-weight: 500;
}

.hours-table td:last-child {
  border-radius: 0 10px 10px 0;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.hours-table tr:hover td {
  background: #e9eef3;
}

.hours-table tr.today td {
  background: rgba(47, 180, 236, 0.12);
  color: var(--text);
}

.hours-table tr.today td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}

.hours-table tr.today td:first-child::after {
  content: "Today";
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #04131b;
  vertical-align: middle;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
  background: var(--tint);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-grid img {
  height: 70px;
  width: auto;
  margin-bottom: 16px;
}

.footer-grid p,
.footer-grid address {
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
}

.footer-grid h5 {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.3s ease, padding-left 0.3s var(--ease);
}

.footer-links a:hover {
  color: var(--accent-ink);
  padding-left: 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

/* back to top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(47, 180, 236, 0.4);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease), background 0.3s ease, color 0.3s ease;
  z-index: 900;
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--accent);
  color: #04131b;
}

.to-top svg {
  width: 20px;
  height: 20px;
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.from-left  { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.zoom       { transform: scale(0.94); }

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .split-media {
    aspect-ratio: 16 / 10;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 46px;
  }

  .steps::before {
    display: none;
  }

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

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* switch to the menu button below laptop width so the centred nav never overlaps the logo */
@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
    z-index: 2;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(16px);
    clip-path: circle(0 at calc(100% - 46px) calc(var(--header-h) / 2));
    transition: clip-path 0.7s var(--ease);
  }

  .nav-open .nav-links {
    clip-path: circle(150% at calc(100% - 46px) calc(var(--header-h) / 2));
  }

  .nav-links a {
    font-size: 22px;
    font-family: var(--serif);
    text-transform: none;
    letter-spacing: 0;
  }

  .nav-links .nav-cta {
    margin: 16px 0 0;
    font-family: var(--sans);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .nav-open {
    overflow: hidden;
  }

  /* a blurred header would confine the fixed menu, so drop it while open */
  .nav-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-open .brand {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 104px;
  }

  .brand img {
    height: 84px;
  }

  .section {
    padding: 80px 0;
  }

  .card-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-sub {
    font-size: 16px;
  }

  .btn {
    padding: 14px 24px;
  }

  .cta-band {
    padding: 56px 26px;
  }

  .panel {
    padding: 28px 22px;
  }

  .scroll-cue {
    display: none;
  }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .fade-up,
  .split-line > span {
    opacity: 1;
    transform: none;
  }
}

/* give the header a wider row so the bigger logo and centred nav both fit */
.site-header .container {
  width: min(1400px, 94%);
}

/* =========================================================
   Header layout: logo centred, menu row underneath
   ========================================================= */
:root {
  --header-h: 214px;
}

.nav-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
}

@media (min-width: 1101px) {
  .brand img {
    height: 118px;
  }

  .site-header.scrolled {
    --header-h: 154px;
  }

  .site-header.scrolled .brand img {
    height: 66px;
  }

  /* thin divider line between the logo and the menu */
  .nav-links {
    gap: 18px;
    padding: 6px 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 1100px) {
  :root {
    --header-h: 130px;
  }

  .brand img {
    height: 104px;
  }

  .site-header.scrolled {
    --header-h: 96px;
  }

  .site-header.scrolled .brand img {
    height: 74px;
  }

  /* menu button sits on the right, logo stays centred */
  .nav-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 104px;
  }

  .brand img {
    height: 80px;
  }

  .site-header.scrolled {
    --header-h: 84px;
  }

  .site-header.scrolled .brand img {
    height: 62px;
  }
}

/* =========================================================
   Menu icons underneath each link
   ========================================================= */
.nav-links a:not(.nav-cta) {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
}

.nav-icon {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s ease, transform 0.4s var(--ease);
}

.nav-links a:hover .nav-icon,
.nav-links a.active .nav-icon {
  color: var(--accent);
  transform: translateY(-3px) scale(1.1);
}

/* underline sits below the icon */
.nav-links a::after {
  bottom: 2px;
}

@media (max-width: 1100px) {
  .nav-icon {
    width: 26px;
    height: 26px;
  }
}

/* =========================================================
   Vehicles: listing states
   ========================================================= */
.car-badge.reserved {
  background: var(--accent);
  border-color: var(--accent);
  color: #04131b;
}

.car-badge.sold {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.car-card.is-sold .car-media img {
  filter: grayscale(0.7);
}

.car-card.is-sold .car-price {
  color: var(--muted);
  text-decoration: line-through;
}

.car-foot .btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.6;
}

.cars-loading,
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  font-size: 17px;
}

/* =========================================================
   WhatsApp floating button (all pages)
   ========================================================= */
.whatsapp-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 950;
  display: flex;
  align-items: center;
  height: 60px;
  min-width: 60px;
  padding: 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
  animation: waIn 0.7s var(--ease) 1s both;
}

.whatsapp-btn svg {
  width: 30px;
  height: 30px;
  flex: none;
}

/* label slides out on hover (computers) */
.whatsapp-btn .whatsapp-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  transition: max-width 0.45s var(--ease), margin 0.45s var(--ease);
}

.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -8px rgba(37, 211, 102, 0.7);
}

.whatsapp-btn:hover .whatsapp-label {
  max-width: 180px;
  margin-left: 10px;
}

/* gentle pulse ring to draw the eye */
.whatsapp-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid #25d366;
  animation: waPulse 2.4s ease-out 2s infinite;
  pointer-events: none;
}

@keyframes waIn {
  from { opacity: 0; scale: 0.5; translate: 0 20px; }
  to   { opacity: 1; scale: 1; translate: 0 0; }
}

@keyframes waPulse {
  0%   { opacity: 0.8; transform: scale(1); }
  80%, 100% { opacity: 0; transform: scale(1.35); }
}

/* back-to-top sits above the WhatsApp button */
.to-top {
  bottom: 98px;
  right: 30px;
}

@media (max-width: 640px) {
  .whatsapp-btn {
    right: 16px;
    bottom: 16px;
    height: 56px;
    min-width: 56px;
    padding: 0 13px;
  }

  .to-top {
    right: 20px;
    bottom: 84px;
  }
}

/* hide the WhatsApp button while the full-screen mobile menu is open */
.nav-open .whatsapp-btn {
  opacity: 0;
  pointer-events: none;
}
