/* ══════════════════════════════════════════════════════════
   Dr. Lucas Andrade · SEÇÃO 2 — Experience Flow (a filosofia)
   Storytelling guiado por scroll · pin (sticky) + crossfade (GSAP)
   Mesma linguagem visual da Hero: texto à esquerda · foto à direita.
   ══════════════════════════════════════════════════════════ */

.experience-flow {
  position: relative;
  /* fundo transparente: o gradiente creme do body flui direto da Hero (sem costura) */
}

/* ---- estrutura base (fallback sem JS: painéis empilhados e legíveis) ---- */
.flow-stage { position: relative; }

.flow-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-inner {
  width: 82%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
  align-items: center;
  gap: 64px;
  height: 100%;
}

/* ---- com JS/GSAP: stage fixado (sticky) + painéis sobrepostos p/ crossfade ---- */
.js-flow .flow-stage {
  position: sticky;
  top: 0;
  overflow: hidden;
  /* height definido via JS (px), = viewport (desktop) ou ~85vh (mobile) */
}
.js-flow .flow-section {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
}

/* ---- conteúdo textual ---- */
.flow-content { position: relative; z-index: 2; }

.flow-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 22px;
}

.flow-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 12em;
}

.flow-text {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.75;
  color: var(--body);
  max-width: 30em;
  margin-top: 26px;
}

/* delta discreto (sem botão sólido) */
.flow-delta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--gold-text);
  transition: gap 0.35s ease;
}
.flow-delta::after { content: none; }
.flow-delta .flow-arrow {
  transition: transform 0.35s cubic-bezier(0.22, 0.7, 0.2, 1);
}
.flow-delta:hover { gap: 16px; }
.flow-delta:hover .flow-arrow { transform: translateX(5px); }
.flow-delta:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

/* ---- fotografia (mesma feather-mask da Hero) ---- */
.flow-image-container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-overlay {
  position: absolute;
  z-index: 0;
  left: 50%; top: 48%;
  width: 118%; height: 100%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(167, 141, 103, 0.14) 0%, rgba(167, 141, 103, 0) 72%);
  pointer-events: none;
}

.flow-image-container img {
  position: relative;
  z-index: 1;
  height: min(78vh, 780px);
  width: auto;
  max-width: 100%;
  object-fit: cover;
  object-position: center top;
  /* linguagem global: objeto de curvas generosas, sem feather */
  border-radius: var(--radius-img);
  box-shadow: 0 34px 70px -42px rgba(60, 48, 33, 0.38);
}

/* ---- Tablet e abaixo: empilha (imagem no topo · texto abaixo), como a Hero ---- */
@media (max-width: 1024px) {
  .flow-inner {
    width: 84%;
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: center;
    justify-items: start;
    padding: 92px 0 32px; /* respiro sob a navbar fixa */
  }
  .flow-image-container { order: 1; width: 100%; height: auto; }
  .flow-content { order: 2; }
  .flow-image-container img { height: 46vh; object-position: center 20%; }
  .flow-overlay { width: 100%; height: 118%; }
  .flow-title { font-size: clamp(32px, 4.6vw, 50px); }
}

/* ---- Mobile: painéis ~85vh, mais compactos ---- */
@media (max-width: 760px) {
  .flow-section { min-height: 85vh; }
  .flow-inner { width: 86%; gap: 18px; padding: 76px 0 22px; }
  .flow-image-container img { height: 32vh; object-position: center 22%; }
  .flow-title { font-size: clamp(30px, 6.4vw, 44px); max-width: 15em; }
  .flow-text { font-size: 18px; margin-top: 16px; }
  .flow-delta { margin-top: 22px; }
}

/* ---- Acessibilidade ---- */
@media (prefers-reduced-motion: reduce) {
  /* sem pin/crossfade: painéis fluem normalmente e ficam sempre visíveis */
  .js-flow .flow-stage { position: relative; height: auto !important; overflow: visible; }
  .js-flow .flow-section { position: relative; inset: auto; height: auto; min-height: 100vh; }
  .flow-section [data-flow-item] { opacity: 1 !important; transform: none !important; filter: none !important; }
}
