* {
  --primary-color: #2d6a4f;
  --secondary-color: #40916c;
  --accent-color: #d8f3dc;
  --dark-color: #1b4332;
  --light-color: #f8f9fa;
  --text-color: #333333;
  --border-radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background-image: url(image/saloka3.jpg);
  background-size: 1500px;
  background-position: center;
  line-height: 1.6;
}

/* --- Header & Navigasi --- */
header {
  background-color: #1b4332;
  background-size: 1500px;
  background-position: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: yellowgreen;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: yellowgreen;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
  background:
    linear-gradient(rgba(27, 67, 50, 0.7), rgba(27, 67, 50, 0.7)),
    url(image/nebula.jpg);
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 10rem 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

/* --- Container Umum --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: #666;
}

/* --- Katalog Grid --- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.item-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s;
  border: 1px solid #eee;
}

.item-card:hover {
  transform: translateY(-5px);
}

.item-image {
  height: 300px;
  width: 100%;
  background-color: #f0f0f0; /* Warna background jika gambar loading */
  overflow: hidden; /* Mencegah gambar keluar dari kotak */
  border-radius: 12px 12px 0 0; /* Opsional: melengkungkan sudut atas */
}

.item-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* KUNCI UTAMA: Agar tidak gepeng & memenuhi area */
  object-position: center; /* Memusatkan fokus gambar */
  display: block;
  transition: transform 0.3s ease;
}

/* Efek zoom halus saat kursor diarahkan ke kartu */
.item-card:hover .item-img {
  transform: scale(1.05);
}

.item-card:hover .item-img {
  transform: scale(1.05); /* Efek zoom saat hover */
}

.item-details {
  padding: 1.5rem;
}

.item-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.item-price {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.item-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: #666;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-control input {
  width: 60px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
  font-family: inherit;
}

/* --- Form Pemesanan & Kalkulasi --- */
.booking-section {
  background-color: rgb(4, 161, 167);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-note {
  font-size: 0.85rem;
  color: #e63946;
  margin-top: 0.3rem;
}

.summary-box {
  background-color: var(--accent-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.summary-box h3 {
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-color);
  border-top: 2px dashed var(--secondary-color);
  padding-top: 1rem;
  margin-top: 1rem;
}

.btn-submit {
  width: 100%;
  background-color: #25d366; /* Warna WhatsApp */
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background-color: #128c7e;
}

/* --- Footer & Kontak --- */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.footer-section p,
.footer-section a {
  color: #ccc;
  text-decoration: none;
  line-height: 2;
  display: block;
}

.footer-section a:hover {
  color: white;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fffefe;
  font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .booking-section {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  } /* Sederhana untuk mobile, bisa ditambah hamburger menu */
  .summary-box {
    position: static;
  }
}
