/* ==========================================
   DESIGN SYSTEM — Lojão do Corsa & Celta
   Paleta Pit Boss · Tipografia Archivo Black + Archivo
   ========================================== */

:root {
  /* Fonts */
  --font-heading: 'Archivo Black', 'Archivo', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;

  /* Typographic Scale */
  --text-display: clamp(2.4rem, 6vw, 4.6rem);
  --text-h1: clamp(2.1rem, 5.4vw, 4.4rem);
  --text-h2: clamp(1.8rem, 3.6vw, 2.6rem);
  --text-h3: clamp(1.3rem, 2.4vw, 1.7rem);
  --text-h4: clamp(1.1rem, 1.8vw, 1.3rem);
  --text-body: 1rem;
  --text-body-sm: 0.875rem;
  --text-caption: 0.78rem;
  --text-overline: 0.72rem;

  /* Cores — Paleta Pit Boss */
  --color-bg: #0e2f7a;
  --color-bg-deep: #0a1f5a;
  --color-surface: #0a2466;
  --color-surface-2: #08205c;
  --color-primary: #ffc60a;
  --color-primary-dark: #e8a800;
  --color-primary-darker: #0a1a3a;
  --color-accent: #ffffff;
  --color-text: #ffffff;
  --color-text-muted: #b8c4e0;
  --color-border: #1a3d8c;
  --color-border-light: rgba(255, 255, 255, 0.15);
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-wa: #25d366;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-medium: 0 8px 28px rgba(0, 0, 0, 0.3);
  --shadow-dramatic: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-primary: 0 10px 36px rgba(255, 198, 10, 0.45), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
  --shadow-primary-hover: 0 16px 50px rgba(255, 198, 10, 0.6);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 600ms;
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-dramatic: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --section-py: clamp(3.5rem, 8vw, 7rem);
  --container-px: clamp(1.25rem, 4vw, 2rem);
  --container-max: 1300px;
  --container-narrow: 980px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 100px;

  --topbar-h: 40px;
}

/* ==========================================
   RESET
   ========================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ==========================================
   LAYOUT
   ========================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
