/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #fdfcf9;
  color: #333;
  line-height: 1.7;
}

/* =========================
   HERO CAR RENTAL
========================= */

.hero-car {
  height: 95vh;
  background: url('../assets/images/Cover-rental-mobil-lombok.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-car .hero-overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0,119,182,0.45),
    rgba(0,48,73,0.55)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-car .hero-content {
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 20px;
}

.hero-car h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-car p {
  font-size: 18px;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .hero-car {
    height: 85vh;
  }

  .hero-car h1 {
    font-size: 28px;
  }

  .hero-car p {
    font-size: 16px;
  }
}


/* =========================
   NAVBAR
========================= */
.navbar {
  background: linear-gradient(90deg, #00b4d8, #0077b6);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
}

.logo span {
  color: #ffd166;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #ffd166;
}

.nav-cta a {
  background: #ffd166;
  color: #003049 !important;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

/* =========================
   HERO
========================= */
.hero {
  height: 95vh;
  background: url('../assets/images/hero-motor.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0,119,182,0.75),
    rgba(0,48,73,0.75)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: #ffd166;
  color: #003049;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #e6b800;
}

.btn-secondary {
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: #fff;
  color: #003049;
}


/* =========================
   SECTION
========================= */
section {
  padding: 120px 6%;
}

section > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}


section:nth-of-type(even) {
  background: #e9f7fb;
  border-radius: 20px;
}

h2 {
  color: #003049;
  margin-bottom: 25px;
  font-size: 28px;
}


/* =========================
   CAR LIST SECTION
========================= */

.car-list {
  
    text-align: center;
}

.car-list h2 {
    margin-bottom: 40px;
    font-size: 28px;
}

/* GRID WRAPPER */
.car-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolom */
    gap: 30px;
}

/* CARD */
.car-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 20px;
    transition: 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.car-card h3 {
    margin: 10px 0;
    font-size: 22px;
    font-weight: 700;
}

.car-card p {
    margin: 5px 0;
    color: #555;
}

.car-card a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background: #ffd166;
    color: #003049;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: 0.3s ease;
}

.car-card a {
    font-weight: 600;
    border-radius: 8px;
}

/* Tablet */
@media (max-width: 992px) {
    .car-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .car-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   HR
========================= */
hr {
  border: none;
  height: 1px;
  background: #d9eef5;
  margin: 60px auto;
  max-width: 1200px;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #003049;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0077b6;
    flex-direction: column;
    display: none;
    padding: 20px 0;
  }
  .navbar {
    position: sticky;
    z-index: 1200;
}
.nav-menu {
    z-index: 1100;
}
  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 85vh;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  section:nth-child(even) {
    border-radius: 0;
  }
}
