/* ==========================================================================
   Isac Junior — Vereador por Bela Vista de Goiás
   Design System & Motion Tokens (Emil Kowalski Craft + Mobile-Native)
   ========================================================================== */

:root {
  /* Palette - Primary #025385, Sky #75AFDD, Secondary Gold #EEBB41 */
  --brand-50: #eef6fc;
  --brand-100: #d5e8f7;
  --sky-400: #75afdd;
  --sky-soft: rgba(117, 175, 221, 0.16);
  --brand-500: #025385;
  --brand-600: #024670;
  --brand-700: #025385;
  --brand-900: #013352;

  --surface-page: #f6f8fa;
  --surface-card: #ffffff;
  --surface-subtle: #e9eff4;
  --surface-tint: rgba(117, 175, 221, 0.1);

  --ink-primary: #0f1b29;
  --ink-secondary: #3b4b5e;
  --ink-muted: #5d6e82;
  --ink-inverse: #f8fafc;

  --gold-500: #eebb41;
  --gold-700: #8a6208;
  --gold-soft: rgba(238, 187, 65, 0.18);
  --accent-ochre: #025385;
  --accent-ochre-soft: rgba(238, 187, 65, 0.18);

  --border-hairline: rgba(2, 83, 133, 0.1);
  --border-strong: rgba(2, 83, 133, 0.18);
  --border-brand: rgba(2, 83, 133, 0.34);

  /* Typography */
  --font-display: 'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Red Hat Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Elevation — layered, whisper-soft */
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04), 0 4px 12px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 2px 6px rgba(17, 24, 39, 0.05), 0 14px 34px rgba(17, 24, 39, 0.07);
  --shadow-portrait: 0 2px 8px rgba(17, 32, 61, 0.08), 0 24px 56px -12px rgba(17, 32, 61, 0.18);
  --shadow-modal: 0 12px 32px rgba(17, 24, 39, 0.12), 0 32px 72px -12px rgba(17, 24, 39, 0.24);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  /* Motion Curves — Emil Kowalski standard tokens */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Layout */
  --container-max: 1160px;
  --header-height: 76px;
}

/* ==========================================================================
   Reset & Mobile-Native Baseline
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-primary);
  background-color: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

dl,
dd,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Prevent iOS Safari zoom on form controls */
input,
textarea,
select {
  font-size: 16px;
}

/* Remove 300ms click delay & accidental selection on controls */
button,
a,
[role='button'],
[role='tab'] {
  touch-action: manipulation;
}

button,
[role='button'],
[role='tab'],
.chip {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link for keyboard accessibility */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--brand-900);
  color: var(--ink-inverse);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
   Layout Primitives & Typography
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section {
  padding-block: clamp(72px, 9vw, 124px);
}

.section--surface {
  background-color: var(--surface-card);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.section--tint {
  background: linear-gradient(180deg, rgba(117, 175, 221, 0.14) 0%, var(--surface-page) 100%);
  border-top: 1px solid var(--border-hairline);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-500);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background-color: var(--gold-500);
  flex-shrink: 0;
}

.section-header {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-header--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.026em;
  color: var(--ink-primary);
}

.section-title em {
  font-style: normal;
  color: var(--brand-500);
  font-weight: 700;
}

.section-lead {
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.7;
  color: var(--ink-secondary);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Buttons - Emil Kowalski press feedback + capability-gated hover
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform 150ms var(--ease-out),
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: linear-gradient(135deg, #025385 0%, #0365a1 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 83, 133, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn--secondary {
  background-color: var(--surface-card);
  color: var(--ink-primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn--ghost {
  background-color: transparent;
  color: var(--brand-700);
  padding-inline: 14px;
  min-height: 40px;
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: linear-gradient(135deg, #013d63 0%, #025385 100%);
    box-shadow: 0 6px 18px rgba(2, 83, 133, 0.28), inset 0 1px 0 rgba(238, 187, 65, 0.28);
  }

  .btn--secondary:hover {
    border-color: var(--sky-400);
    color: var(--brand-500);
    background-color: #ffffff;
  }

  .btn--ghost:hover {
    background-color: var(--brand-50);
  }

  .btn:hover .icon-arrow {
    transform: translateX(3px);
  }
}

/* ==========================================================================
   Sticky Header & Mobile Drawer
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  background-color: rgba(246, 248, 250, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--border-hairline);
  box-shadow: 0 1px 12px rgba(17, 24, 39, 0.04);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  transition: transform 150ms var(--ease-out);
}

.brand-link:active {
  transform: scale(0.98);
}

.brand-logo {
  height: 36px;
  width: auto;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border-strong);
  display: none;
}

.brand-city {
  display: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

@media (min-width: 960px) {
  .brand-divider,
  .brand-city {
    display: block;
  }
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 140ms var(--ease-out);
}

.nav-link:active {
  transform: scale(0.97);
}

.nav-link.is-active {
  color: var(--brand-700);
  font-weight: 600;
  background-color: var(--brand-50);
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--ink-primary);
    background-color: rgba(17, 24, 39, 0.045);
  }

  .nav-link.is-active:hover {
    background-color: var(--brand-50);
    color: var(--brand-700);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background-color: var(--surface-card);
  color: var(--ink-primary);
  transition:
    transform 150ms var(--ease-out),
    border-color 160ms ease;
}

.menu-toggle:active {
  transform: scale(0.95);
}

@media (min-width: 820px) {
  .primary-nav,
  .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Mobile Drawer — Emil Kowalski: one entrance per container, --ease-drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(17, 32, 61, 0.36);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease-out);
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  width: min(360px, 88vw);
  height: 100dvh;
  background-color: var(--surface-card);
  border-left: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%);
  transition: transform 360ms var(--ease-drawer);
  overscroll-behavior: contain;
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-hairline);
}

.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-primary);
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}

.drawer-close:active {
  transform: scale(0.95);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-primary);
  transition: background-color 150ms ease, transform 140ms var(--ease-out);
}

.drawer-link:active {
  background-color: var(--surface-subtle);
  transform: scale(0.98);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   Hero Section — Editorial Split with Choreographed Non-Uniform Entrance
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(calc(100svh - var(--header-height)), 780px);
  display: flex;
  align-items: center;
  padding-block: clamp(32px, 5vw, 68px) clamp(52px, 6.5vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(44px, 5vw, 80px);
  }
}

.hero-content {
  max-width: 600px;
}

/* Choreographed Hero Entrance — non-uniform delays (0ms, 70ms, 130ms) */
.hero-enter {
  animation: heroRise 560ms var(--ease-out) both;
  animation-delay: var(--delay, 0ms);
}

.hero-enter--fade {
  animation: heroFade 420ms var(--ease-out) both;
  animation-delay: var(--delay, 0ms);
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(var(--rise, 12px));
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
  }
}

.hero-title {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4.9vw, 3.95rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.032em;
  color: var(--ink-primary);
}

.hero-title em {
  font-style: normal;
  color: var(--brand-500);
  font-weight: 800;
}

.hero-lead {
  margin: 24px 0 0;
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  line-height: 1.72;
  color: var(--ink-secondary);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-credentials {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--border-hairline);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 540px) {
  .hero-credentials {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.credential-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.credential-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.credential-value {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.35;
}

/* Portrait Frame — sculpted civic editorial presentation */
.hero-portrait-wrap {
  position: relative;
  max-width: 470px;
  width: 100%;
  margin-inline: auto;
}

.portrait-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background-color: #dce5f2;
  box-shadow: var(--shadow-portrait);
  animation: portraitReveal 680ms var(--ease-out) 40ms both;
}

@keyframes portraitReveal {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(10px);
  }
}

.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(17, 32, 61, 0.08);
  pointer-events: none;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.portrait-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(1, 51, 82, 0.84) 0%, rgba(2, 83, 133, 0.78) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(117, 175, 221, 0.28);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portrait-caption strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.portrait-caption span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.portrait-party {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background-color: rgba(238, 187, 65, 0.18);
  border: 1px solid rgba(238, 187, 65, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-500);
}

/* ==========================================================================
   Manifesto Quote Band - Layered #025385, #75AFDD & #EEBB41 Atmospheric Gradient
   ========================================================================== */

.manifesto-band {
  position: relative;
  overflow: hidden;
  background-color: var(--brand-500);
  background-image:
    radial-gradient(
      ellipse 58% 125% at 95% 92%,
      rgba(238, 187, 65, 0.34) 0%,
      rgba(238, 187, 65, 0.12) 40%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 52% 95% at 10% 8%,
      rgba(117, 175, 221, 0.28) 0%,
      rgba(117, 175, 221, 0.06) 45%,
      transparent 72%
    ),
    linear-gradient(115deg, #01395c 0%, #025385 48%, #0a689e 100%);
  color: var(--ink-inverse);
  padding-block: clamp(48px, 6.2vw, 72px);
}

.manifesto-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #025385 0%, #75afdd 52%, #eebb41 100%);
}

.manifesto-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 860px) {
  .manifesto-inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 48px;
  }
}

.manifesto-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.4vw, 1.95rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.manifesto-quote em {
  font-style: normal;
  font-weight: 700;
  color: var(--gold-500);
}

.manifesto-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(117, 175, 221, 0.28);
}

@media (min-width: 860px) {
  .manifesto-stats {
    padding-top: 0;
    padding-left: 36px;
    border-top: 0;
    border-left: 1px solid rgba(117, 175, 221, 0.28);
  }
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.7vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: #ffffff;
}

.stat-label {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.84);
}

/* ==========================================================================
   Pilares de Atuação (Editorial 2x2 Grid)
   ========================================================================== */

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--border-hairline);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 760px) {
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pillar-card {
  background-color: var(--surface-card);
  padding: clamp(28px, 3.6vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .pillar-card:hover {
    background-color: #fbfcfe;
  }
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pillar-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--accent-ochre);
}

.pillar-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-600);
  background-color: var(--brand-50);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.pillar-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.9vw, 1.55rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.pillar-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink-secondary);
}

.pillar-points {
  margin: 6px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-hairline);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-points li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.pillar-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--brand-500);
}

/* ==========================================================================
   Prestação de Contas — Emil Kowalski Clip-Path Tabs Recipe
   ========================================================================== */

.tabs-shell {
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tabs-scroll {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.tabs-scroll::-webkit-scrollbar {
  display: none;
}

.tabs-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-pill);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
}

.tabs-list {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: color 160ms ease, transform 130ms var(--ease-out);
}

.tab-btn:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .tab-btn:hover {
    color: var(--ink-primary);
  }
}

/* Clipped active duplicate layer — seamless bg + text color transition */
.tabs-active-layer {
  position: absolute;
  inset: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  background-color: var(--brand-700);
  border-radius: var(--radius-pill);
  clip-path: inset(0 100% 0 0 round 999px);
  will-change: clip-path;
}

.tabs-active-layer.is-ready {
  transition: clip-path 260ms var(--ease-in-out);
}

.tabs-active-layer .tab-clone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.results-meta {
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* Actions Grid */
.actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  transition: opacity 180ms ease, filter 180ms ease;
}

.actions-grid.is-switching {
  opacity: 0.65;
  filter: blur(2px);
}

@media (min-width: 680px) {
  .actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.action-card {
  position: relative;
  text-align: left;
  width: 100%;
  background-color: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms ease,
    box-shadow 200ms var(--ease-out);
}

.action-card:active {
  transform: scale(0.985);
}

@media (hover: hover) and (pointer: fine) {
  .action-card:hover {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }

  .action-card:hover .action-more svg {
    transform: translateX(3px);
  }
}

.action-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.action-badge {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--brand-500);
  background-color: var(--sky-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.action-badge--fiscal {
  color: var(--gold-700);
  background-color: var(--gold-soft);
}

.action-date {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

.action-title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.018em;
  color: var(--ink-primary);
}

.action-excerpt {
  margin: 0;
  font-size: 14.25px;
  line-height: 1.62;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.action-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

.action-local {
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--brand-600);
}

.action-more svg {
  width: 14px;
  height: 14px;
  transition: transform 180ms var(--ease-out);
}

/* ==========================================================================
   Transparência & Acesso Legislativo
   ========================================================================== */

.transparency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 720px) {
  .transparency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.transparency-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-xs);
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms ease,
    box-shadow 200ms var(--ease-out);
}

.transparency-card:active {
  transform: scale(0.985);
}

@media (hover: hover) and (pointer: fine) {
  .transparency-card:hover {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }

  .transparency-card:hover .ext-arrow {
    transform: translate(2px, -2px);
  }
}

.transparency-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background-color: var(--brand-50);
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.transparency-icon svg {
  width: 20px;
  height: 20px;
}

.transparency-card h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--ink-primary);
}

.transparency-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.transparency-link {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-600);
}

.ext-arrow {
  width: 15px;
  height: 15px;
  transition: transform 180ms var(--ease-out);
}

/* ==========================================================================
   Biografia & Linha do Tempo
   ========================================================================== */

.bio-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

@media (min-width: 920px) {
  .bio-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.bio-prose p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-secondary);
}

.bio-prose p:first-of-type {
  font-size: 17px;
  color: var(--ink-primary);
}

.bio-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold-500);
  background-color: var(--surface-tint);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.bio-note strong {
  color: var(--ink-primary);
}

/* Timeline */
.timeline {
  position: relative;
  margin: 0;
  padding: 6px 0 6px 28px;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background-color: rgba(117, 175, 221, 0.55);
}

.timeline-item {
  position: relative;
  padding-bottom: 26px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--surface-card);
  border: 2px solid var(--sky-400);
}

.timeline-item--current::before {
  background-color: var(--brand-500);
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(238, 187, 65, 0.34);
}

.timeline-year {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ochre);
}

.timeline-title {
  margin: 4px 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.35;
}

.timeline-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Gabinete Digital — Citizen Demand Router
   ========================================================================== */

.gabinete-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
}

@media (min-width: 900px) {
  .gabinete-card {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
}

.gabinete-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background-color: var(--surface-page);
  border: 1px solid var(--border-hairline);
}

.contact-item svg {
  width: 19px;
  height: 19px;
  color: var(--brand-600);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  color: var(--ink-primary);
}

.contact-item span {
  display: block;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

/* Form */
.gabinete-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 8px;
}

.chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background-color: var(--surface-card);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  transition:
    transform 140ms var(--ease-out),
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.chip:active {
  transform: scale(0.96);
}

.chip[aria-pressed='true'] {
  background-color: var(--brand-700);
  border-color: var(--brand-700);
  color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .chip:hover:not([aria-pressed='true']) {
    border-color: var(--brand-500);
    color: var(--brand-700);
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.input,
.textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--surface-page);
  font-size: 16px;
  color: var(--ink-primary);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.55;
}

.input::placeholder,
.textarea::placeholder {
  color: #8490a3;
}

.input:focus,
.textarea:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(51, 87, 151, 0.14);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.form-hint {
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--surface-card);
  border-top: 1px solid var(--border-hairline);
  padding-block: 52px calc(36px + env(safe-area-inset-bottom, 0px));
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-hairline);
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  height: 44px;
  width: auto;
}

.footer-tagline {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 14px;
  color: var(--ink-secondary);
  transition: color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover {
    color: var(--brand-600);
  }
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-bottom a {
  color: var(--brand-600);
  font-weight: 600;
}

/* ==========================================================================
   Action Detail Modal — Emil Kowalski recipe (centered, scale(0.96), 240ms)
   ========================================================================== */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0ms linear 240ms;
}

.modal-root.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0ms linear 0ms;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 32, 61, 0.44);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
}

.modal-root.is-open .modal-backdrop {
  opacity: 1;
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  max-height: min(84dvh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-modal);
  transform-origin: center;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 220ms var(--ease-out),
    transform 240ms var(--ease-out);
}

.modal-root.is-open .modal-dialog {
  opacity: 1;
  transform: scale(1);
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-secondary);
  transition: transform 140ms var(--ease-out), background-color 150ms ease, color 150ms ease;
}

.modal-close:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .modal-close:hover {
    background-color: var(--surface-subtle);
    color: var(--ink-primary);
  }
}

.modal-title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 2.3vw, 1.78rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.022em;
  color: var(--ink-primary);
}

.modal-details {
  margin: 14px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--ink-muted);
}

.modal-details span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal-body {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.modal-body p {
  margin: 0 0 14px;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   Toast — Sonner-inspired CSS transition (400ms ease, @starting-style)
   ========================================================================== */

.toast-viewport {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 180;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #01395c 0%, #025385 100%);
  border: 1px solid rgba(117, 175, 221, 0.28);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 400ms ease,
    transform 400ms ease;

  @starting-style {
    opacity: 0;
    transform: translateY(100%);
  }
}

.toast svg {
  color: var(--gold-500);
  flex-shrink: 0;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(100%);
}

/* ==========================================================================
   Scroll Reveal — Marketing surface, fires once, compositor-only
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 540ms var(--ease-out),
    transform 540ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Reduced Motion — Collapse choreography, keep gentle opacity cues
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-enter,
  .hero-enter--fade,
  .portrait-frame {
    animation: heroFade 220ms ease both;
    animation-delay: 0ms;
  }

  .reveal {
    transform: none;
    transition: opacity 220ms ease;
  }

  .tabs-active-layer {
    transition-duration: 140ms;
  }

  .modal-dialog {
    transform: none;
    transition: opacity 180ms ease;
  }

  .mobile-drawer {
    transition: transform 200ms ease;
  }

  .toast {
    transform: none;
    transition: opacity 200ms ease;
  }
}
