/* =====================================================================
   DUALL TECH MOTOS — BASE
   Tokens de design, reset, tipografia, grid e utilitários.
   ===================================================================== */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fallback métrico para reduzir o deslocamento ao trocar a fonte */
@font-face {
  font-family: 'Manrope Fallback';
  src: local('Arial');
  size-adjust: 103%;
  ascent-override: 103%;
  descent-override: 29%;
  line-gap-override: 0%;
}

:root {
  /* Cores */
  --c-white: #FFFFFF;
  --c-surface: #F6F7F8;
  --c-surface-2: #EEF0F2;
  --c-ink: #131416;
  --c-graphite: #24262A;
  --c-graphite-2: #2E3035;
  --c-muted: #6A6E75;          /* ajustado de #70747B para contraste AA em superfícies claras */
  --c-muted-dark: #A3A7AE;     /* texto auxiliar em fundos escuros */
  --c-line: #E3E5E8;
  --c-line-strong: #CDD0D5;
  --c-line-dark: #34363B;
  --c-red: #C91F36;
  --c-red-hover: #A9182C;
  --c-red-soft: #F9E6E9;
  --c-eco: #11804F;
  --c-wa: #25D366;        /* verde oficial do WhatsApp */
  --c-wa-hover: #1EBE5B;
  --c-wa-text: #128C4B;   /* verde escuro para texto sobre branco (contraste AA) */            /* verde de veículos elétricos (contraste AA com texto branco) */

  /* Tipografia */
  --font: 'Manrope', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-display: clamp(2.6rem, 1.2rem + 5.6vw, 6.1rem);
  --fs-h2: clamp(2rem, 1.25rem + 3vw, 3.75rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* Espaçamento */
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
  --section-y: clamp(4.5rem, 2.5rem + 7vw, 9rem);
  --container: 1320px;
  --header-h: 72px;

  /* Forma e movimento */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.28s;
  --shadow-sm: 0 1px 2px rgba(19, 20, 22, 0.06);
  --shadow: 0 10px 30px -14px rgba(19, 20, 22, 0.22);
}

@media (min-width: 960px) {
  :root { --header-h: 84px; }
}

/* ---------------------------- Reset ---------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

sub { font-size: 0.68em; line-height: 0; vertical-align: -0.2em; }

::selection { background: var(--c-red); color: var(--c-white); }

:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------- Utilitários ------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: none; }

.accent { color: var(--c-red); }
.nowrap { white-space: nowrap; }
/* preserva a grafia de termos técnicos dentro de títulos em maiúsculas (ex.: LiFePO4) */
.no-caps { text-transform: none; }

/* -------------------------- Tipografia -------------------------- */
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.6rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.eyebrow__tick {
  width: 18px; height: 2px;
  background: var(--c-red);
  flex: none;
}
.eyebrow__sep { color: var(--c-line-strong); font-weight: 400; }

.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-muted);
  max-width: 34rem;
  text-wrap: pretty;
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
@media (min-width: 960px) {
  .section-head {
    grid-template-columns: 1.15fr 1fr;
    align-items: end;
    column-gap: 4rem;
  }
  .section-head .eyebrow { grid-column: 1 / -1; }
  .section-head .section-lead { justify-self: end; }
}

/* --------------------------- Revelação --------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
