/* ============================================================
   Instituto Ampliação — estilos (v2 · clean & modern)
   ============================================================ */

:root {
  /* Neutros */
  --ink-900: #0F172A;
  --ink-700: #334155;
  --ink-500: #64748B;
  --ink-400: #94A3B8;
  --line: #E8ECF1;
  --line-soft: #EFF3F7;
  --bg: #F7F9FB;
  --white: #FFFFFF;

  /* Marca (teal fresco + cyan) */
  --brand-700: #0E7490;
  --brand-600: #0C8478;
  --brand-500: #0F9D8F;
  --teal-600: #0D9488;
  --teal-500: #14A38B;
  --teal-400: #2DD4BF;
  --teal-tint: #E9F7F4;
  --teal-tint-line: #D3EBE6;

  /* Acento */
  --accent-500: #F59E0B;
  --accent-400: #FBBF24;
  --accent-tint: #FEF4E3;

  --grad: linear-gradient(120deg, #0F9D8F, #0E7490);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 18px rgba(15, 23, 42, .05);
  --shadow-md: 0 12px 34px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --maxw: 1160px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--ink-900);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.14rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1rem; }

a { color: var(--brand-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-600); }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brand-700); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===================== BOTÕES ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .25s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--brand-500); color: #fff; box-shadow: 0 8px 20px rgba(15, 157, 143, .26); }
.btn-primary:hover { color: #fff; background: var(--teal-600); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 157, 143, .32); }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); border-color: var(--teal-500); color: var(--brand-600); }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { color: var(--brand-700); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-block { width: 100%; }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); border-bottom-color: var(--line); background: rgba(255, 255, 255, .92); }

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

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 4px 10px rgba(15, 157, 143, .18)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: "Poppins", sans-serif; font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-400); }
.brand-name { display: inline-flex; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-name .w-a { color: var(--ink-900); }
.brand-name .w-b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-weight: 500; font-size: .95rem; color: var(--ink-700); position: relative; }
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--brand-500); border-radius: 2px; transition: width .28s var(--ease);
}
.main-nav ul a:hover { color: var(--brand-600); }
.main-nav ul a:hover::after { width: 100%; }
.nav-cta { padding: 10px 22px; font-size: .9rem; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; border-radius: 10px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink-900); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 46px) 0 clamp(40px, 6vw, 82px);
  background:
    radial-gradient(58% 62% at 88% -8%, var(--teal-tint), transparent 68%),
    radial-gradient(46% 50% at -6% 10%, #EEF4FB, transparent 70%),
    var(--white);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-content { max-width: 620px; }
.hero h1 { color: var(--ink-900); }
.hero .lead { color: var(--ink-700); font-size: clamp(1.05rem, 1.5vw, 1.22rem); margin-bottom: 2rem; }
.hero .lead strong { color: var(--ink-900); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual img {
  width: 100%; height: clamp(320px, 42vw, 440px); object-fit: cover;
  display: block;
}
.hero-visual::after {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 120px; height: 120px;
  border-radius: 24px; background: var(--teal-tint); z-index: -1;
}

.eyebrow {
  display: inline-block; font-family: "Poppins", sans-serif; font-weight: 600;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 1rem;
}
.eyebrow-dark { color: var(--brand-600); }

/* ===================== STATS ===================== */
.stats { padding: 0 0 4px; background: var(--white); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.stat { padding: 30px 22px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-num { display: block; font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.05rem); color: var(--brand-600); }
.stat-label { font-size: .86rem; color: var(--ink-500); }

/* ===================== SEÇÕES ===================== */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-tint { background: var(--bg); }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-sub { color: var(--ink-500); font-size: 1.05rem; margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.grid-2-reverse .about-text { order: 1; }
.grid-2-reverse .values-panel { order: 2; }

.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; }
.about-text p { color: var(--ink-700); }

.check-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; font-weight: 500; color: var(--ink-900); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-tint);
}
.check-list li::after {
  content: ""; position: absolute; left: 6.5px; top: 8px; width: 6px; height: 10px;
  border: solid var(--brand-600); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* ===================== CARDS (áreas) ===================== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--teal-tint-line); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-500); margin: 0; font-size: .94rem; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: var(--teal-tint); color: var(--brand-600);
}
.card-icon svg { width: 25px; height: 25px; }

/* ===================== FEATURES / VALORES ===================== */
.feature-list { display: grid; gap: 22px; margin-top: 1.5rem; }
.feature { display: flex; gap: 16px; }
.feature-dot { flex: 0 0 auto; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 5px var(--teal-tint); }
.feature h4 { margin: 0 0 .15rem; }
.feature p { margin: 0; font-size: .92rem; color: var(--ink-500); }

.values-panel {
  background: var(--teal-tint); border: 1px solid var(--teal-tint-line); border-radius: var(--radius);
  padding: clamp(30px, 4vw, 44px);
}
.values-panel h3 { color: var(--ink-900); font-size: 1.35rem; }
.values-intro { color: var(--ink-500); }
.pill-list { list-style: none; margin: 1.25rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li {
  padding: 8px 16px; border-radius: 100px; font-size: .88rem; font-weight: 500;
  background: #fff; border: 1px solid var(--teal-tint-line); color: var(--brand-700);
}
.values-note { color: var(--brand-700); font-size: .92rem; margin: 1.5rem 0 0; border-top: 1px solid var(--teal-tint-line); padding-top: 1.25rem; }

/* ===================== GOVERNANÇA ===================== */
.gov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gov-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.gov-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--teal-tint-line); }
.gov-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 18px;
  background: var(--teal-tint); color: var(--brand-600);
}
.gov-icon svg { width: 27px; height: 27px; }
.gov-card h3 { margin: 0; font-size: 1.12rem; }
.gov-name { margin: 6px 0 0; font-size: .9rem; color: var(--ink-500); }

.gov-note { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.gov-note-item { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand-500); border-radius: var(--radius-sm); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.gov-note-item h4 { margin: 0 0 .35rem; color: var(--ink-900); }
.gov-note-item p { margin: 0; font-size: .92rem; color: var(--ink-500); }

/* ===================== TRANSPARÊNCIA ===================== */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.guide-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 30px 84px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-tint-line); }
.guide-index {
  position: absolute; left: 26px; top: 30px;
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--brand-500);
}
.guide-card h4 { margin: 0 0 .35rem; }
.guide-card p { margin: 0; font-size: .93rem; color: var(--ink-500); }

/* ===================== PROJETOS ===================== */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.proj-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.proj-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--teal-tint-line); }
.proj-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.proj-mark {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; background: var(--teal-tint); color: var(--brand-600);
  border: 1px solid var(--teal-tint-line);
}
.proj-mark svg { width: 28px; height: 28px; }
.proj-mark-cientificar,
.proj-mark-cria { background: transparent; border: 0; }
.proj-mark-cientificar svg,
.proj-mark-cria svg { width: 52px; height: 52px; display: block; }
.proj-id { display: flex; flex-direction: column; line-height: 1.15; }
.proj-name { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--ink-900); text-transform: uppercase; letter-spacing: .03em; }
.proj-sub { font-size: .85rem; color: var(--ink-500); }
.proj-card p { color: var(--ink-500); font-size: .95rem; margin: 0 0 1.4rem; }
.proj-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--brand-700); }
.proj-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.proj-link:hover { color: var(--teal-600); }
.proj-link:hover svg { transform: translateX(4px); }

/* ===================== CTA ===================== */
.cta-section { background: var(--bg); padding: clamp(48px, 6vw, 80px) 0; }
.cta-inner {
  position: relative; overflow: hidden; text-align: center;
  background: var(--grad); border-radius: 26px; color: #fff;
  padding: clamp(44px, 6vw, 76px) clamp(28px, 5vw, 64px);
  box-shadow: var(--shadow-lg);
  background-image: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .18), transparent 46%), var(--grad);
}
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255, 255, 255, .92); font-size: 1.08rem; margin-bottom: 2rem; max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===================== CONTATO ===================== */
.contact-info h2 { margin-bottom: 1rem; }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-tint); color: var(--brand-600);
}
.contact-ico svg { width: 22px; height: 22px; }
.contact-list span { color: var(--ink-700); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 38px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink-900); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .96rem; color: var(--ink-900);
  padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 4px rgba(15, 157, 143, .12);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input.invalid, .field textarea.invalid { border-color: #e05353; box-shadow: 0 0 0 4px rgba(224, 83, 83, .12); }
.form-feedback { margin: 14px 0 0; font-size: .9rem; font-weight: 500; min-height: 1.2em; }
.form-feedback.ok { color: var(--brand-600); }
.form-feedback.err { color: #c53b3b; }

/* ===================== FOOTER ===================== */
.site-footer { background: #0B1B24; color: rgba(255, 255, 255, .72); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 38px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand { display: flex; gap: 16px; }
.footer-brand strong { display: block; font-family: "Poppins", sans-serif; color: #fff; font-size: 1.15rem; margin-bottom: .4rem; }
.footer-brandname .w-a { color: #fff; }
.footer-brandname .w-b { background: linear-gradient(120deg, #7fe3cf, #ffd27a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-brand p { font-size: .92rem; margin: 0; max-width: 340px; }
.footer-col h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col li { color: rgba(255, 255, 255, .7); font-size: .92rem; }
.footer-col a:hover { color: #7fe3cf; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; }
.footer-bottom p { margin: 0; font-size: .83rem; color: rgba(255, 255, 255, .55); }
.footer-legal { max-width: 460px; text-align: right; }

/* ===================== TO TOP ===================== */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-500); color: #fff; font-size: 1.15rem; box-shadow: 0 10px 24px rgba(15, 157, 143, .34);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: #fff; transform: translateY(-3px); }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual img { height: clamp(260px, 46vw, 380px); }
  .cards-grid, .gov-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px; box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .4s var(--ease); z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav ul li { border-bottom: 1px solid var(--line); }
  .main-nav ul a { display: block; padding: 15px 0; font-size: 1.02rem; }
  .main-nav ul a::after { display: none; }
  .nav-cta { margin-top: 18px; width: 100%; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-2-reverse .about-text { order: 1; }
  .grid-2-reverse .values-panel { order: 2; }
  .cards-grid, .gov-grid, .gov-note, .guide-grid, .proj-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .footer-legal { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; animation-duration: .001ms !important; transition: none !important; }
}

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

.a11y { position: relative; margin-left: 10px; }
.a11y-toggle {
  width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--brand-600);
  box-shadow: 0 4px 12px rgba(15, 157, 143, .3);
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.a11y-toggle:hover { background: var(--brand-500); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 157, 143, .38); }
.a11y-toggle svg { width: 23px; height: 23px; }

.a11y-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: 288px;
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow-lg); z-index: 160;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; }
.a11y-head h2 { margin: 0; font-size: 1rem; font-family: "Poppins", sans-serif; color: var(--ink-900); }
.a11y-close { border: 0; background: transparent; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink-500); padding: 0 4px; border-radius: 6px; }
.a11y-close:hover { color: var(--ink-900); }

.a11y-block { border-top: 1px solid var(--line); padding-top: 12px; }
.a11y-label { display: block; font-size: .76rem; font-weight: 600; color: var(--ink-500); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.a11y-row { display: flex; align-items: center; gap: 8px; }
.a11y-btn-ico {
  flex: 1; padding: 9px 0; border: 1px solid var(--line); background: var(--bg);
  border-radius: 10px; cursor: pointer; font-weight: 700; font-size: .95rem; color: var(--ink-900);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.a11y-btn-ico:hover { border-color: var(--brand-500); color: var(--brand-600); }
.a11y-value { min-width: 54px; text-align: center; font-size: .85rem; font-weight: 600; color: var(--ink-700); }

.a11y-opt {
  text-align: left; padding: 11px 14px; border: 1px solid var(--line); background: var(--bg);
  border-radius: 10px; cursor: pointer; font-size: .92rem; font-weight: 500; color: var(--ink-900);
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.a11y-opt:hover { border-color: var(--brand-500); color: var(--brand-600); }
.a11y-opt[aria-pressed="true"] { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

.a11y-reset { padding: 10px; border: 1px dashed var(--line); background: transparent; border-radius: 10px; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--ink-500); }
.a11y-reset:hover { color: var(--ink-900); border-color: var(--ink-400); }

.a11y-hint { margin: 0; font-size: .73rem; color: var(--ink-400); line-height: 1.8; }
.a11y-hint kbd { background: var(--bg); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; font-family: inherit; font-size: .72rem; color: var(--ink-700); }

/* Sublinhar links */
html.a11y-underline a { text-decoration: underline !important; text-underline-offset: 3px; }

/* Alto contraste */
html.a11y-contrast body,
html.a11y-contrast .hero,
html.a11y-contrast .stats,
html.a11y-contrast .section,
html.a11y-contrast .section-tint,
html.a11y-contrast .cta-section { background: #000 !important; }
html.a11y-contrast .site-header,
html.a11y-contrast .site-footer { background: #000 !important; border-color: #FFDD00 !important; }
html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3, html.a11y-contrast h4,
html.a11y-contrast p, html.a11y-contrast li, html.a11y-contrast span, html.a11y-contrast strong,
html.a11y-contrast label, html.a11y-contrast .stat-num, html.a11y-contrast .stat-label { color: #FFDD00 !important; }
html.a11y-contrast a, html.a11y-contrast .footer-col a { color: #6CD8FF !important; }
html.a11y-contrast .card, html.a11y-contrast .gov-card, html.a11y-contrast .guide-card,
html.a11y-contrast .proj-card, html.a11y-contrast .gov-note-item, html.a11y-contrast .values-panel, html.a11y-contrast .stat,
html.a11y-contrast .stats-grid, html.a11y-contrast .contact-form, html.a11y-contrast .pill-list li,
html.a11y-contrast .a11y-panel { background: #000 !important; border-color: #FFDD00 !important; }
html.a11y-contrast .proj-mark { background: #000 !important; border-color: #FFDD00 !important; color: #FFDD00 !important; }
html.a11y-contrast .proj-mark-cientificar svg rect { fill: #FFDD00 !important; }
html.a11y-contrast .proj-mark-cientificar svg text { fill: #000 !important; }
html.a11y-contrast .proj-mark-cria svg rect { fill: #FFDD00 !important; }
html.a11y-contrast .proj-mark-cria svg circle { fill: #000 !important; }
html.a11y-contrast .proj-mark-cria svg circle[fill="#fff"] { fill: #FFDD00 !important; }
html.a11y-contrast .proj-mark-cria svg circle[fill="#111"] { fill: #000 !important; }
html.a11y-contrast .field input, html.a11y-contrast .field select, html.a11y-contrast .field textarea {
  background: #000 !important; color: #FFDD00 !important; border-color: #FFDD00 !important;
}
html.a11y-contrast .btn,
html.a11y-contrast .a11y-toggle { background: #FFDD00 !important; color: #000 !important; border-color: #FFDD00 !important; }
html.a11y-contrast .btn svg, html.a11y-contrast .a11y-toggle svg { color: #000; stroke: #000; }
html.a11y-contrast .cta-inner { background: #000 !important; border: 1px solid #FFDD00 !important; }
html.a11y-contrast .grad-text, html.a11y-contrast .brand-name .w-b, html.a11y-contrast .footer-brandname .w-b {
  background: none !important; -webkit-text-fill-color: #FFDD00 !important; color: #FFDD00 !important;
}
html.a11y-contrast img { filter: grayscale(100%) contrast(1.1); }
html.a11y-contrast .field input.invalid, html.a11y-contrast .field textarea.invalid { border-color: #FF6B6B !important; }

/* VLibras */
[vw] { z-index: 130; }
[vw-access-button] { z-index: 131; }
[vw-plugin-wrapper] { z-index: 131; }

@media (max-width: 560px) {
  .a11y-panel { width: min(288px, calc(100vw - 40px)); }
}
