/* Prisma Especialidades — camada responsiva e de comportamento sobre o desenho do Claude Design.
   O visual vem dos estilos inline portados do Design; aqui entra só o que o mockup não tinha:
   menu mobile, ajustes de tela pequena, acessibilidade e o acordeao do FAQ. */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body { margin: 0; font-family: 'Poppins', sans-serif; color: #2b2b2b; background: #ffffff; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; }
a { color: #00B593; text-decoration: none; }
a:hover { color: #008f75; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #00465F; color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0; z-index: 300; }
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 2px solid #00B593; outline-offset: 2px; }

/* ============ NAV ============ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: transparent; transition: background 0.3s ease, box-shadow 0.3s ease; }
.nav--solid, .nav--scrolled { background: #ffffff; box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav__inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 46px; width: auto; display: block; }
.nav__logo .nav__logo-dark { display: none; }
.nav--solid .nav__logo .nav__logo-dark, .nav--scrolled .nav__logo .nav__logo-dark { display: block; }
.nav--solid .nav__logo .nav__logo-light, .nav--scrolled .nav__logo .nav__logo-light { display: none; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link { font-size: 14.5px; font-weight: 400; color: #E7E7E7; }
.nav__link:hover { color: #ffffff; }
.nav--solid .nav__link, .nav--scrolled .nav__link { color: #00465F; }
.nav--solid .nav__link:hover, .nav--scrolled .nav__link:hover { color: #00B593; }
.nav__link--active { font-weight: 500; }
.nav--solid .nav__link--active { border-bottom: 2px solid #00B593; padding-bottom: 2px; }
.nav__cta { background: #00B593; color: #ffffff; padding: 11px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav__cta:hover { background: #009c80; color: #ffffff; }

/* hamburger */
.nav__burger { display: none; background: none; border: none; padding: 10px; cursor: pointer; }
.nav__burger span { display: block; width: 24px; height: 2px; background: #E7E7E7; margin: 5px 0; border-radius: 2px; transition: background 0.3s ease; }
.nav--solid .nav__burger span, .nav--scrolled .nav__burger span { background: #00465F; }

.mobile-menu { position: fixed; inset: 0; z-index: 90; background: #00465F; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.mobile-menu--open { opacity: 1; visibility: visible; }
.mobile-menu a { font-size: 20px; font-weight: 500; color: #E7E7E7; }
.mobile-menu .nav__cta { font-size: 16px; padding: 14px 28px; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}

/* ============ FAQ (details) ============ */
.faq details { border-bottom: 1px solid #e4e4e2; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; cursor: pointer; font-size: 16.5px; font-weight: 500; color: #00465F; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: #00B593; font-size: 24px; font-weight: 300; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; }
.faq .faq__body { padding: 0 4px 24px; font-size: 15.5px; font-weight: 300; color: #4a4a4a; line-height: 1.7; max-width: 700px; }

/* ============ MOBILE ============ */
@media (max-width: 720px) {
  .secao { padding-top: 64px !important; padding-bottom: 64px !important; }
  .grid-2col { gap: 36px !important; }
  .lista-especialidades > div { grid-template-columns: 56px 1fr !important; padding-top: 40px !important; padding-bottom: 40px !important; }
  .hero-pad { padding-top: 104px !important; padding-bottom: 56px !important; }
  .pagina-topo { padding-top: 140px !important; padding-bottom: 56px !important; }
}

/* ancora aterrissa abaixo da nav fixa */
[id] { scroll-margin-top: 84px; }

/* ============ Privacidade: botao de oposicao ============ */
.optout:hover, .optout:focus-visible { background: #00465F !important; color: #ffffff !important; }
