/* ============================================================
   Nova Perolla Odontologia — folha de estilos
   Tipografia: Tenor Sans nos títulos (a mais próxima da Roses Bolero no Google Fonts) e Montserrat no texto.
   Para trocar só a fonte dos títulos, altere --font-display.
   Paleta da marca: #242342 (marinho) · #515154 · #AEAEAE · #CECBD2
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #F7F7F9;
  color: #242342;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: #242342; text-decoration: none; }
a:hover { color: var(--accent, #515154); }
::selection { background: #242342; color: #F7F7F9; }
:focus-visible { outline: 2px solid var(--accent, #515154); outline-offset: 3px; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; }
button { font-family: inherit; }

:root {
  --accent: #515154;
  --font-display: 'Tenor Sans', 'Montserrat', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --silver: linear-gradient(90deg, #515154, #CECBD2 50%, #515154);
}

.noscroll::-webkit-scrollbar { height: 0; width: 0; }

@keyframes heroDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, -3%, 0) scale(1.07); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

.hero-drift { animation: heroDrift 24s ease-in-out infinite alternate; }
.hero-drift--cta { animation: heroDrift 26s ease-in-out infinite alternate; }
.rise-in { animation: riseIn 1s cubic-bezier(.2,.7,.2,1) both; }
.rise-in--delay { animation: riseIn 1s .15s cubic-bezier(.2,.7,.2,1) both; }
.rise-in--fast { animation: riseIn .35s ease both; }
.rise-in--menu { animation: riseIn .3s ease both; }

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(247,247,249,.88);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid rgba(36,35,66,.1);
  transition: background .5s ease, backdrop-filter .5s ease, border-color .5s ease;
}
.site-header__row {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  height: clamp(64px, 6vw, 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: clamp(18px, 2.2vw, 34px);
  align-items: center;
  transition: height .45s ease;
}
.site-header--hero { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
.site-header--hero .site-header__row { height: clamp(74px, 8vw, 104px); }
.nav-link, .menu-toggle-label { color: #242342; transition: color .4s ease; }
.site-header--hero .nav-link, .site-header--hero .menu-toggle-label { color: #F7F7F9; }
.logo-img { filter: none; transition: filter .4s ease; }
.site-header--hero .logo-img { filter: brightness(0) invert(1); }

.nav-cluster { display: flex; align-items: center; }
.nav-cluster--left { justify-content: flex-end; }
.nav-cluster--right { justify-content: flex-start; }
.menu-toggle {
  align-items: center; gap: 10px; background: none; border: 0; padding: 12px 0; cursor: pointer;
  font: 500 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  display: none;
}
.menu-toggle-bars { display: block; width: 20px; height: 9px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.desk-nav { display: flex; gap: clamp(18px, 2vw, 26px); align-items: center; }
.nav-link { font: 500 13px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.nav-item { position: relative; }
.nav-trigger {
  display: flex; align-items: center; gap: 7px; background: none; border: 0; padding: 12px 0; cursor: pointer;
  font: 500 13px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: inherit;
}
.nav-trigger .caret { font-size: 9px; opacity: .7; }
.logo-link { display: flex; align-items: center; justify-content: center; }
.logo-img { height: clamp(34px, 3.6vw, 46px); width: auto; }

.dropdown {
  display: none;
  position: absolute; top: 100%; left: -22px; background: #F7F7F9; border: 1px solid #DAD9E0; padding: 10px 0;
  box-shadow: 0 18px 40px -30px rgba(36,35,66,.4);
}
.dropdown.is-open { display: block; }
.dropdown--trat { width: 300px; }
.dropdown--trat a:not(.dropdown__cta) { padding: 9px 22px; }
.dropdown--dent { width: 320px; }
.dropdown a { display: block; padding: 11px 22px; font-size: 14px; letter-spacing: .01em; }
.dropdown a:hover { background: #ECEBEF; color: #242342; }
.dropdown a.dropdown__cta {
  margin-top: 6px; padding: 13px 22px 6px; border-top: 1px solid #E2E1E7;
  font: 500 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #6B6B73;
}
.dropdown a.dropdown__cta:hover { background: none; }
.dropdown__person { display: block; padding: 12px 22px; }
.dropdown__person:hover { background: #ECEBEF; }
.dropdown__person-name { display: block; font-size: 14px; color: #242342; }
.dropdown__person-meta { display: block; margin-top: 3px; font-size: 12px; color: #6B6B73; }

.mobile-nav { display: none; background: #F7F7F9; border-top: 1px solid #DAD9E0; padding: 18px clamp(20px, 4vw, 64px) 30px; }
.mobile-nav.is-open { display: block; }
.mobile-nav__list li a { display: block; padding: 16px 0; border-bottom: 1px solid #E2E1E7; font: 400 22px/1.2 var(--font-display); }
.mobile-nav__list li:last-child a { border-bottom: 0; }
.mobile-nav__cta {
  display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding: 18px 24px;
  background: #242342; color: #F7F7F9; font: 500 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
}

@media (max-width: 899px) {
  .desk-nav { display: none !important; }
  .menu-toggle { display: flex; }
  /* Sem os menus de desktop, "menu + logo" vira um único bloco centralizado
     em vez de ocupar as duas colunas laterais da grade (isso deixava o
     conjunto puxado para a esquerda, com todo o espaço vazio sobrando à direita). */
  .site-header__row { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 3vw, 22px); }
  .nav-cluster--left { flex: 0 0 auto; justify-content: flex-end; }
}

/* ---------------------------------------------------------------
   Hover utilities (ported from the design's per-element hover states)
   --------------------------------------------------------------- */
.hv-scale { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.hv-scale:hover { transform: scale(1.015); }
.hv-scale-sm { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.hv-scale-sm:hover { transform: scale(1.012); }
.hv-lighten:hover { color: #EEEDF2; }
.hv-soft-bg:hover { background: #ECEBEF; }
.hv-gap { transition: gap .3s ease; }
.hv-gap:hover { gap: 18px; }
.hv-gap-lg { transition: gap .3s ease, border-color .3s ease; }
.hv-gap-lg:hover { gap: 20px; }
.hv-gap-lg.hv-border-accent:hover { border-color: var(--accent, #515154); }
.hv-dark:hover { color: #242342; }
.hv-accent-bg { transition: background .35s ease, color .35s ease; }
.hv-accent-bg:hover { background: var(--accent, #515154); color: #F7F7F9; }
.hv-accent-bg-ink { transition: background .35s ease, color .35s ease; }
.hv-accent-bg-ink:hover { background: var(--accent, #515154); color: #F7F7F9; }
.hv-dark-bg { transition: background .35s ease, color .35s ease; }
.hv-dark-bg:hover { background: #242342; color: #F7F7F9; }
.hv-dark-bg-border { transition: background .3s ease, border-color .3s ease, color .3s ease; }
.hv-dark-bg-border:hover { background: #242342; border-color: #242342; color: #F7F7F9; }
.hv-social { transition: background .3s ease, color .3s ease; }
.hv-social:hover { background: #EEEDF2; color: #242342; }
.hv-cream-bg { transition: background .35s ease; }
.hv-cream-bg:hover { background: #242342; }
.hv-btn-cta { transition: background .35s ease, color .35s ease; }
.hv-btn-cta:hover { background: #EEEDF2; color: #242342; border-color: #EEEDF2; }

/* ---------------------------------------------------------------
   Credibilidade (abas com crossfade de imagem)
   --------------------------------------------------------------- */
.cred-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.cred-img.is-active { opacity: 1; }
.cred-tab { color: #8B8B93; }
.cred-tab:hover { color: #242342; }
.cred-tab.is-active { color: #242342; }
.cred-panel { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.cred-panel.is-active { opacity: 1; }

/* ---------------------------------------------------------------
   FAQ (acordeão)
   --------------------------------------------------------------- */
.faq-q { color: rgba(238,237,242,.62); border-bottom: 2px solid transparent; transition: color .35s ease; }
.faq-q:hover { color: #EEEDF2; }
.faq-q.is-active { color: #EEEDF2; border-bottom-color: var(--accent, #515154); }
.faq-a { display: none; }
.faq-a.is-active { display: block; }

/* ---------------------------------------------------------------
   Formulário de contato
   --------------------------------------------------------------- */
.field input, .field textarea {
  border: 1px solid #D6D5DC; background: #FFFFFF; font-family: inherit; font-size: 15px; color: #242342;
}
.field input:focus, .field textarea:focus { border-color: var(--accent, #515154); }
.form-note { margin-top: 14px; font-size: 13px; color: #6B6B73; display: none; }
.form-note.is-visible { display: block; }

/* ---------------------------------------------------------------
   Camada responsiva — sobrescreve apenas o grid do layout base
   --------------------------------------------------------------- */
[data-mob] { display: none; }
@media (max-width: 1023px) {
  [style*="repeat(12"] { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  [style*="grid-column: span 7"], [style*="grid-column: span 6"], [style*="grid-column: span 5"],
  [style*="grid-column: span 4"], [style*="grid-column: 6 /"], [style*="grid-column: 7 /"],
  [style*="grid-column: 8 /"], [style*="grid-column: 9 /"], [style*="grid-column: 11 /"] { grid-column: 1 / -1 !important; }
  [style*="65fr"] { grid-template-columns: 1fr !important; }
  [style*="auto minmax"] { grid-template-columns: 1fr !important; }
  [style*="auto minmax"] > [aria-hidden="true"] { display: none !important; }
  [style*="auto minmax"] > li { grid-column: 1 !important; grid-row: auto !important; }
  aside[style*="sticky"] { position: static !important; }
  [style*="repeat(4, minmax"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  section[aria-label="Apresentação"] [style*="1.15fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-column: 6 / span 8"] { margin-right: 0 !important; }
}
@media (max-width: 899px) {
  [data-desk] { display: none !important; }
  [data-mob] { display: flex; }
}
@media (max-width: 719px) {
  [style*="repeat(12"], [style*="repeat(3, minmax"], [style*="repeat(4, minmax"],
  [style*="grid-template-columns: repeat(2, minmax"], [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-column: span 2"] { grid-column: 1 / -1 !important; }
  [style*="flex: 0 0 76%"] { flex: 0 0 88% !important; }
  section[aria-label="Apresentação"] { min-height: 620px !important; }
  h1 { letter-spacing: -.01em !important; }
  section[aria-labelledby="proc-t"] ol { grid-template-columns: 1fr !important; }
  section[aria-labelledby="proc-t"] ol > li { grid-column: 1 !important; grid-row: auto !important; }
  section[aria-labelledby="proc-t"] ol > li[aria-hidden] { display: none !important; }
}

/* ---------------------------------------------------------------
   Rodapé — grid próprio (não usa os seletores de atributo acima),
   com breakpoints explícitos para logo, textos e ícones sociais.
   --------------------------------------------------------------- */
.site-footer { background: #1B1A33; border-top: 2px solid; border-image: var(--silver) 1; color: #EEEDF2; padding: clamp(60px, 7vw, 96px) 0 40px; }
.site-footer__inner { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px); }
.site-footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.site-footer__brand { grid-column: span 5; }
.site-footer__brand img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.site-footer__brand p { margin-top: 20px; font-size: 15px; line-height: 1.6; color: rgba(238,237,242,.66); }
.site-footer__brand address { margin-top: 20px; font-style: normal; font-size: 15px; line-height: 1.7; color: rgba(238,237,242,.66); }
.site-footer__nav { grid-column: 7 / span 3; }
.site-footer__nav ul { display: flex; flex-direction: column; gap: 12px; }
.site-footer__nav a { color: rgba(238,237,242,.78); font-size: 15px; }
.site-footer__social { grid-column: 10 / span 3; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.site-footer__social a {
  width: 42px; height: 42px; border: 1px solid rgba(238,237,242,.28); display: flex; align-items: center;
  justify-content: center; border-radius: 50%; color: rgba(238,237,242,.85); transition: background .3s ease, color .3s ease;
}
.site-footer__social a:hover { background: #EEEDF2; color: #242342; }
.site-footer__bottom {
  margin-top: clamp(44px, 5vw, 72px); padding-top: 24px; border-top: 1px solid rgba(238,237,242,.14);
  display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center;
}
.site-footer__bottom p, .site-footer__bottom a { font-size: 13px; color: rgba(238,237,242,.5); }

@media (max-width: 1023px) {
  .site-footer__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .site-footer__brand, .site-footer__nav, .site-footer__social { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  .site-footer__grid { grid-template-columns: 1fr; row-gap: 32px; }
  .site-footer__brand { grid-column: 1; order: 1; }
  .site-footer__nav { grid-column: 1; order: 2; }
  .site-footer__social { grid-column: 1; order: 3; justify-content: flex-start; }
}

/* ---------------------------------------------------------------
   Botão fixo do WhatsApp — presente em todas as páginas
   --------------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: 100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(15,20,18,.55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-fab:hover { transform: scale(1.07); box-shadow: 0 14px 34px -6px rgba(15,20,18,.6); color: #fff; }
.whatsapp-fab svg { width: 30px; height: 30px; display: block; fill: #fff; }
@media (max-width: 719px) {
  .whatsapp-fab { width: 52px; height: 52px; }
  .whatsapp-fab svg { width: 27px; height: 27px; }
}

/* ---------------------------------------------------------------
   Nova Perolla — elementos da marca
   --------------------------------------------------------------- */
/* Seções escuras: o acento passa a ser o prata da paleta */
section[aria-labelledby="proc-t"], section[aria-labelledby="faq-t"] { --accent: #CECBD2; }

/* Pattern da marca, discreto, na seção "Atendimento" */
section[aria-labelledby="proc-t"] { position: relative; }
section[aria-labelledby="proc-t"]::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("uploads/pattern.svg") 0 0 / 220px 200px; opacity: .035;
}
section[aria-labelledby="proc-t"] > div { position: relative; }

.site-footer__brand address a { color: inherit; }
.site-footer__brand address a:hover { color: #EEEDF2; }

/* Card de chamada que fecha a grade de tratamentos */
.trat-cta a {
  position: relative; overflow: hidden; height: 100%; min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 2.6vw, 38px); background: #242342; color: #EEEDF2;
}
.trat-cta a::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("uploads/pattern.svg") 0 0 / 176px 160px; opacity: .07;
}
.trat-cta a > * { position: relative; }
.trat-cta a:hover { color: #FFFFFF; }
.trat-cta img { width: 46px; height: auto; margin-bottom: auto; }
.trat-cta h3 { margin-top: 28px; font: 300 clamp(21px, 1.8vw, 27px)/1.2 var(--font-display); text-wrap: pretty; }
.trat-cta p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: rgba(238,237,242,.74); text-wrap: pretty; }
.trat-cta a > span {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(238,237,242,.22);
  font: 500 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
}

/* Mapa do Google (carregado só quando se aproxima da tela) */
.map-frame { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.35); }

/* Horário: "aberto agora" — preenchido pelo script.js */
.open-status {
  display: none; align-items: center; gap: 8px; margin-top: 10px;
  font: 500 12px/1.3 var(--font-body); letter-spacing: .04em; color: #4A4A52;
}
.open-status.is-ready { display: flex; }
.open-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #B4534B; }
.open-status.is-open::before { background: #2E9E6B; }
/* Convite para o WhatsApp, mostrado só quando a clínica está fechada */
.open-status__wa {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 8px;
  font: 500 13px/1.45 var(--font-body); letter-spacing: 0; color: #242342; text-decoration: underline; text-underline-offset: 3px;
}
.open-status__wa[hidden] { display: none; }
.open-status__wa svg { flex: none; width: 17px; height: 17px; margin-top: 1px; fill: #25D366; }
.open-status__wa:hover { color: #1E8E4E; }

/* Avaliações do Google (textos copiados da ficha da clínica; atualizar à mão) */
.reviews { background: #F7F7F9; padding: clamp(80px, 10vw, 150px) 0; }
.reviews__inner { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px); }
.reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.reviews__eyebrow { font: 500 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.reviews__head h2 { margin-top: 20px; font: 300 clamp(26px, 2.9vw, 42px)/1.1 var(--font-display); letter-spacing: -.015em; text-wrap: pretty; }
.reviews__score { display: flex; align-items: center; gap: 18px; }
.reviews__score strong { font: 300 clamp(40px, 4vw, 58px)/1 var(--font-display); letter-spacing: -.02em; }
.reviews__score p { margin-top: 6px; font-size: 13px; color: #6B6B73; }
.reviews__stars { display: block; font-size: 15px; letter-spacing: 3px; color: #242342; }
.reviews__list { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.reviews__list li { display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 34px); background: #FFFFFF; border: 1px solid #E2E1E7; }
.reviews__list blockquote { margin: 16px 0 0; font-size: 15px; line-height: 1.68; color: #4A4A52; text-wrap: pretty; }
.reviews__list footer { margin-top: auto; padding-top: 24px; }
.reviews__list cite { display: block; font: 500 14px/1.3 var(--font-body); font-style: normal; color: #242342; }
.reviews__list footer span { display: block; margin-top: 5px; font: 500 10px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #6B6B73; }
.reviews__more { display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(28px, 3vw, 44px); padding-bottom: 8px; border-bottom: 1px solid #242342; font: 500 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; transition: gap .3s ease; }
.reviews__more:hover { gap: 20px; }
@media (max-width: 899px) { .reviews__list { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   Equipe — enquanto não há foto, o card mostra as iniciais.
   Para usar a foto, troque o <div class="person-ph"> por um <img>
   dentro de um <div style="aspect-ratio: 3/4; overflow: hidden">.
   --------------------------------------------------------------- */
.person { scroll-margin-top: 130px; }
.person-ph {
  position: relative; overflow: hidden; aspect-ratio: 3/4; background: #242342; color: #CECBD2;
  display: flex; align-items: center; justify-content: center;
  font: 400 clamp(34px, 3.6vw, 54px)/1 var(--font-display); letter-spacing: .08em;
}
.person-ph::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("uploads/pattern.svg") 0 0 / 176px 160px; opacity: .07;
}
.person-ph span { position: relative; }
.person-ph--sm { aspect-ratio: 1; width: 56px; border-radius: 50%; font-size: 15px; letter-spacing: .06em; }
.person-ph--sm::before { display: none; }

.staff-list { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 16px clamp(20px, 2.6vw, 40px); }
.staff-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid #DAD9E0; }
.staff-list__nome { font: 400 19px/1.3 var(--font-display); }
.staff-list__funcao { margin-top: 4px; font-size: 13px; color: #6B6B73; }
@media (max-width: 719px) { .staff-list { grid-template-columns: 1fr; } }

/* Lista de procedimentos (harmonização orofacial) */
.proc-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #E2E1E7; border: 1px solid #E2E1E7; }
.proc-grid li { background: #F7F7F9; padding: 20px 22px; }
.proc-grid li strong { display: block; font: 400 17px/1.3 var(--font-display); color: #242342; }
.proc-grid li p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: #55555D; text-wrap: pretty; }
@media (max-width: 719px) { .proc-grid { grid-template-columns: 1fr; } }

/* Os botões têm fundo e cor definidos inline, que ganham de uma regra de hover
   comum. Por isso o !important nos dois: fundo e texto sempre trocam juntos. */
.hv-accent-bg:hover, .hv-accent-bg-ink:hover { background: #242342 !important; border-color: #F7F7F9 !important; color: #F7F7F9 !important; }
.hv-dark-bg:hover, .hv-dark-bg-border:hover { background: #242342 !important; color: #F7F7F9 !important; }
.hv-btn-cta:hover { background: #F7F7F9 !important; border-color: #F7F7F9 !important; color: #242342 !important; }

/* Retratos da equipe */
.person-photo { aspect-ratio: 3/4; overflow: hidden; background: #ECEBEF; }
.person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.person-photo--sm { display: block; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

/* ---------------------------------------------------------------
   "Como podemos ajudar" — situações em linguagem do paciente.
   Abas (dentes / rosto), busca, carrossel em duas linhas e o
   detalhe de cada situação em um <dialog>.
   --------------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nec-bar { margin-top: clamp(36px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.nec-tabs { display: flex; gap: 8px; }
.nec-tab {
  padding: 13px 18px; border: 1px solid #CECBD2; background: none; color: #242342; cursor: pointer;
  font: 500 11px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.nec-tab:hover { border-color: #242342; }
.nec-tab.is-active { background: #242342; border-color: #242342; color: #F7F7F9; }
.nec-search { flex: 1 1 240px; max-width: 380px; }
.nec-search input {
  width: 100%; padding: 12px 14px; border: 1px solid #CECBD2; border-radius: 0; background: #FFFFFF;
  font: 400 15px/1.2 var(--font-body); color: #242342; outline-offset: 2px;
}
.nec-search input::placeholder { color: #8B8B93; }
.nec-search input:focus { border-color: #242342; }
.nec-arrows { margin-left: auto; display: flex; gap: 10px; }
.nec-arrow {
  width: 48px; height: 48px; border: 1px solid #CECBD2; border-radius: 50%; background: none; color: #242342;
  cursor: pointer; font-size: 15px; transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.nec-arrow:hover { background: #242342; border-color: #242342; color: #F7F7F9; }

.nec-list {
  margin-top: 22px; padding-bottom: 6px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto);
  grid-auto-columns: clamp(250px, 23vw, 330px); gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.nec-list > li { scroll-snap-align: start; display: flex; }
.nec-list > li[hidden] { display: none; }
@keyframes necIn { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: none; } }
.nec-list.is-in > li { animation: necIn .7s cubic-bezier(.22,1,.36,1) both; }
[data-slide] { transition: opacity .35s ease, background .3s ease, border-color .3s ease, color .3s ease; }
[data-slide]:disabled { opacity: .3; cursor: default; pointer-events: none; }
.nec-card {
  width: 100%; min-height: 150px; padding: 22px 22px 20px; display: flex; flex-direction: column; text-align: left;
  border: 1px solid #DAD9E0; background: #FFFFFF; color: #242342; cursor: pointer;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.nec-card__t { font: 400 clamp(18px, 1.45vw, 22px)/1.25 var(--font-display); text-wrap: pretty; }
.nec-card__d { margin-top: 12px; font-size: 14px; line-height: 1.58; color: #55555D; text-wrap: pretty; transition: color .3s ease; }
.nec-card:hover .nec-card__d, .nec-card:focus-visible .nec-card__d { color: rgba(247,247,249,.8); }
.nec-card__a {
  margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 10px;
  font: 500 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; transition: gap .3s ease;
}
.nec-card:hover, .nec-card:focus-visible { background: #242342; border-color: #242342; color: #F7F7F9; }
.nec-card:hover .nec-card__a { gap: 18px; }

.nec-empty { margin-top: 22px; max-width: 560px; padding: 26px 28px; border: 1px solid #DAD9E0; background: #FFFFFF; }
.nec-empty h3 { margin-bottom: 12px; font: 400 clamp(20px, 1.7vw, 25px)/1.22 var(--font-display); }
.nec-empty p { font-size: 15px; line-height: 1.62; color: #4A4A52; text-wrap: pretty; }

.nec-dialog {
  width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  background: #F7F7F9; color: #242342; box-shadow: 0 30px 80px -30px rgba(18,17,38,.6);
}
.nec-dialog::backdrop { background: rgba(18,17,38,.62); }
.nec-dialog__body { padding: clamp(28px, 4vw, 48px); padding-top: clamp(44px, 5vw, 56px); }
.nec-dialog__close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: none; color: #242342; font-size: 24px; line-height: 1; cursor: pointer; transition: background .3s ease, color .3s ease;
}
.nec-dialog__close:hover { background: #242342; color: #F7F7F9; }
.nec-d__eyebrow { font: 500 11px/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.nec-dialog h3 { margin-top: 16px; font: 300 clamp(23px, 2.2vw, 30px)/1.18 var(--font-display); letter-spacing: -.01em; text-wrap: pretty; }
.nec-d__text { margin-top: 16px; font-size: 16px; line-height: 1.66; color: #4A4A52; text-wrap: pretty; }
.nec-d__cta {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; padding: 17px 26px;
  background: #242342; color: #F7F7F9; font: 500 12px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  transition: background .3s ease, gap .3s ease;
}
.nec-d__cta:hover { background: #3A3963; color: #F7F7F9; gap: 20px; }
.nec-d__label { margin-top: 32px; font: 500 10px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #6B6B73; }
.nec-d__links { margin-top: 10px; }
.nec-d__links li { padding: 14px 0; border-top: 1px solid #DAD9E0; }
.nec-d__links li:last-child { border-bottom: 1px solid #DAD9E0; }
.nec-d__links a { display: flex; justify-content: space-between; gap: 16px; font: 400 18px/1.3 var(--font-display); }
.nec-d__links span:not([aria-hidden]) { display: block; margin-top: 5px; font-size: 13px; line-height: 1.5; color: #6B6B73; }

@media (max-width: 719px) {
  .nec-tabs { width: 100%; gap: 5px; }
  .nec-tab { flex: 1 1 auto; padding: 12px 4px; font-size: 10px; letter-spacing: .06em; }
  .nec-search { flex-basis: 100%; max-width: none; }
  .nec-arrows { display: none; }
  .nec-list { grid-auto-columns: 78vw; }
  .nec-card { min-height: 132px; }
}

/* Preenchimento das grades de links (completa a última linha); some no celular */
@media (max-width: 719px) { .grid-fill { display: none; } }

/* Aviso aberto/fechado no botão fixo do WhatsApp — o texto vem do script.js */
.whatsapp-fab[data-status]::before {
  content: ""; position: absolute; top: 1px; right: 1px; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #FFFFFF; background: #B4534B;
}
.whatsapp-fab.is-open::before { background: #1F8A55; }
.whatsapp-fab[data-status]::after {
  content: attr(data-status); position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  padding: 10px 14px; background: #242342; color: #F7F7F9; white-space: nowrap;
  font: 500 12px/1 var(--font-body); letter-spacing: .02em; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.whatsapp-fab:hover::after, .whatsapp-fab:focus-visible::after { opacity: 1; }
@media (max-width: 719px) { .whatsapp-fab[data-status]::after { display: none; } }

/* Aviso de cookies e mapa aguardando o aceite */
.cookie-bar {
  position: fixed; left: clamp(12px, 3vw, 28px); bottom: clamp(12px, 3vw, 28px); z-index: 110; width: min(430px, calc(100vw - 24px));
  padding: 20px 22px; background: #FFFFFF; border: 1px solid #DAD9E0; box-shadow: 0 24px 60px -30px rgba(18,17,38,.55);
}
.cookie-bar p { font-size: 14px; line-height: 1.58; color: #4A4A52; text-wrap: pretty; }
.cookie-bar p a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-bar__actions { margin-top: 16px; display: flex; gap: 10px; }
.cookie-bar button, .map-consent__btn {
  padding: 13px 20px; border: 1px solid #242342; background: none; color: #242342; cursor: pointer;
  font: 500 11px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  transition: background .3s ease, color .3s ease;
}
.cookie-bar button.is-primary, .map-consent__btn { background: #242342; color: #F7F7F9; }
.cookie-bar button:hover { background: #242342; color: #F7F7F9; }
.cookie-bar button.is-primary:hover, .map-consent__btn:hover { background: #3A3963; }
@media (max-width: 719px) { .cookie-bar { bottom: 80px; } }
.map-frame[hidden] { display: none; }
.map-consent {
  width: 100%; height: 100%; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: #ECEBEF; text-align: center;
}
.map-consent[hidden] { display: none; }
.map-consent p { font-size: 14px; line-height: 1.5; color: #4A4A52; }
.map-consent a { font: 500 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
