/* ═══════════════════════════════════════════════════════════
   DONNU — Site institucional
   Estilo editorial de consultoria premium (registro Bain/Bridgewater):
   - Serif ceremonial para display
   - Respiro generoso (seções 120-160px)
   - Grids de 12 colunas editoriais
   - Números como protagonistas
   ═══════════════════════════════════════════════════════════ */

@import url('./colors_and_type.css');

/* ── Reset / base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--mid);
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ── Layout ─────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 40px; }
.container-text { max-width: 720px; margin: 0 auto; padding: 0 40px; }

.section { padding: 140px 0; position: relative; }
.section--navy { background: var(--navy); color: var(--white); overflow: hidden; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--hairline { border-top: 1px solid rgba(1,59,99,.08); }
.section--hairline-dark { border-top: 1px solid rgba(139,194,221,.12); }

.section-compact { padding: 96px 0; }

/* Grid pattern background for dark sections */
.bg-grid::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139,194,221,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,194,221,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}

/* Decorative ring */
.bg-ring::after {
  content: ''; position: absolute;
  right: -200px; top: 50%;
  transform: translateY(-50%);
  width: 720px; height: 720px;
  border-radius: 50%;
  border: 1px solid rgba(139,194,221,.1);
  pointer-events: none;
}

/* ── Typography classes ─────────────────────────────── */
.h-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 7.4vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--white);
  margin: 0;
}
.h-display em { font-style: italic; font-weight: 300; color: var(--pale); }

.h-page {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0;
}
.h-page em { font-style: italic; color: var(--pale); }

.h-section {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin: 0;
}
.h-section em { font-style: italic; font-weight: 300; }
.h-section--white { color: var(--white); }
.h-section--white em { color: var(--pale); }

.h-sub {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.25;
  color: var(--navy);
  margin: 0;
}
.h-sub em { font-style: italic; }

.lede {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--mid);
}
.lede--white { color: rgba(255,255,255,.78); }

.lead {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--mid);
  max-width: 620px;
}
.lead--white { color: rgba(255,255,255,.65); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow--muted { color: rgba(139,194,221,.7); }
.eyebrow--navy { color: var(--navy); }

.label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--on-dark { color: rgba(139,194,221,.7); }

.num-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.num-display--navy { color: var(--navy); }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--blue); color: var(--navy);
  padding: 16px 28px;
  border: 0; border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 48px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--pale); transform: translateY(-1px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(139,194,221,.35);
}
.btn--ghost:hover { background: rgba(139,194,221,.08); transform: translateY(-1px); }

.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover { background: var(--navy-m); }

.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  border-bottom: 1px solid rgba(1,59,99,.25);
  padding-bottom: 3px;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), gap .25s var(--ease);
}
.btn-link:hover { color: var(--navy-d); border-color: var(--navy); gap: 14px; }
.btn-link--on-dark { color: var(--white); border-bottom-color: rgba(139,194,221,.5); }
.btn-link--on-dark:hover { color: var(--pale); border-bottom-color: var(--pale); }

/* ── Navbar ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  padding: 14px 40px;
  background: rgba(1, 45, 74, .92);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(139,194,221,.14);
}
.nav--solid {
  background: var(--navy);
  border-bottom-color: rgba(139,194,221,.14);
}
.nav-wm {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.7rem;
  color: var(--white);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
.nav-wm .dot { color: var(--blue); margin-left: 1px; }
.nav-links {
  display: flex; gap: 40px;
  align-items: center;
}
.nav-links a {
  position: relative;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.92rem;
  color: rgba(255,255,255,.72);
  padding: 8px 0;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
}
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(139,194,221,.35);
  padding: 10px 22px;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.nav-cta:hover {
  background: var(--blue);
  color: var(--navy);
  border-color: var(--blue);
}

.nav-toggle {
  display: none;
  background: transparent; border: 0; color: var(--white);
  padding: 8px; cursor: pointer;
}

.nav-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--blue); z-index: 200;
  transition: width .1s linear;
}

/* Mobile menu — hidden on desktop by default */
.mobile-menu { display: none !important; }

/* Mobile nav */
@media (max-width: 860px) {
  .nav { padding: 16px 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu {
    display: flex !important;
    position: fixed; inset: 0;
    background: var(--navy);
    z-index: 99;
    padding: 100px 32px 40px;
    display: flex; flex-direction: column; gap: 24px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    overflow-y: auto;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu a {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 2rem;
    color: var(--white);
    padding: 8px 0;
    border-bottom: 1px solid rgba(139,194,221,.14);
  }
  .mobile-menu a em { font-style: italic; color: var(--blue); }
  .mobile-menu .btn { margin-top: 24px; justify-content: center; }
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--navy-d);
  color: rgba(255,255,255,.6);
  padding: 96px 0 32px;
  position: relative; overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(139,194,221,.12);
}
.footer-brand .nav-wm { font-size: 2rem; margin-bottom: 20px; }
.footer-brand p {
  font-size: 0.95rem; line-height: 1.75;
  color: rgba(255,255,255,.55);
  max-width: 320px;
  margin: 0;
}
.footer-col h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 0.95rem;
  color: rgba(255,255,255,.65);
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 0.78rem;
  color: rgba(255,255,255,.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* ── Reveal animation ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important; transform: none !important;
  }
}

/* ── Custom cursor for hero ─────────────────────────── */
.cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 10px; height: 10px;
  background: var(--blue);
  border-radius: 50%;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: opacity .3s var(--ease), transform .15s var(--ease);
  opacity: 0;
}
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 40px; height: 40px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: opacity .3s var(--ease), transform .4s var(--ease), width .3s var(--ease), height .3s var(--ease);
  opacity: 0;
}
.cursor-active .cursor-dot,
.cursor-active .cursor-ring { opacity: 1; }
.cursor-hover .cursor-ring { width: 60px; height: 60px; }
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── Utilities ──────────────────────────────────────── */
.hairline { height: 1px; background: rgba(1,59,99,.08); border: 0; margin: 0; }
.hairline--dark { background: rgba(139,194,221,.14); }
.hairline--vert { width: 1px; height: 100%; background: rgba(1,59,99,.08); }

.num-id {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--blue);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}
