:root {
  --accent: #9f12acc0;
  --accent-dark: #12bfd6;
  --muted: #000000;
  --card: #fbfcfc;
  --bg: #c8d6f1;

  /* approximate nav height used to offset hero so it doesn't sit under sticky nav */
  --nav-height: 76px;
}

/* reset & base */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, system-ui, "Segoe UI", Roboto, Arial;
  color: #1b1b1b;
  background: var(--bg);
}

/* NAVBAR - full width sticky background, centered inner content */
.nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 80;
  background: linear-gradient(90deg, #12bfd6 0%, #fff5f0 100%);
  box-shadow: 0 2px 8px rgba(23, 187, 45, 0.08);
}

/* inner container keeps nav content centered and limited width */
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 12px;
}

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 56px;
  width: auto;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}
.brand h1 {
  font-size: 1.2rem;
  margin: 0;
}
.muted {
  color: rgba(0, 0, 0, 0.65);
  font-size: .9rem;
}

/* contact group in nav */
.contact {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Buttons */
.btn {
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover {
  background: var(--accent-dark);
}
.btn.secondary {
  background: transparent;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

/* HERO */
.hero {
  /* subtract nav height so hero doesn't hide under sticky nav */
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  color: rgb(255, 254, 252);
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
  position: relative;
  padding: 24px 16px;
}

/* overlay for readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* hero content layout */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px; /* two-column on wide screens */
  gap: 20px;
  align-items: start;
  padding: 16px;
}

/* hero text column */
.hero-text {
  color: #fff;
}
.hero-title {
  font-size: 2rem;
  margin: 0 0 12px;
}
.hero-sub {
  color: #f3f3f3;
  margin: 0 0 18px;
  font-size: 1.05rem;
}

/* quick query card (aside) */
.query-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.query-card .small-note {
  font-size: .85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

/* form inputs */
.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #565656;
}
.input::placeholder {
  color: rgba(28, 27, 27, 0.6);
}

/* make forms rows consistent */
.row {
  margin-bottom: 8px;
}

/* MAIN and section heads */
main {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-head h2 {
  margin: 0;
}

/* ----------------
   RESPONSIVE RULES
   ---------------- */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr; /* single column */
    gap: 16px;
  }

  /* ensure the query card appears after the hero text (it already does by source order) */
  .hero-text {
    order: 0;
  }
  .query-card {
    order: 1;
  }

  /* make the query card full-width and slightly flatter on small screens */
  .query-card {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
  }

  /* reduce hero text sizes */
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-sub {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-height: 88px;
  } /* adjust nav height for taller stacked nav items if needed */

  .nav-inner {
    padding: 10px 12px;
    gap: 8px;
  }
  .brand img {
    height: 48px;
  }
  .hero {
    padding: 18px 12px;
    min-height: calc(80vh - var(--nav-height));
  }
  .hero-title {
    font-size: 1.4rem;
  }
  .input {
    padding: 10px;
  }
  .btn {
    padding: 8px 10px;
    font-size: .95rem;
  }
}

/* small accessibility/contrast tweak for users with reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero {
    transition: none;
  }
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chip {
  background: var(--card);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid #eee;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--accent);
}

.chip.active {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
  background: #fff5f0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(19, 24, 31, 0.06);
  cursor: pointer;
  transition: transform .15s;
}

.card:hover {
  transform: translateY(-6px);
}

/* Enhanced carousel styling with proper dimensions and transitions */

.carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease-in-out;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.2s;
  line-height: 1;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.card-body {
  padding: 12px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.price {
  font-weight: 700;
  color: var(--accent);
}

footer {
  max-width: 1100px;
  margin: 28px auto;
  padding: 20px 16px;
  background: transparent;
  color: #333;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}

.contact-card {
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

/* booking modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.modal {
  background: #fff;
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  padding: 18px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h3 {
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.form-row.full {
  grid-template-columns: 1fr;
}

.input,
textarea,
select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  width: 100%;
  font-size: 1rem;
  font-family: inherit;
}

.input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* quick query card */

.query-card {
  background: rgba(255, 255, 255, 0.06);
  padding: 14px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.query-card h4 {
  margin: 0 0 8px 0;
}

.query-card .small-note {
  font-size: 0.9rem;
  color: #f3f3f3;
  margin-bottom: 8px;
}

.query-card form .row {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.query-card .input {
  background: rgba(255, 255, 255, 0.95);
}

/* responsive */

@media (max-width: 760px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .nav {
    padding-bottom: 8px;
    flex-direction: column;
    gap: 12px;
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}

/* small helper */

.muted {
  color: var(--muted);
  font-size: .95rem;
}

.bold-note {
  font-weight: 700;
  color: #111;
}

/* car availability section styles */

.cars-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.car-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

.car-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #f3f6fb 0%, #e8eef7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s ease;
}

.car-card:hover .car-icon {
  background: linear-gradient(135deg, #ff6f11 0%, #ff8c42 100%);
  color: #fff;
  transform: scale(1.05);
}

.car-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #1b1b1b;
}

.car-details {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.car-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
}

.car-features li {
  padding: 8px 0;
  color: #333;
  font-size: 0.9rem;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 24px;
}

.car-features li:last-child {
  border-bottom: none;
}

.car-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.car-whatsapp-btn {
  width: 100%;
  margin-top: 8px;
}

a {
  text-decoration: none;
}

/* responsive
@media (max-width: 760px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .nav {
    padding-bottom: 8px;
    flex-direction: column;
    gap: 12px;
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .cars-grid {
    grid-template-columns: 1fr;
  }
  .features-section-hero {
    margin-top: 20px;
  }
} */
