/* Identidade visual Ygapó: azul escuro #0A329C, azul médio #1FA6C4, verde #29C08A, verde claro #D1F3EC */
:root {
  --navy: #0A329C;
  --blue: #1FA6C4;
  --green: #29C08A;
  --mint: #D1F3EC;

  --bg: #ffffff;
  --surface: #f6fafb;
  --text: #0d1f45;
  --muted: #4c5b78;
  --line: #e1e8ef;
  --brand-text: var(--navy);
  --link: #0a4fb8;
  --gradient: linear-gradient(110deg, var(--navy) 0%, var(--blue) 55%, var(--green) 100%);
  --on-gradient: #ffffff;
  --chip-bg: var(--mint);
  --chip-text: #0b5a44;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1226;
    --surface: #101b36;
    --text: #e8eefb;
    --muted: #a3b1cc;
    --line: #22304f;
    --brand-text: #ffffff;
    --link: #5fd3e6;
    --chip-bg: #123d35;
    --chip-text: #a6efd6;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Cabeçalho */
header.site { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-text); }
.brand img { width: 34px; height: 34px; }
.brand span { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; line-height: 1; }
.brand small { display: block; font-weight: 600; font-size: 10px; letter-spacing: 0.28em; color: var(--blue); margin-top: 3px; }
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 520px) { nav .optional { display: none; } }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--gradient); color: var(--on-gradient); box-shadow: 0 6px 18px rgba(10, 50, 156, .22); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-outline { border: 1.5px solid var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--blue); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 120px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 18px; max-width: 15em; }
.hero h1 em { font-style: normal; background: linear-gradient(110deg, var(--navy), var(--blue) 70%, #1a9a73); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); margin: 0 0 32px; max-width: 34em; }
.wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 110px; display: block; }

/* Seções */
section.block { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }
h2.title { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
p.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
section.alt .card { background: var(--bg); }
.card h3 { font-size: 20px; margin: 0 0 4px; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin: 8px 0 0; }
.card ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.card li { margin: 4px 0; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-text); }
.card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--gradient); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Contato */
.cta { background: var(--gradient); color: var(--on-gradient); border-radius: 18px; padding: 40px 28px; }
.cta h2 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.02em; }
.cta p { margin: 0 0 24px; opacity: .92; }
.cta .btn { background: #fff; color: var(--navy); overflow-wrap: anywhere; white-space: normal; text-align: center; }

/* Documento (política) */
article.doc { padding: 48px 16px 64px; }
article.doc h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; }
article.doc .updated { color: var(--muted); margin: 0 0 32px; }
article.doc h2 { font-size: 20px; margin: 40px 0 12px; padding-top: 12px; border-top: 1px solid var(--line); }
article.doc h3 { font-size: 16px; margin: 20px 0 8px; }
article.doc ul { padding-left: 22px; }
article.doc li { margin: 4px 0; }

.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--bg); font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: var(--surface); }
tr:last-child td { border-bottom: 0; }

.notfound { padding: 64px 16px; }
.notfound .lead { color: var(--muted); }

/* Rodapé */
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer.site p { margin: 0; }
footer.site a { color: var(--muted); }
@media (prefers-color-scheme: dark) { .wave-mint { opacity: .15; } }
