/* ==========================================================================
   MOVAR TRANSPORTES — Design System base
   Identidade própria: navy profundo + laranja "movimento" + teal de sucesso.
   ========================================================================== */

:root {
  /* Paleta */
  --navy-900: #071634;
  --navy-800: #0a1f44;
  --navy-700: #12315f;
  --navy-600: #1c4483;
  --accent-600: #f2591f;
  --accent-500: #ff6a2c;
  --accent-400: #ff8a52;
  --teal-500: #12b886;
  --teal-600: #0f9d76;
  --amber-500: #f7b731;
  --danger-500: #e03131;

  /* Neutros */
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e4e9f2;
  --border-strong: #cbd5e6;
  --text: #14213d;
  --text-soft: #45526e;
  --muted: #7a879e;

  /* Tokens */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(10, 31, 68, .08);
  --shadow: 0 8px 24px rgba(10, 31, 68, .10);
  --shadow-lg: 0 20px 50px rgba(10, 31, 68, .16);
  --ring: 0 0 0 4px rgba(255, 106, 44, .18);

  --container: 1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip; /* trava rolagem horizontal acidental sem quebrar o header sticky */
}

img { max-width: 100%; }

/* Reforço de experiência mobile (não afeta o desktop):
   - fonte 16px nos campos evita o zoom automático do iOS ao focar
   - alvos de toque com altura mínima confortável */
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px !important; }
  .btn { min-height: 44px; }
  .icon-btn { width: 38px; height: 38px; }
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-600);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent-500); border-radius: 2px; }

/* ------------------------------- Logo ---------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__type { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  letter-spacing: .02em; color: var(--navy-800);
}
.logo__sub {
  font-family: var(--font-display); font-weight: 600; font-size: .6rem;
  letter-spacing: .42em; color: var(--accent-600); text-transform: uppercase; margin-top: 3px;
}
.logo--light .logo__name { color: #fff; }
.logo--light .logo__sub { color: var(--accent-400); }

/* ------------------------------ Botões --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-500); color: #fff; box-shadow: 0 10px 24px rgba(255,106,44,.28); }
.btn--primary:hover { background: var(--accent-600); box-shadow: 0 14px 30px rgba(255,106,44,.35); }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--navy-700); background: var(--surface-2); }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { background: #f0f3fa; }
.btn--sm { padding: 8px 15px; font-size: .84rem; }
.btn--block { width: 100%; }
.btn--danger { background: var(--danger-500); color: #fff; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ------------------------------ Chips/Badges --------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 700; font-family: var(--font-display);
  padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap;
}
.badge::before { content:''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--info { background: #e7effe; color: #1f5fbf; }
.badge--progress { background: #fff0e6; color: var(--accent-600); }
.badge--success { background: #dcf6ec; color: var(--teal-600); }
.badge--warning { background: #fff4d6; color: #b7791f; }
.badge--danger { background: #fde3e3; color: var(--danger-500); }

/* ------------------------------ Utilidades ----------------------------- */
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .5s ease both; }

.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--navy-800); color: #fff; padding: 13px 18px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 500; min-width: 240px;
  animation: fadeUp .3s ease both; border-left: 4px solid var(--accent-500);
}
.toast--ok { border-left-color: var(--teal-500); }
.toast--err { border-left-color: var(--danger-500); }

.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }
