:root {
  --color-gold: #c9a84c;
  --color-gold-light: #e8c96a;
  --color-gold-dark: #a07832;
  --color-burgundy: #7d1f3a;
  --color-burgundy-light: #a02850;
  --color-cream: #f0e6d3;
  --color-cream-light: #fdf6ee;
  --color-dark: #080808;
  --color-dark-2: #111111;
  --color-dark-3: #1a1a1a;
  --color-dark-4: #242424;
  --font-cinzel: 'Cinzel', Georgia, serif;
  --font-cinzel-deco: 'Cinzel Decorative', Georgia, serif;
  --font-raleway: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}


/* Tailwind v4 puts its utilities in `@layer utilities`, and CSS written outside
   any layer beats every layer. The original relied on that: `.section-title`
   (unlayered, line-height 1.2) wins over `md:text-5xl` (utility, line-height 1).
   Declaring the order here and layering only the reset reproduces it — the
   component classes below stay unlayered and keep outranking the utilities. */
@layer base, components, utilities;

@layer base {
  *,
  *::before,
  *::after { box-sizing: border-box; }

  html, body { height: 100%; }

  html {
    scroll-behavior: smooth;
    /* Tailwind's preflight sets this and the original relied on it: every text
       block without an explicit line-height inherits 1.5. */
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
  }

  body {
    margin: 0;
    background-color: #080808;
    color: #f0e6d3;
    font-family: 'Raleway', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
  ul, ol { margin: 0; padding: 0; list-style: none; }
  a { color: inherit; text-decoration: none; }
  img, svg, video { display: block; max-width: 100%; }
  img { height: auto; }

  button {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
  }
  input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    color: inherit;
    border: 0;
  }
  :focus-visible { outline: 2px solid rgba(201, 168, 76, 0.6); outline-offset: 2px; }
  select option { background: #111; color: #f0e6d3; }

  ::-webkit-scrollbar { width: 5px; }
  ::-webkit-scrollbar-track { background: #111; }
  ::-webkit-scrollbar-thumb { background: #c9a84c; border-radius: 3px; }

  /* Locks the page behind the lightbox (the original set body.style.overflow) */
  body.no-scroll { overflow: hidden; }
}

/* Gold gradient text */
.text-gold-gradient {
  background: linear-gradient(135deg, #c9a84c 0%, #e8c96a 40%, #a07832 80%, #c9a84c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.font-cinzel { font-family: 'Cinzel', serif; }
.font-cinzel-deco { font-family: 'Cinzel Decorative', serif; }
.font-raleway { font-family: 'Raleway', sans-serif; }

/* Ornamental divider */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
}

/* ---------- Keyframes ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-8px); } }
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(201, 168, 76, 0); }
}
@keyframes scroll-x { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes ken-burns { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

.animate-fadeInUp { animation: fadeInUp 0.8s ease forwards; }
.animate-fadeIn { animation: fadeIn 1s ease forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulseGold { animation: pulseGold 2s ease-in-out infinite; }
.animate-scroll-x { animation: scroll-x 30s linear infinite; }
.animate-ken-burns { animation: ken-burns 8s ease-in-out alternate infinite; }
.animate-slideInLeft { animation: slideInLeft 0.8s ease forwards; }
.animate-slideInRight { animation: slideInRight 0.8s ease forwards; }

.pause-animation:hover .animate-scroll-x { animation-play-state: paused; }

/* ---------- Buttons ---------- */
.btn-gold {
  background: linear-gradient(135deg, #c9a84c, #e8c96a, #a07832, #c9a84c);
  background-size: 300% 100%;
  color: #080808;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-gold:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
}

.btn-outline-gold {
  border: 1px solid #c9a84c;
  color: #c9a84c;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  background: transparent;
}
.btn-outline-gold:hover {
  background: #c9a84c;
  color: #080808;
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

/* ---------- Image hover WhatsApp overlay ---------- */
.img-wa-wrap {
  position: relative;
  overflow: hidden;
}
.img-wa-wrap .wa-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.img-wa-wrap:hover .wa-overlay,
.img-wa-wrap:focus-within .wa-overlay,
.img-wa-wrap.is-touched .wa-overlay { opacity: 1; }
.img-wa-wrap img { transition: transform 0.5s ease; }
.img-wa-wrap:hover img { transform: scale(1.06); }

/* ---------- Navbar ---------- */
.navbar-glass {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

/* ---------- Hero slider ---------- */
.hero-slide {
  position: absolute;
  inset: 0;
  transition: opacity 1.2s ease;
}

/* ---------- Stats counter ---------- */
.stat-number {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Section titles ---------- */
.section-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.section-subtitle {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c9a84c;
  font-size: 0.8rem;
}

/* ---------- Cards ---------- */
.spa-card {
  background: #111111;
  border: 1px solid rgba(201, 168, 76, 0.12);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.spa-card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(201, 168, 76, 0.1);
}

/* ---------- Floating buttons ---------- */
.float-btn-wa {
  background: #25d366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}
.float-btn-call {
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}
.float-btn-wa:hover { box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6); transform: scale(1.1); }
.float-btn-call:hover { box-shadow: 0 6px 30px rgba(201, 168, 76, 0.6); transform: scale(1.1); }

/* ---------- Accordion ---------- */
.faq-item { border-bottom: 1px solid rgba(201, 168, 76, 0.15); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  /* `max-height: 0` hides the answer visually but leaves it in the
     accessibility tree, so a screen reader would read out every collapsed
     answer. `visibility` flips only after the collapse finishes, and the text
     stays in the HTML source for crawlers. */
  visibility: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease, visibility 0s linear 0.5s;
}
.faq-answer.open {
  max-height: 500px;
  visibility: visible;
  transition: max-height 0.5s ease, padding 0.3s ease, visibility 0s;
}

/* ---------- Masonry gallery ---------- */
.masonry-grid {
  columns: 3;
  column-gap: 12px;
}
.masonry-grid .masonry-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 12px;
}
.masonry-grid .masonry-item.is-hidden { display: none; }
@media (max-width: 768px) { .masonry-grid { columns: 2; } }
@media (max-width: 480px) { .masonry-grid { columns: 1; } }

/* ---------- Testimonial card ---------- */
.testimonial-card {
  background: linear-gradient(135deg, #111 0%, #1a1207 100%);
  border: 1px solid rgba(201, 168, 76, 0.18);
}

/* ---------- Inputs ---------- */
.input-gold {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: #f0e6d3;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Raleway', sans-serif;
}
.input-gold:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.1);
}
.input-gold::placeholder { color: rgba(240, 230, 211, 0.35); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  background: rgba(8,8,8,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ---------- Particle dots bg ---------- */
.dot-pattern {
  background-image: radial-gradient(rgba(201, 168, 76, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- Reveal on scroll (JS adds .revealed) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .section-title { font-size: 1.8rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
