/* =========================================================
   AORE/Goiânia — Tipografia & contraste (clareza estilo Itaú)
   Camada FINAL do portal público.

   Objetivos:
   - Texto principal preto nítido no claro (não cinza lavado)
   - Branco nítido no escuro (não cinza-esverdeado)
   - Traço fino / excelente legibilidade (400–600)
   - Negrito só onde a hierarquia realmente pede
   - Mantém layout, cores institucionais e componentes atuais
   ========================================================= */

html{
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

/* ---------- Tokens: contraste de leitura ---------- */
html:not([data-theme='dark']),
html[data-theme='light']{
  --text:#111111;
  --text-soft:#1d1d1b;
  --text-mute:#5c5c5a;
  --site-text:#111111;
  --site-text-soft:#1d1d1b;
  --site-text-mute:#5c5c5a;
  --site-heading:#0a0a0a;
}

html[data-theme='dark']{
  --text:#ffffff !important;
  --text-soft:#f3f6f0 !important;
  --text-mute:#c8d2c4 !important;
  --site-text:#ffffff !important;
  --site-text-soft:#f3f6f0 !important;
  --site-text-mute:#c8d2c4 !important;
  --site-heading:#ffffff !important;
  --olive-text:#f3f6f0 !important;
}

body{
  font-weight:400;
  color:var(--text) !important;
}

/* ---------- Hierarquia tipográfica (menos 800) ---------- */
h1,h2,h3,h4,h5,h6,
.section__title,
.home-carousel__title,
.page-banner__title,
.feature-news-title,
.portal-hero__title,
.cta-banner__title,
.gallery-alego-head h1,
.gallery-alego-album-head h1,
.gallery-alego-album-head h3,
.gallery-portal-header h1,
.news-article__title,
.news-article__record-title,
.itloja__title,
.itloja__title strong,
.itcart__page-title,
.itcart__page-title strong,
.itchk__title,
.itchk__title strong{
  font-weight:600 !important;
  letter-spacing:-.02em;
  color:var(--text) !important;
}

/* Títulos de página muito grandes: traço ainda mais leve */
.page-banner__title,
.itloja__title,
.itloja__title strong,
.itcart__page-title,
.itcart__page-title strong,
.itchk__title,
.itchk__title strong{
  font-weight:500 !important;
}

p,li,dd,dt,
.page-banner__subtitle,
.section__lead,
.cta-banner__text,
.rich p,
.rich li,
.news-article__summary p,
.news-article__body p,
.news-article__body li,
.aside__box p,
.aside__box li,
.value-card p,
.member-card__role,
.member-card__meta,
.timeline__text,
.event-card__meta,
.contact-bar__item,
.gallery-alego-latest__caption,
.home-carousel__link,
.home-vantagens-card__resumo,
.home-pa-shop-card__title,
.central-card span,
.central-card__sub{
  font-weight:400 !important;
}

/* Corpo e meta: preto/branco nítido — mute só para rótulos auxiliares */
p,li,dd,dt,
.rich p,
.rich li,
.news-article__body p,
.news-article__body li,
.page-banner__subtitle,
.cta-banner__text,
.value-card p,
.member-card__role,
.aside__box p,
.timeline__text{
  color:var(--text-soft) !important;
}

.event-card__cat,
.home-shop-carousel-card__cat,
.home-gallery-carousel-card__cat,
.home-pa-carousel-card__cat,
.gallery-alego-album-head__meta,
.gallery-alego-latest__date,
.member-card__meta,
.news-card__meta,
.feature-news-card__meta{
  font-weight:400 !important;
  color:var(--text-mute) !important;
}

/* ---------- Navegação / UI: medium, não bold ---------- */
.nav-desktop a,
.offcanvas__menu > ul > li > a,
.mobile-dock__item,
.header__title strong,
.theme-toggle,
.header__entrar,
.aside__box ul li a,
.gallery-portal-search__toggle,
.btn--galeria-custom{
  font-weight:500 !important;
}

.btn,
.btn--primary,
.btn--outline,
.btn--ghost,
.btn-associe-desk,
.nav-shop-pill,
.menu-link--shop{
  font-weight:500 !important;
  letter-spacing:0 !important;
}

/* ---------- Cards / carrosséis da home: título semi-bold, resto regular ---------- */
.home-shop-carousel-card__title,
.home-gallery-carousel-card__title,
.home-pa-carousel-card__name,
.home-pa-shop-card__title,
.home-vantagens-card .home-shop-carousel-card__title,
.event-card__title,
.news-card h3,
.news-card__title,
.feature-news-card__title,
.gallery-alego-card span,
.gallery-portal-card__caption h2,
.gallery-portal-list__body h2,
.gallery-portal-list__body h2 a,
.itcard__title,
.itcard__title a,
.itprod__title,
.itcart__item-title,
.itcart__item-title a,
.itchk__item-name,
.central-card span{
  font-weight:600 !important;
  color:var(--text) !important;
}

.home-shop-carousel-card__price,
.home-shop-carousel-card__price-current,
.home-gallery-carousel-card__count,
.home-vantagens-card__area,
.home-vantagens-card__resumo,
.itcard__price,
.itcard__cat,
.itprod__price,
.itprod__meta{
  font-weight:400 !important;
}

/* ---------- Galeria / CNOR / institucionais: baixar 800 → 600 ---------- */
.gallery-alego-latest__title,
.gallery-alego-results__meta strong,
.gallery-alego-date,
.gallery-alego-album-head__credit-name,
.cnor-page h1,
.cnor-page h2,
.cnor-page h3,
.cnor-hero__title,
.cnor-section__title,
.origem-cnor h1,
.origem-cnor h2,
.origem-cnor h3,
.patrono-page h1,
.patrono-page h2,
.patrono-page h3,
.diretoria-president__body h2,
.expresident-card__name,
.member-card__name,
.value-card h3,
.council-info-card h3,
.legacy-box h3,
.statute-box__title,
.section-title-adaptive{
  font-weight:600 !important;
  color:var(--text) !important;
}

/* ---------- Modo escuro: branco nítido em superfícies ---------- */
html[data-theme='dark'] .section__title,
html[data-theme='dark'] .home-carousel__title,
html[data-theme='dark'] .page-banner__title,
html[data-theme='dark'] .cta-banner__title,
html[data-theme='dark'] .event-card__title,
html[data-theme='dark'] .news-card h3,
html[data-theme='dark'] .news-card__title,
html[data-theme='dark'] .feature-news-card__title,
html[data-theme='dark'] .home-shop-carousel-card__title,
html[data-theme='dark'] .home-gallery-carousel-card__title,
html[data-theme='dark'] .home-pa-shop-card__title,
html[data-theme='dark'] .central-card span,
html[data-theme='dark'] .nav-desktop a,
html[data-theme='dark'] .offcanvas__menu > ul > li > a,
html[data-theme='dark'] .header__title strong,
html[data-theme='dark'] .gallery-alego-album-head h1,
html[data-theme='dark'] .gallery-alego-album-head h3{
  color:#ffffff !important;
}

html[data-theme='dark'] p,
html[data-theme='dark'] li,
html[data-theme='dark'] .page-banner__subtitle,
html[data-theme='dark'] .cta-banner__text,
html[data-theme='dark'] .rich p,
html[data-theme='dark'] .rich li,
html[data-theme='dark'] .news-article__body p,
html[data-theme='dark'] .home-vantagens-card__resumo,
html[data-theme='dark'] .event-card__meta,
html[data-theme='dark'] .home-shop-carousel-card__price,
html[data-theme='dark'] .home-shop-carousel-card__price-current{
  color:#f3f6f0 !important;
}

html[data-theme='dark'] .home-shop-carousel-card__cat,
html[data-theme='dark'] .event-card__cat,
html[data-theme='dark'] .gallery-alego-album-head__meta,
html[data-theme='dark'] .gallery-alego-latest__date{
  color:#c8d2c4 !important;
}

/* Evita cinza lavado forçado em utilitários comuns */
html:not([data-theme='dark']) .text-soft,
html:not([data-theme='dark']) [class*="__meta"]:not(.event-card__cat):not(.gallery-alego-album-head__meta),
html:not([data-theme='dark']) .section__head p{
  color:var(--text-soft);
}

/* Strong: ênfase sem “gritar” */
strong,b{
  font-weight:600;
}

.rich strong,
.news-article__body strong{
  font-weight:600;
  color:inherit;
}

/* ---------- Mobile dock / footer: peso médio ---------- */
.mobile-dock__item span,
.footer__col h4,
.footer__brand strong{
  font-weight:600 !important;
}
.footer p,
.footer li,
.footer__col a{
  font-weight:400 !important;
}

/* ---------- Exceções: CTAs e badges podem manter presença ---------- */
.btn--primary,
.mobile-dock__item--accent,
.cta-banner__actions .btn--primary,
.nav-shop-pill.is-active,
.badge,
.home-shop-carousel-card__badge,
.central-card__ribbon{
  font-weight:600 !important;
}
