/* ================================================================
   AG MIAMI MOTORS — car.css
   Individual car detail page styles
   ================================================================ */

/* ── Car Hero ───────────────────────────────────────────────────── */
.car-hero {
  position: relative;
  height: 100svh; min-height: 640px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.car-hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #141414 0%, #0a0a0a 50%, #1a1818 100%);
  /* Replace with real image: background-image: url('../assets/cars/xxx.jpg'); */
  background-size: cover; background-position: center;
}
.car-hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 6s ease;
}
.car-hero:hover .car-hero__bg img { transform: scale(1.03); }
.car-hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0)    0%,
    rgba(10,10,10,0.05) 28%,
    rgba(10,10,10,0.55) 62%,
    rgba(10,10,10,0.82) 82%,
    rgba(10,10,10,0.92) 100%
  );
}
.car-hero__content {
  position: relative; z-index: 2;
  padding: clamp(48px, 8vh, 100px) var(--pad-x);
  width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px;
}
.car-hero__left { flex: 1; }
.car-hero__eyebrow {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--c-orange);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.car-hero__eyebrow::before {
  content: '';
  display: block; width: 32px; height: 1px;
  background: var(--c-orange);
}
.car-hero__title {
  font-family: var(--f-head);
  font-size: clamp(56px, 9vw, 140px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.car-hero__tagline {
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  max-width: 420px;
  line-height: 1.7;
}
.car-hero__right {
  text-align: right;
  flex-shrink: 0;
}
.car-hero__price-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  display: block; margin-bottom: 4px;
}
.car-hero__price {
  font-family: var(--f-head);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  color: var(--c-white);
  line-height: 1;
}
.car-hero__price sub {
  font-size: 0.35em;
  color: rgba(255,255,255,0.4);
  vertical-align: baseline;
  margin-left: 4px;
}
.car-hero__cta {
  margin-top: 20px;
}

/* ── Gallery (Swiper) ───────────────────────────────────────────── */
.car-gallery {
  padding-top: clamp(60px, 8vh, 80px);
  padding-bottom: clamp(48px, 6vh, 72px);
  background: var(--c-black);
  overflow: hidden;
}
.car-gallery__label {
  padding: 0 40px;
  margin-bottom: 28px;
}
.car-gallery__wrap {
  position: relative;
}
.swiper {
  overflow: visible;
  padding: 0 40px;
}
.swiper-slide {
  height: clamp(280px, 52vh, 560px);
  width: auto;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--c-black-3);
}
.swiper-slide .slide-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #181818 0%, #0d0d0d 60%, #1c1c1c 100%);
  color: rgba(255,255,255,0.1);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
}
.swiper-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-expo);
}
.swiper-slide:hover img { transform: scale(1.04); }

/* Overlaid prev/next arrows */
.swiper-btn {
  position: absolute; top: 50%; z-index: 5;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,0.45);
  color: var(--c-white);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
  cursor: pointer;
}
.swiper-btn svg { width: 18px; height: 18px; }
.swiper-btn--prev { left: 8px; }
.swiper-btn--next { right: 8px; }
.swiper-btn:hover {
  border-color: var(--c-orange);
  background: rgba(255,85,0,0.14);
  color: var(--c-orange);
}

/* Bottom nav: pagination dots + fraction counter */
.swiper-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 40px 0;
}
.car-gallery .swiper-pagination {
  position: static;
  display: flex; align-items: center;
  gap: 8px;
}
.car-gallery .swiper-pagination-bullet {
  width: 7px; height: 7px;
  margin: 0;
  background: rgba(255,255,255,0.3);
  opacity: 1;
  transition: background 0.3s, transform 0.3s;
}
.car-gallery .swiper-pagination-bullet-active {
  background: var(--c-orange);
  transform: scale(1.2);
}
.swiper-fraction {
  font-size: 11px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.12em;
}

/* ── Specs ──────────────────────────────────────────────────────── */
.car-specs {
  padding: clamp(60px, 9vh, 130px) 0;
  background: var(--c-black-2);
  position: relative; overflow: hidden;
}
.car-specs__bg-num {
  position: absolute; right: -2%; top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-head);
  font-size: clamp(120px, 20vw, 300px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.03);
  pointer-events: none; user-select: none;
  line-height: 1;
}
.car-specs .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.car-specs__label { margin-bottom: 40px; }
.car-specs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.spec-item {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: clamp(16px, 2vw, 24px);
}
.spec-item__key {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  display: block; margin-bottom: 10px;
}
.spec-item__val {
  font-family: var(--f-head);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 900;
  line-height: 1;
  display: block;
}
.spec-item__unit {
  font-size: 0.45em;
  color: rgba(255,255,255,0.4);
  margin-left: 3px;
}
.car-specs__cta { align-self: center; }

/* ── Description ────────────────────────────────────────────────── */
.car-desc {
  padding: clamp(72px, 10vh, 140px) 0;
  background: var(--c-black);
}
.car-desc .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}
.car-desc__left h2 {
  font-family: var(--f-head);
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.car-desc__left h2 em {
  font-style: italic;
  color: var(--c-orange);
}
.car-desc__right { padding-top: clamp(12px, 2vw, 28px); }
.car-desc__right p {
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
  margin-bottom: 24px;
}
.car-desc__right p:last-of-type { margin-bottom: 36px; }

/* ── Back nav ───────────────────────────────────────────────────── */
.car-back {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
  margin-bottom: clamp(20px, 3vh, 40px);
}
.car-back:hover { color: var(--c-white); }
.car-back svg { width: 16px; height: 16px; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .car-hero__content { flex-direction: column; align-items: flex-start; }
  .car-hero__right { text-align: left; }
  .car-specs__grid { grid-template-columns: repeat(2, 1fr); }
  .car-specs .container { grid-template-columns: 1fr; }
  .car-desc .container { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .car-specs__grid { grid-template-columns: repeat(2, 1fr); }
  .car-hero__title { font-size: clamp(48px, 12vw, 72px); }
  .car-gallery__label, .swiper, .swiper-nav { padding-left: 20px; padding-right: 20px; }
  .swiper-btn { width: 40px; height: 40px; }
  .swiper-btn--prev { left: 4px; }
  .swiper-btn--next { right: 4px; }
}
