/* =====================================================
   Wellgate Motors — shared stylesheet
   Design tokens are best-effort matches to the brand PDF;
   adjust the :root values below once exact brand hex codes
   are confirmed — every component reads from these.
   ===================================================== */

:root {
  --navy-900: #14172B;
  --navy-800: #1B1E33;
  --navy-700: #242847;
  --navy-600: #2E3358;
  --navy-line: rgba(255, 255, 255, .09);

  --red-600: #E31837;
  --red-700: #C21430;
  --red-100: #FDEAEC;

  --light-100: #F5F6FA;
  --light-200: #ECEEF5;
  --white: #FFFFFF;

  --ink-900: #191B2A;
  --ink-700: #4A4E68;
  --muted: #7B7F98;
  --border: #E4E6EF;

  --shadow-sm: 0 8px 20px -12px rgba(20, 23, 43, .25);
  --shadow-md: 0 20px 45px -20px rgba(20, 23, 43, .35);
  --shadow-lg: 0 30px 60px -25px rgba(20, 23, 43, .45);

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* =================== Base =================== */
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.font-head {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: normal;
  color: var(--ink-900);
}

p { color: var(--ink-700); }

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

.text-red { color: var(--red-600) !important; }
.text-muted-wg { color: var(--muted) !important; }
.bg-navy { background-color: var(--navy-800) !important; }
.bg-light-wg { background-color: var(--light-100) !important; }

.section { padding: 5.5rem 0; }
.section-sm { padding: 3.25rem 0; }

@media (max-width: 767.98px) {
  .section { padding: 3.5rem 0; }
  .section-sm { padding: 2.25rem 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--red-600);
  margin-bottom: .75rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red-600);
  display: inline-block;
}

.section-heading {
  font-size: clamp(1.9rem, 1.6rem + 1.3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 1rem;
}

.section-lead { color: var(--muted); font-size: 1.05rem; }

.container-wg { max-width: 1260px; --bs-gutter-x: 3rem; }

/* =================== Buttons =================== */
.btn-wg {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .82rem;
  padding: .75rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  white-space: nowrap;
}

.btn-wg-red {
  background: var(--red-600);
  color: var(--white);
  box-shadow: 0 12px 24px -10px rgba(227, 24, 55, .55);
}
.btn-wg-red:hover, .btn-wg-red:focus {
  background: var(--red-700);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-wg-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
  color: var(--white);
}
.btn-wg-outline-light:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--white);
  color: var(--white);
}

.btn-wg-outline-dark {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-wg-outline-dark:hover {
  background: var(--navy-800);
  color: var(--white);
}

.btn-wg-sm { padding: .55rem 1.2rem; font-size: .75rem; }
.btn-wg-block { width: 100%; }

.btn-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-900);
  transition: all .2s ease;
  flex: none;
}
.btn-circle:hover { background: var(--red-600); border-color: var(--red-600); color: var(--white); }
.btn-circle:disabled, .btn-circle.disabled { opacity: .35; pointer-events: none; }

/* =================== Topbar =================== */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .75);
  font-size: .82rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--navy-line);
}
.topbar a { color: rgba(255, 255, 255, .75); }
.topbar a:hover { color: var(--white); }
.topbar .social-icons a {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--navy-line);
  margin-left: .4rem;
}
.topbar .social-icons a:hover { background: var(--red-600); border-color: var(--red-600); }

/* Phones: phone + email side by side, centred */
@media (max-width: 767.98px) {
  .topbar { font-size: .76rem; padding: .45rem 0; }
  .topbar .container > div { width: 100%; justify-content: center; column-gap: 1rem !important; row-gap: .2rem !important; }
}
@media (max-width: 359.98px) {
  .topbar { font-size: .7rem; }
  .topbar .container > div { column-gap: .6rem !important; }
}

/* =================== Header / Nav =================== */
.site-header {
  background: var(--white);
  padding: .85rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow .2s ease, padding .2s ease;
}
.site-header.is-stuck {
  box-shadow: var(--shadow-md);
  padding: .55rem 0;
}
.site-header .navbar-brand img { height: 42px; }

.main-nav .nav-link {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: normal;
  color: var(--ink-900);
  padding: .5rem 1rem !important;
  position: relative;
}
.main-nav .nav-link.active,
.main-nav .nav-link:hover { color: var(--red-600); }
.main-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0;
  height: 2px;
  background: var(--red-600);
}

.offcanvas .navbar-brand img { height: 36px; }

/* =================== Hero =================== */
.hero {
  background-image:
    linear-gradient(100deg, var(--navy-900) 0%, rgba(20, 23, 43, .92) 30%, rgba(20, 23, 43, .55) 55%, rgba(20, 23, 43, .2) 78%),
    url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1800&q=75');
  background-size: cover;
  background-position: right center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  /* Fill the screen below the top bar + header (--hero-offset is measured in main.js) */
  min-height: max(560px, calc(100vh - var(--hero-offset, 140px)));
  min-height: max(560px, calc(100svh - var(--hero-offset, 140px)));
  max-height: 1100px;
  display: flex;
  align-items: center;
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}
.hero-content { max-width: 560px; }
.hero-kicker { font-size: .95rem; color: rgba(255, 255, 255, .78); margin-bottom: .9rem; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.3rem);
  font-weight: 600;
  line-height: 1.14;
  margin-bottom: 1.1rem;
}
.hero p.lead-wg { color: rgba(255, 255, 255, .72); font-size: 1.05rem; max-width: 500px; }

/* Large screens: bigger headline */
@media (min-width: 1400px) {
  .hero-content { max-width: 640px; }
  .hero h1 { font-size: clamp(3.3rem, 1rem + 2.8vw, 4.4rem); }
  .hero p.lead-wg { font-size: 1.15rem; max-width: 560px; }
}

/* Tablets */
@media (max-width: 991.98px) {
  .hero {
    background-image:
      linear-gradient(100deg, var(--navy-900) 0%, rgba(20, 23, 43, .9) 45%, rgba(20, 23, 43, .55) 100%),
      url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1400&q=75');
    background-position: 70% center;
  }
}

/* Phones: car shows clearly at the top, text sits at the bottom over a fade */
@media (max-width: 767.98px) {
  .hero {
    --hero-photo: clamp(230px, 46svh, 440px); /* height of the car photo band */
    background-image:
      linear-gradient(180deg, rgba(20, 23, 43, .2) 0%, rgba(20, 23, 43, .05) 30%, rgba(20, 23, 43, .75) calc(var(--hero-photo) - 40px), var(--navy-900) var(--hero-photo)),
      url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1000&q=75');
    background-size: 100% 100%, auto var(--hero-photo);
    background-repeat: no-repeat;
    background-position: 0 0, 62% top;
    background-color: var(--navy-900);
  }
  .hero-inner {
    min-height: max(520px, calc(100vh - var(--hero-offset, 70px)));
    min-height: max(520px, calc(100svh - var(--hero-offset, 70px)));
    align-items: flex-end;
    padding-top: calc(var(--hero-photo) - 70px); /* text never starts higher than the bottom of the photo */
    padding-bottom: 2rem;
  }
  .hero-kicker {
    display: inline-block;
    font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--white);
    background: var(--red-600);
    padding: .35rem .7rem; border-radius: 4px;
    margin-bottom: .85rem;
  }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.5rem); margin-bottom: .8rem; }
  .hero p.lead-wg { font-size: .95rem; line-height: 1.6; color: rgba(255, 255, 255, .78); }
  .hero .d-flex.mt-4 { margin-top: 1.25rem !important; gap: .75rem !important; }
}
@media (max-width: 575.98px) {
  .hero .btn-wg { flex: 1 1 100%; text-align: center; }
}

/* Landscape phones / short screens: don't force full height */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-inner { min-height: 0; padding-top: 2rem; padding-bottom: 2rem; }
}

.trust-badge { display: flex; align-items: center; gap: .9rem; margin-top: 1.75rem; }
.avatar-stack { display: flex; }
.avatar-stack img {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--navy-800);
  object-fit: cover;
  margin-left: -12px;
}
.avatar-stack img:first-child { margin-left: 0; }
.trust-stars { color: #FFB020; font-size: .9rem; letter-spacing: 1px; }
.trust-badge small { color: rgba(255, 255, 255, .6); display: block; }

.hero-float-card {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  width: min(260px, 80%);
}
.hero-float-card img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex: none; }
.hero-float-card .fc-title { font-family: var(--font-head); font-weight: 500; font-size: .85rem; color: var(--ink-900); line-height: 1.2; }
.hero-float-card .fc-price { color: var(--red-600); font-weight: 700; font-size: .95rem; }

@media (max-width: 767.98px) {
  .hero-float-card { position: static; width: 100%; margin-top: 1.5rem; }
}

/* =================== Stat counters =================== */
.stat-row { display: flex; flex-wrap: wrap; gap: 2.25rem; margin: 1.75rem 0; }
.stat-item .stat-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.7rem + 1vw, 2.6rem);
  color: var(--ink-900);
  line-height: 1;
}
.stat-item .stat-num .text-red { font-size: .7em; }
.stat-item .stat-label { color: var(--muted); font-size: .88rem; margin-top: .35rem; }
.hero .stat-item .stat-num,
.bg-navy .stat-item .stat-num { color: var(--white); }
.hero .stat-item .stat-label,
.bg-navy .stat-item .stat-label { color: rgba(255, 255, 255, .6); }

/* =================== Image collage (welcome section) =================== */
.collage { position: relative; }
.collage .collage-main {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/4.4;
  box-shadow: var(--shadow-md);
}
.collage .collage-badge {
  position: absolute;
  right: -1rem;
  top: -1rem;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--red-600);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-head);
  font-size: .82rem;
  line-height: 1.15;
  box-shadow: var(--shadow-md);
  padding: .5rem;
}
.collage .collage-sub {
  position: absolute;
  left: -1.5rem;
  bottom: -1.5rem;
  width: 46%;
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--white);
}
@media (max-width: 767.98px) {
  .collage { margin-bottom: 4rem; }
  .collage .collage-sub { width: 55%; }
}

/* =================== Feature cards (shield) =================== */
.feature-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: transform .2s ease, background .2s ease;
}
.feature-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .07); }
.feature-card .fi-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  background: var(--red-600);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.feature-card h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: .5rem;
}
.feature-card p { color: rgba(255, 255, 255, .6); font-size: .92rem; margin: 0; }

.feature-card.light {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.feature-card.light h3 { color: var(--ink-900); }
.feature-card.light p { color: var(--muted); }

.why-choose-section {
  background-color: var(--navy-800);
  background-image: linear-gradient(180deg, rgba(20, 23, 43, .92), rgba(20, 23, 43, .96)), url('https://images.unsplash.com/photo-1571607388263-1044f9ea01dd?auto=format&fit=crop&w=1600&q=60');
  background-size: cover;
  background-position: center;
  position: relative;
}
.why-choose-section h2, .why-choose-section .eyebrow + h2 { color: var(--white); }

/* =================== Car cards =================== */
.car-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.car-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.car-card .car-card-img { position: relative; aspect-ratio: 4/2.7; overflow: hidden; }
.car-card .car-card-img { display: block; }
.car-card .car-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.car-card:hover .car-card-img img { transform: scale(1.05); }
.car-card .car-card-title a { color: inherit; text-decoration: none; transition: color .2s; }
.car-card .car-card-title a:hover { color: var(--red-600); }
#enquire { scroll-margin-top: 110px; }
.car-card .car-card-badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--navy-900); color: var(--white);
  font-family: var(--font-head); font-size: .7rem; letter-spacing: .05em;
  text-transform: uppercase; padding: .3rem .65rem; border-radius: var(--radius-pill);
}
.car-card .car-card-body { padding: 1.15rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.car-card .car-card-title { font-size: 1.05rem; margin-bottom: .25rem; }
.car-card .car-card-loc { color: var(--muted); font-size: .82rem; margin-bottom: .85rem; display: flex; align-items: center; gap: .35rem; }
.car-card .car-card-specs {
  display: flex; flex-wrap: wrap; gap: .6rem 1rem;
  font-size: .8rem; color: var(--ink-700);
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  padding: .75rem 0; margin-bottom: .9rem;
}
.car-card .car-card-specs span { display: inline-flex; align-items: center; gap: .35rem; }
.car-card .car-card-specs i { color: var(--red-600); }
.car-card .car-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: .5rem; }
.car-card .car-card-price { font-family: var(--font-head); }
.car-card .car-card-price small { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; font-weight: 400; }
.car-card .car-card-price strong { color: var(--red-600); font-size: 1.2rem; }

.cars-row-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: .5rem;
}
.cars-row-scroll::-webkit-scrollbar { height: 6px; }
.cars-row-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
.cars-row-scroll > .car-card-col { flex: 0 0 clamp(260px, 30vw, 340px); scroll-snap-align: start; }

@media (min-width: 992px) {
  .cars-row-scroll { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .cars-row-scroll > .car-card-col { flex: initial; }
}

.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.nav-arrows { display: flex; gap: .6rem; }

/* =================== Why buy from us =================== */
.why-buy-section { background: var(--navy-800); color: var(--white); }
/* Photo matches the height of the text panel instead of stretching the section */
.why-buy-img { position: relative; overflow: hidden; height: 100%; min-height: 420px; }
.why-buy-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 75%; }
/* darken the photo so it blends into the navy section */
.why-buy-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 23, 43, .25) 0%, rgba(20, 23, 43, .35) 70%, rgba(20, 23, 43, .7) 100%),
              linear-gradient(180deg, rgba(20, 23, 43, .45) 0%, rgba(20, 23, 43, 0) 45%);
}
.why-buy-panel { padding: 4rem 3rem; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.why-buy-panel > .btn-wg { align-self: flex-start; }
@media (min-width: 1400px) {
  .why-buy-panel { padding: 4.5rem 4rem; max-width: 900px; }
}
@media (max-width: 991.98px) {
  .why-buy-img { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
  .why-buy-panel { padding: 3rem 1.5rem; }
}
@media (max-width: 575.98px) {
  .why-buy-img { aspect-ratio: 4 / 3; }
}
.why-buy-panel h2, .why-buy-panel p { color: var(--white); }
.why-buy-panel p { color: rgba(255, 255, 255, .65); }
.why-buy-feature { display: flex; gap: 1rem; }
.why-buy-feature .wf-icon {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center;
  color: var(--red-600); flex: none; font-size: 1.1rem;
}
.why-buy-feature h4 { font-size: .92rem; color: var(--white); margin-bottom: .25rem; }
.why-buy-feature p { font-size: .85rem; color: rgba(255, 255, 255, .55); margin: 0; }

/* =================== CTA + Footer =================== */
.cta-footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); }
.cta-top { padding: 4rem 0 3rem; border-bottom: 1px solid var(--navy-line); }
.cta-top h2 { color: var(--white); }
.cta-top .lead-wg { color: rgba(255, 255, 255, .6); max-width: 480px; }
.newsletter-form { max-width: 460px; }
.newsletter-form .form-control {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--navy-line);
  color: var(--white);
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  padding: .8rem 1.25rem;
}
.newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter-form .form-control:focus { box-shadow: none; border-color: var(--red-600); background: rgba(255, 255, 255, .08); }
.newsletter-form .btn-wg { border-radius: 0 var(--radius-pill) var(--radius-pill) 0; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); filter: grayscale(.25) contrast(1.05); min-height: 260px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }

.footer-cols { padding: 3.5rem 0 2rem; }
.footer-cols h5 { color: var(--white); font-size: .95rem; margin-bottom: 1.25rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols ul li { margin-bottom: .65rem; font-size: .9rem; color: rgba(255, 255, 255, .6); }
.footer-cols ul a { color: rgba(255, 255, 255, .6); font-size: .9rem; }
.footer-cols ul a:hover { color: var(--red-600); }
.footer-cols .footer-logo img { height: 40px; margin-bottom: 1rem; }
.footer-cols p.small-copy { font-size: .88rem; color: rgba(255, 255, 255, .55); max-width: 320px; }

.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--navy-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .7);
  margin-right: .5rem;
}
.footer-social a:hover { background: var(--red-600); border-color: var(--red-600); color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--navy-line);
  padding: 1.25rem 0;
  font-size: .82rem;
}
.footer-bottom a { color: rgba(255, 255, 255, .6); }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; }
/* Phones: copyright and credit stacked and centred, clear of the back-to-top button */
@media (max-width: 767.98px) {
  .footer-bottom-inner { flex-direction: column; justify-content: center; text-align: center; gap: .35rem; }
  .footer-bottom { padding-bottom: 4.5rem; }
}

/* =================== Back to top =================== */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--red-600);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all .25s ease;
  z-index: 1040;
  border: none;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* =================== Page banner (inner pages) =================== */
.page-banner {
  background-color: var(--navy-800);
  background-image: linear-gradient(180deg, rgba(20, 23, 43, .82), rgba(20, 23, 43, .93)), var(--banner-img, none);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 3.75rem 0 3.25rem;
  text-align: center;
}
.page-banner h1 { color: var(--white); font-size: clamp(1.9rem, 1.6rem + 1.3vw, 2.9rem); margin-bottom: .6rem; }
.breadcrumb-wg { justify-content: center; margin: 0; font-size: .85rem; }
.breadcrumb-wg a { color: rgba(255, 255, 255, .6); }
.breadcrumb-wg a:hover { color: var(--white); }
.breadcrumb-wg .breadcrumb-item.active { color: rgba(255, 255, 255, .85); }
.breadcrumb-wg .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .4); }

/* =================== Filter bar (Used Cars) =================== */
.filter-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}
.filter-card label { font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-bottom: .35rem; }
.filter-card .form-select, .filter-card .form-control { border-radius: var(--radius-sm); border-color: var(--border); padding: .6rem .85rem; font-size: .9rem; }
.filter-card .form-select:focus, .filter-card .form-control:focus { border-color: var(--red-600); box-shadow: 0 0 0 3px rgba(227,24,55,.12); }

/* Single-line filter bar (used cars) */
.filter-bar { display: flex; gap: .6rem; align-items: center; }
.filter-bar > .form-select { flex: 0 1 170px; min-width: 0; }
.filter-search { position: relative; flex: 1 1 260px; min-width: 0; }
.filter-search .bi { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.filter-search .form-control { padding-left: 2.4rem; }
.filter-actions { display: flex; gap: .5rem; flex: none; }
.filter-btn {
  height: 42px; min-width: 42px; padding: 0 .9rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink-900); font-size: .88rem; font-weight: 500;
  transition: border-color .2s, color .2s, background .2s;
}
.filter-btn:hover, .filter-btn[aria-expanded="true"] { border-color: var(--red-600); color: var(--red-600); }
.filter-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red-600); color: var(--white); font-size: .7rem; line-height: 18px; text-align: center;
}
.filter-more { display: flex; gap: .6rem; padding-top: .75rem; margin-top: .75rem; border-top: 1px solid var(--border); }
.filter-more .form-select { flex: 0 1 220px; }

@media (max-width: 991.98px) {
  .filter-bar { flex-wrap: wrap; }
  .filter-search { flex: 1 1 100%; }
  .filter-bar > .form-select { flex: 1 1 calc(50% - .3rem); }
  .filter-actions { flex: 1 1 100%; }
  .filter-actions .filter-btn:first-child { flex: 1; }
  .filter-more .form-select { flex: 1 1 50%; }
}
@media (max-width: 575.98px) {
  .filter-card .form-select { font-size: .85rem; padding-left: .7rem; padding-right: 1.9rem; background-position: right .55rem center; }
}
.results-meta { color: var(--muted); font-size: .92rem; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.75rem; color: var(--border); margin-bottom: 1rem; display: block; }

/* =================== Car detail =================== */
.gallery-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10.5; box-shadow: var(--shadow-md); background: var(--light-100); }
.gallery-main:focus-visible { outline: 3px solid rgba(227, 24, 55, .5); outline-offset: 3px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: var(--ink-900); font-size: 1.1rem;
  box-shadow: var(--shadow-sm); transition: background .2s, color .2s;
}
.gallery-nav:hover { background: var(--red-600); color: var(--white); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-counter {
  position: absolute; right: 14px; bottom: 14px;
  padding: .25rem .65rem; border-radius: 999px;
  background: rgba(20, 23, 43, .75); color: var(--white); font-size: .8rem; font-weight: 500;
}
.gallery-thumbs { position: relative; display: flex; gap: .75rem; margin-top: .85rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.gallery-thumbs button { scroll-snap-align: start; }
@media (max-width: 575.98px) { .gallery-nav { width: 38px; height: 38px; } .gallery-thumbs button { width: 70px; height: 50px; } }
.gallery-thumbs button {
  border: 2px solid transparent; padding: 0; background: none; border-radius: var(--radius-sm);
  overflow: hidden; width: 84px; height: 60px; flex: none;
}
.gallery-thumbs button.active { border-color: var(--red-600); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail-price-box { background: var(--light-100); border-radius: var(--radius-md); padding: 1.5rem; }
.detail-price-box .price-main { font-family: var(--font-head); font-size: 2.1rem; color: var(--red-600); }
.detail-price-box .price-sub { color: var(--muted); font-size: .85rem; }

.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
@media (min-width: 576px) { .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Icon sits above the text so long labels (Transmission, Registration) fit inside the tile */
.spec-item { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1rem; min-width: 0; height: 100%; }
.spec-item i { color: var(--red-600); font-size: 1rem; flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(227, 24, 55, .08); display: grid; place-items: center; }
.spec-item > div { min-width: 0; width: 100%; }
.spec-item .spec-label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; line-height: 1.3; overflow-wrap: anywhere; }
.spec-item .spec-value { font-weight: 500; font-size: .92rem; line-height: 1.35; overflow-wrap: anywhere; }

.feature-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.feature-pills li {
  list-style: none;
  background: var(--light-100);
  border-radius: var(--radius-pill);
  padding: .45rem 1rem;
  font-size: .85rem;
  display: flex; align-items: center; gap: .4rem;
}
.feature-pills li i { color: var(--red-600); }

/* =================== Team / testimonials / process =================== */
/* Customer reviews: compact 3-card grid (swipeable row on phones) */
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.reviews-head p { color: var(--muted); max-width: 340px; font-size: .95rem; }
.reviews-controls { display: flex; align-items: center; gap: 1.25rem; }
.reviews-arrows { display: flex; gap: .5rem; flex: none; }
.reviews-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--white); color: var(--ink-900);
  transition: background .2s, color .2s, border-color .2s;
}
.reviews-arrow:hover, .reviews-arrow:focus-visible { background: var(--red-600); border-color: var(--red-600); color: var(--white); }
.reviews-slider { --per-view: 3; --gap: 1.25rem; }
.reviews-viewport { overflow: hidden; margin: -10px; padding: 10px; touch-action: pan-y; }
.reviews-track { display: flex; gap: var(--gap); transition: transform .6s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.reviews-track > .review-card { flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); }
.reviews-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.reviews-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--border); transition: width .3s, background .3s; }
.reviews-dots button.is-active { width: 24px; background: var(--red-600); }
@media (max-width: 991.98px) { .reviews-slider { --per-view: 2; } }
@media (max-width: 767.98px) { .reviews-slider { --per-view: 1; } }
@media (prefers-reduced-motion: reduce) { .reviews-track { transition: none; } }
.review-card {
  position: relative; margin: 0; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem 1.25rem; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.review-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red-600), rgba(227, 24, 55, 0)); }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(227, 24, 55, .25); }
.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; }
.review-card .stars { color: #FFB020; font-size: .85rem; letter-spacing: 1px; }
.review-mark { font-size: 2.4rem; line-height: 1; color: var(--red-600); opacity: .18; margin: -.4rem -.3rem 0 0; }
.review-card blockquote { flex: 1; margin: 0 0 1.25rem; color: var(--ink-700); font-size: .95rem; line-height: 1.6; }
.review-card figcaption { display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.review-avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: var(--white);
  font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .03em;
}
.review-card figcaption strong { display: block; font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--ink-900); }
.review-card figcaption small { display: block; color: var(--muted); font-size: .78rem; }
.review-card figcaption small .bi { color: var(--red-600); margin-right: .15rem; }
@media (max-width: 991.98px) {
  .reviews-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .reviews-controls { width: 100%; justify-content: space-between; }
}
@media (max-width: 575.98px) { .reviews-controls p { display: none; } .reviews-controls { justify-content: flex-start; } }

.team-card { text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1/1.05; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.team-card h3 { font-size: 1rem; margin-bottom: .15rem; }
.team-card .role { color: var(--red-600); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-head); }

.process-step { text-align: center; position: relative; }
.process-step .ps-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--red-600); color: var(--white);
  font-family: var(--font-head); font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem;
  box-shadow: var(--shadow-md);
}
.process-step h3 { font-size: 1rem; }
.process-step p { font-size: .88rem; }

.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow-sm); text-align: center; max-width: 640px; margin: 0 auto; }
.testimonial-card img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; }
.testimonial-card .stars { color: #FFB020; margin-bottom: .75rem; }
.testimonial-card p.quote { font-size: 1.02rem; color: var(--ink-700); font-style: italic; }
.testimonial-card .name { font-family: var(--font-head); font-weight: 500; font-size: .95rem; }
.testimonial-card .role { color: var(--muted); font-size: .8rem; }
#testimonialCarousel .carousel-control-prev, #testimonialCarousel .carousel-control-next { width: 46px; height: 46px; top: 50%; transform: translateY(-50%); background: var(--white); border-radius: 50%; box-shadow: var(--shadow-sm); opacity: 1; }
#testimonialCarousel .carousel-control-prev { left: -8px; }
#testimonialCarousel .carousel-control-next { right: -8px; }
#testimonialCarousel .carousel-control-prev-icon, #testimonialCarousel .carousel-control-next-icon { filter: invert(1) grayscale(1) contrast(6); width: 1rem; height: 1rem; }
@media (max-width: 767.98px) {
  #testimonialCarousel .carousel-control-prev, #testimonialCarousel .carousel-control-next { display: none; }
}

/* =================== Accordion (FAQ) =================== */
.accordion-wg .accordion-item { border: 1px solid var(--border); border-radius: var(--radius-md) !important; overflow: hidden; margin-bottom: 1rem; }
.accordion-wg .accordion-button { font-family: var(--font-head); font-weight: 500; font-size: .95rem; padding: 1.1rem 1.4rem; }
.accordion-wg .accordion-button:not(.collapsed) { background: var(--red-100); color: var(--red-700); box-shadow: none; }
.accordion-wg .accordion-button:focus { box-shadow: none; border-color: var(--border); }
.accordion-wg .accordion-body { padding: .25rem 1.4rem 1.4rem; color: var(--ink-700); font-size: .92rem; }

/* =================== Forms (contact) =================== */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 2.25rem; }
.form-floating > label { color: var(--muted); }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--border); padding: .75rem 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--red-600); box-shadow: 0 0 0 3px rgba(227,24,55,.12); }
.form-label { font-size: .85rem; font-weight: 500; color: var(--ink-900); }

.info-card { background: var(--navy-800); color: var(--white); border-radius: var(--radius-lg); padding: 2.25rem; height: 100%; display: flex; flex-direction: column; }
/* Map sits inside the contact card, under opening hours, and fills the remaining height */
.info-card .info-map { margin-top: 1.75rem; flex: 1 1 auto; min-height: 240px; display: flex; box-shadow: none; }
.info-card .info-map iframe { flex: 1; min-height: 240px; }
.info-card h3 { color: var(--white); font-size: 1.2rem; }
.info-row { display: flex; gap: 1rem; margin-bottom: 1.35rem; }
.info-row i { color: var(--red-600); font-size: 1.2rem; margin-top: .15rem; }
.info-row .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.5); }
.info-row .value { color: rgba(255, 255, 255, .9); font-size: .95rem; }

.form-success-alert { display: none; }
.form-success-alert.is-shown { display: flex; }
.form-error-alert { display: none; }
.form-error-alert.is-shown { display: flex; }
/* Spam trap: hidden from people, filled in by bots */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =================== Reveal animation =================== */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* =================== Misc utility =================== */
.divider-dashed { border-top: 1px dashed var(--border); }
.badge-wg { background: var(--red-100); color: var(--red-700); font-family: var(--font-head); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; font-size: .72rem; padding: .35rem .7rem; border-radius: var(--radius-pill); }
.ratio-4x3 { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: var(--radius-lg); }
