/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #0b3d91;
  --primary-dark: #072a66;
  --primary-light: #eef2fa;
  --accent: #c99a2e;
  --ok: #2f7a4d;

  --text: #111827;
  --text-light: #475569;
  --text-faint: #64748b;

  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --line: #e4e7ee;
  --line-dark: rgba(255,255,255,0.16);

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-pill: 40px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 14px;
  --space-4: 20px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 88px;

  --font: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-light);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 16px;
  font-weight: 400;
}

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.section { padding: var(--space-8) 0; }
.section-tight { padding: var(--space-8) 0; }

/* ===== Eyebrow / editorial labels ===== */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.eyebrow.on-dark { color: rgba(255,255,255,0.75); }

.section-title {
  font-family: var(--font);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-3);
  max-width: 640px;
}
.section-title.on-dark { color: #fff; }

.section-lede {
  color: var(--text-faint);
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.7;
}

.section-alt { background: var(--bg-alt); }
.section-title--wide-gap { margin-bottom: var(--space-6); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  height: 50px;
  gap: 8px;
  padding: 0 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--font);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
}
.btn-primary:hover { background: #b98d29; }

.btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  background: transparent;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15,59,130,0.14);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: 0 4px 18px rgba(11,61,145,0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 14px 0;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 36px; }
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-text .name {
  font-family: var(--font);
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
}
.logo-text .role {
  margin-top: 4px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.7rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--text-light);
  position: relative;
  padding: 8px 13px;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover { color: var(--primary-dark); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.active { color: var(--primary-dark); font-weight: 600; }
.main-nav a.active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--primary-dark); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: auto;
  background: var(--primary-dark);
  color: #fff;
  padding: 154px 0 118px;
  overflow: hidden;
}
.hero-content {
  position: relative;
  max-width: 650px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding-bottom: 10px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero h1 span { color: var(--accent); font-weight: 700; }

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  margin-bottom: 30px;
  max-width: 58ch;
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-7);
  align-items: start;
}

.about-image img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-text p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: var(--space-4);
  max-width: 68ch;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.trait-list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.trait-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.trait-list span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ===== Frentes de Atuação (editorial list) ===== */
.frentes-intro .section-lede { max-width: 38ch; }

.frentes-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
  row-gap: 0;
  border-top: 1px solid var(--line);
}

.frente-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-5);
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.2s ease;
}
.frente-item:hover { padding-left: var(--space-2); }

.frente-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: var(--primary);
}
.frente-icon svg {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  flex-shrink: 0;
}

.frente-body h3 {
  font-family: var(--font);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 7px;
}
.frente-body p {
  color: var(--text-light);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 62ch;
  margin: 0;
  text-align: left;
}

/* ===== Números do Mandato ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-block {
  padding: var(--space-6) var(--space-5);
  border-left: 1px solid var(--line);
}
.stat-block:first-child { border-left: none; padding-left: 0; }
.stat-block strong {
  display: block;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--primary-dark);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-block span { color: var(--text-faint); font-size: 0.95rem; line-height: 1.5; }

/* ===== Projetos (editorial list) ===== */
.projetos-list { border-top: 1px solid var(--line); }
.projeto-row {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: var(--space-5);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.projeto-main h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
}
.projeto-main p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; max-width: 62ch; }
.projeto-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 2px;
}
.projeto-num {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.projeto-status {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.projeto-status.aprovado { color: var(--ok); }
.projeto-status.tramitacao { color: #8a6a1c; }
.projeto-row .share-action { grid-column: 1 / -1; }

/* ===== Compartilhar (share action) ===== */
.share-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 2px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-faint);
  cursor: pointer;
  transition: color 0.2s ease;
}
.share-action svg { width: 17px; height: 17px; flex-shrink: 0; }
.share-action:hover { color: var(--primary-dark); }
.share-action.copied { color: var(--ok); }

.conquistas-list .share-action { color: rgba(255,255,255,0.55); }
.conquistas-list .share-action:hover { color: #fff; }
.conquistas-list .share-action.copied { color: var(--accent); }

/* ===== Conquistas (dark, mixed composition) ===== */
.conquistas-section {
  background: var(--primary-dark);
  color: #fff;
}

.conquistas-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.conquistas-intro p { color: rgba(255,255,255,0.68); max-width: 38ch; font-size: 1rem; line-height: 1.7; }

.conquistas-list { border-top: 1px solid var(--line-dark); }
.conquista-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line-dark);
}
.conquista-item:last-child { border-bottom: none; }
.conquista-item .num {
  display: block;
  font-family: var(--font);
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.conquista-item h3 {
  margin-top: 5px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}
.conquista-item p {
  margin-top: 6px;
  color: rgba(255,255,255,0.68);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 60ch;
  text-align: left;
}

.emenda-table { margin-top: var(--space-6); }
.emenda-table h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-3);
}
.emenda-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.94rem;
}
.emenda-row span:first-child { color: rgba(255,255,255,0.72); }
.emenda-row span:last-child { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }

.emenda-total {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}
.emenda-total-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.emenda-total-value {
  margin-top: 8px;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ===== Localização ===== */
.localizacao-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-7);
  align-items: center;
}

.localizacao-info .section-title { margin-bottom: var(--space-4); }

.localizacao-address {
  display: block;
  font-style: normal;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.localizacao-hours {
  color: var(--text-faint);
  font-size: 0.95rem;
  margin-bottom: var(--space-5);
}

.map-container {
  overflow: hidden;
  border-radius: var(--radius-md);
  min-height: 360px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.85);
  padding: var(--space-7) 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 72px;
  align-items: start;
  padding-bottom: var(--space-6);
}

.footer-brand .name {
  display: block;
  color: #fff;
  font-size: clamp(1.75rem, 2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.footer-brand .role {
  display: block;
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}
.footer-brand .description {
  margin-top: 22px;
  color: rgba(255,255,255,0.68);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 34ch;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  margin-bottom: 20px;
}

.footer-col a, .footer-col p, .footer-col address {
  display: block;
  font-size: 1.02rem;
  line-height: 1.7;
  font-style: normal;
  color: rgba(255,255,255,0.86);
}
.footer-col a { color: rgba(255,255,255,0.86); transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }

.footer-group { margin-bottom: 16px; }
.footer-group:last-child { margin-bottom: 0; }
.footer-col a.footer-group { color: rgba(255,255,255,0.86); }
.footer-col a.footer-group:hover { color: var(--accent); }

.footer-social a {
  margin-bottom: 12px;
  font-size: 1.02rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-social a:last-child { margin-bottom: 0; }
.footer-social a:hover { color: var(--accent); transform: translateX(3px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 26px;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.52);
}

.footer-copy { color: rgba(255,255,255,0.52); }

.dev-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.52);
  transition: color 0.2s ease;
}
.dev-credit:hover { color: rgba(255,255,255,0.8); }
.dev-credit strong { color: rgba(255,255,255,0.72); font-weight: 600; }

/* ===== Página 404 ===== */
.error-page {
  padding: 168px 0 96px;
  min-height: 56vh;
  display: flex;
  align-items: center;
}

.error-content { max-width: 640px; }

.error-code {
  display: block;
  font-family: var(--font);
  font-size: clamp(5rem, 15vw, 11rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.06em;
  color: rgba(7,42,102,0.12);
  margin-bottom: var(--space-3);
}

.error-content .section-title { margin-bottom: var(--space-3); }
.error-content .section-lede { margin-bottom: var(--space-5); }

.error-actions { margin-bottom: var(--space-4); }

.error-secondary-link {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.error-secondary-link:hover { color: var(--accent); }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #fff;
  border: none;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.2s ease;
  z-index: 900;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary); }

/* ===== Responsive ===== */
@media (max-width: 1366px) {
  .container { width: min(1180px, calc(100% - 48px)); }
}

@media (max-width: 1024px) {
  .conquistas-layout { gap: var(--space-6); }
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .about-image { max-width: 360px; }
  .about-text p { text-align: left; }
  .frentes-list { column-gap: var(--space-5); }
  .stats-row { grid-template-columns: 1fr; }
  .stat-block { border-left: none; border-top: 1px solid var(--line); padding-left: 0; }
  .stat-block:first-child { border-top: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-5); }
  .footer-social { grid-column: 1 / -1; }
  .localizacao-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

@media (max-width: 860px) {
  .conquistas-layout { grid-template-columns: 1fr; gap: var(--space-6); }
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4) 24px;
    gap: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    transition: all 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { width: 100%; padding: 12px 0; }
  .main-nav a::after { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
  .section, .section-tight { padding: var(--space-6) 0; }
  .hero { padding: 118px 0 64px; }
  .error-page { padding: 132px 0 72px; min-height: 48vh; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .trait-list { grid-template-columns: 1fr; }
  .frentes-list { grid-template-columns: 1fr; }
  .projeto-row { grid-template-columns: 1fr; gap: var(--space-3); }
  .projeto-meta { flex-direction: row; align-items: center; justify-content: flex-start; gap: var(--space-3); text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .footer-social { grid-column: auto; }
  .footer-brand .description { max-width: none; }
  .footer-heading { font-size: 0.95rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .map-container, .map-container iframe { min-height: 300px; }
}

@media (max-width: 400px) {
  .frente-item { grid-template-columns: 36px 1fr; gap: var(--space-3); }
  .stat-block { padding: var(--space-5) 0; }
  .projeto-meta { flex-wrap: wrap; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
