/* Readability baseline for an older audience. */
:root {
  --text-body-lg: 1.15rem;
}

.principle-list p,
.planning-principles p,
.technique-line,
.safety-pillars p,
.lead-form .lead-form__consent span,
.lead-form small,
.cookie-banner div > p:last-child,
.cookie-option p,
.legal-content__updated {
  font-size: 1rem;
}

.eyebrow,
.arrow-link,
.cta__label,
.menu-panel__header p,
.menu-panel nav a span,
.menu-panel__cta,
.hero-benefit p,
.planning-principles strong,
.safety-pillars strong,
.doctor-facts dt,
.whatsapp-link,
.clinic-address__label,
.clinic-address a,
.lead-form__title,
.lead-form label span,
.lead-form button,
.cookie-banner__eyebrow,
.cookie-banner__actions button,
.cookie-modal__actions button,
.legal-header > a:last-child,
.legal-content section > button,
.legal-table strong,
.site-footer > p,
.site-footer > p a,
.site-footer > p button {
  font-size: .65rem;
}

.hero__location {
  font-size: 1rem;
}

.site-footer span {
  font-size: .85rem;
}

@media (min-width: 821px) {
  .site-footer > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.planning__copy .planning-principles li > span {
  font-size: 2rem;
}

.planning__copy .planning-principles strong {
  font-size: 1rem;
}

.planning__copy .planning-principles p {
  font-size: .95rem;
}

.faq-answer p {
  font-size: 1.1rem;
}

/* Tema escuro para a apresentação da Dra. Esther na página inicial. */
.section.doctor {
  background: var(--color-charcoal);
  color: var(--text-light);
}

.doctor .section-lead {
  color: var(--text-light-muted);
}

.doctor-facts,
.doctor-facts > div {
  border-color: var(--line-on-dark);
}

.doctor-facts dd {
  border-left-color: var(--line-on-dark);
  color: var(--text-light-muted);
}

.doctor .arrow-link {
  border-color: var(--line-on-dark);
  color: var(--text-light);
}

/* These wrappers do not change the desktop layout. */
.hero__headline,
.hero__details {
  display: contents;
}

@media (max-width: 820px) {
  .safety-pillars li:first-child {
    padding-left: 1.3rem;
  }

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

  /* The image spans only the header and headline rows, never the details. */
  .hero__stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 104px auto auto;
    min-height: 0;
    background: var(--color-charcoal);
  }

  .hero__stage::before,
  .hero__stage::after {
    position: absolute;
    grid-area: 1 / 1 / 3 / 2;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  .hero__stage::before {
    content: "";
    background: url("../images/hero-bg-desktop-v5.jpg") 61% center / cover no-repeat;
  }

  .hero__stage::after {
    background: linear-gradient(180deg, rgba(15,15,14,.18) 0%, rgba(15,15,14,.08) 48%, rgba(15,15,14,.58) 100%);
  }

  .hero__stage > .site-header {
    grid-area: 1 / 1;
  }

  .hero__content,
  .hero__copy {
    display: contents;
  }

  .hero__headline {
    position: relative;
    z-index: 1;
    grid-area: 2 / 1;
    display: flex;
    align-items: flex-end;
    min-height: calc(clamp(38rem, 145vw, 48rem) - 104px);
    padding: 0 var(--gutter) 1.25rem;
  }

  .hero__details {
    position: relative;
    z-index: 1;
    grid-area: 3 / 1;
    display: block;
    margin: 0;
    padding: 1.75rem var(--gutter) 3rem;
    background: var(--color-charcoal);
  }

  .hero__details .hero__lead {
    margin-top: 0;
  }

  .section-lead {
    font-size: 1.08rem;
  }

  .hero__lead {
    font-size: 1.3rem;
  }
}

/* Texto legível nos botões e links de ação. */
.cta__label,
.arrow-link,
.menu-panel__cta,
.editorial-cta__link,
.lead-form button,
.cookie-banner__actions button,
.cookie-modal__actions button,
.legal-content section > button {
  font-size: .8rem;
}

.lead-form__submit-label--mobile {
  display: none;
}

@media (max-width: 820px) {
  .lead-form__submit-label--desktop {
    display: none;
  }

  .lead-form__submit-label--mobile {
    display: inline;
  }
}

@media (max-width: 560px) {
  .lead-form .lead-form__consent span {
    font-size: .9rem;
    line-height: 1.5;
  }

  .lead-form small {
    font-size: .9rem;
    line-height: 1.5;
  }
}
