/* ==========================================================================
   Dr. Gabriel Queijo — Psiquiatria
   Editorial refined design system
   ========================================================================== */

:root {
  /* Palette */
  --forest: #1e3d38;
  --forest-deep: #15302c;
  --forest-soft: #2a5048;
  --cream: #f5f1ea;
  --cream-warm: #efe9de;
  --cream-deep: #e8e0d1;
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --ink-muted: #6b6b6b;
  --gold: #b08d57;
  --gold-soft: #c9a876;
  --white: #ffffff;
  --whatsapp: #25d366;

  /* Typography */
  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --container-wide: 1400px;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 9rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --transition-base: 280ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Aplicar overflow-x em html (e não só body) evita o bug clássico
     de iOS Safari onde `position: fixed` em descendentes vaza durante
     o scroll quando há overflow-x no body. */
  overflow-x: hidden;
  /* Largura máxima evita o "rebound" horizontal causado por elementos
     fixos com transform: translateX(100%) no menu mobile. */
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  /* min-height garante que o footer/CTA não pulem se a página for curta */
  min-height: 100vh;
  min-height: 100dvh;
}

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

a {
  color: var(--forest);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--gold);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--forest);
  color: var(--cream);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 500;
}

h4 {
  font-size: 1.2rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--forest);
  letter-spacing: 0.01em;
}

p {
  margin-bottom: 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

em {
  font-style: italic;
  color: var(--ink);
}

strong {
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--cream {
  background: var(--cream);
}

.section--cream-warm {
  background: var(--cream-warm);
}

.section--forest {
  background: var(--forest);
  color: var(--cream);
}

.section--forest h1,
.section--forest h2,
.section--forest h3 {
  color: var(--cream);
}

.section-heading {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-heading__eyebrow {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--forest);
  margin-bottom: 1.75rem;
  opacity: 0.6;
}

.section-forest .section-heading__eyebrow {
  background: var(--gold);
  opacity: 1;
}

.section-heading h2 {
  margin-bottom: 1rem;
}

.section-heading p {
  max-width: 640px;
  margin-inline: auto;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.header.is-scrolled {
  border-bottom-color: rgba(30, 61, 56, 0.08);
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.nav__brand small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-top: 2px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  list-style: none;
}

.nav__link {
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 0.5rem 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link.is-active {
  color: var(--forest);
}

.nav__cta {
  padding: 0.7rem 1.5rem !important;
  background: var(--forest);
  color: var(--cream) !important;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background var(--transition-base), transform var(--transition-base);
}

.nav__cta:hover {
  background: var(--forest-deep);
  transform: translateY(-1px);
}

.nav__cta::after {
  display: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  position: relative;
  z-index: 120; /* acima do menu mobile aberto (110) */
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav__toggle span {
  width: 26px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--forest);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--forest-deep);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(30, 61, 56, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
}

.btn--ghost:hover {
  background: var(--forest);
  color: var(--cream);
}

.btn--cream {
  background: var(--cream);
  color: var(--forest);
}

.btn--cream:hover {
  background: var(--white);
  color: var(--forest);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1.15rem 2.75rem;
  font-size: 1.05rem;
}

.btn--xl {
  padding: 1.4rem 3.5rem;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.015em;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background: var(--cream);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 61, 56, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero__image {
  position: relative;
}

.hero__image img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 30px 60px -25px rgba(30, 61, 56, 0.3);
  margin-inline: auto;
}

.hero__image::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid var(--forest);
  border-radius: 2px;
  transform: translate(-24px, 24px);
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

.hero__credentials {
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.hero__title {
  margin-bottom: 0.5rem;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 0.25rem;
  letter-spacing: 0.005em;
}

.hero__lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.hero__note {
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Values cards (Abordagem)
   ========================================================================== */

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.value-card {
  position: relative;
  padding: 2.75rem 2rem;
  background: var(--white);
  border: 1px solid rgba(30, 61, 56, 0.12);
  border-radius: 4px;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(30, 61, 56, 0.15);
  border-color: rgba(30, 61, 56, 0.25);
}

.value-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  color: var(--forest);
}

.value-card__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.25;
}

.value-card h3 {
  color: var(--forest);
  margin-bottom: 0.75rem;
  font-weight: 500;
  font-size: 1.3rem;
}

.value-card p {
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Conditions list
   ========================================================================== */

.conditions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem 3rem;
  max-width: 920px;
  margin-inline: auto;
}

.condition-item {
  position: relative;
  padding: 1.1rem 0 1.1rem 1.5rem;
  font-size: 1.05rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(30, 61, 56, 0.1);
  transition: padding-left var(--transition-base), color var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.condition-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--forest);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-base), background var(--transition-base);
}

.condition-item:hover {
  color: var(--forest);
  padding-left: 1.75rem;
}

.condition-item:hover::before {
  background: var(--gold);
  transform: translateY(-50%) scale(1.4);
}

.condition-item__arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  color: var(--forest);
}

.condition-item:hover .condition-item__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   About section
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-grid__image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  max-width: 380px;
  border-radius: 2px;
  box-shadow: 0 20px 50px -20px rgba(30, 61, 56, 0.25);
}

.about-grid__content {
  max-width: 620px;
}

.about-grid__content h2 {
  margin-bottom: 1.75rem;
}

.about-grid__content p {
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

/* ==========================================================================
   Trajetória (Sobre page)
   ========================================================================== */

.page-header {
  background: var(--cream-warm);
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.page-header__image {
  width: 160px;
  height: 160px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 15px 35px -15px rgba(30, 61, 56, 0.3);
}

.page-header__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header__subtitle {
  font-size: 1.1rem;
  color: var(--forest);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.page-header__credentials {
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.prose {
  max-width: 680px;
  margin-inline: auto;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.prose p {
  margin-bottom: 1.35em;
}

.prose p:first-letter {
  /* intentionally not styled — keep clean */
}

.prose h2 {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.prose--highlight {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--forest);
  text-align: center;
  padding: 2rem 0;
  line-height: 1.5;
}

.timeline {
  list-style: none;
  max-width: 680px;
  margin-inline: auto;
}

.timeline li {
  position: relative;
  padding: 1.25rem 0 1.25rem 2.5rem;
  border-bottom: 1px solid rgba(30, 61, 56, 0.1);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.75rem;
  align-items: baseline;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--forest);
  border-radius: 50%;
  transform: translateY(-50%);
}

.timeline__year {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--forest);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0.01em;
}

@media (max-width: 560px) {
  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}
/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  text-align: center;
  background: var(--cream);
}

.final-cta__content {
  max-width: 580px;
  margin-inline: auto;
}

.final-cta h2 {
  margin-bottom: 1.25rem;
}

.final-cta p {
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--forest);
  color: var(--cream);
  padding-block: 2.5rem 2rem;
  font-size: 0.9rem;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  line-height: 1.6;
}

.footer__line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  opacity: 0.9;
}

.footer__line em {
  font-style: italic;
  color: rgba(245, 241, 234, 0.8);
}

.footer__legal {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 241, 234, 0.15);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.82rem;
  opacity: 0.75;
}

.footer__legal a {
  color: var(--cream);
  opacity: 0.9;
  transition: opacity var(--transition-base);
}

.footer__legal a:hover {
  opacity: 1;
  color: var(--gold-soft);
}

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  /* translateZ(0) força layer GPU dedicada — solução clássica para
     position:fixed estável em iOS Safari. Sem isso, o botão pode
     "saltar" durante o scroll quando há overflow-x: hidden no body. */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              opacity var(--transition-base);
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--whatsapp);
  opacity: 0;
  animation: pulse 2.4s var(--ease-out) infinite;
  z-index: -1;
}

.wa-float:hover {
  transform: scale(1.08);
  color: var(--white);
  box-shadow: 0 15px 35px -5px rgba(37, 211, 102, 0.6);
}

.wa-float svg {
  width: 32px;
  height: 32px;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  70% {
    opacity: 0;
    transform: scale(1.5);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumb {
  padding: 1.25rem 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(30, 61, 56, 0.08);
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--ink-muted);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--ink-muted);
}

.breadcrumb a:hover {
  color: var(--forest);
}

.breadcrumb li:last-child {
  color: var(--forest);
  font-weight: 500;
}

/* ==========================================================================
   Condition page
   ========================================================================== */

.article-header {
  background: var(--cream-warm);
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(30, 61, 56, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.article-header__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 1.25rem;
}

.article-header h1 {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.article-header__lead {
  max-width: 640px;
  margin-inline: auto;
  font-size: 1.1rem;
  color: var(--ink-soft);
  font-style: italic;
}

.article {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 5rem);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.article h2 {
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  position: relative;
}

.article h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--forest);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--forest);
}

.article p {
  margin-bottom: 1.3em;
}

.article ul {
  list-style: none;
  margin-bottom: 1.5em;
  padding-left: 0;
}

.article ul li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
}

.article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1em;
  width: 8px;
  height: 1px;
  background: var(--forest);
  opacity: 0.5;
}

.callout {
  padding: 2rem 2.25rem;
  background: var(--cream-warm);
  border-left: 3px solid var(--forest);
  margin: 2.5rem 0;
  font-size: 1rem;
  border-radius: 2px;
}

.callout strong {
  color: var(--forest);
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

/* FAQ */
.faq {
  margin-top: 3rem;
}

.faq__item {
  border-bottom: 1px solid rgba(30, 61, 56, 0.15);
}

.faq__item summary {
  padding: 1.5rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition-base);
}

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

.faq__item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--forest);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item summary:hover {
  color: var(--forest);
}

.faq__item[open] summary {
  color: var(--forest);
}

.faq__answer {
  padding-bottom: 1.5rem;
  color: var(--ink-soft);
  line-height: 1.75;
  animation: faqOpen 300ms var(--ease-out);
}

@keyframes faqOpen {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Related conditions on condition page */
.related {
  background: var(--cream-warm);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.related h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.3rem;
  color: var(--forest);
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin-inline: auto;
}

.related__grid--two-cols {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
}

@media (max-width: 640px) {
  .related__grid--two-cols {
    grid-template-columns: 1fr;
  }
}

.related__card {
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border: 1px solid rgba(30, 61, 56, 0.12);
  border-radius: 4px;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
}

.related__card:hover {
  transform: translateY(-3px);
  border-color: var(--forest);
  box-shadow: 0 15px 30px -15px rgba(30, 61, 56, 0.2);
  color: var(--forest);
}

.related__card span {
  font-weight: 500;
  font-size: 0.98rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials {
  background: var(--forest);
  color: var(--cream);
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(176, 141, 87, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.testimonials h2 {
  color: var(--cream);
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials .section-heading__eyebrow {
  background: var(--gold-soft);
  opacity: 1;
}

.testimonials .section-heading p {
  color: rgba(245, 241, 234, 0.75);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin-inline: auto;
}

.testimonial {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(245, 241, 234, 0.18);
  border-radius: 4px;
  background: rgba(245, 241, 234, 0.03);
  position: relative;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.testimonial:hover {
  border-color: rgba(201, 168, 118, 0.4);
  background: rgba(245, 241, 234, 0.05);
}

.testimonial__mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.7;
  color: var(--gold-soft);
  opacity: 0.5;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.testimonial p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(245, 241, 234, 0.65);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.testimonial-note {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(245, 241, 234, 0.5);
  margin-top: 2.5rem;
  font-style: italic;
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.6;
}

/* ==========================================================================
   Cookies banner
   ========================================================================== */

.cookies {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 100px;
  max-width: 560px;
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.25);
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  transform: translateY(120%);
  transition: transform 450ms var(--ease-out);
}

.cookies.is-visible {
  transform: translateY(0);
}

.cookies p {
  margin: 0;
  flex: 1;
}

.cookies a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookies button {
  padding: 0.5rem 1.25rem;
  background: var(--forest);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--transition-base);
}

.cookies button:hover {
  background: var(--forest-deep);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 120ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 360ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 480ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 600ms; opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__image {
    max-width: 320px;
    margin-inline: auto;
  }

  .hero__image::before {
    display: none;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__cta {
    align-items: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-grid__image {
    max-width: 280px;
    margin-inline: auto;
  }

  .about-grid__content {
    margin-inline: auto;
  }
}

@media (max-width: 780px) {
  .nav__toggle {
    display: flex;
  }

  /* =========================================================
     Menu mobile — correção definitiva contra "vazamento"
     durante a rolagem em iOS Safari e navegadores mobile.
     Combinação testada de: visibility + pointer-events + transform,
     com fallback de translate3d para forçar layer GPU.
     ========================================================= */
  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh; /* dynamic viewport: lida com a barra de URL do iOS */
    width: min(82%, 360px);
    max-width: 360px;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    /* translate3d força composição em layer GPU separada — evita repaint
       inconsistente durante o scroll no Safari iOS */
    transform: translate3d(100%, 0, 0);
    transition: transform 380ms var(--ease-in-out),
                visibility 0s linear 380ms;
    box-shadow: -20px 0 40px -10px rgba(30, 61, 56, 0.2);
    /* Quando fechado, o menu deve estar completamente inerte:
       invisível, sem capturar eventos, e fora do fluxo de leitura */
    visibility: hidden;
    pointer-events: none;
    /* z-index alto para garantir que, quando aberto, fique acima do header (z-index: 100) */
    z-index: 110;
    will-change: transform;
    /* Impede que o conteúdo do menu seja "atravessado" por outros elementos */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Preserva o estado renderizado pelo GPU mesmo quando off-screen */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .nav__menu.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    /* Quando abrindo, a visibility precisa entrar imediatamente */
    transition: transform 380ms var(--ease-in-out),
                visibility 0s linear 0s;
  }

  .nav__link {
    font-size: 1.2rem;
  }

  .nav__cta {
    margin-top: 1rem;
  }

  .cookies {
    left: 10px;
    right: 10px;
    bottom: 10px;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
  }

  /* =========================================================
     WhatsApp flutuante — z-index acima do menu fechado
     porém abaixo do menu aberto, para não competir com o overlay
     ========================================================= */
  .wa-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    /* z-index propositadamente menor do que .nav__menu.is-open (100)
       e maior do que o header padrão. Quando o menu está fechado
       (pointer-events: none), o WhatsApp permanece interagível. */
    z-index: 95;
  }

  /* Esconde o WhatsApp flutuante enquanto o menu mobile está aberto,
     para evitar sobreposição visual com o painel do menu.
     Usa classe no body (definida pelo JS) para máxima compatibilidade. */
  body.menu-open .wa-float,
  body:has(.nav__menu.is-open) .wa-float {
    opacity: 0;
    pointer-events: none;
    transform: translateZ(0) scale(0.85);
  }

  .wa-float svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 560px) {
  .conditions {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .nav__brand small {
    font-size: 0.62rem;
  }

  .value-card {
    padding: 2.25rem 1.5rem;
  }

  .footer__line {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* ==========================================================================
   Google Reviews card
   ========================================================================== */

.google-reviews-card {
  display: block;
  margin: 3rem auto 0;
  max-width: 480px;
  background: var(--cream);
  border: 1px solid rgba(176, 141, 87, 0.3);
  border-radius: 14px;
  padding: 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(30, 61, 56, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.google-reviews-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30, 61, 56, 0.12);
  border-color: var(--gold);
  color: inherit;
}

.google-reviews-card__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.google-reviews-card__stars svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.google-reviews-card__text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.google-reviews-card__text strong {
  color: var(--forest);
  font-weight: 600;
}

.google-reviews-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--forest);
  font-size: 0.98rem;
  font-weight: 500;
  margin-top: 0.5rem;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.google-reviews-card__link:hover {
  color: var(--gold);
  border-bottom-color: var(--forest);
}

.google-reviews-card__link svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Página "A Consulta": header e grid de cards informativos
   ========================================================================== */

.page-header__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}

.consulta-intro {
  max-width: 700px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.consulta-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.consulta-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.consulta-info-card {
  background: #fff;
  border: 1px solid rgba(30, 61, 56, 0.1);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.consulta-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(30, 61, 56, 0.08);
  border-color: rgba(176, 141, 87, 0.35);
}

.consulta-info-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream-warm);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.consulta-info-card__icon svg {
  width: 24px;
  height: 24px;
}

.consulta-info-card h2 {
  font-size: 1.4rem;
  color: var(--forest);
  margin-bottom: 1rem;
  font-weight: 500;
}

.consulta-info-card p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.consulta-info-card p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Closing note (parágrafo de fechamento antes do CTA final, nas páginas de transtornos)
   ========================================================================== */

.closing-note {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: var(--cream);
}

.closing-note .container {
  max-width: 720px;
}

.closing-note p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
  line-height: 1.55;
  text-align: center;
  letter-spacing: 0.005em;
}

