/* ==========================================================================
   Instituto Paulo Sérgio Gomes — Landing Page
   Design tokens + estilos globais
   ========================================================================== */

:root {
  /* Paleta — creme / dourado / marrom escuro (identidade Instagram + referência Sina Clinic) */
  --color-cream: #f6efe2;
  --color-cream-2: #efe4d0;
  --color-gold: #a9824c;
  --color-gold-light: #c9a976;
  --color-gold-dark: #8a663a;
  /* Verde-oliva escuro: cor dos destaques de texto (rótulos, palavras em
     destaque nos títulos, links de CTA e o CRO do especialista) sobre fundo
     claro. O dourado continua nos elementos decorativos (molduras, estrelas,
     nota 4,9, "+" do FAQ) e nas seções de fundo escuro. */
  --color-accent: #3d4d33;
  --color-dark: #241a12;
  --color-dark-2: #362819;
  --color-ink: #2b2118;
  --color-white: #ffffff;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1ebd5a;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Poppins', sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --container-width: 1180px;

  --shadow-soft: 0 20px 45px rgba(43, 33, 24, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--color-ink);
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }

em {
  font-style: italic;
  color: var(--color-accent);
}

p { margin: 0 0 16px; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.eyebrow--light { color: var(--color-gold-light); }

.section-title { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-title--light { color: var(--color-white); }

.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  color: #5c4f40;
}
.section-lead--light { color: #e7d9c2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-dark);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-ink); box-shadow: var(--shadow-soft); }

.btn-outline {
  background: transparent;
  border-color: var(--color-dark);
  color: var(--color-dark);
}
.btn-outline:hover { background: var(--color-dark); color: var(--color-white); }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
}
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); }

.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

.link-cta {
  display: inline-block;
  font-weight: 600;
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
}
.link-cta:hover { border-color: var(--color-accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 239, 226, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(43, 33, 24, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-ink);
  flex-shrink: 0;
}

/* Logo do cabeçalho: arte oficial do cliente (símbolo + wordmark na fonte original do logo).
   Nada é redesenhado em CSS nem redigitado em fonte do site. */
.logo-img {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo-img--mark { display: none; } /* versão só-símbolo, usada no mobile */

/* nome acessível/para SEO, sem aparecer na tela (o nome já está na arte do logo) */
.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;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--color-gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.phone-link {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
}

/* ---------- Hero ---------- */
/* Hero cabe em uma tela só: altura da seção = altura da janela menos o cabeçalho,
   conteúdo centralizado verticalmente e foto limitada pela altura disponível
   (altura definida + largura automática = foto inteira, sem corte). */
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100svh - 92px);
  padding: 40px 0;
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-2) 100%);
}

.hero-grid {
  display: grid;
  /* colunas do tamanho do conteúdo e centralizadas como um bloco só:
     o texto e a foto ficam próximos e o conjunto fica alinhado no centro da tela */
  grid-template-columns: minmax(320px, 580px) auto;
  justify-content: center;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero h1 { font-size: clamp(2rem, 2.9vw, 2.9rem); margin-bottom: 14px; }
.hero-media { display: flex; justify-content: flex-end; position: relative; }
.hero-ring { display: none; }
.hero .media-frame { width: fit-content; padding: 0 22px 22px 0; }
.hero .media-frame::before { top: 22px; left: 22px; }
.hero .media-frame .foto-real {
  height: min(calc(100svh - 215px), 680px);
  width: auto;
  max-width: 100%;
  aspect-ratio: 902 / 1600;
  box-shadow: 0 32px 64px rgba(43, 33, 24, 0.22);
}
.hero-sub {
  font-size: 1.08rem;
  color: #5c4f40;
  max-width: 520px;
}
/* versão curta do parágrafo do hero, usada só no celular */
.hero-sub-curto { display: none; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0 22px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: #5c4f40;
}

.stars {
  color: var(--color-gold);
  letter-spacing: 2px;
}
.stars--lg { font-size: 1.4rem; }

/* ---------- Placeholder photos ---------- */
.media-frame {
  position: relative;
  padding: 0 18px 18px 0;
}
.media-frame::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  right: 0;
  bottom: 0;
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-md);
  z-index: 0;
}
.media-frame > img {
  position: relative;
  z-index: 1;
}
.media-frame--sm { padding: 0 14px 14px 0; }
.media-frame--sm::before { top: 14px; left: 14px; }

.placeholder-photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(135deg, rgba(43,33,24,0.06) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #ded0b3, #cbb98d);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #5c4a30;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: left;
  box-shadow: var(--shadow-soft);
}
.placeholder-photo::before {
  content: '📷 ' attr(data-label);
  background: rgba(255,255,255,0.75);
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.3;
}

.media-frame--portrait .placeholder-photo { aspect-ratio: 3 / 4; }

.placeholder-photo--card {
  aspect-ratio: 78 / 53; /* proporção exata das fotos de Serviços enviadas (1248x848) — evita qualquer corte */
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: none;
}

.placeholder-photo--square { aspect-ratio: 1 / 1; }

/* ---------- Fotos reais (substituem o placeholder) ---------- */
.foto-real {
  width: 100%;
  height: auto; /* a altura vem do aspect-ratio da moldura — height:100% esticava a moldura e cortava a foto */
  object-fit: cover;
  display: block;
  padding: 0;
  background: none;
}
.foto-real::before { content: none; }

/* ---------- Intro ---------- */
.intro { padding: 96px 0; }
.intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.intro-copy p { color: #5c4f40; }

/* ---------- Especialista ---------- */
.especialista {
  padding: 96px 0;
  background: var(--color-cream-2);
}
.especialista-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
  align-items: center;
}
.especialista-copy .cargo {
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 18px;
}
.especialista-copy p { color: #5c4f40; }

/* ---------- Serviços ---------- */
.servicos {
  padding: 100px 0;
  background: var(--color-dark);
  color: var(--color-white);
}
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.servico-card {
  background: var(--color-dark-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
}
.servico-card h3 { color: var(--color-white); padding: 0 24px; margin-top: 22px; }
.servico-card p { color: #d8c9ae; padding: 0 24px; font-size: 0.95rem; }
.servico-card .link-cta { margin: auto 24px 0; color: var(--color-gold-light); padding-top: 18px; }
.servico-card .link-cta:hover { border-color: var(--color-gold); }

/* ---------- Diferenciais ---------- */
.diferenciais { padding: 100px 0; }
.diferenciais-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.diferenciais-copy p { color: #5c4f40; max-width: 440px; }
.diferenciais-cards { display: flex; flex-direction: column; gap: 28px; }
.diferencial-item {
  border-left: 2px solid var(--color-accent);
  padding-left: 22px;
}
.diferencial-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-accent);
  font-weight: 600;
}
.diferencial-item p { color: #5c4f40; margin-bottom: 0; }

/* ---------- Resultados ---------- */
.resultados { padding: 100px 0; background: var(--color-cream-2); }
.antes-depois-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.legal-note {
  text-align: center;
  font-size: 0.8rem;
  color: #8a7a63;
  margin-top: 24px;
}

/* ---------- Prova social ---------- */
.prova-social { padding: 100px 0; }
.rating-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.rating-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 36px;
  background: var(--color-cream-2);
  border: 1px solid rgba(169, 130, 76, 0.25);
  border-radius: var(--radius-md);
}
.rating-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--color-gold);
  font-weight: 600;
}
.rating-divider {
  width: 1px;
  height: 44px;
  background: rgba(169, 130, 76, 0.3);
}
.rating-details { text-align: left; }
.rating-details .stars { margin-bottom: 6px; display: block; }
.rating-details p { margin: 0; font-size: 0.9rem; color: #5c4f40; }
.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.depoimento-card {
  background: var(--color-cream-2);
  border-radius: var(--radius-md);
  padding: 28px;
  font-style: italic;
  color: #5c4f40;
  display: flex;
  flex-direction: column;
}
.depoimento-autor {
  display: block;
  margin-top: auto;
  padding-top: 14px;
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-ink);
}

/* ---------- FAQ ---------- */
.faq { padding: 100px 0; background: var(--color-cream-2); }
.faq-container { max-width: 780px; }
.accordion-item {
  border-bottom: 1px solid rgba(43,33,24,0.15);
}
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-trigger::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-gold);
  transition: transform 0.2s ease;
  margin-left: 16px;
}
.accordion-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel p {
  padding: 0 4px 22px;
  color: #5c4f40;
}

/* ---------- CTA Final ---------- */
.cta-final { padding: 100px 0; background: var(--color-dark); color: var(--color-white); }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.cta-copy .section-title,
.cta-copy .section-lead {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.cta-info-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  color: #d8c9ae;
  font-size: 0.92rem;
}
.cta-info-list li { margin-bottom: 8px; }
.cta-info-list a { color: #d8c9ae; text-decoration: none; border-bottom: 1px solid rgba(216,201,174,0.35); transition: color .2s, border-color .2s; }
.cta-info-list a:hover { color: var(--color-gold-light); border-color: var(--color-gold-light); }

.cta-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  color: var(--color-ink);
}
.lead-form { display: flex; flex-direction: column; gap: 6px; }
.lead-form label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 12px;
  color: #5c4f40;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  font-family: var(--font-body);
  padding: 12px 14px;
  border: 1px solid #d9cbb0;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--color-cream);
  color: var(--color-ink);
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
}
.lead-form button { margin-top: 20px; }
.form-note {
  font-size: 0.75rem;
  color: #8a7a63;
  margin-top: 12px;
  margin-bottom: 0;
}
.hidden-field { position: absolute; left: -9999px; }

.form-success {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  color: var(--color-ink);
}
.form-success .btn-whatsapp { margin-top: 16px; }

/* ---------- Footer ---------- */
/* Rodapé claro: o logo oficial é de traço escuro, então o fundo claro deixa a marca
   aparecer na cor original, sem filtro, sem recorte e sem plaquinha por trás. */
.site-footer {
  background: var(--color-cream-2);
  color: #5c4f40;
  padding: 64px 0 24px;
  border-top: 1px solid rgba(43, 33, 24, 0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(43, 33, 24, 0.12);
}
.footer-grid h4 {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-grid a { display: block; margin-bottom: 10px; font-size: 0.92rem; color: #5c4f40; }
.footer-grid a:hover { color: var(--color-gold-dark); }
.footer-desc { font-size: 0.88rem; color: #6b5d4a; }
.footer-desc--link { display: block; text-decoration: none; }
.footer-desc--link:hover { color: var(--color-gold-dark); text-decoration: underline; }
.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}
.footer-logo img {
  height: 86px;
  width: auto;
  display: block;
}
.footer-bottom {
  padding-top: 24px;
  font-size: 0.8rem;
  color: #8a7a63;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  z-index: 60;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* ==========================================================================
   Efeitos: scroll reveal, hover em cards, monograma, ênfase tipográfica
   Inspirado nas referências enviadas pelo cliente (Sina Clinic + Clínica Romana)
   ========================================================================== */

/* ---------- Scroll reveal (fade-in ao rolar) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Ênfase tipográfica (peso mais forte dentro do heading) ---------- */
.text-emphasis {
  font-weight: 600;
  color: var(--color-accent);
}

/* ---------- Sublinhado decorativo (swash) sob palavra-chave ---------- */
.underline-swash {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.underline-swash::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -1px;
  height: 10px;
  background-color: currentColor;
  opacity: 0.85;
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16'><path d='M2 10 C 20 2, 30 2, 48 10 C 66 18, 76 18, 94 10 C 112 2, 122 2, 140 10 C 158 18, 168 18, 186 10' stroke='black' stroke-width='4' fill='none' stroke-linecap='round'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16'><path d='M2 10 C 20 2, 30 2, 48 10 C 66 18, 76 18, 94 10 C 112 2, 122 2, 140 10 C 158 18, 168 18, 186 10' stroke='black' stroke-width='4' fill='none' stroke-linecap='round'/></svg>");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* ---------- Monograma gigante semitransparente (seção Serviços) ---------- */
.servicos {
  position: relative;
  overflow: hidden;
}

.servicos .container {
  position: relative;
  z-index: 1;
}
.servicos h2 em {
  color: var(--color-gold-light);
}
.cta-final h2 em {
  color: var(--color-gold);
}

/* ---------- Hover nos cards de serviço (zoom sutil + leve elevação) ---------- */
.servico-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.servico-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
}
.servico-card .placeholder-photo--card {
  transition: transform 0.5s ease;
}
/* sem zoom na foto no hover: o zoom cortava as bordas da imagem */

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  /* no mobile a foto do hero é limitada pela largura (altura automática) — mantém a foto inteira */
  .hero { min-height: 0; padding: 40px 0 56px; }
  .hero .media-frame { width: 100%; }
  .hero .media-frame .foto-real { height: auto; width: 100%; }
  .hero-media { justify-content: center; }

  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .phone-link { display: none; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 10px; }
  .header-actions .btn { padding: 11px 16px; font-size: 0.82rem; }

  .hero-grid,
  .intro-grid,
  .especialista-grid,
  .diferenciais-grid,
  .cta-grid { grid-template-columns: 1fr; }

  .intro-media, .especialista-media { order: -1; }

  .servicos-grid { grid-template-columns: 1fr; }
  .antes-depois-grid { grid-template-columns: repeat(2, 1fr); }
  .depoimentos-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  .logo-img--full { height: 34px; }
  .header-actions .btn { display: none; }
  .btn-lg { padding: 14px 24px; font-size: 0.92rem; }
  .hero { padding: 48px 0 64px; }

  .intro, .especialista, .servicos, .diferenciais, .resultados, .prova-social, .faq, .cta-final {
    padding: 64px 0;
  }
  .antes-depois-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cta-form-wrap { padding: 24px; }

  /* Evita que o botão flutuante do WhatsApp (fixed, bottom-right) sobreponha
     o texto de copyright no rodapé em telas estreitas. */
  .footer-bottom { padding-right: 84px; padding-bottom: 84px; }

  /* Seção "Abordagem integrada" removida só na versão mobile, a pedido do
     cliente. Continua normalmente no desktop. */
  .diferenciais { display: none; }

  /* Trechos que o cliente pediu pra não aparecer no celular (continuam no
     desktop): o parágrafo do endereço em "Sobre o instituto" e o parágrafo de
     workshops/capacitações em "Especialista". */
  .so-desktop { display: none; }

  /* No celular o retrato do Dr. Paulo usa a versão quadrada enviada pelo
     cliente (o <picture> troca o arquivo); a moldura acompanha em 1:1 pra
     não cortar nada. No desktop continua a foto 3:4 de sempre. */
  .especialista .media-frame--portrait .placeholder-photo { aspect-ratio: 1 / 1; }
}

/* ---------- Hero de celular (estilo da referência enviada pelo cliente) ---------- */
@media (max-width: 480px) {
  /* Hero mobile no estilo da referência do cliente: a foto vira uma camada de
     fundo ancorada na direita (sangrando até a borda da tela), por trás dos
     textos, com as bordas esquerda/superior/inferior esfumaçadas (o degradê
     está embutido no próprio arquivo .webp, com transparência). */
  .hero {
    position: relative;
    overflow: hidden;
    padding: 52px 0 76px;
    /* garante altura suficiente pra foto caber inteira em qualquer celular
       (em telas mais largas o texto quebra em menos linhas e o hero encolhia) */
    min-height: calc(100vw * 1.55);
    align-items: flex-start;
  }
  /* Véu creme em diagonal por cima da foto e por baixo do texto: é o que
     dissolve a foto em direção ao texto (na referência a foto some por volta
     de 84% da largura no topo e 33% embaixo). */
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to top, var(--color-cream-2) 0, rgba(239, 228, 208, 0) 52px),
      linear-gradient(
        104deg,
        var(--color-cream) 20%,
        rgba(246, 239, 226, 0.88) 33%,
        rgba(246, 239, 226, 0.40) 46%,
        rgba(246, 239, 226, 0) 60%
      );
    z-index: 1;
    pointer-events: none;
  }
  .hero-grid { gap: 0; }
  .hero-copy { position: relative; z-index: 2; }
  /* Coluna de texto mais estreita pra sobrar a direita da tela pra foto,
     como na referência (o texto não entra na parte nítida da imagem). */
  .hero h1 { max-width: 90%; }
  .hero-sub { max-width: 56%; font-size: 0.94rem; }
  .hero-sub-longo { display: none; }
  .hero-sub-curto { display: inline; }

  /* Respiro entre os blocos do hero no celular: sem isso rótulo, título,
     texto, botões e nota do Google ficam todos colados. */
  .hero .eyebrow { margin-bottom: 20px; }
  .hero h1 { margin-bottom: 22px; line-height: 1.16; }
  .hero-sub { margin-bottom: 0; line-height: 1.75; }
  .hero-trust { margin-top: 4px; font-size: 0.9rem; }
  .hero-trust .stars { font-size: 1rem; }
  /* Botões do hero no celular: os dois com a mesma largura (limitada pra coluna
     de texto não alcançar os rostos da foto), mas com hierarquia clara — o de
     agendamento maior, mais escuro e com sombra; o de tratamentos menor e mais
     discreto, como ação secundária. */
  .hero .hero-ctas {
    max-width: 218px;
    gap: 14px;
    margin: 32px 0 30px;
  }
  .hero .hero-ctas .btn { width: 100%; }
  .hero .hero-ctas .btn-primary {
    padding: 17px 20px;
    font-size: 0.95rem;
    box-shadow: 0 10px 22px rgba(43, 33, 24, 0.22);
  }
  .hero .hero-ctas .btn-outline {
    padding: 15px 16px;
    font-size: 0.78rem;
    font-weight: 500;
    border-color: rgba(43, 33, 24, 0.32);
    color: #5c4f40;
  }

  .hero-media {
    position: absolute;
    right: -24%;
    top: 20%;
    bottom: auto;
    width: 78%;
    margin: 0;
    padding: 0;
    display: block;
    z-index: 0;
    pointer-events: none;
  }
  .hero .media-frame { width: 100%; padding: 0; position: static; }
  .hero .media-frame::before { content: none; }
  .hero .media-frame picture { display: block; }
  .hero .media-frame .foto-real {
    height: auto;
    width: 100%;
    aspect-ratio: auto;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(-14px 12px 26px rgba(43, 33, 24, 0.16));
  }

  /* O botão vazado ganha fundo sólido pra foto não aparecer por dentro dele */
  .hero-ctas .btn-outline { background: var(--color-cream); }

  /* Nota do Google em duas linhas, como na referência, com um leve halo creme
     atrás pra continuar legível mesmo com a foto passando por trás */
  .hero-trust { align-items: flex-start; position: relative; width: fit-content; }
  .hero-trust::before {
    content: '';
    position: absolute;
    inset: -8px -14px -8px -24px;
    background: radial-gradient(
      75% 120% at 15% 50%,
      var(--color-cream) 30%,
      rgba(246, 239, 226, 0) 100%
    );
    z-index: -1;
  }
  .hero-trust-sep { display: none; }
  .hero-trust-count { display: block; }

  /* Arco dourado decorativo (círculo gigante, só o trecho do arco aparece) */
  .hero-ring {
    display: block;
    position: absolute;
    width: 336vw;
    height: 336vw;
    left: -206vw;
    top: -192vw;
    border-radius: 50%;
    border: 1px solid var(--color-gold);
    opacity: 0.35;
    z-index: 2;
    pointer-events: none;
  }
}

/* Mobile nav open state */
.main-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-cream);
  padding: 20px 24px 28px;
  gap: 18px;
  box-shadow: var(--shadow-soft);
  z-index: 1;
}

/* Fundo escurecido atrás do menu mobile aberto: separa o menu do conteúdo
   da página (evita a sombra do menu "vazando" sobre o texto do hero) e
   fecha o menu ao tocar fora dele. */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 17, 10, 0.35);
  z-index: 40;
  border: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-backdrop[hidden] { display: none; }

/* ==========================================================================
   Marca d'água (símbolo oficial do Instituto)
   Fixa na tela: usa background-attachment: fixed, então a marca fica presa ao
   centro da janela e o conteúdo rola por cima dela. A transparência está
   embutida nos próprios arquivos (75% nas seções creme, 5% nas escuras),
   porque background-image não aceita opacity via CSS.
   Só no desktop (≥961px).
   ========================================================================== */
@media (min-width: 961px) {
  .intro,
  .especialista,
  .diferenciais,
  .resultados,
  .prova-social,
  .faq {
    background-image: url('../assets/marca-dagua/marca-fixa-creme.webp');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: min(30vw, 460px);
  }
  .hero {
    background:
      url('../assets/marca-dagua/marca-fixa-creme.webp') no-repeat fixed center center / min(30vw, 460px),
      linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-2) 100%);
  }
  .servicos,
  .cta-final {
    background-image: url('../assets/marca-dagua/marca-fixa-escura.webp');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: min(30vw, 460px);
  }
  /* o "P" da fonte na seção de serviços continua desativado */
  .servicos::before { content: none; }
}
