* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #fff;
}

/* ===== NAVBAR (MENU UTAMA) ===== */
.navbar,
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #690108;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* ===== HEADER INNER ===== */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  font-weight: 600;
  font-size: 18px;
  color: #5a0c0c;
  text-decoration: none;
}

/* ===== NAVIGATION LINKS ===== */
.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  padding-bottom: 4px;
}

/* Hover Effect */
.nav-links a:hover {
  color: #ffffff;
}

/* Garis bawah efek hover */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== HALAMAN AKTIF ===== */
.nav-links a.active {
  font-weight: 700;
  color: #ffffff;
}

/* Garis bawah untuk link aktif (lebih kuat dari hover) */
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff; /* Warna putih */
}
.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto; /* ⬅️ dorong menu ke kanan */
  gap: 20px;
}
/* ===== HAMBURGER MENU (MOBILE) ===== */
.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}
.menu-icon {
  display: none;       /* hamburger hilang di desktop */
  cursor: pointer;
  font-size: 28px;
  user-select: none;

}
.desktop-only {
  display: block;
}

/* Mobile Only */
.logout-mobile {
  display: none;
}


/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* 🔹 gambar penuh 1 layar */
  background: url("../image_costumer/bghero.png") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 🔹 lapisan gelap/transparan agar teks mudah dibaca */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* bisa ubah transparansi */
  z-index: 1;
}

/* 🔹 teks di atas gambar */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;

  /* biar teks tetap di tengah */
  margin: 0 auto;
  animation: fadeUp 1.2s ease forwards;
}

.hero-content h1 {
  font-family: "Dancing Script", cursive;
  font-size: 64px;
  line-height: 1;
  margin-bottom: 16px;
}

.hero-content p {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  line-height: 1.8;
}

/* SLIDER TEKS - FIX */
.hero-slider {
  list-style: none;
  padding: 0;
  margin: 0;

  /* hilangkan posisi absolute */
  position: relative;

  /* tinggi mengikuti konten secara normal */
  min-height: auto;
}

/* tiap slide ditumpuk normal, tapi hanya 1 yang tampil */
.hero-slider .slide {
  display: none;         /* sembunyikan default */
  opacity: 0;
  transition: opacity .4s ease;
}

/* slide aktif tampil normal dan horizontal */
.hero-slider .li-active {
  display: block;
  opacity: 1;
}

/* Indikator */
.hero-indicator {
  margin-top: 20px;
  text-align: center;
}

.hero-indicator span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #fff6;
  margin: 0 5px;
  border-radius: 50%;
  transition: 0.3s;
}

.hero-indicator .li-active {
  background: #fff;
}

.hero-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #6D2835, #8B0000);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    background: linear-gradient(135deg, #8B0000, #6D2835);
}
@media (max-width: 768px) {
    .hero-btn {
        padding: 12px 26px;
        font-size: 0.95rem;
    }
}



/* MENU SECTION */
.menu {
  text-align: center;
  background: linear-gradient(#690108, #FCF1DB);
  color: #FCF1DB;
  padding: 50px 20px;
   animation: fadeIn 1s ease;
}

.menu h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 40px;
  color: #FCF1DB;
}

.menu-categories {
  margin: 20px 0;
   animation: fadeIn 1s ease;
}

.menu-categories button {
  background: #690108;
  color: #FCF1DB;
  border: none;
  margin: 5px;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
}

.menu-categories button.active {
  background: #FCF1DB;
  color: #690108;
}

/* DESKRIPSI DINAMIS */
.menu-description {
  background: #FCF1DB;
  color: #690108;
  display: inline-block;     /* tetap mengikuti panjang teks */
  padding: 10px 20px;
  border-radius: 25px;
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  max-width: 700px;          /* batasi lebar agar tidak terlalu panjang */
  line-height: 1.5;
  word-wrap: break-word;     /* teks panjang tetap turun */
}

/* ANIMASI */
.fade {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fade.show {
  opacity: 1;
}

/* PRODUCT GRID */
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 25px;
margin-top: 30px;
padding: 10px;

/* Tambahan penting */
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}

.product-card {
background: #FCF1DB;
padding: 20px;
border-radius: 15px;
box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
text-align: center;
width: 100%;
box-sizing: border-box;
animation: zoomIn 0.6s ease;
.product-card:nth-child(1) { animation-delay: .1s; }
.product-card:nth-child(2) { animation-delay: .2s; }
.product-card:nth-child(3) { animation-delay: .3s; }
.product-card:nth-child(4) { animation-delay: .4s; }
}

.product-card img {
width: 100%;
height: 220px;
object-fit: cover;
border-radius: 10px;
}

/* ========== PRODUCT INFO ========== */

.product-info {
  margin-top: 15px;
  font-size: 15px;
  font-weight: bold;
  color: #000;
}

/* Nama produk */
.product-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

/* Harga */
.product-info p {
  font-size: 15px;
  color: #5b4732;
}

/* ========== CATEGORY BUTTONS ========== */
.menu-categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.menu-categories button {
  padding: 8px 18px;
  border-radius: 18px;
  border: none;
  background: #b4161b;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.menu-categories button:hover {
  background: #8f0f15;
}

.menu-categories .active {
  background: #f3d7c0;
  color: #000;
}

/* ========== MENU DESCRIPTION ========== */
.menu-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 12px 20px;
  background: #fdf2e1;
  border-radius: 15px;
  font-size: 15px;
  color: #333;
  opacity: 0;
  transition: opacity .3s ease;
}

.menu-description.show {
  opacity: 1;
}  



.view-more {
  background: #690108;
  color: #FCF1DB;
  border: none;
  margin-top: 20px;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
}
/* POPUP OVERLAY */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* POPUP BOX */
.popup-box {
    width: 450px;
    background: #690108;
    padding: 30px;
    border-radius: 18px;
    position: relative;
    color: white;
    transition: 0.3s ease;
}

/* CLOSE BUTTON */
.close-btn {
    position: absolute;
    right: 18px;
    top: 18px;
    font-size: 24px;
    cursor: pointer;
}

/* TITLE */
.popup-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    font-family: 'Dancing Script', cursive;
}

/* INPUT */
input[type="text"],
input[type="date"],
input[type="time"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: #f2f2f2;
    border: none;
    border-radius: 12px;
    font-size: 15px;
}

/* BUTTON */
.btn-primary {
    width: 100%;
    background: #FCF1DB;
    color: #690108;
    border: none;
    padding: 12px 0;
    font-size: 18px;
    border-radius: 15px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}

/* STEP TRANSITION */
#stepPayment {
    display: none;
}

/* TITLE LABEL */
.label-title {
    color: #fff;
    margin: 10px 0 5px;
    display: block;
    font-size: 16px;
}

/* RADIO SELECT BOX */
.select-box {
    background: #f2f2f2;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: black;
}

/* INPUT BOX */
.input-box input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #f2f2f2;
}

/* UPLOAD AREA */
.upload-area {
    width: 120px;
    height: 120px;
    background: #d9d9d9;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-area img {
    width: 55px;
    opacity: 0.5;
}
/* ABOUT */
.about {
  background: linear-gradient( #FCF1DB, #690108);
  display: flex;
  flex-wrap: wrap;
  padding: 50px;
  align-items: center;
  gap: 20px;
}

/* TEKS */
.about-text {
  flex: 1;
  min-width: 300px;
  animation: slideLeft 1s ease forwards;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #2b2b2b;
  font-family: "Poppins", sans-serif;
  line-height: 1.8;
}

.about-text h2 {
  font-family: "Dancing Script", cursive;
  font-size: 46px;
  font-weight: 700;
  color: #690108;
  margin-bottom: 15px;
}

.about-text p {
  font-size: 18px;
  color: #ffffff;
  text-align: justify;
  margin-bottom: 12px;
  max-width: 600px;
  z-index: 1;
}

/* MAP */
.book-map {
  flex: 1;
  min-width: 300px;
  text-align: center;
  animation: slideRight 1s ease forwards;
}

.book-map h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 28px;
  margin-bottom: 15px;
  color: #690108;
}

.book-map iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 10px;
  margin-bottom: 10px;
}

.book-map .address {
  font-family: 'Dancing Script', cursive;
  font-size: 20px;
  color: #FCF1DB;
}


/* ===== GALERI ===== */
.galeri {
  background: linear-gradient(#690108, #FCF1DB);
  color: #fff;
  font-family: "Dancing Script", cursive;
  text-align: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

/* ===== JUDUL GALERI ===== */
.galeri h2 {
  color: #FCF1DB;
  padding: 60px 0 40px;
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* GRID */
.galeri-grid {
display: flex;
flex-direction: column; /* Pertahankan ini untuk tampilan mobile/defa ult */
width: 90%;
margin: auto;
gap: 45px;
align-items: center;
}

/* ===== CARD KEGIATAN (MAGIC FIX) ===== */
.galeri-card {
  position: relative;
  width: 100%;
  height: 450px;        /* FIX: dari 1500px → proporsional */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #000;
}

.galeri-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

/* ===== GAMBAR ===== */
.galeri-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.75);
  transition: filter 0.3s ease, transform 0.5s ease;
}

.galeri-card:hover .galeri-image {
  filter: brightness(0.9);
  transform: scale(1.05);
}

/* ===== TEKS INFO ===== */
.galeri-info {
  position: relative;
  width: 100%;
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.45);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 2;
}

.galeri-info h3 {
  font-family: "Poppins", sans-serif;
  font-size: 22px;     /* lebih pas */
  font-weight: 600;
  margin: 0;
  color: #fff;
}
.galeri-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  margin-top: -20px;
  margin-bottom: 40px;
  color: #FCF1DB;
  opacity: 0.9;
}
/* Fade-in effect */
.fade-card {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.7s ease;
}

.fade-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

/* FOOTER */
 footer {
  background: linear-gradient(to bottom, #6d1a1d, #4d2226);
  color: #fff;
  padding: 60px 10%;
  font-family: "Poppins", sans-serif;
  text-align: center;
    animation: fadeIn 1.5s ease;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-content div {
  flex: 1;
  min-width: 250px;
}

.footer-content h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #ffdada;
}

.footer-content p {
  font-size: 15px;
  line-height: 1.6;
  margin: 5px 0;
}

/* ===== Ikon Sosial Media ===== */
.social-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  color: #6d1a1d;
  font-size: 22px;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Hover efek */
.social-icons a:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}

/* Warna khusus masing-masing ikon */
.social-icons .whatsapp:hover {
  background: #25d366;
  color: #fff;
}

.social-icons .instagram:hover {
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  color: #fff;
}

.footer-bottom {
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  color: #f5f5f5;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 4px 6px 0px #4d2226;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* ===== Responsive: Tablet (≤1024px) ===== */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 40px;
    gap: 10px;
  }
}

/* ===== Responsive: Mobile (≤768px) ===== */
@media (max-width: 768px) {
  .hero {
    padding: 40px 20px;
    gap: 10px;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .hero-text p {
    font-size: 15px;
    text-align: justify;
  }

   .menu-categories {
    gap: 12px;            
    flex-wrap: wrap;        
    padding: 0 10px;
  }

  .menu-categories button {
    padding: 10px 20px;    
    font-size: 14px;        
    border-radius: 20px;    
  }

   footer {
    padding: 50px 5%;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .social-icons {
    margin-top: 15px;
  }
  .galeri-card {
    width: 95%; /* 🔹 jarak lebih kecil di layar HP */
    height: 90vh; /* 🔹 biar nggak terlalu tinggi di HP */
  }

  .galeri-info h3 {
    font-size: 20px;
  }

  .galeri h2 {
    font-size: 30px;
  }
  
   .menu-icon {
    display: block;
    font-size: 32px;
    cursor: pointer;
    z-index: 2000;
    display: block;
  }

  /* Sembunyikan menu awalnya */
  .nav-links {
    position: absolute;
    top: 80px;
    right: 20px;
    background: #5a0c0c;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    border-radius: 12px;
    display: none;  /* hidden default */
  }

  .nav-links a {
    padding: 10px 0;
    color: #fff;
    text-align: right;
  }

  /* Saat menu buka */
  .nav-links.active {
    display: flex;
  }
   .desktop-only {
    display: none;
  }

  /* logout mobile muncul */
  .logout-mobile {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #ffdede !important;
    font-weight: bold;
  }

  .logout-mobile svg {
    width: 20px;
    height: 20px;
  }
}

/* =====================================
   ANIMASI GLOBAL
===================================== */

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(25px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  0% { opacity: 0; transform: translateY(-25px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}


@keyframes slideLeft {
  0% { opacity: 0; transform: translateX(-40px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
