/*
 * Refinamento de escala (tipografia e espaçamentos).
 *
 * Carregado por último. O tema base usa texto de 18px, títulos de 45px e
 * 112px de respiro por seção, o que deixava a página com cara de zoom.
 * Aqui fica uma escala única, mais próxima do site Ser pra Viver.
 * Os !important existem porque site.css redefine as mesmas regras várias
 * vezes (inclusive com !important no mobile).
 */

:root {
  --dra-section-y: clamp(64px, 6.5vw, 96px);
  --r-texto: 16px;
  --r-texto-card: 15px;
  --r-h1: clamp(32px, 3.3vw, 44px);
  --r-h2: clamp(26px, 2.5vw, 36px);
  --r-h3: 21px;
  --r-h4: 18px;
  --r-btn: 15px;
}

/* ---------- base ---------- */
html body {
  font-size: var(--r-texto);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html body p { font-size: var(--r-texto); line-height: 1.65; }

@media (min-width: 1400px) {
  html body .container { max-width: 1200px; }
}

/* respiro das seções */
html body .padding-top { padding-top: var(--dra-section-y) !important; }
html body .padding-bottom { padding-bottom: var(--dra-section-y) !important; }
html body .padding-top-xl { padding-top: var(--dra-section-y) !important; }
html body .padding-bottom-xl { padding-bottom: var(--dra-section-y) !important; }
html body #sobre,
html body .doctoralia-section { padding-top: var(--dra-section-y) !important; padding-bottom: var(--dra-section-y) !important; }
html body .mb-70,
html body .mb-80 { margin-bottom: 44px !important; }

/* ---------- títulos ---------- */
html body h1, html body h2, html body h3 { letter-spacing: -0.01em; }
html body .hero-banner .banner__content h1,
html body .banner__content h1 {
  font-size: var(--r-h1) !important;
  line-height: 1.14 !important;
  margin-bottom: 18px !important;
}
html body .section-header h2,
html body .about-hero__content h2,
html body .methodology-intro h2,
html body .lectures-header h2,
html body .blog-home__heading h2,
html body .faq-intro h2,
html body .cta-content h2,
html body .doctoralia-copy h2 {
  font-size: var(--r-h2) !important;
  line-height: 1.18 !important;
  margin-bottom: 14px !important;
}
html body .youtube-card__body h3 { font-size: var(--r-h3) !important; line-height: 1.3 !important; }
html body .impact-card h4,
html body .specialty-card h4 { font-size: var(--r-h4) !important; line-height: 1.35 !important; }
html body .method-card h5 { font-size: 17px !important; line-height: 1.35 !important; }

/* sobretítulos em caixa alta: menos espaçados */
html body .about-hero__subtitle,
html body .blog-home__eyebrow,
html body .brand h6,
html body .subtitle {
  font-size: 12px !important;
  letter-spacing: 0.1em !important;
}

/* ---------- textos ---------- */
html body .banner__content p {
  font-size: 17px !important;
  line-height: 1.6 !important;
  padding-bottom: 0 !important;
  margin-bottom: 28px !important;
  max-width: 560px;
}
html body .section-subtitle,
html body .section-header p,
html body .blog-home__heading p,
html body .lectures-header p {
  font-size: 16px !important;
  line-height: 1.65 !important;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
html body .blog-home__heading p { margin-left: 0; }
html body .about-hero__lead { font-size: 17px !important; line-height: 1.65 !important; }
html body .about-hero__content p:not(.about-hero__lead),
html body .methodology-intro p,
html body .lectures-intro p,
html body .faq-intro p,
html body .cta-content p,
html body .doctoralia-copy p {
  font-size: var(--r-texto) !important;
  line-height: 1.7 !important;
  margin-bottom: 14px;
}

/* textos dentro de cards */
html body .impact-card p,
html body .specialty-card p,
html body .method-card p,
html body .youtube-card__body p,
html body .accordion-body,
html body .accordion-body p {
  font-size: var(--r-texto-card) !important;
  line-height: 1.65 !important;
}
html body .impact-card li { font-size: 14.5px !important; }
html body .impact-number { font-size: 40px !important; }
html body .method-number { font-size: 32px !important; }

/* ---------- cards ---------- */
html body .impact-card { padding: 32px 28px 30px !important; }
html body .specialty-card { padding: 28px !important; min-height: 200px !important; }
html body .method-card { padding: 24px 24px !important; }
html body .topic-item { font-size: 14.5px !important; padding: 9px 16px !important; }

/* ---------- botões e links de ação ---------- */
html body .custom-btn,
html body .btn-primary,
html body .btn-cta,
html body .btn-outline-cta,
html body .btn-light-outline,
html body .btn-whatsapp {
  font-size: var(--r-btn) !important;
  font-weight: 600 !important;
  padding: 12px 22px !important;
  line-height: 1.3 !important;
}
html body .header-btn .custom-btn.btn-sm { font-size: 14px !important; padding: 9px 18px !important; }
html body .inline-whatsapp,
html body .specialty-more,
html body .faq-whatsapp { font-size: 15px !important; }

/* ---------- cabeçalho ---------- */
html body .menu a { font-size: 15px !important; }

/* ---------- formulário e FAQ ---------- */
html body .form-control { font-size: 15px !important; padding: 11px 14px !important; }
html body .accordion-button { font-size: 16px !important; padding: 18px 22px !important; line-height: 1.4 !important; }

/* ---------- rodapé ---------- */
html body .footer__content,
html body .footer__content p,
html body .link__item-list { font-size: 15px !important; }

/* ---------- banner: menos vão abaixo do menu ---------- */
@media (min-width: 992px) {
  html body .banner.hero-banner { padding-top: 150px !important; }
}

/* ---------- logos das empresas ---------- */
html body .brand__wrapper { padding-top: 28px !important; }
html body .brand__logo { width: 190px; height: 80px; padding: 0 26px; }
html body .brand__logo img {
  max-height: 52px;
  max-width: 138px;
  mix-blend-mode: normal;
  opacity: 0.55;
}
html body .brand__logo img:hover { opacity: 1; }

/* ---------- artigos: colunas conforme a quantidade ---------- */
@media (min-width: 992px) {
  html body .blog-home__grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important; }
}

/* ---------- celular ---------- */
@media (max-width: 575px) {
  :root {
    --r-h1: 30px;
    --r-h2: 26px;
    --r-texto: 15.5px;
  }
  html body .banner__content p { font-size: 16px !important; }
  html body .impact-card,
  html body .specialty-card { padding: 24px 20px !important; }
  html body .brand__logo { width: 140px; height: 64px; padding: 0 16px; }
  html body .brand__logo img { max-height: 40px; max-width: 108px; }
}
