/* ==========================================================================
   OBSIDIA COLLECTION — design tokens
   Obsidian black + carved gold, echoing the faceted gem in the crest.
   Display: Cormorant Garamond (carved, editorial serif)
   Body/UI: Jost (quiet geometric sans)
   ========================================================================== */

:root {
  --obsidian:        #0a0908;
  --obsidian-2:      #141210;
  --charcoal:        #1c1916;
  --hairline:        rgba(201, 162, 75, 0.22);

  --gold:            #c9a24b;
  --gold-light:      #e8ce8b;
  --gold-deep:       #8a6a2f;
  --cream:           #f4eee0;
  --cream-dim:       rgba(244, 238, 224, 0.68);

  --gold-gradient: linear-gradient(115deg, var(--gold-deep) 0%, var(--gold) 45%, var(--gold-light) 62%, var(--gold) 100%);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --section-pad: clamp(4.5rem, 9vw, 8rem);
  --edge: clamp(1.5rem, 6vw, 6rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0 0 0.6em; color: var(--cream); }

h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: 0.01em; }
h3 { font-size: 1.35rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--cream-dim); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1em;
}
.eyebrow-center { text-align: center; }
.center { text-align: center; }
.lede { max-width: 640px; margin-left: auto; margin-right: auto; }

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 1px solid var(--gold-light);
  outline-offset: 3px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 2.1em;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--obsidian);
  font-weight: 600;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(201,162,75,0.55); }

.btn-ghost {
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-ghost:hover { background: rgba(201,162,75,0.1); transform: translateY(-2px); }

.btn-whatsapp {
  background: var(--gold-gradient);
  color: var(--obsidian);
  font-weight: 600;
  margin-top: 1rem;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(201,162,75,0.55); }
.wa-icon { width: 20px; height: 20px; fill: var(--obsidian); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.4rem var(--edge);
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}
.site-header.scrolled {
  background: rgba(10, 9, 8, 0.86);
  backdrop-filter: blur(10px);
  padding: 0.3rem var(--edge);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.brand-mark { height: clamp(168px, 20vw, 258px); width: auto; transition: height 0.4s ease; }
.scrolled .brand-mark { height: clamp(134px, 15vw, 213px); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.main-nav a { color: var(--cream-dim); position: relative; padding: 0.3em 0; transition: color 0.3s ease; }
.main-nav a:hover { color: var(--gold-light); }
.main-nav a.nav-cta {
  color: var(--obsidian);
  background: var(--gold-gradient);
  padding: 0.7em 1.4em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  font-weight: 500;
}
.main-nav a.nav-cta:hover { color: var(--obsidian); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span { width: 26px; height: 1px; background: var(--gold-light); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.6);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(10,9,8,0.35) 0%, rgba(10,9,8,0.78) 62%, rgba(10,9,8,0.96) 100%),
    linear-gradient(180deg, rgba(10,9,8,0.55) 0%, transparent 30%, transparent 65%, rgba(10,9,8,0.9) 100%);
}

.hero-facets {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, transparent 46%, rgba(201,162,75,0.06) 47%, transparent 49%),
    linear-gradient(65deg, transparent 70%, rgba(201,162,75,0.05) 71%, transparent 73%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 var(--edge);
}

.hero-crest {
  width: clamp(357px, 38vw, 524px);
  margin: 0 auto 1.4rem;
  opacity: 0.98;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,0.6)) drop-shadow(0 2px 10px rgba(201,162,75,0.25));
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  color: var(--cream);
}
.hero-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.hero-sub { max-width: 560px; margin: 1.4rem auto 2.2rem; font-size: 1.02rem; }

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.scroll-line { width: 1px; height: 34px; background: linear-gradient(var(--gold-light), transparent); }

/* ==========================================================================
   Sections / layout
   ========================================================================== */

.section { padding: var(--section-pad) var(--edge); position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.facet-divider {
  height: 1px;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

/* ----- About ----- */
.about { background: var(--obsidian-2); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-top: var(--section-pad);
}

.about-frame {
  position: relative;
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
  background: var(--gold-gradient);
  padding: 3px;
}
.about-frame-inner {
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
  overflow: hidden;
  background: var(--charcoal);
  aspect-ratio: 4/5;
}
.about-frame-inner video { width: 100%; height: 100%; object-fit: cover; }

.about-copy h2 { max-width: 12ch; }
.about-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--hairline);
}
.about-stats span { display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold-light); }
.about-stats small { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-dim); }

/* ----- Villas ----- */
.villas { background: var(--obsidian); }
.villa-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 3.5rem;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.villa-feature { background: var(--obsidian); padding: 2.2rem 1.8rem; }
.villa-feature h3 { font-size: 1.15rem; color: var(--gold-light); }
.villa-feature p { font-size: 0.92rem; margin-bottom: 0; }

/* ----- Events ----- */
.events { background: var(--obsidian-2); }
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3.5rem;
}
.event-card {
  position: relative;
  padding: 2rem 1.7rem 1.8rem;
  background: linear-gradient(160deg, var(--charcoal), var(--obsidian-2));
  border: 1px solid var(--hairline);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: linear-gradient(160deg, #241f18, var(--charcoal));
}
.event-card h3 { font-size: 1.1rem; color: var(--gold-light); margin-bottom: 0.4em; }
.event-card p { font-size: 0.9rem; margin-bottom: 0; }

/* ----- Contact ----- */
.contact {
  background: var(--obsidian);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(201,162,75,0.08), transparent 60%);
}
.contact-inner { max-width: 640px; margin: 0 auto; text-align: center; }

/* ----- Footer ----- */
.site-footer {
  text-align: center;
  padding: 3rem var(--edge) 2.2rem;
  border-top: 1px solid var(--hairline);
  background: var(--obsidian-2);
}
.footer-mark { height: 34px; margin: 0 auto 1rem; opacity: 0.85; }
.site-footer p { font-size: 0.82rem; margin-bottom: 0.4em; }
.footer-copy { color: rgba(244,238,224,0.4); font-size: 0.74rem; }

/* ==========================================================================
   Floating widgets
   ========================================================================== */

.live-widget {
  position: fixed;
  left: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 168px;
  height: 100px;
  padding: 0;
  border: 1px solid var(--gold);
  background: var(--obsidian);
  cursor: pointer;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.75);
  transition: width 0.4s ease, height 0.4s ease;
}
.live-widget video { width: 100%; height: 100%; object-fit: cover; }
.live-widget.expanded { width: min(70vw, 420px); height: min(52vw, 260px); }

.live-tag {
  position: absolute;
  left: 0.6rem;
  bottom: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(10,9,8,0.55);
  padding: 0.35em 0.7em;
  backdrop-filter: blur(4px);
}
.live-tag i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #e14b3b;
  box-shadow: 0 0 0 0 rgba(225,75,59,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(225,75,59,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(225,75,59,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,75,59,0); }
}

.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-gradient);
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
  box-shadow: 0 14px 32px -12px rgba(201,162,75,0.6);
  transition: transform 0.3s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
.wa-float svg { width: 28px; height: 28px; fill: var(--obsidian); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .villa-features { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100svh;
    width: min(78vw, 320px);
    background: rgba(10,9,8,0.98);
    border-left: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.8rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }

  .villa-features { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }

  .live-widget { width: 120px; height: 76px; left: 1rem; bottom: 1rem; }
  .live-widget.expanded { width: 80vw; height: 50vw; }
  .wa-float { right: 1rem; bottom: 1rem; width: 52px; height: 52px; }
}
