/* ============================================================
   BALA AUTOMOBILE VENTURES — HOMEPAGE STYLES
   ============================================================ */

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,10,0.92) 40%, rgba(10,10,10,0.3) 100%),
    url('https://images.unsplash.com/photo-1544636331-e26879cd4d9b?w=1800&q=80') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 12s var(--ease-out) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

/* red line accent */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, transparent 60%);
}

/* floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--red);
  border-radius: 50%;
  animation: float var(--dur, 8s) var(--delay, 0s) infinite linear;
  opacity: 0;
}
@keyframes float {
  0%   { opacity: 0; transform: translateY(100vh) translateX(0); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-10vh) translateX(var(--drift, 30px)); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px 100px;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s var(--ease-out) forwards;
}
.hero-badge::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 10vw, 96px);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s var(--ease-out) forwards;
}
.hero-title .accent { color: var(--red); display: block; }

.hero-sub {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: var(--grey-light);
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.9s 1s var(--ease-out) forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 1.2s var(--ease-out) forwards;
}

/* stats strip */
.hero-stats {
  position: absolute;
  bottom: 0; right: 0;
  background: var(--red);
  display: flex;
  z-index: 3;
}
.hero-stat {
  padding: 28px 36px;
  border-left: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}
.hero-stat:first-child { border: none; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.04em;
  color: var(--white);
  display: block;
  line-height: 1;
}
.hero-stat .label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 48px; right: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 4;
  opacity: 0;
  animation: fadeIn 1s 1.6s ease forwards;
}
.hero-scroll span {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey-light);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--grey-light), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

/* ─── FEATURED CARS ──────────────────────────────────────── */
.featured-cars {
  padding: 120px 80px;
  background: var(--white-off);
  position: relative;
}
.featured-cars::before {
  content: 'FLEET';
  position: absolute;
  top: 60px; right: 60px;
  font-family: var(--font-display);
  font-size: 160px;
  letter-spacing: 0.05em;
  color: rgba(200,16,46,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.featured-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
}
.featured-header .section-title { max-width: 400px; }
.view-all-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  transition: gap 0.3s;
}
.view-all-link:hover { gap: 16px; }
.view-all-link svg { width: 20px; }

/* carousel container */
.cars-carousel {
  position: relative;
}
.cars-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* car card */
.car-card {
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  cursor: none;
}
.car-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.4s;
  z-index: 2;
  pointer-events: none;
}
.car-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.14), 0 0 0 1px var(--red) inset;
}
.car-card:hover::before {
  border-color: var(--red);
}

.car-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #f0ede8;
}
.car-img-wrap img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.car-card:hover .car-img-wrap img {
  transform: scale(1.07);
}

.car-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 5px 12px;
  z-index: 3;
}

.car-wish {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  transition: background 0.3s, transform 0.3s;
}
.car-wish:hover {
  background: var(--red);
  transform: scale(1.1);
}
.car-wish svg { transition: stroke 0.3s; }
.car-wish:hover svg { stroke: white; }
.car-wish.wished {
  background: var(--red);
}
.car-wish.wished svg {
  stroke: white;
  fill: white;
}

.car-info {
  padding: 24px;
}
.car-make {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 6px;
}
.car-name {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-bottom: 4px;
}
.car-year {
  font-size: 12px;
  color: var(--grey-mid);
  margin-bottom: 20px;
}
.car-specs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--white-muted);
  border-bottom: 1px solid var(--white-muted);
}
.car-spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.car-spec .spec-val {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--black);
}
.car-spec .spec-key {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-light);
}
.car-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.car-price {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--red);
}
.car-price sup {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  vertical-align: top;
  margin-top: 6px;
}
.btn-view {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--black);
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
}
.btn-view:hover { color: var(--red); border-color: var(--red); gap: 14px; }

/* ─── WHY CHOOSE US ──────────────────────────────────────── */
.why-us {
  padding: 120px 80px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.why-us::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: var(--red-glow);
  filter: blur(120px);
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 100px;
  align-items: center;
}
.why-left .section-eyebrow { margin-bottom: 20px; }

.why-left .section-title.light {
  margin-bottom: 28px;
}
.why-left p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--grey-mid);
  max-width: 360px;
  margin-bottom: 40px;
}

.counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.counter-item {
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.counter-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.5s var(--ease-out);
}
.counter-item:hover { border-color: rgba(200,16,46,0.3); }
.counter-item:hover::before { width: 100%; }

.counter-num {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1;
}
.counter-num .plus { color: var(--red); }
.counter-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-top: 6px;
}

/* features list */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.feature-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.feature-item:first-child { border-top: 1px solid rgba(255,255,255,0.06); }

.feature-icon {
  width: 64px; height: 64px;
  border: 1px solid rgba(200,16,46,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
}
.feature-item:hover .feature-icon {
  background: var(--red-glow);
  border-color: var(--red);
}

.feature-text h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 8px;
}
.feature-text p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--grey-mid);
}

/* ─── CATEGORIES ─────────────────────────────────────────── */
.categories {
  padding: 120px 80px;
  background: var(--white);
}
.categories-header { text-align: center; margin-bottom: 64px; }
.categories-header .section-eyebrow { justify-content: center; }
.categories-header .section-eyebrow::before { display: none; }
.categories-header .section-eyebrow::after {
  content: '';
  width: 32px; height: 1px;
  background: var(--red);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cat-tile {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--black-mid);
  display: block;
  cursor: none;
}
.cat-tile:first-child { grid-row: span 2; height: auto; min-height: 320px; }

.cat-img {
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.cat-tile:hover .cat-img { transform: scale(1.08); }

.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.2) 60%);
  transition: background 0.4s;
}
.cat-tile:hover .cat-overlay {
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(200,16,46,0.15) 100%);
}

.cat-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  z-index: 2;
}
.cat-label {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 4px;
}
.cat-count {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-light);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.3s;
}
.cat-tile:hover .cat-count { gap: 16px; color: var(--red); }
.cat-count::after {
  content: '→';
  font-size: 14px;
}

/* ─── CTA BANNER ─────────────────────────────────────────── */
.cta-banner {
  padding: 100px 80px;
  background: var(--black);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,16,46,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(200,16,46,0.12) 0%, transparent 60%);
}
/* diagonal stripes */
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.01) 0px,
    rgba(255,255,255,0.01) 1px,
    transparent 1px,
    transparent 40px
  );
}

.cta-content { position: relative; z-index: 2; }
.cta-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: 0.03em;
  line-height: 0.92;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-sub {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--grey-mid);
  margin-bottom: 48px;
}
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ─── TESTIMONIALS ───────────────────────────────────────── */
.testimonials {
  padding: 120px 80px;
  background: var(--white-off);
}
.testimonials-header { margin-bottom: 64px; }

.testimonials-carousel {
  position: relative;
  overflow: hidden;
}
.testi-track {
  display: flex;
  gap: 28px;
  transition: transform 0.6s var(--ease-out);
}
.testi-card {
  flex: 0 0 calc(33.33% - 19px);
  background: var(--white);
  padding: 40px;
  position: relative;
  transition: box-shadow 0.4s;
}
.testi-card::before {
  content: '"';
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-serif);
  font-size: 80px;
  color: rgba(200,16,46,0.12);
  line-height: 1;
}
.testi-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

.testi-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.testi-stars svg { color: var(--gold); }

.testi-text {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--black-soft);
  margin-bottom: 28px;
}
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
  flex-shrink: 0;
}
.testi-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--black);
}
.testi-city {
  font-size: 11px;
  color: var(--grey-mid);
  letter-spacing: 0.1em;
}

.testi-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 40px;
}
.testi-btn {
  width: 48px; height: 48px;
  border: 1px solid var(--black-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.testi-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.testi-dots {
  display: flex;
  gap: 8px;
}
.testi-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--white-muted);
  transition: background 0.3s, width 0.3s;
  border-radius: 3px;
}
.testi-dot.active {
  background: var(--red);
  width: 20px;
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cars-track { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-tile:first-child { grid-row: span 1; height: 320px; }
  .why-grid { grid-template-columns: 1fr; gap: 60px; }
}
@media (max-width: 900px) {
  .featured-cars, .why-us, .categories, .cta-banner, .testimonials {
    padding: 80px 24px;
  }
  .featured-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-content { padding: 0 24px 100px; }
  .hero-stats { display: none; }
  .hero-scroll { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-card { flex: 0 0 calc(100% - 0px); }
}
@media (max-width: 600px) {
  .cars-track { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .counters { grid-template-columns: 1fr 1fr; }
}
