/* ============================================================
   CAVALARIA PARAENSE — Design System
   Baseado no demolaydf.org.br
   Verde escuro #1F4127 · Verde médio #345730 · Branco · Dourado
   ============================================================ */

/* ── 1. VARIÁVEIS ──────────────────────────────────────────── */
:root {
  --white:        #FFFFFF;
  --green-dark:   #0B3D1E;   /* cor primária — verde mais vivo */
  --green-mid:    #1E5631;   /* verde médio mais vivo */
  --green-deep:   #082E16;   /* footer, seções escuras */
  --green-light:  rgba(30,86,49,.12);  /* fundo sutil verde */
  --green-pale:   rgba(30,86,49,.09);

  --gold:         #C8A96E;   /* dourado — destaques, bordas, números */
  --gold-light:   #D9BC85;
  --gold-pale:    rgba(200,169,110,.14);

  --off-white:    #F5F5F5;   /* fundo alternativo claro */
  --cream:        #FAFAF8;

  --black:        #0D0D0D;
  --black-green:  #000802;   /* quase preto com toque verde */
  --dark:         #1A1A1A;

  --gray-50:      #F7F7F7;
  --gray-100:     #EFEFEF;
  --gray-200:     #DCDCDC;
  --gray-400:     #7E7E7E;
  --gray-600:     #555555;
  --gray-800:     #2A2A2A;

  /* Aliases para compatibilidade com páginas existentes */
  --navy:         var(--green-dark);
  --navy-dark:    var(--green-dark);
  --navy-deeper:  var(--green-deep);
  --navy-mid:     var(--green-mid);
  --border:       var(--gray-200);

  /* Sombras Institucionais (menos IA) */
  --shadow-xs:    0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:    0 2px 4px rgba(0,0,0,0.05);
  --shadow-md:    0 8px 16px rgba(0,0,0,0.05);
  --shadow-lg:    0 12px 24px rgba(0,0,0,0.08);

  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    12px;
  --radius-xl:    20px;
  --radius-full:  9999px;

  --transition:   .25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h:     70px;

  --font-sans:    'Inter', -apple-system, sans-serif;
  --font-serif:   'Playfair Display', serif;
  --font-title:   var(--font-serif);
}

/* ── 2. RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; transition: var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; transition: var(--transition); }
input, select, textarea { font-family: inherit; }

/* ── 3. CARDS INSTITUCIONAIS (Estilo DeMolay DF) ─────────────── */
.dm-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(0,0,0,0.03);
}
.dm-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.dm-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.dm-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dm-card:hover .dm-card-img-wrap img {
  transform: scale(1.05);
}
.dm-card-logo-overlay {
  position: absolute;
  bottom: -20px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: var(--green-dark);
  border-radius: 50%;
  border: 3px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.dm-card-logo-overlay svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}
.dm-card-content {
  padding: 32px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dm-card-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.4;
  margin-bottom: 16px;
  flex: 1;
}
.dm-card-link {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--green-mid);
  letter-spacing: 0.05em;
  display: inline-block;
  margin-top: auto;
}
.dm-card-footer {
  padding: 12px 24px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ── 4. GLOBAL LOADER REFINADO ─────────────────────────────── */
.global-loader {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.global-loader.show {
  opacity: 1;
  visibility: visible;
}
.global-loader::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* CRÍTICO: bloqueia SVGs sem tamanho de crescer */
svg { overflow: hidden; flex-shrink: 0; }
svg:not([width]):not([height]) { width: 1em; height: 1em; }

/* ── 3. TIPOGRAFIA ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--green-dark);
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); }
h4 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 600; }
p  { color: var(--gray-600); line-height: 1.75; }

.text-white   { color: var(--white) !important; }
.text-green   { color: var(--green-dark) !important; }
.text-gold    { color: var(--gold) !important; }
.text-gray    { color: var(--gray-600) !important; }
.text-center  { text-align: center; }
.font-serif   { font-family: var(--font-serif); }
.font-bold    { font-weight: 700; }

/* ── 4. CONTAINER & GRID ───────────────────────────────────── */
.container     { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm  { max-width: 740px; }
.container-lg  { max-width: 1360px; }

.grid   { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

@media (max-width:1024px) { .grid-4 { grid-template-columns:repeat(2,1fr); } }
@media (max-width:768px)  { .grid-3,.grid-4 { grid-template-columns:repeat(2,1fr); } }
@media (max-width:580px)  { .grid-2,.grid-3,.grid-4 { grid-template-columns:1fr; } }

/* ── 5. UTILITÁRIOS ────────────────────────────────────────── */
.section    { padding: 88px 0; }
.section-sm { padding: 52px 0; }
.section-alt    { background: var(--off-white); }
.section-dark   { background: var(--green-dark); }
.section-deeper { background: var(--green-deep); }

/* ── CRÍTICO: .section-navy DEVE existir — usado em todo o site ── */
.section-navy   { background: var(--green-dark); }

/* journey-item: sempre com fundo verde independente do arquivo CSS carregado */
.journey-item {
  background: var(--green-mid) !important;
  border: 1px solid rgba(200,169,110,.2);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative; overflow: hidden;
  transition: background var(--transition), transform var(--transition);
}
.journey-item:hover { background: var(--green-dark) !important; transform: translateY(-3px); }
.journey-num-bg {
  position: absolute; top: 2px; right: 12px;
  font-family: var(--font-serif); font-size: 5.5rem; font-weight: 700;
  color: rgba(200,169,110,.12); line-height: 1;
  pointer-events: none; user-select: none;
}
.journey-step { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.journey-age  { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 6px; }
.journey-role { font-size: .9375rem; font-weight: 700; color: rgba(255,255,255,.9); margin-bottom: 10px; }
.journey-desc { font-size: .8125rem; color: rgba(255,255,255,.65); line-height: 1.65; }

/* section-header light (para seções escuras) */
.section-header.light h2, .section-header.light h3 { color: var(--white) !important; }
.section-header.light p { color: rgba(255,255,255,.65) !important; }

.hidden { display: none !important; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }

/* Seção header block */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p  { font-size: 1.0625rem; }
.section-header.left { text-align: left; max-width: none; margin-bottom: 36px; }
.section-header.light h2 { color: var(--white); }
.section-header.light p  { color: rgba(255,255,255,.65); }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-pale);
  border: 1px solid rgba(200,169,110,.25);
  border-radius: var(--radius-full); padding: 5px 14px; margin-bottom: 14px;
}

/* Divisor verde */
.divider-gold {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--green-dark), var(--gold));
  border-radius: var(--radius-full); margin: 16px 0 24px;
}
.divider-gold.center { margin: 16px auto 24px; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .8125rem; color: rgba(255,255,255,.5); margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,.75); transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb svg { width: 12px; height: 12px; }

/* Badge */
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--radius-full);
}
.badge-gold   { background: var(--gold-pale); color: var(--gold); }
.badge-green  { background: var(--green-light); color: var(--green-dark); }
.badge-white  { background: rgba(255,255,255,.15); color: var(--white); }
.badge-ok     { background: #DCFCE7; color: #15803D; }
.badge-warn   { background: #FEF9C3; color: #A16207; }
.badge-info   { background: #DBEAFE; color: #1D4ED8; }
.badge-off    { background: var(--gray-100); color: var(--gray-600); }

/* Alert */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: .9rem; margin-bottom: 16px; display: none; border-left: 3px solid; }
.alert.show { display: block; }
.alert-success { background: #F0FDF4; border-color: #22C55E; color: #15803D; }
.alert-error   { background: #FEF2F2; border-color: #EF4444; color: #DC2626; }
.alert-info    { background: #EFF6FF; border-color: #3B82F6; color: #1D4ED8; }

/* Notice */
.notice {
  background: #FFFBEB; border: 1px solid #FDE68A; border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 14px 18px; font-size: .875rem; color: var(--gray-600); margin-bottom: 24px;
}
.notice strong { color: var(--green-dark); }

/* Spinner */
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--gray-200); border-top-color: var(--green-dark); border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
.content-loader { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 160px; font-size: .9rem; color: var(--gray-400); }
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state svg { width: 44px; height: 44px; color: var(--gray-200); margin: 0 auto 12px; }
.empty-state h4 { margin-bottom: 6px; color: var(--gray-600); font-family: var(--font-sans); }
.empty-state p  { font-size: .875rem; }

/* ── 6. HEADER ─────────────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: var(--green-dark);  /* verde escuro desde o início, como demolaydf */
  border-bottom: 1px solid rgba(200,169,110,.2);
  transition: background var(--transition), box-shadow var(--transition);
}
#site-header.scrolled {
  background: var(--green-deep);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 40px; height: 40px;
  background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 22px; height: 22px; fill: var(--green-dark); }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-serif); font-size: .9375rem; font-weight: 700;
  color: var(--white); line-height: 1.1;
}
.logo-sub {
  font-size: .65rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); line-height: 1;
}

/* Nav desktop */
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 7px 14px; border-radius: var(--radius);
  font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.85);
  transition: var(--transition); white-space: nowrap; display: flex; align-items: center; gap: 4px;
}
.nav-link:hover, .nav-link.active {
  color: var(--white); background: rgba(255,255,255,.12);
}
.nav-link.active { background: rgba(200,169,110,.18); color: var(--gold); }

/* Dropdown */
.nav-item { position: relative; }
.nav-drop-btn {
  padding: 7px 14px; border-radius: var(--radius);
  font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.85);
  cursor: pointer; display: flex; align-items: center; gap: 4px;
  transition: var(--transition); background: none; border: none;
}
.nav-drop-btn:hover { color: var(--white); background: rgba(255,255,255,.12); }
.nav-drop-btn svg { width: 12px; height: 12px; transition: transform var(--transition); }
.nav-item:hover .nav-drop-btn svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--green-dark); border: 1px solid rgba(200,169,110,.2);
  border-radius: var(--radius-lg); min-width: 200px;
  padding: 6px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  pointer-events: none; z-index: 200;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0); pointer-events: auto;
}
.nav-dropdown a {
  display: block; padding: 9px 13px; border-radius: var(--radius-sm);
  font-size: .875rem; color: rgba(255,255,255,.8); transition: var(--transition);
}
.nav-dropdown a:hover { background: rgba(200,169,110,.15); color: var(--gold); }

/* Ações direita */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.btn-header-admin {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: var(--radius-full);
  font-size: .8125rem; font-weight: 700; letter-spacing: .04em;
  background: var(--gold); color: var(--green-dark);
  transition: var(--transition); border: none; cursor: pointer;
  white-space: nowrap; text-decoration: none;
}
.btn-header-admin:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Hambúrguer — visível em todas as telas */
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius);
  color: var(--white); transition: var(--transition);
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); cursor: pointer;
}
.nav-toggle:hover { background: rgba(255,255,255,.16); }
.nav-toggle:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-toggle svg { width: 20px; height: 20px; display: block; }

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column;
  background: var(--green-deep);
  border-top: 1px solid rgba(200,169,110,.15);
  padding: 10px 0 20px;
  position: absolute;
  top: 100%; left: 0; right: 0;
  z-index: 600;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 24px; font-size: .9375rem; font-weight: 500;
  color: rgba(255,255,255,.85); transition: var(--transition); display: block;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--gold); background: rgba(200,169,110,.12); }
.mobile-menu .mobile-sub { padding-left: 44px !important; font-size: .875rem !important; opacity: .75; }

/* ── 7. HERO ───────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--green-dark);
  overflow: hidden; padding-top: var(--header-h);
}
.hero .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../assets/images/hero-bg.jpg') center/cover no-repeat; opacity: .15;
}
.hero .hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(31,65,39,.96) 0%, rgba(52,87,48,.88) 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(rgba(200,169,110,.05) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero-content h1 { color: #fff; margin-bottom: 20px; }
.hero-content h1 span { color: var(--gold); }
.hero-content p { color: rgba(255,255,255,.72); font-size: 1.0625rem; margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Scroll indicator */
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll span { display: block; width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.2); border-radius: 12px; position: relative; }
.hero-scroll span::after {
  content: ''; width: 4px; height: 8px; background: var(--gold); border-radius: 2px;
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  animation: scrollBounce 1.8s ease infinite;
}
@keyframes scrollBounce { 0%,100%{top:6px;opacity:1} 50%{top:18px;opacity:.3} }

/* Page hero */
.page-hero {
  background: var(--green-dark);
  padding: calc(var(--header-h) + 48px) 0 56px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 40%, transparent);
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero > .container > p { color: rgba(255,255,255,.65); }

/* ── 8. BOTÕES ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px; border-radius: var(--radius-full);
  font-size: .9375rem; font-weight: 700; letter-spacing: .02em;
  border: 2px solid transparent; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
  font-family: var(--font-sans);
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: var(--gold); color: var(--green-dark); border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,169,110,.3); }

.btn-green {
  background: var(--green-dark); color: var(--white); border-color: var(--green-dark);
}
.btn-green:hover { background: var(--green-mid); border-color: var(--green-mid); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* alias compatibilidade */
.btn-navy { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.btn-navy:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

.btn-outline-gold { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--green-dark); }

.btn-outline-green { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn-outline-green:hover { background: var(--green-dark); color: var(--white); }
.btn-outline-navy { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn-outline-navy:hover { background: var(--green-dark); color: var(--white); }

.btn-sm  { padding: 7px 16px; font-size: .8125rem; }
.btn-lg  { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Admin */
.btn-edit { padding: 5px 13px; font-size: .78rem; font-weight: 600; border-radius: var(--radius-sm); border: 1.5px solid var(--green-dark); color: var(--green-dark); background: transparent; cursor: pointer; transition: var(--transition); }
.btn-edit:hover { background: var(--green-dark); color: var(--white); }
.btn-del  { padding: 5px 13px; font-size: .78rem; font-weight: 600; border-radius: var(--radius-sm); border: 1.5px solid #DC2626; color: #DC2626; background: transparent; cursor: pointer; transition: var(--transition); }
.btn-del:hover { background: #DC2626; color: var(--white); }

/* ── 9. CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xs); transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-body { padding: 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--gray-200); }

/* Notícia */
.news-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-img svg { width: 36px; height: 36px; color: var(--gray-200); }
.news-cat { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 8px; }
.news-date { font-size: .8rem; color: var(--gray-400); margin-bottom: 7px; }
.news-title { font-size: 1.0625rem; margin-bottom: 10px; font-family: var(--font-serif); line-height: 1.3; }
.news-excerpt { font-size: .875rem; color: var(--gray-600); margin-bottom: 14px; }
.read-more { font-size: .875rem; font-weight: 600; color: var(--green-dark); display: inline-flex; align-items: center; gap: 5px; transition: var(--transition); }
.read-more:hover { color: var(--gold); gap: 9px; }
.read-more svg { width: 15px; height: 15px; }

/* Evento */
.event-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; gap: 18px; align-items: flex-start;
  box-shadow: var(--shadow-xs); transition: var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.event-date {
  flex-shrink: 0; width: 58px;
  background: var(--green-dark); border-radius: var(--radius);
  padding: 10px 6px; text-align: center; border-bottom: 3px solid var(--gold);
}
.event-date .day { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--white); line-height: 1; }
.event-date .mon { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.event-info h4 { font-size: .9375rem; margin-bottom: 6px; }
.event-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.event-meta span { font-size: .8rem; color: var(--gray-400); display: flex; align-items: center; gap: 4px; }
.event-meta svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Membro */
.member-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; text-align: center; box-shadow: var(--shadow-xs); transition: var(--transition); }
.member-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.member-card.featured { border-color: rgba(200,169,110,.4); border-top: 3px solid var(--gold); }
.member-avatar { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: linear-gradient(135deg, var(--green-dark), var(--green-mid)); display: flex; align-items: center; justify-content: center; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-avatar svg { width: 44px; height: 44px; fill: rgba(255,255,255,.2); }
.member-avatar-placeholder { width: 100%; aspect-ratio: 3/4; background: linear-gradient(135deg, var(--green-dark), var(--green-mid)); display: flex; align-items: center; justify-content: center; }
.member-avatar-placeholder svg { width: 44px; height: 44px; fill: rgba(255,255,255,.2); }
.member-info { padding: 16px; }
.member-name { font-size: 1rem; margin-bottom: 4px; }
.member-role { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 6px; }
.member-desc { font-size: .8125rem; color: var(--gray-600); }

/* Priorado card (sistema busca) */
.p-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); cursor: pointer; transition: box-shadow .25s, transform .25s; display: flex; flex-direction: column; }
.p-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.pc-head { background: var(--green-dark); padding: 18px 18px 16px; position: relative; overflow: hidden; }
.pc-head::before { content:''; position:absolute; top:-40px; right:-40px; width:120px; height:120px; background:radial-gradient(circle,rgba(200,169,110,.12),transparent 70%); }
.pc-num { font-family:var(--font-serif); font-size:2.5rem; font-weight:700; color:rgba(200,169,110,.15); position:absolute; bottom:-4px; right:12px; line-height:1; pointer-events:none; user-select:none; }
.pc-regiao { font-size:.68rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--gold); margin-bottom:7px; }
.pc-nome { font-family:var(--font-serif); font-size:.9375rem; color:#fff; line-height:1.3; padding-right:40px; }
.pc-shield { position:absolute; top:14px; right:14px; width:34px; height:34px; background:rgba(200,169,110,.15); border:1px solid rgba(200,169,110,.25); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.pc-shield svg, .pc-shield img { width:18px; height:18px; }
.pc-body { padding:14px 18px 10px; flex:1; }
.pc-city { display:flex; align-items:center; gap:5px; font-size:.8125rem; font-weight:600; color:var(--green-dark); margin-bottom:8px; }
.pc-city svg { width:13px; height:13px; color:var(--gold); flex-shrink:0; }
.pc-desc { font-size:.8125rem; color:var(--gray-600); line-height:1.6; }
.pc-foot { padding:10px 18px; border-top:1px solid var(--gray-200); display:flex; align-items:center; justify-content:space-between; }
.pc-status { display:flex; align-items:center; gap:5px; font-size:.75rem; font-weight:600; color:#15803D; }
.pc-status::before { content:''; width:7px; height:7px; background:#22C55E; border-radius:50%; flex-shrink:0; }
.pc-more { font-size:.8125rem; font-weight:600; color:var(--green-dark); display:flex; align-items:center; gap:4px; transition:gap .2s; }
.p-card:hover .pc-more { gap:8px; color:var(--gold); }
.pc-more svg { width:15px; height:15px; }

/* ── 10. IMPACTO (números) ─────────────────────────────────── */
.impact-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid rgba(200,169,110,.2);
  border-radius: var(--radius-xl); overflow: hidden;
}
@media (max-width:768px) { .impact-grid { grid-template-columns: repeat(2,1fr); } }
.impact-item {
  padding: 36px 20px; text-align: center;
  border-right: 1px solid rgba(200,169,110,.15);
  transition: background var(--transition); cursor: default;
}
.impact-item:last-child { border-right: none; }
.impact-item:hover { background: rgba(200,169,110,.06); }
.impact-num {
  display: block; font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700;
  color: var(--gold); line-height: 1; margin-bottom: 6px;
}
.impact-label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }

/* ── 11. JORNADA (steps numerados) ────────────────────────── */
.journey-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }
@media (max-width:900px) { .journey-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:520px)  { .journey-grid { grid-template-columns: 1fr; } }
.journey-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(200,169,110,.1);
  border-radius: var(--radius-lg); padding: 32px 24px;
  position: relative; overflow: hidden; transition: background var(--transition);
}
.journey-item:hover { background: rgba(200,169,110,.07); }
.journey-num-bg { position: absolute; top: 2px; right: 12px; font-family: var(--font-serif); font-size: 5.5rem; font-weight: 700; color: rgba(200,169,110,.08); line-height: 1; pointer-events: none; user-select: none; }
.journey-step { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.journey-age { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 6px; }
.journey-role { font-size: .9375rem; font-weight: 700; color: rgba(255,255,255,.85); margin-bottom: 10px; }
.journey-desc { font-size: .8125rem; color: rgba(255,255,255,.5); line-height: 1.65; }

/* ── 12. FORMULÁRIOS ───────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .8125rem; font-weight: 600; color: var(--green-dark); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-size: .9375rem; color: var(--dark); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(31,65,39,.1); }
.form-group input.error, .form-group textarea.error { border-color: #DC2626; }
.form-error { font-size: .78rem; color: #DC2626; margin-top: 4px; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width:580px) { .form-row { grid-template-columns: 1fr; } }
.form-check { display: flex; align-items: center; gap: 10px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green-dark); cursor: pointer; flex-shrink: 0; border: none; padding: 0; }
.form-check label { margin: 0; cursor: pointer; font-weight: 500; font-size: .9rem; }
.form-hint { font-size: .78rem; color: var(--gray-400); margin-top: 5px; }

/* Dark form (priorados search) */
.form-dark input, .form-dark select {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: var(--white);
}
.form-dark input::placeholder { color: rgba(255,255,255,.3); }
.form-dark input:focus, .form-dark select:focus { border-color: var(--gold); background: rgba(255,255,255,.12); }
.form-dark select option { background: var(--green-dark); color: var(--white); }
.form-dark label { color: rgba(255,255,255,.65); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ── 13. MODAIS ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,8,2,.65);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: var(--radius-xl);
  max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(.96) translateY(12px); transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; background: var(--white); z-index: 2;
}
.modal-header h3 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 700; }
.modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gray-100); border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gray-600); transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); }
.modal-close svg { width: 14px; height: 14px; }
.modal-body { padding: 22px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 10px; }

/* Priorado detail modal */
.pm-overlay { position:fixed; inset:0; background:rgba(0,8,2,.78); z-index:8000; display:flex; align-items:center; justify-content:center; padding:20px; opacity:0; visibility:hidden; transition:opacity .3s,visibility .3s; backdrop-filter:blur(4px); }
.pm-overlay.open { opacity:1; visibility:visible; }
.pm-box { background:var(--white); border-radius:var(--radius-xl); max-width:600px; width:100%; max-height:92vh; overflow-y:auto; box-shadow:0 24px 64px rgba(0,0,0,.3); transform:scale(.95) translateY(16px); transition:transform .35s cubic-bezier(.22,1,.36,1); }
.pm-overlay.open .pm-box { transform:scale(1) translateY(0); }
.pm-header { background:var(--green-dark); padding:26px 26px 22px; position:relative; overflow:hidden; }
.pm-header::after { content:''; position:absolute; bottom:0; left:0; right:0; height:2px; background:linear-gradient(90deg,transparent,var(--gold),transparent); }
.pm-num-bg { position:absolute; bottom:-10px; right:16px; font-family:var(--font-serif); font-size:5rem; font-weight:700; color:rgba(200,169,110,.09); line-height:1; pointer-events:none; user-select:none; }
.pm-close { position:absolute; top:14px; right:14px; width:30px; height:30px; background:rgba(255,255,255,.1); border:none; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; color:rgba(255,255,255,.7); transition:var(--transition); }
.pm-close:hover { background:rgba(255,255,255,.2); color:#fff; }
.pm-close svg { width:15px; height:15px; }
.pm-badge { display:inline-block; font-size:.68rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--gold); background:rgba(200,169,110,.12); border:1px solid rgba(200,169,110,.25); padding:3px 10px; border-radius:var(--radius-full); margin-bottom:10px; }
.pm-title { font-family:var(--font-serif); font-size:1.3rem; color:#fff; line-height:1.25; padding-right:36px; margin-bottom:14px; }
.pm-chips { display:flex; gap:12px; flex-wrap:wrap; }
.pm-chip { display:flex; align-items:center; gap:6px; font-size:.8125rem; color:rgba(255,255,255,.65); }
.pm-chip svg { width:13px; height:13px; color:var(--gold); flex-shrink:0; }
.pm-body { padding:22px 26px; }
.pm-section { margin-bottom:20px; }
.pm-section-title { font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--green-dark); font-family:var(--font-sans); margin-bottom:8px; }
.pm-section p { font-size:.9375rem; color:var(--gray-600); line-height:1.75; }
.pm-contact { display:flex; align-items:center; gap:10px; font-size:.875rem; color:var(--gray-600); padding:10px 0; border-bottom:1px solid var(--gray-200); }
.pm-contact:last-child { border-bottom:none; }
.pm-contact svg { width:16px; height:16px; color:var(--green-dark); flex-shrink:0; }
.pm-social { display:flex; gap:12px; padding:10px 0; border-bottom:1px solid var(--gray-200); }
.pm-social:last-child { border-bottom:none; }
.pm-social a { display:inline-flex; align-items:center; gap:8px; font-size:.875rem; color:var(--green-dark); font-weight:600; text-decoration:none; transition:var(--transition); }
.pm-social a:hover { color:var(--gold); }
.pm-social svg { width:20px; height:20px; color:var(--green-dark); flex-shrink:0; }
.pm-footer { padding:14px 26px; border-top:1px solid var(--gray-200); display:flex; gap:10px; flex-wrap:wrap; }

/* ── 14. GALERIA / LIGHTBOX ────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; }
.gallery-item { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); cursor: pointer; background: var(--gray-100); position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(31,65,39,.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay svg { width: 28px; height: 28px; color: var(--white); }
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer; line-height: 1; }

/* ── 15. DOCUMENTOS ────────────────────────────────────────── */
.doc-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-xs); transition: var(--transition);
}
.doc-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.doc-icon { flex-shrink: 0; width: 46px; height: 46px; background: var(--gold-pale); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.doc-icon svg { width: 22px; height: 22px; color: var(--green-dark); }
.doc-info { flex: 1; min-width: 0; }
.doc-info h4 { font-size: .9375rem; margin-bottom: 3px; font-family: var(--font-sans); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-info span { font-size: .8125rem; color: var(--gray-400); }
.doc-download { flex-shrink: 0; padding: 7px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: .8125rem; font-weight: 600; color: var(--green-dark); display: flex; align-items: center; gap: 6px; transition: var(--transition); cursor: pointer; background: none; }
.doc-download:hover { border-color: var(--green-dark); background: var(--green-light); }
.doc-download svg { width: 14px; height: 14px; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn { padding: 7px 16px; border-radius: var(--radius-full); font-size: .8125rem; font-weight: 600; border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-600); cursor: pointer; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { border-color: var(--green-dark); color: var(--green-dark); background: var(--green-light); }

/* ── 16. ADMIN ─────────────────────────────────────────────── */
.admin-page { min-height: 100vh; display: flex; background: var(--gray-50, #F7F7F7); }

/* Login */
.login-wrap { min-height: 100vh; display: flex; background: var(--green-dark); position: relative; overflow: hidden; }
.login-wrap::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(200,169,110,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(200,169,110,.05) 1px, transparent 1px); background-size: 48px 48px; }
.login-left { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 48px; position: relative; z-index: 1; }
.login-brand { max-width: 400px; }
.login-brand h1 { font-family: var(--font-serif); font-size: clamp(1.8rem,3vw,2.5rem); color: #fff; line-height: 1.2; margin-bottom: 16px; }
.login-brand h1 span { color: var(--gold); }
.login-brand p { color: rgba(255,255,255,.55); font-size: .9375rem; line-height: 1.7; }
.login-right { width: 460px; flex-shrink: 0; background: #fff; display: flex; align-items: center; justify-content: center; padding: 60px 48px; position: relative; z-index: 1; }
@media (max-width:900px) { .login-left { display: none; } .login-right { width: 100%; padding: 40px 24px; } }

/* Sidebar */
.admin-sidebar { width: 240px; flex-shrink: 0; background: var(--green-dark); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-brand { padding: 18px; border-bottom: 1px solid rgba(200,169,110,.15); }
.sidebar-brand .sb-name { font-family: var(--font-serif); font-size: .9375rem; color: var(--white); }
.sidebar-brand .sb-sub  { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.admin-nav { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-section-label { font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.25); padding: 10px 10px 4px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.65); transition: var(--transition); text-decoration: none; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(200,169,110,.15); color: var(--gold); }
.admin-nav a svg { width: 17px; height: 17px; flex-shrink: 0; }
.sidebar-footer { padding: 12px 10px; border-top: 1px solid rgba(200,169,110,.12); }

/* Main admin */
.admin-main { flex: 1; overflow: auto; display: flex; flex-direction: column; }
.admin-header { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 0 28px; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.admin-header h1 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 700; }
.admin-user { font-size: .8125rem; color: var(--gray-400); }
.admin-body { padding: 28px; flex: 1; }

/* Stats cards */
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 28px; }
@media (max-width:900px) { .admin-stats { grid-template-columns: repeat(2,1fr); } }
.stat-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-xs); }
.stat-icon { width: 44px; height: 44px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon.green { background: var(--green-light); } .stat-icon.green svg { color: var(--green-dark); }
.stat-icon.gold  { background: var(--gold-pale); }  .stat-icon.gold  svg { color: var(--gold); }
.stat-icon.blue  { background: #DBEAFE; }            .stat-icon.blue  svg { color: #1D4ED8; }
.stat-icon.red   { background: #FEE2E2; }            .stat-icon.red   svg { color: #DC2626; }
.stat-icon svg { width: 22px; height: 22px; }
.stat-num   { font-size: 1.75rem; font-weight: 700; color: var(--green-dark); font-family: var(--font-serif); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; }

/* Admin card */
.admin-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); margin-bottom: 20px; overflow: hidden; }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--gray-200); }
.admin-card-header h3 { font-size: 1rem; font-family: var(--font-sans); font-weight: 700; }
.admin-card-body { padding: 22px; }

/* Tabela */
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { background: var(--gray-50,#F7F7F7); padding: 10px 14px; text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gray-600); border-bottom: 1px solid var(--gray-200); }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-200); color: var(--dark); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--green-pale); }
.table-actions { display: flex; gap: 7px; }
.table-wrap { overflow-x: auto; }

/* ── 17. FOOTER ────────────────────────────────────────────── */
#site-footer { background: var(--green-deep); border-top: 1px solid rgba(200,169,110,.15); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.07); }
@media (max-width:900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width:520px)  { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.45); line-height: 1.75; margin-top: 14px; }
.footer-logo { display: flex; align-items: center; gap: 11px; }
.footer-logo .fm { width: 38px; height: 38px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-logo .fm svg { width: 20px; height: 20px; fill: var(--green-dark); }
.footer-logo span { font-family: var(--font-serif); font-size: .9375rem; color: var(--white); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social a svg { width: 16px; height: 16px; }
.footer-col h5 { font-family: var(--font-sans); font-size: .875rem; font-weight: 700; color: var(--white); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(200,169,110,.15); }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: .875rem; color: rgba(255,255,255,.45); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { font-size: .8125rem; color: rgba(255,255,255,.3); }
.footer-bottom a { color: var(--gold); }

/* ── 18. ANIMAÇÕES ─────────────────────────────────────────── */
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes fadeUp    { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
@keyframes fadeIn    { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn   { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }
@keyframes shimmer   { 0%{background-position:-800px 0} 100%{background-position:800px 0} }
.anim-up    { animation: fadeUp  .5s cubic-bezier(.22,1,.36,1) both; }
.anim-in    { animation: fadeIn  .4s ease both; }
.anim-scale { animation: scaleIn .4s ease both; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.skeleton { background: linear-gradient(90deg,#F0EDEA 25%,#E8E4E0 50%,#F0EDEA 75%); background-size: 800px 100%; animation: shimmer 1.6s infinite; border-radius: var(--radius); }
mark.hl { background: rgba(200,169,110,.25); color: var(--green-dark); border-radius: 2px; padding: 0 2px; }

/* ── 19. GLOBAL LOADER ─────────────────────────────────────── */
.global-loader {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.global-loader.show {
  opacity: 1;
  visibility: visible;
}
.global-loader::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,161,91,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,161,91,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.loader-content {
  text-align: center;
  color: #fff;
}
.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

/* ── 20. RESPONSIVO ────────────────────────────────────────── */
@media (max-width:1024px) { .admin-sidebar { width: 210px; } }
@media (max-width:900px)  {
  .admin-sidebar { display: none; }
  .admin-sidebar.mobile-open { display: flex; position: fixed; top:0; left:0; bottom:0; z-index:500; width:260px; }
}
@media (max-width:768px) {
  .main-nav     { display: none !important; }
  .btn-header-admin { display: none !important; }
  .nav-toggle   { display: flex !important; }
  .section      { padding: 60px 0; }
  .section-sm   { padding: 40px 0; }
  .hero         { min-height: auto; padding-bottom: 72px; }
  .impact-grid  { grid-template-columns: repeat(2,1fr); }
  .journey-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:520px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .journey-grid { grid-template-columns: 1fr; }
  .admin-body   { padding: 16px; }
}
