html {
  color-scheme: light;
  background-color: #f2f3f4;
}

body {
 font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #111;
  background: #fff;
  margin: 0;
}
header {
  background: #fff;
  box-shadow: none;
  border-bottom: 1px solid #ddd;
  padding: 1rem 6%;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}
header h1 {
  font-weight: 700;
  font-size: 1.5rem;
  color: #111;
  margin: 0;
  letter-spacing: 2px;
}
.carousel {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.slides {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
   background-attachment: fixed;
  background-size: cover;
  background-position: center top;
}

.slide.active {
  opacity: 1;
}
#inv{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap:22px
}
/* dark overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3),
    rgba(0,0,0,0.6)
  );
}

/* text on top */
.content {
  position: absolute;
  bottom: 15%;
  left: 8%;
  color: white;
  z-index: 2;
  max-width: 600px;
}

.content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.inventory-card {
  margin-top: 3vh;
  margin-bottom: 2vh;

  width: min(95%, 600px);   /* ⬅ BIGGER */
  aspect-ratio: 16 / 10;    /* ⬅ TALLER than before */

  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
   box-shadow: 0px 8px 16px rgba(0,0,0,0.25);
}
/* Featured Models Section */
.featured-models {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 48px;
  letter-spacing: 1.1px;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.model-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.model-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 40px rgba(0,0,0,0.15);
}

.model-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease;
}

.model-card:hover img {
  transform: scale(1.05);
}

.model-info {
  padding: 24px 20px;
  color: #111;
  text-align: left;
}

.model-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.7px;
}

.model-info p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
  font-weight: 500;
}

.model-info button {
  padding: 12px 24px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.model-info button:hover {
  background: #444;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .model-card img {
    height: 160px;
  }
  .model-info h3 {
    font-size: 1.4rem;
  }
  .model-info p {
    font-size: 0.9rem;
  }
}

/* Image layer */
.inventory-image {
  position: absolute;
  inset: 0;
  background-image: url("../images/icons/inventory.jpg");
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
  
}
.inventory-image1 {
  position: absolute;
  inset: 0;
  background-image: url("../images/icons/AllVehicles.jpg");
  background-size: cover;
  background-position: 0 -300px;
  transition: transform 0.8s ease;
  
}
/* Zoom only the image */
.inventory-card:hover .inventory-image {
  transform: scale(1.05);
  filter: brightness(0.95);
}
.inventory-card:hover .inventory-image1 {
  transform: scale(1.05);
  filter: brightness(0.95);
}
/* Overlay stays still */
.inventory-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0)
  );
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px 20px;
  color: white;
  z-index: 2;
}


button, .inventory-arrow {
  color: white;
  font-weight: 700;
  transition: color 0.3s ease;
  cursor: pointer;
}

button:hover, .inventory-arrow:hover {
  color: white;
}

.inventory-arrow {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.inventory-card:hover .inventory-arrow {
  transform: translateX(4px);
}

.content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* dots */
.dots {
  position: absolute;
  bottom: 80px; /* sits above info bar */
  width: 100%;
  text-align: center;
  z-index: 5;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  background: rgba(255,255,255,0.4);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 30px; /* stretched */
  background: white;
}
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: white;
  border: none;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  display: none; /* hidden by default */
}

.prev {
  left: 20px;
}
.next {
  right: 20px;
}

/* text animation */
.slide .content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.slide.active .content {
  opacity: 1;
  transform: translateY(0);
}

.nav:hover {
  background: rgba(0,0,0,0.7);
}

/* bottom info bar */
.info-bar {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 14px 6%;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  gap: 40px;
  z-index: 4;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.info-item {
  color: white;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.info-item:hover {
  opacity: 1;
}
.info-bar,
.info-bar * {
  color: white;
  text-decoration: none;
}

/* iOS specific fix */
.info-bar a,
.info-bar span,
.info-bar div {
  -webkit-text-decoration-color: white;
}

/* Kill Apple phone/email detection styling */
a[x-apple-data-detectors] {
  color: white !important;
  text-decoration: none !important;
}

/* Reviews carousel - free horizontal scroll */
.reviews-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto 60px;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 30px 40px;
  border-radius: 8px;
  overflow-x: auto; /* allow horizontal scrolling */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

.reviews-slides {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory; /* enable snap */
  -webkit-overflow-scrolling: touch;
}

.review-slide {
  flex: 0 0 auto; /* prevent shrinking, fixed size */
  width: 300px; /* fixed width on desktop */
  scroll-snap-align: start; /* align snapping */
  box-sizing: border-box;
  padding: 10px;
  text-align: center;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-slide p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 10px;
}

.review-slide h4 {
  font-weight: 600;
  font-size: 1rem;
  color: #555;
  margin-top: 10px;
}

/* Stars styling */
.stars {
  color: gold;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Hide nav arrows and dots for reviews carousel */
.prev-review,
.next-review,
.review-dots {
  display: none;
}
.inventory-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0)
  );
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 16px;
  color: white;
}

/* Text scales nicely */
.inventory-text {
    font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
}

.inventory-arrow {
    font-size: clamp(20px, 3vw, 28px);
}

/* Slight zoom on tap (mobile feedback) */
.inventory-card:active .inventory-image {
  transform: scale(1.05);
}.inventory-card:active .inventory-image1 {
  transform: scale(1.05);
}


/* Sold Banner */
.sold-banner {
  position: absolute;
  top: 16px;       /* distance from top of card */
  left: -40px;     /* start outside card for diagonal effect */
  background: linear-gradient(135deg, #e60000, #ff1a1a); /* Porsche-style red */
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 8px 60px;
  text-transform: uppercase;
  transform: rotate(-45deg); /* diagonal */
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  pointer-events: none;
  z-index: 10;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}



/* Mobile tweaks */
@media (max-width: 768px) {
  
  #inv{
  gap:0px;

}
.inventory-image1 {
    background-position: center -170px!important;
    background-attachment: scroll !important;
    transform: none !important; /* reset any weird desktop transforms */
  }
.inventory-card{
  margin-bottom: -2vh;
}
  .reviews-carousel {
    padding: 20px;
    max-width: 90%;
  }

  .review-slide {
    width: 80vw; /* nearly full width on mobile */
  }

  /* info bar fixes */
  .info-bar {
    padding: 10px 3%;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: nowrap; /* prevent wrapping */
  }
  .slide {
    background-attachment: scroll; /* default behavior on mobile */
  }
  .info-item {
    flex-direction: column; /* stack icon above text */
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    font-size: 0.75rem;
    text-align: center;
    white-space: normal; /* allow wrapping */
    min-width: 0;
  }

  .info-item:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.15);
    padding-right: 12px;
    margin-right: 12px;
  }

  .info-item .icon {
    font-size: 1.3rem;
    line-height: 1;
  }

  .label {
    font-size: 0.7rem;
    line-height: 1.1;
    opacity: 0.85;
    word-break: break-word;
  }

  .content {
    bottom: 25%;
  }

 
}

/* Show nav buttons on main carousel on mobile */
@media (max-width: 768px) {
  
  .nav {
    display: block;
  }

  .content h1 {
    font-size: 2rem;
  }

  .content p {
    font-size: 1rem;
  }
}


/* Overlay */
