/* ==========================================================================
   Reference Odontologia — Base do site
   Fundamentado em identidade_visual.md: sofisticação, tradição, luxo discreto.
   Compartilhado por todas as páginas do site institucional.
   ========================================================================== */

:root{
  --navy:       #132B54;   /* cor primária */
  --navy-deep:  #0B1D38;   /* topo, rodapé, gradientes escuros */
  --navy-mid:   #1E3F72;   /* hover, painéis secundários */
  --navy-accent:#2C5AA0;   /* destaque — mesma família do azul */
  --cream:      #F7F4EE;   /* fundo neutro */
  --white:      #FFFFFF;
  --gray-100:   #E6E8EC;
  --gray-400:   #B6BDC8;
  --gray-700:   #505862;
  --ink:        #182233;   /* texto de maior contraste quando necessário */

  --shadow-sm: 0 1px 2px rgba(19,43,84,.06);
  --shadow-md: 0 14px 34px -18px rgba(19,43,84,.28);
  --shadow-lg: 0 26px 60px -22px rgba(19,43,84,.32);

  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--gray-700);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3{ font-family:var(--font-display); margin:0; font-weight:600; letter-spacing:-0.01em; color:var(--navy); }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
svg{ flex-shrink:0; }

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 28px;
}

section{ position:relative; }
.section-pad{ padding:104px 0; }
@media (max-width:768px){ .section-pad{ padding:68px 0; } }

.bg-white{ background:var(--white); }
.bg-cream{ background:var(--cream); }
.bg-navy{ background:var(--navy); color:rgba(255,255,255,.88); }
.bg-navy h2, .bg-navy h3{ color:var(--white); }

/* -------------------------------- Rótulos -------------------------------- */
.label{
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--font-body); font-size:14px; font-weight:600;
  color:var(--navy-accent);
}
.label::before{
  content:""; width:8px; height:8px; border-radius:50%;
  background:var(--navy-accent); flex-shrink:0;
}
.bg-navy .label{ color:rgba(255,255,255,.85); }
.bg-navy .label::before{ background:var(--white); }

/* -------------------------------- Botões ---------------------------------- */
.btn{
  display:inline-flex; align-items:center; gap:9px;
  padding:12px 26px; border-radius:999px; border:1px solid transparent;
  font-family:var(--font-body); font-size:15px; font-weight:600;
  text-decoration:none; white-space:nowrap; width:fit-content;
  transition:background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.btn svg{ width:16px; height:16px; transition:transform .3s ease; }
.btn:hover{ transform:translateY(-1px); }
.btn:hover svg{ transform:translateX(3px); }
.btn:focus-visible{ outline:2px solid var(--navy-accent); outline-offset:3px; }
.btn-primary{ background:var(--navy); color:var(--white); box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--navy-mid); box-shadow:var(--shadow-md); }
.btn-white{ background:var(--white); color:var(--navy); box-shadow:var(--shadow-sm); }
.btn-white:hover{ box-shadow:var(--shadow-md); }
.btn-outline{ background:transparent; border-color:rgba(19,43,84,.3); color:var(--navy); }
.btn-outline:hover{ border-color:var(--navy); background:rgba(19,43,84,.04); }
.btn-outline-light{ background:transparent; border-color:rgba(255,255,255,.4); color:var(--white); }
.btn-outline-light:hover{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.7); }
.btn-whatsapp{ background:#25D366; color:var(--white); }
.btn-whatsapp:hover{ background:#1DA851; box-shadow:var(--shadow-md); }
.btn-small{ padding:10px 20px; font-size:13.5px; }

/* ------------------------------- Topo (barra) ------------------------------ */
.topbar{
  background:var(--navy-deep); color:rgba(255,255,255,.82);
  font-size:13px;
}
.topbar .container{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding-top:9px; padding-bottom:9px;
}
.topbar-social{ display:flex; align-items:center; gap:12px; }
.topbar-social a{
  width:26px; height:26px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.75); transition:color .25s ease;
}
.topbar-social a:hover{ color:var(--white); }
.topbar-social svg{ width:14px; height:14px; }
.topbar-phone{ display:flex; align-items:center; gap:8px; text-decoration:none; color:inherit; font-weight:500; }
.topbar-phone svg{ width:14px; height:14px; color:rgba(255,255,255,.75); }
@media (max-width:640px){ .topbar-social span{ display:none; } }

/* --------------------------------- Header --------------------------------- */
header#site-header{
  position:sticky; top:0; z-index:100;
  background:var(--navy);
  padding:18px 0;
  transition:padding .35s ease, box-shadow .35s ease;
}
header#site-header.is-scrolled{ padding:11px 0; box-shadow:0 10px 28px -16px rgba(6,14,28,.55); }
.nav-inner{ display:flex; align-items:center; justify-content:space-between; gap:28px; }
.logo{ display:flex; align-items:center; text-decoration:none; flex-shrink:0; }
.logo img{ height:42px; width:auto; display:block; }

.nav-links{ display:flex; align-items:center; gap:8px; }
.nav-links > li{ position:relative; }
.nav-links a, .nav-item-trigger{
  display:flex; align-items:center; gap:6px;
  font-family:var(--font-body); font-size:15px; font-weight:500;
  color:rgba(255,255,255,.9); text-decoration:none;
  padding:10px 14px; border-radius:999px;
  background:none; border:none;
  transition:background .25s ease, color .25s ease;
}
.nav-links a:hover, .nav-item-trigger:hover{ background:rgba(255,255,255,.1); color: #000; }
.nav-item-trigger svg{ width:13px; height:13px; transition:transform .25s ease; }
.nav-item.is-open .nav-item-trigger svg{ transform:rotate(180deg); }

.dropdown{
  position:absolute; top:calc(100% + 10px); left:50%; transform:translateX(-50%);
  background:var(--white); border-radius:var(--radius-md); box-shadow:var(--shadow-lg);
  padding:14px; width:520px;
  display:grid; grid-template-columns:1fr 1fr; gap:2px;
  opacity:0; visibility:hidden; translate:0 6px;
  transition:opacity .25s ease, visibility .25s ease, translate .25s ease;
  z-index:50;
}
.nav-item.is-open .dropdown{ opacity:1; visibility:visible; translate:0 0; }
.dropdown a{
  display:flex; align-items:center; gap:11px;
  padding:11px 14px; border-radius:var(--radius-sm);
  font-size:14.5px; font-weight:500; color:var(--ink); text-decoration:none;
  transition:background .2s ease;
}
.dropdown a:hover{ background:var(--cream); }
.dropdown a svg{ width:18px; height:18px; color:var(--navy-accent); stroke:currentColor; flex-shrink:0; }

.nav-cta{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.menu-toggle{ display:none; background:none; border:none; padding:8px; color:var(--white); }
.menu-toggle svg{ width:24px; height:24px; }

@media (max-width:1080px){
  .nav-links{ display:none; }
  .nav-cta .btn{ display:none; }
  .menu-toggle{ display:inline-flex; }
}

/* ---------------------------- Menu mobile (drawer) ------------------------- */
.mobile-drawer{
  position:fixed; inset:0; z-index:200;
  background:var(--navy-deep);
  display:flex; flex-direction:column; padding:22px 26px;
  transform:translateX(100%); transition:transform .4s cubic-bezier(.16,1,.3,1);
  overflow-y:auto;
}
.mobile-drawer.open{ transform:translateX(0); }
.mobile-drawer-top{ display:flex; justify-content:space-between; align-items:center; }
.mobile-drawer-top .logo img{ height:38px; }
.mobile-drawer-top .menu-toggle{ display:inline-flex; }
.mobile-nav{ margin-top:36px; display:flex; flex-direction:column; }
.mobile-nav > li{ border-bottom:1px solid rgba(255,255,255,.14); }
.mobile-nav a, .mobile-nav .m-trigger{
  display:flex; align-items:center; justify-content:space-between;
  font-family:var(--font-display); font-size:22px; font-weight:500;
  padding:16px 2px; text-decoration:none; color:var(--white);
  background:none; border:none; width:100%; text-align:left;
}
.mobile-nav .m-trigger svg{ width:16px; height:16px; transition:transform .3s ease; color:rgba(255,255,255,.6); }
.mobile-nav li.is-open .m-trigger svg{ transform:rotate(180deg); }
.mobile-submenu{
  max-height:0; overflow:hidden; transition:max-height .35s ease;
  display:flex; flex-direction:column; padding-left:6px;
}
.mobile-nav li.is-open .mobile-submenu{ max-height:640px; }
.mobile-submenu a{
  font-family:var(--font-body); font-size:15.5px; font-weight:500; padding:10px 2px;
  color:rgba(255,255,255,.78); border-bottom:none;
}
.mobile-drawer .btn{ margin-top:30px; align-self:flex-start; }

/* ------------------------------ Reveal ao rolar ---------------------------- */
@keyframes reveal-in{ from{ opacity:0; transform:translateY(26px); } to{ opacity:1; transform:none; } }
.reveal{ opacity:0; transform:translateY(26px); }
.reveal.is-visible{ animation:reveal-in .8s cubic-bezier(.16,1,.3,1) forwards; }
.reveal-delay-1.is-visible{ animation-delay:.12s; }
.reveal-delay-2.is-visible{ animation-delay:.24s; }
.reveal-delay-3.is-visible{ animation-delay:.36s; }
.reveal-delay-4.is-visible{ animation-delay:.48s; }

/* --------------------------------- Cards ----------------------------------- */
.card{
  background:var(--white); border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm); border:1px solid var(--gray-100);
}

/* --------------------------------- Rodapé ---------------------------------- */
footer{ background:var(--navy-deep); color:rgba(255,255,255,.72); padding:64px 0 32px; }
.footer-grid{
  display:grid; grid-template-columns:1.2fr 1fr 1fr 1fr; gap:44px;
  padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.12);
}
.footer-brand .logo img{ height:44px; }
.footer-brand p{ margin-top:18px; font-size:14.5px; max-width:280px; color:rgba(255,255,255,.62); }
.footer-social{ display:flex; gap:12px; margin-top:22px; }
.footer-social a{
  width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.22);
  display:flex; align-items:center; justify-content:center; text-decoration:none;
  transition:background .25s ease, border-color .25s ease;
}
.footer-social a:hover{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.5); }
.footer-social svg{ width:16px; height:16px; }
.footer-col h4{
  font-family:var(--font-body); font-size:14px; font-weight:600; color:var(--white);
  margin-bottom:18px; letter-spacing:.01em;
}
.footer-col ul{ display:flex; flex-direction:column; gap:11px; }
.footer-col a{ font-size:14.5px; text-decoration:none; color:rgba(255,255,255,.68); transition:color .2s ease; }
.footer-col a:hover{ color:var(--white); }
.footer-col address{ font-style:normal; font-size:14.5px; line-height:1.7; color:rgba(255,255,255,.68); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding-top:26px; font-size:13px; color:rgba(255,255,255,.48);
}
@media (max-width:980px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .footer-grid{ grid-template-columns:1fr; gap:32px; } }

/* ------------------------------ Cabeçalho de seção -------------------------- */
.section-head{ max-width:640px; }
.section-head h2{ font-size:clamp(26px,3vw,34px); margin-top:16px; }
.section-head p.sub{ margin-top:18px; font-size:16.5px; color:var(--gray-700); }

/* --------------------------- Painel ilustrado (arte) ------------------------- */
.art-panel{ position:relative; aspect-ratio:1/1; max-width:380px; margin:0 auto; width:100%; }
.art-panel .panel{
  position:absolute; inset:0; border-radius:var(--radius-lg);
  background:linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-lg); overflow:hidden;
}
.art-panel .rings{ position:absolute; inset:0; width:100%; height:100%; }
.art-panel .rings circle{ fill:none; stroke:rgba(255,255,255,.14); stroke-width:1; }
.art-panel .icon{ width:46%; height:46%; position:relative; z-index:1; }
.art-panel .icon *{ fill:none; stroke:var(--cream); stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.art-panel .icon .accent{ stroke:var(--navy-accent); }

/* --------------------------- Banner de tratamento ---------------------------- */
.tbanner{ background:var(--cream); padding:56px 0 72px; }
.tbanner-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
.tbanner-copy{ max-width:560px; }
.tbanner-copy h1{ font-size:clamp(32px,4.2vw,48px); line-height:1.12; margin-top:14px; }
.tbanner-copy p{ margin-top:20px; font-size:17px; color:var(--gray-700); max-width:480px; }
.tbanner-copy .btn{ margin-top:30px; }
@media (max-width:900px){
  .tbanner-grid{ grid-template-columns:1fr; gap:36px; }
  .tbanner-copy{ max-width:none; }
  .tbanner-copy p{ max-width:none; }
  .art-panel{ max-width:240px; order:-1; }
}

/* --------------------------------- Diferenciais ------------------------------ */
.diferenciais-grid{ display:flex; flex-wrap:wrap; gap:36px 28px; justify-content:space-between; }
.dif-item{ display:flex; flex-direction:column; align-items:flex-start; gap:14px; flex:1 1 160px; }
.dif-icon{
  width:48px; height:48px; border-radius:50%; background:var(--white);
  border:1px solid var(--gray-100); display:flex; align-items:center; justify-content:center;
}
.dif-icon svg{ width:22px; height:22px; color:var(--navy); stroke:currentColor; }
.dif-item span{ font-size:14.5px; font-weight:600; color:var(--ink); }

/* ------------------------------------ Tabs ----------------------------------- */
.tabs-nav{ display:flex; flex-wrap:wrap; gap:10px; }
.tab-btn{
  padding:11px 20px; border-radius:999px; border:1px solid var(--gray-100);
  background:var(--white); font-family:var(--font-body); font-size:14.5px; font-weight:600;
  color:var(--gray-700); transition:background .25s ease, color .25s ease, border-color .25s ease;
}
.tab-btn.is-active{ background:var(--navy); border-color:var(--navy); color:var(--white); }
.tab-btn:hover:not(.is-active){ border-color:var(--navy); color:var(--navy); }
.tabs-panels{
  margin-top:32px; background:var(--white); border:1px solid var(--gray-100);
  border-radius:var(--radius-md); padding:38px;
}
.tab-panel{ display:none; font-size:16px; color:var(--gray-700); line-height:1.75; }
.tab-panel.is-active{ display:block; }
.tab-panel h3{ font-size:20px; margin-bottom:14px; }
@media (max-width:640px){ .tabs-panels{ padding:26px 22px; } }

/* ----------------------------------- Passos ---------------------------------- */
.steps-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; margin-top:44px; }
.step-item{ display:flex; flex-direction:column; gap:16px; }
.step-num{ font-family:var(--font-display); font-size:36px; font-weight:600; color:var(--navy-accent); }
.step-item p{ font-size:15.5px; color:var(--gray-700); }
@media (max-width:860px){ .steps-grid{ grid-template-columns:1fr; gap:32px; } }

/* -------------------------------- Grade de recursos -------------------------- */
.feature-grid{ display:grid; gap:28px; margin-top:44px; }
.feature-grid.cols-2{ grid-template-columns:repeat(1,1fr); }
.feature-grid.cols-3{ grid-template-columns:repeat(3,1fr); }
.feature-grid.cols-4{ grid-template-columns:repeat(4,1fr); }
.feature-grid.cols-6{ grid-template-columns:repeat(6,1fr); }
.feature-item{ display:flex; flex-direction:column; gap:16px; }
.feature-icon{ width:46px; height:46px; border-radius:50%; background:var(--cream); display:flex; align-items:center; justify-content:center; }
.feature-icon svg{ width:21px; height:21px; color:var(--navy); stroke:currentColor; }
.feature-item h3{ font-family:var(--font-body); font-size:16px; font-weight:600; color:var(--ink); }
.feature-item p{ font-size:14.5px; color:var(--gray-700); }
@media (max-width:900px){ .feature-grid.cols-4, .feature-grid.cols-6{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:640px){
  .feature-grid.cols-2, .feature-grid.cols-3, .feature-grid.cols-4, .feature-grid.cols-6{ grid-template-columns:repeat(1,1fr); gap:22px; }
}

/* ------------------------------------ FAQ ------------------------------------ */
.faq-list{ display:flex; flex-direction:column; margin-top:36px; }
.faq-item{ border-bottom:1px solid var(--gray-100); }
.faq-item:first-child{ border-top:1px solid var(--gray-100); }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:20px;
  text-align:left; background:none; border:none; padding:24px 2px;
  font-family:var(--font-body); font-size:16.5px; font-weight:600; color:var(--ink);
}
.faq-q svg{ width:18px; height:18px; flex-shrink:0; color:var(--navy); transition:transform .3s ease; }
.faq-item.is-open .faq-q svg{ transform:rotate(180deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .4s ease; }
.faq-item.is-open .faq-a{ max-height:1000px; }
.faq-a p{ padding:0 2px 26px; font-size:15.5px; color:var(--gray-700); line-height:1.75; max-width:760px; }

/* --------------------------------- CTA final --------------------------------- */
.cta-final{ background:linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 100%); color:var(--white); }
.cta-final-inner{ max-width:600px; }
.cta-final h2{ color:var(--white); font-size:clamp(26px,3.2vw,36px); margin-top:16px; }
.cta-final p{ margin-top:16px; font-size:16.5px; color:rgba(255,255,255,.78); max-width:460px; }
.cta-final .btn{ margin-top:32px; }

/* ------------------------------ Acessibilidade ------------------------------- */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* --------------------------- Fotografia (cartão) ----------------------------- */
.photo-panel{
  position:relative; border-radius:var(--radius-lg); overflow:hidden;
  box-shadow:var(--shadow-lg); max-width:380px; margin:0 auto; width:100%;
  aspect-ratio:3/4;
}
.photo-panel img{ width:100%; height:100%; object-fit:cover; display:block; }

/* ------------------------- Fotografia (recorte flutuante) ------------------- */
.cutout-figure{
  position:relative; aspect-ratio:1/1; max-width:380px; margin:0 auto; width:100%;
  display:flex; align-items:flex-end; justify-content:center; overflow:hidden;
  align-self:end;
}
.cutout-figure::before{
  content:""; position:absolute; left:8%; right:8%; bottom:0; top:20%; border-radius:50%;
  background:radial-gradient(circle, rgba(19,43,84,.10) 0%, rgba(19,43,84,0) 72%);
}
.cutout-figure img{
  position:relative; z-index:1; width:94%; height:auto; max-height:100%;
  object-fit:contain; filter:drop-shadow(0 20px 28px rgba(19,43,84,.18));
}
@media (min-width:901px){
  .cutout-figure{ margin-bottom:-72px; }
}

/* ------------------------------ WhatsApp flutuante -------------------------- */
.wa-float{
  position:fixed; right:24px; bottom:24px; z-index:190;
  width:58px; height:58px; border-radius:50%;
  background:#25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 12px 28px rgba(0,0,0,.26);
  text-decoration:none;
  animation:wa-pulse 2.8s ease-in-out infinite;
}
.wa-float svg{ width:27px; height:27px; color:var(--white); }
@keyframes wa-pulse{
  0%,100%{ box-shadow:0 12px 28px rgba(0,0,0,.26), 0 0 0 0 rgba(37,211,102,.4); }
  50%{ box-shadow:0 12px 28px rgba(0,0,0,.26), 0 0 0 11px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce){ .wa-float{ animation:none; } }
