/* NUX Tech — site institucional (proposta 2026-09-29).
   Identidade do painel NUX: marinho #14213d + âmbar #fca311, Fraunces (títulos) + Hanken Grotesk (texto),
   fontes locais (sem Google Fonts). Contraste AA conferido para cada par usado aqui (ver relatório). */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/fraunces-latin.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: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/fraunces-latin-ext.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: 400 700; font-display: swap; src: url('../fonts/hanken-grotesk-latin.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 700; font-display: swap; src: url('../fonts/hanken-grotesk-latin-ext.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; }

:root {
  --navy: #14213d;        /* branco sobre: 16:1 */
  --navy-2: #24314b;
  --amber: #fca311;       /* preenchimento; texto sobre ele = --ink (8,5:1) */
  --amber-ink: #8a5a0e;   /* âmbar como TEXTO sobre --bg: 5,1:1 */
  --amber-wash: #ffefd5;
  --bg: #f6f1e8;
  --surface: #fffdfa;
  --line: #e3dace;
  --line-strong: #968a7b; /* contorno de botão secundário, 3,2:1 */
  --ink: #1f1a15;         /* 16,5:1 sobre --bg */
  --ink-2: #4f463c;       /* 8,4:1 sobre --bg */
  --on-navy-2: #c9d0dc;   /* texto secundário sobre marinho: 10:1 */
  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', Georgia, serif;
  --r: 16px;
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: var(--ink); padding: 12px 16px; border-radius: 10px; font-weight: 700; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 5; background: var(--navy); color: #fff; }
.topo .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.marca { display: inline-flex; align-items: center; min-height: 44px; font: 700 21px/1 var(--font); letter-spacing: 0.02em; text-decoration: none; color: #fff; }
.marca span { color: var(--amber); margin-left: 4px; }
.topo nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.topo nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--on-navy-2); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 10px; }
.topo nav a:hover { color: #fff; background: var(--navy-2); }
.topo .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
@media (max-width: 860px) { .topo nav { display: none; } }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 12px; font: 700 17px/1.2 var(--font); text-decoration: none; border: 2px solid transparent; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primario { background: var(--amber); color: var(--ink); }
.btn-primario:hover { background: #ffb43d; }
.btn-secundario { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secundario:hover { background: var(--surface); }
.btn-claro { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-claro:hover { background: var(--navy-2); }

/* ---------- abertura ---------- */
.abertura { padding: 56px 0 40px; }
.abertura .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.etiqueta { display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 16px; }
.abertura h1 { font-size: clamp(36px, 5.2vw, 60px); }
.abertura .sub { font-size: 19px; color: var(--ink-2); margin-top: 20px; max-width: 34em; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.nota { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.vitrine { position: relative; min-height: 420px; }
.vitrine .desk { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(20, 33, 61, 0.18); width: 100%; }
.vitrine .fone { position: absolute; right: -8px; bottom: -28px; width: 38%; border-radius: 26px; border: 6px solid var(--navy); box-shadow: 0 18px 40px rgba(20, 33, 61, 0.3); background: var(--navy); }
.legenda-vitrine { font-size: 14px; color: var(--ink-2); margin-top: 44px; }
@media (max-width: 860px) {
  .abertura { padding: 36px 0 24px; }
  .abertura .wrap { grid-template-columns: 1fr; gap: 32px; }
  .vitrine { min-height: 0; }
  /* no celular o telefone fica no fluxo (sobrepõe só a parte de baixo do painel, nunca o texto acima) */
  .vitrine .fone { position: relative; right: auto; bottom: auto; width: 50%; margin: -22% 0 0 auto; max-width: 300px; border-width: 4px; border-radius: 18px; }
  .legenda-vitrine { margin-top: 14px; }
  .acoes .btn { flex: 1 1 100%; }
}

/* ---------- seções ---------- */
section { padding: 64px 0; }
/* âncoras do menu/botões: o título não fica escondido sob o topo fixo (64px) */
section[id], [id="conteudo"] { scroll-margin-top: 80px; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.titulo-secao { font-size: clamp(30px, 3.6vw, 42px); max-width: 20em; }
.intro { font-size: 18px; color: var(--ink-2); margin-top: 14px; max-width: 40em; }
.grade3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.grade2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
@media (max-width: 860px) { section { padding: 48px 0; } .grade3, .grade2 { grid-template-columns: 1fr; } }
.peca { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
section.alt .peca { background: var(--bg); }
.peca figure { margin: 0; background: #ece5da; padding: 20px 20px 0; height: 300px; overflow: hidden; }
.peca figure img { border-radius: 12px 12px 0 0; margin: 0 auto; width: 76%; box-shadow: 0 8px 24px rgba(20, 33, 61, 0.14); }
.peca .corpo { padding: 22px 22px 26px; }
.peca h3 { font-size: 23px; }
.peca p { margin-top: 8px; color: var(--ink-2); }
.tipo { background: var(--navy); color: #fff; border-radius: var(--r); padding: 30px 28px; }
.tipo h3 { font-size: 27px; color: #fff; }
.tipo .quem { color: var(--amber); font-weight: 700; margin-top: 6px; }
.tipo ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tipo li { position: relative; padding-left: 28px; color: var(--on-navy-2); }
.tipo li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px; border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(-45deg); }
.passos { counter-reset: p; list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.passos li { counter-increment: p; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.passos li::before { content: counter(p); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: var(--ink); font-weight: 700; margin-bottom: 14px; }
.passos h3 { font-size: 22px; }
.passos p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 860px) { .passos { grid-template-columns: 1fr; } }
.botoes-vs { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.botoes-vs ul { margin: 20px 0 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 8px; }
.botoes-vs img { border-radius: 18px; border: 5px solid var(--navy); max-width: 340px; margin: 0 auto; }
@media (max-width: 860px) { .botoes-vs { grid-template-columns: 1fr; } }

/* ---------- perguntas ---------- */
.faq { margin-top: 28px; display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; min-height: 56px; padding: 16px 52px 16px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--amber-ink); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); }

/* ---------- chamada final e rodapé ---------- */
.final { background: var(--navy); color: #fff; text-align: center; }
.final h2 { font-size: clamp(30px, 4vw, 44px); color: #fff; }
.final p { color: var(--on-navy-2); margin: 14px auto 0; max-width: 34em; font-size: 18px; }
.final .acoes { justify-content: center; }
.final a.email { color: #fff; }
.rodape { background: #0e1830; color: var(--on-navy-2); padding: 36px 0 28px; font-size: 15px; }
.rodape .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-start; }
.rodape a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }
.rodape .marca { font-size: 19px; }
.rodape ul { list-style: none; margin: 0; padding: 0; }

/* ---------- página 404 (sem <style> embutido: a CSP do site não permite) ---------- */
body.erro { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.erro-card { max-width: 440px; text-align: center; }
.erro-card h1 { font-size: 34px; }
.erro-card .acoes { justify-content: center; }
