/* ==========================================================================
   Dra. Leninha — Correção de Sorriso Gengival
   Réplica estática da LP original (WordPress + Elementor).
   Paleta e tipografia extraídas do site original:
     verde institucional  #5B6E5D
     verde do botão       #00BE21
     fundo                #F9F9F9
     fonte                Montserrat
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #f9f9f9;
  color: #5b6e5d;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: inherit; }

/* Larguras do original: 1140px de conteúdo nas seções, 1120px no hero. */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.hero .container { padding: 0 40px; }

.center { text-align: center; }

.section-title {
  font-size: 30px;
  line-height: 1.2;
  color: #5b6e5d;
  text-align: center;
}

/* ---------- Botão WhatsApp ---------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #00be21;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  padding: 12px 45px;
  border-radius: 3px;
  transition: background-color .2s ease;
}

.btn:hover, .btn:focus-visible { background: #00a81d; }

.btn__icon { width: 24px; height: 24px; flex: 0 0 auto; }

/* ---------- Hero --------------------------------------------------------- */

.hero { padding: 40px 0 0; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.hero__logo { margin: 0 auto 30px; width: 182px; }

.hero h1 {
  font-size: 46px;
  line-height: 1;
  color: #5b6e5d;
  margin-bottom: 20px;
}

.hero__text > p {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 22px;
}

/* ---------- Faixa verde -------------------------------------------------- */

.band {
  background: #5b6e5d;
  padding: 35px 0;
  margin-top: 40px;
}

.band h2 {
  font-size: 30px;
  line-height: 1;
  color: #fff;
  text-align: center;
}

/* ---------- Resultados / carrossel -------------------------------------- */

.results { padding: 40px 0; }

/* Slides de 360px e setas sobrepostas, como no carrossel original. */
.carousel { position: relative; margin-top: 20px; }

.carousel__viewport { overflow: hidden; }

.carousel__track {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform .4s ease;
}

.carousel__track > li { flex: 0 0 calc((100% - 60px) / 3); }

.carousel__track img { width: 100%; border-radius: 4px; }

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(91, 110, 93, .85);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: opacity .2s ease;
}

.carousel__nav--prev { left: 8px; }
.carousel__nav--next { right: 8px; }

.carousel__nav svg { width: 20px; height: 20px; }

.carousel__nav:hover { opacity: .85; }

.carousel__nav[disabled] { opacity: .3; cursor: default; }

.results__note {
  font-size: 13px;
  text-align: center;
  opacity: .75;
  margin: 18px 0 24px;
}

/* ---------- Faixa de imagem --------------------------------------------- */

.strip {
  height: 559px;
  background: url("assets/faixa-sorriso.webp") center top / 100% auto no-repeat;
}

/* ---------- Acordeões (para quem é / cards / FAQ) ------------------------ */

.acc { border-bottom: 1px solid rgba(255, 255, 255, .25); }

.acc > summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
}

.acc > summary::-webkit-details-marker { display: none; }

.acc > summary h2,
.acc > summary h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
}

.acc__icon { flex: 0 0 auto; width: 15px; padding-top: 4px; }

.acc__icon svg { width: 15px; height: 15px; display: block; transition: transform .25s ease; }

.acc[open] .acc__icon svg { transform: rotate(180deg); }

.acc p, .acc ul { font-size: 15px; line-height: 1.6; }

/* Para quem é — faixa verde larga */

.who { background: #5b6e5d; color: #fff; padding: 30px 0; }

.who .acc { border-bottom: 0; }

.who .acc > summary h2 { font-size: 30px; }

.who__list { margin: 0; padding-left: 20px; }

.who__list li { margin-bottom: 8px; }

/* Como corrigir */

.how { padding: 45px 0; }

.how__text {
  max-width: 1140px;
  margin: 25px auto 0;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
}

/* Cards em 4 colunas sobre verde */

.cards { background: #5b6e5d; color: #fff; padding: 40px 0; }

.cards__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.cards .acc { border-bottom: 0; }

.cards .acc > summary { padding-top: 0; }

/* CTA verde */

.cta-band { background: #5b6e5d; padding: 0 0 40px; }

/* ---------- Vídeo -------------------------------------------------------- */

.video { padding: 45px 0; }

.video__frame {
  position: relative;
  margin: 25px 0;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Consultório / sobre ----------------------------------------- */

.about { padding: 25px 0 45px; }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* No original as duas fotos não ocupam a coluna inteira: ficam centralizadas
   com ~363px de altura (446x363 e 358x361). */
.about__col img {
  height: 363px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 4px;
}

.about__col p {
  margin-top: 20px;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
}

/* O mapa é estático, mas leva ao Google Maps. */
.about__map { display: block; }

.about__map img { transition: opacity .2s ease; }

.about__map:hover img,
.about__map:focus-visible img { opacity: .88; }

.about__maplink {
  display: inline-block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- FAQ ---------------------------------------------------------- */

.faq { padding: 20px 0 45px; }

.faq .acc {
  border-bottom: 1px solid rgba(91, 110, 93, .2);
  max-width: 900px;
  margin: 0 auto;
}

.faq .acc > summary h3 { font-size: 19px; }

.faq .acc p { font-size: 16px; padding-left: 25px; }

/* ---------- Frase -------------------------------------------------------- */

.quote { padding: 30px 0; }

.quote h2 {
  font-size: 30px;
  line-height: 1.2;
  text-align: center;
  color: #5b6e5d;
}

/* ---------- Rodapé ------------------------------------------------------- */

.footer { background: #5b6e5d; color: #fff; padding: 30px 0; }

.footer__grid {
  display: grid;
  grid-template-columns: 360px 360px 1fr;
  gap: 20px;
  align-items: center;
}

.footer__logo { width: 180px; }

.footer__text { font-size: 12px; line-height: 1.5; }

.footer__text p { margin: 0 0 .5em; }

.footer__text a { color: #fff; }

.footer__social { justify-self: end; }

.footer__social svg { width: 32px; height: 32px; color: #fff; }

/* ---------- Banner de cookies (LGPD) ------------------------------------ */

.cookie {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  padding: 12px;
}

.cookie[hidden] { display: none; }

.cookie__box {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(91, 110, 93, .2);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie__text { font-size: 14px; margin: 0; flex: 1 1 auto; }

.cookie__text a { color: #5b6e5d; font-weight: 600; }

.cookie__actions { display: flex; gap: 12px; flex: 0 0 auto; }

.cookie__btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .2s ease;
}

.cookie__btn--ghost {
  background: #fff;
  border: 1px solid rgba(91, 110, 93, .35);
  color: #5b6e5d;
}

.cookie__btn--ghost:hover { background: #f2f4f2; }

.cookie__btn--solid {
  background: #5b6e5d;
  border: 1px solid #5b6e5d;
  color: #fff;
}

.cookie__btn--solid:hover { background: #4c5d4e; }

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1024px) {
  .cards__grid { grid-template-columns: repeat(2, 1fr); }
  .carousel__track > li { flex-basis: calc((100% - 30px) / 2); }
  .footer__grid { grid-template-columns: 200px 1fr auto; }
  .strip { height: 380px; }
}

@media (max-width: 767px) {
  .hero { padding-top: 25px; }

  .container, .hero .container { padding: 0 20px; }

  .hero__grid,
  .about__grid { grid-template-columns: 1fr; }

  .hero__text { order: 2; text-align: center; }
  .hero__media { order: 1; }

  /* Deixa o título quebrar naturalmente em vez de seguir o <br> do desktop. */
  .hero h1 { font-size: 30px; }
  .hero h1 br { display: none; }
  .hero__text > p { font-size: 18px; }

  .btn { font-size: 18px; padding: 12px 28px; width: 100%; max-width: 380px; }

  .band { padding: 25px 0; }
  .band h2, .section-title, .quote h2, .who .acc > summary h2 { font-size: 22px; }

  .how__text, .about__col p { font-size: 18px; }

  .about__col img { height: auto; width: 100%; }

  .carousel__track > li { flex-basis: 100%; }

  .strip { height: 220px; background-size: cover; }

  .cards__grid { grid-template-columns: 1fr; }

  .footer__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer__social { justify-self: center; }

  .cookie__box { flex-direction: column; align-items: stretch; }
  .cookie__actions { justify-content: stretch; }
  .cookie__btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
