/* Styling Font & Brand */
.navbar-brand .brand-top {
  font-family: 'Playfair Display', serif; /* Font mewah */
  font-weight: 700;
  letter-spacing: 4px;
  color: #333;
  line-height: 1;
}

.navbar-logo {
  height: 40px; /* Sesuaikan ukuran ini agar pas dengan tinggi navbar Anda */
  width: auto;
  object-fit: contain; /* Memastikan logo tidak gepeng */
}

.navbar-brand .brand-sub {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: #888;
}

/* Nav Links */
.navbar-nav .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #444 !important;
  transition: 0.3s;
}

.navbar-nav .nav-link:hover {
  color: #D4AF37 !important; /* Rose Gold on Hover */
}

/* --- SCROLLING NAVBAR TEXT COLORS --- */

/* 1. Tambahkan transisi agar perubahan warna teks juga sehalus background-nya */
.navbar .nav-link, 
.navbar .brand-top, 
.navbar .brand-sub,
.navbar .navbar-toggler-icon {
  transition: color 0.4s ease, filter 0.4s ease;
}

/* =========================================
   KONDISI 1: SAAT TRANSPARAN (DI ATAS GAMBAR)
   ========================================= */

.navbar-transparent .nav-link,
.navbar-transparent .brand-top,
.navbar-transparent .brand-sub {
  color: #ffffff !important; /* Teks menjadi Putih */
}

/* Efek Hover Teks saat Transparan (Berubah ke Gold) */
.navbar-transparent .nav-link:hover {
  color: #D4AF37 !important; 
}

/* Mengubah warna icon hamburger menu (mobile) menjadi putih */
.navbar-transparent .navbar-toggler-icon {
  filter: invert(1); 
}

/* =========================================
   KONDISI 2: SAAT SOLID (BACKGROUND PUTIH)
   ========================================= */

.navbar .nav-link, 
.navbar .brand-top, 
.navbar .brand-sub,
.navbar .navbar-toggler-icon {
  transition: color 0.4s ease, filter 0.4s ease;
}

/* Efek Hover Teks saat Solid (Berubah ke Gold) */
.navbar-solid .nav-link:hover {
  color: #D4AF37 !important; 
}

/* Mengembalikan warna icon hamburger menu ke gelap */
.navbar-solid .navbar-toggler-icon {
  filter: invert(0);
}

/* --- KONDISI ACTIVE UNTUK NAVBAR --- */

/* Warna menu aktif saat navbar sedang transparan */
.navbar-transparent .nav-link.active {
  color: #D4AF37 !important; /* Warna Emas Joyluck */
}

/* Warna menu aktif saat navbar sudah di-scroll (Solid Putih) */
.navbar-solid .nav-link.active {
  color: #D4AF37 !important; 
  font-weight: 700;
}

.nav-link.active {
  color: #D4AF37 !important; 
  font-weight: 700;
}


/* Button Reservasi (Rose Gold) */
.btn-joyluck {
  background-color: #E7A1B0; /* Rose Gold */
  color: white;
  border-radius: 4px; /* Sedikit rounded namun tetap tegas */
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  border: none;
  transition: all 0.3s ease;
}

.btn-joyluck:hover {
  background-color: #d68fa0; /* Warna rose gold yang sedikit lebih gelap */
  color: white;
  box-shadow: 0 4px 15px rgba(231, 161, 176, 0.4);
}

/* Sticky Shadow Subtility */
.sticky-top.shadow-sm {
  border-bottom: 1px solid #f1f1f1;
}

#main-gallery {
  /* Pastikan galeri menempel tepat di bawah navbar jika navbar sticky. */
  margin-top: 0; 
}

/* Mengatur agar gambar memenuhi wrapper-nya tanpa distorsi */
.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Teori: Memotong gambar agar pas tanpa gepeng */
  object-position: center; /* Memastikan fokus gambar di tengah */
  transition: transform 0.3s ease; /* Sedikit animasi untuk interaksi */
}

/* Sedikit efek hover untuk kesan premium */
.gallery-photo:hover {
  transform: scale(1.02);
}

/* Styling Khusus Wrapper untuk menjaga Aspect Ratio */
.main-image-wrapper {
  overflow: hidden;
  object-fit: cover;
  height: 100%; /* Agar tinggi mengikuti grid baris */
}

.side-image-wrapper {
  overflow: hidden;
  flex-basis: 0; /* Memberi ruang flex yang adil */
}

/* Background Custom (Cream Lembut) */
.bg-light-cream {
  background-color: #FAF9F6; /* Warna Off-White yang hangat */
}

/* Typography Customization */
.headline-joyluck {
  font-family: 'Playfair Display', serif;
  font-weight: 700px;
  color: #333;
  letter-spacing: -1px;
}

.description-joyluck {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 400;
}

/* --- MENU CAROUSEL STYLES --- */

/* Pengaturan Gambar Carousel */
.carousel-img-wrapper {
  height: 50vh; /* Ketinggian gambar (bisa disesuaikan, misalnya 60vh untuk lebih tinggi) */
  width: 100%;
  overflow: hidden;
}

.carousel-photo {
  height: 100%;
  object-fit: cover; /* Mencegah gambar gepeng */
  object-position: center;
}

/* Tipografi Keterangan Menu */
.menu-caption {
  background-color: #ffffff; /* Latar belakang bersih untuk teks */
}

.menu-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #333;
  font-size: 1.8rem;
}

.menu-description {
  font-family: 'Montserrat', sans-serif;
  max-width: 600px; /* Menjaga teks tidak terlalu melebar di layar besar */
  line-height: 1.6;
}

.menu-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #D4AF37; /* Warna Rose Gold untuk harga */
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* Custom Indicators (Titik Navigasi) */
.custom-indicators {
  bottom: -50px; /* Menurunkan posisi titik agar tidak menutupi teks */
}

.custom-indicators button {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50%;
  background-color: #ccc !important;
  margin: 0 5px !important;
  border: none !important;
  transition: all 0.3s ease;
}

.custom-indicators button.active {
  background-color: #D4AF37 !important; /* Rose Gold saat aktif */
  transform: scale(1.2);
}

/* Custom Nav Buttons (Panah Kiri Kanan) */
.custom-nav-btn {
  width: 10%; /* Area klik panah */
  opacity: 0; /* Tersembunyi secara default */
  transition: opacity 0.3s ease;
}

/* Memunculkan panah saat area carousel di-hover */
#joyluckMenuCarousel:hover .custom-nav-btn {
  opacity: 1;
}


/* --- Value SECTION STYLES --- */

/* Memastikan gambar selalu menutupi areanya tanpa gepeng */
.concept-image {
  height: 100%;
  min-height: 350px; /* Menjaga tinggi minimal di HP */
  object-fit: cover;
  object-position: center;
}


/* Garis aksen emas kecil di bawah judul */
.divider-gold {
  width: 60px;
  height: 3px;
  background-color: #D4AF37; /* Warna Classic Muted Gold kita */
  border-radius: 2px;
}

/* Memastikan sudut melengkung Bootstrap 5 (rounded-4) lebih rapi */
.rounded-4 {
  border-radius: 1rem !important;
}

.parallax-container-value {
  background-color: rgba(26, 26, 26, 0.7);
  background-image: url('/Assets/Restaurant/joyluck-grill.png');
  min-height: 700px;
  background-attachment: fixed;
  background-size: cover;
}

/*Hero*/
.hero-parallax {
  background-image: url('/Assets/Restaurant/joyluck-restaurant-01.png');
  min-height: 900px;
  min-width: 100%;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.hero-container {
  width: 100%;
  margin-right: auto;  /* Mendorong ke tengah */
  margin-left: auto;   /* Mendorong ke tengah */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 26, 0.7); /* Warna Charcoal dengan transparansi 40% */
  z-index: 0;
}

/* Memastikan konten berada di atas lapisan overlay */
.hero-content {
  z-index: 1;
}

/* --- CATEGORY SECTION STYLES --- */

/* Pengaturan List Kategori */

.category-list .nav-item {
  margin-bottom: 1rem;
}

.category-list .nav-link {
  text-decoration: none;
  color: #333333;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  padding: 0;
  background: transparent !important; /* Mencegah warna background biru bawaan Bootstrap */
  border: none;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-list .nav-link:hover {
  color: #9C6F3B;
}

/* KUNCI: Membuat Garis tersembunyi secara bawaan */
.category-list .nav-link::before {
  content: "";
  display: inline-block;
  width: 0px; /* Garisnya ada, tapi panjangnya 0 */
  height: 1px;
  background-color: #333333;
  margin-right: 0px;
  transition: width 0.4s ease, margin-right 0.4s ease; /* Efek transisi mulus */
}

/* Saat Menu di-klik (Active) */
.category-list .nav-link.active {
  color: #333333; /* Warna tetap gelap saat aktif */
  font-style: italic; /* Teks menjadi miring */
}

/* Memunculkan garis saat menu tersebut active */
.category-list .nav-link.active::before {
  width: 60px; /* Garis memanjang jadi 60px */
  margin-right: 15px; /* Memberi jarak ke teks */
}

/* Pengaturan Gambar Kapsul */
.pill-image-wrapper {
  border-radius: 500px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.pill-image-wrapper img {
  height: 350px;
  object-fit: cover;
}

/* Efek fade transisi Bootstrap (opsional agar lebih lambat sedikit) */
.tab-pane {
  transition: opacity 0.4s ease;
}

/* =========================================
   FLOATING WHATSAPP BUTTON
   ========================================= */
.floating-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Warna Hijau Khas WhatsApp */
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999; /* Z-index super tinggi agar tidak tertutup elemen lain */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Efek saat kursor diarahkan ke tombol (Desktop) */
.floating-wa:hover {
    background-color: #128c7e; /* Hijau WA yang lebih gelap */
    color: #FFF;
    transform: scale(1.1); /* Tombol membesar 10% */
    box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.3);
}

/* Penyesuaian Responsif untuk Layar HP / Mobile */
@media screen and (max-width: 768px) {
    .floating-wa {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px; /* Ukuran ikon disesuaikan */
    }
}

@media (max-width: 991px) {
  .category-list .nav-link { font-size: 2rem; }
  .pill-image-wrapper img { height: 250px; }
  .category-list .nav-link.active::before { width: 40px; }
}

/* --- SCROLLING NAVBAR STYLES --- */

/* Mengatur transisi animasi agar halus */
#mainNavbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
/* State 1: Saat berada di ujung atas (Transparan) */
.navbar-transparent {
  background-color: transparent !important;
  box-shadow: none !important;
}
.navbar-solid {
  background-color: #ffffff !important; /* Warna putih, ubah jika ingin warna lain */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important; /* Efek bayangan */
}


/* --- Intro Preview --- */
.intro-section {
  min-height: 600px;
  padding-bottom: 300px;
}



/* Penyesuaian Ketinggian untuk Desktop */
@media (min-width: 992px) { /* Breakpoint lg Bootstrap */
  #main-gallery .row {
    height: 80vh; /* Contoh: Galeri mengambil 80% tinggi layar desktop */
  }
}

/* Penyesuaian Ketinggian untuk Mobile */
@media (max-width: 991px) { /* Dibawah breakpoint lg */
  .main-image-wrapper {
    /*height: 60vh;  Gambar besar di mobile mengambil tinggi yang nyaman (misal 60% layar) */
    min-height: 700px;
  }
  .main-photo {
    min-height: 700px;
    object-fit: cover;
  }
}

/* KUNCI ADAPTASI XL: Baru dibatasi saat layar berukuran 1200px ke atas */
@media (min-width: 1200px) {
  .container-murni-xl {
    max-width: 1140px;
  }
}

/* Opsional: Standar layar super besar (XXL) milik Bootstrap 5 */
@media (min-width: 1400px) {
  .container-murni-xl {
    max-width: 1320px;
  }
}