/* Import Google Fonts */
/*
 * Icons used in this project are primarily sourced from Feather Icons (https://feathericons.com/)
 * and Lucide Icons (https://lucide.dev/), both released under the MIT License.
 * 
 * All SVG icons are used under their respective open-source licenses (MIT).
 * Please ensure all third-party assets comply with their respective licenses.
 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@300;400;600;800&display=swap');

/* Variabel Desain */
:root {
  --gold-elegant: #D4AF37;
  --slate-900: #0f172a;
  --slate-500: #64748b;
  --slate-400: #fefefe;
  --font-playfair: 'Playfair Display', serif;
  --font-inter: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-inter);
  color: var(--slate-900);
  line-height: 1.5;
}

body.page-loaded {
  opacity: 1;
}

h1, h2, h3 {
  font-family: var(--font-playfair);
}

html {
  scroll-behavior: smooth;
}

/* Brand Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-brand-text-container {
  display: flex;
  flex-direction: column;
}

.navbar-brand-title {
  font-family: var(--font-playfair);
  font-weight: 900;
  color: var(--gold-elegant);
  font-size: 1.2rem;
}

.navbar-logo {
  height: 60px; /* Ukuran besar untuk layar desktop */
  width: auto;
  object-fit: contain;
}

.brand-subtitle {
  font-size: 0.55rem;
  color: var(--slate-500);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: -4px;
  font-weight: 500;
}

/* Layout Kustom */
.navbar {
  position: fixed;
  width: 100%;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links a:hover:not(.btn-gold):not(.btn-outline-gold) {
  color: var(--gold-elegant);
}

/* Hamburger Menu Hack (Tanpa JavaScript) */
.menu-toggle {
  display: none; /* Sembunyikan checkbox asli */
}

.hamburger {
  display: none; /* Sembunyikan di desktop */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 100;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--slate-900);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex; /* Tampilkan di HP */
  }

  .navbar-logo {
    height: 40px; /* Ukuran mengecil khusus untuk layar HP */
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    display: none; /* Sembunyikan menu secara default di HP */
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }

  .nav-links a {
    margin-right: 0 !important;
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
  }

  /* Tampilkan menu saat checkbox dicentang */
  .menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  /* Animasi Hamburger ke X */
  .menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Perbaikan area Sejak 1998 di Mobile */
  .since-container {
    gap: 8px;
    width: 100%;
    justify-content: center;
  }
  .since-container::before,
  .since-container::after {
    width: 25px !important;
  }
  .since-text {
    font-size: 0.7rem; /* Diperkecil agar muat di satu baris */
    letter-spacing: 1.5px;
    flex-shrink: 0;
  }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: white;
  background: #000;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.category-title {
  font-size: 2.5rem; /* Diperkecil dari 3rem agar lebih manis */
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--slate-400);
}

.highlight-gold {
  color: var(--gold-elegant);
  font-weight: 800;
  letter-spacing: 1px;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(212, 175, 55, 0.1); /* Emas sangat transparan */
  color: var(--gold-elegant);
  border: 1px solid var(--gold-elegant);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 5px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem; /* Ukuran yang lebih proporsional untuk HP */
    padding: 0 1rem;
  }
  .section-title {
    font-size: 1.5rem; /* Judul seksi lebih manis di HP */
  }
  .category-title {
    font-size: 1.8rem; /* Ukuran khusus mobile */
  }
  .hero-subtitle {
    font-size: 1rem; /* Ukuran lebih kecil untuk mobile agar lebih elegan */
    margin-bottom: 2rem;
    padding: 0 1.5rem;
  }
}

.btn-gold {
  background-color: var(--gold-elegant);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: opacity 0.3s;
  font-size: 0.85rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-gold:hover {
  opacity: 0.9;
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--gold-elegant);
  border: 2px solid var(--gold-elegant);
  padding: 0.85rem 2.25rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.btn-outline-gold:hover {
  background-color: var(--gold-elegant);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(212, 175, 55, 0.4);
}

/* Grid System Manual */
.grid {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Typography Utilities */
.text-xl { font-size: 1.25rem; }
.text-4xl { font-size: 2.25rem; }

@media (max-width: 768px) {
  .text-4xl { font-size: 1.75rem; }
}

@media (min-width: 768px) {
  .md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Utility Spacing (Pengganti Tailwind py-20, px-6, dll) */
.section-py { padding-top: 5rem; padding-bottom: 5rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Animation Variants */
.fade-up { transform: translateY(40px); }
.fade-down { transform: translateY(-40px); }
.fade-left { transform: translateX(-40px); }
.fade-right { transform: translateX(40px); }
.zoom-in { transform: scale(0.9); }

/* Staggered Delay Utilities */

.mb-4 { margin-bottom: 1rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mt-24 { margin-top: 6rem; }
.mb-16 { margin-bottom: 4rem; }
.text-slate-500 { color: var(--slate-500); }
.bg-slate-50 { background-color: #f8fafc; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.overflow-hidden { overflow: hidden; }

/* Sejak 1998 Styling */
.since-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 3rem;
}

.since-container::before,
.since-container::after {
  content: "";
  height: 1px;
  width: 60px;
  flex-shrink: 1;
}

.since-container::before {
  background: linear-gradient(to left, var(--gold-elegant), transparent);
}

.since-container::after {
  background: linear-gradient(to right, var(--gold-elegant), transparent);
}

.since-text {
  font-family: var(--font-playfair);
  color: var(--gold-elegant);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0;
  flex-shrink: 0; /* Mencegah teks terhimpit oleh garis samping */
  display: inline-block;
  vertical-align: middle;
  text-align: center;
}


.since-line {
  height: 1px;
  width: 60px;
  background: linear-gradient(
    to var(--direction, right), 
    var(--gold-elegant), 
    transparent
  );
}

/* Product Card Hover Animation */
.product-card {
  background: white;
  border-radius: 8px;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.img-container {
  height: 320px;
  overflow: hidden;
  position: relative;
}

.img-zoom {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Product Overlay Styles */
.product-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7); /* Slate 900 dengan transparansi */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  z-index: 10;
  text-decoration: none;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.overlay-text {
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid white;
  padding: 0.5rem 1.25rem;
}

/* Badge Styles */
.badge-best-seller {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--gold-elegant);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 20;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 10px;
  background: #f8fafc;
  flex-wrap: wrap;
}

.gallery-thumbs img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
}

/* Gaya Teks Galeri yang Lebih Elegan */
.gallery-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.gallery-divider {
  width: 40px;
  height: 1.5px;
  background-color: var(--gold-elegant);
  margin: 0.75rem auto 1rem;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8), 0 0 5px rgba(212, 175, 55, 0.4);
}

.gallery-description {
  font-weight: 300;
  line-height: 1.6;
  font-size: 0.9rem;
}

.gallery-thumbs img:hover, .gallery-thumbs img.active {
  border-color: var(--gold-elegant);
}

/* Testimonial Styles */
.testimonial-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  text-align: center;
  height: 100%;
}

.stars {
  color: var(--gold-elegant);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.quote-text {
  font-style: italic;
  color: var(--slate-500);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.section-testimonials {
  position: relative;
  background-color: #f8fafc; /* Tetap memiliki warna dasar slate-50 */
  overflow: hidden;
}

.section-testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/gorden-1.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.05; /* Sangat transparan (5%) */
  pointer-events: none;
  z-index: 0;
}

.section-testimonials .container {
  position: relative;
  z-index: 1; /* Memastikan konten berada di atas gambar */
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  padding: 0 20px 0 15px;
  height: 60px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  text-decoration: none;
  /* Sembunyikan di awal */
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
}

/* Kelas untuk memunculkan tombol */
.whatsapp-float.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.whatsapp-float:hover {
  background-color: #128c7e;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-text {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Optimasi untuk layar HP kecil */
@media (max-width: 480px) {
  .whatsapp-text {
    display: none;
  }
  .whatsapp-float {
    width: 60px;
    padding: 0;
  }
}

/* Lightbox Zoom Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 5rem;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95); /* Slate 900 sangat gelap */
  backdrop-filter: blur(8px);
  cursor: zoom-out;
  overflow: auto;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border: 4px solid white;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
}

.close-lightbox:hover {
  color: var(--gold-elegant);
}

/* Social Links Styling */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px; /* Jarak antar ikon */
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-icon {
  /* Menghapus margin karena sudah ditangani oleh gap pada .social-links */
  margin: 0;
  color: var(--slate-500); /* Warna dasar abu-abu */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.social-icon:hover {
  color: var(--gold-elegant); /* Berubah menjadi emas saat hover */
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Footer Typography & Symmetry */
.footer-address, .footer-hours {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.7;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.footer-address {
  font-weight: 700;
}

.footer-copyright {
  font-size: 0.8rem;
  margin-top: 2rem;
  opacity: 0.7;
  border-top: 1px solid #f1f5f9;
  padding-top: 2rem;
}

/* Map Container Styling */
.map-container {
  width: 100%;
  max-width: 1000px;
  height: 450px;
  margin: 0 auto 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 4px solid white;
  background: white;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .map-container {
    height: 300px;
  }
}