/* ═══════════════════════════════════════
   BASE — Tokens, reset, utilitários
═══════════════════════════════════════ */
:root {
  /* Cores — sistema restrito, 4 cores */
  --p-deep:   #0A2E2F;
  --p-mid:    #0F3D3E;
  --p-light:  #174F50;
  --p-bright: #1E6364;
  --sand:     #F4EFE7;
  --sand-60:  rgba(244,239,231,0.60);
  --sand-35:  rgba(244,239,231,0.50);
  --sand-12:  rgba(244,239,231,0.12);
  --gold:     #C8A96B;
  --gold-40:  rgba(200,169,107,0.40);
  --gold-15:  rgba(200,169,107,0.15);
  --gold-06:  rgba(200,169,107,0.06);
  --graphite: #1A1A1A;
  --border:   rgba(244,239,231,0.09);
  --border-s: rgba(244,239,231,0.18);

  /* Tipografia */
  --f-sans:   'Manrope', system-ui, sans-serif;
  --f-serif:  'Cormorant Garamond', Georgia, serif;

  /* Easing */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.77, 0, 0.175, 1);

  /* Espaçamento */
  --section-pad: 120px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--p-deep) !important;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--p-deep) !important;
  color: var(--sand) !important;
  font-family: var(--f-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

::selection { background: var(--gold); color: var(--graphite); }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ── Acessibilidade ──────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--graphite);
  font-weight: 700;
  font-size: .8rem;
  border-radius: 4px;
}
.skip-link:focus { top: 16px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .rv, .gold-line {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .h1-line span { transform: none !important; }
  .hero-h1.revealed .h1-line span { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Grain ───────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9000;
}

/* ── Custom cursor ───────────────────── */
#cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: normal;
}
#cursor-dot {
  position: absolute;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .2s var(--ease), height .2s var(--ease), opacity .2s;
}
#cursor-ring {
  position: absolute;
  width: 32px; height: 32px;
  border: 1px solid var(--gold-40);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .4s var(--ease), height .4s var(--ease),
              border-color .3s, opacity .3s, background .3s;
}
#cursor.hover #cursor-dot  { width: 8px; height: 8px; opacity: .6; }
#cursor.hover #cursor-ring { width: 48px; height: 48px; border-color: var(--gold-40); }
#cursor.click #cursor-dot  { width: 4px; height: 4px; }
#cursor.click #cursor-ring { width: 24px; height: 24px; }
@media (hover: none) { #cursor { display: none; } }

/* ── Layout ──────────────────────────── */
.wrap { width: min(1200px, 92%); margin-inline: auto; }

/* ── Reveal ──────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.rv.in { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: .08s; }
[data-d="2"] { transition-delay: .16s; }
[data-d="3"] { transition-delay: .24s; }
[data-d="4"] { transition-delay: .32s; }
[data-d="5"] { transition-delay: .40s; }
[data-d="6"] { transition-delay: .48s; }

/* ── Hero headline word reveal ───────── */
.h1-line { display: block; overflow: hidden; }
.h1-line span {
  display: block;
  transform: translateY(108%);
  transition: transform .85s var(--ease);
}
.hero-h1.revealed .h1-line:nth-child(1) span { transform: translateY(0); transition-delay: .05s; }
.hero-h1.revealed .h1-line:nth-child(2) span { transform: translateY(0); transition-delay: .17s; }
.hero-h1.revealed .h1-line:nth-child(3) span { transform: translateY(0); transition-delay: .29s; }

/* ── Gold line grow ──────────────────── */
.gold-line {
  display: block;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .9s var(--ease);
  margin-top: 8px;
}
.gold-line.in { width: 40px; }

/* ── Labels ──────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-sans);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.label::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── Section ─────────────────────────── */
.section { padding: var(--section-pad) 0; border-bottom: 1px solid var(--border); }

/* ── Two-col helper ──────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 72px;
  align-items: start;
}

/* ── Serif pull quote ────────────────── */
.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}

/* ── Section heading ─────────────────── */
.s-head {
  font-family: var(--f-sans);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: var(--sand);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.s-head em { font-style: italic; font-weight: 700; color: var(--gold); }

/* ── Body text ───────────────────────── */
.s-body {
  font-size: .95rem;
  color: var(--sand-60);
  line-height: 1.88;
}
.s-body + .s-body { margin-top: 16px; }
.s-body em { font-style: italic; color: var(--sand); font-weight: 400; }

/* ── Inline link CTA ─────────────────── */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap .3s var(--ease), color .3s;
}
.link-cta::after { content: '→'; font-size: .95rem; transition: transform .3s var(--ease); }
.link-cta:hover  { gap: 14px; color: var(--sand); }
.link-cta:hover::after { transform: translateX(3px); }

/* ── Primary button ──────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--graphite);
  background: var(--gold);
  padding: 17px 38px;
  border: none;
  border-radius: 4px;
  transition: background .3s, box-shadow .3s;
  position: relative;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--sand);
  box-shadow: 0 12px 40px rgba(200,169,107,.22);
}
.btn-primary .arr { transition: transform .3s var(--ease); }
.btn-primary:hover .arr { transform: translateX(5px); }

/* ── Ghost button ────────────────────── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sand-35);
  transition: color .3s;
  position: relative;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--sand);
  transition: width .4s var(--ease);
}
.btn-ghost:hover { color: var(--sand); }
.btn-ghost:hover::after { width: 100%; }

/* ── WhatsApp float ──────────────────── */
#wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 400;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.35);
  opacity: 0;
  transform: scale(.75) translateY(8px);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease),
              box-shadow .3s;
}
#wa-float.show { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
#wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(37,211,102,.45); }
#wa-float svg  { width: 26px; height: 26px; fill: #fff; }
