/* =========================================================
   Dra. Auanny Alfaia — Cirurgiã-Dentista
   Folha de estilos principal
   Paleta: rosa nude / blush + acento dourado (herdado do
   monograma da marca) sobre fundo marfim.
   ========================================================= */

:root {
  /* Cores */
  --cream:        #FBF6F2;
  --cream-deep:   #F5EDE6;
  --blush:        #F4DDE2;
  --blush-soft:   #FBEEF1;
  --rose:         #C58D96;
  --rose-deep:    #A96E78;
  --nude:         #E7C9AE;
  --gold:         #AD8A56;
  --gold-soft:    #D9C09C;
  --ink:          #372C2A;
  --ink-soft:     #7C6D69;
  --white:        #FFFFFF;
  --line:         rgba(173, 138, 86, 0.22);
  --shadow-soft:  0 24px 50px -32px rgba(55, 44, 42, 0.4);
  --shadow-lift:  0 30px 60px -28px rgba(169, 110, 120, 0.35);

  /* Tipografia */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Ritmo */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --section-pad: 100px;
  --section-pad: clamp(72px, 10vw, 140px);
  --container-w: 1180px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Reforço de topo, junto com o mesmo ajuste no body logo abaixo:
     o menu mobile usa position:fixed + transform:translateX() para
     deslizar para fora da tela (ver .main-nav), e essa combinação é
     uma causa conhecida de barra de rolagem horizontal em alguns
     navegadores mesmo com o elemento fora da área visível. Isto é
     um limite de viewport documentado, não uma tentativa de mascarar
     um elemento com largura indevida — todo o restante do CSS evita
     larguras fixas maiores que 100% (ver .container, .testimonial-*,
     img { max-width:100% } etc.).
  */
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
p { margin: 0; }
svg { display: block; fill: none; stroke: currentColor; }

.container {
  width: min(92%, var(--container-w));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.eyebrow {
  font-size: 0.92rem;
  letter-spacing: .02em;
  color: var(--rose-deep);
  font-weight: 600;
  margin: 0 0 10px;
}

.section-title {
  font-size: 2.3rem;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.2;
  max-width: 20ch;
}

.section-note {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.section-head { margin-bottom: 56px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease, color .3s ease, border-color .3s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--rose-deep);
  color: var(--white);
  box-shadow: var(--shadow-lift);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -18px rgba(169,110,120,.55); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(55,44,42,.22);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { background: var(--blush-soft); border-color: var(--rose); }
.btn-dark {
  background: var(--ink);
  color: var(--cream);
}
.btn-dark:hover { transform: translateY(-2px); background: #4a3b38; }
.btn-small { padding: 11px 22px; font-size: 0.88rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s ease;
}
.site-header.scrolled {
  padding: 13px 0;
  background: rgba(251, 246, 242, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 12px 32px -24px rgba(55,44,42,.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; }
.brand-role { font-size: 0.68rem; letter-spacing: .06em; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav ul { display: flex; gap: 30px; }
.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  padding: 0;
}
.menu-toggle span {
  width: 100%; height: 1.5px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 180px 0 100px;
  padding: clamp(150px, 20vw, 210px) 0 100px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 70%, var(--blush-soft) 100%);
}
.hero-arc {
  position: absolute;
  right: -8%;
  top: 0;
  width: min(50vw, 600px);
  height: 100%;
  pointer-events: none;
  opacity: .8;
}
.hero-arc svg { width: 100%; height: 100%; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  position: relative;
}
.hero-title {
  font-size: 3.4rem;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin-top: 6px;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--rose-deep);
  margin-top: 10px;
}
.hero-lede {
  margin-top: 22px;
  max-width: 42ch;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.hero-media { position: relative; display: flex; justify-content: center; }
.hero-photo-frame {
  position: relative;
  width: min(100%, 400px);
  border-radius: 200px 200px 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
/* Reserva a proporção 4:5 mesmo sem suporte a aspect-ratio */
.hero-photo-frame::before { content: ""; display: block; padding-top: 125%; }
@supports (aspect-ratio: 1 / 1) {
  .hero-photo-frame::before { content: none; }
  .hero-photo-frame { aspect-ratio: 4 / 5; }
}
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid rgba(55,44,42,.3);
  border-radius: 20px;
}
.scroll-hint span {
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  background: var(--gold);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite ease;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 7px; }
  70% { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 7px; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: var(--section-pad) 0; }
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}
.about-photo-frame {
  position: relative;
  border-radius: 24px 130px 24px 130px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
/* Reserva a proporção 3:4 mesmo sem suporte a aspect-ratio */
.about-photo-frame::before { content: ""; display: block; padding-top: 133.33%; }
@supports (aspect-ratio: 1 / 1) {
  .about-photo-frame::before { content: none; }
  .about-photo-frame { aspect-ratio: 3/4; }
}
.about-photo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.about-text {
  max-width: 60ch;
  color: var(--ink-soft);
  margin-top: 18px;
  font-size: 1.02rem;
}
.about-text:first-of-type { margin-top: 20px; }
.about-credential { margin-top: 30px; }
.credential-badge {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.85rem;
  letter-spacing: .02em;
  color: var(--rose-deep);
  background: var(--blush-soft);
}

/* =========================================================
   TREATMENTS
   ========================================================= */
.treatments { padding: var(--section-pad) 0; background: var(--cream-deep); position: relative; }
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.treatment-card {
  background: var(--cream);
  padding: 42px 36px;
  transition: background .4s ease;
}
.treatment-card:hover { background: var(--blush-soft); }
.treatment-icon {
  display: inline-flex;
  width: 48px; height: 48px;
  color: var(--gold);
  margin-bottom: 22px;
}
.treatment-icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.3; fill: none; }
.treatment-name { font-size: 1.28rem; margin-bottom: 12px; }
.treatment-desc { color: var(--ink-soft); font-size: 0.96rem; max-width: 34ch; }

/* =========================================================
   PORTFOLIO / COMPARADOR ANTES-DEPOIS
   ========================================================= */
.portfolio { padding: var(--section-pad) 0; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 36px;
}
.result-item { margin: 0; }
.compare {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: ew-resize;
  box-shadow: var(--shadow-soft);
  user-select: none;
  touch-action: pan-y;
}
/* Reserva a proporção 4:5 mesmo sem suporte a aspect-ratio — essencial
   aqui, já que as imagens internas são position:absolute e não dariam
   altura ao elemento sozinhas. */
.compare::before { content: ""; display: block; padding-top: 125%; }
@supports (aspect-ratio: 1 / 1) {
  .compare::before { content: none; }
  .compare { aspect-ratio: 4 / 5; }
}
.compare img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare-before-wrap {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 50%;
  overflow: hidden;
}
.compare-before-wrap img { width: var(--compare-img-w, 100%); max-width: none; }
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,.85);
  transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(55,44,42,.08);
}
.compare-handle-grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--rose-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(55,44,42,.4);
}
.compare-tag {
  position: absolute;
  bottom: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 6px 13px;
  border-radius: 100px;
  background: rgba(55,44,42,.55);
  color: var(--white);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.compare-tag-before { left: 14px; }
.compare-tag-after { right: 14px; }

.compare-expand {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.85);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -10px rgba(55,44,42,.5);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s ease, transform .3s ease, background .3s ease;
}
.compare:hover .compare-expand,
.compare:focus-within .compare-expand {
  opacity: 1;
  transform: translateY(0);
}
.compare-expand:hover { background: var(--white); }
@media (hover: none) {
  .compare-expand { opacity: 1; transform: none; }
}

.result-item figcaption { margin-top: 18px; }
.result-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.result-item figcaption p { color: var(--ink-soft); font-size: 0.92rem; max-width: 42ch; }

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
  padding: 24px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-backdrop {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(28, 20, 19, 0.82);
}
.lightbox-panel {
  position: relative;
  z-index: 2;
  width: min(92vw, 520px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.lightbox-body { flex: 1; min-width: 0; }
/* .compare-lightbox usa a mesma proporção 4:5 já definida em .compare */
.lightbox-caption { text-align: center; margin-top: 20px; color: var(--white); }
.lightbox-caption h3 { color: var(--white); font-size: 1.35rem; margin-bottom: 6px; }
.lightbox-caption p { color: rgba(255,255,255,.72); font-size: 0.92rem; }
.lightbox-close {
  position: absolute;
  top: -46px; right: 0;
  background: none; border: none; color: var(--white);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .3s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }

/* =========================================================
   ATENDIMENTO / PROCESSO
   ========================================================= */
.process { padding: var(--section-pad) 0; background: var(--cream-deep); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--gold) 0 6px, transparent 6px 12px);
  opacity: .6;
}
.process-step { position: relative; padding-top: 50px; }
.process-number {
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--rose-deep);
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.process-step h3 { font-size: 1.18rem; margin-bottom: 10px; }
.process-step p { color: var(--ink-soft); font-size: 0.94rem; max-width: 32ch; }

/* =========================================================
   DEPOIMENTOS
   ========================================================= */
.testimonials { padding: var(--section-pad) 0; }
.testimonial-carousel {
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
  text-align: center;
  /* Viewport do carrossel: sem isto, slides a 100% da largura
     ficariam lado a lado e vazariam para fora do container — essa é
     a causa real de overflow horizontal num carrossel deste tipo.
     Isto NÃO é usado para "esconder" um layout quebrado: é a técnica
     correta — o track desliza por dentro desta janela recortada, e
     todo o dimensionamento abaixo (min-width:0, box-sizing:border-box,
     flex-basis:100%) garante que o conteúdo nunca exceda esta janela. */
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  width: 100%;
  max-width: 100%;
  transition: transform .5s var(--ease);
}
.testimonial-slide {
  flex: 0 0 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 10px;
  box-sizing: border-box;
}
.testimonial-slide blockquote {
  margin: 0;
  padding: 48px 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  max-width: 100%;
}
.testimonial-slide p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: break-word;
}
.testimonial-slide footer {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.testimonial-name { font-weight: 600; color: var(--ink); }
.testimonial-meta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; color: var(--ink-soft); }
.testimonial-rating { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; }

/* Estado vazio (nenhum depoimento publicado ainda) */
.testimonial-empty {
  padding: 56px 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  max-width: 100%;
}
.testimonial-empty-icon {
  display: inline-flex;
  color: var(--gold);
  margin-bottom: 18px;
}
.testimonial-empty-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.28rem;
  color: var(--ink);
  line-height: 1.5;
  max-width: 42ch;
  margin-inline: auto;
  overflow-wrap: break-word;
}
.testimonial-empty-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.testimonial-controls[hidden] { display: none; }
.testimonial-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s ease, color .3s ease;
}
.testimonial-btn:hover { background: var(--rose-deep); color: var(--white); border-color: var(--rose-deep); }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  transition: background .3s ease, transform .3s ease;
}
.testimonial-dot.is-active { background: var(--rose-deep); transform: scale(1.3); }

.testimonial-cta {
  text-align: center;
  margin-top: 40px;
}

/* =========================================================
   MODAL GENÉRICO (usado pelo formulário de depoimento)
   Mesmo padrão de interação do .lightbox: opacidade/visibilidade
   controladas pela classe .is-open, fundo escurecido clicável para
   fechar, painel central com foco preso via JS.
   ========================================================= */
.modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
  padding: 24px;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(28, 20, 19, 0.72);
}
.modal-panel {
  position: relative;
  z-index: 2;
  width: min(94vw, 560px);
  max-height: min(88vh, 780px);
  overflow-y: auto;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 44px clamp(22px, 5vw, 44px) 36px;
  box-sizing: border-box;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none; color: var(--ink-soft);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .3s ease, color .3s ease;
}
.modal-close:hover { background: var(--blush-soft); color: var(--ink); }
.modal-title { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 4px; }
.modal-intro { color: var(--ink-soft); font-size: 0.94rem; margin-top: 12px; max-width: 48ch; }

/* ---------- Formulário de depoimento ---------- */
#testimonialForm { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 100%; }
.form-row label,
.form-row legend {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
}
.form-row input[type="text"],
.form-row input[type="file"],
.form-row select,
.form-row textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-row input[type="text"]:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(197, 141, 150, 0.18);
}
.form-row fieldset { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.char-counter { align-self: flex-end; font-size: 0.78rem; color: var(--ink-soft); }

/* Avaliação em estrelas — inputs de rádio acessíveis, ocultos
   visualmente, com os rótulos estilizados como estrelas clicáveis.
   Marcação em ordem 5→1 + row-reverse para que ":checked ~ label"
   e ":hover ~ label" preencham corretamente da esquerda até a nota
   escolhida, sem nenhum JavaScript. */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 6px;
}
.star-rating input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.star-rating label {
  font-size: 2rem;
  line-height: 1;
  color: var(--line);
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked + label,
.star-rating input:checked ~ label {
  color: var(--gold);
}
.star-rating input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.form-row-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.form-row-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 18px; height: 18px;
  flex-shrink: 0;
  accent-color: var(--rose-deep);
}
.form-row-checkbox label { font-size: 0.86rem; font-weight: 400; color: var(--ink-soft); }

/* Campo-armadilha anti-spam: existe no DOM e é "preenchível" por
   robôs, mas invisível e inalcançável por teclado para pessoas. */
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

#tfSubmitBtn { align-self: flex-start; }
#tfSubmitBtn[disabled] { opacity: 0.65; cursor: not-allowed; }

.form-feedback {
  font-size: 0.9rem;
  min-height: 1.4em;
  margin: 0;
}
.form-feedback.is-success { color: #4d7358; }
.form-feedback.is-info { color: var(--rose-deep); }
.form-feedback.is-error { color: #a8433a; }

@media (max-width: 640px) {
  .modal-panel { padding: 36px 20px 28px; border-radius: var(--radius-md); }
  .star-rating label { font-size: 1.7rem; }
}

/* =========================================================
   CTA
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--blush) 0%, var(--blush-soft) 100%);
  padding: 90px 0;
  text-align: center;
}
.cta-inner h2 { font-size: 2.2rem; font-size: clamp(1.9rem, 3.4vw, 2.6rem); max-width: 18ch; margin-inline: auto; }
.cta-inner p { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; }
.cta-inner .btn { margin-top: 32px; }

/* =========================================================
   CONTATO
   ========================================================= */
.contact { padding: var(--section-pad) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-list { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.contact-label { font-size: 0.78rem; color: var(--rose-deep); font-weight: 600; }
.contact-value { font-size: 1.02rem; }
.contact-buttons { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.contact-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.contact-map::before { content: ""; display: block; padding-top: 85%; }
@supports (aspect-ratio: 1 / 1) {
  .contact-map::before { content: none; }
  .contact-map { aspect-ratio: 4/3.4; }
}
.contact-map iframe { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); padding: 56px 0 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-mark { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; }
.footer-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); }
.footer-cro { font-size: 0.78rem; color: rgba(255,255,255,.55); margin-top: 2px; }
.footer-detail { font-size: 0.82rem; color: rgba(255,255,255,.62); margin-top: 6px; max-width: 34ch; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.92rem; color: rgba(255,255,255,.75); }
.footer-nav a:hover { color: var(--white); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
  transition: background .3s ease, border-color .3s ease;
}
.footer-social a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.footer-bottom {
  padding: 22px 0 26px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
}

/* =========================================================
   BOTÃO FLUTUANTE WHATSAPP
   ========================================================= */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 400;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--rose-deep);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px -14px rgba(169,110,120,.6);
  animation: waPulse 3.2s infinite ease;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 16px 34px -14px rgba(169,110,120,.6); }
  50% { box-shadow: 0 16px 34px -14px rgba(169,110,120,.6), 0 0 0 8px rgba(169,110,120,.12); }
}

/* =========================================================
   ANIMAÇÕES DE ENTRADA (scroll)
   ========================================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-animate="fade-in"] { transform: translateY(0) scale(.97); }
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.treatments-grid .treatment-card[data-animate].in-view:nth-child(1) { transition-delay: .05s; }
.treatments-grid .treatment-card[data-animate].in-view:nth-child(2) { transition-delay: .12s; }
.treatments-grid .treatment-card[data-animate].in-view:nth-child(3) { transition-delay: .19s; }
.treatments-grid .treatment-card[data-animate].in-view:nth-child(4) { transition-delay: .05s; }
.treatments-grid .treatment-card[data-animate].in-view:nth-child(5) { transition-delay: .12s; }
.treatments-grid .treatment-card[data-animate].in-view:nth-child(6) { transition-delay: .19s; }
.process-steps .process-step[data-animate].in-view:nth-child(1) { transition-delay: 0s; }
.process-steps .process-step[data-animate].in-view:nth-child(2) { transition-delay: .1s; }
.process-steps .process-step[data-animate].in-view:nth-child(3) { transition-delay: .2s; }
.process-steps .process-step[data-animate].in-view:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
  .scroll-hint span { animation: none; }
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 2; }
  .hero-media { order: 1; margin-bottom: 20px; }
  .hero-lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-arc { opacity: .5; }

  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-media { order: 1; max-width: 340px; margin-inline: auto; width: 100%; }
  .about-content { order: 2; text-align: center; }
  .about-text, .section-title { margin-inline: auto; }
  .about-credential { display: flex; justify-content: center; }

  .treatments-grid { grid-template-columns: repeat(2, 1fr); }

  .portfolio-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }

  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .process-steps::before { display: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { max-width: 560px; margin-inline: auto; width: 100%; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(78vw, 340px);
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 110px 34px 40px;
    gap: 40px;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    box-shadow: -20px 0 50px -30px rgba(0,0,0,.3);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 26px; }
  .nav-link { font-size: 1.15rem; }
  .menu-toggle { display: flex; }
}

@media (max-width: 640px) {
  :root { --section-pad: 72px; }
  .hero { padding-top: 130px; }
  .hero-photo-frame { aspect-ratio: 3/4; }
  .treatments-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; row-gap: 30px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 18px 22px; }
  .lightbox-panel { flex-direction: column; }
  .lightbox-nav { position: static; }
  .lightbox-body { order: -1; width: 100%; }
  .lightbox-panel { width: min(94vw, 420px); }
  .contact-buttons .btn { flex: 1 1 100%; justify-content: center; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }

  .testimonial-slide { padding: 0 4px; }
  .testimonial-slide blockquote { padding: 34px 22px; }
  .testimonial-slide p { font-size: 1.18rem; }
  .testimonial-controls { gap: 14px; }
}

/* Telas muito estreitas (320–374px): folga extra para textos e botões */
@media (max-width: 374px) {
  .testimonial-slide blockquote { padding: 28px 16px; }
  .testimonial-slide p { font-size: 1.08rem; }
  .hero-title { font-size: 2.5rem; }
  .btn { padding: 14px 22px; font-size: 0.9rem; }
}
