/* === TITIK KUMPUL CSS === */

/* --- Variabel & Reset --- */
:root {
  --font-heading: "Playfair Display", serif;
  --font-body: "Lato", sans-serif;
  --color-bg: #faf9f6;
  --color-text: #4a2c2a;
  --color-primary: #c4a484;
  --color-white: #ffffff;
  --color-border: #e0dcd1;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
section {
  padding: 6rem 0;
  scroll-margin-top: 100px;
}

/* --- Header --- */
#header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem 0;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
#header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1001; /* lebih tinggi dari nav/hamburger */
}
.logo-icon {
  width: 60px;
  height: auto;
  transition: transform 0.3s ease;
}
.logo-text {
  font-family: "Dancing Script", cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  transition: font-size 0.3s ease, color 0.3s ease;
}
#header.scrolled .logo-text {
  color: var(--color-text);
  font-size: 1.4rem;
}
#header.scrolled .logo-icon {
  transform: scale(0.9);
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links {
  background-color: rgba(0, 0, 0, 0.4) !important; /* transparan hitam lembut */
  backdrop-filter: blur(10px); /* efek blur transparan */
  box-shadow: none !important;
  border: none;
}

.nav-links a {
  color: white !important;
}

#header.scrolled .nav-links {
  background-color: rgba(
    255,
    255,
    255,
    0.55
  ) !important; /* saat scroll jadi putih */
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

#header.scrolled .nav-links a {
  color: var(--color-text) !important;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-text);
  transition: width 0.4s ease;
}
.nav-links a:hover::after {
  width: 100%;
}

/* --- Hero --- */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
}
.hero-content {
  max-width: 700px;
}
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.7rem;
  line-height: 1.1;
}
.hero-content p {
  margin-top: 0.2rem;
  font-size: 0.9rem; /* Ukuran lebih kecil */
  line-height: 1.5; /* Jarak antar baris lebih rapat */
  margin-bottom: 2.5rem; /* Jarak bawah lebih pendek */
}
.cta-button {
  padding: 12px 30px;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  transition: all 0.4s ease;
}
.cta-button:hover {
  background-color: #a88a6d;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(196, 164, 132, 0.4);
}

/* --- Section Umum --- */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.divider {
  width: 80px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 0 auto;
}

/* --- Tentang --- */
.tentang-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.tentang-teks h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.tentang-gambar img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- Menu --- */
#menu {
  background-color: var(--color-white);
}
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.tab-button {
  padding: 10px 20px;
  border-radius: 50px;
  background-color: var(--color-border);
  color: var(--color-text);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}
.tab-button:hover,
.tab-button.active {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: grid;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.menu-item {
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s ease;
}
.menu-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}
.menu-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.menu-item h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.5rem 0;
}
.menu-item p {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

/* --- Event --- */
#event {
  background-color: var(--color-bg);
}
#event .menu-item h3 {
  font-size: 1.4rem;
}
#event .menu-item p {
  font-size: 0.95rem;
  padding: 0 1rem 1.5rem;
}

/* --- Kontak --- */
.kontak-info {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}
.kontak-info p {
  margin-bottom: 1rem;
}
.sub-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-text);
  margin: 2rem 0 1rem;
  text-align: center;
}
.kontak-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.kontak-social a {
  color: var(--color-text);
  font-size: 1.8rem;
  transition: 0.3s ease;
}
.kontak-social a:hover {
  color: var(--color-primary);
  transform: scale(1.2);
}

/* --- Footer --- */
footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 2rem 0;
  text-align: center;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  color: var(--color-white);
  font-size: 1.2rem;
  transition: 0.3s ease;
}
.footer-social a:hover {
  color: var(--color-primary);
  transform: translateY(-3px);
}
footer p {
  opacity: 0.8;
}

/* --- WhatsApp Button --- */
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
  padding: 10px 20px;
  border-radius: 50px;
  background-color: #25d366;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s ease;
}
.whatsapp-link:hover {
  background-color: #1da851;
  transform: translateY(-3px);
}

/* --- Peta --- */
.map-container {
  margin-top: 4rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* --- Tombol Scroll to Top --- */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 999;
  transition: background-color 0.3s ease;
}
#scrollTopBtn:hover {
  background-color: #a88a6d;
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-white);
  transition: 0.4s ease;
  border-radius: 2px;
}
#header.scrolled .hamburger span {
  background-color: var(--color-text);
}
.hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .tentang-layout {
    grid-template-columns: 1fr;
  }
  .tentang-gambar {
    margin-top: 2rem;
  }
  .section-title h2 {
    font-size: 2.2rem;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--color-text);
    padding: 1rem 2rem;
    display: none;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: 0.4s ease;
  }
  .nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    color: var(--color-white);
    text-align: center;
    font-weight: 700;
    padding: 1rem 0;
  }
  .hamburger {
    display: flex;
  }
}
/* --- Fix Warna Logo dan Hamburger Saat Scroll di Mobile --- */

#header.scrolled .logo-text {
  color: var(--color-text) !important;
}

#header.scrolled .logo-icon {
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

/* Ganti warna garis hamburger saat scroll */
#header.scrolled .hamburger span {
  background-color: var(--color-text);
}

@media (max-width: 768px) {
  /* Warna nav menu saat aktif (dropdown) */
  .nav-links {
    background-color: var(--color-text);
  }

  .nav-links a {
    color: var(--color-white); /* supaya teks terlihat di latar gelap */
  }

  #header.scrolled .nav-links a {
    color: var(--color-white); /* tetap putih walau scroll */
  }

  /* Hamburger default (di atas hero) tetap putih */
  .hamburger span {
    background-color: var(--color-white);
  }

  /* Hamburger saat scroll jadi gelap */
  #header.scrolled .hamburger span {
    background-color: var(--color-text);
  }
}
/* Perbaiki nav desktop agar kembali horizontal */
@media (min-width: 769px) {
  .nav-links {
    position: static;
    display: flex !important;
    flex-direction: row;
    background-color: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    gap: 2rem;
    list-style: none;
  }

  .nav-links a {
    color: var(--color-white);
    font-weight: 600;
    text-decoration: none;
    position: relative;
  }

  #header.scrolled .nav-links a {
    color: var(--color-text);
  }
}
/* Reset navigasi versi desktop */
@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background-color: transparent;
    box-shadow: none;
    gap: 2rem;
    list-style: none;
    padding: 0;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    position: relative;
  }

  #header.scrolled .nav-links a {
    color: var(--color-text);
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.4s ease;
  }

  .nav-links a:hover::after {
    width: 100%;
  }
}
@media (min-width: 769px) {
  nav {
    background-color: transparent !important;
    box-shadow: none !important;
  }

  .nav-links {
    background-color: transparent !important;
  }
}
.hamburger span {
  transition: all 0.3s ease;
}
/* Perubahan untuk Navigasi Desktop Saat Scroll */
@media (min-width: 769px) {
  #header.scrolled .nav-links {
    background-color: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* Biarkan Tampilan Mobile Tetap Normal */
@media (max-width: 768px) {
  #header.scrolled .nav-links {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(7px);
    box-shadow: none;
    border-radius: 0; /* Ubah dari 'none' ke '0' */
    padding: 0.1rem 2rem;
  }
}
.event-content {
  text-align: center; /* Properti ini membuat semua teks di dalamnya menjadi rata tengah */
  font-size: 1.2rem; /* Opsional: Membuat tulisan sedikit lebih besar agar lebih terlihat */
  opacity: 0.8; /* Opsional: Membuat tulisan tampak sedikit pudar */
}
@media (max-width: 400px) {
  .logo-text {
    font-size: 1.2rem;
  }

  .cta-button {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tab-content.active {
  display: grid; /* Ini sudah benar */
  opacity: 1;
}

.menu-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
#menu .menu-content {
  margin-top: 2rem;
}

.menu-tabs {
  margin-bottom: 1.5rem; /* rapatkan tombol dengan konten */
}

.menu-item {
  display: flex;
  flex-direction: column;
}

.menu-item img {
  height: 200px; /* kurangi tinggi gambar supaya lebih rapat dan proporsional */
}

.menu-item h3 {
  margin: 1rem 0 0.3rem 0; /* kurangi jarak antar judul dan deskripsi */
}
/* Animasi fade untuk konten tab */
.tab-content {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content.active {
  opacity: 1;
  transform: translateY(0);
}
/* Reset awal tab-content */
.tab-content {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none; /* cegah klik konten yg tersembunyi */
}

/* Animasi aktif */
.tab-content.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.tab-button {
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.tab-button.active {
  transform: scale(1.05);
}
.logo-icon {
  width: 50px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo-icon {
    width: 40px;
  }

  .logo-text {
    font-size: 1.2rem;
    color: var(--color-white); /* Pastikan tidak jadi biru */
  }
}
