/* =========================================================
   NR – Identidade visual dos sistemas (base para implementação)
   Fonte: Figtree (Google Fonts) — incluir no <head>:
   <link href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap" rel="stylesheet">
   ========================================================= */

:root {
  /* Cores da marca */
  --nr-red: #C8102E;          /* ação principal: botões, passo atual, logo */
  --nr-red-dark: #A30D25;     /* hover do botão principal, texto de erro */
  --nr-red-text: #B0122B;     /* links e textos em vermelho (contraste AA) */
  --nr-red-soft: #FBE7EA;     /* fundo de item ativo do menu, selos */
  --nr-red-tint: #FDF3F4;     /* fundo de opção selecionada */

  /* Neutros (base quente) */
  --nr-ink: #1D1B1A;          /* texto principal, botão secundário escuro */
  --nr-ink-2: #3B3735;        /* texto de menu */
  --nr-ink-3: #4A4542;        /* texto de apoio */
  --nr-muted: #5A5552;        /* legendas, descrições */
  --nr-muted-2: #6B6562;      /* rótulos em caixa alta */
  --nr-bg: #F7F5F2;           /* fundo da página */
  --nr-surface: #FFFFFF;      /* cartões */
  --nr-sand: #EDE9E4;         /* placeholders, trilho de abas */
  --nr-line: #E7E3DE;         /* bordas de cartões */
  --nr-line-2: #EFEBE7;       /* divisórias internas */
  --nr-field: #D6D0CA;        /* borda de campos e opções */

  /* Status */
  --nr-ok: #1E6B3A;     --nr-ok-bg: #E6F4EA;     /* pago, confirmado, disponível */
  --nr-warn: #8A5300;   --nr-warn-bg: #FFF1D6;   /* aguardando, atenção */

  /* Forma */
  --nr-radius-sm: 10px;   /* chips de menu, botões pequenos */
  --nr-radius: 12px;      /* botões e campos */
  --nr-radius-md: 14px;   /* opções selecionáveis */
  --nr-radius-lg: 18px;   /* cartões */
  --nr-radius-xl: 20px;   /* cartões grandes, modais */
  --nr-shadow: 0 24px 48px -24px rgba(40, 20, 10, 0.18);

  --nr-container: 1200px; /* largura máxima do conteúdo (loja: 1240px) */
  --nr-font: 'Figtree', system-ui, sans-serif;
}

body { margin: 0; background: var(--nr-bg); color: var(--nr-ink); font-family: var(--nr-font); }
a { color: var(--nr-red-text); }
a:hover { color: #8A0E22; }

.nr-container { max-width: var(--nr-container); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* ---------- Tipografia ---------- */
.nr-h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.8px; margin: 0; }
.nr-display { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -1.6px; margin: 0; }
.nr-h2 { font-size: 22px; font-weight: 800; margin: 0; }
.nr-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #9E0F26; }
.nr-label { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--nr-muted-2); }
.nr-muted { color: var(--nr-muted); }

/* ---------- Logo (texto, até ter o arquivo oficial) ---------- */
.nr-logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.nr-logo b { font-size: 28px; font-weight: 800; letter-spacing: -1.5px; color: var(--nr-red); line-height: 1; }
.nr-logo small { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--nr-red); }

/* ---------- Cabeçalho ---------- */
.nr-header { background: var(--nr-surface); border-bottom: 1px solid var(--nr-line); }
.nr-header__inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 24px; max-width: 1340px; margin: 0 auto; }
.nr-nav { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nr-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--nr-radius-sm); font-size: 15px; font-weight: 600; color: var(--nr-ink-2); text-decoration: none; }
.nr-nav a[aria-current="page"] { background: var(--nr-red-soft); color: #9E0F26; font-weight: 700; }
.nr-topbar { background: var(--nr-ink); color: #fff; font-size: 13px; font-weight: 600; }

/* ---------- Botões ---------- */
.nr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: var(--nr-radius); font: 700 16px/1 var(--nr-font); text-decoration: none; cursor: pointer; border: none; }
.nr-btn--primary { background: var(--nr-red); color: #fff; }
.nr-btn--primary:hover { background: var(--nr-red-dark); color: #fff; }
.nr-btn--secondary { background: #fff; color: var(--nr-ink); border: 1.5px solid var(--nr-ink); }
.nr-btn--dark { background: var(--nr-ink); color: #fff; }
.nr-btn--block { width: 100%; }
.nr-btn:disabled, .nr-btn[aria-disabled="true"] { background: var(--nr-line); color: var(--nr-muted-2); cursor: not-allowed; }

/* ---------- Campos ---------- */
.nr-field { display: flex; flex-direction: column; gap: 8px; }
.nr-field label { font-size: 14px; font-weight: 700; }
.nr-input, .nr-select { height: 50px; box-sizing: border-box; padding: 0 14px; font: 16px var(--nr-font); color: var(--nr-ink);
  background: #fff; border: 1.5px solid var(--nr-field); border-radius: var(--nr-radius); }
.nr-input:focus, .nr-select:focus { outline: 3px solid rgba(200, 16, 46, .25); border-color: var(--nr-red); }
.nr-hint { font-size: 13px; color: var(--nr-muted); }
.nr-error { font-size: 14px; font-weight: 600; color: var(--nr-red-dark); }

/* ---------- Cartões ---------- */
.nr-card { background: var(--nr-surface); border: 1px solid var(--nr-line); border-radius: var(--nr-radius-xl); padding: 28px; }
.nr-card--soft { background: var(--nr-bg); border: none; border-radius: var(--nr-radius-md); padding: 16px; }

/* ---------- Selos / status ---------- */
.nr-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.nr-badge--ok { background: var(--nr-ok-bg); color: var(--nr-ok); }
.nr-badge--warn { background: var(--nr-warn-bg); color: var(--nr-warn); }
.nr-badge--brand { background: var(--nr-red-soft); color: #9E0F26; }
.nr-badge--neutral { background: var(--nr-bg); color: var(--nr-ink); }

/* ---------- Avisos ---------- */
.nr-alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--nr-radius); font-size: 14px; line-height: 1.5; }
.nr-alert--warn { background: var(--nr-warn-bg); color: #6B4200; }
.nr-alert--ok { background: var(--nr-ok-bg); color: var(--nr-ok); }

/* ---------- Opção selecionável (radio/checkbox em cartão) ---------- */
.nr-option { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px; border: 1.5px solid var(--nr-field);
  border-radius: var(--nr-radius-md); background: #fff; text-align: left; cursor: pointer; font-family: var(--nr-font); color: var(--nr-ink); }
.nr-option[aria-checked="true"], .nr-option.is-selected { border: 2px solid var(--nr-red); background: var(--nr-red-tint); }

/* ---------- Indicador de etapas ---------- */
.nr-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nr-steps__dot { width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.nr-steps .is-current .nr-steps__dot { background: var(--nr-red); color: #fff; }
.nr-steps .is-done { color: var(--nr-ok); }
.nr-steps .is-done .nr-steps__dot { background: var(--nr-ok-bg); }
.nr-steps .is-todo { color: var(--nr-muted); }
.nr-steps .is-todo .nr-steps__dot { border: 2px solid var(--nr-field); box-sizing: border-box; }
.nr-steps__line { width: 32px; height: 2px; background: var(--nr-field); }

/* ---------- Modal ---------- */
.nr-overlay { position: fixed; inset: 0; background: rgba(29, 27, 26, .55); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; }
.nr-modal { width: 100%; max-width: 520px; background: #fff; border-radius: var(--nr-radius-xl); padding: 32px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.4); }

/* ---------- Barra fixa de reserva (loja) ---------- */
.nr-stickybar { position: sticky; bottom: 0; z-index: 5; background: #fff; border-top: 1px solid var(--nr-line); box-shadow: 0 -12px 24px -16px rgba(40,20,10,.25); }

/* ---------- Layout página + lateral ---------- */
.nr-split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.nr-split__main { flex: 999 1 560px; min-width: 0; }
.nr-split__aside { flex: 1 1 320px; min-width: 0; }
