/* =========================================================
   CME – Conselho Municipal de Educação de Missão Velha/CE
   styles.css — Folha de estilos principal
   ========================================================= */

/* ----------------------------------------------------------
   1. VARIÁVEIS E TOKENS DE DESIGN
   ---------------------------------------------------------- */
:root {
  --blue-deep:   #0c3b71;
  --blue-mid:    #145a9e;
  --blue-light:  #e8f0f8;
  --gold:        #f2a603;
  --gold-light:  #ffc233;
  --gold-dark:   #c98600;
  --white:       #FFFFFF;
  --gray-soft:   #f4f7fb;
  --gray-light:  #f4f7fb;
  --gray-mid:    #dde5ef;
  --gray-dark:   #64748b;
  --green:       #117632;
  --green-light: #1a9a45;
  --green-soft:  #e6f4eb;
  --gold-soft:   #fef6e0;
  --text-main:   #0c2340;
  --text-body:   #334155;
  --text-muted:  #64748b;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --header-h: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(12,59,113,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(12,59,113,.10), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 40px rgba(12,59,113,.14);
  --shadow-header: 0 2px 20px rgba(12,59,113,.08);

  --transition: 0.25s ease;
}

/* ----------------------------------------------------------
   2. RESET / BASE
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
address { font-style: normal; }
input, select { font-family: inherit; }

/* Foco visível para acessibilidade */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------
   3. UTILITÁRIOS
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

/* ----------------------------------------------------------
   4. SCROLL REVEAL (data-reveal)
   ---------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"] {
  transform: translateX(-40px);
}
[data-reveal="left"].visible {
  transform: translateX(0);
}
[data-reveal="right"] {
  transform: translateX(40px);
}
[data-reveal="right"].visible {
  transform: translateX(0);
}

/* ----------------------------------------------------------
   5. HEADER — fundo claro + faixa tricolor
   ---------------------------------------------------------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-header);
  transition: box-shadow var(--transition);
}

#site-header.scrolled {
  box-shadow: 0 4px 28px rgba(12,59,113,.12);
}

.cme-tricolor {
  display: flex;
  height: 3px;
  width: 100%;
}
.cme-tricolor span {
  flex: 1;
  height: 100%;
}
.cme-tricolor span:nth-child(1) { background: var(--blue-deep); }
.cme-tricolor span:nth-child(2) { background: var(--green); }
.cme-tricolor span:nth-child(3) { background: var(--gold); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

/* Logo oficial */
.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo {
  height: 52px;
  width: auto;
  max-width: min(280px, 42vw);
  object-fit: contain;
  object-position: left center;
}

/* Navegação desktop */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  position: relative;
}
.nav-link:hover {
  color: var(--green);
  background: var(--green-soft);
}
.nav-link.active {
  color: var(--green);
  background: var(--green-soft);
  font-weight: 700;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* Busca no header */
.header-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-search-wrap {
  position: relative;
}
.header-search-input {
  width: 168px;
  height: 38px;
  padding: 0 12px 0 34px;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-full);
  background: var(--gray-soft);
  color: var(--text-main);
  font-size: 13px;
  transition: width var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.header-search-input::placeholder {
  color: var(--text-muted);
}
.header-search-input:focus {
  outline: none;
  width: 220px;
  background: var(--white);
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(12,59,113,.1);
}
.header-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  pointer-events: none;
}
.header-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, 90vw);
  max-height: 360px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
}
.header-search-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--gray-mid);
  transition: background var(--transition);
}
.header-search-item:last-child {
  border-bottom: none;
}
.header-search-item:hover {
  background: var(--gray-light);
}
.header-search-item-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.header-search-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  line-height: 1.35;
}
.header-search-item-extra {
  font-size: 12px;
  color: var(--text-muted);
}
.header-search-empty {
  padding: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.header-search-ver-todos {
  display: block;
  padding: 12px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--gray-light);
  text-decoration: none;
  transition: background var(--transition);
}
.header-search-ver-todos:hover {
  background: var(--gold-soft);
  color: var(--gold-dark);
}
.header-search-mobile {
  display: none;
  padding: 16px 24px 8px;
  border-bottom: 1px solid var(--gray-mid);
  background: var(--gray-soft);
}
.header-search-mobile .header-search-input {
  width: 100%;
}
.header-search-mobile .header-search-input:focus {
  width: 100%;
}
.header-search-mobile .header-search-results {
  right: auto;
  left: 0;
  width: 100%;
}
.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;
}

/* Hamburguer */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--blue-light); }
.hamburger-line {
  display: block;
  height: 2px;
  background: var(--blue-deep);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: var(--white);
  border-top: 1px solid var(--gray-mid);
}
.mobile-nav.open {
  max-height: 520px;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  padding: 8px 0 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.mobile-nav-link {
  display: block;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-deep);
  transition: color var(--transition), background var(--transition);
  border-left: 3px solid transparent;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--green);
  background: var(--green-soft);
  border-left-color: var(--gold);
}

/* ----------------------------------------------------------
   6. HERO SECTION — layout claro em duas colunas
   ---------------------------------------------------------- */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3px + 48px) 0 64px;
  background: linear-gradient(160deg, var(--white) 0%, var(--blue-light) 45%, var(--green-soft) 100%);
  overflow: hidden;
}
.hero-section--compact {
  padding: calc(var(--header-h) + 3px + 28px) 0 32px;
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-light) 100%);
  border-bottom: 1px solid rgba(12,59,113,.06);
}
.hero-section--compact .hero-blob {
  opacity: .25;
}
.hero-section--compact .hero-grid-pattern {
  opacity: .02;
}
.hero-section--compact .hero-actions {
  margin-bottom: 0;
}
.hero-subtitle--lead {
  font-size: clamp(16px, 2vw, 18px);
  max-width: 600px;
  margin-bottom: 20px;
}
.hero-content--centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero-subtitle--center {
  margin-left: auto;
  margin-right: auto;
}
.hero-actions--center {
  justify-content: center;
}
.hero-stats--sidebar {
  width: 100%;
  max-width: none;
  grid-template-columns: 1fr;
  gap: 12px;
}
.hero-stats--sidebar .stat-item {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  gap: 16px;
}
.hero-stats--sidebar .stat-number {
  font-size: 36px;
  min-width: 2.5ch;
}
.hero-stats--sidebar .stat-label {
  text-align: right;
  max-width: none;
  font-size: 12px;
  line-height: 1.4;
}
.hero-visual--sidebar .hero-logo-frame {
  max-width: 100%;
}
.cme-sobre-title {
  margin-bottom: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .45;
}
.hero-blob--blue {
  width: 480px;
  height: 480px;
  background: rgba(12,59,113,.12);
  top: -120px;
  right: -80px;
}
.hero-blob--green {
  width: 360px;
  height: 360px;
  background: rgba(17,118,50,.14);
  bottom: -60px;
  left: -40px;
}
.hero-blob--gold {
  width: 280px;
  height: 280px;
  background: rgba(242,166,3,.16);
  top: 40%;
  left: 45%;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image:
    linear-gradient(var(--blue-deep) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-deep) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px 56px;
  align-items: center;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-visual--sidebar {
  align-items: stretch;
}
.hero-visual--sidebar .hero-logo-frame,
.hero-visual--sidebar .hero-badge {
  align-self: center;
}
.hero-logo-frame {
  position: relative;
  padding: 32px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(12,59,113,.08);
}
.hero-logo-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, var(--blue-deep), var(--green), var(--gold));
  z-index: -1;
  opacity: .25;
}
.hero-logo {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
  text-align: center;
  line-height: 1.4;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(17,118,50,.2);
  animation: heroPulse 2s ease infinite;
}
@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(17,118,50,.2); }
  50%      { box-shadow: 0 0 0 6px rgba(17,118,50,.08); }
}

.hero-content {
  text-align: left;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(17,118,50,.2);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1.15;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.hero-title-accent {
  display: block;
  margin-top: 8px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--green) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-divider {
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-deep), var(--green), var(--gold));
  margin: 24px 0;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 400;
  color: var(--text-body);
  max-width: 520px;
  margin: 0 0 28px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-hero--primary {
  background: var(--gold);
  color: #3d2800;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 14px rgba(242,166,3,.35);
}
.btn-hero--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242,166,3,.45);
}
.btn-hero--ghost {
  background: transparent;
  color: var(--blue-deep);
  border: 2px solid var(--blue-deep);
}
.btn-hero--ghost:hover {
  background: var(--blue-deep);
  color: var(--white);
}
.btn-hero:active { transform: scale(0.98); }

/* Estatísticas — cards coloridos */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--blue-deep);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.stat-item--blue  { border-top-color: var(--blue-deep); }
.stat-item--green { border-top-color: var(--green); }
.stat-item--gold  { border-top-color: var(--gold); }
.stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1;
}
.stat-item--green .stat-number { color: var(--green); }
.stat-item--gold  .stat-number { color: var(--gold-dark); }
.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ----------------------------------------------------------
   6b. SEÇÃO SOBRE O CONSELHO
   ---------------------------------------------------------- */
.cme-sobre-section {
  position: relative;
  padding: calc(var(--header-h) + 3px + 40px) 0 96px;
  background: linear-gradient(160deg, var(--white) 0%, var(--blue-light) 45%, var(--green-soft) 100%);
  overflow: hidden;
}
.cme-sobre-container {
  position: relative;
  z-index: 1;
}
.cme-sobre-content {
  text-align: left;
}

.cme-sobre-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
}
.cme-sobre-text p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  text-align: justify;
}
.cme-missao-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.cme-missao-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(242,166,3,.12) 0%, transparent 70%);
  pointer-events: none;
}
.cme-missao-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold-dark);
  border-radius: var(--radius-sm);
}
.cme-missao-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.cme-missao-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--blue-deep);
  line-height: 1.75;
  margin: 0;
}
.cme-missao-card--sidebar {
  width: 100%;
  max-width: none;
  align-self: stretch;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 26px;
}
.cme-missao-card--sidebar .cme-missao-text {
  font-size: 15px;
  line-height: 1.75;
}

/* ----------------------------------------------------------
   7. SEÇÕES GENÉRICAS
   ---------------------------------------------------------- */
.section {
  padding: 96px 0;
}
.section-white { background: var(--white); }
.section-gray  { background: var(--gray-soft); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(17,118,50,.22);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ----------------------------------------------------------
   8. BUSCA E FILTROS
   ---------------------------------------------------------- */
.search-bar-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-size: 14px;
  color: var(--text-main);
  background: var(--white);
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.search-input:focus {
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(12,59,113,.12);
}
.search-input::placeholder { color: var(--text-muted); }

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pill {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--white);
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
}
.pill:hover {
  border-color: var(--blue-deep);
  color: var(--blue-deep);
}
.pill.active {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--white);
  font-weight: 600;
}

/* Filtro select */
.filter-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
}
.select-wrapper {
  position: relative;
  display: inline-block;
}
.select-filter {
  appearance: none;
  padding: 10px 40px 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  background: var(--white);
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius-md);
  cursor: pointer;
  min-width: 200px;
  outline: none;
  transition: border-color var(--transition);
}
.select-filter:focus { border-color: var(--blue-deep); }
.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ----------------------------------------------------------
   9. CARDS DE AÇÕES
   ---------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
  list-style: none;
  padding: 0;
}

.action-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-thumb svg {
  opacity: .7;
}
.card-thumb--photo {
  padding: 0;
  background: var(--gray-mid);
}
.card-thumb--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-thumb-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition);
}
.card-thumb-link:hover {
  opacity: .92;
}
.card-thumb-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.modal-thumb.card-thumb--photo img {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.badge-reuniao    { background: rgba(12,59,113,.12);  color: var(--blue-deep); }
.badge-visita     { background: rgba(46,125,50,.12);  color: var(--green); }
.badge-evento     { background: rgba(242,166,3,.18); color: var(--gold-dark); }
.badge-deliberacao{ background: rgba(153,50,204,.10); color: #6b21a8; }

.card-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 8px;
  line-height: 1.3;
}
.card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn-ver-mais {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
  align-self: flex-start;
}
.btn-ver-mais:hover {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

/* ----------------------------------------------------------
   9b. SINGLE DE AÇÃO
   ---------------------------------------------------------- */
.acao-single-main {
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 80px;
}
.acao-single-breadcrumb {
  margin-bottom: 28px;
}
.acao-single-thumb {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--gray-mid);
}
.acao-single-thumb--photo {
  aspect-ratio: 16 / 9;
  background: var(--gray-mid);
}
.acao-single-thumb--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.acao-single-thumb--icon {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.acao-single-thumb--icon svg {
  opacity: .75;
}
.acao-single-content {
  max-width: 760px;
}
.acao-single-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.acao-single-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--blue-deep);
  line-height: 1.2;
  margin-bottom: 16px;
}
.acao-single-resumo {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 500;
}
.acao-single-texto {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 40px;
}
.acao-single-texto p {
  margin-bottom: 1em;
}
.acao-single-galeria-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.acao-single-galeria-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.acao-single-galeria-item {
  min-height: 120px;
}
.acao-single-galeria-photo {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-mid);
  height: 100%;
  border: 1px solid var(--gray-mid);
}
.acao-single-galeria-photo img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.acao-galeria-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.acao-galeria-zoom img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}
.acao-galeria-zoom:hover img {
  transform: scale(1.04);
}
.acao-galeria-zoom-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(12,59,113,.75);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.acao-galeria-zoom:hover .acao-galeria-zoom-hint,
.acao-galeria-zoom:focus-visible .acao-galeria-zoom-hint {
  opacity: 1;
}
.acao-single-galeria-photo figcaption {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--gray-light);
}
.acao-single-galeria-placeholder {
  height: 140px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}
.acao-single-actions {
  padding-top: 24px;
  border-top: 1px solid var(--gray-mid);
}
.btn-acao-voltar,
.btn-acao-voltar-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: none;
  transition: color var(--transition);
}
.btn-acao-voltar:hover,
.btn-acao-voltar-lg:hover {
  color: var(--gold-dark);
}
.btn-acao-voltar-lg {
  font-size: 14px;
  padding: 4px 0;
}

/* Lightbox galeria (single) */
.galeria-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.galeria-lightbox-figure {
  margin: 0;
  max-width: min(960px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.galeria-lightbox-figure img {
  max-width: 100%;
  max-height: calc(90vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.galeria-lightbox-figure figcaption {
  margin-top: 12px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  text-align: center;
}
.galeria-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.galeria-lightbox-close:hover {
  background: rgba(255,255,255,.22);
}

/* ----------------------------------------------------------
   9c. PÁGINA DE RESULTADOS DA BUSCA
   ---------------------------------------------------------- */
.busca-page-main {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
  min-height: 70vh;
}
.busca-page-header {
  margin-bottom: 32px;
}
.busca-page-form {
  margin-bottom: 36px;
  width: 100%;
}
.busca-page-input-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.busca-page-icon {
  align-self: center;
  margin-left: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.busca-page-input {
  flex: 1;
  border: none;
  padding: 16px 14px;
  font-size: 16px;
  color: var(--text-body);
  background: transparent;
  min-width: 0;
}
.busca-page-input:focus {
  outline: none;
}
.busca-page-submit {
  padding: 0 24px;
  background: var(--blue-deep);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition);
  white-space: nowrap;
}
.busca-page-submit:hover {
  background: #0a3260;
}
.busca-page-count {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.busca-page-grupos {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 48px;
}
.busca-page-grupo-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.busca-page-grupo-count {
  font-size: 12px;
  font-weight: 700;
  background: rgba(12,59,113,.1);
  color: var(--blue-deep);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}
.busca-page-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.busca-page-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--gray-mid);
  transition: background var(--transition);
}
.busca-page-lista li:last-child .busca-page-item {
  border-bottom: none;
}
.busca-page-item:hover {
  background: var(--gray-light);
}
.busca-page-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-deep);
  line-height: 1.35;
}
.busca-page-item-extra {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.busca-page-item-resumo {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.busca-page-status {
  margin: 24px 0 48px;
}
.busca-page-hint {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}
.busca-page-back {
  padding-top: 24px;
  border-top: 1px solid var(--gray-mid);
}

@media (max-width: 768px) {
  .busca-page-input-wrap {
    flex-wrap: wrap;
  }
  .busca-page-input {
    width: 100%;
    padding-left: 16px;
  }
  .busca-page-icon {
    display: none;
  }
  .busca-page-submit {
    width: 100%;
    padding: 14px;
  }
}

@media (max-width: 768px) {
  .acao-single-thumb--icon { height: 220px; }
  .acao-single-galeria-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .acao-single-galeria-grid { grid-template-columns: 1fr; }
}

/* Estado vazio */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 16px; opacity: .4; }
.empty-state p { font-size: 15px; }

/* Paginação */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}
.btn-pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--white);
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.btn-pagination:hover:not(:disabled) {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--white);
}
.btn-pagination:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.page-indicator {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 100px;
  text-align: center;
}

/* ----------------------------------------------------------
   10. CARDS DE MEMBROS
   ---------------------------------------------------------- */
.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.members-grid > li {
  list-style: none;
}
.member-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 28px 20px 20px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.member-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.member-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  border: 3px solid var(--gold);
  flex-shrink: 0;
  overflow: hidden;
}
.member-avatar--photo {
  padding: 0;
  background: var(--gray-mid);
}
.member-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.member-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 4px;
  line-height: 1.3;
}
.member-cargo {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.member-segmento {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}
.badge-ativo    { background: rgba(46,125,50,.12);  color: var(--green);      font-size: 11px; }
.badge-suplente { background: rgba(180,140,0,.12);  color: #856400;           font-size: 11px; }

/* ----------------------------------------------------------
   11. CARDS DE COMITÊS
   ---------------------------------------------------------- */
.comites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.comite-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.comite-card:hover { box-shadow: var(--shadow-md); }
.comite-header {
  background: var(--blue-deep);
  padding: 28px 28px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.comite-icon {
  width: 52px;
  height: 52px;
  background: rgba(242,166,3,.18);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.comite-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.comite-body {
  padding: 22px 28px 8px;
}
.comite-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-body);
  margin-bottom: 10px;
}
.comite-info-row svg { flex-shrink: 0; color: var(--blue-mid); margin-top: 2px; }
.comite-info-label { font-weight: 600; margin-right: 4px; }
.btn-comite-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--gray-soft);
  border-top: 1px solid var(--gray-mid);
  transition: background var(--transition), color var(--transition);
  margin-top: 8px;
}
.btn-comite-toggle:hover { background: var(--blue-deep); color: var(--white); }
.toggle-chevron {
  transition: transform .3s ease;
}
.btn-comite-toggle.open .toggle-chevron { transform: rotate(180deg); }

.comite-members-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  background: var(--gray-soft);
}
.comite-members-list.open {
  max-height: 400px;
  padding: 4px 0 16px;
}
.comite-member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 28px;
  font-size: 13.5px;
  color: var(--text-body);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.comite-member-item:last-child { border-bottom: none; }
.comite-member-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   12. DIÁRIO OFICIAL
   ---------------------------------------------------------- */
.accessibility-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(12,59,113,.06);
  border: 1px solid rgba(12,59,113,.12);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-bottom: 32px;
}

.diario-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.diario-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.diario-item:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-sm);
}
.diario-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 70px;
}
.diario-content { flex: 1; }
.diario-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.4;
}
.diario-date {
  font-size: 12.5px;
  color: var(--text-muted);
}
.diario-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.btn-aprece {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-deep);
  background: rgba(12,59,113,.08);
  border: 1px solid rgba(12,59,113,.2);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-aprece:hover {
  background: var(--blue-deep);
  color: var(--white);
  border-color: var(--blue-deep);
}
.badge-deliberacao-do { background: rgba(12,59,113,.10);  color: var(--blue-deep); }
.badge-resolucao      { background: rgba(17,118,50,.12);  color: var(--green); }
.badge-portaria       { background: rgba(242,166,3,.18); color: var(--gold-dark); }
.badge-regimento      { background: rgba(12,59,113,.10);  color: var(--blue-deep); }
.badge-regulamento    { background: rgba(17,118,50,.08);  color: var(--green); }
.badge-outro          { background: var(--gray-soft); color: var(--text-muted); }
.diario-ementa {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}
.ato-item.hidden-by-search { display: none !important; }
.badge-convocacao     { background: rgba(220,38,38,.10);  color: #dc2626; }

/* ----------------------------------------------------------
   13. PARECERES — EXPLORADOR
   ---------------------------------------------------------- */
.pareceres-explorer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.parecer-year-block {
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.btn-year-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  background: var(--blue-deep);
  transition: background var(--transition);
}
.btn-year-toggle:hover { background: var(--blue-mid); }
.btn-year-toggle.open  { background: var(--blue-mid); }
.year-count {
  font-size: 12px;
  font-weight: 500;
  background: rgba(242,166,3,.22);
  color: var(--gold);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(242,166,3,.3);
}
.year-chevron { transition: transform .3s ease; }
.btn-year-toggle.open .year-chevron { transform: rotate(180deg); }

.parecer-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  background: var(--white);
}
.parecer-list.open { max-height: 1200px; }

.parecer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--gray-mid);
  transition: background var(--transition);
}
.parecer-item:last-child { border-bottom: none; }
.parecer-item:hover { background: var(--gray-soft); }
.parecer-item.hidden-by-search { display: none; }

.pdf-icon {
  width: 36px;
  height: 36px;
  background: rgba(220,38,38,.10);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #dc2626;
}
.parecer-info { flex: 1; }
.parecer-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 3px;
}
.parecer-ementa {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.4;
}
.parecer-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-deep);
  background: rgba(12,59,113,.08);
  border: 1px solid rgba(12,59,113,.18);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  flex-shrink: 0;
}
.btn-download:hover {
  background: var(--blue-deep);
  color: var(--white);
}
.btn-download:disabled,
.btn-download[disabled] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}
a.btn-download {
  text-decoration: none;
}

/* ----------------------------------------------------------
   14. FOOTER
   ---------------------------------------------------------- */
#site-footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,.78);
  padding: 64px 0 0;
  position: relative;
}
#site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-deep) 33%, var(--green) 33% 66%, var(--gold) 66%);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo-wrap {
  display: inline-block;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.footer-logo-img {
  width: auto;
  height: 48px;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.footer-brand {
  display: flex;
  flex-direction: column;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-address p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  margin-bottom: 10px;
  line-height: 1.5;
  color: rgba(255,255,255,.72);
}
.footer-address svg { flex-shrink: 0; margin-top: 2px; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: rgba(255,255,255,.72);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--gold); }
.footer-bottom {
  padding: 24px 0;
}
.footer-copy {
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  text-align: center;
}

/* ----------------------------------------------------------
   15. MODAL
   ---------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  animation: fadeIn .2s ease;
}
.modal-overlay.hidden {
  display: none !important;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  animation: slideUp .28s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 10;
  color: var(--text-main);
}
.modal-close:hover { background: rgba(0,0,0,.14); }
.modal-thumb {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.modal-content-body {
  padding: 28px 32px 32px;
}
.modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 16px;
  line-height: 1.3;
}
.modal-desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 24px;
}
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.modal-gallery-thumb {
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255,255,255,.8);
  font-weight: 600;
  overflow: hidden;
}
.modal-gallery-photo {
  padding: 0;
  background: var(--gray-mid);
}
.modal-gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----------------------------------------------------------
   16. BOTÃO VOLTAR AO TOPO
   ---------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #3d2800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(242,166,3,.45);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  opacity: 1;
}
.back-to-top.hidden {
  opacity: 0 !important;
  pointer-events: none;
  display: flex !important; /* override .hidden's display:none so we can animate */
}
.back-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242,166,3,.55);
}

/* Corrigir: o botão oculto com opacity precisa de display flex */
#back-to-top {
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

/* ----------------------------------------------------------
   17. TIMELINE SIGNATURE — linha dourada animada
   ---------------------------------------------------------- */
.timeline-wrapper {
  position: relative;
  padding-left: 32px;
}
.timeline-line {
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-mid);
  transform-origin: top center;
}
.timeline-line-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: var(--gold);
  transition: height .8s cubic-bezier(.4,0,.2,1);
  border-radius: 2px;
}
.timeline-dot {
  position: absolute;
  left: -37px;
  top: 18px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

/* ----------------------------------------------------------
   18. RESPONSIVO
   ---------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid,
  .cme-sobre-section .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content,
  .cme-sobre-content { text-align: center; }
  .hero-divider,
  .cme-sobre-content .hero-divider { margin-left: auto; margin-right: auto; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats,
  .hero-stats--sidebar { max-width: 100%; margin: 0; }
  .hero-stats--sidebar .stat-number { font-size: 32px; }
  .hero-stats--sidebar .stat-item { padding: 16px 18px; }
  .cme-sobre-text p { text-align: left; }
  .cme-missao-card--sidebar { max-width: 100%; align-self: stretch; }

  .cards-grid      { grid-template-columns: repeat(2, 1fr); }
  .members-grid    { grid-template-columns: repeat(3, 1fr); }
  .comites-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}

/* Mobile large */
@media (max-width: 768px) {
  :root { --header-h: 68px; }

  .nav-list        { display: none; }
  .hamburger       { display: flex; }
  .header-search-desktop { display: none; }
  .header-search-mobile  { display: block; }
  .header-logo { height: 44px; }

  .hero-section--compact { padding-bottom: 40px; }
  .cme-sobre-section { padding: 64px 0 72px; }
  .hero-logo-frame { padding: 24px 20px; }
  .hero-logo { max-width: 300px; }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stat-item { align-items: flex-start; text-align: left; }

  .cards-grid      { grid-template-columns: 1fr; }
  .members-grid    { grid-template-columns: repeat(2, 1fr); }
  .comites-grid    { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; gap: 32px; }

  .section { padding: 64px 0; }

  .diario-item { flex-wrap: wrap; }
  .diario-actions { width: 100%; justify-content: flex-end; }

  .modal-gallery { grid-template-columns: repeat(2, 1fr); }
  .modal-content-body { padding: 20px; }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .members-grid    { grid-template-columns: 1fr; }
  .hero-actions    { flex-direction: column; width: 100%; }
  .btn-hero        { width: 100%; justify-content: center; }
  .search-bar-wrapper { flex-direction: column; }
  .filter-pills    { justify-content: flex-start; }
  .pagination      { flex-wrap: wrap; }
  .header-logo     { max-width: 200px; height: 38px; }

  .parecer-item { flex-wrap: wrap; gap: 10px; }
  .btn-download { width: 100%; justify-content: center; }
}

/* ----------------------------------------------------------
   19. ESCOPO WORDPRESS — isolamento do tema/plugins
   ---------------------------------------------------------- */
body.cme-educacao-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body.cme-educacao-page #site-header,
body.cme-educacao-page #site-footer {
  box-sizing: border-box;
}
