/* 542 Automotive — estilos do site (preto + verde da logo) */
:root {
  /* Seções claras (padrão) */
  --bg: #f4f6f0;
  --bg-2: #eaefe2;
  --surface: #ffffff;
  --surface-2: #f7f9f3;
  --line: rgba(20, 30, 10, 0.10);
  --line-2: rgba(20, 30, 10, 0.18);
  --text: #141813;
  --muted: #586053;
  --accent-text: #4a7100;   /* verde escuro, legível no claro */
  --icon-bg: rgba(140, 200, 10, 0.16);

  /* Marca */
  --green: #8cc80a;
  --green-hover: #9fda22;
  --green-ink: #0d1400;
  --ink: #0f120e;
  --wa: #25d366;

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

/* Áreas escuras: topo, rodapé, hero e seções marcadas */
.dark, .header, .footer {
  --bg: #0f120e;
  --bg-2: #151913;
  --surface: #1a1f17;
  --surface-2: #20261c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f2f5ee;
  --muted: #a6ae9f;
  --accent-text: #a6dc2e;
  --icon-bg: rgba(140, 200, 10, 0.14);
  color-scheme: dark;
  background-color: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.accent { color: var(--green); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 4px; background: var(--green); transform: skewX(-30deg); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--green); color: var(--green-ink); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  padding: 15px 24px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  min-height: 52px;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--green-ink); box-shadow: 0 8px 24px rgba(140, 200, 10, 0.25); }
.btn-primary:hover { background: var(--green-hover); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--green); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #222820; }
.btn-sm { padding: 10px 18px; min-height: 42px; font-size: 0.88rem; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cabeçalho */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: #0f120e;
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--muted);
  padding: 8px 10px; border-radius: 8px;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.nav .btn { margin-left: 10px; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line-2); color: var(--text);
  width: 46px; height: 46px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: calc(72px + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; max-height: calc(100vh - 72px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .18s ease;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent-text); }
  .nav .btn { margin: 16px 0 0; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(64px, 11vw, 128px) clamp(56px, 9vw, 104px);
  background:
    radial-gradient(800px 480px at 88% 10%, rgba(140, 200, 10, 0.20), transparent 60%),
    radial-gradient(600px 420px at -5% 110%, rgba(140, 200, 10, 0.08), transparent 60%),
    linear-gradient(180deg, #0f120e 0%, #141912 100%);
}
.hero.has-img {
  background:
    linear-gradient(90deg, rgba(15,18,14,0.95) 0%, rgba(15,18,14,0.80) 45%, rgba(15,18,14,0.35) 100%),
    var(--hero-img) center / cover no-repeat;
}
.hero-art { position: absolute; right: -4%; top: 50%; width: min(720px, 68vw); transform: translateY(-50%); pointer-events: none; }
.hero.has-img .hero-art { opacity: 0.5; }
@media (max-width: 700px) { .hero-art { opacity: 0.3; width: 110vw; right: -30%; } }
.hero .wrap { position: relative; }
.hero-copy { max-width: 680px; }
.hero h1 .accent { display: block; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 600px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text);
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px;
}
.chips svg { width: 16px; height: 16px; color: var(--green); }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* Faixa diagonal entre o hero e o conteúdo */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--green) 0 30%, transparent 30%);
}

/* Seções */
.section { padding-block: clamp(56px, 8vw, 104px); background: var(--bg); }
.section.alt { background: var(--bg-2); }
.section.dark {
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(140, 200, 10, 0.10), transparent 60%),
    var(--bg);
}
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 1px 2px rgba(20, 30, 10, 0.04);
}
.card p { color: var(--muted); margin: 0; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--icon-bg); color: var(--accent-text); margin-bottom: 6px;
}
.card .ico svg { width: 22px; height: 22px; }

.svc { position: relative; text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; overflow: hidden; }
.svc::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--green); transition: width .25s ease;
}
.svc:hover { border-color: rgba(140, 200, 10, 0.6); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 30, 10, 0.10); }
.svc:hover::before { width: 100%; }
.svc .thumb {
  margin: -26px -26px 14px; height: 170px; background-color: var(--surface-2);
  border-bottom: 1px solid var(--line); background-size: cover; background-position: center;
}
.svc .more { margin-top: auto; padding-top: 10px; color: var(--accent-text); font-weight: 700; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.svc .more svg { width: 16px; height: 16px; }

.checks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 0.95rem; }
.checks svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; margin-top: 3px; }

.option { gap: 12px; }
.option .btn { margin-top: auto; align-self: flex-start; }
.option.featured { border: 2px solid var(--green); box-shadow: 0 14px 34px rgba(140, 200, 10, 0.18); }
.tag { align-self: flex-start; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-ink); background: var(--green); padding: 4px 10px; border-radius: 999px; }
.option a.muted { color: var(--accent-text); }

/* Galeria */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #1a1f17; aspect-ratio: 3 / 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 9, 0.85));
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.88rem;
}
.gallery figcaption small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; color: var(--green); margin-top: 2px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Passos */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.steps li::before {
  content: "0" counter(s); display: block; font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: 1.9rem; color: var(--green); margin-bottom: 10px;
}
.steps p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq details[open] { border-color: rgba(140, 200, 10, 0.55); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Faixa verde de chamada */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: clamp(32px, 5vw, 56px);
  background: var(--green); color: var(--green-ink);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 120px; background: rgba(255,255,255,0.18); transform: skewX(-30deg);
}
.cta-band::before { right: 22%; }
.cta-band::after { right: calc(22% - 70px); width: 30px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 8px; color: var(--green-ink); }
.cta-band p { color: rgba(13, 20, 0, 0.78); margin: 0; max-width: 520px; font-weight: 500; }

/* Localização */
.loc { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: stretch; }
.loc-info { display: grid; gap: 18px; align-content: start; }
.loc-item { display: flex; gap: 14px; }
.loc-item svg { width: 22px; height: 22px; color: var(--accent-text); flex: none; margin-top: 2px; }
.loc-item strong { display: block; font-family: var(--font-head); }
.loc-item span, .loc-item a { color: var(--muted); text-decoration: none; }
.loc-item a:hover { color: var(--text); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

.others { display: flex; flex-wrap: wrap; gap: 10px; }
.others a { text-decoration: none; padding: 10px 16px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; font-size: 0.92rem; color: var(--text); }
.others a:hover { border-color: var(--green); color: var(--accent-text); }

/* Texto longo (política) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--muted); }

/* Rodapé */
.footer { border-top: 6px solid var(--green); padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 32px; }
.footer .logo img { height: 52px; }
.footer h3 { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--text); font-size: 0.95rem; }
.footer a:hover { color: var(--green); }
.footer small { color: var(--muted); display: block; border-top: 1px solid var(--line); padding-top: 20px; }

/* Promoção (Black November) */
.promo-strip { background: #000; color: #fff; font-size: 0.9rem; }
.promo-strip-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding-block: 9px; text-align: center; }
.promo-tag { font-family: var(--font-head); font-weight: 900; letter-spacing: 0.08em; color: var(--green); }
.promo-strip b { color: var(--green); }
.promo-strip a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.promo-card {
  position: relative; overflow: hidden; border-radius: 24px; padding: clamp(28px, 5vw, 48px);
  background: #0b0d0a; color: #f2f5ee; border: 2px solid var(--green);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.promo-card::before { content: ""; position: absolute; right: -60px; top: -40%; bottom: -40%; width: 200px; background: rgba(140, 200, 10, 0.16); transform: skewX(-30deg); }
.promo-card > * { position: relative; }
.promo-copy { max-width: 620px; }
.promo-card .promo-kicker { font-family: var(--font-head); font-weight: 800; letter-spacing: 0.14em; color: var(--green); font-size: 0.82rem; margin-bottom: 10px; }
.promo-card h2 { color: #fff; }
.promo-price { color: var(--green); white-space: nowrap; }
.promo-card p { color: #c9d1c2; margin: 0; }
.promo-cta { display: grid; gap: 8px; justify-items: start; }
.promo-cta small { color: #a6ae9f; }
.promo-cta .btn-dark { background: var(--green); color: var(--green-ink); }

/* Botão flutuante do WhatsApp */
.wa-float {
  position: fixed; z-index: 60;
  right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.30); transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
