/* ============================================================
   ROYAL TERRACOTTA — Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--dark);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; outline: none; }

/* ---- Layout helpers ---- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

/* ---- Section label / eyebrow ---- */
.eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ---- Gold divider ---- */
.rule {
  display: block;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px 0;
}
.rule--center { margin: 16px auto; }

/* ---- Scroll progress ---- */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  z-index: 9999;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ---- Page transition overlay ---- */
#pageTransition {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 8000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-io);
}
#pageTransition.active { opacity: 1; pointer-events: all; }

/* ---- WhatsApp floating button ---- */
.wa-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 700;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,0.38);
  transition: transform 0.35s var(--ease-out), background 0.2s;
}
.wa-fab:hover { background: var(--wa-dark); transform: scale(1.1) translateY(-4px); }
.wa-fab svg  { width: 26px; height: 26px; fill: white; }

/* ---- Custom cursor ---- */
#cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 9000;
  transform: translate(-50%,-50%);
  transition: transform 0.1s;
}
#cursorRing {
  position: fixed; width: 34px; height: 34px;
  border: 1.5px solid var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 8999;
  transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  opacity: 0.6;
}
body.cursor-hover #cursorRing { width: 52px; height: 52px; border-color: var(--gold-bright); opacity: 1; }

@media (pointer: coarse) {
  #cursor, #cursorRing { display: none; }
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 110px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--deep);
  color: var(--cream);
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0.5px;
  font-family: var(--font-ui);
  z-index: 7000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.toast.success { background: var(--gold); color: var(--dark); }
.toast.error   { background: #c0392b; }
.toast.show    { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.from-left  { transform: translateX(-44px); }
.reveal.from-right { transform: translateX(44px); }
.reveal.scale-in   { transform: scale(0.92); }
.reveal.visible    { opacity: 1; transform: translate(0) scale(1); }
.reveal.d1 { transition-delay: 0.10s; }
.reveal.d2 { transition-delay: 0.20s; }
.reveal.d3 { transition-delay: 0.32s; }
.reveal.d4 { transition-delay: 0.44s; }
.reveal.d5 { transition-delay: 0.58s; }

/* ---- Pages: hidden by default, router shows them ---- */
.page { display: none; }
.page.active { display: block; }
