/* Rakin Cars — site styles */
:root {
  --bg: #0d0f10;
  --bg-2: #141718;
  --card: #1a1d1f;
  --card-2: #222628;
  --line: #2b3033;
  --text: #f2f4f5;
  --muted: #a3abaf;
  --red: #e1251b;
  --red-dark: #b81c14;
  --teal: #78cdd2;
  --green: #1f9d55;
  --amber: #c96a12;
  --blue: #2563eb;
  --radius: 14px;
  --wrap: 1200px;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, .head {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.02;
}
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700; font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-light { background: #f2f2ef; color: #111; }
.btn-dark { background: #111; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: #454c50; }
.btn-ghost:hover { border-color: var(--text); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #178a45; }
.btn-block { width: 100%; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 16, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: #d6dbdd; }
.nav-links a:hover { color: #fff; }
.lang-btn {
  background: transparent; color: var(--text);
  border: 1px solid #454c50; border-radius: 8px;
  padding: 7px 12px; font-size: 13px; font-weight: 600;
}
.lang-btn:hover { border-color: var(--text); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); padding: 6px; }
.menu-btn svg { width: 28px; height: 28px; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 82px); margin: 14px 0 20px; }
.hero p.lead { color: #cfd5d8; font-size: 18px; max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-media {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 4 / 5; max-height: 600px; justify-self: end; width: 100%; max-width: 480px;
  background: var(--card);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .tag {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(13,15,16,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 12px 14px;
}
.hero-media .tag strong { font-family: var(--head); text-transform: uppercase; font-size: 20px; font-weight: 600; display: block; }
.hero-media .tag span { font-size: 13px; color: var(--muted); }

/* search bar */
.search {
  margin-top: 48px;
  background: #f2f2ef; color: #111;
  border-radius: 14px;
  padding: 16px;
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end;
  position: relative; z-index: 2;
}
.search label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.search select {
  width: 100%; height: 46px; border-radius: 9px; border: 1px solid #cfd2d0;
  background: #fff; padding: 0 12px; font: inherit; font-size: 15px; color: #111;
}
.search .btn { height: 46px; min-width: 190px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); }
.link-red { color: var(--red); font-weight: 700; font-size: 15px; border-bottom: 1px solid currentColor; }

/* car cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #3c4347; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--card-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: #fff;
}
.badge-available { background: var(--green); }
.badge-reserved { background: var(--amber); }
.badge-sold { background: #4b5155; }
.badge-arriving { background: var(--blue); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-weight: 700; font-size: 17px; }
.card-meta { color: var(--muted); font-size: 13.5px; }
.card-price { font-family: var(--head); font-size: 22px; font-weight: 600; margin-top: auto; padding-top: 10px; text-transform: uppercase; }
.card-price.por { font-size: 17px; color: var(--teal); }
.card.is-sold .card-img img { filter: grayscale(.8) brightness(.7); }

.empty-note {
  border: 1px dashed #3a4044; border-radius: var(--radius);
  padding: 22px; color: var(--muted); text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 100%;
}
.empty-note strong { color: var(--text); font-size: 17px; }

/* brand chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  background: transparent; color: #dfe3e5;
  border: 1px solid #3a4044; border-radius: 999px;
  padding: 9px 18px; font-size: 14px; font-weight: 500;
}
.chip:hover, .chip.on { border-color: var(--text); color: #fff; background: #1d2123; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 26px; }
.why-item { border-top: 3px solid var(--red); padding-top: 16px; }
.why-item h3 { font-family: var(--body); text-transform: none; font-size: 17px; font-weight: 700; margin-bottom: 6px; letter-spacing: 0; }
.why-item p { color: var(--muted); font-size: 15px; }

/* promo blocks */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo { border-radius: 18px; padding: 38px 34px; }
.promo h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 10px; }
.promo p { max-width: 440px; margin-bottom: 24px; }
.promo-red { background: var(--red); color: #fff; }
.promo-light { background: #f2f2ef; color: #111; }

/* showroom */
.showroom { border-top: 1px solid var(--line); }
.showroom-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.showroom h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.showroom p { color: #cfd5d8; }
.map { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--card); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 90px; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot a { color: #dfe3e5; border-bottom: 1px solid #555; }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  background: #1fa855; color: #fff; font-weight: 700;
  padding: 13px 18px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.wa-float:hover { background: #178a45; }
.wa-float svg { width: 22px; height: 22px; }

/* ---------- all cars page ---------- */
.page-head { padding: 48px 0 0; }
.page-head h1 { font-size: clamp(38px, 5vw, 60px); margin-top: 10px; }
.filters { margin-top: 26px; }
.result-count { color: var(--muted); margin: 22px 0 16px; font-size: 14.5px; }

/* ---------- car detail ---------- */
.crumbs { color: var(--muted); font-size: 14px; padding-top: 26px; }
.crumbs a:hover { color: #fff; }
.back-link { display: inline-flex; gap: 6px; color: var(--muted); font-size: 14px; margin-top: 22px; }
.back-link:hover { color: #fff; }
.detail-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 36px; margin-top: 20px; align-items: start; }
.gallery-main {
  position: relative; border-radius: 16px; overflow: hidden; background: var(--card);
  aspect-ratio: 4 / 5; max-height: 760px; margin: 0 auto;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .counter {
  position: absolute; left: 14px; bottom: 14px; background: rgba(0,0,0,.65);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.gallery-main .status-pill { position: absolute; left: 14px; top: 14px; }
.status-pill .badge { position: static; }
.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center;
}
.g-nav:hover { background: rgba(0,0,0,.8); }
.g-prev { left: 12px; } .g-next { right: 12px; }
.g-nav svg { width: 22px; height: 22px; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.thumb { border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; background: var(--card); position: relative; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; opacity: .75; }
.thumb span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; padding: 3px 0; background: rgba(0,0,0,.6); color: #ddd; }
.thumb.on { border-color: var(--red); }
.thumb.on img, .thumb:hover img { opacity: 1; }

.buy-box { position: sticky; top: 96px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.buy-box h1 { font-size: clamp(34px, 3.6vw, 48px); }
.buy-box .sub { color: var(--muted); margin-top: 8px; }
.buy-box .price { font-family: var(--head); font-size: 34px; font-weight: 600; margin-top: 22px; text-transform: uppercase; }
.buy-box .price.por { color: var(--teal); font-size: 28px; }
.buy-box .price-note { color: var(--muted); font-size: 14px; margin-top: 2px; }
.buy-actions { display: grid; gap: 10px; margin-top: 22px; }
.wa-preview { margin-top: 16px; font-size: 13px; color: var(--muted); background: #121516; border-radius: 10px; padding: 12px 14px; }
.wa-preview em { color: #d7dcde; font-style: normal; display: block; margin-top: 4px; }

.detail-sec { margin-top: 44px; }
.detail-sec h2 { font-size: 26px; margin-bottom: 16px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.spec { background: var(--card); padding: 16px; }
.spec span { display: block; color: var(--muted); font-size: 13px; }
.spec strong { font-size: 17px; }
.about-text { color: #d5dadc; max-width: 760px; font-size: 16.5px; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: #d5dadc; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.walk { max-width: 380px; border-radius: 16px; overflow: hidden; background: #000; }
.walk video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.not-found { padding: 80px 0; text-align: center; }
.not-found h1 { font-size: 46px; margin-bottom: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .gallery-main { max-width: 640px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 18px;
  }
  .nav-links.open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links.open .lang-btn { margin-top: 14px; align-self: flex-start; }
  .hero { padding-top: 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { justify-self: stretch; max-width: none; aspect-ratio: 4 / 5; max-height: 560px; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .field-price { grid-column: 1 / -1; }
  .search .btn { grid-column: 1 / -1; min-width: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .promo-grid, .showroom-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  section { padding: 52px 0; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .search { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 20px; }
  .promo { padding: 28px 22px; }
  .hero-ctas .btn { flex: 1; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}

/* keep model names like "G 450d" in their real case */
.hero-media .tag strong, .buy-box h1, .card-title { text-transform: none; }
.buy-box h1 { font-size: clamp(36px, 3.8vw, 50px); }

/* =========================================================
   ANIMATIONS
   ========================================================= */

/* --- logo shine (header + intro) --- */
.logo-shine { position: relative; display: inline-block; line-height: 0; }
.logo-shine::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.95) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 130% 0;
  -webkit-mask: url("../img/logo-white.png") center / contain no-repeat;
          mask: url("../img/logo-white.png") center / contain no-repeat;
  animation: shine 6s ease-in-out 2.6s infinite;
  pointer-events: none;
}
@keyframes shine {
  0%   { background-position: 130% 0; }
  18%  { background-position: -30% 0; }
  100% { background-position: -30% 0; }
}
.nav-logo { transition: transform .25s ease, filter .25s ease; }
.nav-logo:hover { transform: scale(1.04); filter: drop-shadow(0 0 10px rgba(225, 37, 27, .55)); }

/* --- intro splash --- */
body.intro-on { overflow: hidden; }
#intro {
  position: fixed; inset: 0; z-index: 200;
  background: #070809;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  cursor: pointer;
  transition: opacity .6s ease, transform .7s cubic-bezier(.7,0,.3,1);
}
#intro.out { opacity: 0; transform: translateY(-4%); pointer-events: none; }
.intro-beam {
  position: absolute; top: -20%; bottom: -20%; width: 22vw; left: -40vw;
  background: linear-gradient(90deg, transparent, rgba(190, 228, 232, .32), transparent);
  transform: skewX(-20deg); filter: blur(18px);
  animation: beam 1.2s cubic-bezier(.5,0,.2,1) .1s forwards;
}
@keyframes beam { to { left: 120vw; } }
.intro-glow {
  position: absolute; width: 70vmin; height: 30vmin; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 150, 160, .45), transparent);
  opacity: 0; animation: glow 1s ease .7s forwards;
}
@keyframes glow { to { opacity: 1; } }
.intro-logo { position: relative; transform: scale(1.06); animation: settle 1.6s cubic-bezier(.2,.8,.2,1) .4s forwards; }
.intro-logo img { clip-path: inset(0 100% 0 0); animation: draw 1.05s cubic-bezier(.65,0,.35,1) .45s forwards; }
.intro-logo::after {
  content: ""; position: absolute; top: 4%; bottom: 4%; left: 0; width: 3px; border-radius: 3px;
  background: #fff; box-shadow: 0 0 18px 6px rgba(225,37,27,.85), 0 0 40px 12px rgba(120,205,210,.35);
  opacity: 0; animation: pen 1.05s cubic-bezier(.65,0,.35,1) .45s forwards;
}
@keyframes draw { to { clip-path: inset(0 0 0 0); } }
@keyframes pen { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes settle { to { transform: scale(1); } }
.intro-logo img { width: min(62vw, 420px); height: auto; }
.logo-shine.big::after { animation: shineOnce 1s ease 1.35s forwards; }
@keyframes shineOnce { from { background-position: 130% 0; } to { background-position: -30% 0; } }
@keyframes logoIn {
  60% { filter: blur(0); }
  to  { opacity: 1; transform: scale(1); filter: blur(0); }
}
.intro-line { position: relative; height: 3px; width: 0; background: var(--red); animation: line .6s ease 1.25s forwards; }
@keyframes line { to { width: 120px; } }
.intro-tag {
  position: relative; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--teal);
  opacity: 0; transform: translateY(8px); animation: up .6s ease 1.45s forwards;
}
@keyframes up { to { opacity: 1; transform: none; } }

/* --- hero entrance (after intro) --- */
.hero-in { opacity: 0; transform: translateY(22px); }
body.ready .hero-in { animation: heroIn .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--hd, 0ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero-media.hero-in { transform: translateY(22px) scale(.97); }
.hero h1 .w { display: inline-block; }

/* --- scroll reveals --- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.card.rv.in:hover { transform: translateY(-3px); }

/* --- small touches --- */
.btn-red, .btn-wa { position: relative; overflow: hidden; }
.btn-red::after, .btn-wa::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-red:hover::after, .btn-wa:hover::after { left: 130%; }
.wa-float { animation: waPop .6s cubic-bezier(.2,.9,.3,1.3) 2.8s both; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(31, 168, 85, .6); animation: pulse 2.6s ease-out 3.5s infinite;
}
@keyframes waPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,168,85,.55); } 70%,100% { box-shadow: 0 0 0 16px rgba(31,168,85,0); } }
.badge-available { animation: none; }
.why-item { transition: transform .25s ease; }
.why-item:hover { transform: translateY(-3px); }
.gallery-main img { transition: opacity .25s ease; }

/* respect "reduce motion" settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-in, .rv { opacity: 1 !important; transform: none !important; }
  .intro-logo img { clip-path: none !important; }
  .ticker-track { flex-wrap: wrap; }
  #intro { display: none; }
}


/* =========================================================
   MORE EFFECTS
   ========================================================= */

/* page fade in / out */
body { animation: pageIn .45s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body.leaving { opacity: 0; transition: opacity .25s ease; }

/* hero: headlight flash + glow pulse */
.hero-media { isolation: isolate; }
.hero-media video { transition: transform .1s linear; will-change: transform; }
.hero-flash {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0;
  background:
    radial-gradient(18% 12% at 32% 62%, rgba(255,255,255,.95), transparent 70%),
    radial-gradient(18% 12% at 68% 62%, rgba(255,255,255,.95), transparent 70%),
    radial-gradient(60% 40% at 50% 62%, rgba(200,235,255,.45), transparent 75%);
  mix-blend-mode: screen;
}
.hero-flash.go { animation: flash .9s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 30% { opacity: .35; } 42% { opacity: .9; } 100% { opacity: 0; } }
.hero-media.pulse { animation: glowPulse 1.6s ease-out; }
@keyframes glowPulse {
  0% { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 0 rgba(120,205,210,0); }
  25% { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 70px 10px rgba(120,205,210,.45); }
  100% { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 0 rgba(120,205,210,0); }
}
.hero-media .tag { z-index: 2; }

/* hero spotlight (desktop) */
.hero.spot { overflow: hidden; }
.hero.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 30%), rgba(120,205,210,.10), transparent 60%);
  opacity: 0; transition: opacity .4s ease;
}
.hero.spot:hover::before { opacity: 1; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid > div:first-child { will-change: transform; }

/* cards: car drives in */
.card.rv .card-img img { transform: translateX(-9%) scale(1.06); opacity: .4; transition: transform 1s cubic-bezier(.2,.8,.2,1) .15s, opacity .8s ease .15s; }
.card.rv.in .card-img img { transform: none; opacity: 1; }
.card.rv.in:hover .card-img img { transform: scale(1.04); }

/* cards: 3D tilt + glare (desktop) */
.card.rv.in.tilting {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
  transition: transform .12s ease-out, border-color .2s ease;
  box-shadow: 0 24px 50px rgba(0,0,0,.45);
}
.card .card-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.28), transparent 55%);
}
.card.tilting .card-img::after { opacity: 1; }

/* just arrived ribbon */
.ribbon {
  position: absolute; left: 12px; top: 12px; overflow: hidden;
  background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 6px; box-shadow: 0 6px 16px rgba(225,37,27,.4);
}
.ribbon::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg);
  animation: ribbonShine 3.2s ease-in-out 1s infinite;
}
@keyframes ribbonShine { 0% { left: -60%; } 35%, 100% { left: 140%; } }

/* sold stamp */
.sold-stamp {
  position: absolute; left: 50%; top: 50%;
  border: 4px solid #fff; color: #fff; border-radius: 8px;
  font-family: var(--head); font-size: 34px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 18px;
  transform: translate(-50%, -50%) rotate(-14deg); opacity: .9;
}
.card.rv .sold-stamp { transform: translate(-50%, -50%) rotate(-14deg) scale(2.4); opacity: 0; }
.card.rv.in .sold-stamp { animation: stamp .45s cubic-bezier(.3,1.5,.5,1) .7s forwards; }
@keyframes stamp { to { transform: translate(-50%, -50%) rotate(-14deg) scale(1); opacity: .9; } }

/* brand ticker */
.chips.ticker {
  display: block; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; gap: 10px; width: max-content; animation: tick 38s linear infinite; }
.chips.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker .chip { white-space: nowrap; }
.ticker .chip.rv { opacity: 1; transform: none; }

/* gallery transitions */
.gallery-main { touch-action: pan-y; }
.gallery-main img { position: relative; }
.gallery-main .g-incoming {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .5s ease;
}
.gallery-main .counter, .gallery-main .status-pill, .g-nav { z-index: 2; }
.thumb { transition: transform .2s ease, border-color .2s ease; }
.thumb:hover { transform: translateY(-2px); }

/* WhatsApp nudge */
.wa-float.nudge { animation: nudgeBounce 1.1s cubic-bezier(.3,1.6,.5,1); }
@keyframes nudgeBounce {
  0%, 100% { transform: none; } 20% { transform: translateY(-10px) scale(1.06); }
  40% { transform: translateY(0); } 55% { transform: translateY(-5px); } 70% { transform: none; }
}
.wa-tip {
  position: absolute; right: 0; bottom: calc(100% + 12px); white-space: nowrap;
  background: #fff; color: #111; font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: tipIn .4s cubic-bezier(.3,1.5,.5,1) both;
}
.wa-tip::after { content: ""; position: absolute; right: 22px; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); }
.wa-tip.hide { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
@keyframes tipIn { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .wa-float .wa-tip { display: block; } }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .card.rv .card-img img, .sold-stamp { transform: none !important; opacity: 1 !important; }
  .sold-stamp { transform: translate(-50%, -50%) rotate(-14deg) !important; }
}

/* =========================================================
   WHY BUY FROM RAKIN — redesigned
   ========================================================= */
.why { position: relative; overflow: hidden; }
.why::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -160px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(225,37,27,.10), transparent 70%);
}
.why::after {
  content: ""; position: absolute; width: 600px; height: 600px; left: -220px; bottom: -260px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(120,205,210,.08), transparent 70%);
}
.why-layout { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.why-intro h2 { font-size: clamp(36px, 4.6vw, 60px); margin: 12px 0 16px; }
.why-lead { color: #c3cacd; font-size: 17px; max-width: 460px; }

.why-photo {
  position: relative; margin-top: 30px; border-radius: 20px; overflow: hidden;
  aspect-ratio: 16 / 11; border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.why-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.why-photo.in img { transform: scale(1); }
.why-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,10,11,.75)); }
.why-float {
  position: absolute; left: 18px; bottom: 18px; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(13,15,16,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  padding: 10px 16px; font-size: 14px; font-weight: 600;
}
.why-dot { width: 10px; height: 10px; border-radius: 50%; background: #1fa855; box-shadow: 0 0 0 0 rgba(31,168,85,.6); animation: dot 2s ease-out infinite; }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(31,168,85,.6); } 80%,100% { box-shadow: 0 0 0 10px rgba(31,168,85,0); } }

.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1b1f21 0%, #141718 100%);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px 28px; border-top: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease;
}
.why-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at 0% 0%, rgba(225,37,27,.16), transparent 55%);
  transition: opacity .35s ease;
}
.why-card.rv.in:hover, .why-card:not(.rv):hover { transform: translateY(-6px); border-color: rgba(225,37,27,.55); box-shadow: 0 22px 50px rgba(0,0,0,.45); }
.why-card:hover::before { opacity: 1; }
.why-item { border-top: 0; padding-top: 26px; }
.why-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.why-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(225,37,27,.12); color: #ff4a3d; border: 1px solid rgba(225,37,27,.35);
  transition: transform .45s cubic-bezier(.3,1.5,.5,1), background .3s ease, color .3s ease;
}
.why-icon svg { width: 26px; height: 26px; }
.why-card:hover .why-icon { transform: rotate(-8deg) scale(1.08); background: var(--red); color: #fff; }
.why-num {
  font-family: var(--head); font-size: 44px; font-weight: 600; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.18);
  transition: -webkit-text-stroke-color .3s ease;
}
.why-card:hover .why-num { -webkit-text-stroke-color: rgba(120,205,210,.7); }
.why-card h3 { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.why-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--red), #ff7a52); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.why-card:hover .why-bar { width: 100%; }
.why-card.rv.in .why-bar { animation: barIn 1s cubic-bezier(.2,.8,.2,1) calc(var(--d, 0ms) + 250ms) both; }
@keyframes barIn { 0% { width: 0; } 50% { width: 38%; } 100% { width: 0; } }

.why-cta {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(100deg, #1fa855, #16824a); color: #fff;
  border-radius: 18px; padding: 20px 24px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.why-cta strong { display: block; font-size: 18px; }
.why-cta span span { opacity: .9; font-size: 15px; }
.why-cta-arrow {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.18); font-size: 22px; transition: transform .3s ease, background .3s ease;
}
.why-cta:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(31,168,85,.35); }
.why-cta:hover .why-cta-arrow { transform: translateX(5px); background: rgba(255,255,255,.28); }

@media (max-width: 1024px) {
  .why-layout { grid-template-columns: 1fr; gap: 36px; }
  .why-photo { aspect-ratio: 16 / 9; max-height: 420px; }
}
@media (max-width: 600px) {
  .why-cards { grid-template-columns: 1fr; }
  .why-card { padding: 22px 20px 24px; }
  .why-top { margin-bottom: 16px; }
  .why-num { font-size: 38px; }
}

/* =========================================================
   THEME SWITCH + LIGHT MODE
   ========================================================= */
.nav-tools { display: flex; align-items: center; gap: 6px; }
.theme-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid #454c50;
  background: transparent; color: var(--text); display: grid; place-items: center; position: relative; overflow: hidden;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.theme-btn:hover { border-color: var(--text); transform: rotate(-12deg); }
.theme-btn svg { width: 19px; height: 19px; position: absolute; transition: transform .5s cubic-bezier(.3,1.4,.5,1), opacity .3s ease; }
.theme-btn .i-sun { transform: rotate(0) scale(1); opacity: 1; }
.theme-btn .i-moon { transform: rotate(-90deg) scale(.4); opacity: 0; }
[data-theme="light"] .theme-btn .i-sun { transform: rotate(90deg) scale(.4); opacity: 0; }
[data-theme="light"] .theme-btn .i-moon { transform: rotate(0) scale(1); opacity: 1; }

/* smooth colour change when switching */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease, fill .5s ease !important;
}

/* ---- light palette ---- */
[data-theme="light"] {
  --bg: #f5f4f0;
  --bg-2: #ecebe6;
  --card: #ffffff;
  --card-2: #eeede8;
  --line: #e0ddd5;
  --text: #121416;
  --muted: #5d656a;
  --teal: #157a82;
}
[data-theme="light"] body { background: var(--bg); color: var(--text); }
[data-theme="light"] .site-header { background: rgba(245, 244, 240, .86); }
[data-theme="light"] .nav-links a { color: #2f3538; }
[data-theme="light"] .nav-links a:hover { color: #000; }
[data-theme="light"] .lang-btn, [data-theme="light"] .theme-btn, [data-theme="light"] .btn-ghost { border-color: #c9c6be; }
[data-theme="light"] .nav-links.open { background: var(--bg); }

[data-theme="light"] .hero p.lead,
[data-theme="light"] .showroom p,
[data-theme="light"] .about-text,
[data-theme="light"] .checks li,
[data-theme="light"] .why-lead { color: #3d4447; }

[data-theme="light"] .btn-light { background: #121416; color: #fff; }
[data-theme="light"] .search { background: #fff; box-shadow: 0 14px 40px rgba(20, 20, 15, .08); border: 1px solid var(--line); }
[data-theme="light"] .search select { background: #f7f6f2; border-color: #dcd9d1; }
[data-theme="light"] .hero-media { box-shadow: 0 30px 70px rgba(20, 20, 15, .22); }

[data-theme="light"] .card { box-shadow: 0 6px 20px rgba(20, 20, 15, .05); }
[data-theme="light"] .card:hover { border-color: #cfccc3; box-shadow: 0 18px 40px rgba(20, 20, 15, .12); }
[data-theme="light"] .card-price.por, [data-theme="light"] .buy-box .price.por { color: var(--teal); }
[data-theme="light"] .empty-note { border-color: #cfccc4; background: rgba(255,255,255,.5); }

[data-theme="light"] .chip { color: #2a2e30; border-color: #d3d0c8; background: #fff; }
[data-theme="light"] .chip:hover, [data-theme="light"] .chip.on { background: #121416; color: #fff; border-color: #121416; }

[data-theme="light"] .promo-light { background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(20, 20, 15, .06); }

[data-theme="light"] .why-card { background: linear-gradient(160deg, #ffffff 0%, #faf9f6 100%); box-shadow: 0 8px 26px rgba(20, 20, 15, .05); }
[data-theme="light"] .why-card.rv.in:hover, [data-theme="light"] .why-card:not(.rv):hover { box-shadow: 0 22px 46px rgba(20, 20, 15, .12); }
[data-theme="light"] .why-num { -webkit-text-stroke-color: rgba(0, 0, 0, .14); }
[data-theme="light"] .why-card:hover .why-num { -webkit-text-stroke-color: rgba(21, 122, 130, .8); }
[data-theme="light"] .why-icon { background: rgba(225, 37, 27, .08); color: #d21f15; }
[data-theme="light"] .why-photo { box-shadow: 0 24px 60px rgba(20, 20, 15, .18); }

[data-theme="light"] .buy-box { box-shadow: 0 14px 40px rgba(20, 20, 15, .08); }
[data-theme="light"] .wa-preview { background: #f3f2ed; }
[data-theme="light"] .wa-preview em { color: #2a2e30; }
[data-theme="light"] .thumb { background: #e9e7e1; }
[data-theme="light"] .map iframe { filter: none; }
[data-theme="light"] .foot a { color: var(--text); border-color: #bdbab2; }
[data-theme="light"] .hero.spot::before { background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 30%), rgba(21, 122, 130, .09), transparent 60%); }
[data-theme="light"] .why::before { background: radial-gradient(closest-side, rgba(225, 37, 27, .07), transparent 70%); }
[data-theme="light"] .why::after { background: radial-gradient(closest-side, rgba(21, 122, 130, .07), transparent 70%); }
[data-theme="light"] .ticker-track .chip { background: #fff; }

@media (max-width: 860px) {
  .theme-btn { width: 38px; height: 38px; }
}

/* text on dark glass/photo overlays stays white in both themes */
.hero-media .tag, .hero-media .tag strong, .why-float, .gallery-main .counter, .thumb span, .g-nav { color: #fff; }
.hero-media .tag span { color: rgba(255,255,255,.7); }

/* footer social icons */
.foot { align-items: center; }
.socials { display: flex; gap: 10px; }
.foot a.social {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid #3a4044; color: var(--text);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.foot a.social svg { width: 19px; height: 19px; }
.foot a.social:hover { transform: translateY(-3px); color: #fff; border-color: transparent; }
.foot a.social[href*="instagram"]:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.foot a.social[href*="wa.me"]:hover { background: #1fa855; }
.foot a.social[href^="tel"]:hover { background: var(--red); }
[data-theme="light"] .foot a.social { border-color: #cfccc4; }
@media (max-width: 520px) { .foot { flex-direction: column-reverse; align-items: flex-start; gap: 16px; } }

/* Why section: compact cards on phones (icon left, text right) */
@media (max-width: 600px) {
  .why-intro h2 { font-size: 38px; }
  .why-photo { aspect-ratio: 16 / 10; margin-top: 22px; }
  .why-cards { gap: 12px; }
  .why-card { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: start; padding: 18px 18px 20px; }
  .why-top { display: contents; }
  .why-icon { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 12px; }
  .why-icon svg { width: 23px; height: 23px; }
  .why-num { position: absolute; top: 14px; right: 16px; font-size: 26px; }
  .why-card h3 { font-size: 17px; margin: 2px 34px 4px 0; }
  .why-card p { font-size: 14.5px; grid-column: 2; }
  .why-cta { padding: 18px 20px; }
}
@media (max-width: 600px) {
  .why-num { display: none; }
  .why-card h3 { margin-right: 0; }
}

/* =========================================================
   SHOWROOM (photo + map) and FOOTER
   ========================================================= */
.showroom-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.showroom-info { display: flex; flex-direction: column; justify-content: center; }
.showroom-info h2 { margin-top: 10px; }
.showroom-info .map { margin-top: 28px; aspect-ratio: 16 / 9; position: relative; }
.map-dir {
  position: absolute; right: 12px; bottom: 12px;
  background: #121416; color: #fff; font-weight: 700; font-size: 14px;
  padding: 9px 14px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.35);
  transition: background .2s ease, transform .2s ease;
}
.map-dir:hover { background: var(--red); transform: translateY(-2px); }
.showroom-photo {
  position: relative; margin: 0; border-radius: 22px; overflow: hidden; min-height: 100%;
  aspect-ratio: 1 / 1; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.showroom-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s cubic-bezier(.2,.8,.2,1); }
.showroom-photo.in img, .showroom-photo:not(.rv) img { transform: scale(1); }
.showroom-photo:hover img { transform: scale(1.03); }
.showroom-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,8,9,.85)); pointer-events: none; }
.showroom-photo figcaption {
  position: absolute; left: 22px; bottom: 20px; z-index: 1; color: #fff;
  display: flex; flex-direction: column; gap: 2px;
}
.showroom-photo figcaption strong { font-family: var(--head); font-size: 28px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.showroom-photo figcaption span { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
[data-theme="light"] .showroom-photo { box-shadow: 0 24px 60px rgba(20,20,15,.2); }
[data-theme="light"] .showroom-photo figcaption span { color: #9fe0e4; }

/* footer */
.site-footer { padding: 64px 0 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 44px; }
.foot-logo img { height: 56px; width: auto; }
.foot-brand p { color: var(--muted); font-size: 15px; margin: 16px 0 20px; max-width: 300px; }
.foot-col h4 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col li, .foot-col a { color: var(--muted); font-size: 15px; border: 0; }
.foot-col a:hover { color: var(--text); }
.foot-addr { color: var(--muted); font-size: 15px; margin-top: 14px; }
.foot-dir { display: inline-block; margin-top: 8px; color: var(--red); font-weight: 700; font-size: 15px; }
.foot-dir:hover { text-decoration: underline; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding: 20px 20px 96px; color: var(--muted); font-size: 13.5px;
}
.site-footer .socials { display: flex; gap: 10px; }
.site-footer a.social {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid #3a4044; color: var(--text);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.site-footer a.social svg { width: 19px; height: 19px; }
.site-footer a.social:hover { transform: translateY(-3px); color: #fff; border-color: transparent; }
.site-footer a.social[href*="instagram"]:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.site-footer a.social[href*="wa.me"]:hover { background: #1fa855; }
.site-footer a.social[href^="tel"]:hover { background: var(--red); }
[data-theme="light"] .site-footer a.social { border-color: #cfccc4; }
[data-theme="light"] .site-footer { background: #eceae4; }

/* loading placeholders (while the Google Sheet loads) */
.skel { border-radius: var(--radius); background: linear-gradient(100deg, var(--card) 30%, var(--card-2) 50%, var(--card) 70%); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
.skel-card { aspect-ratio: 3 / 3.6; }
.skel-car { height: 520px; margin-top: 30px; }
@keyframes skel { to { background-position: -200% 0; } }

.walk-embed { max-width: 640px; aspect-ratio: 16 / 9; background: #000; }
.walk-embed iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .showroom-grid { grid-template-columns: 1fr; gap: 28px; }
  .showroom-photo { aspect-ratio: 4 / 3; order: -1; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; gap: 4px; }
  .showroom-photo figcaption strong { font-size: 22px; }
}
.foot-col .foot-dir { color: var(--red); font-weight: 700; }
.foot-col .foot-dir:hover { color: var(--red); text-decoration: underline; }
.foot-bottom .to-top { color: var(--muted); font-weight: 600; }
.foot-bottom .to-top:hover { color: var(--text); }

/* =========================================================
   SECTION LAYOUT — clear, alternating bands
   ========================================================= */
.sec { padding: 104px 0; position: relative; }
.sec.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec + .sec:not(.alt) { border-top: 0; }
.sec-head { align-items: flex-end; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(34px, 4.4vw, 56px); margin-top: 10px; }
.sec-sub { color: var(--muted); font-size: 17px; max-width: 560px; margin-top: 12px; }
.sec .kicker { display: inline-flex; align-items: center; gap: 10px; }
.sec .kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }
.hero .kicker::before, .brands-band .kicker::before { display: none; }

/* hero gets a bit more room and a soft base */
.hero { padding-bottom: 64px; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
}

/* brand strip band */
.band { padding: 0; }
.brands-band { border-bottom: 1px solid var(--line); background: var(--bg); }
.brands-row { display: flex; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; }
.brands-label {
  flex: none; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  padding-right: 28px; border-right: 1px solid var(--line);
}
.brands-row .chips { margin-top: 0; flex: 1; min-width: 0; }

/* services header spacing */
#services .promo-grid { margin-top: 0; }
#services .promo { min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }

/* showroom & why spacing tuned for the new rhythm */
.why.sec { padding: 112px 0; }
.showroom.sec { border-top: 0; }

/* light mode bands */
[data-theme="light"] .sec.alt { background: #ecebe5; }
[data-theme="light"] .brands-band { background: var(--bg); }

@media (max-width: 860px) {
  .sec, .why.sec { padding: 72px 0; }
  .sec-sub { font-size: 16px; }
  .brands-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .brands-label { border-right: 0; padding-right: 0; }
  .brands-row .chips { width: 100%; }
  #services .promo { min-height: 0; }
  .hero { padding-bottom: 48px; }
}
#services .promo .btn { align-self: flex-start; }

/* intro: tap to enter (sound) */
.intro-tap {
  position: absolute; bottom: 12vh; left: 50%; transform: translate(-50%, 12px);
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 12px 22px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .5s ease, transform .5s ease, background .2s ease;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.intro-tap svg { width: 18px; height: 18px; }
#intro.ask .intro-tap { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; animation: tapPulse 1.8s ease-in-out .5s infinite; }
.intro-tap:hover { background: rgba(255,255,255,.14); }
@keyframes tapPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(225,37,27,.0); } 50% { box-shadow: 0 0 0 8px rgba(225,37,27,.25); } }
#intro.hit .intro-logo { animation: hit .6s cubic-bezier(.2,.9,.3,1.4) forwards; }
#intro.hit .intro-glow { animation: hitGlow .6s ease-out forwards; }
@keyframes hit { 0% { transform: scale(1); } 30% { transform: scale(1.08); filter: drop-shadow(0 0 24px rgba(225,37,27,.8)); } 100% { transform: scale(1.02); } }
@keyframes hitGlow { 0% { opacity: 1; transform: scale(1); } 40% { opacity: 1; transform: scale(1.4); } 100% { opacity: .6; transform: scale(1.2); } }

/* showroom placeholder photo is a wide shot: keep it landscape */
.showroom-grid { align-items: center; }
.showroom-photo { aspect-ratio: 4 / 3; min-height: 0; align-self: center; }
.showroom-photo img { object-position: 50% 60%; }
@media (max-width: 860px) { .showroom-photo { aspect-ratio: 4 / 3; } }

/* showroom: wide photo banner on top, details + map below */
.showroom-grid { grid-template-columns: 1fr; gap: 40px; }
.showroom-photo { order: -1; aspect-ratio: 21 / 9; border-radius: 24px; }
.showroom-photo img { object-position: 50% 62%; }
.showroom-photo::after { background: linear-gradient(180deg, transparent 70%, rgba(6,8,9,.7)); }
.showroom-photo figcaption { left: 28px; bottom: 22px; }
.showroom-info { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.showroom-info .map { margin-top: 0; }
@media (max-width: 860px) {
  .showroom-photo { aspect-ratio: 4 / 3; border-radius: 18px; }
  .showroom-info { grid-template-columns: 1fr; gap: 26px; }
  .showroom-photo figcaption { left: 18px; bottom: 16px; }
}

/* =========================================================
   FOOTER ANIMATIONS
   ========================================================= */
.site-footer { position: relative; overflow: hidden; }

/* glowing light sweeping along the top edge */
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, transparent 35%, rgba(225,37,27,.95) 48%, rgba(120,205,210,.9) 52%, transparent 65%, transparent 100%);
  background-size: 250% 100%; background-position: 100% 0;
  filter: drop-shadow(0 0 6px rgba(225,37,27,.7));
}
.site-footer.live::before { animation: edgeSweep 5s ease-in-out infinite; }
@keyframes edgeSweep { 0% { background-position: 100% 0; } 60%, 100% { background-position: -50% 0; } }

/* columns slide up one after another */
.foot-grid > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.site-footer.live .foot-grid > * { opacity: 1; transform: none; }
.site-footer.live .foot-grid > *:nth-child(2) { transition-delay: .1s; }
.site-footer.live .foot-grid > *:nth-child(3) { transition-delay: .2s; }
.site-footer.live .foot-grid > *:nth-child(4) { transition-delay: .3s; }

/* link hover: red underline slides in */
.foot-col ul a { position: relative; display: inline-block; transition: color .2s ease, transform .2s ease; }
.foot-col ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.foot-col ul a:hover { transform: translateX(3px); }
.foot-col ul a:hover::after { transform: scaleX(1); }

/* giant outlined wordmark with a red shine */
.foot-word { text-align: center; line-height: .78; margin-top: 4px; user-select: none; pointer-events: none; }
.foot-word span {
  display: inline-block;
  font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(64px, 16.5vw, 250px);
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.13);
  background: linear-gradient(100deg, transparent 42%, rgba(225,37,27,.55) 50%, transparent 58%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s ease .2s, transform 1.1s cubic-bezier(.2,.8,.2,1) .2s;
}
.site-footer.live .foot-word span { opacity: 1; transform: none; animation: wordShine 7s ease-in-out 1.2s infinite; }
@keyframes wordShine { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0% 0; } }
[data-theme="light"] .foot-word span { -webkit-text-stroke-color: rgba(0,0,0,.12); }

/* road with moving lane marks and the Rakin car driving across */
.foot-road {
  position: relative; height: 54px; margin-top: -10px;
  border-bottom: 1px solid var(--line);
}
.foot-road::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 2px; opacity: .35;
  background: repeating-linear-gradient(90deg, var(--muted) 0 26px, transparent 26px 52px);
}
.site-footer.live .foot-road::before { animation: lanes 1.2s linear infinite; }
@keyframes lanes { to { background-position: -52px 0; } }
.foot-car {
  position: absolute; bottom: 12px; left: 0; width: 120px; height: 24px;
  transform: translateX(-160px);
}
.foot-car img { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.foot-beam {
  position: absolute; left: 92%; top: 50%; width: 140px; height: 40px; transform: translateY(-40%);
  background: radial-gradient(ellipse at left center, rgba(255,240,200,.55), rgba(255,240,200,.08) 45%, transparent 70%);
  pointer-events: none; mix-blend-mode: screen;
}
.site-footer.live .foot-car { animation: drive 9s cubic-bezier(.45,.05,.55,.95) .6s infinite; }
@keyframes drive {
  0%   { transform: translateX(-160px); }
  55%  { transform: translateX(calc(100vw + 40px)); }
  100% { transform: translateX(calc(100vw + 40px)); }
}
[data-theme="light"] .foot-beam { background: radial-gradient(ellipse at left center, rgba(255,200,120,.45), transparent 65%); mix-blend-mode: multiply; }
.foot-bottom { border-top: 0; }

/* social icons bob gently, one after another, when the footer appears */
.site-footer.live .socials .social { animation: bob .6s cubic-bezier(.3,1.6,.5,1) both; }
.site-footer.live .socials .social:nth-child(2) { animation-delay: .1s; }
.site-footer.live .socials .social:nth-child(3) { animation-delay: .2s; }
@keyframes bob { from { transform: translateY(14px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 520px) {
  .foot-car { width: 84px; }
  .foot-road { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .foot-grid > *, .foot-word span { opacity: 1 !important; transform: none !important; }
  .foot-car { display: none; }
}
.foot-word { white-space: nowrap; overflow: hidden; }
.foot-word span { font-size: clamp(56px, 14.5vw, 230px); }
@media (max-width: 520px) {
  .foot-word span { font-size: 15vw; }
  .foot-road { margin-top: 0; }
}

/* =========================================================
   CAR GALLERY: autoplay + zoom
   ========================================================= */
.g-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); z-index: 2; }
.g-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), #ff7a52); }
.gallery-main.single .g-progress, .gallery-main.single .g-play { display: none; }
.g-zoom, .g-play {
  position: absolute; z-index: 2; top: 14px; color: #fff; border: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 7px; border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}
.g-zoom { right: 14px; padding: 8px 14px 8px 11px; font-size: 13px; font-weight: 700; }
.g-play { right: 14px; top: auto; bottom: 16px; width: 36px; height: 36px; justify-content: center; }
.g-zoom:hover, .g-play:hover { background: rgba(0,0,0,.8); transform: scale(1.05); }
.g-zoom svg { width: 17px; height: 17px; }
.g-play svg { width: 15px; height: 15px; }
.g-play .i-play { display: none; }
.gallery-main.is-paused .g-play .i-play { display: block; }
.gallery-main.is-paused .g-play .i-pause { display: none; }
.gallery-main .counter { bottom: 16px; }

/* full-screen zoom viewer */
.zoomer {
  position: fixed; inset: 0; z-index: 300; background: rgba(5,6,7,.96);
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; transition: opacity .25s ease;
  color: #fff; touch-action: none;
}
.zoomer.open { opacity: 1; }
.z-top { display: flex; align-items: center; gap: 14px; padding: 14px 18px; font-size: 14px; }
.z-count { font-weight: 700; }
.z-label { color: rgba(255,255,255,.65); flex: 1; }
.z-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 18px; }
.z-close:hover { background: rgba(255,255,255,.12); }
.z-stage { position: relative; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; }
.zoomer.zoomed .z-stage { cursor: grab; }
.zoomer.zoomed .z-stage:active { cursor: grabbing; }
.z-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transform-origin: center center; transition: opacity .14s ease; will-change: transform; }
.z-img.swap { opacity: 0; }
.z-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff; transition: background .2s ease, opacity .2s ease;
}
.z-nav:hover { background: rgba(255,255,255,.22); }
.z-nav svg { width: 24px; height: 24px; }
.z-prev { left: 18px; } .z-next { right: 18px; }
.zoomer.zoomed .z-nav, .zoomer.zoomed .z-hint { opacity: 0; pointer-events: none; }
.z-hint { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); font-size: 13px; color: rgba(255,255,255,.7); background: rgba(0,0,0,.5); padding: 7px 14px; border-radius: 999px; white-space: nowrap; transition: opacity .3s ease; animation: hintOut .5s ease 3s forwards; }
@keyframes hintOut { to { opacity: 0; } }
.z-thumbs { display: flex; gap: 8px; padding: 12px 18px 18px; overflow-x: auto; justify-content: safe center; scrollbar-width: none; }
.z-thumbs::-webkit-scrollbar { display: none; }
.z-thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #111; opacity: .55; transition: opacity .2s ease, border-color .2s ease; }
.z-thumbs button.on { border-color: var(--red); opacity: 1; }
.z-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  .z-nav { display: none; }
  .z-thumbs button { width: 52px; height: 52px; }
  .z-hint { bottom: 84px; font-size: 12px; }
  .g-zoom span { display: none; }
  .g-zoom { padding: 9px; }
}
/* keep the photo fully inside the viewer */
.zoomer { grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; }
.z-stage { min-height: 0; }
.z-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.zoomer { background: #050607; }

/* footer car: the logo car faces left, so it drives right → left with its headlights in front */
.foot-car { left: auto; right: 0; transform: translateX(160px); }
.foot-beam {
  left: auto; right: 92%;
  background: radial-gradient(ellipse at right center, rgba(255,240,200,.55), rgba(255,240,200,.08) 45%, transparent 70%);
}
[data-theme="light"] .foot-beam { background: radial-gradient(ellipse at right center, rgba(255,200,120,.45), transparent 65%); }
.site-footer.live .foot-car { animation: driveLeft 9s cubic-bezier(.45,.05,.55,.95) .6s infinite; }
@keyframes driveLeft {
  0%   { transform: translateX(160px); }
  55%  { transform: translateX(calc(-100vw - 40px)); }
  100% { transform: translateX(calc(-100vw - 40px)); }
}
.site-footer.live .foot-road::before { animation: lanesRight 1.2s linear infinite; }
@keyframes lanesRight { to { background-position: 52px 0; } }

/* =========================================================
   CARS PAGE: search, sort, load more
   ========================================================= */
.toolbar { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.tb-search {
  flex: 1 1 340px; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 8px 0 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tb-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(225,37,27,.15); }
.tb-search svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.tb-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15.5px; }
.tb-search input::placeholder { color: var(--muted); opacity: .8; }
.tb-search input::-webkit-search-cancel-button { display: none; }
.tb-search button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--card-2); color: var(--text); display: none; }
.tb-search.has-q button { display: block; }
.tb-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tb-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); cursor: pointer; user-select: none; }
.tb-check input { width: 18px; height: 18px; accent-color: var(--red); }
.tb-sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.tb-sort select {
  height: 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: inherit; font-size: 15px; padding: 0 38px 0 14px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3abaf' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.tb-sort select:focus { outline: 0; border-color: var(--red); }
.more-wrap { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.more-note { color: var(--muted); font-size: 14px; }
.more-bar { width: 220px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.more-bar i { display: block; height: 100%; background: var(--red); transition: width .4s ease; }
#more { min-width: 220px; }
[data-theme="light"] .tb-search, [data-theme="light"] .tb-sort select { background: #fff; }
@media (max-width: 600px) {
  .toolbar { gap: 12px; }
  .tb-search { flex-basis: 100%; }
  .tb-right { width: 100%; justify-content: space-between; }
  .tb-sort select { height: 46px; }
}

/* cars page: filters update live, so drop the button and keep things compact */
body[data-page="all"] .filters .btn { display: none; }
body[data-page="all"] .filters { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  body[data-page="all"] .filters { grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
  body[data-page="all"] .filters .field-price { grid-column: auto; }
  body[data-page="all"] .filters select { height: 42px; font-size: 14px; }
  body[data-page="all"] .filters label { font-size: 12px; margin-bottom: 4px; }
  body[data-page="all"] .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -20px; margin-right: -20px; padding: 0 20px; }
  body[data-page="all"] .chips::-webkit-scrollbar { display: none; }
  body[data-page="all"] .chip { flex: none; }
  body[data-page="all"] .page-head h1 { font-size: 36px; }
}

/* car with no photo yet */
.no-photo {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(circle at 50% 40%, rgba(225,37,27,.12), transparent 60%), var(--card-2);
  color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.no-photo img { width: 46%; max-width: 180px; height: auto; opacity: .85; transform: none !important; }

/* ---- On sale ---- */
.badge-sale { background: var(--red); overflow: hidden; }
.badge-sale::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%) -120% 0 / 220% 100% no-repeat;
  animation: saleShine 3.2s 1s ease-in-out infinite; }
@keyframes saleShine { 0% { background-position: -120% 0; } 50%, 100% { background-position: 220% 0; } }
.card-price.on-sale, .buy-box .price.on-sale { color: var(--red); }
.card-price.on-sale { padding-top: 2px; }
.was-price { color: var(--muted); font-size: 14px; margin-top: auto; padding-top: 10px; }
.buy-box .was-price { margin-top: 22px; padding-top: 0; font-size: 16px; }
.buy-box .was-price + .price { margin-top: 2px; }
.was-price s { text-decoration-thickness: 1.5px; text-decoration-color: var(--red); }
.save-note { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: #fff; background: rgba(225, 37, 27, .9); }
.status-pill .badge-sale { position: relative; }
.was-price + .card-price { margin-top: 0; }
