/* ==========================================================================
   Eva Dermatologia · Landing page
   Paleta e tipografia do brandbook (DNA.md). Nada fora dos 6 tokens.
   ========================================================================== */

:root {
  --offwhite: #FAF9F4;
  --areia: #DDD1C4;
  --terracota: #DB9565;
  --terracota-d: #C57F4F;   /* terracota escurecida, só pra hover */
  --dourado: #C7AC6C;
  --salvia: #828170;
  --ink: #2B211A;

  --fonte-titulo: "Lora", Georgia, serif;
  --fonte-corpo: "Open Sans", -apple-system, sans-serif;
  --fonte-manuscrita: "Allura", cursive;

  --ease-suave: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 76px;
  --espaco-secao: clamp(4.5rem, 10vw, 8.5rem);

  /* escala de camadas */
  --z-flutuante: 4;
  --z-header: 10;
  --z-menu-mobile: 9;
  --z-whats: 8;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: var(--fonte-corpo);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; text-wrap: pretty; }

.container {
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
}

.container-estreito { max-width: 760px; }

/* ---------- Tipografia de seção ---------- */

.titulo-secao {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  letter-spacing: -0.01em;
}

.titulo-grande {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.015em;
  max-width: 18ch;
}

.titulo-grande em { font-style: italic; }

/* variante que precisa caber numa linha só no desktop */
.titulo-uma-linha {
  max-width: none;
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
}

.olho {
  font-family: var(--fonte-corpo);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracota-d);
  margin-bottom: 1rem;
}

.olho-claro { color: var(--dourado); }

/* ---------- Botões ---------- */

.btn {
  display: inline-block;
  font-family: var(--fonte-corpo);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-suave), transform 0.15s var(--ease-suave);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--terracota);
  color: var(--ink);
  padding: 0.85rem 1.7rem;
  font-size: 0.95rem;
}

.btn-primary:hover { background: var(--terracota-d); }

.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }

.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--terracota);
  outline-offset: 3px;
}

/* ==========================================================================
   HEADER · 2 estágios (mecânica do vcass: classe .scrolled + transição CSS)
   ========================================================================== */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding-inline: clamp(0.75rem, 3vw, 2rem);
  padding-top: clamp(0.5rem, 2vw, 1.25rem);
}

.header-inner {
  pointer-events: all;
  width: 100%;
  max-width: 1280px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: clamp(1rem, 2.5vw, 1.75rem);
  border-radius: 10px;
  background: transparent;
  transition:
    background-color 0.6s var(--ease-suave),
    box-shadow 0.6s var(--ease-suave),
    max-width 0.6s var(--ease-suave),
    height 0.6s var(--ease-suave);
}

.scrolled .header-inner {
  max-width: 1080px;
  height: 62px;
  background: rgba(250, 249, 244, 0.94);
  box-shadow: 0 10px 34px rgba(43, 33, 26, 0.12);
  backdrop-filter: blur(8px);
}

.header-logo { display: block; position: relative; height: 44px; }

.logo-img { height: 100%; width: auto; transition: opacity 0.4s var(--ease-suave); }

.logo-ink { position: absolute; inset: 0; opacity: 0; }

.scrolled .logo-cream { opacity: 0; }
.scrolled .logo-ink { opacity: 1; }

.header-menu {
  display: flex;
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu a {
  color: var(--offwhite);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 0.4s var(--ease-suave), border-color 0.25s var(--ease-suave);
  white-space: nowrap;
}

.header-menu a:hover { border-bottom-color: var(--terracota); }

.scrolled .header-menu a { color: var(--ink); }

.header-right { display: flex; align-items: center; gap: 0.75rem; }

.btn-header { padding: 0.65rem 1.25rem; font-size: 0.85rem; white-space: nowrap; }

/* hambúrguer */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--offwhite);
  transition: transform 0.3s var(--ease-suave), background-color 0.4s var(--ease-suave);
}

.scrolled .menu-toggle span, .menu-aberto .menu-toggle span { background: var(--ink); }

.menu-aberto .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-aberto .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu-mobile);
  background: var(--offwhite);
  padding: calc(var(--header-h) + 2rem) 2rem 2rem;
}

.mobile-menu ul { list-style: none; margin: 0; padding: 0; }

.mobile-menu a {
  display: block;
  padding: 0.7rem 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--fonte-titulo);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(221, 209, 196, 0.6);
}

.mobile-menu-cta { color: var(--terracota-d) !important; font-weight: 600; }

/* ==========================================================================
   HERO · crossfade + scrim (D-011: full-bleed, texto na zona de respiro)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* o vídeo já é escuro e on-palette: scrim de leitura discreto */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(43, 33, 26, 0.4) 0%, rgba(43, 33, 26, 0) 16%),
    radial-gradient(ellipse 85% 65% at 50% 55%, rgba(43, 33, 26, 0.34) 0%, rgba(43, 33, 26, 0.14) 65%, rgba(43, 33, 26, 0.05) 100%),
    linear-gradient(to top, rgba(43, 33, 26, 0.45) 0%, rgba(43, 33, 26, 0.04) 35%);
}

.hero-content {
  position: relative;
  color: var(--offwhite);
  padding-block: clamp(6rem, 14vh, 9rem) clamp(3rem, 8vh, 5rem);
  max-width: 1200px;
  text-align: center;
}

.hero-olho {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--areia);
  margin-bottom: 1.4rem;
}

.hero-headline {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--offwhite);
  margin-inline: auto;
  margin-bottom: 0;
}

.cabelo-allura {
  font-family: var(--fonte-manuscrita);
  font-weight: 400;
  font-size: 1.4em;
  line-height: 1;
  color: var(--terracota);
  padding-inline: 0.06em;
}

/* destaque manuscrito (Allura) numa palavra dentro de um título */
.hl-allura {
  font-family: var(--fonte-manuscrita);
  font-style: normal;
  font-weight: 400;
  font-size: 1.35em;
  line-height: 1;
  color: var(--terracota);
  padding-inline: 0.04em;
}

.quebra-mobile { display: none; }

.hero-sub {
  max-width: none;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(250, 249, 244, 0.92);
  margin: 1.4rem auto 0;
}

.hero-prova {
  position: absolute;
  bottom: clamp(1.5rem, 4.5vh, 3rem);
  left: 50%;
  translate: -50% 0;
  width: max-content;
  max-width: calc(100% - 2.5rem);
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  color: var(--offwhite);
}

.hero-prova .estrela { color: var(--dourado); }

/* ==========================================================================
   SEÇÕES
   ========================================================================== */

section { padding-block: var(--espaco-secao); }

.hero { padding-block: 0; }

/* ---------- Bloco 2 · Estalo (vídeo match cut de fundo) ---------- */

.estalo {
  position: relative;
  overflow: hidden;
  padding-block: 0;
  min-height: min(80vh, 660px);
  display: flex;
  align-items: center;
}

.estalo-media { position: absolute; inset: 0; }

.estalo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

/* respiro à esquerda: leve clareada pra leitura do texto escuro, frascos (direita) ficam limpos */
.estalo-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(250, 249, 244, 0.9) 0%, rgba(250, 249, 244, 0.72) 32%, rgba(250, 249, 244, 0.18) 52%, rgba(250, 249, 244, 0) 66%);
}

.estalo-grid {
  position: relative;
}

.estalo-texto {
  max-width: 34rem;
  transform: translateY(-3%);
}

/* título em duas linhas (br explícito); a coluna alarga só o bastante pra caber a 1ª linha */
.estalo-titulo { text-wrap: nowrap; }

/* parágrafos acompanham a mesma largura do título (mesma margem dos dois lados) */
.estalo-texto p { max-width: none; }

.destaque-allura {
  font-family: var(--fonte-manuscrita);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.2;
  color: var(--terracota-d);
  margin: 1.5rem 0 0;
  transform: rotate(-2deg);
}

.esp-foto, .bianca-foto {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

.esp-foto img, .bianca-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bianca-foto img { aspect-ratio: 3 / 4; }

/* ---------- Bloco 3 · Método ---------- */

.metodo {
  background: var(--areia);
  padding-block: clamp(2rem, 4vw, 3rem) var(--espaco-secao);
}

.metodo-header {
  max-width: none;
  text-align: center;
  margin-inline: auto;
}

.metodo-intro { font-size: 1.05rem; margin-inline: auto; }

/* subtítulo em uma linha só no desktop */
@media (min-width: 1024px) {
  .metodo-intro { white-space: nowrap; }
}

/* Linha do tempo do método: 3 pontos, da esquerda pra direita */
.metodo-passos.timeline {
  list-style: none;
  margin: clamp(2.5rem, 6vw, 4rem) 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(to right, var(--terracota), rgba(219, 149, 101, 0.35));
}

.timeline .passo {
  text-align: center;
  position: relative;
  padding-top: 2.4rem;
}

.timeline .passo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--terracota);
  border: 3px solid var(--areia);
  box-shadow: 0 0 0 2px var(--terracota);
}

.passo h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.6rem;
}

.passo-num {
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-size: 2rem;
  color: var(--terracota-d);
  line-height: 1;
}

.passo p { font-size: 0.95rem; max-width: 34ch; margin-inline: auto; }

.metodo-fecho {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  border-top: 1px solid rgba(43, 33, 26, 0.18);
  padding-top: 2.5rem;
}

.metodo-outcome {
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-size: 1.2rem;
  margin: 0 auto;
  max-width: 40ch;
}

/* ---------- Bloco 4 · Scanner (imagem de fundo; scanner à esquerda, texto no terço direito) ---------- */

.scanner {
  position: relative;
  overflow: hidden;
  padding-block: 0;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  color: var(--ink);
}

.scanner-media { position: absolute; inset: 0; }

.scanner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left 38%;
}

/* "de ponta" em destaque no título */
.hl-ponta {
  font-weight: 700;
  color: var(--terracota-d);
}

/* clareia o terço direito pra leitura, mantendo o scanner (esquerda) limpo */
.scanner-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(250, 249, 244, 0.86) 0%, rgba(250, 249, 244, 0.6) 26%, rgba(250, 249, 244, 0.12) 46%, rgba(250, 249, 244, 0) 60%);
}

.scanner-grid { position: relative; }

/* texto no terço direito, com respiro na borda (não colado na extremidade) */
.scanner-texto {
  max-width: 30rem;
  margin-left: auto;
}

.scanner p { color: var(--ink); max-width: 40ch; }

.scanner-chip {
  display: block;
  width: fit-content;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--terracota-d);
  background: rgba(219, 149, 101, 0.16);
  border: 1.5px solid rgba(197, 127, 79, 0.6);
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  margin-top: 0.75rem;
}

/* ---------- Bloco 5 · Especialidades ---------- */

.especialidades-intro {
  padding-block: var(--espaco-secao) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.especialidades-intro .titulo-grande { margin-inline: auto; }

.especialidade {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.esp-invertida .esp-foto { order: 2; }
.esp-invertida .esp-texto { order: 1; }

/* foto com altura fixa de paisagem, contida junto do texto (sem buraco) */
.esp-foto { height: clamp(320px, 32vw, 440px); }

/* mantém o rosto da Bianca visível no recorte paisagem */
.esp-foto img { object-position: center 26%; }

/* pediatria: reenquadra pra mostrar o rosto e o livro (composição mais baixa) */
#dermatopediatria .esp-foto img { object-position: center 44%; }

.esp-texto p { max-width: 48ch; }

.esp-texto .titulo-secao { margin-top: 0; }

.esp-btn { margin-top: 0.75rem; }

.link-agendar {
  color: var(--terracota-d);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--terracota);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease-suave);
}

.link-agendar:hover { color: var(--ink); }

/* ---------- Bloco 6 · Bianca ---------- */

.bianca { background: var(--areia); }

.bianca-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

/* foto menor (mesmo enquadramento, só reduzida), sem sobrar espaço vazio */
.bianca-foto {
  max-width: 380px;
  justify-self: start;
  align-self: center;
}

.bianca-texto p { max-width: 56ch; }

/* frase da residência (UERJ) com ênfase forte, via tipografia */
.bianca-lead {
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34ch;
  margin-bottom: 1.4rem;
}

.bianca-selo {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--terracota-d);
  margin: 1.25rem 0 0;
}

/* ==========================================================================
   BLOCO 7 · Depoimentos flutuantes (física do vcass portada pra vanilla)
   ========================================================================== */

.depoimentos {
  position: relative;
  min-height: 140lvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  background: var(--offwhite);
}

.depoimentos-centro {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding-inline: 1.25rem;
}

.selo-doctoralia {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(199, 172, 108, 0.22);
  border: 1px solid var(--dourado);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  margin: 0;
}

.floating-container { position: absolute; inset: 0; }

.floating-card {
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: clamp(200px, 16.5vw, 260px);
  margin: 0;
  background: #fff;
  border: 1px solid rgba(221, 209, 196, 0.9);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 14px 40px rgba(43, 33, 26, 0.09);
  will-change: transform;
  transition: box-shadow 0.3s var(--ease-suave), scale 0.3s var(--ease-suave);
}

.estrelas {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--dourado);
}

.floating-card:hover {
  scale: 1.03;
  box-shadow: 0 20px 55px rgba(43, 33, 26, 0.16);
}

.floating-card blockquote {
  margin: 0 0 0.6rem;
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
}

.floating-card figcaption {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--salvia);
}

.depo-data {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--salvia);
  margin-top: 0.1rem;
}

/* ---------- Bloco 8 · Agendar ---------- */

.agendar { background: var(--areia); }

.agendar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.passos-agendar {
  margin: 1.5rem 0;
  padding-left: 1.4rem;
  font-size: 1.05rem;
  display: grid;
  gap: 0.9rem;
}

.passos-agendar li::marker {
  font-family: var(--fonte-titulo);
  font-style: italic;
  color: var(--terracota-d);
}

.agendar-clareza { font-size: 0.9rem; color: var(--ink); max-width: 46ch; }

.form-agendar {
  background: var(--offwhite);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1.25rem;
  box-shadow: 0 16px 50px rgba(43, 33, 26, 0.08);
}

.form-campo { display: grid; gap: 0.4rem; }

.form-campo label { font-weight: 600; font-size: 0.9rem; }

.form-campo input,
.form-campo textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--areia);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.form-campo input::placeholder,
.form-campo textarea::placeholder { color: rgba(43, 33, 26, 0.65); }

.form-campo input:focus-visible,
.form-campo textarea:focus-visible {
  outline: 3px solid var(--terracota);
  outline-offset: 1px;
}

.form-erro { color: #8a3417; font-size: 0.82rem; margin: 0; }

.btn-form { width: 100%; }

.form-nota { font-size: 0.8rem; color: var(--salvia); text-align: center; margin: 0; }

/* ---------- Bloco 9 · FAQ ---------- */

.faq-lista { display: grid; gap: 0.25rem; margin-top: 1.5rem; }

.faq-lista details { border-bottom: 1px solid var(--areia); }

.faq-lista summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--fonte-titulo);
  font-size: 1.15rem;
  padding: 1.1rem 2.2rem 1.1rem 0;
  position: relative;
}

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

.faq-lista summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--fonte-corpo);
  font-size: 1.4rem;
  color: var(--terracota-d);
  transition: rotate 0.3s var(--ease-suave);
}

.faq-lista details[open] summary::after { rotate: 45deg; }

.faq-lista details p { max-width: 62ch; padding-bottom: 1.1rem; margin: 0; }

/* ==========================================================================
   FUNDOS DE ESTÚDIO (seções sem imagem/vídeo próprio)
   Artes 1:1 (miolo claro e calmo); cover recorta o centro no desktop e no mobile.
   Scrim creme por cima garante a leitura do texto. Ver 10-Fundos-Secoes-Site.
   ========================================================================== */

.metodo,
.depoimentos,
.agendar,
.especialidades-intro,
.faq,
.bianca {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.metodo {
  background-image: linear-gradient(rgba(250, 249, 244, 0.35), rgba(250, 249, 244, 0.35)), url("../assets/img/eva-bg-estudio-01.webp");
}
.depoimentos {
  background-image: linear-gradient(rgba(250, 249, 244, 0.35), rgba(250, 249, 244, 0.35)), url("../assets/img/eva-bg-estudio-02.webp");
}
.agendar {
  background-image: linear-gradient(rgba(250, 249, 244, 0.35), rgba(250, 249, 244, 0.35)), url("../assets/img/eva-bg-estudio-03.webp");
}
.especialidades-intro {
  background-image: linear-gradient(rgba(250, 249, 244, 0.4), rgba(250, 249, 244, 0.4)), url("../assets/img/eva-bg-estudio-03.webp");
}
.faq {
  background-image: linear-gradient(rgba(250, 249, 244, 0.35), rgba(250, 249, 244, 0.35)), url("../assets/img/eva-bg-estudio-04.webp");
}
.bianca {
  background-image: linear-gradient(rgba(250, 249, 244, 0.3), rgba(250, 249, 244, 0.3)), url("../assets/img/eva-bg-estudio-04.webp");
}

/* ---------- Bloco 10 · CTA final ---------- */

.cta-final { text-align: center; }

.cta-final .titulo-grande { max-width: none; margin-inline: auto; }

.cta-final-sub { font-size: 1.1rem; margin-bottom: 2rem; }

.cta-pratico {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink);
  margin-top: 2.5rem;
}

.cta-pratico a { color: var(--terracota-d); }

/* ---------- Rodapé ---------- */

.rodape {
  background: var(--ink);
  color: var(--offwhite);
  text-align: center;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.rodape-logo { height: 72px; width: auto; margin: 0 auto 1.5rem; }

.rodape-medica { font-size: 0.95rem; margin-bottom: 0.3rem; }

.rodape-registro { font-size: 0.85rem; color: var(--areia); margin-bottom: 1rem; }

.rodape-aviso { font-size: 0.8rem; color: var(--salvia); margin: 0; }

/* ---------- WhatsApp flutuante ---------- */

.whats-flutuante {
  display: none;
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: var(--z-whats);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--terracota);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(43, 33, 26, 0.3);
}

/* ==========================================================================
   REVELAÇÃO NO SCROLL
   Nativa (animation-timeline: view()), sem JS: conteúdo fica visível por
   padrão em browser sem suporte e nunca nasce em branco.
   ========================================================================== */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
  }
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* parallax de mídia (transform aplicada por JS na imagem interna) */
.media-parallax img { will-change: transform; }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 1023px) {
  .header-nav { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 767px) {
  .whats-flutuante { display: flex; }

  .btn-header { padding: 0.55rem 0.9rem; font-size: 0.78rem; }

  .header-logo { height: 36px; }

  .hero-scrim {
    background:
      linear-gradient(to bottom, rgba(43, 33, 26, 0.4) 0%, rgba(43, 33, 26, 0) 16%),
      linear-gradient(to top, rgba(43, 33, 26, 0.5) 0%, rgba(43, 33, 26, 0.28) 55%, rgba(43, 33, 26, 0.12) 100%);
  }

  .hero-headline { font-size: clamp(1.6rem, 7vw, 2.1rem); }

  .quebra-mobile { display: block; }

  /* não brigar com o botão flutuante de WhatsApp */
  .hero-prova { font-size: 0.85rem; max-width: 76%; bottom: 1.4rem; }

  .bianca-grid,
  .agendar-grid,
  .especialidade {
    grid-template-columns: 1fr;
  }

  .esp-invertida .esp-foto { order: 1; }
  .esp-invertida .esp-texto { order: 2; }

  /* Scanner no mobile: imagem em faixa no topo (formato nativo), texto embaixo no creme */
  .scanner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-block: var(--espaco-secao);
  }

  .scanner-media {
    position: static;
    order: -1;
    width: 100%;
    margin-bottom: clamp(1.5rem, 6vw, 2.5rem);
    border-radius: 12px;
    overflow: hidden;
  }

  .scanner-img {
    position: static;
    aspect-ratio: 16 / 9;
    height: auto;
    object-position: center;
  }

  .scanner-scrim { display: none; }

  .scanner-texto { max-width: none; margin-left: 0; }

  .scanner p { max-width: 58ch; }

  .esp-foto img, .bianca-foto img { aspect-ratio: 4 / 5; }

  /* Estalo no mobile: texto em cima no creme, vídeo em baixo no formato nativo (não corta os frascos) */
  .estalo {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-block: var(--espaco-secao);
  }

  .estalo-media {
    position: static;
    order: 2;
    width: 100%;
    margin-top: clamp(1.5rem, 6vw, 2.5rem);
    border-radius: 12px;
    overflow: hidden;
  }

  .estalo-video {
    position: static;
    aspect-ratio: 1920 / 814;
    height: auto;
    object-position: center;
  }

  .estalo-scrim { display: none; }

  .estalo-texto {
    max-width: none;
    transform: none;
  }

  .estalo-texto p { max-width: 58ch; }

  /* linha do tempo vertical no mobile: linha à esquerda, na ordem de leitura */
  .metodo-passos.timeline {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .timeline::before {
    top: 4px;
    bottom: 4px;
    left: 7px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, var(--terracota), rgba(219, 149, 101, 0.35));
  }

  .timeline .passo {
    text-align: left;
    padding-top: 0;
    padding-left: 2.2rem;
  }

  .timeline .passo::before { left: 0; translate: 0 0; }

  .passo h3 { justify-content: flex-start; }

  .passo p { margin-inline: 0; }

  /* Depoimentos no mobile: coluna com leve desalinhamento, sem posicionamento absoluto */
  .depoimentos { min-height: 0; display: block; padding-block: var(--espaco-secao); }

  .depoimentos-centro { margin: 0 auto clamp(2.5rem, 8vw, 4rem); }

  .floating-container {
    position: static;
    display: grid;
    gap: 1.1rem;
    width: min(100% - 2.5rem, 480px);
    margin-inline: auto;
  }

  .floating-card {
    position: static;
    width: 100%;
  }

  .floating-card:nth-child(odd) { translate: -4% 0; }
  .floating-card:nth-child(even) { translate: 4% 0; }

  /* no celular entram só os 6 primeiros cards (a coluna com 24 ficaria um rolo infinito) */
  .floating-card:nth-child(n+7) { display: none; }
}

/* ==========================================================================
   MOVIMENTO REDUZIDO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .header-inner, .logo-img, .header-menu a { transition: none; }

  .floating-card { transition: none; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============================================================
   Fundo unico do bloco final (Depoimentos, Agendar, FAQ, CTA)
   Uma imagem de estudio fixa no desktop, texto passando por cima;
   fallback para scroll no mobile (iOS ignora background-attachment: fixed).
   Regra aditiva: sobrescreve os fundos individuais anteriores pelo cascade.
   ============================================================ */
.depoimentos,
.agendar,
.faq,
.cta-final {
  background-image:
    linear-gradient(rgba(250, 249, 244, 0.35), rgba(250, 249, 244, 0.35)),
    url("../assets/img/eva-bg-estudio-bloco-final.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .depoimentos,
  .agendar,
  .faq,
  .cta-final {
    background-attachment: scroll;
  }
}

/* ============================================================
   Ajustes: (1) remover o fundo de estudio da faixa "Cabelo e o comeco"
   e (2) reduzir o espaco vertical entre secoes no mobile (o vazio
   grande, principalmente nas secoes com fundo, virava friccao).
   Aditivo: vence as regras anteriores pelo cascade.
   ============================================================ */
.especialidades-intro {
  background-image: none;
}

@media (max-width: 767px) {
  /* corta o respiro das secoes pela metade no mobile */
  :root { --espaco-secao: clamp(2.25rem, 7vw, 3.25rem); }

  /* secoes que definem o proprio padding, alinhadas ao ritmo mais compacto */
  .especialidades-intro { padding-block: clamp(1.75rem, 6vw, 2.5rem); }
  .cta-final { padding-block: clamp(2rem, 6vw, 3rem); }
}

/* ============================================================
   Ajustes da avaliacao: botao de CTA no hero + contraste dos
   rotulos pequenos (.olho) de ~2.5:1 para ~5:1 (WCAG AA).
   Aditivo: vence pelo cascade.
   ============================================================ */
.hero-cta {
  margin-top: clamp(1.4rem, 4vh, 2.2rem);
}

.olho {
  color: #955425;
}

/* ============================================================
   Safari em Modo Baixo Consumo bloqueia o autoplay e coloca um
   botao de play grandao sobre o video. Escondemos esse controle
   nativo: o video bloqueado aparece como um still elegante (o
   primeiro frame / poster), sem cara de video quebrado. Ele
   comeca a rodar no primeiro gesto do usuario (ver hero-autoplay.js).
   ============================================================ */
.hero-video::-webkit-media-controls-start-playback-button,
.estalo-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}
.hero-video::-webkit-media-controls,
.estalo-video::-webkit-media-controls {
  display: none !important;
}

/* ============================================================
   O titulo do estalo usa text-wrap: nowrap no desktop (2 linhas
   desenhadas). No mobile isso estourava a largura e cortava
   "shampoo?" e "caindo". Liberamos a quebra e reduzimos um pouco
   a fonte pra caber bonito, sem mexer no desktop.
   ============================================================ */
@media (max-width: 767px) {
  .estalo-titulo {
    text-wrap: balance;
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}
