/* ==========================================================================
   Belle Dent - Clínica Odontológica (Ibipeba/BA)
   Folha de estilo complementar ao Tailwind CSS (CDN).
   Sistema visual: ritmo de 7px, botões pill, cards com mídia superior,
   cabeçalho de seção (eyebrow → H2 → linha de apoio).
   ========================================================================== */

:root {
  --primary: #1F6ED2;
  --primary-600: #175BAE;
  --primary-50: #EFF6FE;
  --mint: #5EDABF;
  --navy: #0A1E38;
  --navy-deep: #071627;
  --ink: #111827;
  --ink-60: #5B6472;
  --surface: #F9FAFB;
  --line: #E5E9EF;
  --wa: #25D366;
  --wa-600: #1EBE5B;
  --header-h: 74px;
}

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  /* Unica fonte do recuo das ancoras. Nao repetir esse valor em
     scroll-margin-top das secoes: os dois se somam e a secao para
     bem abaixo do cabecalho, deixando aparecer a anterior. */
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body { overflow-x: hidden; }

[x-cloak] { display: none !important; }

::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* As secoes nao levam scroll-margin-top: quem posiciona e o
   scroll-padding-top do html, e o topo da secao encosta exatamente
   na base do cabecalho.
   Os cards de tratamento ganham um respiro proposital, para o card
   nao ficar colado no cabecalho quando alguem abre /#servicos-implantes. */
article[id] { scroll-margin-top: 24px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   2. Tipografia e blocos de texto
   -------------------------------------------------------------------------- */
.h2 {
  font-family: "Source Serif 4", Georgia, Cambria, serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

.h3 {
  font-family: "Source Serif 4", Georgia, Cambria, serif;
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.28;
  letter-spacing: -0.006em;
  color: var(--ink);
}

.text-body {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-60);
}
.text-body-sm {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-60);
}
@media (min-width: 640px) {
  .text-body { font-size: 16.5px; }
  .text-body-sm { font-size: 15px; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow-rule {
  display: block;
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow-light { color: var(--mint); }

.section {
  padding-top: 76px;
  padding-bottom: 76px;
}
@media (min-width: 768px) { .section { padding-top: 98px; padding-bottom: 98px; } }
@media (min-width: 1280px) { .section { padding-top: 126px; padding-bottom: 126px; } }

/* --------------------------------------------------------------------------
   3. Botões e links de ação
   -------------------------------------------------------------------------- */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease, border-color .22s ease, color .22s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(31, 110, 210, .85);
}
.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(31, 110, 210, .95);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .32);
  color: #fff;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .55);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 32px; font-size: 15px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: gap .22s ease, color .22s ease;
}
.text-link:hover { gap: 13px; color: var(--primary-600); }
.text-link-light { color: var(--mint); }
.text-link-light:hover { color: #8FE9D4; }

/* --------------------------------------------------------------------------
   4. Cabeçalho fixo
   -------------------------------------------------------------------------- */
.site-header { transition: transform .35s ease; }

.header-bar {
  padding-top: 14px;
  padding-bottom: 14px;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease, padding .3s ease;
}
.site-header.is-scrolled .header-bar {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(10, 30, 56, .07), 0 12px 30px -22px rgba(10, 30, 56, .5);
  padding-top: 9px;
  padding-bottom: 9px;
}

.logo-stack { line-height: 0; }
.logo-dark, .logo-light { transition: opacity .3s ease; }
.logo-dark { opacity: 0; }
.logo-light { opacity: 1; }
.site-header.is-scrolled .logo-dark { opacity: 1; }
.site-header.is-scrolled .logo-light { opacity: 0; }

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
  transition: color .22s ease;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link:hover { color: #fff; }

.site-header.is-scrolled .nav-link { color: var(--ink-60); }
.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active { color: var(--primary); }
.site-header.is-scrolled .nav-link::after { background: var(--primary); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}
.menu-toggle:hover { background: rgba(255, 255, 255, .14); }
.site-header.is-scrolled .menu-toggle { color: var(--ink); border-color: var(--line); }
.site-header.is-scrolled .menu-toggle:hover { background: var(--surface); }

.mobile-link {
  padding: 14px 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s ease, padding-left .2s ease;
}
.mobile-link:hover { color: var(--primary); padding-left: 6px; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero-overlay {
  background:
    linear-gradient(105deg, rgba(7, 22, 39, .96) 6%, rgba(10, 30, 56, .88) 42%, rgba(10, 30, 56, .58) 78%, rgba(10, 30, 56, .42) 100%);
}
.hero-glow {
  pointer-events: none;
  background:
    radial-gradient(58% 62% at 84% 16%, rgba(94, 218, 191, .20), transparent 62%),
    radial-gradient(52% 58% at 12% 92%, rgba(31, 110, 210, .32), transparent 66%);
}

/* --------------------------------------------------------------------------
   6. Barra de credibilidade
   -------------------------------------------------------------------------- */
.cred-item {
  background: #fff;
  padding: 32px 28px;
  transition: background-color .25s ease;
}
.cred-item:hover { background: var(--primary-50); }

.cred-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary);
}
.cred-title {
  margin-top: 20px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
}
.cred-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-60);
}

/* --------------------------------------------------------------------------
   7. Quem somos: card flutuante
   -------------------------------------------------------------------------- */
.floating-card {
  position: absolute;
  right: -14px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 290px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(10, 30, 56, .05), 0 30px 60px -28px rgba(10, 30, 56, .34);
}
@media (min-width: 640px) { .floating-card { right: -28px; bottom: -28px; } }

.floating-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   8. Cards de serviço
   -------------------------------------------------------------------------- */
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 1px 2px rgba(10, 30, 56, .05), 0 14px 34px -18px rgba(10, 30, 56, .22);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 110, 210, .3);
  box-shadow: 0 2px 4px rgba(10, 30, 56, .05), 0 34px 60px -28px rgba(10, 30, 56, .38);
}

.service-media { position: relative; overflow: hidden; }
.service-img {
  display: block;
  width: 100%;
  height: 214px;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .3, 1);
}
.service-card:hover .service-img { transform: scale(1.05); }

.service-icon {
  position: absolute;
  left: 26px;
  bottom: -23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 24px -12px rgba(10, 30, 56, .6);
}

.service-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 42px 26px 30px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  transition: gap .22s ease, color .22s ease;
}
.service-link:hover { gap: 14px; color: var(--primary-600); }

/* --------------------------------------------------------------------------
   9. Diferenciais (seção escura)
   -------------------------------------------------------------------------- */
.benefit-glow {
  pointer-events: none;
  background:
    radial-gradient(46% 52% at 88% 8%, rgba(94, 218, 191, .16), transparent 64%),
    radial-gradient(50% 55% at 6% 96%, rgba(31, 110, 210, .30), transparent 68%);
}

.benefit-card {
  position: relative;
  padding: 34px 28px 32px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  background: rgba(255, 255, 255, .045);
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}
.benefit-card:hover {
  background: rgba(255, 255, 255, .075);
  border-color: rgba(94, 218, 191, .35);
  transform: translateY(-4px);
}

.benefit-num {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, .1);
}
.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(94, 218, 191, .14);
  color: var(--mint);
}
.benefit-title {
  margin-top: 22px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.benefit-text {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(226, 232, 240, .72);
}

/* --------------------------------------------------------------------------
   10. Etapas do atendimento
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; list-style: none; padding: 0; }

.step-card {
  position: relative;
  padding: 34px 28px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.step-card:hover {
  border-color: rgba(31, 110, 210, .35);
  box-shadow: 0 1px 2px rgba(10, 30, 56, .05), 0 22px 44px -26px rgba(10, 30, 56, .4);
  transform: translateY(-4px);
}

/* linha conectora entre as etapas (somente desktop) */
@media (min-width: 1280px) {
  .step-card::after {
    content: "";
    position: absolute;
    top: 58px;
    right: -26px;
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, rgba(31, 110, 210, .45), rgba(31, 110, 210, .05));
  }
  .step-card:last-child::after { display: none; }
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
}
.step-title {
  margin-top: 22px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.step-text {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-60);
}

/* --------------------------------------------------------------------------
   11. Transparência e confiança
   -------------------------------------------------------------------------- */
.verify-card {
  display: flex;
  gap: 20px;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.verify-card:hover {
  border-color: rgba(31, 110, 210, .3);
  box-shadow: 0 1px 2px rgba(10, 30, 56, .05), 0 18px 40px -26px rgba(10, 30, 56, .34);
}
.verify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary);
}
.verify-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
}
.verify-text {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-60);
}

/* --------------------------------------------------------------------------
   12. Área de atuação: dados e mapa
   -------------------------------------------------------------------------- */
.info-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px;
}
@media (min-width: 640px) {
  .info-row { flex-direction: row; align-items: center; gap: 20px; }
}
.info-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  width: 100%;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
}
@media (min-width: 640px) { .info-label { width: 172px; } }
.info-value { font-size: 14.5px; line-height: 1.6; color: var(--ink-60); }

.map-embed {
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 1px 2px rgba(10, 30, 56, .05), 0 14px 34px -18px rgba(10, 30, 56, .22);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: saturate(.92);
}
@media (min-width: 640px) { .map-embed iframe { height: 440px; } }
@media (min-width: 1024px) { .map-embed iframe { height: 520px; } }

.map-caption {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}
@media (min-width: 480px) {
  .map-caption { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
}
.map-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: background-color .22s ease, border-color .22s ease, gap .22s ease;
}
.map-cta:hover { background: var(--primary-50); border-color: rgba(31, 110, 210, .35); gap: 12px; }

/* --------------------------------------------------------------------------
   13. FAQ (accordion)
   -------------------------------------------------------------------------- */
.faq-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color .28s ease, box-shadow .28s ease;
}
.faq-item.is-open {
  border-color: rgba(31, 110, 210, .38);
  box-shadow: 0 1px 2px rgba(10, 30, 56, .05), 0 18px 40px -26px rgba(10, 30, 56, .34);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 24px;
  text-align: left;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  transition: color .22s ease;
}
.faq-trigger:hover { color: var(--primary); }
@media (min-width: 640px) { .faq-trigger { font-size: 18.5px; padding: 24px 28px; } }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform .3s ease;
}
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 24px 24px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ink-60);
}
@media (min-width: 640px) { .faq-answer { padding: 0 28px 28px; font-size: 15.5px; } }

/* --------------------------------------------------------------------------
   14. Contato
   -------------------------------------------------------------------------- */
.contact-glow {
  pointer-events: none;
  background:
    radial-gradient(48% 56% at 92% 12%, rgba(94, 218, 191, .18), transparent 64%),
    radial-gradient(54% 60% at 4% 88%, rgba(31, 110, 210, .34), transparent 68%);
}
.contact-card {
  padding: 34px 30px;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 2px 4px rgba(10, 30, 56, .05), 0 30px 60px -28px rgba(0, 0, 0, .55);
}
@media (min-width: 640px) { .contact-card { padding: 42px 38px; } }

.contact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   15. Rodapé
   -------------------------------------------------------------------------- */
.footer-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
}
.footer-link {
  font-size: 14px;
  color: rgba(148, 163, 184, .95);
  transition: color .22s ease, padding-left .22s ease;
}
.footer-link:hover { color: var(--mint); padding-left: 4px; }

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(226, 232, 240, .9);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   16. Botão flutuante de WhatsApp
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 30px -6px rgba(11, 134, 80, .5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(.94);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background-color .25s ease;
}
.whatsapp-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.whatsapp-float:hover { background: var(--wa-600); }

.whatsapp-label {
  display: none;
  font-size: 14.5px;
  font-weight: 600;
  padding-right: 8px;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .whatsapp-float { right: 26px; bottom: 26px; padding: 14px 22px 14px 18px; }
  .whatsapp-label { display: inline; }
}

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--wa);
  opacity: .55;
  animation: wa-pulse 2.6s cubic-bezier(.4, 0, .6, 1) infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .5; }
  70%  { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}

/* --------------------------------------------------------------------------
   17. Animação de entrada
   -------------------------------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .whatsapp-pulse { animation: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --------------------------------------------------------------------------
   18. Impressão
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .whatsapp-float, .map-embed iframe { display: none !important; }
  .section { padding: 24px 0 !important; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
