/* =========================================================
   MISS UNIVERSE BELIZE 2026 — Coming Soon
   Luxury black & gold theme
   ========================================================= */

:root {
  --black:        #050505;
  --black-soft:   #0c0b09;
  --night:        #100d08;
  --gold:         #d4af37;
  --gold-soft:    #f5e6a8;
  --gold-deep:    #b8860b;
  --gold-line:    rgba(212, 175, 55, 0.35);
  --cream:        #f7f1e3;
  --muted:        rgba(247, 241, 227, 0.62);
  --grad-gold:    linear-gradient(120deg, #b8860b 0%, #f5e6a8 35%, #d4af37 60%, #f9efc4 80%, #b8860b 100%);
  --shadow-gold:  0 10px 40px rgba(212, 175, 55, 0.18);
  --font-display: "Playfair Display", "Cormorant Garamond", serif;
  --font-serif:   "Cormorant Garamond", Georgia, serif;
  --font-sans:    "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --maxw:         1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background starfield canvas */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Ambient gold glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(212,175,55,0.10), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(184,134,11,0.10), transparent 50%);
  pointer-events: none;
}

.wrap { position: relative; z-index: 2; }

/* ---------- Language toggle hides/shows ---------- */
[data-lang] { display: none; }
body.lang-en [data-lang="en"],
body.lang-es [data-lang="es"] { display: inline; }
.block[data-lang] { display: none; }
body.lang-en .block[data-lang="en"],
body.lang-es .block[data-lang="es"] { display: block; }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 60px);
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
.nav.scrolled {
  background: rgba(5,5,5,0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--gold-line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav__brand {
  font-family: var(--font-display);
  letter-spacing: 3px;
  font-size: 15px;
  color: var(--gold-soft);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__brand .star { color: var(--gold); }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 34px);
}
.nav__links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .82;
  transition: opacity .3s, color .3s;
  position: relative;
}
.nav__links a:hover { opacity: 1; color: var(--gold-soft); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--grad-gold);
  transition: width .3s ease;
}
.nav__links a:hover::after { width: 100%; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--gold-line);
  border-radius: 40px;
  overflow: hidden;
}
.lang-switch button {
  background: transparent;
  color: var(--muted);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 7px 14px;
  transition: all .3s;
}
.lang-switch button.active {
  background: var(--grad-gold);
  color: #1a1407;
  font-weight: 600;
}

.nav__toggle { display: none; background: none; border: none; color: var(--gold-soft); cursor: pointer; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
  opacity: .28;
  z-index: 0;
  transform: scale(1.08);
  animation: slowZoom 22s ease-in-out infinite alternate;
}
@media (min-width: 900px) {
  .hero__bg { opacity: .4; }
}
@keyframes slowZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.18); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 38% 45%, rgba(5,5,5,0.9) 25%, rgba(5,5,5,0.55) 60%, transparent 100%),
    linear-gradient(to bottom, rgba(5,5,5,0.6), rgba(5,5,5,0.25) 40%, rgba(5,5,5,0.96));
}
.hero__inner { position: relative; z-index: 3; max-width: 860px; }

.hero__badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 40px;
  padding: 8px 22px;
  margin-bottom: 34px;
  background: rgba(212,175,55,0.05);
  animation: fadeUp 1s ease both;
}

.hero__logo {
  width: min(78vw, 620px);
  height: auto;
  margin: 0 auto 26px;
  display: block;
  filter: drop-shadow(0 6px 30px rgba(212,175,55,0.25));
  animation: fadeUp 1.1s ease .1s both;
}

.hero__soon {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 9vw, 110px);
  line-height: 1;
  letter-spacing: 2px;
  background: var(--grad-gold);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite, fadeUp 1.2s ease .2s both;
  margin-bottom: 18px;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

.hero__tag {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.6vw, 26px);
  font-style: italic;
  color: var(--cream);
  opacity: .9;
  max-width: 640px;
  margin: 0 auto 40px;
  animation: fadeUp 1.3s ease .3s both;
}

.hero__cta { animation: fadeUp 1.4s ease .4s both; }

/* Gold divider with star */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 26px auto;
  color: var(--gold);
  max-width: 320px;
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(to right, transparent, var(--gold-line), transparent);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 38px;
  border-radius: 40px;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s, background .3s, color .3s;
  border: 1px solid transparent;
}
.btn--gold {
  background: var(--grad-gold);
  background-size: 200% auto;
  color: #1a1407;
  font-weight: 600;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover {
  transform: translateY(-3px);
  background-position: right center;
  box-shadow: 0 14px 50px rgba(212,175,55,0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--gold-soft);
  border: 1px solid var(--gold-line);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-3px);
}

/* =========================================================
   SECTIONS
   ========================================================= */
section { position: relative; }
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 11vw, 140px) clamp(20px, 5vw, 40px);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.1;
  margin-bottom: 26px;
  color: var(--cream);
}
.h2 .accent {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 760px;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* About split */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.about__media {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-gold);
  aspect-ratio: 16/10;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(212,175,55,0.12), transparent 60%);
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 30px;
}
.pillar {
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  padding: 38px 28px;
  background: linear-gradient(160deg, rgba(212,175,55,0.05), rgba(255,255,255,0.01));
  transition: transform .4s, border-color .4s, box-shadow .4s;
}
.pillar:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.pillar__icon {
  font-size: 30px;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(212,175,55,0.4));
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--gold-soft);
}
.pillar p { font-size: 15px; color: var(--muted); }

/* =========================================================
   COUNTDOWN
   ========================================================= */
.count {
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(212,175,55,0.10), transparent 70%);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}
.count__grid {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 48px);
  margin-top: 36px;
  flex-wrap: wrap;
}
.count__cell { min-width: 90px; }
.count__num {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1;
  background: var(--grad-gold);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
.count__label {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================
   REGISTER CTA
   ========================================================= */
.register {
  text-align: center;
  position: relative;
  border-radius: 14px;
  margin: clamp(40px,8vw,90px) auto;
  max-width: 1000px;
  padding: clamp(50px, 9vw, 100px) clamp(24px, 6vw, 70px);
  background:
    linear-gradient(160deg, rgba(212,175,55,0.10), rgba(5,5,5,0.4)),
    var(--night);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-gold);
  overflow: hidden;
}
.register::before {
  content: "★";
  position: absolute;
  font-size: 360px;
  color: rgba(212,175,55,0.04);
  top: -90px; right: -40px;
  pointer-events: none;
}

/* =========================================================
   SOCIAL
   ========================================================= */
.social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.social a {
  width: 54px; height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold-soft);
  transition: all .35s;
}
.social a:hover {
  background: var(--grad-gold);
  color: #1a1407;
  transform: translateY(-5px) rotate(6deg);
  box-shadow: var(--shadow-gold);
}
.social svg { width: 22px; height: 22px; fill: currentColor; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--gold-line);
  padding: 50px 20px 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.footer__logo {
  width: 230px;
  max-width: 70vw;
  opacity: .9;
  margin-bottom: 22px;
}
.footer__copy {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}
.footer__copy a { color: var(--gold-soft); text-decoration: none; }

/* =========================================================
   ANIMATIONS / REVEAL
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(5,5,5,0.96);
    backdrop-filter: blur(14px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gold-line);
  }
  .nav__toggle { display: block; }
  .nav__lang-wrap { display: flex; align-items: center; gap: 14px; }
}
