/* =========================================================
   SINDIJUFE-MT — Folha de estilo (vanilla, sem dependências)
   Fontes auto-hospedadas (subset latin) em assets/fonts/
   ========================================================= */

/* ---------- Fontes ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/inter-300.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/playfair-600.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/playfair-700.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/playfair-800.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Playfair Display", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;

  --white: #ffffff;
  --black: #000000;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --red-900: #7f1d1d;
  /* Marca (extraída do site atual sindijufe.org.br) */
  --brand: #DA2931;
  --brand-dark: #B81F27;
  --yellow-50: #fefce8;
  --yellow-500: #F8E10A;
  --yellow-600: #ca8a04;

  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);

  /* Tokens semânticos de tema (claro por padrão) */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #f1f5f9;
  --border-strong: #e2e8f0;
  --text: #1e293b;
  --text-muted: #475569;
  --text-soft: #64748b;
  --heading: #0f172a;
  --topbar-bg: #cfcdcd;
  --topbar-text: #334155;
}

/* ---------- Tema escuro (modo noturno) ---------- */
[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111c2e;
  --surface-2: #0e1726;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .12);
  --text: #cbd5e1;
  --text-muted: #94a3b8;
  --text-soft: #94a3b8;
  --heading: #f1f5f9;
  --topbar-bg: #0e1726;
  --topbar-text: #94a3b8;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
::selection { background: var(--brand); color: #fff; }

/* ---------- Utilitários ---------- */
.container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
.icon { display: inline-block; vertical-align: middle; width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic-4 { width: 1rem; height: 1rem; }
.ic-5 { width: 1.25rem; height: 1.25rem; }
.ic-6 { width: 1.5rem; height: 1.5rem; }
.ic-7 { width: 1.75rem; height: 1.75rem; }
.ic-8 { width: 2rem; height: 2rem; }
.ic-12 { width: 3rem; height: 3rem; }
.is-hidden { display: none !important; }

@media (min-width: 640px) {
  .container { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  transition: all .2s ease;
  border-radius: .25rem;
}
.btn--block { width: 100%; }

.btn--primary { background: var(--brand); color: #fff; padding: .625rem 1.5rem; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--brand-dark); }

.btn--outline { border: 2px solid var(--slate-200); color: var(--slate-700); padding: .625rem 1rem; font-weight: 500; }

.btn--hero-primary { background: var(--brand); border: 1px solid var(--brand); color: #fff; padding: 1rem 2rem; font-size: 1.125rem; font-weight: 700; box-shadow: var(--shadow-lg); }
.btn--hero-primary:hover { background: var(--black); }

.btn--hero-ghost { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 1rem 2rem; font-size: 1.125rem; font-weight: 600; backdrop-filter: blur(12px); }
.btn--hero-ghost:hover { background: rgba(255,255,255,.2); }

.btn--duty { background: #fff; color: var(--black); padding: 1rem 0; font-weight: 700; }
.btn--duty:hover { background: var(--slate-100); }

/* ---------- Cabeçalho: barra do topo (cinza) ---------- */
.topbar { display: none; background: var(--topbar-bg); color: var(--topbar-text); font-size: .8125rem; transition: background-color .3s ease, color .3s ease; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; height: 2.5rem; }
.topbar__date { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; font-weight: 500; flex-shrink: 0; }
.topbar__social { display: flex; gap: .45rem; flex-shrink: 0; }
.topbar__social-link { width: 1.75rem; height: 1.75rem; border-radius: .3rem; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; transition: background-color .2s, transform .2s; }
.topbar__social-link:hover { background: var(--brand-dark); transform: translateY(-1px); }
.topbar__social-link .icon { width: .95rem; height: .95rem; }
@media (min-width: 768px) { .topbar { display: block; } }

/* Ticker de notícias (rotação) */
.ticker { display: none; align-items: center; gap: .6rem; flex: 1; min-width: 0; }
.ticker__label { background: var(--brand); color: #fff; font-weight: 700; text-transform: uppercase; font-size: .7rem; letter-spacing: .04em; padding: .15rem .5rem; border-radius: .2rem; white-space: nowrap; flex-shrink: 0; }
.ticker__viewport { overflow: hidden; flex: 1; min-width: 0; }
.ticker__track { display: inline-flex; gap: 2.5rem; white-space: nowrap; will-change: transform; animation: ticker-marquee 45s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: .5rem; color: var(--topbar-text); font-weight: 500; transition: color .2s; }
.ticker__item:hover { color: var(--brand); }
.ticker__thumb { width: 1.6rem; height: 1.6rem; border-radius: .25rem; object-fit: cover; flex-shrink: 0; }
@keyframes ticker-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 992px) { .ticker { display: flex; } }

/* ---------- Cabeçalho: logomarca centralizada ---------- */
.brand__accent { color: var(--brand); }
.brand__logo { width: 100%; height: 100%; object-fit: cover; display: block; }
.masthead { background: var(--surface); transition: background-color .3s ease; line-height: 0; overflow: hidden; padding: 1rem; }
.masthead__video { display: block; width: 100%; aspect-ratio: 32 / 5; object-fit: cover; }
@media (min-width: 768px) {
  .masthead { padding: 1.5rem 2rem; }
}

/* ---------- Cabeçalho: menu principal (sticky) ---------- */
.mainnav { position: sticky; top: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 3px solid var(--brand); transition: box-shadow .3s ease, background-color .3s ease; }
.mainnav.is-scrolled { box-shadow: var(--shadow-md); }
.mainnav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 3.25rem; }
.mainnav__compact { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; color: var(--heading); }
.mainnav__compact img { width: 1.6rem; height: 1.6rem; border-radius: .25rem; }
.mainnav__links { display: none; align-items: center; gap: 1.75rem; }
.mainnav__link { position: relative; color: var(--text); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; padding: .35rem 0; transition: color .2s; }
.mainnav__link:hover { color: var(--brand); }
.mainnav__link.is-active { color: var(--brand); }
.mainnav__link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--brand); }
.mainnav__cta { font-size: .82rem; padding: .5rem 1.2rem; text-transform: uppercase; letter-spacing: .03em; }
.mainnav__toggle { display: inline-flex; align-items: center; color: var(--text); margin-left: auto; }
@media (min-width: 1024px) {
  .mainnav__inner { justify-content: center; }
  .mainnav__compact { display: none; }
  .mainnav__links { display: flex; }
  .mainnav__toggle { display: none; }
}

/* Menu mobile (dropdown) */
.navbar__mobile { position: absolute; top: 100%; left: 0; width: 100%; background: var(--surface); border-top: 1px solid var(--border-strong); box-shadow: var(--shadow-xl); z-index: 39; }
.navbar__mobile[hidden] { display: none; }
.navbar__mobile-inner { padding: .5rem 1rem 1.5rem; display: flex; flex-direction: column; gap: .25rem; }
.navbar__mobile-link { display: block; padding: .75rem; border-radius: .375rem; font-size: 1rem; font-weight: 500; color: var(--text); transition: color .2s, background .2s; }
.navbar__mobile-link:hover { color: var(--brand); background: var(--surface-2); }
.navbar__mobile-actions { display: flex; flex-direction: column; gap: .75rem; padding: 1rem .75rem 0; }
@media (min-width: 1024px) { .navbar__mobile { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--slate-900); min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg-img { width: 100%; height: 100%; object-fit: cover; opacity: .3; mix-blend-mode: overlay; }
.hero__bg-gradient { position: absolute; inset: 0; width: 100%; background: linear-gradient(to right, var(--black), transparent); }
.hero__inner { position: relative; width: 100%; padding-top: 5rem; padding-bottom: 5rem; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.hero__content { max-width: 100%; }

.hero__badge { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .75rem; border-radius: 9999px; background: rgba(127,29,29,.5); border: 1px solid rgba(185,28,28,.5); color: var(--red-100); font-size: .875rem; font-weight: 500; margin-bottom: 1.5rem; backdrop-filter: blur(4px); }
.hero__badge-icon { color: var(--yellow-500); }
.hero__title { font-family: var(--font-serif); font-size: 2.25rem; font-weight: 700; line-height: 1.1; color: #fff; margin-bottom: 1.5rem; }
.hero__title-accent { color: var(--yellow-500); font-style: italic; }
.hero__lead { font-size: 1.125rem; color: var(--slate-300); margin-bottom: 2.5rem; max-width: 32rem; line-height: 1.625; }
.hero__actions { display: flex; flex-direction: column; gap: 1rem; }
.hero__btn-icon { color: var(--yellow-500); }

.hero__aside { display: none; justify-content: flex-end; }
.hero__card { position: relative; background: #fff; padding: 2rem; border-radius: .75rem; box-shadow: var(--shadow-2xl); max-width: 24rem; }
.hero__card-badge { position: absolute; top: -1.25rem; right: -1.25rem; width: 6rem; height: 6rem; background: var(--yellow-500); border-radius: 9999px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--slate-900); box-shadow: var(--shadow-lg); text-align: center; }
.hero__card-badge-num { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.hero__card-badge-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.hero__card-title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--slate-900); margin-bottom: 1rem; }
.hero__card-list { display: flex; flex-direction: column; gap: 1rem; }
.hero__card-list li { display: flex; align-items: flex-start; }
.hero__check { color: var(--brand); margin-right: .75rem; margin-top: .125rem; }
.hero__card-list span { color: var(--slate-700); font-weight: 500; line-height: 1.25; }

@media (min-width: 640px) { .hero__actions { flex-direction: row; } }
@media (min-width: 768px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__bg-gradient { width: 75%; }
  .hero__title { font-size: 3rem; }
  .hero__lead { font-size: 1.25rem; }
  .hero__aside { display: flex; }
}
@media (min-width: 1024px) { .hero__title { font-size: 3.75rem; } }

/* ---------- Cabeçalho de seção ---------- */
.section-head { text-align: center; max-width: 48rem; margin: 0 auto 4rem; }
.section-eyebrow { color: var(--brand); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .875rem; margin-bottom: .75rem; }
.section-title { font-family: var(--font-serif); font-size: 1.875rem; font-weight: 700; color: var(--heading); }
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

/* ---------- Serviços ---------- */
.services { padding: 6rem 0; background: var(--surface-2); }
.services__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.service { padding: 2rem; background: var(--surface); border-radius: .75rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: box-shadow .3s, background-color .3s ease, border-color .3s ease; }
.service:hover { box-shadow: var(--shadow-xl); }
.service__icon { width: 3.5rem; height: 3.5rem; border-radius: .75rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: transform .3s; }
.service:hover .service__icon { transform: scale(1.1); }
.service__icon--juridico { background: var(--red-50); color: var(--red-700); }
.service__icon--convenios { background: var(--yellow-50); color: var(--yellow-600); }
.service__icon--saude { background: var(--slate-100); color: var(--slate-800); }
.service__icon--capacitacao { background: var(--slate-200); color: var(--brand); }
.service__icon--atendimento { background: var(--slate-100); color: var(--slate-700); }
.service__title { font-size: 1.25rem; font-weight: 700; color: var(--heading); margin-bottom: .75rem; }
.service__desc { color: var(--text-muted); font-size: .875rem; line-height: 1.625; margin-bottom: 1.5rem; }
.service__link { display: inline-flex; align-items: center; gap: .25rem; font-size: .875rem; font-weight: 700; color: var(--brand); }
.service__link:hover { text-decoration: underline; }
@media (min-width: 768px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Números / Conquistas ---------- */
.stats { position: relative; padding: 5rem 0; background: var(--brand); overflow: hidden; }
.stats__texture { position: absolute; inset: 0; opacity: .1; background-image: url("https://www.transparenttextures.com/patterns/cubes.png"); }
.stats__inner { position: relative; z-index: 10; }
.stats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.stat { text-align: center; }
.stats__grid > * + * { border-left: 1px solid rgba(255,255,255,.2); padding-left: 2rem; }
.stat__icon { color: var(--yellow-500); margin: 0 auto 1rem; }
.stat__value { font-family: var(--font-serif); font-size: 2.25rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.stat__label { color: var(--slate-200); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .75rem; }
@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; }
  .stat__value { font-size: 3rem; }
}

/* ---------- Notícias ---------- */
.news { padding: 6rem 0; background: var(--bg); }
.news__head { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; margin-bottom: 3rem; }
.news__head-text { max-width: 42rem; }
.news__all { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .875rem; color: var(--text-muted); transition: color .2s; }
.news__all:hover { color: var(--brand); }
.news__all:hover .news__all-icon { transform: translateX(.25rem); }
.news__all-icon { transition: transform .2s; }
.news__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.news-card { cursor: pointer; text-decoration: none; color: inherit; }
.news-card__media { position: relative; height: 16rem; margin-bottom: 1.5rem; overflow: hidden; border-radius: .75rem; }
.news-card__media--brand { display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #e8454c, var(--brand) 70%); }
.news-card__brandmark { width: 6rem; height: 6rem; border-radius: 9999px; background: #fff; display: grid; place-items: center; box-shadow: 0 .375rem .875rem rgba(0,0,0,.18); }
.news-card__brandmark img { width: 4.25rem; height: 4.25rem; object-fit: contain; }
.news-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.news-card:hover .news-card__img { transform: scale(1.05); }
.news-card__tag { position: absolute; top: 1rem; left: 1rem; font-size: .75rem; font-weight: 700; padding: .375rem .75rem; text-transform: uppercase; letter-spacing: .05em; background: var(--brand); color: #fff; }
.news-card__meta { display: flex; align-items: center; gap: .5rem; font-size: .875rem; margin-bottom: .75rem; font-weight: 500; color: var(--text-soft); }
.news-card__title { font-size: 1.25rem; font-weight: 700; color: var(--heading); line-height: 1.375; transition: color .2s; }
.news-card:hover .news-card__title { color: var(--brand); }
@media (min-width: 768px) {
  .news__head { flex-direction: row; align-items: flex-end; }
  .news__all { margin-top: 0; }
  .news__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Agenda / Eventos ---------- */
.events { padding: 6rem 0; background: var(--slate-50); }
.events__grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
.events__title { margin-bottom: 1.5rem; }
.events__lead { color: var(--slate-600); font-size: 1.125rem; margin-bottom: 2rem; }
.events__list { display: flex; flex-direction: column; gap: 1rem; }
.event { display: flex; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--slate-100); transition: all .2s; }
.event__date { width: 6rem; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; background: var(--slate-100); color: var(--brand); border-right: 1px solid var(--slate-200); }
.event__day { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event__month { font-size: .75rem; font-weight: 700; text-transform: uppercase; margin-top: .25rem; color: var(--slate-600); }
.event__body { padding: 1.25rem; flex: 1; }
.event__title { font-size: 1.125rem; font-weight: 700; color: var(--slate-900); margin-bottom: .25rem; }
.event__meta { display: flex; align-items: center; gap: 1rem; font-size: .875rem; color: var(--slate-500); }
.event__meta span { display: inline-flex; align-items: center; gap: .25rem; }

.events__aside { position: relative; height: 100%; margin-top: 2rem; }
.duty { position: relative; }
.duty__offset { position: absolute; inset: 0; background: var(--yellow-500); border-radius: 1rem; transform: translate(1rem, 1rem); }
.duty__card { position: relative; background: var(--black); padding: 2.5rem; border-radius: 1rem; color: #fff; }
.duty__icon { color: var(--yellow-500); margin-bottom: 1.5rem; }
.duty__title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.duty__desc { color: var(--slate-300); margin-bottom: 2rem; line-height: 1.625; }
@media (min-width: 768px) {
  .events__grid { grid-template-columns: 1fr 1fr; }
  .events__aside { margin-top: 0; }
}

/* ---------- Rodapé ---------- */
.site-footer { background: var(--slate-900); color: var(--slate-300); padding: 4rem 0 2.5rem; }

/* Topo do rodapé: logomarca + parceiros institucionais */
.site-footer__top { display: flex; justify-content: center; padding-bottom: 2rem; }
.site-footer__wordmark { height: 3rem; width: auto; max-width: 100%; object-fit: contain; display: block; background: #fff; padding: .45rem 1.1rem; border-radius: .5rem; box-shadow: var(--shadow-md); }
.site-footer__partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; padding: 2rem 0 2.5rem; margin-bottom: 2.5rem; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.partner { display: flex; align-items: center; justify-content: center; height: 4rem; padding: .6rem 1rem; background: #fff; border-radius: .5rem; transition: transform .2s, box-shadow .2s; }
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.partner img { height: 2.5rem; width: auto; max-width: 11rem; object-fit: contain; }

.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem 2rem; margin-bottom: 3rem; }
.site-footer__logo { display: flex; align-items: center; margin-bottom: 1.5rem; }
.site-footer__logo-badge { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; margin-right: .75rem; border-radius: .25rem; overflow: hidden; }
.site-footer__logo-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.025em; line-height: 1; color: #fff; }
.site-footer__about { font-size: .875rem; margin-bottom: 1.5rem; line-height: 1.625; }
.site-footer__social { display: flex; gap: 1rem; }
.social { width: 2.5rem; height: 2.5rem; border-radius: .25rem; background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.social:hover { background: var(--yellow-500); color: var(--black); }
.site-footer__heading { color: #fff; font-weight: 700; margin-bottom: 1.5rem; font-family: var(--font-serif); text-transform: uppercase; letter-spacing: .05em; font-size: .875rem; }
.site-footer__links { display: flex; flex-direction: column; gap: .75rem; }
.site-footer__links a { font-size: .875rem; transition: color .2s; }
.site-footer__links a:hover { color: var(--yellow-500); }
.site-footer__contact { display: flex; flex-direction: column; gap: 1rem; font-size: .875rem; }
.site-footer__contact li { display: flex; align-items: center; }
.site-footer__contact li:first-child { align-items: flex-start; }
.site-footer__contact-icon { margin-right: .75rem; opacity: .7; }
.site-footer__contact li:first-child .site-footer__contact-icon { margin-top: .125rem; }
.site-footer__contact span { line-height: 1.625; }

.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; font-size: .75rem; opacity: .7; gap: 1rem; }
.site-footer__legal { display: flex; gap: 1.5rem; }
.site-footer__legal a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__col--contact { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .site-footer__bottom { flex-direction: row; gap: 0; }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: repeat(4, 1fr) 1.6fr; }
  .site-footer__col--contact { grid-column: auto; }
}

/* ---------- Ícone sólido (marcas preenchidas, ex.: WhatsApp) ---------- */
.icon--solid { fill: currentColor; stroke: none; }

/* ---------- Botão WhatsApp do banner (amarelo da logo) ---------- */
.btn--hero-whatsapp { background: var(--yellow-500); color: var(--slate-900); padding: 1rem 2rem; font-size: 1.125rem; font-weight: 700; box-shadow: var(--shadow-lg); }
.btn--hero-whatsapp:hover { background: #e3ce08; }

/* ---------- Botão flutuante de WhatsApp ---------- */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; width: 3.5rem; height: 3.5rem; border-radius: 9999px; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transition: transform .2s, background .2s; }
.wa-float:hover { background: #1ebe5b; transform: scale(1.06); }
.wa-float .icon { width: 1.85rem; height: 1.85rem; }

/* ---------- Toggle de modo noturno (flutuante) ---------- */
.theme-toggle { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 50; width: 3.5rem; height: 3.5rem; border-radius: 9999px; background: var(--surface); color: var(--heading); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transition: transform .2s, background-color .3s ease, color .3s ease; }
.theme-toggle:hover { transform: scale(1.06); }
.theme-toggle .icon { width: 1.6rem; height: 1.6rem; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }

/* ---------- Chips de ícone dos serviços no modo escuro ---------- */
[data-theme="dark"] .service__icon--juridico,
[data-theme="dark"] .service__icon--convenios,
[data-theme="dark"] .service__icon--saude,
[data-theme="dark"] .service__icon--capacitacao,
[data-theme="dark"] .service__icon--atendimento { background: rgba(255, 255, 255, .06); }
[data-theme="dark"] .service__icon--saude,
[data-theme="dark"] .service__icon--atendimento { color: #cbd5e1; }

/* ---------- Animações de entrada (scroll reveal) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.services__grid .service:nth-child(2) { transition-delay: .07s; }
.services__grid .service:nth-child(3) { transition-delay: .14s; }
.services__grid .service:nth-child(4) { transition-delay: .21s; }
.services__grid .service:nth-child(5) { transition-delay: .28s; }
.stats__grid .stat:nth-child(2) { transition-delay: .08s; }
.stats__grid .stat:nth-child(3) { transition-delay: .16s; }
.stats__grid .stat:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Carrossel de notícias ---------- */
.news__carousel { position: relative; }
.news__viewport { overflow: hidden; }
.news__track { display: flex; gap: 2rem; transition: transform .5s ease; }
.news__track > .news-card { flex: 0 0 100%; }
.news__nav { position: absolute; top: 8rem; transform: translateY(-50%); z-index: 5; width: 3rem; height: 3rem; border-radius: 9999px; background: var(--slate-700); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); opacity: .92; transition: opacity .2s, background-color .2s; }
.news__nav:hover { opacity: 1; background: var(--brand); }
.news__nav--prev { left: -.5rem; }
.news__nav--next { right: -.5rem; }
.news-card__desc { color: var(--text-muted); font-size: .9375rem; line-height: 1.6; margin-top: .5rem; }
.news__more { display: flex; justify-content: center; margin-top: 3rem; }
.btn--news { background: var(--brand); color: #fff; padding: .875rem 2.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; box-shadow: var(--shadow-md); }
.btn--news:hover { background: var(--brand-dark); }
@media (min-width: 768px) {
  .news__track > .news-card { flex-basis: calc((100% - 2rem) / 2); }
}
@media (min-width: 1024px) {
  .news__track > .news-card { flex-basis: calc((100% - 4rem) / 3); }
  .news__nav--prev { left: -1.25rem; }
  .news__nav--next { right: -1.25rem; }
}

/* ---------- Carrossel do hero (banners) ---------- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slider__viewport { overflow: hidden; }
.hero-slider__track { display: flex; transition: transform .6s ease; }
.hero-slide { flex: 0 0 100%; min-width: 100%; }
.hero-slider__nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 3rem; height: 3rem; border-radius: 9999px; background: rgba(255, 255, 255, .15); color: #fff; border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); align-items: center; justify-content: center; transition: background-color .2s; }
.hero-slider__nav:hover { background: rgba(255, 255, 255, .3); }
.hero-slider__nav--prev { left: 1rem; }
.hero-slider__nav--next { right: 1rem; }
.hero-slider__dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: .5rem; }
.hero-slider__dot { width: .7rem; height: .7rem; border-radius: 9999px; background: rgba(255, 255, 255, .45); transition: background-color .25s, width .25s; }
.hero-slider__dot.is-active { background: #fff; width: 1.6rem; }
@media (min-width: 768px) { .hero-slider__nav { display: flex; } }

/* Banner: Diretoria Colegiada */
.hero-slide--board { position: relative; min-height: 600px; display: flex; align-items: flex-end; overflow: hidden; }
.board__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.board__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .5) 40%, rgba(0, 0, 0, .15) 100%); }
.board__content { position: relative; z-index: 2; max-width: 40rem; padding-top: 2rem; padding-bottom: 4rem; }
.board__eyebrow { display: inline-block; background: var(--brand); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; padding: .3rem .75rem; border-radius: .25rem; margin-bottom: 1.1rem; }
.board__title { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 700; color: #fff; line-height: 1.05; margin-bottom: 1rem; }
.board__caption { color: #e2e8f0; font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.75rem; max-width: 34rem; }
@media (min-width: 768px) {
  .board__title { font-size: 3.5rem; }
}

/* ---------- Mídias ---------- */
.media { padding: 6rem 0; background: var(--surface-2); }
.media__bar { display: flex; justify-content: center; margin-bottom: 3rem; }
.media__bar span { display: inline-block; background: var(--brand); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 1.05rem; padding: .6rem 3rem; border-radius: .4rem; box-shadow: var(--shadow-md); }
.media__subtitle { display: flex; align-items: center; gap: .75rem; font-family: var(--font-serif); font-size: 1.375rem; font-weight: 700; color: var(--heading); margin-bottom: 1.5rem; }
.media__subtitle .icon { flex-shrink: 0; width: 2.25rem; height: 2.25rem; padding: .5rem; box-sizing: border-box; color: #fff; background: var(--brand); border-radius: 50%; box-shadow: var(--shadow-sm); }
.media__subtitle::after { content: ""; flex: 1; height: 2px; margin-left: .5rem; background: linear-gradient(to right, var(--brand), transparent); border-radius: 1px; }
.media__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.media__video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: .75rem; overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.media__video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media__yt-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-weight: 700; color: var(--brand); }
.media__yt-link:hover { color: var(--brand-dark); }
.media__gallery { display: flex; flex-direction: column; gap: 1.25rem; }
.gallery-card { display: flex; gap: .85rem; align-items: center; cursor: pointer; }
.gallery-card__media { display: block; width: 7.5rem; flex-shrink: 0; aspect-ratio: 4 / 3; border-radius: .5rem; overflow: hidden; }
.gallery-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-card:hover .gallery-card__img { transform: scale(1.06); }
.gallery-card__body { display: flex; flex-direction: column; }
.gallery-card__title { font-size: .9rem; font-weight: 700; color: var(--heading); line-height: 1.3; transition: color .2s; }
.gallery-card:hover .gallery-card__title { color: var(--brand); }
.gallery-card__date { font-size: .78rem; color: var(--text-soft); margin-top: .25rem; }
.media__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 3rem; justify-items: center; }
.media-tile { display: block; width: 100%; max-width: 140px; border-radius: .75rem; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.media-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.media-tile__img { display: block; width: 100%; height: auto; }
@media (min-width: 768px) {
  .media__tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .media__grid { grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
}
