/* ============================================================
   Nayanna Romero Eventos — Site
   Foundations + componentes (recriação editorial usando NR DS)
   ============================================================ */

:root {
  /* Paleta — Cinco tons, uma intenção
     Maio 2026: fundo principal migrado para Linho Pálido (#FAF6EC) — leveza editorial. */
  --nr-bone:           #FAF6EC;   /* fundo principal — linho pálido (bone calibrado) */
  --nr-marshmallow:    #FAF6EC;   /* alias do bone para compatibilidade com o DS NR v2 */
  --nr-marshmallow-soft: #F4EFE2; /* tom de papel — usado em section-soft */
  --nr-marshmallow-deep: #E6DDC7; /* creme saturado para frames e contraste */
  --nr-marshmallow-legacy: #ECE6D7; /* tom histórico do brandbook v1 */
  --nr-foxtrot: #4B342A;
  --nr-foxtrot-soft: #6E5346;
  --nr-red-riding: #551C25;
  --nr-red-riding-deep: #3F141B;
  --nr-red-riding-glow: #7A2A36;
  --nr-glamour-gold: #BD9456;
  --nr-glamour-gold-soft: #D6B481;
  --nr-glamour-gold-deep: #9C7A40;
  --nr-gunpowder: #1A1818;
  --nr-gunpowder-soft: #2E2A28;

  --nr-fg: var(--nr-gunpowder);
  --nr-fg-soft: #4B423E;
  --nr-fg-mute: #8A7E73;
  --nr-rule: #C8BEAA;
  --nr-rule-strong: #8A7E73;

  /* Quatro vozes + Mono — Didot primary, fallbacks via Google Fonts */
  --font-display: 'Didot', 'GFS Didot', 'Bodoni Moda', 'Italiana', 'Didot LT STD', 'Cormorant Garamond', serif;
  --font-italiana: 'Italiana', 'Didot', serif;
  --font-whisper: 'Cormorant Garamond', 'EB Garamond', serif;
  --font-script: 'Pinyon Script', cursive;
  --font-body: 'Jost', system-ui, sans-serif;
  --font-label: 'Cinzel', serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  /* Tracking escalonado — densidade editorial */
  --nr-track-display: -0.02em;
  --nr-track-title: -0.015em;
  --nr-track-sub: -0.01em;
  --nr-track-body: 0;

  --ease-editorial: cubic-bezier(0.22, 0.61, 0.36, 1);
  --margin-page: clamp(24px, 6vw, 96px);
  --content-max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--nr-marshmallow);
  color: var(--nr-fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: var(--nr-track-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--nr-red-riding); color: var(--nr-marshmallow); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(250, 246, 236, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nr-rule);
  height: 76px;
}

/* Brand — logo image (compact stacked variant) */
.topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--nr-fg);
  line-height: 1;
}
.topbar .brand-logo {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}
.topbar .nr-mono {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: currentColor;
  display: inline-block;
}
.topbar .nr-mono .ln {
  display: inline-block;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(
    to bottom,
    var(--nr-fg) 0,
    var(--nr-fg) 47%,
    transparent 47%,
    transparent 53%,
    var(--nr-fg) 53%,
    var(--nr-fg) 100%
  );
}
.topbar .brand-eventos {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--nr-fg-mute);
  padding-left: 14px;
  border-left: 1px solid var(--nr-rule);
}

/* Nav */
.topbar nav {
  display: flex;
  gap: 32px;
  justify-self: center;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.topbar nav a {
  color: var(--nr-fg-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color .32s var(--ease-editorial), border-color .32s var(--ease-editorial);
}
.topbar nav a:hover { color: var(--nr-glamour-gold-deep); }
.topbar nav a.active {
  color: var(--nr-fg);
  border-bottom-color: var(--nr-glamour-gold);
}

/* CTA — gold outlined link (editorial, not heavy) */
.topbar .cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--nr-fg);
  border: 1px solid var(--nr-glamour-gold);
  padding: 11px 18px;
  white-space: nowrap;
  transition: color .32s var(--ease-editorial), background .32s var(--ease-editorial), border-color .32s var(--ease-editorial);
}
.topbar .cta::after { content: "→"; font-family: var(--font-body); font-weight: 300; }
.topbar .cta:hover {
  color: var(--nr-marshmallow);
  background: var(--nr-glamour-gold-deep);
  border-color: var(--nr-glamour-gold-deep);
}

@media (max-width: 1100px) {
  .topbar { gap: 18px; }
  .topbar nav { gap: 22px; font-size: 10px; letter-spacing: 0.28em; }
}
@media (max-width: 900px) {
  .topbar { grid-template-columns: auto 1fr auto; padding: 10px 20px; height: 64px; gap: 12px; }
  .topbar nav { display: none; }
  .topbar .brand-eventos { display: none; }
  .topbar .brand-logo { height: 38px; }
  .topbar .cta { padding: 9px 14px; font-size: 9.5px; letter-spacing: 0.28em; }
}

/* ============================================================
   PAGE WRAPPERS
   ============================================================ */
main { padding-top: 76px; }
@media (max-width: 900px) { main { padding-top: 64px; } }
.page-pad { padding-left: var(--margin-page); padding-right: var(--margin-page); }
.wrap { max-width: var(--content-max); margin-left: auto; margin-right: auto; }

/* ============================================================
   TYPE UTILITIES
   ============================================================ */
.display-xl { font-family: var(--font-display); font-weight: 700; font-size: clamp(64px, 11vw, 168px); line-height: 0.92; letter-spacing: var(--nr-track-display); margin: 0; }
.display-lg { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 7.5vw, 120px); line-height: 0.96; letter-spacing: var(--nr-track-display); margin: 0; }
.display-md { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5vw, 80px); line-height: 1.02; letter-spacing: var(--nr-track-title); margin: 0; }
.display-sm { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 48px); line-height: 1.08; letter-spacing: var(--nr-track-title); margin: 0; }

.whisper { font-family: var(--font-whisper); font-style: italic; font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; letter-spacing: var(--nr-track-sub); color: var(--nr-fg-soft); }
.whisper-lg { font-family: var(--font-whisper); font-style: italic; font-weight: 500; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.4; letter-spacing: var(--nr-track-sub); color: var(--nr-fg-soft); }
.script { font-family: var(--font-whisper); font-style: italic; font-weight: 400; line-height: 1.1; color: var(--nr-glamour-gold-deep); letter-spacing: -0.005em; }

.label {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--nr-fg-mute);
}
.label-gold { color: var(--nr-glamour-gold-deep); }
.label-burgundy { color: var(--nr-red-riding); }

.body-lg { font-family: var(--font-body); font-weight: 400; font-size: 18px; line-height: 1.65; color: var(--nr-fg-soft); }
.body { font-family: var(--font-body); font-weight: 400; font-size: 15.5px; line-height: 1.7; color: var(--nr-fg-soft); }
.body-sm { font-family: var(--font-body); font-weight: 400; font-size: 13.5px; line-height: 1.6; color: var(--nr-fg-soft); }

/* Mono — micro / metadata */
.mono { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: 0.04em; color: var(--nr-fg-mute); }
.mono-sm { font-family: var(--font-mono); font-weight: 400; font-size: 10px; letter-spacing: 0.04em; color: var(--nr-fg-mute); }

/* italic decorator inside display — italic of the display font, paired with Didot */
.italic-acc { font-family: var(--font-display); font-style: italic; font-weight: 500; letter-spacing: var(--nr-track-title); }
.acc-gold { color: var(--nr-glamour-gold-deep); }
.acc-burg { color: var(--nr-red-riding); }

/* ============================================================
   DIVIDER — fio com losango central
   ============================================================ */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--nr-glamour-gold-deep);
}
.divider::before,
.divider::after {
  content: "";
  width: 80px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.divider .dot {
  width: 5px;
  height: 5px;
  background: currentColor;
  transform: rotate(45deg);
}
.divider.wide::before,
.divider.wide::after { width: 140px; }
.on-dark { color: var(--nr-glamour-gold); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 18px 30px;
  transition: all .32s var(--ease-editorial);
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--nr-red-riding); color: var(--nr-marshmallow); }
.btn-primary:hover { background: var(--nr-red-riding-deep); }
.btn-ink { background: var(--nr-gunpowder); color: var(--nr-marshmallow); }
.btn-ink:hover { background: var(--nr-gunpowder-soft); }
.btn-outline { background: transparent; color: var(--nr-fg); border: 1px solid var(--nr-fg); }
.btn-outline:hover { background: var(--nr-fg); color: var(--nr-marshmallow); }
.btn-gold {
  background: transparent;
  color: var(--nr-fg);
  border-bottom: 1px solid var(--nr-glamour-gold);
  padding: 8px 0 6px;
}
.btn-gold:hover { color: var(--nr-glamour-gold-deep); }
.btn-arrow::after { content: "→"; font-family: var(--font-body); margin-left: 4px; }

/* ============================================================
   SECTION CHROME
   ============================================================ */
.section { padding: clamp(80px, 12vw, 160px) var(--margin-page); }
.section.tight { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.section-soft { background: var(--nr-marshmallow-soft); }
.section-cream-deep { background: var(--nr-marshmallow-deep); }
.section-blush { background: #E5D7BC; }
.section-burgundy { background: var(--nr-red-riding); color: var(--nr-marshmallow); }
.section-dark { background: var(--nr-gunpowder); color: var(--nr-marshmallow); }
.section-earth { background: var(--nr-foxtrot); color: var(--nr-marshmallow); }
.section-gold-tint { background: linear-gradient(180deg, var(--nr-marshmallow-soft) 0%, #F0E6D0 100%); }

/* Card-level color accents that work inside light sections */
.accent-card { background: var(--nr-foxtrot); color: var(--nr-marshmallow); }
.accent-card.gold { background: var(--nr-glamour-gold); color: var(--nr-gunpowder); }
.accent-card.burgundy { background: var(--nr-red-riding); color: var(--nr-marshmallow); }
.accent-card.ink { background: var(--nr-gunpowder); color: var(--nr-marshmallow); }

/* Gold rule — thicker, more present than divider */
.gold-rule {
  height: 1px;
  background: var(--nr-glamour-gold);
  border: none;
  margin: 0;
  width: 100%;
}
.gold-rule.thick { height: 2px; }
.gold-rule.short { width: 56px; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 72px;
}
.section-head .label { color: var(--nr-glamour-gold-deep); }
.section-burgundy .section-head .label,
.section-dark .section-head .label,
.section-earth .section-head .label { color: var(--nr-glamour-gold); }
.section-burgundy .whisper,
.section-dark .whisper,
.section-earth .whisper { color: rgba(250,246,236,.7); }
.section-earth .label-gold { color: var(--nr-glamour-gold); }
.section-earth h2, .section-earth h3 { color: var(--nr-marshmallow); }
.section-earth .body, .section-earth .body-lg, .section-earth .body-sm { color: rgba(250,246,236,0.85); }
.section-earth .whisper-lg, .section-earth .whisper { color: rgba(250,246,236,0.88); }
.section-earth strong, .section-earth em { color: var(--nr-marshmallow); }
.section-earth .label { color: var(--nr-glamour-gold); }
.section-earth .italic-acc.acc-burg { color: var(--nr-glamour-gold); }
.section-earth .divider { color: var(--nr-glamour-gold); }
/* Override component text colors in earth sections */
.section-earth .curadoria-list li { border-top-color: rgba(250,246,236,0.18); }
.section-earth .curadoria-list li:last-child { border-bottom-color: rgba(250,246,236,0.18); }
.section-earth .curadoria-list .idx { color: var(--nr-glamour-gold); }
.section-earth .curadoria-list .title { color: var(--nr-marshmallow); }
.section-earth .curadoria-list .desc { color: rgba(250,246,236,0.78); }
.section-earth .frame-cap { color: var(--nr-marshmallow); }
.section-earth p { color: rgba(250,246,236,0.85); }
.section-earth ul li { color: rgba(250,246,236,0.85); }
.section-earth .pillar p { color: rgba(250,246,236,0.85); }
.section-earth .pillar h3 { color: var(--nr-marshmallow); }
.section-earth .formacao-item h3 { color: var(--nr-marshmallow); }
.section-earth .formacao-item .inst { color: rgba(250,246,236,0.78); }
.section-earth .num-card .cap { color: rgba(250,246,236,0.78); }
.section-burgundy .body, .section-burgundy .body-lg { color: rgba(250,246,236,0.82); }
.section-dark .body, .section-dark .body-lg { color: rgba(250,246,236,0.82); }
.section-cream-deep { /* slightly more contrast on dark text */ }
.section-cream-deep .frame { background: var(--nr-marshmallow); }

/* ============================================================
   FOLIATION — paginação editorial
   ============================================================ */
.foliation {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nr-fg-mute);
}
.foliation .dot { width: 3px; height: 3px; background: var(--nr-glamour-gold); transform: rotate(45deg); }

/* ============================================================
   IMAGE FRAME — editorial com legenda
   ============================================================ */
.frame {
  position: relative;
  background: var(--nr-marshmallow-deep);
  overflow: hidden;
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-editorial); }
.frame:hover img { transform: scale(1.03); }
.frame .frame-num {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--nr-marshmallow);
  background: rgba(26,24,24,0.45);
  backdrop-filter: blur(4px);
  padding: 7px 12px;
  z-index: 2;
}
.frame .frame-cap {
  position: absolute;
  left: 18px; bottom: 18px;
  color: var(--nr-marshmallow);
  font-family: var(--font-whisper);
  font-style: italic;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  z-index: 2;
  max-width: 70%;
}

/* ============================================================
   FOOTER
   ============================================================ */
/* Footer */
.footer {
  padding: 96px var(--margin-page) 36px;
  background: var(--nr-gunpowder);
  color: var(--nr-marshmallow);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(250,246,236,0.14);
  max-width: var(--content-max);
  margin: 0 auto;
}
.footer-brand .brand-logo {
  display: block;
  height: 64px;
  width: auto;
  margin-bottom: 4px;
}
.footer-brand .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--nr-marshmallow);
}
.footer-brand .small {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  margin-top: 6px;
  color: rgba(250,246,236,0.55);
}
.footer-brand .tag {
  font-family: var(--font-whisper);
  font-style: italic;
  font-size: 16px;
  color: rgba(250,246,236,0.65);
  line-height: 1.5;
  margin-top: 18px;
  max-width: 320px;
}
.footer h4 {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--nr-glamour-gold);
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-family: var(--font-body); font-weight: 300; font-size: 14px; }
.footer a { color: var(--nr-marshmallow); opacity: 0.78; transition: color .32s var(--ease-editorial), opacity .32s var(--ease-editorial); }
.footer a:hover { color: var(--nr-glamour-gold); opacity: 1; }
.footer-meta {
  max-width: var(--content-max);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(250,246,236,0.45);
}
.footer-meta .divider { flex: 1; max-width: 200px; }
.footer-meta .divider::before, .footer-meta .divider::after { background: rgba(250,246,236,0.3); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-meta { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================================
   FORM (used in contato)
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--nr-fg-mute);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-whisper);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--nr-rule);
  padding: 8px 0 12px;
  color: var(--nr-fg);
  outline: none;
  transition: border-color .32s var(--ease-editorial);
  border-radius: 0;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--nr-red-riding); }
.field input::placeholder,
.field textarea::placeholder { color: var(--nr-fg-mute); opacity: 0.7; }
.field textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   PAGE HEAD (used on inner pages)
   ============================================================ */
.page-head {
  padding: clamp(60px, 9vw, 120px) var(--margin-page) clamp(48px, 6vw, 80px);
  text-align: center;
  border-bottom: 1px solid var(--nr-rule);
  background: var(--nr-marshmallow);
}
.page-head .label { color: var(--nr-glamour-gold-deep); margin-bottom: 18px; }
.page-head h1 { margin: 0 0 18px; }
.page-head .whisper { max-width: 620px; margin: 0 auto; }

/* ============================================================
   SCROLL ANIM (subtle entrance)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s var(--ease-editorial), transform 1.2s var(--ease-editorial);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* touch */

/* Brand wordmark — fragmented logo for large dark sections */
.brand-wordmark {
  display: flex;
  justify-content: center;
  margin: 32px 0 0;
}
.brand-wordmark img {
  display: block;
  height: clamp(120px, 14vw, 200px);
  width: auto;
  opacity: 0.96;
}

/* ============================================================
   NR Wordmark (CSS-rendered, design-system v2)
   Fragmented wordmark with hairline horizontal cut on each line.
   Use inside .section-burgundy / .section-dark / .section-earth.
   ============================================================ */
.nr-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.012em;
  text-align: center;
  font-size: clamp(64px, 9vw, 132px);
  color: var(--nr-marshmallow);
  user-select: none;
}
.nr-wordmark .ln {
  display: block;
  color: transparent;
  background-color: currentColor;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(
    to bottom,
    currentColor 0%,
    currentColor 46%,
    transparent 46%,
    transparent 54%,
    currentColor 54%,
    currentColor 100%
  );
}
.nr-wordmark .small {
  display: block;
  font-family: var(--font-label);
  font-size: 0.13em;
  font-weight: 500;
  letter-spacing: 0.4em;
  line-height: 1;
  margin: 0.18em 0 0.18em;
  color: var(--nr-glamour-gold);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}
.nr-wordmark.on-cream { color: var(--nr-fg); }
.nr-wordmark.on-cream .small { color: var(--nr-glamour-gold-deep); }
