/* ==========================================================================
   home.css - Trang chủ: banner, số liệu, dịch vụ, lời kêu gọi, showroom.
   Dùng cho: index.html.
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(86vh, 760px);
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 21, 20, 0.88) 0%, rgba(16, 21, 20, 0.45) 55%, rgba(16, 21, 20, 0.2) 100%),
    linear-gradient(0deg, rgba(16, 21, 20, 0.8) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
  padding-block: var(--sp-8) var(--sp-7);
}

.hero-copy {
  max-width: 720px;
}

.hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  color: var(--lime);
}

.hero-copy .eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--lime);
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--lime);
}

.hero-copy .lead {
  margin-top: var(--sp-5);
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}

.hero-caption {
  text-align: right;
}

.hero-caption .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.hero-caption a {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
}

.hero-caption a:hover {
  color: var(--lime);
}

.hero-dots {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.hero-dots button:hover {
  background: var(--white);
}

.hero-dots button.active {
  width: 32px;
  background: var(--lime);
}

.stats {
  background: var(--dark);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid div {
  padding: var(--sp-5) var(--sp-4);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stats-grid div:first-child {
  border-left: 0;
}

.stats-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: 1.2;
}

.stats-grid span {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.service {
  padding: var(--sp-5);
}

.service span {
  display: block;
  margin-bottom: var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--muted);
}

.service p {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--muted);
}

.cta {
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

.cta .eyebrow {
  color: var(--lime);
}

.cta h2 {
  margin: var(--sp-3) auto var(--sp-6);
  max-width: 720px;
}

.showroom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}

.showroom address {
  margin: var(--sp-2) 0 var(--sp-3);
  font-style: normal;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
}

.showroom .btn {
  margin-top: var(--sp-4);
}

@media (max-width: 1024px) {
  .services-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .showroom {
      grid-template-columns: 1fr;
  }

  .stats-grid {
      grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid div:nth-child(3) {
      border-left: 0;
  }

  .hero-caption {
      text-align: left;
  }

  .hero-dots {
      justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .services-grid {
      grid-template-columns: 1fr;
  }
}
