/* Ajustes solicitados em setembro/2026 */
:root {
  --cta: #ffb81c;
  --cta-hover: #ffc84a;
  --cta-ink: #1b2f52;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
}

/* ---------- Menu com fonte maior ---------- */
.navbar {
  gap: 1.6rem;
}

.desktop-nav {
  gap: clamp(1.1rem, 1.7vw, 1.9rem);
}

.desktop-nav > a,
.desktop-nav .nav-group > a {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.desktop-nav .nav-label {
  display: inline-block;
  text-align: center;
}

.desktop-nav .nav-label > span {
  white-space: nowrap;
}

.desktop-nav .nav-label--stack > span {
  display: block;
}

.desktop-nav .nav-dropdown a {
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-dropdown {
  top: calc(100% - 0.9rem);
  min-width: 17rem;
  max-width: 23rem;
}

@media (max-width: 1439px) {
  .desktop-nav .nav-label > span {
    display: block;
  }
}

@media (max-width: 1320px) {
  .navbar {
    gap: 1.2rem;
  }

  .brand {
    width: 9.5rem;
    flex-basis: 9.5rem;
  }

  .desktop-nav {
    gap: 1.1rem;
  }

  .desktop-nav > a,
  .desktop-nav .nav-group > a {
    font-size: 0.95rem;
  }
}

/* ---------- Botão Agendar Consulta ---------- */
.button--cta {
  min-height: 3.9rem;
  padding: 1rem 1.9rem;
  background: var(--cta);
  color: var(--cta-ink);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgb(255 184 28 / 32%);
}

.button--cta:hover,
.button--cta:focus-visible {
  background: var(--cta-hover);
  box-shadow: 0 14px 30px rgb(255 184 28 / 42%);
}

.button--cta .arrow {
  color: var(--cta-ink);
}

.button--nav.button--cta {
  min-height: 3.3rem;
  flex: 0 0 auto;
  padding-inline: 1.5rem;
  font-size: 1.05rem;
  white-space: nowrap;
}

@media (max-width: 1320px) {
  .button--nav.button--cta {
    padding-inline: 1.2rem;
    font-size: 1rem;
  }
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 2.2vw, 1.75rem);
  bottom: clamp(1rem, 2.2vw, 1.75rem);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 1.35rem 0.5rem 0.5rem;
  border-radius: 999px;
  background: var(--whatsapp);
  color: white;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 12px 30px rgb(0 0 0 / 24%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.25rem) scale(0.96);
  transition: opacity 260ms ease, transform 260ms ease, visibility 260ms ease, background 180ms ease;
}

.whatsapp-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: var(--whatsapp-dark);
}

.whatsapp-float__icon {
  position: relative;
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  flex: 0 0 3.1rem;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 18%);
}

.whatsapp-float__icon::after {
  position: absolute;
  inset: -0.5rem;
  border: 2px solid rgb(37 211 102 / 55%);
  border-radius: 50%;
  content: "";
  animation: whatsapp-pulse 2.4s ease-out infinite;
}

.whatsapp-float__icon svg {
  width: 1.95rem;
  height: 1.95rem;
  display: block;
}

@keyframes whatsapp-pulse {
  0% { opacity: 0.9; transform: scale(0.85); }
  70%, 100% { opacity: 0; transform: scale(1.35); }
}

/* ---------- Rodapé: selos bem pequenos ---------- */
@media (min-width: 1181px) {
  .footer__bottom {
    grid-template-columns: minmax(12rem, 0.85fr) minmax(15rem, 1.6fr);
  }
}

.footer__bottom nav {
  max-width: 34rem;
}

.footer__bottom nav a {
  white-space: normal;
}

.footer__legal {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.footer__legal .footer__seals {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__legal .footer__seals > a {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  opacity: 0.8;
  transition: opacity 160ms ease;
}

.footer__legal .footer__seals > a:hover,
.footer__legal .footer__seals > a:focus-visible {
  background: none;
  opacity: 1;
  transform: none;
}

.footer__legal .footer__seals img {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
}

.footer__legal .footer__seals > a:last-child img {
  border-radius: 0.35rem;
}

.footer__legal .footer__seals span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Página Minha História ---------- */
.medical-article-v3 .legacy-content p > img.dr-photo {
  width: min(100%, 26rem);
  height: auto;
  border-radius: 18px;
}

.bio-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 3.5rem;
}

.legacy-content .bio-hero__photo {
  margin: 0;
}

.legacy-content .bio-hero__photo img {
  width: 100%;
  max-height: none;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 20px 50px rgb(20 44 80 / 14%);
}

.medical-article-v3 .bio-hero__lead {
  color: #263e63;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.5;
}

.legacy-content .bio-stats {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.medical-article-v3 .bio-stats li {
  padding: 1.1rem 1rem;
  border: 1px solid #dce6f1;
  border-radius: 14px;
  background: white;
  line-height: 1.35;
}

.medical-article-v3 .bio-stats strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--navy);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.medical-article-v3 .bio-stats span {
  display: block;
  color: #56616b;
  font-size: 0.92rem;
}

.legacy-content .bio-cv,
.legacy-content .bio-timeline {
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.medical-article-v3 .bio-cv li,
.medical-article-v3 .bio-timeline li {
  position: relative;
  padding: 0.95rem 1.2rem 0.95rem 3.1rem;
  border: 1px solid #dce6f1;
  border-radius: 14px;
  background: white;
}

.medical-article-v3 .bio-cv li::before,
.medical-article-v3 .bio-timeline li::before {
  position: absolute;
  top: 1.05rem;
  left: 1.1rem;
  width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  content: "✓";
}

.medical-article-v3 .bio-timeline li::before {
  background: var(--navy);
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  top: 1.45rem;
  left: 1.4rem;
}

/* ---------- Telas menores ---------- */
@media (max-width: 1180px) {
  .mobile-menu nav a,
  .mobile-submenu > summary {
    font-size: 1.05rem;
  }

  .mobile-menu nav .mobile-submenu a {
    font-size: 1rem;
  }

  .mobile-menu nav a.mobile-menu__cta {
    margin-top: 0.8rem;
    padding: 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--cta);
    color: var(--cta-ink);
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
  }

  .footer__legal .footer__seals {
    grid-template-columns: none;
  }
}

@media (max-width: 820px) {
  .hero .button--cta,
  .booking-cta-v2 .button--cta {
    width: 100%;
    min-height: 4rem;
    font-size: 1.25rem;
  }

  .footer {
    padding-bottom: 6.5rem;
  }

  .footer__legal {
    align-items: flex-start;
  }

  .bio-hero {
    grid-template-columns: 1fr;
  }

  .legacy-content .bio-hero__photo {
    max-width: 26rem;
  }
}

@media (max-width: 520px) {
  .whatsapp-float {
    padding-right: 1.1rem;
    font-size: 1rem;
  }

  .whatsapp-float__icon {
    width: 2.8rem;
    height: 2.8rem;
    flex-basis: 2.8rem;
  }

  .legacy-content .bio-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float__icon::after {
    animation: none;
  }
}

/* ---------- Depoimentos em vídeo (formato vertical dos Shorts) ---------- */
.testimonial-card {
  grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr);
  align-items: center;
}

.testimonial-video {
  width: 100%;
  min-height: 0;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #111;
}

.testimonial-video iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.yt-play {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: #111;
  cursor: pointer;
}

.yt-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.yt-play:hover img,
.yt-play:focus-visible img {
  transform: scale(1.03);
}

.yt-play__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 10px 30px rgb(0 0 0 / 30%);
  translate: -50% -50%;
  transition: transform 180ms ease;
}

.yt-play__icon::before {
  position: absolute;
  top: 50%;
  left: 54%;
  border-width: 0.8rem 0 0.8rem 1.3rem;
  border-style: solid;
  border-color: transparent transparent transparent var(--navy);
  content: "";
  translate: -50% -50%;
}

.yt-play:hover .yt-play__icon,
.yt-play:focus-visible .yt-play__icon {
  transform: scale(1.08);
}

.testimonial-dots {
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .testimonial-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .testimonial-video {
    width: min(100%, 14.5rem);
    min-height: 0;
  }

  .testimonial-copy h3 {
    margin-inline: auto;
  }

  .testimonial-dots {
    gap: 0.55rem;
  }
}

/* ---------- Menu sem caixa alta (set/2026) ---------- */
/* o menu ocupa toda a altura da barra, para o submenu abrir abaixo dos itens */
.desktop-nav {
  align-self: stretch;
}

.desktop-nav a,
.footer__bottom nav a {
  text-transform: none;
}

@media (max-width: 1180px) {
  .mobile-menu nav a,
  .mobile-submenu > summary {
    text-transform: none;
  }
}

/* ---------- Página Exames: lista vertical ---------- */
.legacy-content .exam-list {
  display: grid;
  gap: 0.85rem;
  margin: 2.25rem 0 1rem;
  counter-reset: exam;
}

.medical-article-v3 .legacy-content .exam-list a.exam-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.15rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid #dfe7f0;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  font-weight: 400;
  text-decoration: none;
  box-shadow: 0 8px 22px rgb(38 64 101 / 5%);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.medical-article-v3 .legacy-content .exam-list a.exam-item::before {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f0ff;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 800;
  counter-increment: exam;
  content: counter(exam, decimal-leading-zero);
}

.medical-article-v3 .legacy-content .exam-list a.exam-item::after {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f5fa;
  color: var(--blue);
  font-size: 1.05rem;
  content: "→";
  transition: background 180ms ease, color 180ms ease;
}

.medical-article-v3 .legacy-content .exam-list a.exam-item:hover,
.medical-article-v3 .legacy-content .exam-list a.exam-item:focus-visible {
  border-color: rgb(85 151 245 / 65%);
  background: #f7f9fc;
  box-shadow: 0 14px 30px rgb(38 64 101 / 10%);
}

.medical-article-v3 .legacy-content .exam-list a.exam-item:hover::after,
.medical-article-v3 .legacy-content .exam-list a.exam-item:focus-visible::after {
  background: var(--blue);
  color: #fff;
}

.exam-item__text {
  display: grid;
  gap: 0.25rem;
}

.medical-article-v3 .exam-item__text strong {
  color: #213f6d;
  font-size: 1.12rem;
  line-height: 1.3;
}

.exam-item__text > span {
  color: #56616b;
  font-size: 0.97rem;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .medical-article-v3 .legacy-content .exam-list a.exam-item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1rem;
  }

  .medical-article-v3 .legacy-content .exam-list a.exam-item::before {
    width: 2.3rem;
    height: 2.3rem;
    align-self: start;
    font-size: 0.85rem;
  }

  .medical-article-v3 .legacy-content .exam-list a.exam-item::after {
    display: none;
  }

  .medical-article-v3 .exam-item__text strong {
    font-size: 1.04rem;
  }
}

/* ---------- Card de catarata com dois links ---------- */
.treatment-card footer.treatment-card__links {
  display: grid;
}

.treatment-card__links .treatment-card__link {
  min-height: 4.6rem;
  padding-block: 1.1rem;
}

.treatment-card__links .treatment-card__link + .treatment-card__link {
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.treatment-card__links .treatment-card__link > span:last-child {
  text-align: right;
}

@media (max-width: 520px) {
  .treatment-card__links .treatment-card__link {
    min-height: 4.2rem;
  }
}
