/* Tela inicial — Obsidian & Gold
   Desktop (>= 1025px): texto à esquerda, dente 3D à direita, barra de diferenciais, SEM a dentista.
   Tablet e celular (<= 1024px): dentista ao fundo (direita), dente 3D à frente, texto sobreposto.
   Carregado depois de site.css, landing.css e efeitos.css para poder sobrepor a antiga tela inicial. */

.hero {
  --champ: #E8DCC5;
  --gold-soft: rgba(198, 161, 91, .24);
  --gold-grad: linear-gradient(180deg, #E2C283 0%, #C6A15B 55%, #AD8744 100%);
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  height: auto;
  min-height: max(100vh, 640px);
  min-height: max(100dvh, 640px);
  padding-top: var(--hh);
  overflow: hidden;
  isolation: isolate;
  background: #0B0B0D;
}

/* ---------- fundo ---------- */
.hero .hero-media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: #050506;          /* preto: só o dente, o anel e as partículas aparecem */
}
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.hero-lines path { fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hero-woman { display: none; }
.hero .hero-shade {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 85% 80% at 60% 45%, transparent 55%, rgba(0, 0, 0, .45) 100%);
}

/* ---------- conteúdo (desktop) ---------- */
.hero-main { position: relative; z-index: 1; display: flex; align-items: center; min-height: 0; }
.hero .hero-copy {
  position: relative; inset: auto; z-index: 2;
  max-width: min(55vw, 1000px);
  padding: clamp(18px, 3vh, 40px) 0 clamp(6px, 2vh, 28px) var(--pad);
}

.hero-seal {
  display: inline-flex; align-items: center; gap: .7em;
  padding: .62em 1.35em .62em 1.05em;
  border: 1px solid var(--gold-soft); border-radius: 999px;
  background: linear-gradient(180deg, rgba(198, 161, 91, .09), rgba(198, 161, 91, .03));
  font-size: clamp(13px, 1.02vw, 17px); color: var(--champ); font-weight: 400; letter-spacing: .005em;
}
.hero-seal svg { width: 1.5em; height: 1.5em; color: var(--gold); stroke: currentColor; flex: none; }
.hero-kicker { display: none; }
.hero-kicker .kk-b { color: var(--gold); }

.hero h1 {
  margin-top: clamp(18px, 3.2vh, 36px);
  font-size: clamp(40px, 5vw, 96px);
  line-height: 1.04; letter-spacing: -.022em; font-weight: 600;
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.hero h1 .gm { color: inherit; }
.br-m { display: none; }

.hero .lead {
  margin-top: clamp(16px, 2.8vh, 30px); max-width: none;
  font-size: clamp(16px, 1.6vw, 30px); line-height: 1.5; font-weight: 300; color: var(--ink-2);
}

.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 1.2vw, 20px); margin-top: clamp(24px, 4.4vh, 52px); }
.hero .btn {
  height: clamp(50px, 3.9vw, 66px); padding: 0 clamp(22px, 2vw, 34px);
  font-size: clamp(14px, 1.06vw, 19px); font-weight: 500; white-space: nowrap; gap: .7em;
}
.hero .btn svg { width: 1.5em; height: 1.5em; flex: none; }
.hero .btn-gold {
  min-width: 0; justify-content: center; color: #0B0B0D;
  background: linear-gradient(180deg, #D9B772 0%, #C6A15B 100%);
  box-shadow: 0 10px 30px rgba(198, 161, 91, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.hero .btn-gold:hover { background: linear-gradient(180deg, #E4C382 0%, #D0AA64 100%); }
.hero .btn-gold .i-lead { stroke: currentColor; }
.hero .btn-gold .i-trail { width: 1.15em; height: 1.15em; margin-left: .15em; }
.hero .btn-ghost { border-color: rgba(198, 161, 91, .6); background: rgba(11, 11, 13, .5); color: var(--ink); }
.hero .btn-ghost:hover { border-color: var(--gold); background: rgba(198, 161, 91, .14); }
.ico-play {
  display: grid; place-items: center; flex: none;
  width: 1.9em; height: 1.9em; border: 1px solid rgba(198, 161, 91, .75); border-radius: 50%; color: var(--gold);
}
.ico-play svg { width: .95em !important; height: .95em !important; margin-left: .1em; stroke: currentColor; }

/* ---------- dente 3D (o vídeo) ---------- */
.hero-tooth {
  position: absolute; inset: 0 0 0 44%; z-index: 1;
  display: grid; place-items: center; pointer-events: none;
  grid-template-columns: minmax(0, 100%); grid-template-rows: minmax(0, 100%);
  container-type: size;
}
.tooth-wrap {
  position: relative; flex: none;
  width: min(78vw, 136vh);
  width: min(78vw, 200cqh);
  aspect-ratio: 854 / 480;
  transform: translateX(4vw);
}
.tooth-wrap::before, .tooth-wrap::after { content: none; }
.tooth-video {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain;
  background: none;            /* quadros com fundo transparente: só o dente, o anel e as partículas */
}
/* desktop com mouse: só o dente recebe o mouse (rolagem e setas); clicar nele não faz nada */
@media (any-pointer: fine) {
  .tooth-wrap { pointer-events: auto; cursor: default; overscroll-behavior: contain; }
}
@keyframes hero-pulse { from { opacity: .72; } to { opacity: 1; } }

/* ---------- diferenciais ---------- */
.hero-perks {
  position: relative; z-index: 3; list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0 clamp(24px, 3.75vw, 72px) clamp(24px, 5.4vh, 60px);
  padding: clamp(12px, 2vh, 24px) 0;
  border: 1px solid var(--gold-soft); border-radius: clamp(18px, 1.9vw, 30px);
  background: linear-gradient(180deg, rgba(27, 27, 30, .8), rgba(14, 14, 16, .84));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.perk { position: relative; display: flex; align-items: center; gap: clamp(12px, 1.2vw, 20px); padding: clamp(8px, 1.2vh, 14px) clamp(16px, 2vw, 36px); min-width: 0; }
.perk + .perk::before {
  content: ""; position: absolute; left: 0; top: 50%; height: 62%; width: 1px; transform: translateY(-50%);
  background: linear-gradient(180deg, transparent, rgba(198, 161, 91, .55), transparent);
}
.perk > svg { flex: none; width: clamp(34px, 3.1vw, 54px); height: clamp(34px, 3.1vw, 54px); color: var(--gold); stroke: currentColor; }
.perk strong { display: block; font-size: clamp(13px, 1.02vw, 17px); font-weight: 500; color: var(--ink); line-height: 1.25; }
.perk span { display: block; margin-top: .3em; font-size: clamp(11.5px, .86vw, 14.5px); font-weight: 300; color: var(--muted); line-height: 1.35; }

/* ---------- entrada suave ---------- */
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-seal, .hero-kicker, .hero h1, .hero .lead, .hero .cta { animation: hero-rise .8s var(--ease) both; }
.hero h1 { animation-delay: .1s; }
.hero .lead { animation-delay: .2s; }
.hero .cta { animation-delay: .3s; }
.hero-perks { animation: hero-rise .9s var(--ease) .5s both; }
.hero-tooth { animation: hero-fade 1.4s var(--ease) .15s both; }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================================
   TABLET E CELULAR (<= 1024px): composição própria, com a dentista
   ===================================================================== */
@media (max-width: 1024px) {
  .hero { --ww: min(100vw, calc(100vh * .7)); --ww: min(100vw, calc(100dvh * .7)); }

  /* a dentista: só aqui; à direita, no fundo, com o rosto iluminado */
  .hero-woman {
    display: block; position: absolute; z-index: 0;
    top: var(--hh); right: calc(var(--ww) * -.17); width: var(--ww);
    pointer-events: none;
    filter: brightness(.88) contrast(1.05) saturate(.95);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 36%), linear-gradient(180deg, #000 58%, transparent 98%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 36%), linear-gradient(180deg, #000 58%, transparent 98%);
    mask-composite: intersect;
  }
  .hero-woman img { display: block; width: 100%; height: auto; }
  .hero .hero-shade {
    background:
      linear-gradient(90deg, rgba(11, 11, 13, .86) 0%, rgba(11, 11, 13, .5) 40%, rgba(11, 11, 13, 0) 66%),
      linear-gradient(0deg, #0B0B0D 0%, rgba(11, 11, 13, .88) 14%, rgba(11, 11, 13, 0) 34%),
      linear-gradient(180deg, rgba(11, 11, 13, .55) 0%, rgba(11, 11, 13, 0) 16%);
  }
}

/* =====================================================================
   DESKTOP (>= 1025px): consultório ao fundo, dentista recortada no meio, dente 3D flutuando à direita sobre o pedestal
   ===================================================================== */
@media (min-width: 1025px) {
  /* 1) consultório (a foto já tem o pedestal dourado à direita) */
  .hero .hero-media { background: #0B0B0D; }
  .hero .hero-media::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 82%; z-index: 0;
    background: url("../imagens/hero/clinica-fundo.webp") 78% 62% / cover no-repeat;
    filter: brightness(.42) contrast(1.08) saturate(.9) sepia(.25);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  }
  /* o pedestal dourado fica mais claro que o resto do consultório */
  .hero .hero-media::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 82%; z-index: 0;
    background: url("../imagens/hero/clinica-fundo.webp") 78% 62% / cover no-repeat;
    filter: brightness(.95) contrast(1.05) saturate(1.05);
    -webkit-mask-image: radial-gradient(ellipse 17% 11% at 78% 88%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 17% 11% at 78% 88%, #000 30%, transparent 100%);
  }
  /* 2) dentista recortada, ao centro-direita, atrás do dente */
  .hero-woman {
    display: block; position: absolute; z-index: 1; pointer-events: none;
    left: 51%; bottom: 17%; height: min(71%, 52vw); aspect-ratio: 725 / 901; transform: translateX(-50%);
    filter: brightness(.96) contrast(1.04) saturate(.95) drop-shadow(0 0 36px rgba(0, 0, 0, .45));
    /* embaixo some suave; na lateral esquerda o jaleco esmaece para não clarear o botão "Conheça a clínica" */
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 86%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 30%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, #000 0%, #000 86%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 30%);
    mask-composite: intersect;
  }
  .hero-woman picture, .hero-woman img { display: block; width: 100%; height: 100%; }
  .hero-woman img { object-fit: contain; object-position: 50% 0%; }
  /* 3) sombras e brilhos: texto legível à esquerda, brilho dourado no pedestal */
  .hero .hero-shade {
    z-index: 0;
    background:
      radial-gradient(ellipse 20% 22% at 79% 76%, rgba(255, 176, 80, .30), transparent 75%),
      linear-gradient(90deg, rgba(11, 11, 13, .9) 0%, rgba(11, 11, 13, .72) 26%, rgba(11, 11, 13, 0) 48%),
      linear-gradient(0deg, rgba(11, 11, 13, .75) 0%, rgba(11, 11, 13, 0) 28%),
      radial-gradient(ellipse 90% 85% at 60% 45%, transparent 55%, rgba(0, 0, 0, .5) 100%);
  }
  /* 4) dente 3D flutuando sobre o pedestal, à frente de tudo */
  .hero-tooth { inset: 0 0 0 54%; z-index: 2; }
  .tooth-wrap { width: min(47vw, 150cqh); aspect-ratio: 854 / 480; transform: translate(4.6vw, 30%); }
  .tooth-video { filter: drop-shadow(0 0 28px rgba(255, 170, 70, .5)) drop-shadow(0 16px 26px rgba(0, 0, 0, .5)); }
  /* botão "Conheça a clínica" sem borda, com divisor, como no modelo */
  .hero .btn-ghost { position: relative; margin-left: clamp(10px, 1.2vw, 20px); border-color: transparent; background: none; }
  .hero .btn-ghost::before { content: ""; position: absolute; left: -.9em; top: 50%; height: 62%; width: 1px; transform: translateY(-50%); background: rgba(198, 161, 91, .55); }
}

/* ---- celular e tablet em pé: texto no alto, dente no meio, botões e diferenciais embaixo ---- */
@media (max-width: 1024px) and (orientation: portrait), (max-width: 640px) {
  .hero {
    --tw: min(100vw, calc(100vh * .56)); --tw: min(100vw, calc(100dvh * .56));
    display: flex; flex-direction: column;
    min-height: max(100vh, 700px); min-height: max(100dvh, 700px);
  }
  .hero-main, .hero .hero-copy { display: contents; }
  .br-m { display: inline; }
  .br-d { display: none; }

  .hero-seal { display: none; }
  .hero-kicker {
    order: 1; display: block;
    margin: clamp(14px, 3.2dvh, 34px) var(--pad) 0;
    max-width: calc(100% - 2 * var(--pad)); white-space: nowrap;
    font-size: clamp(9px, 2.4vw, 12.5px); line-height: 1.6; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; color: var(--ink);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  }
  .hero-kicker .kk-a, .hero-kicker .kk-b { display: block; }

  .hero h1 {
    order: 2; align-self: flex-start; margin: calc(clamp(10px, 1.8dvh, 20px) + clamp(22px, 4.2dvh, 40px)) var(--pad) 0;
    font-size: clamp(33px, 9vw, 76px); font-size: clamp(33px, min(9vw, 6.4dvh), 76px);
    line-height: 1.07; letter-spacing: -.02em;
  }
  .hero h1 .gm { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold); }
  .hero .lead {
    order: 3; align-self: flex-start; margin: clamp(26px, 4.4dvh, 46px) var(--pad) 0;
    font-size: clamp(14.5px, 3.5vw, 25px); line-height: 1.48; color: var(--ink);
  }

  .hero-tooth {
    order: 4; position: relative; inset: auto; flex: 1 0 auto;
    min-height: calc(var(--tw) * .37);
    margin-top: clamp(2px, 1.2dvh, 12px);
  }
  /* o dente cresce junto com a largura da tela (celular -> tablet) e fica um pouco à esquerda, como no modelo */
  .hero-tooth { min-height: clamp(110px, calc(var(--tw) * .27), 260px); }
  .hero-tooth { z-index: 1; overflow: hidden; align-items: end; place-items: end center; padding-bottom: 2px; }
  .tooth-wrap { width: min(58vw, 30vh); width: min(58vw, 30dvh); transform: translate(-25vw, 4%); }
  .hero .hero-media { background: radial-gradient(ellipse 60% 40% at 30% 85%, rgba(198, 161, 91, .06), transparent 70%), #0B0B0D; }
  .tooth-wrap::before { content: ""; position: absolute; left: 50%; top: 48%; width: 62%; height: 82%; transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(198, 161, 91, .10), rgba(198, 161, 91, .03) 55%, transparent 100%); }
  /* texto sempre acima do dente (hero-copy usa display: contents, então cada item precisa do seu próprio nível) */
  .hero-kicker, .hero h1, .hero .lead, .hero .cta, .hero-perks { position: relative; z-index: 3; }

  .hero .cta {
    order: 5; display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; align-items: center; align-self: flex-start; width: auto; gap: 10px;
    margin: clamp(12px, 2dvh, 22px) var(--pad) 0;
  }
  .hero .btn { height: clamp(40px, 10.6vw, 50px); padding: 0 clamp(12px, 3.6vw, 20px); font-size: clamp(11.5px, 3.1vw, 15px); gap: .5em; min-width: 0; flex: 0 0 auto; width: auto; }
  .hero .btn svg { width: 1.3em; height: 1.3em; }
  .hero .btn-gold .i-trail { display: none; }
  .hero .btn-ghost { background: rgba(11, 11, 13, .62); }
  .ico-play { width: auto; height: auto; border: 0; }
  .ico-play svg { width: 1.35em !important; height: 1.35em !important; margin: 0; }

  .hero-perks {
    order: 6; grid-template-columns: repeat(3, 1fr);
    margin: clamp(14px, 2.4dvh, 26px) var(--pad) calc(env(safe-area-inset-bottom, 0px) + clamp(16px, 2.8dvh, 32px));
    padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  }
  .perk { flex-direction: column; justify-content: flex-start; text-align: center; gap: 9px; padding: 2px 6px; }
  .perk + .perk::before { height: 100%; top: 0; transform: none; background: rgba(198, 161, 91, .6); }
  .perk > svg { width: clamp(36px, 10vw, 50px); height: clamp(36px, 10vw, 50px); }
  .perk strong { font-size: clamp(12.5px, 3.3vw, 17px); font-weight: 400; }
  .perk span { display: none; }
  .perk:nth-child(4) { display: none; }
}

/* tablet em pé: um pouco mais compacto e com os quatro diferenciais */
@media (min-width: 641px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-kicker { margin-top: clamp(30px, 8dvh, 90px); }
  .hero h1 { font-size: clamp(40px, min(7.6vw, 6.2dvh), 72px); }
  .hero .lead { font-size: clamp(15px, 2.9vw, 24px); }
  .hero .cta { max-width: 640px; }
  .hero .btn { height: 48px; }
  .hero-perks { grid-template-columns: repeat(4, 1fr); }
  .perk:nth-child(4) { display: flex; }
  .perk span { display: block; margin-top: .25em; font-size: clamp(12px, 1.6vw, 15px); }
}

/* celulares muito estreitos: botões um abaixo do outro */
@media (max-width: 359px) {
  .hero .cta { flex-direction: column; align-items: flex-start; }
}

/* ---- tablet deitado: texto à esquerda, dentista à direita, dente à frente dela ---- */
@media (min-width: 641px) and (max-width: 1024px) and (orientation: landscape) {
  .hero { min-height: max(100vh, 600px); min-height: max(100dvh, 600px); }
  .hero .hero-copy { max-width: 50vw; }
  .hero h1 { font-size: clamp(34px, 5.2vw, 60px); }
  .hero .lead { font-size: clamp(15px, 1.9vw, 22px); }
  .hero .btn { height: 52px; font-size: clamp(13px, 1.4vw, 16px); padding: 0 22px; }
  .hero-seal { display: none; }
  .hero-kicker {
    display: flex; align-items: center; gap: 1.1em; max-width: min(48vw, 560px); white-space: nowrap;
    font-size: clamp(10px, 1.35vw, 15px); letter-spacing: .22em; text-transform: uppercase; font-weight: 400; color: var(--ink);
  }
  .hero-kicker::after { content: ""; flex: 1 1 18px; min-width: 18px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(198, 161, 91, .3)); }
  .hero h1 { margin-top: clamp(12px, 2.4vh, 22px); }
  .hero-tooth { inset: auto 46% 0 0; height: 40%; place-items: end center; }
  .tooth-wrap { width: min(26vw, 150cqh, 28vh); width: min(26vw, 150cqh, 28dvh); transform: translate(0, 10%); }
  .hero .cta { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; align-items: center; }
  .hero .btn { height: 46px; padding: 0 18px; font-size: clamp(12.5px, 1.5vw, 15px); flex: 0 0 auto; }
  .hero-perks { margin-bottom: 24px; }
  .perk { padding: 8px 14px; gap: 12px; }
  .perk > svg { width: 34px; height: 34px; }
  .perk strong { font-size: 13px; }
  .perk span { font-size: 11.5px; }
}

/* tablet deitado baixinho (ex.: 700x500): dente menor e mais à direita para não encostar nos botões */
@media (min-width: 641px) and (max-width: 1024px) and (orientation: landscape) and (max-height: 560px) {
  .hero-tooth { inset: auto 46% 0 0; height: 38%; }
  .tooth-wrap { width: min(22vw, 120cqh, 26vh); width: min(22vw, 120cqh, 26dvh); transform: translate(0, 10%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-seal, .hero-kicker, .hero h1, .hero .lead, .hero .cta, .hero-perks, .hero-tooth { animation: none !important; }
  .tooth-wrap::before { animation: none !important; }
}

/* evita rolagem lateral de 1px em algumas larguras (ex.: 768) */
html, body { overflow-x: clip; }

/* =====================================================================
   AJUSTES DE RESPONSIVIDADE (dente, título e frase de boas-vindas)
   ===================================================================== */

/* ---- título mais refinado: linha 1 leve, linha 2 com palavras-chave em dourado, serifa itálica ---- */
.hero h1 .h-a, .hero h1 .h-b { display: block; }
.hero h1 .h-a { font-weight: 300; letter-spacing: -.03em; }
.hero h1 .h-a .gm { font-weight: 600; }
.hero h1 .h-b { font-weight: 300; letter-spacing: -.02em; margin-top: .02em; }
.hero h1 em, .hero h1 .h-b .gm {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600;
  font-size: 1.16em; letter-spacing: -.005em; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
  padding-right: .06em;                       /* o itálico não corta a ponta da letra */
}
.hero h1 .h-a .gm { color: inherit; -webkit-text-fill-color: currentColor; background: none; }

/* o título só quebra palavra por palavra em celular estreito; de 561px para cima, cada linha cabe inteira */
@media (min-width: 561px) { .hero h1 .br-m { display: none; } }

/* ---- celular e tablet em pé ---- */
@media (max-width: 1024px) and (orientation: portrait), (max-width: 640px) {
  .hero-kicker { font-size: clamp(9px, 2.4vw, 22px); }
  .hero h1 { font-size: clamp(33px, min(9vw, 7.2dvh), 92px); }
}
@media (min-width: 561px) and (max-width: 1024px) and (orientation: portrait) {
  .hero h1 { margin-top: calc(clamp(10px, 1.8dvh, 20px) + clamp(22px, 4.2dvh, 40px) + clamp(0px, 5dvh, 56px)); }
  .hero h1 { font-size: clamp(33px, min(6.3vw, 7dvh), 84px); }
  .hero h1 em, .hero h1 .h-b .gm { font-size: 1.1em; }
  .hero-tooth { min-height: clamp(200px, calc(var(--tw) * .55), 440px); }
  .tooth-wrap { width: min(70vw, 44dvh); transform: translate(-16vw, 2%); }
}

/* ---- tablet deitado: dente maior ---- */
@media (min-width: 641px) and (max-width: 1024px) and (orientation: landscape) {
  .hero-kicker { font-size: clamp(10px, 1.7vw, 20px); }
  .tooth-wrap { width: min(40vw, 190cqh, 42dvh); transform: translate(2vw, 6%); }
}
@media (min-width: 641px) and (max-width: 1024px) and (orientation: landscape) and (max-height: 560px) {
  .tooth-wrap { width: min(30vw, 160cqh, 34dvh); transform: translate(2vw, 8%); }
}

/* ---- computador baixinho/estreito: dente um pouco menor para não encostar na dentista ---- */
@media (min-width: 1025px) and (max-width: 1399px) {
  .tooth-wrap { width: min(46vw, 150cqh); transform: translate(4.2vw, 28%); }
  .hero-woman { left: 48%; }
}

/* =====================================================================
   BARRA DE DIFERENCIAIS: mais fina e mais estreita + brilho dourado que preenche a barra inteira no hover
   ===================================================================== */
@media (min-width: 1025px) {
  .hero-perks {
    margin-left: clamp(24px, 8vw, 170px); margin-right: clamp(24px, 8vw, 170px);
    margin-bottom: clamp(20px, 4.4vh, 48px);
    padding: clamp(4px, .9vh, 10px) 0;
  }
  .perk { padding-top: clamp(4px, .7vh, 8px); padding-bottom: clamp(4px, .7vh, 8px); }
  /* texto um pouco mais para baixo */
  .hero .hero-copy { top: clamp(28px, 5.5vh, 64px); }
}

@media (min-width: 1025px), (min-width: 641px) and (orientation: landscape) {
  .hero-perks {
    transition: border-color .7s var(--ease), box-shadow .8s var(--ease);
  }
  /* preenchimento dourado: entra da esquerda (Atendimento Premium) até a direita (Seu Sorriso em Boas Mãos) e volta */
  .hero-perks::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(198, 161, 91, .20) 0%, rgba(198, 161, 91, .12) 55%, rgba(226, 194, 131, .22) 100%);
    box-shadow: inset 0 0 40px rgba(198, 161, 91, .12);
    clip-path: inset(0 100% 0 0);
    transition: clip-path .8s cubic-bezier(.45, .05, .25, 1);
  }
  /* faixa de luz que corre pela borda e pela face, da esquerda para a direita */
  .hero-perks::before {
    content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; opacity: 0;
    background-image: linear-gradient(90deg, transparent 40%, rgba(226, 194, 131, .10) 46%, rgba(255, 236, 190, .30) 50%, rgba(226, 194, 131, .10) 54%, transparent 60%);
    background-size: 300% 100%; background-repeat: no-repeat; background-position: 100% 0;
  }
  @keyframes perks-faixa {
    from { background-position: 100% 0; opacity: 0; }
    12%, 82% { opacity: 1; }
    to { background-position: 0 0; opacity: 0; }
  }
}
@media ((min-width: 1025px) and (hover: hover)), ((min-width: 641px) and (orientation: landscape) and (hover: hover)) {
  .hero-perks:hover { border-color: rgba(198, 161, 91, .75); box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 34px -6px rgba(198, 161, 91, .35), inset 0 1px 0 rgba(255, 255, 255, .06); }
  .hero-perks:hover::after { clip-path: inset(0 0 0 0); }
  .hero-perks:hover::before { animation: perks-faixa .95s var(--ease) both; }
}
/* toque: .is-hover faz o papel do mouse */
@media (min-width: 1025px), (min-width: 641px) and (orientation: landscape) {
  .hero-perks.is-hover { border-color: rgba(198, 161, 91, .75); box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 34px -6px rgba(198, 161, 91, .35), inset 0 1px 0 rgba(255, 255, 255, .06); }
  .hero-perks.is-hover::after { clip-path: inset(0 0 0 0); }
  .hero-perks.is-hover::before { animation: perks-faixa .95s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-perks::after { transition: none; }
  .hero-perks:hover::before, .hero-perks.is-hover::before { animation: none; }
}

/* ---- tablet em pé (561 a 1024px): composição mais firme, sem buracos entre os blocos ---- */
@media (min-width: 561px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-kicker { font-size: clamp(11px, 1.9vw, 17px); letter-spacing: .2em; line-height: 1.7; margin-top: clamp(18px, 3dvh, 34px); }
  .hero h1 { font-size: clamp(36px, min(6.4vw, 7.4dvh), 84px); margin-top: clamp(26px, 6.5dvh, 72px); }
  .hero-woman { right: calc(var(--ww) * -.26); }
  .hero h1 em, .hero h1 .h-b .gm { font-size: 1.1em; }
  .hero .lead { margin-top: clamp(20px, 3.4dvh, 38px); font-size: clamp(15px, 2.9vw, 24px); }
  .hero-tooth { min-height: clamp(220px, calc(var(--tw) * .62), 460px); }
  .tooth-wrap { width: min(84vw, 54dvh); transform: translate(-12vw, 0); }
  .hero .cta { margin-top: clamp(10px, 1.6dvh, 22px); }
}

/* ---- tablet deitado / janela média (641 a 1024px, altura >= 860px): dente sobe e fica colado no canto esquerdo; texto desce ---- */
@media (min-width: 641px) and (max-width: 1024px) and (orientation: landscape) and (min-height: 860px) {
  .hero-tooth {
    inset: var(--hh) 46% auto 0; height: clamp(150px, 25dvh, 280px);
    place-items: center start;
  }
  .tooth-wrap { width: min(34vw, 190cqh); transform: translate(-3.5vw, 0); }
  .hero .hero-copy { position: relative; top: clamp(26px, 4.5dvh, 52px); }
}

/* ---- tablet deitado mais baixo (altura < 860px): dente menor embaixo, sem encostar nos botões ---- */
@media (min-width: 641px) and (max-width: 1024px) and (orientation: landscape) and (max-height: 859px) {
  .tooth-wrap { width: min(26vw, 150cqh, 27dvh); transform: translate(0, 12%); }
}

/* =====================================================================
   AJUSTES FINAIS
   1) celular/tablet em pé: a tela inicial cabe inteira na janela (nada cortado embaixo)
   2) botão "Conheça a clínica" sempre legível, mesmo sobre o jaleco
   3) brilho dourado dos diferenciais (igual ao dos cards de Tratamentos), inclusive com "reduzir movimento"
   ===================================================================== */

/* ---------- 1) celular e tablet em pé ---------- */
@media (max-width: 1024px) and (orientation: portrait), (max-width: 640px) {
  /* o dente ocupa só o espaço que sobra entre o texto e os botões, em vez de empurrar os diferenciais para fora da tela */
  .hero-tooth { flex: 1 1 0; min-height: clamp(110px, 16dvh, 260px); }
  .tooth-wrap { width: min(58vw, 165cqh); }
}
@media (min-width: 561px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-tooth { min-height: clamp(150px, 22dvh, 340px); }
  .tooth-wrap { width: min(66vw, 165cqh); transform: translate(-19vw, 0); }
  /* título e frase um pouco mais compactos para sobrar espaço ao dente */
  .hero h1 { margin-top: clamp(20px, 4.5dvh, 56px); }
  .hero .lead { margin-top: clamp(14px, 2.6dvh, 30px); }
}

/* ---------- 2) botão "Conheça a clínica" ---------- */
.hero .btn-ghost { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (min-width: 1025px) {
  .hero .btn-ghost { background: rgba(11, 11, 13, .72); border-color: rgba(198, 161, 91, .35); }
  .hero .btn-ghost::before { display: none; }
  .hero .btn-ghost:hover { background: rgba(11, 11, 13, .86); border-color: var(--gold); }
}
.hero .cta { position: relative; z-index: 4; }

/* ---------- 3) brilho dos diferenciais ---------- */
.perk { transition: transform .7s var(--ease-luxe, var(--ease)); }
.perk > svg { transition: filter .6s var(--ease-out, var(--ease)), transform .7s var(--ease-luxe, var(--ease)); }
.perk strong { transition: color .5s var(--ease-out, var(--ease)); }

/* barra inteira (computador e tablet deitado): faixa diagonal igual à dos cards + preenchimento dourado */
@media (min-width: 1025px), (min-width: 641px) and (orientation: landscape) {
  .hero-perks::before {
    z-index: 4; opacity: 0; inset: 0; border-radius: inherit;
    background-image: linear-gradient(to bottom right,
      transparent 43%, var(--fx-externo) 46.5%, var(--fx-meio) 48.8%, var(--fx-faixa) 50%,
      var(--fx-meio) 51.2%, var(--fx-externo) 53.5%, transparent 57%);
    background-size: 250% 250%; background-position: 100% 100%; background-repeat: no-repeat;
  }
}
@media ((min-width: 1025px) and (hover: hover)), ((min-width: 641px) and (orientation: landscape) and (hover: hover)) {
  .hero-perks:hover::before { animation: fx-diagonal 1.3s var(--fx-curva) forwards; }
  .perk:hover > svg { transform: translateY(-2px) scale(1.06); filter: drop-shadow(0 0 10px rgba(226, 194, 131, .65)); }
  .perk:hover strong { color: #F1E3BE; }
}
@media (min-width: 1025px), (min-width: 641px) and (orientation: landscape) {
  .hero-perks.is-hover::before { animation: fx-diagonal 1.3s var(--fx-curva) forwards; }
  .perk.is-hover > svg { transform: translateY(-2px) scale(1.06); filter: drop-shadow(0 0 10px rgba(226, 194, 131, .65)); }
  .perk.is-hover strong { color: #F1E3BE; }
}

/* celular e tablet em pé (diferenciais sem moldura): cada item recebe o brilho ao passar o mouse ou tocar */
@media (max-width: 1024px) and (orientation: portrait), (max-width: 640px) {
  .perk { border-radius: 16px; overflow: hidden; }
  .perk::after {
    content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0;
    background-image: linear-gradient(to bottom right,
      transparent 43%, var(--fx-externo) 46.5%, var(--fx-meio) 48.8%, var(--fx-faixa) 50%,
      var(--fx-meio) 51.2%, var(--fx-externo) 53.5%, transparent 57%);
    background-size: 250% 250%; background-position: 100% 100%; background-repeat: no-repeat;
  }
  .perk.is-hover { transform: translateY(var(--fx-lift)); }
  .perk.is-hover::after { animation: fx-diagonal 1.3s var(--fx-curva) forwards; }
  .perk.is-hover > svg { transform: scale(1.08); filter: drop-shadow(0 0 10px rgba(226, 194, 131, .65)); }
  .perk.is-hover strong { color: #F1E3BE; }
}
@media (max-width: 1024px) and (orientation: portrait) and (hover: hover), (max-width: 640px) and (hover: hover) {
  .perk:hover { transform: translateY(var(--fx-lift)); }
  .perk:hover::after { animation: fx-diagonal 1.3s var(--fx-curva) forwards; }
  .perk:hover > svg { transform: scale(1.08); filter: drop-shadow(0 0 10px rgba(226, 194, 131, .65)); }
  .perk:hover strong { color: #F1E3BE; }
}

/* "Reduzir movimento" ligado no Windows/celular: a regra geral do site zerava o brilho dos diferenciais.
   Aqui ele continua funcionando (mais lento e suave), igual aos cards de Tratamentos. */
@media (prefers-reduced-motion: reduce) {
  .hero-perks, .hero-perks::after, .perk, .perk > svg, .perk strong { transition-duration: .8s !important; }
  @media (min-width: 1025px) and (hover: hover), (min-width: 641px) and (orientation: landscape) and (hover: hover) {
    .hero-perks:hover::before { animation: fx-diagonal 1.8s var(--fx-curva) forwards !important; }
  }
  @media (min-width: 1025px), (min-width: 641px) and (orientation: landscape) {
    .hero-perks.is-hover::before { animation: fx-diagonal 1.8s var(--fx-curva) forwards !important; }
  }
  @media (max-width: 1024px) and (orientation: portrait), (max-width: 640px) {
    .perk.is-hover::after { animation: fx-diagonal 1.8s var(--fx-curva) forwards !important; }
  }
  @media (max-width: 1024px) and (orientation: portrait) and (hover: hover), (max-width: 640px) and (hover: hover) {
    .perk:hover::after { animation: fx-diagonal 1.8s var(--fx-curva) forwards !important; }
  }
}

/* =====================================================================
   DIFERENCIAIS: hover só com o brilho 3D (igual ao botão "Conheça a clínica")
   O fundo carvão da barra NÃO muda. Só o contorno fica dourado e a faixa de luz passa por cima.
   ===================================================================== */
@media (min-width: 1025px), (min-width: 641px) and (orientation: landscape) {
  /* sem preenchimento dourado: ::after agora é só o brilho que corre pela borda */
  .hero-perks::after {
    content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; opacity: 0;
    padding: 1px; box-shadow: none; clip-path: none; transition: none;
    background-image: linear-gradient(to bottom right,
      transparent 42%, var(--fx-borda-externo) 47%, var(--fx-borda-centro) 50%, var(--fx-borda-externo) 53%, transparent 58%);
    background-size: 250% 250%; background-position: 100% 100%; background-repeat: no-repeat;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  }
  .hero-perks:hover::after, .hero-perks.is-hover::after { clip-path: none; }
  .hero-perks:hover, .hero-perks.is-hover {
    border-color: rgba(198, 161, 91, .8);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);   /* sem brilho amarelo em volta */
  }
  /* ícone e texto ficam como estão */
  .perk:hover > svg, .perk.is-hover > svg { transform: none; filter: none; }
  .perk:hover strong, .perk.is-hover strong { color: var(--ink); }
}
@media ((min-width: 1025px) and (hover: hover)), ((min-width: 641px) and (orientation: landscape) and (hover: hover)) {
  .hero-perks:hover::after { animation: fx-diagonal 1.3s var(--fx-curva) forwards; }
}
@media (min-width: 1025px), (min-width: 641px) and (orientation: landscape) {
  .hero-perks.is-hover::after { animation: fx-diagonal 1.3s var(--fx-curva) forwards; }
}
@media (prefers-reduced-motion: reduce) {
  @media (min-width: 1025px) and (hover: hover), (min-width: 641px) and (orientation: landscape) and (hover: hover) {
    .hero-perks:hover::after { animation: fx-diagonal 1.8s var(--fx-curva) forwards !important; }
  }
  @media (min-width: 1025px), (min-width: 641px) and (orientation: landscape) {
    .hero-perks.is-hover::after { animation: fx-diagonal 1.8s var(--fx-curva) forwards !important; }
  }
}

/* celular e tablet em pé: só a faixa de luz, sem brilho nem cor amarela no ícone/texto */
@media (max-width: 1024px) and (orientation: portrait), (max-width: 640px) {
  .perk.is-hover > svg, .perk:hover > svg { transform: none; filter: none; }
  .perk.is-hover strong, .perk:hover strong { color: var(--ink); }
}
