:root {
  --cream: #f6f1e7;
  --cream-soft: rgba(246, 241, 231, 0.78);
  --cream-faint: rgba(246, 241, 231, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cream);
  background-color: #10140f;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Full-screen villa background (photo poster + looping video on top) */
.hero { position: fixed; inset: 0; z-index: 0; background-color: #10140f; }
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-media img,
video.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Video sits above the photo and fades in only once it can play */
.hero-video {
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-video.is-ready { opacity: 1; }

/* Safety net: never show the video when motion/data is reduced (JS also skips loading it) */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none !important; }
}
@media (prefers-reduced-data: reduce) {
  .hero-video { display: none !important; }
}

/* Light dark veil for legibility: soft vignette + gentle top/bottom darkening */
.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 16, 12, 0.42) 0%, rgba(12, 16, 12, 0.22) 38%, rgba(12, 16, 12, 0.46) 100%),
    radial-gradient(ellipse at center, rgba(12, 16, 12, 0.08) 0%, rgba(12, 16, 12, 0.5) 100%);
}

/* Centered content */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.content {
  text-align: center;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: clamp(190px, 42vw, 268px);
  height: auto;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35));
}

.tagline {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 6vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.4);
}

.soon {
  font-weight: 300;
  font-size: clamp(0.78rem, 2.6vw, 0.95rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream-soft);
  margin-top: clamp(0.9rem, 2.5vw, 1.25rem);
}

/* WhatsApp contact */
.contact { margin-top: clamp(1.8rem, 4.5vw, 2.6rem); }
.contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 1.4em;
  border: 1px solid rgba(246, 241, 231, 0.45);
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
  font-size: clamp(0.85rem, 2.6vw, 0.98rem);
  letter-spacing: 0.06em;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.contact a:hover,
.contact a:focus-visible {
  background-color: rgba(246, 241, 231, 0.12);
  border-color: rgba(246, 241, 231, 0.8);
  transform: translateY(-1px);
}
.contact .wa { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* Discreet Amarta Azul link */
.azul { margin-top: clamp(1.8rem, 5vw, 2.8rem); }
.azul a {
  color: var(--cream-faint);
  font-weight: 300;
  font-size: clamp(0.72rem, 2.3vw, 0.84rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(246, 241, 231, 0.22);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.azul a:hover,
.azul a:focus-visible {
  color: var(--cream);
  border-color: rgba(246, 241, 231, 0.6);
}

:focus-visible { outline: 2px solid rgba(246, 241, 231, 0.7); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
