/* Reset & vars */
* {
  box-sizing: border-box;
}

:root {
  --accent: #0071e3;
  --muted: #6b6b6b;
  --bg: #fafafa;
  --radius: 18px;
  --maxw: 1200px;
}

/* Container */
#design .container {
  background-color: #808080;
}

/* Carousel Indicators */
#carouselDetailcar .carousel-indicators li {
  background-color: #b30000;
  opacity: 0.5;
  transition: all 0.3s ease;
}
#carouselDetailcar .carousel-indicators .active {
  opacity: 1;
  background-color: #ff0000;
  transform: scale(1.2);
}

/* Carousel Arrows */
#carouselDetailcar .carousel-control-prev-icon,
#carouselDetailcar .carousel-control-next-icon {
  background-image: none;
  width: 40px;
  height: 40px;
  border: 2px solid #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#carouselDetailcar .carousel-control-prev-icon::after,
#carouselDetailcar .carousel-control-next-icon::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-top: 2px solid #ff0000;
  border-right: 2px solid #ff0000;
}
#carouselDetailcar .carousel-control-prev-icon::after {
  transform: rotate(-135deg);
  margin-left: 3px;
}
#carouselDetailcar .carousel-control-next-icon::after {
  transform: rotate(45deg);
  margin-right: 3px;
}
#carouselDetailcar .carousel-control-prev:hover .carousel-control-prev-icon,
#carouselDetailcar .carousel-control-next:hover .carousel-control-next-icon {
  background-color: #ff0000;
  border-color: #ff0000;
}
#carouselDetailcar .carousel-control-prev:hover .carousel-control-prev-icon::after,
#carouselDetailcar .carousel-control-next:hover .carousel-control-next-icon::after {
  border-color: #fff;
}

/* Hero */
.hero {
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://www.aitoauto.com/assets/images/aito9/banner.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.8s ease;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.45));
}
.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 0 6vw;
}
.hero h1 {
  font-family: Playfair Display, serif;
  font-size: 68px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.hero p.lead {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 22px;
}
.hero .buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.btn.outline {
  background: transparent;
  border: 2px solid #fff;
}

/* Sections */
main {}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 5vw;
}
.section--hero-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.spec {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(10,10,10,0.06);
  text-align: center;
}
.spec h4 { margin-bottom: 8px; }
.spec p {
  color: var(--muted);
  font-size: 14px;
}

/* Gallery */
.wrap-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(255,8,8,0.12);
}
.wrap-image img {
  width: 100%;
  display: block;
}

/* Features & alternating sections */
.alt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 40px;
}
.alt.reverse { direction: ltr; }
.alt .txt h3 {
  font-size: 28px;
  margin-bottom: 12px;
}
.txt p { color: var(--muted); }

/* Interior grid */
.interior-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: linear-gradient(180deg, #fff, #fbfbfb);
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 980px) {
  .section--hero-info { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .interior-grid { grid-template-columns: repeat(2, 1fr); }
  header { padding: 10px 4vw; }
}
@media (max-width: 560px) {
  .hero { min-height: 520px; }
  .hero h1 { font-size: 32px; }
  .spec-grid { grid-template-columns: 1fr; }
}

/* Subtle animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.inview {
  opacity: 1;
  transform: none;
}

/* Utilities */
.muted { color: var(--muted); }
.center { text-align: center; }

/* Dots active */
.color-dots .dot.active {
  opacity: 1;
  transform: scale(1.4);
}

/* Swiper base */
.swiper {
  width: 100%;
  padding: 30px 0;
  max-height: 200px;
}
.swiper-slide {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(255,8,8,0.12);
  padding: 16px;
  text-align: left;
  max-height: 200px;
}
.swiper-slide img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}
.swiper-slide strong {
  font-size: 1rem;
  display: block;
  margin-bottom: 6px;
}
.swiper-slide p {
  color: #666;
  font-size: 0.9rem;
}
.swiper-button-prev,
.swiper-button-next {
  color: #000;
}

/* CTA */
.cta {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  flex: 1 1 220px;
}

/* Spec Section */
.section--spec {
  padding: 60px 0;
}
.spec-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(10,10,10,0.06);
  text-align: center;
  padding: 28px;
  transition: all 0.3s ease;
}
.spec-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.spec-card p {
  font-size: 15px;
  color: var(--muted);
}
.spec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(255,8,8,0.12);
}

/* Spec Swiper */
.spec-slider .swiper-slide {
  display: flex;
  justify-content: center;
}
.swiper-button-next,
.swiper-button-prev {
  color: #333;
  top: 42%;
}
.swiper-pagination-bullet {
  background: #222 !important;
  opacity: 0.4;
}
.swiper-pagination-bullet-active {
  opacity: 1;
}

/* Safety Section */
#safety .alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
#safety .wrap-image {
  flex: 1 1 45%;
}
#safety .wrap-image img {
  width: 100%;
  border-radius: 12px;
}
#safety .txt {
  flex: 1 1 50%;
}

/* Safety Swiper */
.safety-slider {
  width: 100%;
  padding: 10px 0 50px;
}
.safety-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  width: 100%;
  padding: 20px;
  transition: all 0.3s ease;
}
.safety-card li {
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
  word-break: break-word;
}
.safety-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.1);
}
.safety-slider .swiper-slide {
  display: flex;
  align-items: stretch;
}
.safety-slider .swiper-button-next,
.safety-slider .swiper-button-prev {
  color: #333;
  top: 40%;
}
.safety-slider .swiper-pagination-bullet {
  background: #333 !important;
  opacity: 0.4;
}
.safety-slider .swiper-pagination-bullet-active {
  opacity: 1;
}
