/* ============================================================
   LP Dan Barros — Sistema editorial fluido (v2)
   Sem cards: tipografia ampla, imagens full-bleed, filetes,
   pull-quotes. Voz em 1ª pessoa. Mobile-first, desktop rico.
   100% orientado por tokens do DS (styles.css / ob-base.css).
   ============================================================ */

/* ── Aliases derivados da LP (translúcidos) — todos via primitivas --ob-* ── */
:root {
  --on-dark-90: rgb(from var(--ob-ink-50) r g b / 0.90);
  --on-dark-80: rgb(from var(--ob-ink-50) r g b / 0.80);
  --on-dark-72: rgb(from var(--ob-ink-50) r g b / 0.72);
  --on-dark-65: rgb(from var(--ob-ink-50) r g b / 0.65);
  --sand-60: rgb(from var(--ob-sand-500) r g b / 0.60);
  --sand-55: rgb(from var(--ob-sand-500) r g b / 0.55);
  --sand-50: rgb(from var(--ob-sand-500) r g b / 0.50);
  --sand-45: rgb(from var(--ob-sand-500) r g b / 0.45);
  --rule:      rgb(from var(--ob-sand-500) r g b / 0.30);
  --rule-soft: rgb(from var(--ob-sand-500) r g b / 0.12);
  --hairline:  rgb(from var(--ob-white) r g b / 0.06);
}

/* ── Ritmo de seção ─────────────────────────────────────── */
.sec        { padding-block: clamp(var(--space-64), 11vw, var(--space-128)); }
.sec--dark  { background: var(--forest); color: var(--off); }
.sec--darker{ background: var(--forest-d); color: var(--off); }
.sec--cream { background: var(--cream); color: var(--ink); }
.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(var(--space-24), 6vw, var(--space-112));
}
.wrap--wide { max-width: 1480px; }

/* ── Rótulos / eyebrow (filete + texto) ─────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-12);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: var(--sand);
}
.eyebrow::before { content: ''; width: var(--space-32); height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow--center { justify-content: center; }

/* ── Display / títulos ──────────────────────────────────── */
.display {
  font-family: var(--fh);
  font-size: var(--fs-6xl); font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight); letter-spacing: var(--ls-tighter);
  text-wrap: balance; color: inherit;
}
.h-sec {
  font-family: var(--fh);
  font-size: var(--fs-4xl); font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight); letter-spacing: var(--ls-tight);
  text-wrap: balance; color: inherit;
}
.display em, .h-sec em, .lead em { font-style: normal; color: var(--teal); }
.on-cream .display em, .on-cream .h-sec em { color: var(--teal); }
.accent-sand em { color: var(--sand) !important; }

.lead {
  font-size: var(--fs-xl); line-height: var(--lh-relaxed);
  max-width: 56ch; text-wrap: pretty;
}
.lead--dark { color: var(--on-dark-80); }
.lead--cream { color: var(--ink-m); }

/* botão com seta */
.btn-primary svg { transition: transform var(--duration-base) var(--easing-spring); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-lg { font-size: var(--fs-lg); padding: var(--space-20) var(--space-40); }

.btn-ghost-light {
  display: inline-flex; align-items: center; gap: var(--space-8);
  font-family: var(--f); font-weight: var(--fw-bold); font-size: var(--fs-base);
  color: var(--white); background: transparent;
  border: var(--border-1) solid rgb(from var(--ob-white) r g b / 0.30);
  border-radius: var(--radius-md); padding: var(--space-16) var(--space-32);
  cursor: pointer; transition: background var(--duration-base) var(--easing-standard), border-color var(--duration-base) var(--easing-standard);
}
.btn-ghost-light:hover { background: rgb(from var(--ob-white) r g b / 0.08); border-color: rgb(from var(--ob-white) r g b / 0.55); }

.micro { font-size: var(--fs-sm); color: var(--sand); }

/* ════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════ */
.hero2 {
  position: relative; background: var(--forest); color: var(--white);
  min-height: 100svh; display: flex; flex-direction: column; overflow: hidden;
}
/* Slideshow de fundo */
.hero2__bg { position: absolute; inset: 0; z-index: 0; background: var(--forest); }
.hero2__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s var(--easing-standard);
}
.hero2__slide.is-active { opacity: 1; }
/* Scrim para legibilidade (mobile: foto em cima, forest atrás do texto) */
.hero2__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg,
    rgb(from var(--forest) r g b / 0.30) 0%,
    rgb(from var(--forest) r g b / 0.14) 24%,
    rgb(from var(--forest) r g b / 0.62) 60%,
    var(--forest) 88%);
}
.hero2__logo { position: absolute; top: clamp(var(--space-20), 4vw, var(--space-40)); left: clamp(var(--space-24), 6vw, var(--space-112)); z-index: var(--z-above); }
.hero2__logo img { height: 30px; width: auto; }

.hero2__media { position: relative; z-index: 2; width: 100%; min-height: 58svw; overflow: hidden; }
.hero2__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.hero2__media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero2__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(from var(--ob-green-900) r g b / 0.15) 0%, transparent 30%, var(--forest) 96%);
}

.hero2__body { position: relative; z-index: 2; flex: 1; display: flex; align-items: flex-end; }
.hero2__inner {
  width: 100%; max-width: 1480px; margin-inline: auto;
  padding: 0 clamp(var(--space-24), 6vw, var(--space-112)) clamp(var(--space-40), 6vw, var(--space-80));
  display: flex; flex-direction: column; gap: var(--space-24);
}
.hero2__h1 { font-family: var(--fh); color: inherit; font-size: var(--fs-6xl); font-weight: var(--fw-extrabold); line-height: var(--lh-tight); letter-spacing: var(--ls-tighter); max-width: 16ch; text-wrap: balance; }
.hero2__h1 em { font-style: normal; color: var(--teal); }
.hero2__sub { font-size: var(--fs-xl); line-height: var(--lh-relaxed); color: var(--on-dark-80); max-width: 50ch; }
.hero2__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-20); margin-top: var(--space-8); }
.micro { display: inline-flex; align-items: center; gap: var(--space-8); font-size: var(--fs-sm); color: var(--sand); }
.micro svg { width: var(--icon-sm); height: var(--icon-sm); color: var(--teal); flex-shrink: 0; }

/* Desktop: retrato lateral full-height à ESQUERDA, texto à DIREITA */
@media (min-width: 900px) {
  .hero2 { display: block; }
  .hero2__scrim {
    background: linear-gradient(270deg,
      var(--forest) 0%,
      var(--forest) 32%,
      rgb(from var(--forest) r g b / 0.45) 62%,
      rgb(from var(--forest) r g b / 0.30) 82%,
      rgb(from var(--forest) r g b / 0.45) 100%);
  }
  .hero2__media { position: absolute; inset: 0 auto 0 0; width: 50%; height: 100%; min-height: 0; z-index: 2; }
  .hero2__media img { object-position: center top; }
  .hero2__media::after { background: linear-gradient(270deg, var(--forest) 0%, var(--forest) 10%, transparent 62%, transparent 100%); }
  .hero2__body { position: relative; z-index: 2; width: 54%; min-height: 100svh; margin-left: auto; align-items: center; }
  .hero2__inner { margin: 0; max-width: 700px; padding: 0 clamp(var(--space-24), 6vw, var(--space-112)) 0 var(--space-40); }
  .hero2__h1 { font-size: var(--fs-6xl); }
  .hero2__sub { max-width: 42ch; }
}

/* ════════════════════════════════════════════════════════
   INSPIRAÇÃO — abertura motivacional (sem caixas)
   ════════════════════════════════════════════════════════ */
.inspire { display: grid; grid-template-columns: 1fr; gap: clamp(var(--space-40), 6vw, var(--space-80)); align-items: center; }
@media (min-width: 880px) { .inspire { grid-template-columns: 1.05fr 0.95fr; } }
.inspire__body { display: flex; flex-direction: column; gap: var(--space-24); align-items: flex-start; }
.inspire__media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.inspire__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ════════════════════════════════════════════════════════
   FAIXA DE NÚMEROS (sem caixas) — flui sobre o creme
   ════════════════════════════════════════════════════════ */
.stats {
  display: flex; flex-wrap: wrap; gap: clamp(var(--space-32), 6vw, var(--space-96));
  align-items: flex-end;
}
.stat { display: flex; flex-direction: column; gap: var(--space-4); }
.stat__n { font-family: var(--fh); font-size: var(--fs-6xl); font-weight: var(--fw-extrabold); letter-spacing: var(--ls-tighter); color: var(--ink); line-height: 1; }
.stat__n--stars { color: var(--star); font-size: var(--fs-4xl); letter-spacing: var(--ls-wide); }
.stat__l { font-size: var(--fs-sm); color: var(--ink-m); font-family: var(--fi); line-height: var(--lh-snug); max-width: 22ch; }
.stats__rule { border: none; border-top: var(--border-1) solid var(--rule); margin-bottom: clamp(var(--space-40), 5vw, var(--space-64)); }

/* ════════════════════════════════════════════════════════
   PROBLEMA — editorial, lista com filetes
   ════════════════════════════════════════════════════════ */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(var(--space-40), 6vw, var(--space-80)); align-items: start; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .split--narrow-first { grid-template-columns: 0.9fr 1.1fr; } }
.split__head { display: flex; flex-direction: column; gap: var(--space-20); }

.painlist { display: flex; flex-direction: column; margin-top: var(--space-8); }
.pain { display: grid; grid-template-columns: auto 1fr; gap: var(--space-20); padding-block: var(--space-24); border-top: var(--border-1) solid var(--rule-soft); }
.pain:last-child { border-bottom: var(--border-1) solid var(--rule-soft); }
.pain__n { font-size: var(--fs-3xl); line-height: 1; padding-top: var(--space-px); }
.pain__t { font-size: var(--fs-xl); font-weight: var(--fw-semibold); color: var(--off); line-height: var(--lh-snug); }
.pain__d { font-size: var(--fs-base); color: var(--on-dark-80); line-height: var(--lh-normal); margin-top: var(--space-4); max-width: 46ch; }

/* ════════════════════════════════════════════════════════
   SERVIÇOS — narrativa numerada (sem caixas)
   ════════════════════════════════════════════════════════ */
.svc { display: grid; grid-template-columns: 1fr; gap: clamp(var(--space-32), 5vw, var(--space-64)); align-items: center; }
.svc + .svc { margin-top: clamp(var(--space-64), 9vw, var(--space-112)); padding-top: clamp(var(--space-64), 9vw, var(--space-112)); border-top: var(--border-1) solid var(--rule); }
@media (min-width: 880px) {
  .svc { grid-template-columns: 1.05fr 0.95fr; }
}
.svc__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__kicker { font-family: var(--fi); font-size: var(--fs-xs); letter-spacing: var(--ls-widest); text-transform: uppercase; color: var(--sand); }
.svc__t { font-family: var(--fh); font-size: var(--fs-4xl); font-weight: var(--fw-extrabold); color: var(--ink); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); margin-top: var(--space-8); }
.svc__d { font-size: var(--fs-lg); color: var(--ink-m); line-height: var(--lh-relaxed); margin-top: var(--space-16); max-width: 48ch; }
.svc__list { display: flex; flex-direction: column; margin-top: var(--space-24); }
.svc__item { display: grid; grid-template-columns: auto 1fr; gap: var(--space-12); align-items: baseline; padding-block: var(--space-12); border-top: var(--border-1) solid var(--rule); font-size: var(--fs-base); color: var(--ink); }
.svc__item svg { width: var(--icon-sm); height: var(--icon-sm); color: var(--teal); transform: translateY(2px); }

/* ════════════════════════════════════════════════════════
   PROCESSO — timeline de 4 passos (sem caixas)
   ════════════════════════════════════════════════════════ */
.proc__intro { display: flex; flex-direction: column; gap: var(--space-20); max-width: 56ch; margin-bottom: clamp(var(--space-48), 7vw, var(--space-80)); }
.proc__steps { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 880px) { .proc__steps { grid-template-columns: repeat(4, 1fr); column-gap: clamp(var(--space-32), 4vw, var(--space-56)); } }
.proc__step {
  position: relative;
  display: flex; flex-direction: column; gap: var(--space-12);
  padding: var(--space-28) 0;
  border-top: var(--border-1) solid var(--rule-soft);
}
.proc__step:last-child { border-bottom: var(--border-1) solid var(--rule-soft); }
.proc__step::before {
  content: ''; position: absolute; top: -1px; left: 0;
  width: var(--space-40); height: 2px; background: var(--teal);
}
@media (min-width: 880px) {
  .proc__step { padding: var(--space-32) 0 0; border-top: var(--border-1) solid var(--rule); border-bottom: none; }
  .proc__step:last-child { border-bottom: none; }
}
.proc__n { font-family: var(--fh); font-size: var(--fs-2xl); font-weight: var(--fw-extrabold); color: var(--teal); letter-spacing: var(--ls-tight); line-height: 1; }
.proc__t { font-family: var(--fh); font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--off); line-height: var(--lh-snug); }
.proc__d { font-size: var(--fs-base); color: var(--on-dark-80); line-height: var(--lh-relaxed); max-width: 32ch; }

/* ════════════════════════════════════════════════════════
   SOBRE — retrato + texto fluido
   ════════════════════════════════════════════════════════ */
.sobre2 { display: grid; grid-template-columns: 1fr; gap: clamp(var(--space-40), 6vw, var(--space-80)); align-items: center; }
@media (min-width: 880px) { .sobre2 { grid-template-columns: 0.8fr 1.2fr; } }
.sobre2__media { position: relative; aspect-ratio: 3/4; overflow: hidden; max-width: 460px; }
.sobre2__media img, .sobre2__media image-slot { display: block; width: 100%; height: 100%; }
.sobre2__media image-slot { object-position: center top; }
.sobre2__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sobre2__body { display: flex; flex-direction: column; gap: var(--space-24); }
.prose { display: flex; flex-direction: column; gap: var(--space-16); }
.prose p { font-size: var(--fs-lg); color: var(--ink-m); line-height: var(--lh-relaxed); max-width: 56ch; }
.prose p .hl { color: var(--ink); font-weight: var(--fw-semibold); }
.sign { font-family: var(--fi); font-size: var(--fs-sm); color: var(--sand); letter-spacing: var(--ls-wide); }
.inline-stats { display: flex; flex-wrap: wrap; gap: clamp(var(--space-24), 4vw, var(--space-56)); padding-top: var(--space-24); border-top: var(--border-1) solid var(--rule); }
.inline-stats .stat__n { font-size: var(--fs-5xl); }

/* ════════════════════════════════════════════════════════
   DEPOIMENTOS — pull-quotes empilhados (sem caixas)
   ════════════════════════════════════════════════════════ */
.quotes { display: flex; flex-direction: column; }
.quote { padding-block: clamp(var(--space-40), 5vw, var(--space-64)); border-top: var(--border-1) solid var(--rule-soft); }
.quote:first-of-type { border-top: none; }
.quote__stars { color: var(--star); font-size: var(--fs-sm); letter-spacing: var(--ls-wide); margin-bottom: var(--space-20); }
.quote__t { font-family: var(--fh); font-size: var(--fs-3xl); font-weight: var(--fw-semibold); color: var(--off); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); max-width: 30ch; text-wrap: pretty; }
.quote__by { margin-top: var(--space-20); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-12); }
.quote__name { font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--white); }
.quote__meta { font-family: var(--fi); font-size: var(--fs-sm); color: var(--sand); }
@media (min-width: 880px) {
  .quote { display: grid; grid-template-columns: 0.32fr 0.68fr; gap: var(--space-48); align-items: start; }
  .quote__by { margin-top: 0; flex-direction: column; gap: var(--space-4); }
}

/* ════════════════════════════════════════════════════════
   FAQ — acordeão fluido (filetes)
   ════════════════════════════════════════════════════════ */
.faq2 { display: flex; flex-direction: column; }
.faq2__item { border-top: var(--border-1) solid var(--rule); }
.faq2__item:last-child { border-bottom: var(--border-1) solid var(--rule); }
.faq2__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-24); padding-block: var(--space-24); cursor: pointer; list-style: none; }
.faq2__q::-webkit-details-marker { display: none; }
.faq2__qt { font-family: var(--fh); font-size: var(--fs-xl); font-weight: var(--fw-semibold); color: var(--ink); line-height: var(--lh-snug); }
.faq2__ic { width: var(--icon-md); height: var(--icon-md); flex-shrink: 0; color: var(--teal); transition: transform var(--duration-base) var(--easing-standard); }
details[open] .faq2__ic { transform: rotate(45deg); }
.faq2__a { font-size: var(--fs-lg); color: var(--ink-m); line-height: var(--lh-relaxed); padding-bottom: var(--space-28); max-width: 64ch; }

/* ════════════════════════════════════════════════════════
   CTA FINAL — convite + formulário sublinhado (sem caixa)
   ════════════════════════════════════════════════════════ */
.cta2 { position: relative; overflow: hidden; }
.cta2__bg { position: absolute; inset: 0; background: url('../assets/projects/beija-flor/12.webp') center/cover no-repeat; opacity: 0.12; }
.cta2 .wrap { position: relative; z-index: var(--z-above); }
.cta2__grid { display: grid; grid-template-columns: 1fr; gap: clamp(var(--space-40), 6vw, var(--space-80)); align-items: center; }
@media (min-width: 880px) { .cta2__grid { grid-template-columns: 1.1fr 0.9fr; } }

/* inputs sublinhados (fluidos, sem caixa) */
.fform { display: flex; flex-direction: column; gap: var(--space-28); }
.field { display: flex; flex-direction: column; gap: var(--space-8); }
.field > label { font-family: var(--fi); font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-widest); color: var(--sand); }
/* Inputs sublinhados → variante oficial do DS: .ob-input--underline (styles.css) */
.fform .btn-primary { justify-content: center; margin-top: var(--space-8); }
.cta2__dis { font-family: var(--fi); font-size: var(--fs-xs); color: var(--sand-45); }

/* ════════════════════════════════════════════════════════
   BOTÃO FLUTUANTE — abre o modal
   ════════════════════════════════════════════════════════ */
.fab {
  position: fixed; bottom: clamp(var(--space-16), 4vw, var(--space-28)); right: clamp(var(--space-16), 4vw, var(--space-28));
  z-index: var(--z-sticky);
  display: inline-flex; align-items: center; gap: var(--space-8);
  background: var(--teal); color: var(--white);
  font-family: var(--f); font-weight: var(--fw-bold); font-size: var(--fs-sm);
  padding: var(--space-12) var(--space-20); border: none; border-radius: var(--radius-full);
  box-shadow: var(--shadow-4); cursor: pointer;
  transition: transform var(--duration-base) var(--easing-spring), background var(--duration-base) var(--easing-standard);
}
.fab:hover { transform: translateY(-2px); background: var(--teal-dk); }
.fab svg { width: var(--icon-sm); height: var(--icon-sm); }

/* ════════════════════════════════════════════════════════
   MODAL DE CONTATO
   ════════════════════════════════════════════════════════ */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: none; }
.modal.open { display: block; }
.modal__scrim { position: absolute; inset: 0; background: var(--color-scrim); backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--duration-base) var(--easing-standard); }
.modal.open .modal__scrim { opacity: 1; }
.modal__panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%);
  width: min(560px, calc(100vw - var(--space-32)));
  max-height: calc(100svh - var(--space-48)); overflow-y: auto;
  background: var(--forest-d); color: var(--white);
  padding: clamp(var(--space-28), 5vw, var(--space-48));
  opacity: 0; transition: opacity var(--duration-base) var(--easing-standard), transform var(--duration-slow) var(--easing-spring);
}
.modal.open .modal__panel { opacity: 1; transform: translate(-50%, -50%); }
.modal__close {
  position: absolute; top: var(--space-16); right: var(--space-16);
  width: var(--space-40); height: var(--space-40); display: grid; place-items: center;
  background: transparent; border: none; color: var(--sand); cursor: pointer; border-radius: var(--radius-full);
  transition: background var(--duration-base) var(--easing-standard), color var(--duration-base) var(--easing-standard);
}
.modal__close:hover { background: rgb(from var(--ob-white) r g b / 0.08); color: var(--white); }
.modal__close svg { width: var(--icon-md); height: var(--icon-md); }
.modal__eyebrow { color: var(--sand); }
.modal__title { font-family: var(--fh); font-size: var(--fs-3xl); font-weight: var(--fw-extrabold); color: var(--white); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); margin: var(--space-12) 0 var(--space-8); }
.modal__title em { font-style: normal; color: var(--teal); }
.modal__sub { font-size: var(--fs-base); color: var(--on-dark-72); line-height: var(--lh-relaxed); margin-bottom: var(--space-28); max-width: 42ch; }
body.modal-lock { overflow: hidden; }

/* ════════════════════════════════════════════════════════
   REVELAÇÃO AO ROLAR (sutil)
   ════════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--duration-slower) var(--easing-decelerate), transform var(--duration-slower) var(--easing-decelerate); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
