/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS — Cores extraídas da página oficial
   rafaellopespsiquiatra.com
═══════════════════════════════════════════════════════════ */
:root {
  /* Cores originais da página */
  --brand-rose:      #C99997;   /* rosa/mauve — bordas, sombras, acentos */
  --brand-rose-dark: #A06865;   /* rosa mais escuro — bordas de input */
  --brand-amber:     #A86138;   /* âmbar — cor dos botões CTA */
  --brand-amber-hover: #8e5230; /* hover do botão */

  /* Fundos */
  --bg-page:     #F8F5F0;   /* fundo geral — creme quente */
  --bg-white:    #FFFFFF;   /* branco puro */
  --bg-input:    #E7D8D7;   /* fundo dos inputs — rose claro */
  --bg-dark:     #111111;   /* hero escuro */
  --bg-tag:      #EFECE6;   /* tag/badge "Aula Inaugural" */

  /* Textos */
  --text-dark:   #111111;
  --text-body:   #626363;
  --text-muted:  #999;
  --text-white:  #FFFFFF;

  /* Tipografia original */
  --font-serif:  'Libre Baskerville', Georgia, serif;
  --font-sans:   'Mulish', system-ui, sans-serif;

  /* Espaçamentos */
  --radius-card: 0px;          /* Original: sem border-radius */
  --radius-btn:  0px;          /* Botões: sem borda arredondada */
  --radius-input: 1px;         /* Input: quase quadrado */

  /* Sombra dos cards (estilo original) */
  --card-shadow: 10px 10px 0px 0px var(--brand-rose);
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL — transições de entrada (substitui GSAP)
═══════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variações de direção */
[data-reveal="left"]  { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="fade"]  { transform: none; }

[data-reveal="left"].is-visible,
[data-reveal="right"].is-visible { transform: translateX(0); }

/* Delays escalonados (stagger) */
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }
[data-reveal-delay="6"] { transition-delay: 0.48s; }

/* Entrada inicial do hero — anima sozinho no load */
.hero-eyebrow,
.hero-headline,
.hero-subheadline,
.hero-date,
.hero-form,
.hero-image {
  animation: hero-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-eyebrow   { animation-delay: 0.15s; }
.hero-headline  { animation-delay: 0.28s; }
.hero-subheadline { animation-delay: 0.42s; }
.hero-date      { animation-delay: 0.50s; }
.hero-form      { animation-delay: 0.58s; }
.hero-image     { animation: hero-image-enter 1.2s ease-out 0.05s both; }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-image-enter {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .hero-eyebrow, .hero-headline, .hero-subheadline,
  .hero-date, .hero-form, .hero-image {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}

/* ═══════════════════════════════════════════════════════════
   CONTAINER
═══════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════
   CTA BUTTON — Estilo exato da página original
   background: #A86138, border: 1px solid #626363, radius: 0
═══════════════════════════════════════════════════════════ */
.cta-button {
  display: inline-block;
  background-color: var(--brand-amber);
  color: var(--text-white);
  border: 1px solid var(--text-body);
  border-radius: var(--radius-btn);
  padding: 14px 40px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 5px 5px 0px 0px var(--brand-amber-hover);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.2s ease, transform 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.cta-button:hover {
  background-color: var(--bg-white);
  color: var(--brand-amber);
  border-color: var(--brand-amber);
  box-shadow: 3px 3px 0px 0px var(--brand-rose);
  transform: translate(-1px, -1px);
}

/* ═══════════════════════════════════════════════════════════
   FAIXA PASSANTE — fixa no topo
═══════════════════════════════════════════════════════════ */
.navbar-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background-color: var(--brand-rose);
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
  will-change: transform;
}

.ticker-track span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-white);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION — Desktop: split-screen (conteúdo | foto)
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg-page);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding-top: 32px; /* clear ticker fixo */
}

/* Foto — lado direito, absoluta, altura total */
.hero-image-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  z-index: 1;
}

/* Gradiente blend: creme → transparente (esquerda p/ direita) */
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #F8F5F0 0%,
    rgba(248,245,240,0.9) 12%,
    rgba(248,245,240,0.2) 45%,
    rgba(248,245,240,0) 65%
  );
  z-index: 2;
}

/* Fade suave na base */
.hero-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22%;
  background: linear-gradient(to top, #F8F5F0 0%, transparent 100%);
  z-index: 2;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.95;
}

/* Badges — ocultos no desktop */
.hero-badge { display: none; }

/* Conteúdo — lado esquerdo, verticalmente centralizado */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 60%;
  padding: 40px 56px 40px clamp(72px, 8vw, 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Eyebrow acima do headline */
.hero-eyebrow {
  display: inline-block;
  background: var(--bg-tag);
  color: var(--text-body);
  border: 1px solid var(--text-body);
  box-shadow: -6px 3px 0px var(--brand-rose);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.06em;
  padding: 5px 18px;
  margin-bottom: 24px;
  width: fit-content;
}

/* Data do evento */
.hero-date {
  display: flex;
  align-items: stretch;
  background: var(--bg-tag);
  border: 1px solid var(--brand-rose-dark);
  border-left: 3px solid var(--brand-amber);
  margin-top: 4px;
  margin-bottom: 14px;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
}

.hero-date-col {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: var(--brand-amber);
  flex: 0 0 auto;
}

.hero-date-col svg {
  flex-shrink: 0;
  color: var(--brand-amber);
  opacity: 0.85;
}

.hero-date-value {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.hero-date-divider {
  width: 1px;
  background: var(--brand-rose-dark);
  opacity: 0.35;
  align-self: stretch;
}

/* Headline */
.hero-headline {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  color: var(--text-dark);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  max-width: 580px;
}

.hero-headline-top {
  display: block;
}

.hero-headline-line {
  display: block;
  white-space: nowrap;
  font-size: clamp(1.1rem, 2vw, 1.95rem);
}

.hero-headline .accent-italic {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 700;
  color: var(--brand-rose);
}

.hero-headline .accent-bold {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--brand-rose);
  font-style: normal;
}

/* Subheadline */
.hero-subheadline {
  font-size: clamp(0.88rem, 0.95vw, 0.95rem);
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 8px;
  max-width: 500px;
}

/* Formulário */
.hero-form {
  background: var(--bg-page);
  padding: 18px 20px 16px;
  border: 1px solid var(--brand-rose);
  box-shadow: 8px 8px 0px 0px var(--brand-rose);
  max-width: 460px;
}

.form-title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.hero-form input[type="text"],
.hero-form input[type="email"],
.hero-form input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--brand-rose-dark);
  border-radius: var(--radius-input);
  background: var(--bg-input);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.hero-form input::placeholder {
  color: var(--text-body);
  font-size: 0.88rem;
}

.hero-form input:focus {
  border-color: var(--brand-amber);
  box-shadow: 0 0 0 2px rgba(168, 97, 56, 0.15);
  background: #fff;
}

.hero-form .cta-button {
  width: 100%;
  margin-top: 4px;
  padding: 12px 24px;
}

.form-security {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text-body);
  text-align: center;
  margin-top: 8px;
  opacity: 0.8;
}

/* A11y — visually hidden label */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Wrapper de cada campo para posicionar erro */
.hero-form .field {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.hero-form .field input {
  margin-bottom: 0 !important;
}

.field-error {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #b23a2c;
  min-height: 0;
  line-height: 1.3;
  margin-top: 4px;
  display: block;
  transition: min-height 0.15s ease;
}

.field-error:empty {
  display: none;
}

.hero-form input.has-error {
  border-color: #b23a2c !important;
  box-shadow: 0 0 0 2px rgba(178, 58, 44, 0.12) !important;
  background: #fdf3f2 !important;
}

/* LGPD inline abaixo do form */
.form-lgpd {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text-body);
  text-align: center;
  margin-top: 8px;
  opacity: 0.75;
}

/* Bônus dentro do formulário */
.form-bonus {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg-tag);
  border: 1px solid rgba(201, 153, 151, 0.4);
  border-left: 3px solid var(--brand-rose);
}

.form-bonus-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-bonus-img {
  width: 52px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.form-bonus-title {
  font-family: var(--font-sans);
  font-size: clamp(0.62rem, 1.35vw, 0.78rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  text-align: center;
}

.form-bonus-desc {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--text-body);
  line-height: 1.45;
  margin: 0;
  flex: 1;
  min-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   BLOCO 2 — O QUE VOCÊ VAI APRENDER
   Layout idêntico ao original: grid 3col, cards com offset shadow
═══════════════════════════════════════════════════════════ */
.aprendizados {
  background: var(--bg-white);
  padding: 90px 0 80px;
}

/* Section header wrapper */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--brand-rose);
  text-transform: uppercase;
  margin-bottom: 16px;
  background: var(--bg-tag);
  border: 1px solid var(--text-body);
  box-shadow: -5px 3px 0px var(--brand-rose);
  padding: 5px 20px;
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

/* Ornamento decorativo abaixo do título */
.section-title-ornament {
  width: 48px;
  height: 2px;
  background: var(--brand-rose);
  margin: 0 auto;
  box-shadow: 4px 3px 0px var(--brand-amber);
}

/* Grid 3 colunas — exatamente como no original */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 52px;
}

/* Card — estilo exato do original:
   branco, border 1px #C99997, box-shadow 10px 10px #C99997, padding 43px 22px */
.learn-card {
  background: var(--bg-white);
  border: 1px solid var(--brand-rose);
  box-shadow: var(--card-shadow);
  padding: 40px 22px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.learn-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 12px 12px 0px 0px var(--brand-rose);
}

.card-icon {
  margin-bottom: 18px;
  flex-shrink: 0;
}

.card-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.card-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card-desc {
  font-family: var(--font-sans);
  font-size: 0.87rem;
  color: var(--text-body);
  line-height: 1.65;
  flex-grow: 1;
}

.section-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 153, 151, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   BLOCO 3 — QUEM É O DR. RAFAEL
   Layout idêntico ao original: foto esquerda, texto direita
═══════════════════════════════════════════════════════════ */
.sobre {
  background: var(--bg-page);
  padding: 90px 0;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 40% 60%;
  grid-template-areas:
    "foto    eyebrow"
    "foto    content";
  column-gap: 64px;
  row-gap: 0;
}

.sobre-eyebrow {
  grid-area: eyebrow;
  align-self: end;
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--brand-rose);
  text-transform: uppercase;
  margin-bottom: 14px;
  background: var(--bg-tag);
  border: 1px solid var(--text-body);
  box-shadow: -5px 3px 0px var(--brand-rose);
  padding: 5px 20px;
}

.sobre-foto-wrap {
  grid-area: foto;
  align-self: start;
}

.sobre-content {
  grid-area: content;
  align-self: start;
}

/* Foto */
.sobre-foto-wrap {
  position: relative;
}

.sobre-foto {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 1px solid var(--brand-rose);
  box-shadow: 12px 12px 0px 0px var(--brand-rose);
}

/* Conteúdo */

.sobre-nome {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.nome-dr {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1em;
}

.sobre-credenciais {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.sobre-bio {
  margin-bottom: 28px;
}

.sobre-bio p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 14px;
}

.sobre-bio p:last-child {
  margin-bottom: 0;
}

.sobre-bio strong {
  color: var(--text-dark);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   DEPOIMENTOS — prints WhatsApp + pull quotes
═══════════════════════════════════════════════════════════ */
.depoimentos {
  background: var(--bg-page);
  padding: 96px 0 80px;
  position: relative;
}

.depoimentos::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,153,151,0.6), transparent);
}

/* Grid masonry de depoimentos */
.depoimentos-wrap {
  position: relative;
  margin-top: 48px;
}

.depoimentos-masonry {
  columns: 3;
  column-gap: 16px;
}

.depoimentos-extras {
  margin-top: 16px;
}

.depoimentos-extras[hidden] {
  display: none !important;
}

.depoimento-item {
  break-inside: avoid;
  display: block;
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.depoimento-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.depoimento-item img {
  width: 100%;
  display: block;
}

/* Fade inferior antes do botão */
.depoimentos-fade {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-page));
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.depoimentos-fade.hidden {
  opacity: 0;
}

/* Botão expandir */
.depoimentos-expandir-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  position: relative;
  z-index: 2;
}

.depoimentos-expandir-btn {
  background: var(--text-dark);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 16px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.depoimentos-expandir-btn:hover {
  background: var(--brand-amber);
  transform: translateY(-2px);
}

.depoimentos-expandir-btn.hidden {
  display: none;
}

.depoimento-img-wrap {
  display: block;
  overflow: hidden;
  background: #000;
  position: relative;
  aspect-ratio: 9 / 14;
  cursor: zoom-in;
}

.depoimento-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.depoimento-img-wrap:hover img {
  transform: scale(1.02);
}

.depoimento-img-wrap::after {
  content: '⤢  Ver print completo';
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(17,17,17,0.82);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.depoimento-img-wrap:hover::after,
.depoimento-img-wrap:focus-visible::after {
  opacity: 1;
}

/* Lightbox nativo */
.lightbox {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox img {
  display: block;
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: -4px;
  width: 36px;
  height: 36px;
  background: var(--brand-amber);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--brand-amber-hover);
}

@media (max-width: 767px) {
  .lightbox-close {
    top: -40px;
    right: 0;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .depoimentos {
    padding: 64px 0 56px;
  }
  .depoimentos-masonry {
    columns: 2;
  }
}

@media (max-width: 480px) {
  .depoimentos-masonry {
    columns: 1;
    column-gap: 0;
  }
}

/* Respeita preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
  .depoimentos-track {
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════ */
.faq {
  background: var(--bg-page);
  padding: 96px 0 80px;
}

.faq-list {
  max-width: 780px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid rgba(192, 153, 151, 0.4);
  box-shadow: 4px 4px 0 0 var(--brand-rose);
  transition: box-shadow 0.2s ease;
}

.faq-item[open] {
  box-shadow: 6px 6px 0 0 var(--brand-amber);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  list-style: none;
  user-select: none;
  line-height: 1.4;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--brand-amber);
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--brand-amber);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-answer p {
  margin: 0;
}

.faq-answer em {
  font-style: italic;
  color: var(--text-dark);
}

@media (max-width: 767px) {
  .faq {
    padding: 64px 0 56px;
  }
  .faq-question {
    padding: 16px 18px;
    font-size: 0.95rem;
  }
  .faq-answer {
    padding: 0 18px 16px;
    font-size: 0.9rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   SOBRE — CTA interno (substituto do form antigo)
═══════════════════════════════════════════════════════════ */
.sobre-cta-wrap {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   FINAL CTA — pós-FAQ, bloco de conversão final
═══════════════════════════════════════════════════════════ */
.final-cta {
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-tag) 100%);
  padding: 88px 0 96px;
  position: relative;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-amber), transparent);
}

.final-cta-header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.final-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.25;
  font-weight: 400;
  color: var(--text-dark);
  margin-top: 16px;
}

.final-cta-title em {
  font-style: italic;
  color: var(--brand-rose-dark);
}

.final-cta-title strong {
  font-weight: 700;
  color: var(--brand-amber);
}

.final-cta-date-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.final-cta-date-wrap .hero-date {
  margin-top: 0;
  margin-bottom: 0;
}

.final-cta-form-wrap {
  max-width: 480px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .final-cta {
    padding: 64px 0 72px;
  }
  .final-cta-header {
    margin-bottom: 28px;
  }
  .final-cta-sub {
    font-size: 0.88rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-dark);
  border-top: 2px solid var(--brand-rose);
  padding: 48px 20px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  max-width: 1140px;
  margin: 0 auto;
}

.footer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.03em;
}

.footer-credentials {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVIDADE — TABLET (max 1023px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  /* Hero: volta ao layout em coluna (tablet) */
  .hero {
    flex-direction: column;
    align-items: center;
    min-height: auto;
  }

  .hero-image-wrapper {
    position: relative;
    top: auto; right: auto;
    width: 100%;
    max-width: none;
    height: 45vh;
    margin-top: -12px;
  }

  /* Gradiente de transição: creme → transparente (topo p/ baixo) */
  .hero-image-wrapper::before {
    background: linear-gradient(
      to bottom,
      #F8F5F0 0%,
      rgba(248,245,240,0.5) 25%,
      transparent 55%
    );
  }

  .hero-image-wrapper::after {
    height: 30%;
    background: linear-gradient(to top, #F8F5F0 0%, transparent 100%);
  }

  .hero-content {
    max-width: 100%;
    padding: 36px 32px 20px;
    justify-content: flex-start;
  }

  .hero-form {
    max-width: 100%;
  }

  /* Cards: 2 colunas */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Sobre: tablet — empilhado mas sem centralização (só mobile) */
  .sobre-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .sobre-eyebrow {
    grid-area: unset;
    align-self: auto;
    margin-bottom: 20px;
  }

  .sobre-foto-wrap {
    grid-area: unset;
    align-self: stretch;
    width: 100%;
    margin-bottom: 28px;
  }

  .sobre-content {
    grid-area: unset;
    align-self: stretch;
    width: 100%;
  }

  .sobre-foto {
    aspect-ratio: 4/3;
    max-height: 360px;
    object-position: center 20%;
  }

}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVIDADE — MOBILE (max 767px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

  .navbar-ticker {
    height: 28px;
  }

  .ticker-track span {
    font-size: 0.7rem;
  }

  /* ── HERO — conteúdo no fluxo, foto abaixo com transição ── */
  .hero {
    position: relative;
  }

  /* Conteúdo: centralizado, sem z-index complexo */
  .hero-content {
    position: relative;
    z-index: 2;
    padding: 24px 16px 32px;
    text-align: center;
    align-items: center;
  }

  .hero-eyebrow {
    font-size: 0.72rem;
    padding: 4px 12px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-date {
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-date-col {
    padding: 7px 10px;
    gap: 5px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .hero-date-value {
    font-size: 0.72rem;
  }

  .hero-headline {
    font-size: clamp(1.3rem, 5.5vw, 1.55rem);
    margin-bottom: 12px;
    max-width: 100%;
    text-align: center;
  }

  .hero-headline-line {
    font-size: clamp(0.95rem, 4.4vw, 1.25rem);
    white-space: nowrap;
  }

  .hero-subheadline {
    font-size: 0.88rem;
    margin-bottom: 22px;
    text-align: center;
  }

  .hero-form {
    padding: 22px 18px 18px;
    box-shadow: 6px 6px 0px 0px var(--brand-rose);
    margin-left: auto;
    margin-right: auto;
  }

  .form-bonus-title {
    white-space: normal;
    font-size: 0.82rem;
  }

  /* ── FOTO — no fluxo, abaixo do form, com transição ── */
  .hero-image-wrapper {
    position: relative;
    max-width: none;
    width: 100%;
    height: 420px;
    margin-top: -16px;         /* leve sobreposição para suavizar transição */
    z-index: 1;
  }

  /* Gradiente de transição: creme → transparente no topo */
  .hero-image-wrapper::before {
    display: block;
    background: linear-gradient(
      to bottom,
      #F8F5F0 0%,
      rgba(248,245,240,0.7) 25%,
      transparent 55%
    );
  }

  /* Fade suave na base */
  .hero-image-wrapper::after {
    display: block;
    height: 30%;
    background: linear-gradient(to top, #F8F5F0 0%, transparent 100%);
  }

  .hero-image {
    mix-blend-mode: normal;
    opacity: 0.88;
    object-position: center 10%;
  }

  /* ── BADGES flutuantes sobre a foto ── */
  .hero-badge {
    display: block !important; /* garante override do selector base */
    position: absolute;
    z-index: 5;
    max-width: 36%;            /* mais compacto, não invade o centro */
  }

  /* Balão de fala estilo HQ — cartoon speech bubble */
  .badge-balloon {
    position: relative;
    background: #fff;
    border: 1.5px solid var(--brand-rose-dark);
    border-radius: 14px;
    padding: 7px 11px;
    box-shadow: 2px 3px 0 var(--brand-rose), 0 4px 14px rgba(17, 17, 17, 0.12);
  }

  /* Rabicho do balão — triângulo externo (borda) */
  .badge-balloon::before,
  .badge-balloon::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
  }

  /* Balões da ESQUERDA (--tl, --bl): rabicho apontando para a direita (foto) */
  .hero-badge--tl .badge-balloon::before,
  .hero-badge--bl .badge-balloon::before {
    right: -11px;
    top: 55%;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent var(--brand-rose-dark);
  }
  .hero-badge--tl .badge-balloon::after,
  .hero-badge--bl .badge-balloon::after {
    right: -8px;
    top: 55%;
    border-width: 6px 0 6px 9px;
    border-color: transparent transparent transparent #fff;
  }

  /* Balões da DIREITA (--tr, --ml, --br): rabicho apontando para a esquerda (foto) */
  .hero-badge--tr .badge-balloon::before,
  .hero-badge--ml .badge-balloon::before,
  .hero-badge--br .badge-balloon::before {
    left: -11px;
    top: 55%;
    border-width: 7px 11px 7px 0;
    border-color: transparent var(--brand-rose-dark) transparent transparent;
  }
  .hero-badge--tr .badge-balloon::after,
  .hero-badge--ml .badge-balloon::after,
  .hero-badge--br .badge-balloon::after {
    left: -8px;
    top: 55%;
    border-width: 6px 9px 6px 0;
    border-color: transparent #fff transparent transparent;
  }

  .badge-text {
    font-family: var(--font-sans);
    font-size: 0.64rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
    display: block;
  }

  .badge-text em {
    font-style: normal;
    font-weight: 800;
    color: var(--brand-amber);
  }

  /* Entrada sutil — balões flutuando leve */
  .hero-badge {
    animation: badge-float 4s ease-in-out infinite;
  }
  .hero-badge--tr { animation-delay: 0s; }
  .hero-badge--tl { animation-delay: 0.8s; }
  .hero-badge--ml { animation-delay: 1.4s; }
  .hero-badge--bl { animation-delay: 2.1s; }
  .hero-badge--br { animation-delay: 2.8s; }

  @keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-badge { animation: none; }
  }

  /*
   * Layout 2 colunas — esquerda: --tl, --bl | direita: --tr, --ml, --br
   */
  .hero-badge--tr { top: 6%;  right: 2%; }
  .hero-badge--tl { top: 40%; left:  2%; }
  .hero-badge--ml { top: 58%; right: 2%; }
  .hero-badge--bl { bottom: 22%; left: 2%; }
  .hero-badge--br { bottom: 5%;  right: 2%; }

  /* ── APRENDIZADOS ── */
  .aprendizados {
    padding: 60px 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .learn-card {
    min-height: auto;
    padding: 28px 20px;
  }

  /* ── SOBRE — eyebrow → foto → conteúdo, tudo centralizado ── */
  .sobre {
    padding: 60px 0;
  }

  .sobre-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .sobre-eyebrow {
    grid-area: unset;
    align-self: center;
    text-align: center;
    margin: 0 auto 20px;
    box-shadow: none;
    border: 1px solid var(--text-body);
  }

  /* align-self: stretch + width: 100% garante que os filhos flex não colapsem */
  .sobre-foto-wrap {
    grid-area: unset;
    align-self: stretch;
    width: 100%;
    margin-bottom: 28px;
  }

  .sobre-foto {
    aspect-ratio: 3/4;
    max-height: 420px;
    object-position: center 15%;
    box-shadow: 6px 6px 0px 0px var(--brand-rose);
  }

  .sobre-content {
    grid-area: unset;
    align-self: stretch;
    width: 100%;
    text-align: left;
  }

  /* Força visibilidade — previne GSAP de deixar filhos em opacity:0 no mobile */
  .sobre-content > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .sobre-nome {
    text-align: left;
  }

  .sobre-credenciais {
    text-align: left;
  }

  .sobre-bio {
    text-align: left;
  }

  .sobre-content .hero-form {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  /* "ninguém te ensinou" → preto no mobile */
  .hero-headline .accent-italic {
    color: var(--text-dark);
  }

  /* ── GLOBAL MOBILE ── */
  .cta-button {
    padding: 14px 24px;
    white-space: normal;
    font-size: 0.82rem;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 36px;
  }
}

/* ═══════════════════════════════════════════════════════════
   LARGE DESKTOP (1440px+)
═══════════════════════════════════════════════════════════ */
/* Desktop: depoimentos todos abertos, sem botões de expandir/recolher */
@media (min-width: 768px) {
  #depoimentos-extras        { display: block !important; }
  #depoimentos-fade          { display: none  !important; }
  #depoimentos-expandir-btn  { display: none  !important; }
  #depoimentos-recolher-btn  { display: none  !important; }
}

@media (min-width: 1440px) {
  .hero-content {
    padding: 60px 64px 60px clamp(96px, 9vw, 180px);
    max-width: 58%;
  }

  .hero-image-wrapper {
    width: 48%;
  }

  .hero-headline {
    font-size: 2.9rem;
    max-width: 640px;
  }

  .hero-form {
    max-width: 480px;
  }
}


/* ═══════════════════════════════════════════════════════════
   ANIMAÇÕES — Estado inicial seguro (GSAP sobrepõe se carregado)
═══════════════════════════════════════════════════════════ */
.js-anim {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   PERFORMANCE — Otimizações de pintura (LCP/INP)
═══════════════════════════════════════════════════════════ */
/* <picture> deve se comportar como <img> para os CSS já existentes */
picture {
  display: contents;
}

/* Pula a renderização de seções fora da viewport até estarem perto.
   Reduz tempo de pintura inicial e custo de layout. */
.aprendizados,
.depoimentos,
.sobre,
.faq,
.final-cta,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1200px;
}

/* Imagens decodificadas/compostas em camada própria evitam reflow do hero */
.hero-image,
.sobre-foto {
  contain: layout paint;
}

/* Honeypot anti-spam — invisível para humanos, mas detectável por bots */
.hp-field {
  position: absolute;
  left: -10000px;
  top: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
