/* ============================================================================
   Portal Clodoaldo Rodrigues · Sistema de design
   Mobile-first. Fontes hospedadas localmente. Sem dependências externas.
   ============================================================================ */

/* ---------- Fontes ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --navy-950: #061330;
  --navy-900: #0b1f4d;
  --navy-800: #122c6a;
  --blue-600: #1e4fcf;
  --blue-500: #2f63e6;
  --blue-100: #dde6fb;
  --blue-50:  #eef3fd;
  --gold-500: #f5c400;
  --gold-600: #d9ab00;
  --gold-100: #fff3bf;
  --green-600: #178a4c;
  --green-100: #dcf3e6;
  --red-600: #b42318;
  --red-100: #fde8e6;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #596275;
  --ink-300: #cbd5e1;
  --line:    #e5e9f2;
  --bg:      #f6f7fb;
  --surface: #ffffff;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --sh-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --sh-md: 0 8px 24px -12px rgba(11, 31, 77, .22);
  --sh-lg: 0 24px 48px -20px rgba(6, 19, 48, .35);

  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --tabbar-h: 64px;
}

/* ---------- Reset leve ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--ink-900);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 8px; }
.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; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: var(--gold-500); color: var(--navy-950); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Faixa tricolor: assinatura visual */
.tricolor { height: 4px; background: linear-gradient(90deg, var(--green-600) 0 34%, var(--gold-500) 34% 67%, var(--blue-500) 67%); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 20px; border: 0; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--navy-900); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--navy-800); }
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: #ffd21a; }
.btn-outline { background: var(--surface); color: var(--navy-900); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--blue-500); color: var(--blue-600); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-wa { background: #25d366; color: #073b1a; }
.btn-wa:hover { background: #30e070; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); min-width: 0; }
.brand-mark {
  flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--blue-500), var(--navy-900)); color: #fff;
}
.brand-mark::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--green-600) 50%, var(--gold-500) 50%); }
.brand-mark svg { width: 18px; height: 18px; fill: currentColor; margin-top: -3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.brand-role { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-500); font-weight: 600; }
.nav { display: none; align-items: center; gap: 2px; }
.nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-700); transition: background .2s, color .2s; }
.nav a:hover { background: var(--blue-50); color: var(--navy-900); }
.nav a[aria-current="page"] { background: var(--navy-900); color: #fff; }
.nav .btn { margin-left: 8px; }
.header-wa { display: inline-flex; }
@media (min-width: 880px) {
  .site-header .container { height: 72px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 17px; }
  .nav { display: flex; }
  .header-wa { display: none; }
}

/* ---------- Barra inferior (celular) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(11, 31, 77, .3);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; color: var(--ink-500); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; position: relative;
}
.tabbar svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--navy-900); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold-500); }
.tabbar .wa { color: #0e7a3f; }
@media (min-width: 880px) { .tabbar { display: none; } body { padding-bottom: 0; } }

/* ---------- WhatsApp flutuante (computador) ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; display: none; align-items: center; gap: 10px; text-decoration: none;
}
.wa-float .wa-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6); transition: transform .2s var(--ease); }
.wa-float .wa-btn svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float .wa-label { opacity: 0; transform: translateX(6px); background: #fff; color: var(--ink-900); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; box-shadow: var(--sh-md); transition: opacity .2s, transform .2s var(--ease); }
.wa-float:hover .wa-btn { transform: scale(1.06); }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { opacity: 1; transform: none; }
@media (min-width: 880px) { .wa-float { display: flex; } }

/* ---------- Seções ---------- */
.section { padding-block: clamp(40px, 7vw, 88px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(20px, 3vw, 36px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--gold-500); transform: rotate(45deg); }
.section-title { margin-top: 8px; font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.section-desc { margin-top: 10px; color: var(--ink-700); max-width: 58ch; font-size: clamp(15px, 1.6vw, 17px); }
.section-head .btn { align-self: center; }

/* ---------- Herói (início) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 500px at 85% 15%, rgba(47, 99, 230, .55), transparent 60%),
              linear-gradient(170deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero .container { position: relative; display: grid; gap: 20px; padding-block: 24px 28px; }
.hero-top { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.hero-portrait { width: 104px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; box-shadow: var(--sh-lg), inset 0 0 0 1px rgba(255,255,255,.14); background: var(--navy-800); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.hero-eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--gold-500); border-radius: 2px; transform: rotate(45deg); }
.hero-name { margin-top: 8px; font-size: clamp(30px, 8vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: .98; text-transform: uppercase; }
.hero-name span { display: block; color: var(--gold-500); }
.hero-role { margin-top: 8px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.72); letter-spacing: .04em; }
.hero-lead { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 4.4vw, 26px); line-height: 1.25; letter-spacing: -.015em; max-width: 30ch; }
.hero-sub { color: rgba(255,255,255,.74); font-size: 15px; max-width: 50ch; margin-top: -6px; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.hero-stat { padding: 12px 10px; border-radius: 14px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.hero-stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -.02em; color: var(--gold-500); }
.hero-stat span { display: block; margin-top: 4px; font-size: 11.5px; color: rgba(255,255,255,.72); line-height: 1.3; }
@media (min-width: 880px) {
  .hero .container { grid-template-columns: 1.05fr .95fr; grid-template-areas: "copy photo"; align-items: center; gap: 48px; padding-block: 64px 72px; }
  .hero-copy { grid-area: copy; display: grid; gap: 22px; }
  .hero-top { grid-template-columns: 1fr; }
  .hero-top .hero-portrait { display: none; }
  .hero-name { font-size: clamp(52px, 5.6vw, 72px); margin-top: 14px; }
  .hero-role { font-size: 14px; margin-top: 12px; }
  .hero-actions { display: flex; }
  .hero-actions .btn { min-width: 220px; min-height: 54px; font-size: 16px; }
  .hero-stats { max-width: 520px; gap: 12px; }
  .hero-stat { padding: 16px 14px; }
  .hero-stat b { font-size: 30px; }
  .hero-stat span { font-size: 13px; }
  .hero-photo { grid-area: photo; position: relative; justify-self: end; width: min(100%, 440px); }
  .hero-photo .frame { aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg), inset 0 0 0 1px rgba(255,255,255,.12); position: relative; }
  .hero-photo .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .hero-photo .frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--green-600) 34%, var(--gold-500) 34% 67%, var(--blue-500) 67%); }
  .hero-photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--r-xl); border: 1px solid rgba(245, 196, 0, .35); z-index: -1; }
}
@media (max-width: 879px) { .hero-photo { display: none; } }

/* ---------- Cards de projeto ---------- */
.cards { display: grid; gap: 12px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.pcard {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm), inset 0 0 0 1px var(--line);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pcard:hover { box-shadow: var(--sh-md), inset 0 0 0 1px var(--blue-100); }
@media (hover: hover) { .pcard:hover { transform: translateY(-2px); } }
.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard-kind { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); }
.pcard-num { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1; }
.pcard-num small { font-weight: 600; font-size: 14px; color: var(--ink-500); margin-left: 2px; }
.pcard-title { font-weight: 600; font-size: 15px; line-height: 1.45; color: var(--ink-900); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-title a { text-decoration: none; color: inherit; }
.pcard-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-500); }
.pcard-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pcard-meta svg { width: 14px; height: 14px; flex: none; }
.pcard-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; position: relative; z-index: 1; }
.pcard-actions .btn { flex: 1; }
.pcard-actions .btn-icon { flex: none; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--blue-50); color: var(--blue-600); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ok { background: var(--green-100); color: #0f6b3a; }
.status.warn { background: var(--gold-100); color: #7a5b00; }
.status.off { background: #eef0f4; color: var(--ink-500); }

/* ---------- Grupos por ano ---------- */
.year-nav { position: sticky; top: 60px; z-index: 40; background: var(--bg); padding-block: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.year-nav .scroller { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.year-nav .scroller::-webkit-scrollbar { display: none; }
.year-nav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 700; font-size: 14px; color: var(--ink-700); }
.year-nav a small { font-weight: 600; color: var(--ink-500); }
.year-nav a.active { background: var(--navy-900); color: #fff; box-shadow: none; }
.year-nav a.active small { color: rgba(255,255,255,.7); }
@media (min-width: 880px) { .year-nav { top: 72px; } }
.year-group { margin-top: 28px; scroll-margin-top: 130px; }
.year-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: var(--navy-900); letter-spacing: -.03em; }
.year-title span { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink-500); letter-spacing: 0; }

/* ---------- Busca ---------- */
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-500); pointer-events: none; }
.search-wrap input {
  width: 100%; height: 52px; padding: 0 44px 0 48px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font: inherit; font-size: 16px; color: var(--ink-900); box-shadow: var(--sh-sm); transition: border-color .2s, box-shadow .2s;
}
.search-wrap input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 99, 230, .15); }
.search-wrap input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink-500); display: grid; place-items: center; cursor: pointer; }
.search-clear svg { position: static; transform: none; width: 16px; height: 16px; }
.search-result { margin-top: 12px; font-size: 14px; color: var(--ink-500); }
.search-result strong { color: var(--ink-900); }

/* Página hero compacta */
.page-hero { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); color: #fff; padding-block: 22px 56px; }
.page-hero .crumbs { font-size: 12.5px; color: rgba(255,255,255,.6); display: flex; gap: 6px; flex-wrap: wrap; }
.page-hero .crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.page-hero h1 { margin-top: 10px; font-size: clamp(28px, 6vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.page-hero h1 em { font-style: normal; color: var(--gold-500); }
.page-hero p { margin-top: 10px; color: rgba(255,255,255,.75); max-width: 60ch; font-size: 15px; }
.page-search { margin-top: -26px; position: relative; z-index: 2; }
@media (min-width: 880px) { .page-hero { padding-block: 40px 72px; } .page-search { margin-top: -30px; max-width: 720px; } }

/* ---------- Temas (chips) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--navy-900); transition: background .2s, box-shadow .2s; }
.chip:hover { background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue-100); }
.chip small { color: var(--ink-500); font-weight: 600; }

/* ---------- Sobre (resumo) ---------- */
.about { display: grid; gap: 18px; align-items: center; }
.about-photo { width: 120px; aspect-ratio: 1; border-radius: 24px; overflow: hidden; box-shadow: var(--sh-md); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-quote { margin-top: 12px; padding-left: 14px; border-left: 3px solid var(--gold-500); font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy-900); }
.about-text { margin-top: 12px; color: var(--ink-700); font-size: 15.5px; }
.about .btn { margin-top: 16px; }
@media (min-width: 880px) {
  .about { grid-template-columns: 360px 1fr; gap: 56px; }
  .about-photo { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-xl); }
  .about-text { font-size: 17px; }
}

/* ---------- Faixa de chamada ---------- */
.cta-band { border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); background: var(--navy-900); color: #fff; display: grid; gap: 16px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(245, 196, 0, .12); }
.cta-band h2 { font-size: clamp(22px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.025em; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 50ch; }
@media (min-width: 880px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Detalhe do projeto ---------- */
.detail-hero .kind { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-500); margin-top: 14px; }
.detail-hero h1 { font-size: clamp(28px, 5vw, 44px); margin-top: 8px; }
.detail-hero .ementa { margin-top: 14px; font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.9); max-width: 62ch; line-height: 1.5; }
.detail-hero .status { margin-top: 14px; }
.detail-grid { display: grid; gap: 20px; margin-top: -28px; position: relative; z-index: 2; }
.panel { background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-sm), inset 0 0 0 1px var(--line); }
.panel h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.meta-list { display: grid; gap: 12px; }
.meta-list div { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.meta-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-list dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.meta-list dd { margin: 0; font-weight: 600; color: var(--ink-900); }
.detail-actions { display: grid; gap: 10px; }
.detail-actions .btn { justify-content: flex-start; }
.pdf-viewer { aspect-ratio: 3 / 4; width: 100%; border: 0; border-radius: 14px; background: var(--bg); }
.pdf-fallback { padding: 20px; text-align: center; color: var(--ink-700); font-size: 14px; }
.prose { color: var(--ink-700); font-size: 16px; line-height: 1.65; }
.prose p + p { margin-top: 12px; }
@media (min-width: 880px) {
  .detail-grid { grid-template-columns: 1fr 360px; align-items: start; margin-top: -40px; }
  .detail-main { display: grid; gap: 20px; }
  .detail-side { display: grid; gap: 20px; position: sticky; top: 92px; }
  .detail-actions .btn { min-height: 50px; }
}
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 20px); transform: translateX(-50%); z-index: 100; background: var(--navy-950); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--sh-lg); max-width: calc(100vw - 32px); }
@media (min-width: 880px) { .toast { bottom: 28px; } }

/* ---------- Página do deputado ---------- */
.profile-hero .container { display: grid; grid-template-columns: 1fr 112px; gap: 16px; align-items: center; }
.profile-hero .crumbs { grid-column: 1 / -1; }
.profile-hero h1 { font-size: clamp(30px, 7vw, 56px); }
.profile-hero .portrait { width: 112px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; box-shadow: var(--sh-lg); border: 3px solid rgba(255,255,255,.9); }
.profile-hero .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile-hero .tag { grid-column: 1 / -1; display: inline-flex; justify-self: start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: var(--gold-500); color: var(--navy-950); font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; }
@media (min-width: 880px) {
  .profile-hero .container { grid-template-columns: 1fr 320px; gap: 48px; align-items: end; }
  .profile-hero .portrait { width: 100%; border-radius: var(--r-xl); margin-bottom: -120px; position: relative; z-index: 3; border-width: 6px; }
  .profile-hero .tag { grid-column: 1; }
}
.profile-body { padding-block: 28px 48px; }
.profile-grid { display: grid; gap: 24px; }
.toc { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-700); }
.toc a.active { background: var(--navy-900); color: #fff; box-shadow: none; }
.bio-block { padding-block: 24px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.bio-block:first-of-type { border-top: 0; padding-top: 0; }
.bio-block h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.025em; }
.bio-block .prose { margin-top: 12px; max-width: 68ch; }
@media (min-width: 880px) {
  .profile-body { padding-block: 64px 96px; }
  .profile-grid { grid-template-columns: 240px 1fr; gap: 56px; }
  .toc { position: sticky; top: 96px; flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 2px; align-self: start; }
  .toc a { background: transparent; box-shadow: none; border-left: 2px solid transparent; border-radius: 0 10px 10px 0; padding: 10px 14px; }
  .toc a.active { background: var(--surface); color: var(--navy-900); border-left-color: var(--gold-500); }
  .bio-block { padding-block: 36px; }
}
.timeline { list-style: none; margin-top: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(var(--blue-500), var(--gold-500)); }
.timeline li { position: relative; padding: 0 0 18px 30px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--blue-600); }
.timeline .when { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--navy-900); }
.timeline .what { color: var(--ink-700); font-size: 15px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stat { background: var(--surface); border-radius: var(--r-md); padding: 14px 12px; box-shadow: inset 0 0 0 1px var(--line); }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--navy-900); letter-spacing: -.02em; line-height: 1; }
.stat span { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-500); line-height: 1.3; }
@media (min-width: 880px) { .stat { padding: 20px; } .stat b { font-size: 32px; } .stat span { font-size: 13.5px; } }
.sources { margin-top: 24px; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.sources h3 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 10px; }
.sources ul { padding-left: 18px; display: grid; gap: 6px; }
.sources a { color: var(--blue-600); }

/* ---------- Estados ---------- */
.empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.empty .ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.empty .ic svg { width: 26px; height: 26px; }
.empty h3 { font-size: 20px; font-weight: 800; }
.empty p { margin: 8px auto 0; max-width: 48ch; color: var(--ink-700); font-size: 15px; }
.empty .btn { margin-top: 18px; }
.skeleton { border-radius: var(--r-lg); background: var(--surface); padding: 18px; box-shadow: inset 0 0 0 1px var(--line); min-height: 180px; }
.skeleton i { display: block; height: 12px; border-radius: 6px; margin-top: 12px; background: linear-gradient(90deg, #eef1f7 0%, #f8f9fc 50%, #eef1f7 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton i:first-child { margin-top: 0; width: 40%; }
.skeleton i:nth-child(2) { width: 55%; height: 20px; }
.skeleton i:nth-child(5) { width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }
.offline-note { display: none; padding: 10px var(--gutter); background: var(--gold-100); color: #5a4300; font-size: 13.5px; font-weight: 600; text-align: center; }
.is-offline .offline-note { display: block; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.72); font-size: 14.5px; }
.site-footer .container { padding-block: 36px 28px; display: grid; gap: 24px; }
.footer-grid { display: grid; gap: 22px; }
.footer-grid .ft { font-family: var(--font-body); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,.72); }
.footer-grid a:hover { color: var(--gold-500); }
.footer-about .brand { color: #fff; }
.footer-about .brand-role { color: rgba(255,255,255,.6); }
.footer-about p { margin-top: 12px; max-width: 42ch; }
.footer-notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); font-size: 13px; }
.footer-notice svg { width: 18px; height: 18px; color: var(--gold-500); flex: none; margin-top: 2px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: rgba(255,255,255,.5); }
.footer-legal a { color: inherit; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; } .site-footer .container { padding-block: 56px 32px; } }

/* ---------- Painel administrativo ---------- */
.adm body, body.adm { background: var(--bg); }
.adm-card { background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-sm), inset 0 0 0 1px var(--line); }
.adm-login { max-width: 520px; margin: 32px auto; }
.adm-login h1 { font-size: 26px; font-weight: 800; }
.adm-login p { color: var(--ink-700); font-size: 15px; margin-top: 8px; }
.form { display: grid; gap: 14px; margin-top: 16px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.in, .ta { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; font-size: 15px; background: #fff; color: var(--ink-900); }
.ta { min-height: 110px; resize: vertical; line-height: 1.5; }
.in:focus, .ta:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 99, 230, .14); }
.hint { font-size: 13px; color: var(--ink-500); margin-top: 4px; }
.muted { color: var(--ink-500); font-size: 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0; }
.tab { border: 0; cursor: pointer; padding: 10px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; color: var(--ink-700); }
.tab[aria-selected="true"] { background: var(--navy-900); color: #fff; box-shadow: none; }
.bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
td .ementa { max-width: 520px; color: var(--ink-700); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-danger { background: #fff; color: var(--red-600); box-shadow: inset 0 0 0 1.5px #f3c7c3; }
.btn-danger:hover { background: var(--red-100); }
.drop { display: block; border: 2px dashed var(--blue-100); border-radius: var(--r-lg); padding: 36px 20px; text-align: center; background: var(--blue-50); cursor: pointer; transition: border-color .2s, background .2s; }
.drop.over { border-color: var(--blue-500); background: #e3ebfc; }
.drop strong { display: block; font-family: var(--font-display); font-size: 18px; }
.imp-row { display: grid; grid-template-columns: 28px 1.1fr 90px 80px 2fr 1fr; gap: 8px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.imp-row .in, .imp-row .ta { padding: 8px 10px; font-size: 14px; }
.imp-row .ta { min-height: 64px; }
.imp-row .fname { grid-column: 2 / -1; font-size: 12.5px; color: var(--ink-500); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.flag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.flag.ok { background: var(--green-100); color: var(--green-600); }
.flag.warn { background: var(--gold-100); color: #7a5b00; }
.flag.bad { background: var(--red-100); color: var(--red-600); }
@media (max-width: 860px) { .imp-row { grid-template-columns: 28px 1fr 1fr; } .imp-row .ta { grid-column: 2 / -1; } }
dialog { border: 0; border-radius: var(--r-xl); padding: 0; width: min(760px, calc(100vw - 24px)); box-shadow: var(--sh-lg); }
dialog::backdrop { background: rgba(6, 19, 48, .55); backdrop-filter: blur(3px); }
dialog .adm-card { box-shadow: none; max-height: 86vh; overflow: auto; }
.toast.err { background: var(--red-600); }
.photo-prev { width: 160px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; box-shadow: var(--sh-sm); }
.tl-item { display: grid; grid-template-columns: 160px 1fr 40px; gap: 8px; margin-bottom: 8px; }
.busy { opacity: .6; pointer-events: none; }
.adm-top { background: var(--navy-950); color: #fff; }
.adm-top .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.adm-top .brand { color: #fff; }
.adm-top .brand-role { color: rgba(255,255,255,.6); }
.who { font-size: 13px; color: rgba(255,255,255,.7); display: flex; gap: 12px; align-items: center; }
.chips-spaced { margin-top: 16px; }

/* Ajustes finos para celular */
@media (max-width: 879px) {
  .hero-eyebrow { font-size: 10.5px; letter-spacing: .1em; }
  .hero-sub { margin-top: 0; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-actions .btn { min-height: 50px; }
  .detail-side { order: -1; }
  .pdf-viewer, .pdf-fallback { display: none; }
  .detail-main .panel:has(.pdf-viewer) { display: none; }
}
