/* ==========================================================================
   ROOT VARIABLES (PALET WARNA TROPIS MEWAH)
   ========================================================================== */
:root {
  --color-primary: #72b486;       /* Deep Green */
  --color-secondary: #809B2D;     /* Olive/Lighter Green */
  --color-sand: #D5C0A0;          /* Beige/Sand */
  --color-gold: #99650D;          /* Elegant Gold */
  --color-dark-brown: #31190D;    /* Dark Brown */

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;
}

/* ==========================================================================
   GLOBAL STYLES
   ========================================================================== */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-dark-brown);
  line-height: 1.6;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

.serif-font { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.tracking-wide { letter-spacing: 2px; }

/* Custom Backgrounds & Colors */
.bg-primary { background-color: var(--color-primary) !important; }
.bg-sand { background-color: #F8F5F0 !important; }
.text-primary { color: var(--color-primary) !important; }
.text-secondary-green { color: var(--color-secondary) !important; }
.text-gold { color: var(--color-gold) !important; }
.text-sand { color: var(--color-sand) !important; }
.text-dark-brown { color: var(--color-dark-brown) !important; }

/* Padding utilities untuk layout editorial (responsif via clamp) */
.py-6 { padding-top: clamp(3rem, 6vw, 6rem); padding-bottom: clamp(3rem, 6vw, 6rem); }
.mb-6 { margin-bottom: clamp(2rem, 4vw, 4rem); }

/* ==========================================================================
   BUTTONS & LINKS
   ========================================================================== */
.btn-gold {
  background-color: var(--color-gold);
  color: #FFF;
  border: 1px solid var(--color-gold);
  border-radius: 0;
  transition: all 0.4s ease;
}
.btn-gold:hover {
  background-color: transparent;
  color: var(--color-gold);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: 0;
  transition: all 0.4s ease;
}
.btn-outline-gold:hover {
  background-color: var(--color-gold);
  color: #FFF;
}

.link-gold {
  color: var(--color-gold);
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}
.link-gold:hover {
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.custom-navbar {
  background-color: transparent;
  padding: 1.5rem 0;
}
.custom-navbar.scrolled {
  background-color: var(--color-primary);
  padding: 1rem 0;
}
/* Solid background saat menu mobile dibuka (dropdown di atas hero) */
.custom-navbar.menu-open {
  background-color: var(--color-primary);
}
.custom-navbar .navbar-brand {
  font-size: 1.25rem;
  color: #21966f !important;
}
.custom-navbar .navbar-brand .brand-title {
  display: block;
  color: var(--color-dark-brown);
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.1;
}
.custom-navbar .navbar-brand .brand-subtitle {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  color: var(--color-gold);
  letter-spacing: 3px;
  font-weight: 500;
  text-transform: uppercase;
}
.custom-navbar .nav-link {
  color: black !important;
  position: relative;
}
.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: var(--color-gold) !important;
}
.custom-navbar .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  bottom: 5px;
  left: 8px;
  transition: width 0.3s ease;
}
.custom-navbar .nav-link:hover::after {
  width: calc(100% - 16px);
}

@media (min-width: 992px) {
  .custom-navbar .navbar-brand { font-size: 1.5rem; }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--color-primary);
    padding: 1.25rem;
    margin-top: 1rem;
    border-radius: 2px;
  }
}

/* Pembungkus menu utama navbar (Beranda/Destinasi/Tentang/Kontak) */
.nav-links-wrap {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 0.35rem 0.5rem;
}
.nav-links-wrap .nav-link {
  padding: 0.5rem 1.1rem !important;
  border-radius: 50px;
  transition: background-color .2s ease, color .2s ease;
}
.nav-links-wrap .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.25);
}
.nav-links-wrap .nav-link.active {
  background-color: var(--color-gold);
  color: #1a1a1a !important;
  font-weight: 600;
}
@media (max-width: 991.98px) {
  .nav-links-wrap {
    background-color: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .nav-links-wrap .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* ==========================================================================
   HERO SECTION (CINEMATIC)
   ========================================================================== */
.hero-cinematic {
  overflow: hidden;
  min-height: 100svh;
}
.hero-video,
.hero-media {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(49, 25, 13, 0.4) 0%, rgba(55, 80, 23, 0.7) 100%);
  z-index: 1;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
}
.hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

/* Animasi huruf judul hero memantul (beranda) */
@keyframes heroBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-14px); }
}
.hero-bounce-letter {
  animation: heroBounce 1.6s ease-in-out infinite;
}

/* Overlay orang berjalan di atas hero (beranda), tidak mengubah foto latar */
.hero-walking-track {
  position: absolute;
  bottom: 6%;
  left: -220px;
  pointer-events: none;
  animation: heroWalkAcross 22s linear infinite;
}

.hero-walking-person {
  display: block;
  height: 220px;
  max-height: 26vh;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.35));
  /* Gerakan naik-turun meniru langkah kaki saat berjalan */
  animation: heroWalkBob 0.9s ease-in-out infinite;
}

@keyframes heroWalkAcross {
  0%   { left: -220px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes heroWalkBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-5px) rotate(-1deg); }
  50%      { transform: translateY(0) rotate(0deg); }
  75%      { transform: translateY(-5px) rotate(1deg); }
}

@media (max-width: 767.98px) {
  .hero-walking-person {
    height: 130px;
    max-height: 18vh;
  }
}

/* Pesawat terbang lurus diagonal dari kanan bawah ke kiri atas (beranda) */
.hero-plane-track {
  position: absolute;
  right: -60px;
  bottom: 8%;
  z-index: 1;
  pointer-events: none;
  animation: heroPlaneFly 16s linear infinite;
}

.hero-plane {
  display: block;
  font-size: 2.2rem;
  color: #fff;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.35));
  transform: rotate(-45deg);
}

@keyframes heroPlaneFly {
  0%   { transform: translate(0, 0); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translate(-130vw, -90vh); opacity: 0; }
}

@media (max-width: 767.98px) {
  .hero-plane { font-size: 1.4rem; }
}

/* ==========================================================================
   LUXURY CARDS (DESTINATION)
   ========================================================================== */
.luxury-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  height: 450px !important;
}
.luxury-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
}
.luxury-card:hover img {
  transform: scale(1.1);
}
.luxury-card .card-img-overlay {
  background: linear-gradient(to top, rgba(49,25,13,0.9) 0%, rgba(49,25,13,0) 60%);
  border-radius: 0;
  transition: background 0.5s ease;
}
.luxury-card:hover .card-img-overlay {
  background: linear-gradient(to top, rgba(55,80,23,0.95) 0%, rgba(49,25,13,0) 70%);
}

@media (max-width: 767.98px) {
  .luxury-card { height: 320px !important; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.custom-footer {
  background-color: #09472a !important;
}
.footer-social {
  width: 40px;
  height: 40px;
  color: var(--color-sand);
  border: 1px solid rgba(213,192,160,0.3);
  transition: all .25s ease;
}
.footer-social:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: #46916b;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: var(--color-sand);
  opacity: 0.75;
  text-decoration: none;
  font-weight: 300;
  font-size: 0.92rem;
  transition: opacity .2s ease, padding-left .2s ease;
}
.footer-links a:hover {
  opacity: 1;
  color: var(--color-gold);
  padding-left: 3px;
}
.hover-gold:hover {
  color: var(--color-gold) !important;
}

@media (max-width: 991.98px) {
  .custom-footer .rounded-4 { margin-top: -2rem !important; }
}

/* ==========================================================================
   CONTACT PAGE SPECIFIC STYLES
   ========================================================================== */
.luxury-form-control {
  border: none;
  border-bottom: 1px solid rgba(49, 25, 13, 0.2);
  background-color: transparent;
  border-radius: 0;
  padding: 12px 0;
  color: var(--color-dark-brown);
  font-family: var(--font-sans);
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.luxury-form-control:focus {
  border-bottom-color: var(--color-gold);
  background-color: transparent;
  outline: none;
}

.luxury-form-control::placeholder {
  color: rgba(49, 25, 13, 0.4);
  font-weight: 300;
}

.transition-all {
  transition: all 0.3s ease;
}

.custom-map {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
  filter: grayscale(30%) sepia(20%) hue-rotate(-10deg);
  transition: filter 0.5s ease;
}
.custom-map:hover {
  filter: grayscale(0%) sepia(0%);
}

@media (max-width: 767.98px) {
  .custom-map { height: 300px; }
}

/* ==========================================================================
   KONTAK PAGE
   ========================================================================== */
.hero-mini {
  min-height: 60vh;
  padding-top: 2rem;
}
@media (max-width: 767.98px) {
  .hero-mini { min-height: 45vh; }
}
@media (min-width: 992px) {
  .hero-mini { min-height: 50vh; }
}

/* ==========================================================================
   TENTANG (ABOUT) PAGE
   ========================================================================== */

/* Hero image editorial: tinggi menyesuaikan lebar layar */
.about-hero-img {
  height: 55vh;
  min-height: 280px;
  max-height: 550px;
  object-fit: cover;
}
@media (max-width: 767.98px) {
  .about-hero-img { height: 40vh; min-height: 240px; }
}

/* Gambar cerita/sejarah */
.about-story-img {
  width: 100%;
  height: clamp(300px, 45vw, 500px);
  object-fit: cover;
}

/* Badge "Sejak 1958" - responsif, tidak keluar container di mobile */
.about-badge {
  position: relative;
  margin-top: -2.5rem;
  margin-left: auto;
  max-width: 200px;
  z-index: 2;
}
@media (min-width: 992px) {
  .about-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(20px, 20px);
    margin-top: 0;
  }
}

/* Galeri editorial */
.gallery-img-lg {
  min-height: 260px;
}
@media (min-width: 768px) {
  .gallery-img-lg { min-height: 400px; }
}

.gallery-thumbs { flex-wrap: wrap; }
.gallery-img-sm {
  height: 130px;
  flex: 1 1 30%;
}
@media (min-width: 768px) {
  .gallery-img-sm { height: 192px; flex: none; }
}