/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f7f4;
  color: #333;
  line-height: 1.6;
}

/* Header & Navigasi */
header {
  background-color: #5d4037;
  color: white;
  padding: 1.5em 0;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2em;
  margin-top: 1em;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0,9em;
}

nav a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  background-color: #d7ccc8;
  padding: 3em 1em;
  text-align: center;
}

.hero h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 1.1em;
  color: #dad4d2;
}

/* Tentang Kami Singkat */
.tentang-singkat {
  background-color: #efebe9;
  padding: 2.5em 1em;
  text-align: center;
}

.tentang-singkat .konten {
  max-width: 800px;
  margin: auto;
}

.tentang-singkat p {
  margin-bottom: 1em;
  font-size: 1.05em;
}

/* Produk Unggulan */
.produk-unggulan {
  padding: 3em 1em;
  background-color: #fff3e0;
  text-align: center;
}

.produk-unggulan h3 {
  font-size: 1.8em;
  margin-bottom: 1em;
}

.produk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5em;
  max-width: 1100px;
  margin: auto;
}

.produk-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.produk-item img {
  width: 80%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75em;
}

.produk-item h4 {
  margin: 0.5em 0;
  font-size: 1.1em;
}

.produk-item p {
  font-size: 0.95em;
  color: #5d4037;
}

/* Tambahan agar bisa geser di mobile */
@media (max-width: 768px) {
  .produk-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1em;
    padding: 1em 0;
  }

  .produk-grid::-webkit-scrollbar {
    display: none; /* sembunyikan scrollbar */
  }

  .produk-item {
    flex: 0 0 220px; /* lebar minimum tiap kartu produk */
  }
}

/* Tombol panah */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2em;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.2em 0.5em;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  user-select: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.scroll-arrow.left { left: 15px; }
.scroll-arrow.right { right: 15px; }

@media (max-width: 768px) {
  .scroll-arrow {
    display: block;
  }
}

/* Kenapa Kami */
.kenapa-kami {
  background-color: #fbe9e7;
  padding: 3em 1em;
  text-align: center;
}

.kenapa-kami h3 {
  font-size: 1.8em;
  margin-bottom: 1em;
}

.kenapa-kami ul {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: auto;
  text-align: left;
}

.kenapa-kami li {
  margin-bottom: 0.75em;
  font-size: 1em;
  padding-left: 1.2em;
  position: relative;
}

.kenapa-kami li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #d84315;
}

/* Footer */
footer {
  background-color: #3e2723;
  color: white;
  padding: 3em 1em 2em;
}

.footer-container {
  max-width: 900px;
  margin: auto;
}

.footer-kontak h4 {
  font-size: 1.3em;
  color: #ffcc80;
  margin-bottom: 1em;
}

.footer-kontak p {
  margin-bottom: 0.75em;
  font-size: 0.95em;
}

.footer-kontak a {
  color: #ffcc80;
  text-decoration: none;
}

.footer-kontak a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2em;
  text-align: center;
  padding-top: 1em;
  font-size: 0.9em;
  color: #ccc;
}

/* Responsif Mobile */
@media screen and (max-width: 768px) {
  .hero h2 {
    font-size: 1.5em;
  }

  .produk-item img {
    height: 150px;
  }

  .produk-unggulan h3,
  .kenapa-kami h3 {
    font-size: 1.5em;
  }
}

/* Animasi fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Highlight menu aktif */
nav a.active {
  border-bottom: 3px solid #ffcc80;
  padding-bottom: 3px;
  color: #ffcc80;
}
/* Navigasi agar responsif */
nav ul {
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
}

@media screen and (max-width: 600px) {
  nav ul {
    flex-direction: row;
    gap: 0.5em;
  }

  .produk-grid {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 1.4em;
  }
}

.btn-cta {
  display: inline-block;
  background-color: #ffcc80;
  color: #4e342e;
  padding: 0.75em 1.5em;
  margin-top: 1em;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-cta:hover {
  background-color: #ffb74d;
}

.cta {
  background-color: #efebe9;
  padding: 2.5em 1em;
  text-align: center;
}
.cta h3 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

.testimoni {
  background-color: #fbe9e7;
  padding: 3em 1em;
  text-align: center;
}

.testimoni h3 {
  font-size: 1.8em;
  margin-bottom: 1.5em;
}

.testimoni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
  max-width: 1000px;
  margin: auto;
}

.testimoni-item {
  background-color: white;
  padding: 1.5em;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.testimoni-item .quote {
  font-style: italic;
  font-size: 1.05em;
  margin-bottom: 1em;
  color: #5d4037;
}

.testimoni-item .nama {
  font-weight: bold;
  color: #3e2723;
}

.hero {
  position: relative;
  background-image: url('Image/BG.jpg'); /* Ganti sesuai lokasi gambar kamu */
  background-size: cover;
  background-position: center;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4); /* Transparansi hitam */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 1.5em 2em;
}

.galeri-scroll-wrapper {
  overflow: hidden;
  position: relative;
  padding: 1em 0;
}

.galeri-scroll {
  display: flex;
  gap: 2em;
  width: max-content;
  animation: scrollLoop 40s linear infinite;
}

.galeri-item {
  flex: 0 0 auto;
  text-align: center;
}

.galeri-item img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.galeri-item p {
  margin-top: 0.5em;
  font-weight: 600;
  color: #5d4037;
}

@keyframes scrollLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.galeri-scroll-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  padding: 1em 0;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.galeri-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.galeri h2 {
  text-align: center;
}

.tentang-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2em;
  max-width: 900px;
  margin: auto;
  padding: 2em 1em;
}
.tentang-grid.reverse {
  flex-direction: row-reverse;
}
.tentang-grid .konten {
  flex: 1 1 45%;
}
.tentang-grid .gambar {
  flex: 1 1 40%;
}
.tentang-grid .gambar img {
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 🌟 MEDIA QUERY untuk mobile */
@media (max-width: 768px) {
  .tentang-grid {
    flex-direction: column; /* Biar stack ke bawah pas mobile */
    text-align: center; /* opsional, biar lebih simetris */
  }

  .tentang-grid .konten,
  .tentang-grid .gambar {
    flex: 1 1 100%;
  }

  .tentang-grid .gambar img {
    width: 70%; /* Gambar lebih kecil di mobile */
    margin: 0 auto; /* Biar tetap di tengah */
  }
}

.fitur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2em;
  max-width: 1000px;
  margin: 2em auto;
  padding: 0 1em;
}
.fitur-box {
  background: white;
  padding: 1.5em;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.fitur-box i {
  font-size: 2em;
  color: #795548;
  margin-bottom: 0.5em;
}
.fitur-box h4 {
  margin: 0.5em 0;
  color: #4e342e;
}

.fitur h3 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 1em;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 1.5em;
}

form label {
  text-align: left;
  font-weight: bold;
  color: #4e342e;
  margin-bottom: 0.3em;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 0.75em;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
  background-color: #fff;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
  border-color: #ffcc80;
  outline: none;
}

form button[type="submit"] {
  background-color: #ffcc80;
  color: #4e342e;
  padding: 0.75em 1.5em;
  font-size: 1em;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
  background-color: #ffb74d;
}

/* Sticky Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: #5d4037;
  color: white;
  padding: 0.6em 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body {
  padding-top: 80px;
}

/* === NAVBAR === */
.navbar {
  background-color: #5d4037;
  color: white;
  padding: 0.5em 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.logo {
  height: 40px;
}

.brand {
  font-weight: 700;
  font-size: 1.5em;
  color: #ffffff;
}

/* Menu utama (desktop) */
.nav-links ul {
  list-style: none;
  margin-top: 1em;
  display: flex;
  justify-content: center;
  gap: 2em;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.nav-links a.active,
.nav-links a:hover {
  color: #ffcc80;
  border-bottom: 2px solid #ffcc80;
  padding-bottom: 3px;
}

/* === Tombol Garis 3 === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  position: absolute;
  top: 1.5em;
  right: 1.5em;
}

.menu-toggle span {
  background-color: white;
  height: 3px;
  border-radius: 2px;
  transition: all 0.3s ease; /* 🟢 TAMBAH BARU: untuk animasi X */
}

/* 🔧 UBAH DI SINI — efek jadi X saat toggle aktif */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === MOBILE MENU === */
.mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.98); /* 🔧 UBAH: sedikit transparan */
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;

  /* 🟢 TAMBAH BARU: animasi fade-in */
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  pointer-events: none;
}

/* 🟢 TAMBAH BARU: saat aktif (muncul) */
.mobile-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  animation: fadeSlide 0.4s ease; /* 🟢 TAMBAH BARU */
}

.mobile-menu li {
  border-bottom: 1px solid #ddd;
}

.mobile-menu a {
  display: block;
  padding: 1em;
  color: #5d4037;
  text-decoration: none;
  font-weight: 600;
}

.mobile-menu a:hover {
  background: #ffcc80;
  color: #3e2723;
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8em 1.2em;
    text-align: left; /* 🔧 UBAH: agar logo kiri, toggle kanan */
  }

  .logo-container {
    display: flex;
    align-items: center;
  }

  .brand {
    font-size: 1.3em;
  }

  .nav-links {
    display: none; /* 🔧 UBAH: sembunyikan nav saat mobile */
  }

  .menu-toggle {
    display: flex;
  }
}

/* 🟢 TAMBAH BARU: animasi fadeSlide */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
