/* ==========================================================================
   Alternativa Online, site institucional
   Folha de estilo unica. Tokens em custom properties, componentes por classe.
   ========================================================================== */

/* ------------------------------------------------------------------ Fontes */
/* Hanken Grotesk servida localmente (woff2), sem CDN de terceiro.
   Pesos 400, 500, 600, 700, 800, subconjuntos latin e latin-ext. */

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin-400.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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin-ext-400.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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin-500.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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin-ext-500.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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin-600.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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin-ext-600.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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin-700.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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin-ext-700.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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin-800.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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin-ext-800.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 {
  /* Cores de texto */
  --ink: #0E1B2E;
  --body: #3C4759;
  --soft: #5A6675;
  --muted: #8B95A5;

  /* Accent */
  --accent: #1F5AE0;
  --accent-hover: #1743A8;

  /* Fundos */
  --white: #FFFFFF;
  --offwhite: #F6F7F9;
  --bluish: #F6F8FB;
  --bluish-tint: #EEF3FE;
  --hero-bg: #FBFCFD;
  --hero-line: #DCE1E9;

  /* Faixa escura (Numeros) */
  --dark: #0E1B2E;
  --dark-label: #9DAAC0;

  /* Footer */
  --footer-bg: #0A1220;
  --footer-text: #C4CDDC;
  --footer-label: #6C7A92;
  --footer-soft: #8B98AE;

  /* Bordas */
  --border: #E6E9EE;
  --border-2: #E9ECF1;
  --border-3: #EEF0F4;
  --border-4: #EAECF0;
  --input-border: #D8DDE5;

  /* Status */
  --success: #2E8B57;

  /* Raio */
  --r-card: 14px;
  --r-form: 16px;
  --r-input: 9px;
  --r-pill: 100px;

  /* Layout */
  --container: 1180px;
  --container-legal: 1080px;
  --pad-x: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 120px);
  --header-h: 68px;

  /* Sombra de foco */
  --focus-ring: 0 0 0 3px rgba(31, 90, 224, 0.12);
}

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

/* Garante que o atributo [hidden] sempre oculte o elemento, mesmo quando a
   classe define display flex (usado no formulario e no estado de confirmacao). */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-hover); }

img, svg { max-width: 100%; }

input, textarea, button { font-family: inherit; }

::selection { background: #d7e2fb; }

/* Foco visivel para navegacao por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- Wrappers */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.wrap--legal { max-width: var(--container-legal); }

.section-pad {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

/* Tipografia utilitaria */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  margin: 16px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.prose {
  margin: 0;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.62;
  color: var(--body);
}
.prose + .prose { margin-top: 20px; }

/* ------------------------------------------------------------------ Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-2);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.logo span:last-child {
  font-weight: 500;
  color: var(--soft);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--body);
  font-weight: 500;
  font-size: 15px;
}
.main-nav a:hover { color: var(--ink); }

/* Toggle do menu mobile (hamburger): oculto no desktop, exibido no mobile. */
.nav-toggle,
.nav-toggle-btn { display: none; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
}
.back-link:hover { color: var(--ink); }

/* -------------------------------------------------------------------- Hero */
.hero {
  position: relative;
  background: var(--hero-bg);
  overflow: hidden;
}
.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}
.hero__inner {
  position: relative;
  padding-top: clamp(84px, 12vw, 150px);
  padding-bottom: clamp(80px, 11vw, 140px);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid #E3E7EE;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4A5567;
  background: var(--white);
}
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}
.hero__title {
  margin: 26px 0 0;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 15ch;
  color: var(--ink);
}
.hero__subtitle {
  margin: 26px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  max-width: 60ch;
  color: #4A5567;
}

/* -------------------------------------------------------------- Quem Somos */
.section-white {
  background: var(--white);
  border-top: 1px solid var(--border-3);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.about-grid .section-title {
  margin-top: 16px;
  max-width: 16ch;
}
.quote {
  margin: 36px 0 0;
  padding: 26px 28px;
  border-left: 3px solid var(--accent);
  background: var(--bluish);
  border-radius: 0 10px 10px 0;
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

/* ------------------------------------------------------------ O Que Fazemos */
.section-offwhite {
  background: var(--offwhite);
  border-top: 1px solid var(--border-3);
}
.section-head { max-width: 720px; }
.cards {
  margin-top: clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--bluish-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card h3 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.58;
  color: var(--soft);
}

/* ----------------------------------------------------------------- Numeros */
.section-dark {
  background: var(--dark);
  color: var(--white);
}
.section-dark .wrap {
  padding-top: clamp(60px, 7vw, 88px);
  padding-bottom: clamp(60px, 7vw, 88px);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.stat {
  padding: 20px 8px;
  text-align: left;
}
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.stat__num {
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__label {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--dark-label);
}

/* ------------------------------------------------------------ Compromissos */
.commitments {
  margin-top: clamp(30px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
}
.commitment {
  padding: 8px 34px;
  border-right: 1px solid var(--border-4);
}
.commitment:first-child { padding-left: 0; }
.commitment:last-child {
  padding-right: 0;
  border-right: none;
}
.commitment h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
}
.commitment p {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--soft);
}

/* ----------------------------------------------------------------- Contato */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-info {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.field-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.field-value {
  display: inline-block;
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
a.field-value:hover { color: var(--accent-hover); }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-form);
  padding: clamp(28px, 3vw, 40px);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
}
.form-field input,
.form-field textarea {
  padding: 13px 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--r-input);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  background: #FCFCFD;
  width: 100%;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

/* Honeypot anti-spam, fora do fluxo visual e do foco */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-primary {
  margin-top: 4px;
  padding: 14px 22px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--r-input);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled {
  opacity: 0.7;
  cursor: default;
}

.form-error {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #B4232A;
}
.form-error a { color: #B4232A; text-decoration: underline; }

.form-confirmation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 260px;
  justify-content: center;
}
.form-confirmation__check {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #E8F4EC;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-confirmation h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}
.form-confirmation p {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

/* ------------------------------------------------------------------ Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}
.site-footer .wrap {
  padding-top: clamp(56px, 7vw, 80px);
  padding-bottom: clamp(56px, 7vw, 80px);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--white);
}
.footer-brand span:last-child {
  font-weight: 500;
  color: var(--footer-soft);
}
.footer-legal-name {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--footer-soft);
  max-width: 34ch;
}
.footer-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--footer-label);
}
.footer-address {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--footer-text);
  max-width: 36ch;
}
.footer-links {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a {
  font-size: 14px;
  color: var(--footer-text);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom--flush {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}
.footer-bottom {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--footer-label);
}

/* ----------------------------------------------------- Paginas legais (doc) */
.doc-title-band {
  background: var(--offwhite);
  border-bottom: 1px solid var(--border-3);
}
.doc-title-band .wrap {
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(48px, 6vw, 76px);
}
.doc-title {
  margin: 14px 0 0;
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.08;
}
.doc-updated {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--soft);
}
.doc-body {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.doc-toc {
  position: sticky;
  top: 96px;
}
.doc-toc__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc-toc nav {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border);
}
.doc-toc a {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--body);
  border-left: 2px solid transparent;
  margin-left: -1px;
}
.doc-toc a:hover,
.doc-toc a:focus-visible {
  color: var(--accent);
  border-left-color: var(--accent);
}
.doc-article { min-width: 0; }
.doc-lead {
  margin: 0 0 40px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--body);
}
.doc-article section {
  scroll-margin-top: 96px;
  margin-bottom: 44px;
}
.doc-article section:last-of-type { margin-bottom: 8px; }
.doc-article h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.doc-article p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--body);
}
.doc-article p + p { margin-top: 14px; }
.doc-article p.mb { margin-bottom: 14px; }
.doc-article ul {
  margin: 0;
  padding-left: 22px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--body);
}
.doc-article ul + p { margin-top: 14px; }
.contact-box {
  margin-top: 20px;
  padding: 22px 26px;
  background: var(--bluish);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.contact-box__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-box a {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-box a:hover { color: var(--accent-hover); }

.legal-footer {
  background: var(--footer-bg);
  color: var(--footer-label);
}
.legal-footer .wrap {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
}
.legal-footer a { color: #9DAAC0; }
.legal-footer a:hover { color: var(--white); }

/* -------------------------------------------------------- Pagina 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}
.error-code {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.error-page h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.error-page p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--soft);
  max-width: 52ch;
}

/* ------------------------------------------------- Responsivo (documento) */
/* Unica media query do projeto: empilha o sumario das paginas legais em
   telas estreitas, onde o grid 3fr/7fr comprometeria a leitura. */
@media (max-width: 760px) {
  .doc-body { grid-template-columns: 1fr; }
  .doc-toc {
    position: static;
    top: auto;
  }
}

/* Mobile: em telas estreitas o header empilha (logo em cima, nav embaixo) e as
   secoes com divisorias verticais (Numeros, Compromissos) passam a empilhar em
   coluna unica, trocando as bordas verticais por separadores horizontais. */
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }

  /* Header vira barra unica (logo + botao hamburger) com a nav em dropdown. */
  .site-header__inner {
    height: auto;
    min-height: var(--header-h);
    flex-wrap: wrap;
    align-items: center;
    gap: 0 16px;
  }

  /* Checkbox de controle: fora da tela mas focavel pelo teclado. */
  .nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
    pointer-events: none;
  }

  /* Botao hamburger com tres barras que viram X quando aberto. */
  .nav-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px 9px;
    margin-right: -9px;
    cursor: pointer;
    border-radius: 8px;
  }
  .nav-toggle-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle:focus-visible ~ .nav-toggle-btn {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Nav some por padrao e aparece como lista ao marcar o checkbox. */
  .main-nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0 calc(-1 * var(--pad-x));
    padding: 4px var(--pad-x) 10px;
    border-top: 1px solid var(--border-3);
  }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .main-nav a {
    padding: 13px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--border-3);
  }
  .main-nav a:last-child { border-bottom: none; }

  /* Numeros */
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stat { padding: 22px 0; }
  .stat + .stat {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .stat:first-child { padding-top: 4px; }

  /* Compromissos */
  .commitments { grid-template-columns: 1fr; }
  .commitment {
    padding: 20px 0;
    border-right: none;
    border-top: 1px solid var(--border-4);
  }
  .commitment:first-child {
    padding-top: 0;
    border-top: none;
  }
  .commitment:last-child { padding-bottom: 0; }
}

/* Respeita preferencia de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
