/* ==========================================================================
   9O VAN — Vehicles Page Styles (車款介紹)
   All values reference design-tokens.css via var(--token-name)
   ========================================================================== */

/* ------------------------------------------------------------------
   1. BANNER — 442px hero
   ------------------------------------------------------------------ */
.vehicles-banner {
  position: relative;
  width: 100%;
  height: 442px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vehicles-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicles-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.vehicles-banner__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: var(--heading-2-size);
  font-weight: var(--heading-2-weight);
  color: var(--color-font-primary);
  letter-spacing: var(--heading-2-ls);
}

/* ------------------------------------------------------------------
   2. QUICK FIND FILTER
   ------------------------------------------------------------------ */
.vehicles-quick-find {
  background: var(--color-bg-01);
  padding: 64px 0 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.vehicles-quick-find__title {
  font-family: var(--font-heading);
  font-size: var(--heading-2-size);
  font-weight: var(--heading-2-weight);
  color: var(--color-font-primary);
  text-align: center;
}

.vehicles-quick-find__card {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 39px 46px;
  background: #191d24;
  border: 1px solid var(--color-white-01);
  border-radius: var(--radius-lg);
  box-shadow: 0px 31px 54px 40px rgba(22, 29, 40, 0.3);
  display: flex;
  align-items: center;
  gap: 20px;
}

.vehicles-quick-find__filters {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.vehicles-quick-find__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 263px;
}

.vehicles-quick-find__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--color-font-primary);
}

.vehicles-quick-find__icon {
  width: 40px;
  height: 40px;
}

.vehicles-quick-find__select-wrap {
  position: relative;
}

.vehicles-quick-find__select {
  width: 100%;
  height: 56px;
  padding: 0 44px 0 20px;
  background: rgba(246, 246, 246, 0.05);
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-font-primary);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.vehicles-quick-find__select:focus {
  outline: 2px solid var(--color-state-hover-overlay);
  outline-offset: -2px;
}

.vehicles-quick-find__arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  width: 12px;
  height: 24px;
  color: var(--color-font-primary);
  pointer-events: none;
}

.vehicles-quick-find__btn {
  position: absolute;
  right: 46px;
  top: 50%;
  transform: translateY(-50%);
  width: 244px;
}

/* ------------------------------------------------------------------
   3. VEHICLE CARDS CAROUSEL
   ------------------------------------------------------------------ */
.vehicles-cards {
  background: var(--color-bg-01);
  padding: 40px 0 80px;
  position: relative;
  overflow: hidden;
}

.vehicles-cards .section-heading {
  margin-bottom: var(--space-40);
}

.vehicles-cards__viewport {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

.vehicles-cards__track {
  display: flex;
  gap: 36px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 10px 0 10px 120px;
}

.vehicles-cards__track::-webkit-scrollbar {
  display: none;
}

.vehicles-cards__prev,
.vehicles-cards__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.vehicles-cards__prev {
  left: 24px;
}

.vehicles-cards__next {
  right: 24px;
}

/* ------------------------------------------------------------------
   3a. VEHICLE CARD
   ------------------------------------------------------------------ */
.vehicle-card {
  flex: 0 0 598px;
  height: 601px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border 200ms ease, box-shadow 200ms ease;
}

.vehicle-card--active {
  border: var(--card-border-accent);
  box-shadow: var(--shadow-card);
}

.vehicle-card__image {
  position: absolute;
  inset: 0;
}

.vehicle-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-card__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 480px;
  background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 100%);
}

.vehicle-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 34px 36px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vehicle-card__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vehicle-card__name {
  font-family: var(--font-heading);
  font-size: var(--heading-2-size);
  font-weight: var(--heading-2-weight);
  color: var(--color-font-primary);
}

.vehicle-card__subtitle {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.22px;
  color: rgba(255, 255, 255, 0.6);
}

.vehicle-card__features {
  list-style: disc;
  padding-left: 24px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 2.3;
  letter-spacing: 0.96px;
  color: var(--color-font-primary);
}

.vehicle-card__price {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-font-primary);
  letter-spacing: 1px;
}

.vehicle-card__cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.vehicle-card__cta .btn--outline {
  color: var(--color-font-primary);
}

/* ------------------------------------------------------------------
   4. VEHICLE DETAIL — Sprinter
   ------------------------------------------------------------------ */
.vehicles-detail {
  position: relative;
  padding: 0 0 80px;
  background: var(--color-bg-01);
  overflow: hidden;
}

.vehicles-detail__gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1321px;
  background: linear-gradient(to bottom, #000 0%, #161a21 77%, var(--color-bg-01) 100%);
  pointer-events: none;
}

.vehicles-detail__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-20);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vehicles-detail__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 60px 0 40px;
}

.vehicles-detail__title {
  font-family: var(--font-heading);
  font-size: var(--heading-1-size);
  font-weight: var(--heading-1-weight);
  line-height: var(--heading-1-lh);
  letter-spacing: var(--heading-1-ls);
  color: var(--color-font-primary);
  text-align: center;
}

.vehicles-detail__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  height: 72px;
  width: 234px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-round);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-font-primary);
  text-align: center;
}

.vehicles-detail__hero-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 0 60px;
  z-index: 1;
}

.vehicles-detail__hero {
  position: relative;
  width: 1123px;
  max-width: 100%;
  height: 617px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  z-index: 1;
}

.vehicles-detail__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

.vehicles-detail__hero-img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicles-detail__blur {
  position: absolute;
  width: 476px;
  height: 311px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  filter: blur(6px);
  opacity: 0.7;
  flex-shrink: 0;
  top: 50%;
  transform: translateY(calc(-50% - 30px));
  transition: opacity 0.5s ease;
  z-index: 0;
}

.vehicles-detail__blur::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

.vehicles-detail__blur-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicles-detail__blur--left {
  right: calc(50% + 460px);
}

.vehicles-detail__blur--right {
  left: calc(50% + 460px);
}

.vehicles-detail__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 30px));
  z-index: 2;
}

.vehicles-detail__arrow--prev {
  left: 91px;
}

.vehicles-detail__arrow--next {
  right: 91px;
}

.vehicles-detail__clear-mask {
  display: none;
}

.vehicles-detail__arrows {
  display: none;
  position: relative;
  z-index: 2;
}

.vehicles-detail__cta {
  margin-bottom: 60px;
}

.vehicles-detail__grid {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.vehicles-detail__row {
  display: flex;
  gap: 64px;
}

.vehicles-detail__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vehicles-detail__item-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--color-font-primary);
}

.vehicles-detail__item-desc {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.16px;
  color: rgba(255, 255, 255, 0.6);
}

.vehicles-detail__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* ------------------------------------------------------------------
   5. FAQ SECTION
   ------------------------------------------------------------------ */
.vehicles-faq {
  background: var(--color-bg-02);
  padding: 80px 0 100px;
  position: relative;
}

.vehicles-faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.vehicles-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-20);
}

/* ------------------------------------------------------------------
   6. CTA CARD SECTION
   ------------------------------------------------------------------ */
.vehicles-cta {
  background: var(--color-bg-01);
  padding: 80px 0 120px;
}

.vehicles-cta__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-20);
  display: flex;
  justify-content: center;
}

.vehicles-cta .cta-card {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 450px;
  background: #3a3a3a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 64px 44px 20px rgba(19, 19, 19, 0.6);
}

.vehicles-cta .cta-card__photo {
  position: absolute;
  right: 0;
  top: -38px;
  width: 66%;
  height: calc(100% + 38px);
}

.vehicles-cta .cta-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicles-cta .cta-card__photo-gradient {
  position: absolute;
  left: 0;
  top: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(to right, #3a3a3a 30%, rgba(58, 58, 58, 0));
}

.vehicles-cta .cta-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 0 84px;
  height: 100%;
  max-width: 480px;
}

.vehicles-cta .cta-card__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vehicles-cta .cta-card__title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-font-primary);
}

.vehicles-cta .cta-card__subtitle {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.625;
  letter-spacing: 0.16px;
  color: rgba(238, 238, 238, 0.8);
}

.vehicles-cta .cta-card__buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ------------------------------------------------------------------
   RESPONSIVE — TABLET (max-width: 1024px)
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .vehicles-banner {
    height: 320px;
  }

  .vehicles-quick-find__card {
    flex-direction: column;
    padding: 32px;
    gap: 24px;
  }

  .vehicles-quick-find__filters {
    flex-direction: column;
    width: 100%;
  }

  .vehicles-quick-find__group {
    width: 100%;
  }

  .vehicles-quick-find__btn {
    position: static;
    transform: none;
    width: 100%;
  }

  .vehicles-cards__viewport {
    padding: 0;
  }

  .vehicles-cards__track {
    padding-left: 60px;
  }

  .vehicle-card {
    flex: 0 0 440px;
    height: 500px;
  }

  .vehicle-card__gradient {
    height: 400px;
  }

  .vehicles-detail__title {
    font-size: 48px;
  }

  .vehicles-detail__hero {
    width: 100%;
    height: 450px;
  }

  .vehicles-detail__blur {
    display: none;
  }

  .vehicles-detail__arrow--prev {
    left: 20px;
  }

  .vehicles-detail__arrow--next {
    right: 20px;
  }

  .vehicles-detail__grid {
    max-width: 100%;
    padding: 0 40px;
  }

  .vehicles-detail__row {
    gap: 40px;
  }

  .vehicles-cta .cta-card {
    height: auto;
    min-height: 380px;
  }

  .vehicles-cta .cta-card__content {
    padding: 40px 48px;
    max-width: 50%;
  }

  .vehicles-cta .cta-card__photo {
    width: 55%;
  }

  .vehicles-cta .cta-card__title {
    font-size: 28px;
  }
}

/* ------------------------------------------------------------------
   RESPONSIVE — MOBILE (max-width: 768px)
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
  /* 1. Banner */
  .vehicles-banner {
    height: 360px;
  }

  .vehicles-banner__title {
    font-size: 36px;
  }

  /* 2. Quick Find */
  .vehicles-quick-find {
    padding: 40px 20px 24px;
    gap: 40px;
  }

  .vehicles-quick-find__title {
    font-size: 32px;
  }

  .vehicles-quick-find__card {
    height: 450px;
    padding: 32px 16px;
    gap: 20px;
  }

  .vehicles-quick-find__group {
    gap: 8px;
  }

  .vehicles-quick-find__icon {
    width: 32px;
    height: 32px;
  }

  /* 3. Vehicle Cards */
  .vehicles-cards {
    padding: 24px 0 60px;
  }

  .vehicles-cards__viewport {
    padding: 0;
  }

  .vehicles-cards__track {
    padding-left: 20px;
  }

  .vehicles-cards__prev,
  .vehicles-cards__next {
    display: none;
  }

  .vehicle-card {
    flex: 0 0 289px;
    height: 428px;
  }

  .vehicle-card__gradient {
    height: 340px;
  }

  .vehicle-card__name {
    font-size: 32px;
  }

  .vehicle-card__subtitle {
    font-size: 16px;
  }

  .vehicle-card__content {
    padding: 0 24px 28px;
    gap: 12px;
  }

  /* 4. Detail header & hero */
  .vehicles-detail__header {
    padding: 40px 0 24px;
  }

  .vehicles-detail__title {
    font-size: 40px;
  }

  .vehicles-detail__badge {
    width: auto;
    height: auto;
    padding: 8px 20px;
    font-size: 18px;
  }

  .vehicles-detail__hero {
    width: 100%;
    height: 184px;
    aspect-ratio: auto;
    border-radius: var(--radius-md);
  }

  .vehicles-detail__blur {
    display: none;
  }

  /* 5. Detail arrows */
  .vehicles-detail__arrow {
    display: none;
  }

  .vehicles-detail__arrows {
    display: flex;
    gap: var(--space-12);
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .vehicles-detail__hero-wrap {
    padding: 0 var(--space-20);
  }

  .vehicles-detail__cta {
    margin-bottom: 40px;
  }

  /* 6. Detail description rows */
  .vehicles-detail__grid {
    padding: 0;
    gap: 40px;
  }

  .vehicles-detail__row {
    flex-direction: column;
    gap: 40px;
  }

  .vehicles-detail__item-title {
    font-size: 16px;
  }

  .vehicles-faq {
    padding: 60px 0 195px;
  }

  .page-vehicles {
    background: var(--color-bg-01);
  }

  /* 7. CTA card */
  .vehicles-cta {
    padding: 0 0 100px;
    margin-top: -113px;
    background: transparent;
    position: relative;
    z-index: 1;
  }

  .vehicles-cta__container {
    padding: 0 var(--space-20);
  }

  .vehicles-cta .cta-card {
    height: 450px;
    min-height: auto;
    overflow: hidden;
  }

  .vehicles-cta .cta-card__photo {
    position: absolute;
    width: 100%;
    height: 230px;
    top: -49px;
    right: 0;
  }

  .vehicles-cta .cta-card__photo-gradient {
    position: absolute;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, #3a3a3a 0%, rgba(58, 58, 58, 0) 100%);
    bottom: 0;
    top: auto;
    left: 0;
  }

  .vehicles-cta .cta-card__content {
    position: absolute;
    top: 201px;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 16px 20px;
    max-width: 100%;
    gap: 12px;
    height: auto;
    justify-content: flex-start;
  }

  .vehicles-cta .cta-card__title {
    font-size: 32px;
  }

  .vehicles-cta .cta-card__buttons {
    flex-direction: row;
    gap: 12px;
    width: auto;
  }

  .vehicles-cta .cta-card__buttons .btn {
    flex: none;
    min-width: auto;
    height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 28px;
    padding-right: 28px;
  }
}
