/* Nodara: base comum aos dois sites.
   Cada site define a própria identidade (cores, fontes, raio) em support/support.css ou hardware/hardware.css. */

:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --ink: #161616;
  --muted: #6B6B6B;
  --line: #E5E5E3;
  --focus: #161616;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);
  --font-label: var(--font-body);
  --radius: 0;
  --header-h: 72px;
  --wrap: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 14px; }
.skip:focus { top: 12px; }

/* ---------- Cabeçalho ---------- */
nodara-header { display: block; position: sticky; top: 0; z-index: 20; min-height: var(--header-h); }
.nd-header {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nd-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.nd-mark { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .3em; text-decoration: none; padding-right: 28px; border-right: 1px solid var(--line); line-height: 24px; }
.nd-switch { display: flex; gap: 20px; font-size: 14px; }
.nd-switch a, .nd-pages a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nd-switch a:hover, .nd-pages a:hover { color: var(--ink); }
.nd-switch a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nd-pages { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; }
.nd-pages a[aria-current="page"] { color: var(--ink); }
.nd-pages .nd-cta { color: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius); padding: 8px 16px; transition: background .2s, color .2s; }
.nd-pages .nd-cta:hover, .nd-pages .nd-cta[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* ---------- Rodapé ---------- */
.nd-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 13px; color: var(--muted); }
.nd-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.nd-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.nd-footer a { text-decoration: none; }
.nd-footer a:hover { color: var(--ink); }

/* ---------- Tipografia ---------- */
.label { font-family: var(--font-label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.muted { color: var(--muted); }

/* ---------- Ações ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink); border-radius: var(--radius);
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn[disabled] { opacity: .5; cursor: progress; }
.link { font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .2s; }
.link:hover { border-color: var(--ink); }

/* ---------- Seções ---------- */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }

/* lista de linhas, usada para serviços e etapas */
.rows { list-style: none; border-top: 1px solid var(--line); }
.rows > li { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.rows h3 { font-size: 18px; font-weight: 500; }
.rows p { color: var(--muted); }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field > label, .field legend { font-size: 14px; font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 0 12px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font-size: 16px; transition: border-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236B6B6B' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 4px center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 1px solid var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-bottom-color: #A33; }
.field fieldset { border: 0; display: grid; gap: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { display: inline-block; padding: 8px 16px; font-size: 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); transition: border-color .2s, color .2s, background .2s; }
.choices label:hover span { border-color: var(--muted); color: var(--ink); }
.choices input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.choices input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-note { font-size: 13px; color: var(--muted); max-width: 420px; }
.form-status { font-size: 14px; min-height: 22px; }
.form-status.erro { color: #A33; }
.form-status a { color: inherit; }
.form-done { padding: 40px 0; border-top: 1px solid var(--ink); }
.form-done h2 { font-size: 28px; margin-bottom: 8px; }
.form-done p { color: var(--muted); margin-bottom: 24px; }
.form-done .link { background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }

/* ---------- Movimento ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  :root { --header-h: 108px; }
  .nd-header .wrap { flex-wrap: wrap; height: auto; gap: 0 20px; }
  .nd-mark, .nd-switch { height: 56px; display: flex; align-items: center; }
  .nd-mark { padding-right: 20px; }
  .nd-pages { margin: 0; width: 100%; height: 52px; border-top: 1px solid var(--line); gap: 24px; }
  .nd-pages .nd-cta { margin-left: auto; padding: 6px 14px; }
  .section { padding: 80px 0; }
  .section-head, .rows > li { grid-template-columns: 1fr; gap: 10px; }
  .section-head { margin-bottom: 40px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 40px); }
  .form-grid { grid-template-columns: 1fr; }
  .nd-switch { gap: 16px; }
  .btn { width: 100%; }
}
