/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 /* ═══════════════════════════════════════════════════════
   Prefeitura Municipal de São Miguel do Tapuio – PI
   Estilos Compartilhados
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #0d3b6e;
  --primary-light: #1a5fa8;
  --secondary:     #1b8a3d;
  --accent:        #f5a623;
  --accent-dark:   #c8841a;
  --bg:            #f4f6f9;
  --surface:       #ffffff;
  --text:          #1c2b3a;
  --muted:         #6b7c93;
  --border:        #dde3ed;
  --danger:        #dc2626;
  --info:          #0891b2;
  --purple:        #7c3aed;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; }

/* ── TOP BAR ── */
.topbar {
  background: var(--primary);
  color: #c8d8ec;
  font-size: 0.75rem;
  padding: 6px 0;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.topbar a { color: #c8d8ec; transition: color .2s; }
.topbar a:hover { color: var(--accent); }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { font-size: 0.8rem; }

/* ── HEADER ── */
header {
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 88px;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo-brasao {
  width: 76px; height: 76px;
  object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.2));
  transition: transform .2s;
}
.logo:hover .logo-brasao { transform: scale(1.04); }
.logo-text h1 { font-size: 1.05rem; font-weight: 700; color: var(--primary); line-height: 1.25; }
.logo-text span { font-size: 0.73rem; color: var(--muted); font-weight: 400; }

/* NAV — escopo apenas ao menu principal do header */
#main-nav { display: flex; align-items: center; gap: 2px; }
#main-nav a {
  padding: 8px 14px; border-radius: 6px;
  font-size: 0.82rem; font-weight: 500; color: var(--text);
  transition: background .2s, color .2s; white-space: nowrap;
}
#main-nav a:hover, #main-nav a.active { background: var(--primary); color: #fff; }
.btn-transparencia {
  background: var(--accent); color: var(--primary) !important;
  font-weight: 700 !important;
}
.btn-transparencia:hover { background: var(--accent-dark) !important; color: #fff !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 0.78rem;
}
.breadcrumb-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 8px; color: var(--muted);
}
.breadcrumb-inner a { color: var(--primary-light); }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-inner i { font-size: 0.6rem; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner {
  max-width: 1200px; margin: 0 auto; position: relative; z-index: 1;
}
.page-hero h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem; color: #fff; margin-bottom: 12px;
}
.page-hero p { color: #c8d8ec; font-size: 1rem; max-width: 600px; }
.page-hero-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,.15); color: var(--accent);
  font-size: 1.4rem; margin-bottom: 16px;
}

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 40px; }
.section-label {
  display: inline-block;
  background: rgba(27,138,61,.1); color: var(--secondary);
  font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 10px;
}
.section-label.blue { background: rgba(13,59,110,.1); color: var(--primary); }
.section-label.gold { background: rgba(245,166,35,.12); color: var(--accent-dark); }
.section-label.white { background: rgba(255,255,255,.1); color: var(--accent); }
.section-header h3 { font-size: 1.9rem; font-weight: 800; color: var(--primary); }
.section-header p { color: var(--muted); margin-top: 8px; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent); color: var(--primary);
  padding: 13px 28px; border-radius: 8px; font-weight: 700; font-size: 0.9rem;
  transition: transform .2s, box-shadow .2s; box-shadow: 0 4px 14px rgba(245,166,35,.4);
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,166,35,.5); }
.btn-outline {
  border: 2px solid var(--border); color: var(--text);
  padding: 11px 26px; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  transition: border-color .2s, color .2s; background: none;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-white {
  border: 2px solid rgba(255,255,255,.5); color: #fff;
  padding: 11px 26px; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  transition: background .2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-success { background: var(--secondary); color: #fff; }
.btn-success:hover { background: #156b30; box-shadow: 0 8px 20px rgba(27,138,61,.4); }

/* ── CARDS ── */
.card {
  background: var(--surface); border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden;
}
.card-body { padding: 24px; }

/* ── SERVICE CARDS ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}
.service-card {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 20px; text-align: center; background: var(--bg);
  transition: border-color .2s, transform .2s, box-shadow .2s; cursor: pointer;
}
.service-card:hover {
  border-color: var(--primary-light); transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(13,59,110,.1);
}
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.service-card h4 { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.s1 { background: rgba(13,59,110,.1);   color: var(--primary); }
.s2 { background: rgba(27,138,61,.1);   color: var(--secondary); }
.s3 { background: rgba(245,166,35,.12); color: var(--accent-dark); }
.s4 { background: rgba(37,99,235,.1);   color: #2563eb; }
.s5 { background: rgba(220,38,38,.1);   color: var(--danger); }
.s6 { background: rgba(124,58,237,.1);  color: var(--purple); }
.s7 { background: rgba(8,145,178,.1);   color: var(--info); }
.s8 { background: rgba(217,119,6,.1);   color: #d97706; }
.s9 { background: rgba(5,150,105,.1);   color: #059669; }
.s10{ background: rgba(239,68,68,.1);   color: #ef4444; }

/* ── NEWS CARDS ── */
.news-card {
  background: var(--surface); border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.news-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  position: relative;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--primary);
  font-size: 0.68rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.news-card-body { padding: 20px; }
.news-meta { color: var(--muted); font-size: 0.74rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.news-card-body h4 { font-size: 0.95rem; font-weight: 700; color: var(--primary); line-height: 1.4; margin-bottom: 8px; }
.news-card-body p { font-size: 0.82rem; color: var(--muted); }
.news-link { color: var(--primary-light); font-weight: 600; font-size: 0.8rem; margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; }

/* ── NEWS ITEM (horizontal) ── */
.news-item {
  background: var(--surface); border-radius: 12px; overflow: hidden;
  display: flex; box-shadow: 0 1px 8px rgba(0,0,0,.05);
  cursor: pointer; transition: box-shadow .2s, transform .2s;
}
.news-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateX(2px); }
.news-item-img { width: 100px; flex-shrink: 0; }
.news-item-img div { width: 100%; height: 100%; min-height: 80px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.news-item-body { padding: 14px 16px; }
.news-item-body .cat { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: var(--secondary); letter-spacing: .06em; }
.news-item-body h5 { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.35; margin: 4px 0; }
.news-item-body span { font-size: 0.7rem; color: var(--muted); }

/* ── SIDEBAR ── */
.sidebar-widget {
  background: var(--surface); border-radius: 14px;
  padding: 22px; box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.widget-title {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--primary); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--accent);
  display: flex; align-items: center; gap: 8px;
}
.links-list li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text); transition: color .2s;
}
.links-list li:last-child a { border-bottom: none; }
.links-list li a:hover { color: var(--primary); }
.links-list li a i { color: var(--accent); width: 16px; text-align: center; }

/* ── EVENT WIDGET ── */
.event-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.event-item:last-child { border-bottom: none; padding-bottom: 0; }
.event-date { display: flex; align-items: flex-start; gap: 10px; }
.event-day {
  background: var(--primary); color: #fff;
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.event-day .d { font-size: 1rem; font-weight: 800; }
.event-day .m { font-size: 0.55rem; text-transform: uppercase; font-weight: 500; }
.event-info h5 { font-size: 0.8rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.event-info span { font-size: 0.7rem; color: var(--muted); }

/* ── STATUS BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.badge-success { background: rgba(27,138,61,.1); color: var(--secondary); }
.badge-warning { background: rgba(245,166,35,.12); color: var(--accent-dark); }
.badge-info    { background: rgba(8,145,178,.1);  color: var(--info); }
.badge-danger  { background: rgba(220,38,38,.1);  color: var(--danger); }
.badge-primary { background: rgba(13,59,110,.1);  color: var(--primary); }

/* ── PROGRESS BAR ── */
.progress { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.progress-bar { height: 100%; border-radius: 4px; background: var(--secondary); transition: width .6s ease; }
.progress-bar.primary { background: var(--primary-light); }
.progress-bar.accent  { background: var(--accent); }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
thead { background: var(--primary); color: #fff; }
thead th { padding: 14px 16px; font-size: 0.8rem; font-weight: 600; text-align: left; }
tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(13,59,110,.03); }
tbody td { padding: 12px 16px; font-size: 0.83rem; color: var(--text); }

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-label span { color: var(--danger); }
.form-control {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.88rem; font-family: 'Inter', sans-serif;
  color: var(--text); background: var(--surface);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-control:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(26,95,168,.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7c93' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.74rem; color: var(--muted); margin-top: 5px; }

/* ── SEARCH BAR ── */
.search-bar {
  display: flex; gap: 0; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; background: var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.search-bar input {
  flex: 1; padding: 12px 16px; border: none; outline: none;
  font-size: 0.88rem; color: var(--text);
}
.search-bar button {
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  padding: 12px 20px; font-size: 0.9rem; transition: background .2s;
}
.search-bar button:hover { background: var(--primary-light); }

/* ── FILTER TABS ── */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-tab {
  padding: 7px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--muted); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s; background: var(--surface);
}
.filter-tab.active, .filter-tab:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── GALLERY ── */
.gallery-grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  border-radius: 10px; overflow: hidden; position: relative; cursor: pointer;
  aspect-ratio: 4/3; background: var(--primary-light);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(13,59,110,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 1.8rem; }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3); font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

/* ── STATS ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center;
}
.stat-item i { font-size: 2rem; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.stat-num { font-size: 2.8rem; font-weight: 800; color: #fff; line-height: 1; font-family: 'Merriweather', serif; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,.75); margin-top: 6px; }
.stats-section { background: var(--secondary); padding: 60px 24px; }
.stats-section-primary { background: var(--primary); padding: 60px 24px; }

/* ── TRANSPARENCY CARDS ── */
.transparency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trans-card {
  background: var(--surface); border-radius: 14px; padding: 28px;
  border-top: 4px solid var(--primary); box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.trans-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.trans-card i { font-size: 2rem; color: var(--primary); margin-bottom: 16px; }
.trans-card h4 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.trans-card p { font-size: 0.82rem; color: var(--muted); }
.trans-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--primary-light); }
.trans-card.green { border-top-color: var(--secondary); }
.trans-card.green i { color: var(--secondary); }
.trans-card.gold { border-top-color: var(--accent-dark); }
.trans-card.gold i { color: var(--accent-dark); }
.trans-card.red  { border-top-color: var(--danger); }
.trans-card.red  i { color: var(--danger); }
.trans-card.info { border-top-color: var(--info); }
.trans-card.info i { color: var(--info); }

/* ── PROFILE CARD ── */
.profile-card {
  background: var(--surface); border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.profile-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 40px 32px; text-align: center; color: #fff;
}
.profile-avatar {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px;
  background: rgba(255,255,255,.2); display: flex; align-items: center;
  justify-content: center; font-size: 3rem; color: rgba(255,255,255,.7);
  border: 4px solid rgba(255,255,255,.3);
}
.profile-header h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.profile-header p { color: var(--accent); font-weight: 500; font-size: 0.9rem; }
.profile-body { padding: 32px; }

/* ── ALERT BOX ── */
.alert {
  padding: 16px 20px; border-radius: 10px; font-size: 0.85rem;
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px;
}
.alert i { margin-top: 2px; flex-shrink: 0; }
.alert-info { background: rgba(8,145,178,.08); border: 1px solid rgba(8,145,178,.2); color: #0e7490; }
.alert-success { background: rgba(27,138,61,.08); border: 1px solid rgba(27,138,61,.2); color: #155724; }
.alert-warning { background: rgba(245,166,35,.1); border: 1px solid rgba(245,166,35,.3); color: #92400e; }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before { content: ''; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface); box-shadow: 0 0 0 2px var(--primary); }
.timeline-date { font-size: 0.74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.timeline-title { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.timeline-body { font-size: 0.82rem; color: var(--muted); }

/* ── INFO BOX ── */
.info-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border-radius: 12px; padding: 20px;
  border-left: 4px solid var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.05);
  margin-bottom: 14px;
}
.info-box i { font-size: 1.2rem; color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.info-box h5 { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.info-box p { font-size: 0.8rem; color: var(--muted); }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.page-btn {
  width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--muted); cursor: pointer;
  transition: background .2s, color .2s; background: var(--surface);
}
.page-btn.active, .page-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── PAGY NAV (paginação gerada pelo helper pagy_nav) ── */
.pagy { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagy a, .pagy span {
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: 8px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
  background: var(--surface); text-decoration: none;
  transition: background .2s, color .2s;
}
.pagy a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagy .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagy [aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* ── SCROLL TO TOP ── */
#scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  box-shadow: 0 4px 16px rgba(13,59,110,.35);
  opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s;
  pointer-events: none;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#scroll-top:hover { background: var(--primary-light); }

/* ── LGPD BANNER ── */
#lgpd-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: #0a2744; color: #c8d8ec;
  padding: 18px 24px; box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; transform: translateY(100%); transition: transform .4s;
}
#lgpd-banner.visible { transform: translateY(0); }
#lgpd-banner p { font-size: 0.82rem; line-height: 1.6; flex: 1; min-width: 200px; }
#lgpd-banner p a { color: var(--accent); }
#lgpd-banner .lgpd-actions { display: flex; gap: 10px; flex-shrink: 0; }
#lgpd-btn-ok { background: var(--accent); color: var(--primary); border: none; padding: 9px 22px; border-radius: 8px; font-weight: 700; font-size: 0.82rem; cursor: pointer; }
#lgpd-btn-ok:hover { background: var(--accent-dark); color: #fff; }
#lgpd-btn-more { background: none; border: 1px solid rgba(255,255,255,.3); color: #c8d8ec; padding: 9px 18px; border-radius: 8px; font-size: 0.82rem; cursor: pointer; }

/* ── FOOTER ── */
footer { background: #0a2744; color: #8fa8c8; padding: 60px 24px 0; }
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand h3 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.footer-brand p { font-size: 0.82rem; line-height: 1.7; }
.footer-brand .logo-icon { margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  color: #8fa8c8; font-size: 0.9rem; transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--accent); color: var(--primary); }
.footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.8rem; color: #8fa8c8; transition: color .2s; display: flex; align-items: center; gap: 7px; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-col ul li a i { font-size: 0.6rem; color: var(--accent); }
.footer-contact p { font-size: 0.8rem; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.footer-contact i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0 30px; font-size: 0.75rem; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: var(--accent); }
.footer-bottom a:hover { text-decoration: underline; }
.lgpd-badge { background: rgba(255,255,255,.06); border-radius: 20px; padding: 4px 12px; font-size: 0.7rem; display: flex; align-items: center; gap: 6px; }
.lgpd-badge i { color: var(--secondary); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-d1 { animation-delay: .1s; }
.fade-up-d2 { animation-delay: .2s; }
.fade-up-d3 { animation-delay: .3s; }

/* ── UTILITY ── */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.82rem; }
.text-xs { font-size: 0.74rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  #main-nav { display: none; }
  #main-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--surface); padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 99;
  }
  .hamburger { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .transparency-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid-full { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-hero h2 { font-size: 1.5rem; }
  .section-header h3 { font-size: 1.5rem; }
  .transparency-grid { grid-template-columns: 1fr; }
  .gallery-grid-full { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-links { display: none; }
  .gallery-grid-full { grid-template-columns: 1fr 1fr; }
}
