/* =====================================================================
   Chery South Africa — homepage replica
   Palette, type scale and section metrics taken from the live stylesheet.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Type: Archivo for signage-scale display, IBM Plex Sans for reading,
   IBM Plex Mono for every number on the site (prices, phones, hours,
   specs). The mono figures are the house style — see .price-board.
   --------------------------------------------------------------------- */
@font-face { font-family: Archivo; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/archivo-600.woff2") format("woff2"); }
@font-face { font-family: Archivo; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/archivo-700.woff2") format("woff2"); }
@font-face { font-family: Archivo; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/archivo-800.woff2") format("woff2"); }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/plex-mono-600.woff2") format("woff2"); }

:root {
  /* Signal red is Star Chery's own; it is used as solid structure, never
     as a wash. Ink carries the chrome, paper the reading surfaces. */
  --signal: #c7001f;
  --signal-deep: #8f0016;
  --ink: #141118;
  --ink-2: #262029;
  --paper: #f4f4f2;
  --steel: #dcd8d3;
  --muted: #6f6a72;

  /* Legacy aliases so inherited rules keep resolving. */
  --accent: var(--signal);
  --accent-soft: var(--signal);
  --star-red: var(--signal);
  --star-red-dark: var(--signal-deep);
  --ink-strong: var(--ink);
  --ink-black: var(--ink);
  --footer-muted: #8d8891;
  --header-solid: var(--ink);

  --font-display: Archivo, "Arial Narrow", Impact, system-ui, sans-serif;
  --font-sans: "Plex Sans", ui-sans-serif, -apple-system, "Segoe UI", Arial, system-ui, sans-serif;
  --font-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --header-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  /* Numbers line up in columns wherever they appear. */
  font-variant-numeric: tabular-nums;
}

/* ---------- House type roles ---------- */

.display,
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-transform: uppercase;
}

/* Mono label: the small all-caps tag that sits above every section head. */
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tag::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--signal);
}

/* Any figure the dealership trades on. */
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Signature: the price board ----------
   A windscreen-sticker block. Red top edge, ink body, mono figure. */
.price-board {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px 13px;
  border-top: 4px solid var(--signal);
  min-width: 168px;
}
.price-board-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #a9a3b0;
}
.price-board-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  padding-right: 20px;
  padding-left: 20px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1920px;
}

/* =====================================================================
   HEADER
   ===================================================================== */

/* Opaque, in-flow-feeling bar with a signal rule beneath it. The hero
   starts below the header rather than running under a floating one. */
.header-box {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 22;
  background: var(--ink);
  border-bottom: 3px solid var(--signal);
}

/* Deliberately not positioned: the mega panel below is absolute against
   .header-box (position:fixed) so it can span the full viewport width
   rather than starting at the container's 20px gutter. */
.header-box header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}

.header-box .left-box { display: flex; height: 100%; flex: 1; align-items: center; }

/* Dealer lockup: the Chery mark, a hairline rule, then the dealership name. */
.header-box .left-box .logo { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.header-box .left-box .logo-mark { width: 150px; display: flex; align-items: center; }
.header-box .left-box .logo img { width: 100%; }
.header-box .left-box .logo .logo-2 { display: none !important; }

.logo-dealer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, .22);
  line-height: 1.1;
}
.logo-dealer-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
}
.logo-dealer-place {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 600;
  margin-top: 2px;
}

.header-box .left-box .links { display: flex; align-items: center; margin-left: 28px; height: 100%; }
.header-box .left-box .links .link {
  margin-right: 28px;
  height: 100%;
  display: flex;
  font-size: 14px;
  align-items: center;
}
.header-box .left-box .links .link .title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  background: none;
  padding: 0;
  letter-spacing: .07em;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color .2s;
}
/* Solid signal block rather than a sliding hairline. */
.header-box .left-box .links .link .title::after {
  bottom: -3px;
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--signal);
  position: absolute;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.header-box .left-box .links .link:hover .title::after,
.header-box .left-box .links .link.open .title::after { transform: scaleX(1); }
.header-box .left-box .links .link .title svg { width: 45px; height: auto; }

/* right quick links */
.header-box .right-box .links { display: flex; align-items: center; height: var(--header-h); gap: 8px; }
.header-box .right-box .link { height: 100%; display: flex; align-items: center; }
.header-box .right-box .title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 100%;
  transition: color .2s;
}
.header-box .right-box .title:hover { color: var(--signal); }
.header-box .right-box .y-2 { display: flex; align-items: center; }

/* The phone number is a solid signal block — the one thing a dealership
   most wants you to act on. */
.header-call { margin-left: 6px; }
.header-call .title {
  background: var(--signal);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 0 18px;
  height: 38px;
  align-self: center;
}
.header-call .title:hover { background: var(--signal-deep); color: #fff; }

/* The bar is opaque at all times; .active is kept only so the dropdown
   and scroll script have something to toggle. */
.header-box.active { background: var(--ink); }
.header-box .left-box .logo .logo-2 { display: none !important; }

/* ---------- MODELS mega dropdown ---------- */
.header-box .links .link .link-box {
  position: absolute;
  width: 100vw;
  left: 0;
  top: calc(var(--header-h) + 3px);
  display: none;
  align-items: stretch;
  min-height: 620px;
  border-bottom: 3px solid var(--signal);
}
.header-box .links .link.open .link-box { display: flex; }

.link-left-box {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  width: 20%;
  align-items: center;
  padding-top: 77px;
}
.link-left-box .car-logo {
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 48px;
  cursor: pointer;
}
.link-left-box .car-logo img { width: 154px; opacity: .5; transition: opacity .3s; }
.link-left-box .car-logo-1 { padding-bottom: 28px; }
.link-left-box .car-logo-1 img { width: 140px; }
.link-left-box .car-logo-2 { padding-top: 28px; padding-bottom: 32px; }
.link-left-box .car-logo.active img,
.link-left-box .car-logo:hover img { opacity: 1; }
/* Grootman has no logo file yet: its name set in the display face, with the
   coming-soon badge stacked beneath so it fits the narrow column. */
.link-left-box .car-logo-3 { flex-direction: column; padding-top: 28px; padding-bottom: 32px; gap: 10px; }
.grootman-left-logo {
  color: #fff;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .5;
  transition: opacity .3s;
}
.link-left-box .car-logo:hover .grootman-left-logo { opacity: 1; }

.link-center-box {
  width: 22%;
  background: var(--ink-2);
  padding: 77px 48px;
  z-index: 20;
  position: relative;
}
.link-center-box .car-style { display: none; }
.link-center-box .car-style.active { display: block; }
.car-style-lists { margin-bottom: 38px; }
.car-style-title {
  font-size: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  cursor: pointer;
  justify-content: space-between;
  gap: 12px;
}
.car-style-title img { width: 96px; height: auto; }
.car-style-title .img-box { width: 20px; flex: 0 0 20px; color: #fff; }
.car-style-title .img-box .ico-minus { display: none; }
.car-style-lists.active .car-style-title .img-box .ico-minus { display: block; }
.car-style-lists.active .car-style-title .img-box .ico-plus { display: none; }

.car-style-list {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease;
}
.car-style-lists.active .car-style-list { max-height: 500px; opacity: 1; }

.car-style-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-top: 4px;
  padding: 9px 0 9px 14px;
  position: relative;
  font-size: 17px;
  opacity: .62;
  color: #fff;
  border-left: 2px solid transparent;
  transition: opacity .2s, border-color .2s, padding-left .2s;
}
.car-style-box.active, .car-style-box:hover {
  opacity: 1;
  border-left-color: var(--signal);
  padding-left: 20px;
}
.car-style-box .badge svg { width: 46px; height: auto; display: block; }

.car-style-lists.is-static .car-style-title { cursor: default; }
.tiggo-v-logo { width: 120px; }
.coming-soon-badge svg { width: 96px; height: auto; display: block; }
.chery-q-left-logo { width: 130px; }

.link-right-box {
  padding: 80px 66px 90px 80px;
  width: 58%;
  background: var(--paper);
}
.link-right-box-1 { display: block; height: 100%; }
.link-right-box .bg-box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.link-right-box .bg-box .logo {
  position: absolute;
  width: 90%;
  left: 50%;
  top: -50px;
  opacity: .06;
  transform: translateX(-50%);
}
.link-right-box .bg-box .car-box { width: 100%; position: relative; z-index: 2; }
.link-right-box .bg-box .car-box .car { width: 82%; position: relative; z-index: 2; left: 10%; top: 40px; }
.link-right-box .bg-box .detail-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 120px;
  position: relative;
  z-index: 3;
}
.link-right-box .bg-box .detail-box .left { display: flex; align-items: center; width: 100%; }
.link-right-box .bg-box .detail-box .data-box { margin-right: 35px; }
/* Price board treatment inside the dropdown. */
.link-right-box .bg-box .detail-box .data-box {
  background: var(--ink);
  color: #fff;
  padding: 14px 22px 16px;
  border-top: 4px solid var(--signal);
}
.link-right-box .bg-box .detail-box .data-box .t {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #a9a3b0;
}
.link-right-box .bg-box .detail-box .data-box .d {
  font-size: 30px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  margin-top: 2px;
}
.link-right-box .bg-box .detail-box .data-box .d i {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.link-right-box .bg-box .detail-box .right { display: flex; justify-content: flex-end; width: 100%; }
.link-right-box .bg-box .detail-box .right .btn {
  width: 100%;
  max-width: 250px;
  height: 52px;
  padding: 0 2rem;
  white-space: nowrap;
  background-color: var(--signal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: background-color .2s;
}
.link-right-box .bg-box .detail-box .right .btn:hover { background-color: var(--signal-deep); }

/* ---------- hamburger + mobile panel ---------- */
.header-box .icons { display: none; align-items: center; }
.hamburger { width: 32px; height: 22px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.hamburger span { display: block; height: 2px; width: 100%; background: #fff; transition: transform .3s, opacity .3s; }
.hamburger.open span:first-child { transform: translateY(10px) rotate(45deg); }
.hamburger.open span:last-child { transform: translateY(-10px) rotate(-45deg); }

.mb-list {
  position: fixed;
  height: calc(100vh - var(--header-h));
  width: 100%;
  left: 0;
  top: var(--header-h);
  background-color: var(--ink);
  z-index: 21;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 25px 40px;
  display: none;
}
.mb-list.active { display: flex; }
.mb-list .box .f-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  cursor: pointer;
}
.mb-list .box .f-box .name img { width: 115px; transform: translateX(-10px); filter: invert(1) brightness(2); }
.mb-list .box .f-box .add-box { width: 28px; color: #fff; }
.mb-list .box .c-box { height: 0; overflow: hidden; }
.mb-list .box.active .c-box { height: auto; padding-bottom: 10px; }
.mb-list .d-box { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; font-size: 16px; color: rgba(255, 255, 255, .82); }
.mb-list .d-box em { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--signal); margin-left: 8px; }
.mb-list .divider { height: 1px; background: rgba(255, 255, 255, .1); margin: 6px 0; }
.mb-list .mb-link {
  display: block;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: .07em;
}

/* =====================================================================
   HERO BANNER
   ===================================================================== */

/* The banner keeps its native ratio until that would push it past the fold;
   from there it caps to the remaining viewport height and the media crops
   (object-fit: cover below), so the hero always fits one screen. */
.banner-wrapper {
  width: 100%;
  aspect-ratio: 3840 / 1860;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  position: relative;
  overflow: hidden;
  background: #000;
}
.banner-track { display: flex; height: 100%; transition: transform .8s cubic-bezier(.4, 0, .2, 1); }
.banner-slide { position: relative; overflow: hidden; height: 100%; flex: 0 0 100%; }
.banner-video, .banner-wrapper img { height: 100%; width: 100%; object-fit: cover; }
.banner-video {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}
.banner-video.is-playing { opacity: 1; }

/* Supplied campaign artwork: never cropped, because its price and legal line
   sit at the very edges. Shown whole (contain) over a blurred, enlarged copy
   of itself that fills whatever the banner's ratio leaves over. */
.banner-art > a { display: block; position: relative; height: 100%; overflow: hidden; }
.banner-wrapper .banner-art-bg img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: blur(26px) saturate(1.1);
  transform: scale(1.2);
}
.banner-wrapper .banner-art-fg img { position: relative; object-fit: contain; }

.detail-box {
  position: absolute;
  bottom: 60px;
  left: 60px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.chery-q-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 350px;
  height: 64px;
  padding: 5px 24px;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 74%, #9962d2 0, #7338bb 100%);
  box-shadow: 0 0 0 0 rgba(153, 98, 210, 0);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, background .35s ease, filter .35s ease;
}
.chery-q-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.chery-q-cta:hover {
  transform: translateY(-4px) scale(1.03);
  background: radial-gradient(ellipse at 50% 60%, #b07aef 0, #7d3fd0 100%);
  box-shadow: 0 12px 28px rgba(115, 56, 187, .45), 0 0 24px rgba(153, 98, 210, .55);
  filter: brightness(1.05);
}
.chery-q-cta:hover::before { transform: translateX(120%); }
.chery-q-cta:active { transform: translateY(-1px) scale(1.01); }
.chery-q-cta-eyebrow, .chery-q-cta-title {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  line-height: normal;
  white-space: nowrap;
}
.chery-q-cta-eyebrow { margin-bottom: -3px; font-size: 14px; font-weight: 300; }
.chery-q-cta-title { font-size: 30px; font-weight: 700; }

/* Grootman slide: a plain dealer button (.d-btn) over campaign artwork. */
.banner-cta { min-width: 260px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

/* Numbered indicators rather than sliding hairlines: mono figures with a
   fill bar, so the carousel reads as a counted set. */
.swiper-pagination {
  position: absolute;
  bottom: 40px;
  left: 60px;
  display: flex;
  gap: 22px;
  z-index: 10;
  align-items: flex-end;
}
.swiper-pagination-bullet {
  width: auto;
  height: auto;
  background: none;
  opacity: 1;
  position: relative;
  padding: 0 0 10px;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .5);
  transition: color .25s;
}
.swiper-pagination-bullet::before {
  position: absolute;
  content: "";
  inset: auto 0 0 0;
  height: 2px;
  background: rgba(255, 255, 255, .28);
}
.swiper-pagination-bullet::after {
  position: absolute;
  content: "";
  width: 0;
  height: 2px;
  background-color: var(--signal);
  left: 0;
  bottom: 0;
}
.swiper-pagination-bullet.active { color: #fff; }
.swiper-pagination-bullet.active::after { animation: paginationFill 10s linear forwards; }
@keyframes paginationFill { 0% { width: 0; } to { width: 100%; } }

.d-only { display: block; }
.m-only { display: none; }

/* =====================================================================
   MODEL SLIDER
   ===================================================================== */

/* Paper ground with a signal band behind the car, and the heading pushed
   left. Nothing here is centred on a grey gradient any more. */
.slider-container {
  display: flex;
  flex-direction: column;
  padding: 90px 0 80px;
  background: var(--paper);
  position: relative;
  width: 100%;
  overflow: hidden;
}
.slider-heading {
  text-align: left;
  font-size: clamp(28px, 3.6vw, 54px);
  margin: 16px 0 0;
  max-width: 24ch;
  color: var(--ink);
}
.model-name-wrapper { display: flex; align-items: center; justify-content: flex-start; margin-top: 26px; }
.model-name-logo { max-width: 150px; opacity: .5; }

.model-tabs-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  flex-wrap: wrap;
  margin: 34px 0 0;
  border-top: 1px solid var(--steel);
}
.model-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
  background: none;
  color: var(--muted);
  padding: 14px 22px 14px 0;
  margin-right: 22px;
  transition: color .2s;
}
.model-tab:hover { color: var(--ink); }
.model-tab.active { color: var(--ink); }
.model-tab::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 3px;
  background: var(--signal);
  transition: width .3s ease;
}
.model-tab.active::after { width: calc(100% - 22px); }

.model-tabs-wrapper-mobile { display: none; width: 70%; margin: auto; padding-top: 20px; }
.model-tabs-wrapper-mobile select {
  background-color: transparent;
  padding: 8px 5px;
  border: 1px solid var(--accent-soft);
  border-radius: 4px;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: #1c1c1c;
}
.model-tabs-wrapper-mobile select:focus { outline: none; }

/* The car sits on a full-bleed white stage — the one place the range is
   presented as product rather than page. */
.model-slider-wrapper {
  width: 100%;
  margin-top: 44px;
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  padding: 30px 0 20px;
}
.model-viewport { width: 100%; overflow: hidden; }
.model-track { display: flex; transition: transform .7s cubic-bezier(.4, 0, .2, 1); }
.model-slide { flex: 0 0 100%; }
.model-slide img { width: 100%; }
.model-image-wrapper { position: relative; width: 100%; max-width: 1000px; margin: auto; }

.model-wheels img { position: absolute; width: 13.4%; }
.model-wheels img:first-child { bottom: 9.5%; left: 19%; }
.model-wheels img:last-child { bottom: 9.5%; right: 16.7%; }
.model-wheels.rotate-forward img { animation: wheelAnim 1.3s; }
.model-wheels.rotate-backward img { animation: wheelAnimReverse 1.3s; }

#cheryq img { width: 13%; }
#cheryq img:first-child { bottom: 9.2%; left: 16.6%; }
#cheryq img:last-child { bottom: 9.2%; right: 15.9%; }
#grootman img:first-child { width: 12.1%; bottom: 11.9%; left: 16%; }
#grootman img:last-child { width: 12.3%; bottom: 10%; right: 21.3%; }
#tiggocross img { width: 14.5%; }
#tiggocross img:first-child { bottom: 9.6%; left: 18.3%; }
#tiggocross img:last-child { bottom: 9.6%; right: 15.2%; }
#tiggocrosshev img { width: 15.1%; }
#tiggocrosshev img:first-child { bottom: 3.6%; left: 16.8%; }
#tiggocrosshev img:last-child { bottom: 4.1%; right: 14.2%; }
#tiggo7 img { width: 14%; }
#tiggo7 img:first-child { bottom: 9.6%; left: 17%; }
#tiggo7 img:last-child { bottom: 9.6%; right: 16.2%; }
#tiggo7phev img { width: 15.7%; }
#tiggo7phev img:first-child { bottom: 8%; left: 15.7%; }
#tiggo7phev img:last-child { bottom: 8%; right: 14.7%; }
#tiggo8max img { width: 15.5%; }
#tiggo8max img:first-child { bottom: 6%; left: 14.8%; }
#tiggo8max img:last-child { bottom: 6%; right: 16%; }
#tiggo8phev img { width: 15.5%; }
#tiggo8phev img:first-child { bottom: 5.8%; left: 14%; }
#tiggo8phev img:last-child { bottom: 7%; right: 15%; }
#tiggo9 img, #tiggo9phev img { width: 15.5%; }
#tiggo9 img:first-child, #tiggo9phev img:first-child { bottom: 6%; left: 12.3%; }
#tiggo9 img:last-child, #tiggo9phev img:last-child { bottom: 6%; right: 17.4%; }

@keyframes wheelAnim { to { transform: rotate(-1turn); } }
@keyframes wheelAnimReverse { to { transform: rotate(1turn); } }

.model-slider-nav {
  width: 100%;
  opacity: 0;
  position: absolute;
  transition: all .5s;
  z-index: 2;
  transform: translateY(-50%);
  padding: 0 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  top: 30%;
  pointer-events: none;
}
.slider-container:hover .model-slider-nav { opacity: 1; }
.nav-left, .nav-right {
  cursor: pointer;
  width: 75px;
  height: 75px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .5s;
  background: hsl(0deg 0% 0% / 6%);
  position: absolute;
  pointer-events: auto;
}
.nav-left:hover, .nav-right:hover { background: hsl(0deg 0% 0% / 14%); }
.nav-right { right: 70px; }
.nav-left { left: 70px; }
.nav-left img, .nav-right img { width: 10px; }
.nav-left img { transform: rotate(180deg); }

/* Under the stage: the nameplate of the car on screen, centred beneath it,
   with Explore on the same line at the right. */
.model-btn-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 34px 20px 0;
  max-width: 1920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px 40px;
}
.model-nameplate {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-align: center;
}
.model-count::after { content: ""; width: 22px; height: 3px; background: var(--signal); }
.model-btn-wrapper > a { grid-column: 3; justify-self: end; }
/* Below this the longest name ("Tiggo 4 Cross HEV") and the button can't
   share a line with the name still centred, so Explore drops beneath it. */
@media (max-width: 1400px) {
  .model-btn-wrapper { grid-template-columns: 1fr; }
  .model-nameplate, .model-btn-wrapper > a { grid-column: 1; justify-self: center; }
}
.model-current {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 72px);
  line-height: .95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.model-current em { font-style: normal; color: var(--signal); }
.model-current.is-in { animation: nameIn .5s cubic-bezier(.4, 0, .2, 1); }
@keyframes nameIn { from { opacity: 0; transform: translateY(12px); } }

.model-btn {
  min-width: 300px;
  height: 58px;
  padding: 0 40px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  background-color: var(--signal);
  transition: background-color .2s, transform .2s;
}
.model-btn:hover { background-color: var(--signal-deep); transform: translateY(-2px); }

/* =====================================================================
   NEWS
   ===================================================================== */

.news-title-wrapper { padding: 90px 0 0; background: var(--paper); }
.news-title-wrapper h2 { font-size: clamp(28px, 3.4vw, 48px); color: var(--ink); margin-top: 14px; }
.news-title-wrapper p { width: 50%; color: var(--muted); font-size: 17px; margin-top: 12px; }

.news-spacing { padding-top: 40px; padding-bottom: 60px; background: var(--paper); }
/* minmax(0,…) so the nowrap/ellipsis card titles can't blow the tracks out */
.news-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }

.latest-news-item { position: relative; margin-bottom: 50px; }
.new-badge {
  position: absolute;
  z-index: 2;
  top: -7px;
  left: 12px;
  max-width: 11%;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: all .3s ease-in-out;
  transform: translate(-5px, -5px);
}
.latest-news-item:hover .new-badge { opacity: 1; transform: translate(0); }

.latest-news-link { display: block; color: inherit; }
.latest-news-img {
  padding-top: 66.77%;
  overflow: hidden;
  position: relative;
  background-position: 50%;
  margin-bottom: 18px;
}
.latest-news-img img {
  width: 100%;
  height: 100%;
  transform: scale(1.1);
  transition: transform .5s ease;
  top: 0;
  position: absolute;
  object-fit: cover;
}
.latest-news-item:hover .latest-news-img img { transform: scale(1); }

.latest-news-title {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}
.latest-news-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--signal);
  margin-bottom: 12px;
}
.latest-news-text { color: var(--muted); margin-bottom: 18px; font-size: 15px; }
.latest-news-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.news-button {
  position: relative;
  display: inline-flex;
  line-height: 1;
  color: var(--ink);
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.news-button:hover { color: var(--signal); }
.latest-news-arrow { opacity: 0; transition: opacity .3s ease-out; display: flex; }
.latest-news-item:hover .latest-news-arrow { opacity: 1; }
.hover-underline {
  position: absolute;
  width: 0;
  height: 3px;
  background-color: var(--accent);
  bottom: -10px;
  left: 0;
  transition: all .7s ease-in-out;
}
.latest-news-item:hover .hover-underline { width: 84%; }

@media (min-width: 1200px) { .latest-news-img { margin-bottom: 24px; } }
@media (min-width: 1450px) { .latest-news-img { margin-bottom: 32px; } }
@media (min-width: 768px) { .latest-news-date, .latest-news-text { margin-bottom: 24px; } }
@media (min-width: 1024px) { .latest-news-date, .latest-news-text { margin-bottom: 32px; } }

/* =====================================================================
   APP SECTION
   ===================================================================== */

.app-wrapper { position: relative; height: 500px; display: flex; align-items: center; overflow: hidden; }
.app-wrapper > img { position: absolute; height: 100%; width: 100%; object-fit: cover; z-index: 0; }
.app-content-wrapper { position: relative; z-index: 1; width: 100%; }
.app-flex { display: flex; align-items: center; justify-content: space-between; }
.app-content { width: 50%; }
.app-content h2 { color: var(--ink); font-size: clamp(26px, 3.2vw, 44px); padding-bottom: 26px; }
.app-content h2 b { display: block; }
.find-out-more {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  padding: 16px 38px;
  transition: background .2s;
}
.find-out-more:hover { background: var(--signal); }
.download-links { display: flex; align-items: center; gap: 15px; padding-top: 30px; }
.download-link {
  padding: 5px 25px;
  gap: 4px;
  flex-direction: column;
  border-radius: 3.14px;
  background: #fff;
  box-shadow: 0 1.256px 3.171px -.942px rgba(0, 0, 0, .1);
  color: var(--ink-black);
  font-size: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  text-align: center;
}
.app-image { width: 40%; }
.app-image img { position: relative; width: 80%; height: auto; margin-top: 30%; }

@media (max-width: 1550px) { .app-image img { width: 95%; margin-top: 37%; } }
@media (max-width: 1200px) { .app-image { width: 45%; } .app-image img { width: 100%; margin-top: 54%; } }

/* =====================================================================
   FOOTER
   ===================================================================== */

/* Dark footer — the corporate site's is light, so this flips the whole
   bottom third of every page. */
.footer { padding: 75px 75px 15px; background: var(--ink); color: #fff; position: relative; }
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--signal);
}
.footer-wrapper { display: flex; justify-content: space-between; margin-bottom: 18px; gap: 40px; }
.footer-left { display: flex; width: 80%; flex-direction: column; }
.footer-menu { display: flex; justify-content: space-between; gap: 24px; }
.footer-item { display: flex; flex-direction: column; align-items: flex-start; }
.footer-item .first {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--signal);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.footer-item .flink {
  font-size: 15px;
  color: var(--footer-muted);
  transition: color .2s;
  margin-bottom: 14px;
}
.footer-item .flink:hover { color: #fff; }
.footer-cookies { margin-top: auto; }
.footer-cookies .footer-item .first { margin-bottom: 10px; }
.cookies-text { font-size: 14px; color: var(--footer-muted); max-width: 420px; }
.cookies-settings-cta {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--signal);
  padding: 14px 32px;
  margin-top: 12px;
  transition: background .2s;
}
.cookies-settings-cta:hover { background: var(--signal-deep); }

/* Cookie choice bar: fixed along the bottom until the visitor answers. */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding: 16px 20px;
  background: var(--ink);
  border-top: 4px solid var(--signal);
  color: #fff;
}
.cookie-bar p { margin: 0; font-size: 14px; line-height: 1.5; max-width: 80ch; }
.cookie-bar a { color: inherit; text-decoration: underline; }
.cookie-bar-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-bar button {
  height: 44px;
  padding: 0 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  border: 2px solid transparent;
  transition: background-color .2s;
}
.cookie-accept { background: var(--signal); }
.cookie-accept:hover { background: var(--signal-deep); }
.cookie-decline { background: transparent; border-color: rgba(255, 255, 255, .5) !important; }
.cookie-decline:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 767px) {
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .cookie-bar-actions button { flex: 1; }
}

.ft-link { display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; min-width: 280px; }
.footer-brand { padding-bottom: 22px; }
.footer-logo { width: 100%; max-width: 200px; }
.footer-logo { filter: invert(1) brightness(2); }
.footer-dealer {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-top: 10px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--footer-muted);
  margin-top: 6px;
  min-width: 270px;
}
.hours-row b { color: #fff; font-weight: 600; }
.contact { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 22px; font-size: 15px; color: #fff; }
.contact > div:first-child {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 8px;
}
.number { display: flex; align-items: flex-start; gap: 10px; color: #fff; margin-top: 5px; font-size: 14px; }
.number span { font-family: var(--font-mono); }
.number:hover { color: var(--signal); }
.number svg { stroke: currentColor; fill: none; flex: 0 0 auto; }
.fast-link { width: 100%; display: flex; margin-top: 34px; gap: 18px; }
.fast-link a:last-child { margin-right: 0; transform: translateY(-2px); }
.translate { transform: translateY(-1px); }

.copyright {
  height: 80px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--footer-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 30px;
}
.bottom-link a { color: var(--footer-muted); }
.bottom-link a:hover { color: var(--signal); }
.fast-link img { filter: invert(1) brightness(2); opacity: .75; transition: opacity .2s; }
.fast-link a:hover img { opacity: 1; }
.bottom-link .space { margin: 0 4px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 1500px) {
  .header-box .left-box .links .link { margin-right: 18px; }
  .header-box .left-box .links .link .title { font-size: 14px; }
  .header-box .left-box .logo-mark { width: 120px; }
  .header-box .right-box .link { margin-left: 22px; }
}

@media (max-width: 1280px) {
  .header-call { display: none; }
}

@media (max-width: 1005px) {
  .header-box .left-box .links,
  .header-box .right-box { display: none; }
  .header-box .icons { display: flex; }
  .model-tabs-wrapper-mobile { display: block; }
  .model-tabs-wrapper { display: none; }
  .banner-video { width: 100%; height: 100%; object-fit: cover; }
  .footer { padding: 50px 25px 15px; }
  .footer-wrapper { flex-direction: column-reverse; }
  .footer-left { width: 100%; padding: 25px 0; }
  .footer-menu { flex-wrap: wrap; gap: 24px 40px; }
  .app-content h2 { font-size: 34px; }
}

@media (max-width: 767px) {
  .d-only { display: none; }
  .m-only { display: block; }

  .banner-wrapper { aspect-ratio: 1 / 2; }
  .swiper-pagination { display: none; }
  .detail-box { left: 0; right: 0; bottom: 20px; }
  /* .detail-box raises .banner-cta over dealer.css's full-width .d-btn. */
  .chery-q-cta, .detail-box .banner-cta { width: min(350px, 88vw); margin: 20px auto; }

  .news-title-wrapper { padding: 50px 0 0; }
  .news-title-wrapper h2 { font-size: 32px; }
  .news-title-wrapper p { width: 100%; font-size: 16px; }
  .news-spacing { padding-top: 25px; padding-bottom: 25px; }
  .news-row { grid-template-columns: 1fr; }
  .new-badge { top: -4px; left: 16px; max-width: 10%; opacity: 1; transform: translate(0); }
  .latest-news-arrow { opacity: 1; }

  .slider-container { padding: 90px 0 60px; }
  .slider-heading { font-size: 26px; }
  .model-slider-nav { display: none; }
  .model-slider-wrapper { margin-top: 100px; margin-bottom: 50px; }
  .model-btn-wrapper { grid-template-columns: 1fr; padding-top: 0; }
  .model-nameplate, .model-btn-wrapper > a { grid-column: 1; justify-self: stretch; }
  .model-btn { width: 100%; min-width: 0; height: 54px; }
  .model-name-logo { max-width: 250px; margin-bottom: 25px; }

  .app-wrapper { height: auto; justify-content: flex-start; }
  .app-flex { flex-direction: column; }
  .app-content, .app-image { width: 100%; }
  .app-content h2 { font-size: 28px; padding-top: 50px; }
  .app-image img { width: 100%; margin-top: -16px; transform: translateY(75px); }
  .download-links { flex-wrap: wrap; }

  .footer-cookies .footer-item { align-items: center; text-align: center; }
  .fast-link { margin-top: 30px; justify-content: center; }
  .copyright { height: auto; padding: 20px 0; flex-direction: column; }

  .header-box .left-box .logo-mark { width: 104px; }
  .logo-dealer { padding-left: 10px; }
  .logo-dealer-name { font-size: 12px; }
  .logo-dealer-place { font-size: 8px; letter-spacing: .14em; }
  .hours-row { min-width: 0; width: 100%; }
  .mb-call { color: var(--accent) !important; font-weight: 700; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chery-q-cta, .chery-q-cta::before { transition: none; }
  .chery-q-cta:hover, .chery-q-cta:hover::before { transform: none; }
  .model-wheels img { animation: none !important; }
  .model-current.is-in { animation: none; }
  .swiper-pagination-bullet::after { animation: none; }
}
