/* Umum */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333;
}

/* Header */
header {
  background-color: #fff;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  width: 180px;
  margin-bottom: 10px;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 15px;
}

nav ul li a {
  text-decoration: none;
  color: #e74c3c;
  font-weight: bold;
}

/* List Mobil */
.car-list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.car-card {
  display: flex;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.car-card img {
  width: 150px;
  object-fit: cover;
}

.car-info {
  padding: 15px;
  flex-grow: 1;
}

.car-info h3 {
  margin: 0;
  font-size: 1.2em;
}

.features {
  font-size: 0.9em;
  margin: 8px 0;
  color: #555;
}

.price {
  font-size: 0.95em;
  margin-bottom: 10px;
}

.price span {
  color: #e74c3c;
  font-weight: bold;
}

.btn {
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
}

.btn:hover {
  background-color: #718caa;
}

/* Kontak */
.contact-container {
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 90%;
  max-width: 400px;
}

.contact-link {
  background-color: #f4f4f4;
  border: 2px solid #ccc;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  color: #333;
  border-radius: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background-color: #e0e0e0;
}

.contact-link .icon {
  width: 20px;
  height: 20px;
}

.map-container {
  margin: 30px auto;
  width: 90%;
  max-width: 400px;
}

iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 10px;
}

footer {
  background-color: #0275d8;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 40px;
}

.contact-link i {
  font-size: 1.2em;
  color: #000000;
}

/* Header Layout */
.mobile-header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  position: relative;
}

.logo-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo {
  height: 50px;
  width: auto;
}

/* Menu toggle kiri & dummy kanan untuk seimbang */
.menu-toggle,
.menu-toggle-spacer {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Menu Navigation (Dropdown) */
.nav-menu {
  display: none;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.nav-menu.active {
  display: block;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  margin: 10px 0;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.nav-menu a.active {
  color: #e74c3c;
}

#hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 50px;
  transition: background-image 1s ease-in-out;
}

#hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); /* semi-transparan biar teks tetap kelihatan */
  z-index: 1;
}

#hero .container {
  position: relative;
  z-index: 2;
}

.nav-menu ul li a {
  text-decoration: none;
  font-weight: 600; /* Lebih tebal dari normal */
  color: #222; /* Warna teks lebih tajam */
  font-size: 1.1em; /* Sedikit dibesarkan */
  transition: color 0.3s ease;
  display: block;
  padding: 8px 0;
}

.nav-menu ul li a:hover {
  color: #e74c3c; /* Warna merah saat hover */
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-weight: 600; /* lebih tebal */
  font-size: 1.05rem;
  color: #333 !important; /* pastikan warnanya konsisten */
  transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
  color: #e74c3c !important;
  text-decoration: underline;
}

.navbar-nav .nav-link.active {
  color: #e74c3c !important;
  font-weight: 700;
  border-bottom: 2px solid #e74c3c;
}

.hero-tentang {
  background-image: url('../img/background/bg.png'); /* Ganti sesuai lokasi gambarmu */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  position: relative;
}

.hero-tentang::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Gelap transparan biar teks tetap kebaca */
  z-index: 1;
}

.hero-tentang .container {
  position: relative;
  z-index: 2;
}
