/* ==========================================================================
   EXCLUSIVE CAR BC | Base / Reset / Typography
   ========================================================================== */

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--surface-0);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

::selection { background: var(--blue); color: var(--surface-0); }

/* Focus visível, obrigatório para acessibilidade */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Tipografia ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-1);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.h1, h1 { font-size: clamp(2.5rem, 3.2vw + 1.6rem, 4.5rem); letter-spacing: -0.025em; }
.h2, h2 { font-size: clamp(2rem, 2vw + 1.4rem, 3rem); }
.h3, h3 { font-size: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem); letter-spacing: -0.01em; }

p { max-width: 68ch; }
p.wide { max-width: none; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--blue);
  flex-shrink: 0;
}

.mono { font-family: var(--font-mono); }

.text-ink-3 { color: var(--ink-3); }
.text-ink-4 { color: var(--ink-4); }

/* ---- Layout ---- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-section-mobile);
  position: relative;
}
@media (min-width: 900px) {
  .section { padding-block: var(--space-section-desktop); }
}

.section--tight { padding-block: calc(var(--space-section-mobile) * 0.6); }
@media (min-width: 900px) {
  .section--tight { padding-block: calc(var(--space-section-desktop) * 0.6); }
}

.bg-0 { background: var(--surface-0); }
.bg-1 { background: var(--surface-1); }

.section-head {
  margin-bottom: 3rem;
  max-width: 640px;
}
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head.center { margin-inline: auto; text-align: center; }
@media (min-width: 900px) {
  .section-head { margin-bottom: 4.5rem; }
}

.divider {
  height: 1px;
  background: var(--line-1);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: var(--surface-0);
  padding: 12px 20px;
  z-index: 999;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
}

.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;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
