/* ==========================================================================
   Dracerauto — landing page (produção)
   CSS puro, sem dependências. Tokens em :root; componentes abaixo.
   ========================================================================== */

/* --- Fontes self-hosted (subset latin, cobre pt-BR) ---------------------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 800; /* fonte variável: um arquivo cobre 500–800 */
  font-display: swap;
  src: url("../fonts/archivo-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --bg: #F6F4F1;
  --surface: #FFFFFF;
  --surface-2: #EDEAE5;
  --line: #E4E0DB;

  --ink: #16171A;
  --ink-2: #2B2D31;
  --muted: #4C4E54;
  --muted-2: #55575D;

  --dark: #26272B;
  --dark-2: #1A1B1E;
  --dark-3: #0F1012;
  --dark-line: #35373C;
  --dark-line-2: #3A3C42;

  --on-dark: #D8D6D2;
  --on-dark-2: #E8E6E2;
  --on-dark-3: #C9C6C1;
  --on-dark-4: #DCD9D4;
  --on-dark-muted: #85878D;
  --on-dark-muted-2: #9B9DA3;
  --on-dark-muted-3: #A2A4AA;

  --orange: #EE7623;
  --orange-deep: #C25508;
  --orange-dark: #A8480A;
  --wa: #1C8239;
  --wa-dark: #146B2D;

  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --radius: 6px;
  --radius-sm: 4px;
  --section-y: clamp(64px, 7vw, 110px);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.28);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--orange-deep);
  text-decoration: none;
}
a:hover { color: var(--orange); }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
}

p { margin: 0; }

ul { list-style: none; margin: 0; padding: 0; }

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

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

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

/* --- Utilitários ---------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--flush {
  padding-left: 0;
  padding-right: 0;
}

address { font-style: normal; }

/* Sprite de ícones: nunca renderiza por si só (o atributo hidden não vale para SVG) */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--orange-deep);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
}
.skip-link:focus { top: 16px; color: #fff; }

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.eyebrow--light { color: var(--orange); }

.section-title {
  font-weight: 800;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-title--light { color: #fff; }

.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 48ch;
  text-wrap: pretty;
}
.lead--light { color: var(--on-dark-3); }

/* --- Botões --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 18px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn--primary {
  background: var(--orange-deep);
  color: #fff;
}
.btn--primary:hover { background: var(--orange-dark); color: #fff; }

.btn--ghost {
  color: #fff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover { border-color: #fff; color: #fff; }

.btn--dark {
  background: var(--dark);
  color: #fff;
}
.btn--dark:hover { background: var(--orange-deep); color: #fff; }

.btn--lg {
  min-height: 58px;
  padding: 19px 32px;
  font-size: 17px;
}

.btn--sm {
  min-height: 0;
  padding: 12px 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  border-bottom: 3px solid var(--orange);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  flex: none;
}
.brand:hover { color: inherit; }

.brand__logo {
  width: 46px;
  height: 46px;
  border-radius: 5px;
  object-fit: cover;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: #fff;
}

.brand__tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-top: 5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  flex-wrap: wrap;
}

.nav__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark);
  padding: 8px 0;
  transition: color 0.18s ease;
}
.nav__link:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  color: #fff;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.18s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.nav-toggle__bars::before { transform: translateY(-8px); }
.nav-toggle__bars::after { transform: translateY(8px); }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 22px;
    background: var(--dark);
    border-bottom: 3px solid var(--orange);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  }
  .nav.is-open { display: flex; }

  .nav__link {
    font-size: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--dark-line);
  }

  .nav .btn { margin-top: 18px; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 78vh, 760px);
  background: var(--dark-2);
  isolation: isolate;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img {
  object-fit: cover;
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(14, 15, 17, 0.95) 0%, rgba(14, 15, 17, 0.82) 48%, rgba(14, 15, 17, 0.30) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: clamp(80px, 10vw, 130px);
  padding-bottom: clamp(52px, 6vw, 84px);
}

.badge {
  display: inline-flex;
  background: var(--orange-deep);
  padding: 9px 14px;
  border-radius: 3px;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.hero__title {
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 0.97;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 15ch;
  text-wrap: balance;
}

.hero__lead {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: var(--on-dark-4);
  max-width: 54ch;
  margin-top: 26px;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* --- Faixa de credenciais ------------------------------------------------- */
.strip { background: var(--dark); }

.strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 20px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.strip__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--on-dark-2);
  font-size: 15px;
  font-weight: 500;
}

.strip__num {
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
}

/* --- Seções --------------------------------------------------------------- */
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.section--alt { background: var(--surface-2); }
.section--dark { background: var(--dark); }
.section--darker { background: var(--dark-2); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 46px;
}
.section-head__title { flex: 1 1 380px; }
.section-head__title .section-title {
  margin-top: 14px;
  max-width: 19ch;
}
.section-head__lead {
  flex: 1 1 300px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40ch;
  text-wrap: pretty;
}

/* --- Cards de linhas ------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 208px;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 26px 24px 28px;
}

.card__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.card__title {
  font-weight: 700;
  font-size: 23px;
  line-height: 1.15;
}

.card__text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted-2);
  text-wrap: pretty;
}

/* --- Destaque (FS 221) ---------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.feature__media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(44px, 5vw, 76px) clamp(24px, 4vw, 64px);
}
.feature__body .section-title { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.02; }
.feature__body .lead { max-width: 46ch; }
.feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

/* --- Blocos texto + imagem (Assistência / A loja) ------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.split__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.split__body .section-title { max-width: 18ch; }

.split__media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
}
.split__media--tall img { min-height: 360px; }

.checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}
.checklist li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--orange-deep);
}

.split__cta { margin-top: 12px; }

/* --- Galeria -------------------------------------------------------------- */
.gallery { margin-top: clamp(44px, 5vw, 72px); }

.gallery__title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 20px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 14px;
}

.gallery__grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 5px;
}

.gallery__brands {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-2);
  margin-top: 22px;
  max-width: 80ch;
}

/* --- Contato -------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 4vw, 56px);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__info .section-title { max-width: 16ch; }

.contact__block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.contact__value {
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
}
.contact__value a { color: #fff; }
.contact__value a:hover { color: var(--orange); }
.contact__value .is-muted { color: var(--on-dark-muted-2); }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark);
  border: 1px solid var(--dark-line-2);
  color: #fff;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.social:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }
.social--wa:hover { background: var(--wa); border-color: var(--wa); }
.social svg { width: 21px; height: 21px; }

.map {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
  border: 1px solid var(--dark-line);
}

.map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* Enquanto o JS não injeta o src, o iframe fica oculto (evita quadro branco) */
.map__frame:not([src]) { visibility: hidden; }

/* --- Rodapé --------------------------------------------------------------- */
.site-footer {
  background: var(--dark-3);
  padding: 36px 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark-muted);
}
.site-footer__brand img {
  width: 38px;
  height: 38px;
  border-radius: 5px;
  object-fit: cover;
}

.site-footer__note {
  font-size: 14px;
  color: var(--on-dark-muted-3);
}

/* --- Botão flutuante WhatsApp -------------------------------------------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: var(--shadow-float);
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.wa-float:hover { background: var(--wa-dark); color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; }

@media (max-width: 480px) {
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .wa-float svg { width: 27px; height: 27px; }
}
