/* ===== INDEX PAGE STYLES ===== */

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 500px;
  max-height: 1100px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-top: 5rem;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.hero-bg-slide.active { opacity: 1; z-index: 1; }

.hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 40%, rgba(0,0,0,0.65) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-text-block {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  width: 90%;
  max-width: 800px;
  pointer-events: none;
}

.hero-slide-text {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.hero-slide-text.active {
  display: flex;
  animation: heroTextFadeIn 0.9s ease forwards;
}

@keyframes heroTextFadeIn {
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero-slide-text h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

.hero-slide-text p {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.9);
  font-weight: 400;
  margin: 0;
  max-width: 560px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Search Box */
.hero-search-box {
  position: relative;
  z-index: 4;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.5rem 2rem;
  width: 92%;
  max-width: 1100px;
  margin-bottom: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.hero-search-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.hero-search-form select:hover,
.hero-search-form select:focus {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  outline: none;
}

.hero-search-form select option {
  background: #222;
  color: #fff;
}

.hero-search-form .btn-primary {
  width: 100%;
  padding: 0.85rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 8px;
  letter-spacing: 1.5px;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: relative;
  z-index: 4;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.4);
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* --- TRUST BAR --- */
.trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 1.8rem 5%;
  background: var(--bg-dark);
  border-bottom: 2px solid var(--primary);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
}

.trust-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.trust-item div {
  display: flex;
  flex-direction: column;
}

.trust-number {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.trust-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
}

/* --- SECTION HEADERS --- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.6rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #111;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

.btn-rounded {
  border-radius: 50px !important;
}

/* --- FEATURED VEHICLES --- */
.featured-section {
  background: var(--bg-light);
  padding: 5rem 5%;
}

.featured-slider-outer {
  position: relative;
  width: 100%;
}

.featured-slider-container {
  overflow-x: auto;
  padding: 1rem 0 3rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  scroll-behavior: smooth;
}

.featured-slider-container::-webkit-scrollbar {
  display: none;
}

.featured-slider-track {
  display: flex;
  gap: 1.5rem;
  padding: 0 5%;
  width: max-content;
}

.slider-nav {
  position: absolute;
  top: calc(50% - 1.5rem);
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #111;
}

.slider-nav:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.slider-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-nav.prev { left: 2%; }
.slider-nav.next { right: 2%; }

.slider-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}

@media (max-width: 768px) {
  .slider-nav { display: none; }
}

.featured-slider-track .vehicle-card {
  flex: 0 0 280px;
  width: 280px;
}

.vehicle-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.vehicle-card-img {
  display: block;
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #000;
}

.vehicle-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.vehicle-card:hover .vehicle-card-img img {
  transform: scale(1.05);
}

.ulez-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #0072bc;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
  letter-spacing: 0.5px;
}

.attention-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.vehicle-card-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
}

.vehicle-card-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.2rem;
}

.vehicle-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.vehicle-derivative {
  color: #999;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  min-height: 20px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.vehicle-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.vehicle-specs span {
  background: #2a2a2a;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  color: #ddd;
  font-weight: 500;
}

/* ENGRAVED BOTTOM FOOTER */
.vehicle-card-footer {
  background: #0a0a0a;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #222;
  box-shadow: inset 0 6px 10px -4px rgba(0,0,0,0.6);
}

.vehicle-price {
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0;
}

.btn-view {
  padding: 0.65rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.3s;
}

.btn-view:hover {
  background: var(--primary-hover);
  color: #fff;
}

.no-vehicles {
  grid-column: 1 / -1;
  text-align: center;
  color: #777;
  padding: 3rem;
}

/* --- SERVICES GRID --- */
.services-section {
  padding: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  text-decoration: none;
  cursor: pointer;
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.75s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.75s ease;
  filter: brightness(0.5) saturate(0.85);
  transform: scale(1.04);
}

.service-card:hover .service-card-bg {
  transform: scale(1.12);
  filter: brightness(0.35) saturate(0.7);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(15deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  pointer-events: none;
}

.service-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  width: 100%;
}

.service-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  opacity: 0.6;
  transform: translateY(8px);
  transition: all 0.4s ease;
}

.service-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:hover .service-icon {
  transform: translateY(0);
  opacity: 1;
  background: rgba(255,255,255,0.18);
}

.service-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.4rem;
}

.service-card-content h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.service-card-content p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  max-width: 380px;
  line-height: 1.5;
  margin-bottom: 1.1rem;
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.45s ease 0.05s, opacity 0.45s ease 0.05s;
}

.service-card:hover .service-card-content p {
  transform: translateY(0);
  opacity: 1;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  padding-bottom: 3px;
}

.service-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #fff;
  transition: width 0.35s ease;
}

.service-card:hover .service-cta::after {
  width: 100%;
}

.service-cta svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.service-card:hover .service-cta svg {
  transform: translateX(4px);
}

/* --- SPLIT CTA & REVIEWS --- */
.split-section {
  display: flex;
  width: 100%;
}

.split-left {
  flex: 1;
  position: sticky;
  top: 0;
  height: 100vh;
  background-image: url('../images/hero-16.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.split-left-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  text-align: center;
  max-width: 600px;
}

.split-left-content h2 {
  color: #fff;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.split-left-content h2 span {
  color: var(--primary);
}

.split-left-content p {
  color: #ddd;
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.split-right {
  flex: 1;
  position: relative;
  background-image: url('../images/hero-22.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.split-right-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0.9);
}

.split-right-content {
  position: relative;
  z-index: 2;
  padding: 6rem 4rem;
}

.dark-header h2 {
  color: #fff !important;
}

.reviews-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.review-card-dark {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-left: 4px solid var(--primary);
  border-radius: 0;
  color: #fff;
  transition: transform 0.3s;
}

.review-card-dark:hover {
  transform: translateX(10px);
  background: rgba(255,255,255,0.08);
}

.review-card-dark > p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #ddd;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.review-author h4 {
  color: #fff;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.verified-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 800;
  color: #2ecc71;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.1rem;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: auto;
    max-height: none;
    display: block;
  }

  .hero-bg-slide,
  .hero-overlay {
    height: 50vh;
    bottom: auto;
  }

  .hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  }

  .hero-text-block {
    top: 25vh;
    width: 95%;
  }

  .hero-slide-text h1 {
    font-size: 1.8rem;
  }

  .hero-search-box {
    margin: 22vh 0 0 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border: none;
    border-top: 3px solid var(--primary);
    background: #1a1a1a;
    padding: 1.5rem 5%;
    backdrop-filter: none;
  }

  .hero-search-form {
    grid-template-columns: 1fr !important;
  }

  .hero-scroll-indicator {
    display: none;
  }

  /* Trust Bar */
  .trust-bar {
    flex-wrap: wrap;
    gap: 1.2rem;
    padding: 1.2rem 5%;
  }

  .trust-divider { display: none; }

  .trust-item {
    flex: 1 1 40%;
    min-width: 140px;
  }

  .trust-number { font-size: 1rem; }

  /* Featured */
  .featured-section { padding: 3rem 4%; }
  .featured-grid { grid-template-columns: 1fr !important; }
  .vehicle-card-img { height: 220px; }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  .service-card {
    min-height: 300px;
  }

  .service-card-content p {
    opacity: 1;
    transform: translateY(0);
  }

  .service-icon {
    opacity: 1;
    transform: translateY(0);
  }

  .service-card-bg {
    filter: brightness(0.4) saturate(0.7);
  }

  /* Split Section */
  .split-section {
    flex-direction: column;
  }
  .split-left {
    position: relative;
    height: auto;
    padding: 4rem 1rem;
  }
  .split-right {
    background-attachment: scroll;
  }
  .split-right-content {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .trust-item { flex: 1 1 100%; }
  .service-card { min-height: 260px; }
}


/* ==========================================================================
   HERO SEARCH FINANCE TOGGLE & CAR CARD FINANCE STYLES
   ========================================================================== */
.hero-search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-search-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.toggle-switch-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  user-select: none;
}

.toggle-switch-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: color 0.25s ease;
}

.toggle-switch-label.active {
  color: #ffffff;
  font-weight: 800;
}

.toggle-switch-control {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.25s ease;
  outline: none;
}

.toggle-switch-control:focus-visible {
  box-shadow: 0 0 0 2px #fff;
}

.toggle-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.toggle-switch-control.active-finance {
  background: var(--primary, #0072bc);
}

.toggle-switch-control.active-finance .toggle-switch-knob {
  transform: translateX(20px);
}

/* Vehicle Card 2-Price & Button Styles */
.vehicle-card-footer {
  background: #0a0a0a;
  padding: 1rem 1.15rem;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  border-top: 1px solid #222;
  box-shadow: inset 0 6px 10px -4px rgba(0,0,0,0.6);
}

.card-prices-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.price-row-cash, .price-row-finance {
  display: flex;
  flex-direction: column;
}

.price-row-finance {
  text-align: right;
}

.price-type-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #888;
  margin-bottom: 2px;
}

.vehicle-price {
  font-size: 1.45rem !important;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 0 !important;
}

.vehicle-price-monthly {
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--primary, #0072bc);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.vehicle-price-monthly span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #aaa;
}

.card-buttons-wrap {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.btn-apply-finance {
  flex: 1;
  padding: 0.62rem 0.5rem;
  background: #0072bc;
  color: #fff;
  border: 1px solid #0072bc;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-apply-finance:hover {
  background: #005b96;
  border-color: #005b96;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 114, 188, 0.35);
}

.card-buttons-wrap .btn-view {
  flex: 1;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.5rem;
  font-size: 0.75rem;
}

