/* ============================================================================
   VFC · Design System (tokens) — fonte única de verdade.
   Reconciliação das dívidas DS-1..DS-8 do front-end-spec §2.
   Estética blueprint: flat, square, cantos de registro. NÃO adicionar radius.
   Regra sistêmica de cor: CYAN só sobre NAVY; em fundo claro use NAVY.
   ========================================================================== */

:root {
  /* — Marca (nomenclatura única) — */
  --navy: #0a3a70;          /* accent escuro · texto/ícone/foco sobre fundo claro (10.13:1) */
  --navy-hover: #05264a;    /* 12.9:1 */
  --cyan: #5bc4ec;          /* fills e texto/kicker SOBRE navy (5.70:1) — nunca texto sobre claro */

  /* — Superfícies / texto — */
  --color-bg: #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);

  /* — Neutros (fundo claro) — */
  --neutral-700: #5d5d60;   /* 5.87:1 — menor tom permitido p/ texto em claro */
  --neutral-800: #424244;   /* 8.96:1 — texto legal/secundário (nunca 9px/neutral-600) */

  /* — Sobre navy (ex-hardcoded) — */
  --on-navy: #ffffff;        /* 11.34:1 */
  --on-navy-soft: #cfe3f2;   /* 8.60:1 — parágrafos sobre navy */
  --on-navy-mute: #9cc3e0;   /* microtexto sobre navy (AA em texto pequeno) */

  /* — Tipografia — */
  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;  /* token de marca (labels/índices/legais) */

  /* — Escala fluida — clamp(MIN, vw+rem, MAX), preserva zoom/WCAG 1.4.4 — */
  --fs-h1: clamp(30px, 4.4vw, 46px);
  --fs-h2: clamp(24px, 3.4vw, 34px);
  --fs-h3: clamp(20px, 2.4vw, 25px);
  --fs-h4: 20px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-mono: clamp(11px, 1.1vw, 12px);   /* piso 11px — nunca 9px */

  /* — Espaçamento — */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px;

  /* — Elevação (sombra levemente tingida de navy — mais viva que cinza puro) — */
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--navy) 12%, transparent),
               0 1px 1px color-mix(in srgb, #000 4%, transparent);
  --shadow-md: 0 6px 16px color-mix(in srgb, var(--navy) 14%, transparent),
               0 2px 5px color-mix(in srgb, var(--navy) 9%, transparent);
  --shadow-lg: 0 18px 40px color-mix(in srgb, var(--navy) 18%, transparent),
               0 5px 12px color-mix(in srgb, var(--navy) 10%, transparent);

  /* — Fundo do hero: navy com brilho diagonal (identidade preservada, mais vivo) — */
  --hero-bg: radial-gradient(130% 120% at 82% 12%, #12508f 0%, #0a3a70 46%, #072a52 100%);
  --navy-panel: #0c4180;   /* superfície escura sutilmente destacada do navy base */

  --frame-line: color-mix(in srgb, var(--navy) 20%, transparent);  /* linha estrutural suave (não preto duro) */
  --maxw: 1200px;
  --header-h: 60px;
}

/* — Reset enxuto — */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 var(--space-3); text-wrap: pretty; }  /* evita órfãs/viúvas sem justificar */

.kicker, .mono {
  font-family: var(--font-mono); font-size: var(--fs-mono);
  letter-spacing: 0.14em; text-transform: uppercase;
}
/* Kicker com traço-guia (motivo técnico) — usa a cor do contexto */
.kicker { display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; flex: none; }
.text-muted { color: var(--neutral-700); }
.legal { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--neutral-800); line-height: 1.8; }

/* — Foco acessível (A11Y-3): navy em fundo claro, nunca cyan — */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
/* Sobre navy o anel precisa contrastar com o fundo escuro → cyan/branco */
.on-dark :focus-visible, .btn-cyan:focus-visible { outline-color: var(--cyan); }
::selection { background: color-mix(in srgb, var(--cyan) 35%, transparent); }

/* — Sistema blueprint (cantos de registro) — preservado do original — */
.blueprint { position: relative; }
/* Cantos de registro = acento na interação, não decoração permanente (evita
   aspecto de wireframe com marcas "+" soltas). Aparecem no hover/foco. */
.blueprint > .corner {
  position: absolute; width: 10px; height: 10px; pointer-events: none; display: none;
  color: color-mix(in srgb, currentColor 55%, transparent);
}
.blueprint:hover > .corner,
.blueprint:focus-visible > .corner,
.blueprint:focus-within > .corner { display: block; }
.blueprint > .corner::before, .blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 4px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 4px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -5px; left: -5px; }
.blueprint > .corner.tr { top: -5px; right: -5px; }
.blueprint > .corner.bl { bottom: -5px; left: -5px; }
.blueprint > .corner.br { bottom: -5px; right: -5px; }

/* — Botões (flat, square) — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 15px;
  line-height: 1.2; color: var(--color-text); letter-spacing: .01em;
  background: transparent; border: 1px solid transparent; border-radius: 0;
  padding: 12px 20px; min-height: 46px;   /* alvo A11Y-7 */
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.blueprint > .corner { display: none; }        /* dentro de botões, ocultos por padrão */
.btn.blueprint:hover > .corner, .btn.blueprint:focus-visible > .corner { display: block; }

.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-navy:hover { background: var(--navy-hover); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-navy:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-cyan { background: var(--cyan); border-color: var(--cyan); color: var(--navy); box-shadow: 0 4px 14px color-mix(in srgb, var(--cyan) 40%, transparent); }
.btn-cyan:hover { background: #74d0f2; color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 22px color-mix(in srgb, var(--cyan) 50%, transparent); }
.btn-cyan:active { transform: translateY(0); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: color-mix(in srgb, var(--navy) 8%, transparent); }
.btn-outline-light { border-color: color-mix(in srgb, #fff 53%, transparent); color: #fff; }
.btn-outline-light:hover { background: color-mix(in srgb, #fff 12%, transparent); }

/* — Tag / chip (status, selos) — */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  padding: 3px 9px; border: 1px solid var(--color-divider); border-radius: 0; white-space: nowrap;
}
.tag-navy { color: var(--navy); border-color: color-mix(in srgb, var(--navy) 40%, transparent); }
.tag-status { color: var(--navy); border-color: color-mix(in srgb, var(--navy) 40%, transparent); }
.tag-status[data-status="reservada"] { color: var(--neutral-700); border-color: var(--color-divider); }

/* — Régua — */
.hr { height: 1px; border: 0; margin: var(--space-4) 0; background: var(--color-divider); }

/* — Utilitário de container central com molduras laterais (essência do layout) — */
.frame { max-width: var(--maxw); margin: 0 auto; background: var(--color-bg);
  border-left: 1px solid var(--frame-line); border-right: 1px solid var(--frame-line);
  box-shadow: 0 0 60px color-mix(in srgb, var(--navy) 8%, transparent); }

/* — Motion sutil (sob prefers-reduced-motion) — */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
