/* ---------- Tokens ---------- */
:root {
  --color-dark: #0E3A4A;
  --color-dark-soft: #164a5d;
  --color-bg: #F7F3EC;
  --color-bg-alt: #EFE8DA;
  --color-text: #1A1A1A;
  --color-cta: #128C4A;
  --color-cta-hover: #0e6f3b;
  --color-accent: #B9653A;
  --color-white: #FFFFFF;

  --font-heading: "Archivo", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius: 14px;
  --max-width: 1120px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-2); }
ul, ol { margin: 0; padding: 0; list-style: none; }
blockquote { margin: 0; }

@media (min-width: 768px) {
  body { font-size: 19px; }
}

/* ---------- Layout helpers ---------- */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-2);
}
.section__head { max-width: 720px; margin-bottom: var(--space-3); }
.section__head h2 { color: var(--color-dark); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 26px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .2s ease, transform .1s ease;
}
.btn:active { transform: scale(0.98); }
.btn--cta {
  background: var(--color-cta);
  color: var(--color-white);
}
.btn--cta:hover { background: var(--color-cta-hover); }
.btn--outline {
  background: transparent;
  border-color: var(--color-dark);
  color: var(--color-dark);
  margin-top: var(--space-2);
}
.btn--outline:hover { background: var(--color-dark); color: var(--color-white); }

/* ---------- Photo frame (fundo visível durante o carregamento da imagem) ---------- */
.ph {
  position: relative;
  aspect-ratio: var(--ph-ratio, 4/5);
  background: linear-gradient(150deg, var(--color-dark) 0%, var(--color-dark-soft) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.ph--photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ph--doctor img { object-position: center 22%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--color-dark); color: var(--color-bg); }
.topbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.topbar__brand { display: flex; flex-direction: column; font-family: var(--font-heading); font-size: 15px; }
.topbar__sub { font-family: var(--font-body); font-weight: 400; font-size: 12px; opacity: .8; }
.topbar__phone {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  min-height: 48px;
  display: flex;
  align-items: center;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-3);
}
/* No celular a foto vem depois da copy; no desktop o row-reverse já cuida da ordem. */
.hero .ph--hero { order: 2; }
.hero__content { order: 1; }
.hero__content .btn { width: 100%; }
.badge {
  display: inline-block;
  background: var(--color-bg-alt);
  color: var(--color-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  padding: 8px 16px;
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
}
.hero h1 { color: var(--color-dark); font-size: 2rem; }
.hero__headline-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--color-dark-soft);
  margin-top: var(--space-1);
}
.hero__sub { font-size: 1.05rem; }
.hero__credibility { font-size: 15px; font-weight: 600; color: var(--color-accent); margin-top: 0; }

@media (min-width: 900px) {
  .hero { flex-direction: row-reverse; align-items: center; padding-top: var(--space-5); }
  .hero .ph--hero { order: 0; }
  .hero__content { order: 0; flex: 1; }
  .hero__content .btn { width: auto; }
  .ph--hero { flex: 1; max-width: 460px; }
  .hero h1 { font-size: 2.75rem; }
  .btn__break { display: none; }
}

/* ---------- Credibility ---------- */
.credibility { padding-top: var(--space-4); padding-bottom: var(--space-3); }
.credibility__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.credibility__grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-2);
  text-align: center;
  overflow-wrap: break-word;
}
.credibility__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--color-accent);
}
.credibility__num--text { font-size: 1.05rem; }
.credibility__label {
  font-size: 13px;
  line-height: 1.35;
  color: var(--color-dark);
}
.credibility__cro {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--color-dark);
  opacity: .65;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .credibility__grid { grid-template-columns: repeat(4, 1fr); }
  .credibility__num { font-size: 1.45rem; }
  .credibility__num--text { font-size: 1.2rem; }
  .credibility__label { font-size: 14px; }
}

/* ---------- Cards (dor) ---------- */
.pain__cards {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-3);
  border-left: 4px solid var(--color-accent);
}
.pain__cards .card__icon {
  display: block;
  width: 30px;
  height: 30px;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.pain__cards .card__title {
  display: block;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.pain__cards .card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}
.pain__closing { font-weight: 600; color: var(--color-dark); margin-top: var(--space-2); }
.pain__cta { margin-top: var(--space-3); width: 100%; }
@media (min-width: 768px) {
  .pain__cards { grid-template-columns: repeat(3, 1fr); }
  .pain__cards .card__title { font-size: 1.1rem; }
  .pain__cta { width: auto; }
}

/* ---------- Protocol ---------- */
.protocol { display: grid; }
.protocol h2 { color: var(--color-dark); margin-bottom: 22px; }
.protocol__intro { margin-bottom: 22px; }
.protocol__intro p { font-size: 18px; line-height: 1.5; margin: 0 0 14px; }
.protocol__intro p:last-child { margin-bottom: 0; }
.protocol__photo { --ph-ratio: 4/5; margin-bottom: 22px; }
.protocol__highlight {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-bottom: 22px;
}
.protocol__highlight h3 {
  color: var(--color-dark);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.protocol__highlight p { font-size: 15px; line-height: 1.5; margin: 0; }
.protocol__closing { font-weight: 400; color: var(--color-dark); font-size: 18px; line-height: 1.5; margin-bottom: 22px; }
.protocol__cta { width: 100%; }
@media (min-width: 900px) {
  .protocol {
    grid-template-columns: 42fr 58fr;
    column-gap: 36px;
    align-items: center;
  }
  .protocol > .ph { grid-column: 1; grid-row: 1 / span 5; margin-bottom: 0; }
  .protocol > *:not(.ph) { grid-column: 2; }
  .protocol__cta { width: auto; justify-self: start; }
}
@media (min-width: 768px) {
  .protocol__intro p, .protocol__closing { font-size: 19px; }
}

/* ---------- Steps ---------- */
.steps__list { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
.step {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step__title {
  display: block;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 11px;
}
.step p { font-size: 18px; line-height: 1.5; color: var(--color-text); margin: 0; }
.steps__closing { font-weight: 600; color: var(--color-dark); margin-top: var(--space-4); }
.steps__cta { margin-top: var(--space-3); width: 100%; }
@media (min-width: 768px) {
  .steps__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .steps__list { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .steps__cta { width: auto; }
}

/* ---------- Doctor ---------- */
.doctor {
  background: var(--color-dark);
  color: var(--color-bg);
  max-width: none;
  display: grid;
}
.doctor h2 { color: var(--color-white); padding: 0 var(--space-2); margin-bottom: 22px; }
.doctor__media { max-width: 380px; margin: 0 auto 24px; }
.doctor__text { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-2); }
.doctor__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-white);
  margin-bottom: 4px;
}
.doctor__role { font-size: 14px; line-height: 1.5; color: var(--color-bg); opacity: .85; margin-bottom: 20px; }
.doctor__text p:not(.doctor__name):not(.doctor__role) { margin: 0 0 16px; }
.doctor__text p:last-of-type { margin-bottom: 0; }
.doctor__cta { margin-top: 24px; width: 100%; }
@media (min-width: 900px) {
  .doctor {
    grid-template-columns: 38fr 62fr;
    column-gap: 36px;
    align-items: center;
    max-width: var(--max-width);
    padding: var(--space-5) var(--space-2);
    border-radius: var(--radius);
    margin: var(--space-4) auto;
  }
  .doctor h2 { grid-column: 2; padding: 0; }
  .doctor__media { grid-column: 1; grid-row: 1 / span 2; margin: 0; max-width: none; }
  .doctor__text { grid-column: 2; padding: 0; }
  .doctor__cta { width: auto; }
}

/* ---------- Objections ---------- */
.objections { padding-bottom: 0; }
.objections__list { display: grid; gap: var(--space-2); }
.objection {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.objection strong { display: block; color: var(--color-dark); font-family: var(--font-heading); font-weight: 700; margin-bottom: 14px; }
.objection p { font-size: 18px; line-height: 1.5; color: var(--color-text); margin: 0; }
@media (min-width: 768px) {
  .objections__list { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- CTA mid ---------- */
.cta-mid {
  text-align: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  max-width: calc(var(--max-width) - 32px);
  margin-top: 36px;
  padding: 26px var(--space-2);
}
.cta-mid h2 { color: var(--color-dark); max-width: 560px; margin: 0 auto 12px; }
.cta-mid__sub { max-width: 480px; margin: 0 auto 22px; color: var(--color-dark); opacity: .85; }
.cta-mid__cta { width: 100%; }
@media (min-width: 768px) {
  .cta-mid { padding: 38px var(--space-2); }
  .cta-mid__cta { width: auto; }
}

/* ---------- Avaliações do Google ---------- */
.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;
}

.reviews { background: var(--color-bg); }
.reviews__score {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-dark);
  margin-top: var(--space-2);
  margin-bottom: 2px;
}
.reviews__score-value { font-size: 1.5rem; }
.reviews__score-label { font-size: 14px; font-weight: 600; color: var(--color-dark); margin-bottom: 4px; }
.reviews__score-total { font-size: 14px; color: var(--color-dark); opacity: .75; margin-bottom: 0; }

.reviews__list {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin: var(--space-3) 0;
  padding: 0;
}
.review-card {
  background: var(--color-white);
  border: 1px solid rgba(14, 58, 74, 0.08);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(14, 58, 74, 0.06);
  padding: var(--space-3);
}
.review-card__author { display: flex; align-items: center; gap: 10px; }
.review-card__avatar {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-card__name { font-size: 15px; font-weight: 600; color: var(--color-dark); }
.review-card__stars { display: flex; gap: 4px; margin-top: 12px; }
.review-card__stars svg { width: 18px; height: 18px; fill: var(--color-accent); }
.review-card__text { font-size: 18px; line-height: 1.5; color: var(--color-text); margin: 12px 0 0; }

.reviews__footer { display: flex; }
.reviews__link {
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: underline;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.reviews a:focus-visible {
  outline: 3px solid var(--color-dark);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .reviews__list { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Location ---------- */
.location__card {
  display: grid;
  background: var(--color-white);
  border: 1px solid rgba(14, 58, 74, 0.1);
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(14, 58, 74, 0.08);
  overflow: hidden;
}
.location__info { padding: 24px; }
.location__info h2 { color: var(--color-dark); margin-bottom: 10px; }
.location__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}
.location__row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: var(--space-2); }
.location__row:last-child { margin-bottom: 0; }
.location__icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--color-accent); }
.location__address, .location__hours { margin: 0; color: var(--color-text); line-height: 1.5; }
.location__label { font-weight: 600; color: var(--color-dark); margin: 0 0 2px; }
.location__map { position: relative; }
.location__map iframe { display: block; width: 100%; height: 280px; border: 0; }
.location__cta { padding: 24px; }
.location__btn { width: 100%; margin-top: 0; }
@media (min-width: 900px) {
  .location__card { grid-template-columns: 40fr 60fr; min-height: 360px; }
  .location__info { grid-column: 1; padding: 32px; }
  .location__map { grid-column: 2; grid-row: 1 / span 2; }
  .location__map iframe { height: 100%; min-height: 360px; }
  .location__cta { grid-column: 1; padding: 0 32px 32px; }
  .location__btn { width: auto; }
}

/* ---------- FAQ ---------- */
.faq { padding-left: 20px; padding-right: 20px; }
.faq__inner { max-width: 880px; margin: 0 auto; }
.faq__inner h2 { color: var(--color-dark); margin-bottom: var(--space-3); }
.faq__list { display: grid; gap: 10px; }
.faq__item {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
}
.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-dark);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 48px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent);
  flex-shrink: 0;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { font-size: 17px; line-height: 1.5; color: var(--color-text); margin: var(--space-1) 0 0; }
.faq__item summary:focus-visible {
  outline: 3px solid var(--color-dark);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Closing ---------- */
.closing__card {
  display: flex;
  flex-direction: column;
  background: var(--color-dark);
  border-radius: 24px;
  padding: 24px;
  gap: var(--space-3);
}
.closing__media img { transform: scale(1.08); }
.closing__text h2 { color: var(--color-white); margin-bottom: 20px; }
.closing__text p:not(.closing__note) { color: var(--color-bg); opacity: .92; line-height: 1.5; margin: 0 0 24px; }
.closing__cta { width: 100%; margin-bottom: 14px; }
.closing__note { font-size: 14px; color: var(--color-bg); opacity: .75; margin: 0; }
/* No celular a foto vem depois da copy inteira; no desktop ela volta para a esquerda. */
.closing__media { order: 2; }
.closing__text { order: 1; }
@media (min-width: 900px) {
  .closing__card { flex-direction: row; align-items: center; padding: 40px; gap: 36px; }
  .closing__media { order: 0; flex: 0 0 36%; max-width: 36%; }
  .closing__text { order: 0; flex: 1; max-width: 600px; }
  .closing__cta { width: auto; }
}

/* ---------- Footer ---------- */
.footer { background: var(--color-dark); color: var(--color-bg); }
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4) var(--space-2);
  font-size: 14px;
}
.footer__inner p:not(.footer__disclaimer) { margin-bottom: var(--space-1); opacity: .9; }
.footer__disclaimer { margin-bottom: var(--space-1); opacity: .7; max-width: 640px; }
.footer a { text-decoration: underline; }
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.footer__social:hover { text-decoration: underline; }
.footer__social-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 10px var(--space-2);
  background: var(--color-white);
  box-shadow: 0 -4px 16px rgba(0,0,0,.12);
  transform: translateY(100%);
  transition: transform .3s ease;
  z-index: 50;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__btn { display: flex; width: 100%; }

@media (min-width: 900px) {
  .sticky-cta {
    left: auto;
    right: var(--space-3);
    bottom: var(--space-3);
    width: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .sticky-cta__btn { box-shadow: 0 6px 20px rgba(18,140,74,.4); }
}
