/* ══════════════════════════════════════════════════════════════
   VALORA — main.css
   Quiet luxury · navy + brushed gold · PT-BR landing
   ══════════════════════════════════════════════════════════════ */

/* ---------- Tokens ---------- */
:root {
  --navy-950: #0A1220;
  --navy-900: #0D1B2E;
  --navy-800: #12233C;
  --navy-700: #1B3050;
  --navy-line: #24354f;

  --gold-500: #C9A96A;
  --gold-400: #D6BA80;
  --gold-300: #E5CFA3;
  --gold-dim: rgba(201, 169, 106, .38);

  --ivory: #F4F1EA;
  --ivory-deep: #ECE7DC;
  --ink: #101c2c;
  --ink-soft: #3c4a5e;
  --mist: rgba(244, 241, 234, .72);
  --mist-dim: rgba(244, 241, 234, .45);

  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', system-ui, -apple-system, sans-serif;

  --ease-lux: cubic-bezier(.22, 1, .36, 1);
  --head-h: 84px;
  --pad-x: clamp(24px, 6vw, 96px);
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--navy-900);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.78;
  letter-spacing: .006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: normal; }
::selection { background: var(--gold-500); color: var(--navy-950); }

.container {
  width: min(1240px, 100%);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------- Utilities ---------- */
.kicker {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-500);
  display: flex;
  align-items: center;
  gap: 18px;
}
.kicker::before {
  content: "";
  width: 44px; height: 1px;
  background: var(--gold-dim);
  flex: none;
}
.kicker--navy { color: #8c7343; }

.rule {
  display: block;
  width: 72px; height: 1px;
  background: var(--gold-dim);
}
.rule--gold { background: linear-gradient(90deg, var(--gold-500), rgba(201,169,106,0)); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 17px 34px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: color .5s var(--ease-lux), border-color .5s var(--ease-lux), background-color .5s var(--ease-lux), transform .5s var(--ease-lux);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* gold sheen sweep */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.34) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .9s var(--ease-lux);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(110%); }

.btn--solid {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500) 55%, #B08F52);
  color: var(--navy-950);
}
.btn--solid:hover { background: linear-gradient(135deg, var(--gold-300), var(--gold-400) 55%, var(--gold-500)); }

.btn--line {
  border-color: var(--gold-dim);
  color: var(--gold-300);
  background: transparent;
}
.btn--line:hover { border-color: var(--gold-500); color: var(--gold-300); background: rgba(201,169,106,.06); }

.btn--lg { padding: 21px 48px; font-size: 13px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader__inner { text-align: center; }
.preloader__word {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 400;
  letter-spacing: .46em;
  text-indent: .46em; /* optical centering */
  color: var(--gold-300);
}
.preloader__word .char { display: inline-block; opacity: 0; transform: translateY(14px); }
.preloader__rule {
  display: block;
  margin: 26px auto 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

/* ---------- Header ---------- */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 40px;
  padding-inline: var(--pad-x);
  transition: background-color .6s var(--ease-lux), border-color .6s var(--ease-lux), height .6s var(--ease-lux);
  border-bottom: 1px solid transparent;
}
.site-head.is-scrolled {
  height: 68px;
  background: rgba(10, 18, 32, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(201,169,106,.14);
}
.site-head.is-hidden { transform: translateY(-100%); }
.site-head { transition: background-color .6s var(--ease-lux), border-color .6s var(--ease-lux), height .6s var(--ease-lux), transform .6s var(--ease-lux); }

.site-head__brand {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .34em;
  color: var(--gold-300);
  margin-right: auto;
}
.site-head__nav { display: flex; gap: 36px; }
.site-head__nav a {
  position: relative;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
  padding: 6px 0;
  transition: color .4s var(--ease-lux);
}
.site-head__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-lux);
}
.site-head__nav a:hover { color: var(--gold-300); }
.site-head__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.site-head__cta { padding: 13px 26px; }

.site-head__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.site-head__burger span {
  display: block;
  width: 26px; height: 1px;
  margin-inline: auto;
  background: var(--gold-300);
  transition: transform .5s var(--ease-lux), opacity .4s;
}
.site-head__burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.site-head__burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Mobile nav overlay ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 18, 32, .97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease-lux), visibility 0s .6s;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.nav-overlay__links { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.nav-overlay__links a {
  font-family: var(--font-serif);
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(20px);
  transition: color .4s;
}
.nav-overlay__links a:hover { color: var(--gold-300); }
.nav-overlay.is-open .nav-overlay__links a {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-lux), transform .7s var(--ease-lux), color .4s;
}
.nav-overlay.is-open .nav-overlay__links a:nth-child(1) { transition-delay: .10s; }
.nav-overlay.is-open .nav-overlay__links a:nth-child(2) { transition-delay: .18s; }
.nav-overlay.is-open .nav-overlay__links a:nth-child(3) { transition-delay: .26s; }
.nav-overlay.is-open .nav-overlay__links a:nth-child(4) { transition-delay: .34s; }
.nav-overlay__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mist-dim);
  text-align: center;
  padding-inline: 28px;
  max-width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--head-h) + 24px) var(--pad-x) 110px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -12% 0;
  background:
    radial-gradient(ellipse 70% 46% at 50% 12%, rgba(201,169,106,.16), transparent 62%),
    radial-gradient(ellipse 120% 90% at 50% 115%, #060d18 20%, transparent 70%),
    linear-gradient(180deg, #0C1929 0%, var(--navy-900) 42%, #0B1626 100%);
  will-change: transform;
}
.hero__grain {
  position: absolute;
  inset: 0;
  background-image: image-set(
    url("../assets/img/grain-navy.avif") type("image/avif"),
    url("../assets/img/grain-navy.webp") type("image/webp"));
  background-size: cover;
  background-position: center;
  opacity: .30;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.hero__logo {
  width: clamp(230px, 36vh, 360px);
  margin-bottom: clamp(10px, 2.4vh, 30px);
  /* transparent-PNG emblem floats over the backdrop with a soft cast shadow */
  filter:
    drop-shadow(0 18px 26px rgba(4, 9, 18, .55))
    drop-shadow(0 38px 60px rgba(4, 9, 18, .42));
  will-change: transform;
}
.hero__logo img { width: 100%; }

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6.2vw, 74px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: .005em;
  color: var(--ivory);
  max-width: 16ch;
}

.hero__sub {
  margin-top: 26px;
  max-width: 58ch;
  font-size: clamp(13.5px, 1.35vw, 15.5px);
  line-height: 1.75;
  color: var(--mist);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero__sub-kicker {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .46em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.hero__actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.hero__meta {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--mist-dim);
}
.hero__meta i {
  width: 46px; height: 1px;
  background: rgba(201,169,106,.25);
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px; height: 76px;
  background: linear-gradient(180deg, transparent, var(--gold-500));
  transform-origin: top;
  animation: cue 2.6s var(--ease-lux) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  70%  { transform: scaleY(1); opacity: 0; }
  100% { transform: scaleY(0); opacity: 0; }
}

/* ---------- Split-text masks ---------- */
[data-split] .line {
  display: block;
  overflow: hidden;
  padding-block: .08em;
  margin-block: -.08em;
}
[data-split] .line > span {
  display: inline-block;
  will-change: transform;
}

/* ---------- 2 · A Tese ---------- */
.tese {
  position: relative;
  background-color: var(--ivory);
  background-image: image-set(
    url("../assets/img/tile-ivory.avif") type("image/avif"),
    url("../assets/img/tile-ivory.webp") type("image/webp"));
  background-size: 560px auto;
  color: var(--ink);
  padding-block: clamp(110px, 16vh, 190px);
}
/* soften the tile so text dominates */
.tese::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(244,241,234,.86), rgba(244,241,234,.72) 40%, rgba(244,241,234,.9));
  pointer-events: none;
}
.tese .container { position: relative; }

.tese__grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.tese__title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 600;
  line-height: 1.16;
  color: var(--ink);
  text-wrap: balance;
}
.tese__aside { padding-top: 14px; }
.tese__aside .rule { margin-bottom: 30px; background: linear-gradient(90deg, #B08F52, rgba(176,143,82,0)); }
.tese__lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.85;
  color: var(--ink-soft);
}
.tese__lead em {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- 3 · O Ecossistema ---------- */
.eco {
  position: relative;
  background-color: var(--navy-900);
  background-image: image-set(
    url("../assets/img/tile-navy.avif") type("image/avif"),
    url("../assets/img/tile-navy.webp") type("image/webp"));
  background-size: 560px auto;
  padding-top: clamp(110px, 16vh, 190px);
  overflow: hidden;
}
.eco::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,27,46,.62), rgba(13,27,46,.86) 55%, var(--navy-950));
  pointer-events: none;
}
.eco .container { position: relative; }

.eco__title {
  margin-top: 54px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 500;
  line-height: 1.16;
  max-width: 22ch;
  text-wrap: balance;
}

.eco__intro {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 84px);
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--mist);
  max-width: 1080px;
}

/* Pillars */
.pillars {
  margin-top: clamp(70px, 10vh, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.pillar {
  position: relative;
  background: linear-gradient(180deg, rgba(18,35,60,.55), rgba(10,18,32,.72));
  border: 1px solid rgba(201,169,106,.16);
  padding: clamp(36px, 4vw, 56px) clamp(28px, 3vw, 44px) clamp(40px, 4.6vw, 62px);
  transition: transform .8s var(--ease-lux), border-color .8s var(--ease-lux), box-shadow .8s var(--ease-lux);
  will-change: transform;
}
.pillar:hover {
  transform: translateY(-12px);
  border-color: rgba(201,169,106,.28);
  box-shadow: 0 34px 66px -26px rgba(4, 9, 18, .8);
}
/* gold accent that shimmers ALONG the border edge (not across the face) */
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(115deg,
    transparent 10%,
    rgba(201,169,106,.12) 32%,
    var(--gold-300) 50%,
    rgba(201,169,106,.12) 68%,
    transparent 90%);
  background-size: 260% 100%;
  background-position: 160% 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .6s var(--ease-lux);
  pointer-events: none;
}
.pillar:hover::before {
  opacity: 1;
  animation: pillarShimmer 2.6s var(--ease-lux) infinite;
}
@keyframes pillarShimmer {
  0%   { background-position: 160% 0; }
  100% { background-position: -90% 0; }
}

.pillar__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 58px);
  font-weight: 400;
  line-height: 1;
  color: var(--gold-500);
}
.pillar__label {
  display: block;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--mist-dim);
}
.pillar h3 {
  margin-top: 26px;
  font-family: var(--font-serif);
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ivory);
}

/* Banca */
.eco__banca {
  margin-top: clamp(70px, 10vh, 110px);
  max-width: 780px;
}
.eco__banca .rule { margin-bottom: 30px; }
.eco__banca p {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--mist);
}
.eco__banca strong { color: var(--gold-300); font-weight: 500; }

/* Statement */
.eco__statement {
  position: relative;
  margin-top: clamp(90px, 14vh, 160px);
  padding: clamp(110px, 16vh, 190px) var(--pad-x);
  background: var(--navy-950);
  border-top: 1px solid rgba(201,169,106,.12);
  text-align: center;
}
.eco__statement p {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.3;
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}
.eco__statement .word { color: rgba(244,241,234,.16); }

/* ---------- 4 · Contato ---------- */
.contato {
  position: relative;
  background: var(--navy-950);
  padding-top: clamp(100px, 15vh, 170px);
  text-align: center;
}
.contato .kicker { justify-content: center; }
.contato .kicker::after {
  content: "";
  width: 44px; height: 1px;
  background: var(--gold-dim);
  flex: none;
}

.contato__title {
  margin-top: 44px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.6vw, 70px);
  font-weight: 500;
  line-height: 1.14;
}

.contato__lead {
  margin: 28px auto 0;
  max-width: 44ch;
  font-size: 16px;
  color: var(--mist);
}

.contato__actions {
  margin-top: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* Instagram contact button */
.ig-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 30px 16px 22px;
  border: 1px solid rgba(201,169,106,.28);
  background: linear-gradient(180deg, rgba(18,35,60,.5), rgba(10,18,32,.66));
  text-align: left;
  overflow: hidden;
  transition: transform .5s var(--ease-lux), border-color .5s var(--ease-lux), box-shadow .5s var(--ease-lux);
  will-change: transform;
}
.ig-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(201,169,106,.55);
  box-shadow: 0 22px 44px -20px rgba(4, 9, 18, .85);
}
.ig-btn__icon {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 7px;
  transition: transform .5s var(--ease-lux);
}
.ig-btn:hover .ig-btn__icon { transform: scale(1.06); }
.ig-btn__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.ig-btn__eyebrow {
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--mist-dim);
}
.ig-btn__handle {
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--ivory);
}
.ig-btn:hover .ig-btn__handle { color: var(--gold-300); }

.contato__bar {
  margin-top: clamp(90px, 13vh, 150px);
  border-top: 1px solid rgba(201,169,106,.12);
  padding: 34px var(--pad-x) 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.contato__brand {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .34em;
  color: var(--gold-300);
}
.contato__legal {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist-dim);
}

/* ---------- Layered sections (floating "sheets") ---------- */
/* Increasing z-index puts each later section physically on top of the
   one before it. The section above overhangs the seam, so its shadow
   falls DOWN onto the top of the section that follows — an inset
   shadow set into the incoming section's own top edge, not a shadow
   bleeding upward into the section that's ending. A 1px lit rim sits
   right at the seam to read as the raised edge catching light. */
.hero { z-index: 1; }
.tese { z-index: 2; }
.eco { z-index: 3; }
.contato { z-index: 4; }

.tese {
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .55),
    inset 0 58px 80px -46px rgba(4, 9, 18, .72);
}
.eco {
  box-shadow:
    inset 0 1px 0 0 rgba(201, 169, 106, .18),
    inset 0 60px 90px -44px rgba(2, 5, 12, .95);
}
.contato {
  box-shadow:
    inset 0 1px 0 0 rgba(201, 169, 106, .16),
    inset 0 60px 90px -44px rgba(2, 5, 12, .95);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-head__nav, .site-head__cta { display: none; }
  .site-head__burger { display: flex; }

  .tese__grid { grid-template-columns: 1fr; gap: 44px; }
  .eco__intro { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 14px; }
  .hero__meta i { width: 22px; }
}

@media (max-width: 560px) {
  .hero { padding-bottom: 130px; }
  .hero__meta { flex-direction: column; gap: 8px; }
  .hero__meta i { display: none; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .contato__channels { flex-direction: column; }
  .contato__channels i { display: none; }
  .contato__bar { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__cue { display: none; }
  .preloader { display: none; }
  .eco__statement .word { color: inherit; }
}
