/* ─── CSS VARIABLES ─────────────────────────── */
:root {
  --gold: #c9a84c;
  --dark: #0f1a10;
  --cream: #f5f0e8;
  --olive: #2d4a2d;
  --light: #ffffff;
  --gray: #6b7280;
}

/* ─── ANIMATIONS ────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ─── BASE ──────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
}
body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--dark);
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", serif;
  margin: 0;
}
p {
  margin: 0;
}
a {
  text-decoration: none;
}
img {
  display: block;
}

/* ─── CUSTOM SCROLLBAR ──────────────────────── */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 5px;
  transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--olive);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--cream);
}

/* ─── UTILITY ───────────────────────────────── */
.gold {
  color: var(--gold);
}
.bg-dark {
  background: var(--dark);
}
.bg-olive {
  background: var(--olive);
}
.bg-cream {
  background: var(--cream);
}
.text-white {
  color: #fff;
}

/* ─── NAVBAR ────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

#mobile-menu {
  display: none;
}
#mobile-menu.open {
  display: block;
}

/* ─── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-block;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 12px 28px;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background: #a88535;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--dark);
}
.btn-white:hover {
  background: var(--cream);
}

.btn-wa {
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-wa:hover {
  background: #1ebe5d;
}

/* ─── HERO ──────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
  color: #fff;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
}

/* ─── SECTION LABELS ────────────────────────── */
.section-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.divider {
  width: 44px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 24px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

/* ─── CARDS ─────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  animation: fadeInUp 0.4s ease-out;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* ─── TAG / BADGE ───────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-gold {
  background: var(--gold);
  color: #fff;
}
.badge-olive {
  background: var(--olive);
  color: #fff;
}
.badge-red {
  background: #dc2626;
  color: #fff;
}
.badge-green {
  background: #16a34a;
  color: #fff;
}
.badge-yellow {
  background: #ca8a04;
  color: #fff;
}
.badge-gray {
  background: var(--cream);
  color: var(--olive);
  border: 1px solid var(--olive);
}

/* ─── GALLERY GRID ──────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  animation: scaleIn 0.4s ease-out;
}
.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ─── LIGHTBOX ──────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
#lightbox.open {
  display: flex;
}
#lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 8px;
}
#lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s ease;
}
#lightbox-close:hover {
  opacity: 0.7;
}

/* ─── FAQ ───────────────────────────────────── */
.faq-item {
  animation: fadeInUp 0.4s ease-out;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-icon {
  transition: transform 0.25s ease;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
details[open] .faq-icon {
  transform: rotate(90deg);
}

/* ─── STAR RATING ───────────────────────────── */
.stars {
  color: var(--gold);
  letter-spacing: 2px;
  display: inline-block;
}

/* ─── FOOTER ────────────────────────────────── */
footer a {
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.2s ease;
  font-size: 0.875rem;
}
footer a:hover {
  color: #fff;
}

/* ─── ANIMATION UTILITIES ────────────────────── */
.animate-fade-in {
  animation: fadeInUp 0.4s ease-out;
}
.animate-scale-in {
  animation: scaleIn 0.4s ease-out;
}

/* ─── PROMO POPUP MODAL ─────────────────────── */
.promo-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  animation: fadeInUp 0.3s ease-out;
}
.promo-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}
.promo-modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.3s ease-out;
}
.promo-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 10;
}
.promo-modal-close:hover {
  color: var(--gold);
}
#promo-modal-body {
  padding: 40px 30px 30px;
}

/* ─── WHATSAPP FLOATING BUTTON ──────────────── */
.wa-floating-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
  animation: fadeInUp 0.4s ease-out 0.5s backwards;
  color: white;
  font-weight: 600;
}
.wa-floating-btn:hover {
  background: #20ba5c;
  transform: scale(1.12);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
  color: white;
}
.wa-floating-btn .material-icons {
  color: white;
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-hero {
    min-height: 320px;
  }
  .promo-modal-content {
    width: 95%;
    max-width: none;
  }
  .wa-floating-btn {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .wa-floating-btn {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
  #promo-modal-body {
    padding: 35px 20px 20px;
  }
}
