/* Zermiani Mobilidade Elétrica
   Paleta extraída da logo: preto, branco e verde-limão. Tema escuro fixo (identidade da marca).
   Um único raio de borda (14px) em botões, cards e mapa. */

:root {
  --bg: #0b0c0a;
  --bg-2: #121410;
  --line: #23261e;
  --text: #f1f3ec;
  --muted: #a4aa98;
  --accent: #88d800;
  --radius: 14px;
  --nav-h: 80px;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:active { transform: scale(0.98) translateY(1px); }
.btn-solid { background: var(--accent); color: #0b0c0a; }
.btn-solid:hover { background: #a0f01a; transform: translateY(-2px); }
.btn-ghost { border-color: #3a3f30; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Navegação: uma linha, altura 72px */
.nav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  background: rgba(11, 12, 10, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 76px; width: 76px; object-fit: contain; border-radius: var(--radius); }
.links { display: flex; gap: 28px; margin-left: auto; margin-right: 12px; }
.links a { text-decoration: none; color: var(--muted); font-weight: 600; transition: color 0.2s; }
.links a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100dvh - var(--nav-h));
  display: grid; align-items: center;
  padding: 32px 0 48px;
  --mx: 30%; --my: 40%;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(136, 216, 0, 0.10), transparent 60%), var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
h1, h2, h3 { font-style: italic; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.04; text-transform: uppercase; }
h1 em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 44ch; margin: 22px 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* A foto da fachada se funde ao fundo preto: as laterais (cerca, poste, vizinho) esmaecem e a loja fica em destaque */
.hero-photo {
  margin: 0; overflow: hidden; aspect-ratio: 3 / 4; max-height: 78dvh;
  justify-self: end; width: 100%; max-width: 500px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, #000 0, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, #000 0, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero-photo img { width: 100%; height: 118%; object-fit: cover; object-position: center 30%; will-change: transform; }

/* Faixa de slogan (a única marquee da página) */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.marquee { white-space: nowrap; padding: 18px 0; }
.marquee-track { display: inline-flex; gap: 48px; padding-left: 48px; animation: slide 38s linear infinite; }
.marquee span { font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(1rem, 2.2vw, 1.5rem); color: var(--muted); }
.marquee span:nth-child(even) { color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Modelos */
.models { padding: 96px 0 88px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.1; text-transform: uppercase; }
.sub { color: var(--muted); margin: 14px 0 0; max-width: 52ch; font-size: 1.05rem; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.3s; }
.card:hover { transform: translateY(-6px); border-color: #3b4330; }
.card-img { aspect-ratio: 3 / 4; overflow: hidden; background: #1a1c16; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); pointer-events: none; -webkit-user-drag: none; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 18px; display: grid; gap: 14px; }
.card h3 { font-size: 1.15rem; text-transform: none; font-weight: 700; }
.card .btn { width: 100%; }

/* A loja */
.store { padding: 24px 0 112px; }
.store-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.hours { margin: 28px 0 0; display: grid; gap: 10px; max-width: 420px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 700; text-align: right; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }

/* Rodapé */
.foot { border-top: 1px solid var(--line); padding: 32px 0 96px; color: var(--muted); font-size: 0.92rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.foot p { margin: 0; }
.foot a { text-decoration: none; color: var(--text); }
.foot a:hover { color: var(--accent); }
.foot .credit { flex-basis: 100%; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.85rem; }
.foot .credit a { color: var(--accent); font-weight: 700; }

/* Botão flutuante de WhatsApp */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 58px; height: 58px; border-radius: var(--radius); background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); transition: transform 0.25s var(--ease); }
.fab:hover { transform: translateY(-3px); }
.fab:active { transform: scale(0.96); }

/* Entrada ao rolar: revela conteúdo na ordem em que aparece */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero-copy .rv:nth-child(2) { transition-delay: 0.08s; }
.js .hero-copy .rv:nth-child(3) { transition-delay: 0.16s; }

/* Paralaxe da fachada, só onde o navegador suporta rolagem guiada por CSS */
@supports (animation-timeline: scroll()) {
  .hero-photo img { animation: lift linear both; animation-timeline: scroll(root block); animation-range: 0 90vh; }
  @keyframes lift { from { transform: translateY(0); } to { transform: translateY(-9%); } }
}

/* Mobile: tudo em coluna única */
@media (max-width: 860px) {
  :root { --nav-h: 72px; }
  .links { display: none; }
  .brand img { height: 64px; width: 64px; }
  .hero-grid, .store-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: auto; padding: 24px 0 40px; }
  .hero-photo { justify-self: stretch; max-width: none; aspect-ratio: 4 / 3; max-height: none; }
  .hero-photo img { object-position: center 40%; }
  .hours { max-width: none; }
  .models { padding: 72px 0 64px; }
  .btn-lg { width: 100%; }
}
@media (max-width: 420px) {
  .nav-in .btn { padding: 10px 14px; font-size: 0.85rem; }
}

/* Movimento reduzido: tudo estático */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .hero-photo img, .card, .card-img img, .btn { transition: none; animation: none; }
}

/* Topo sem foto: texto centralizado */
.hero-grid { grid-template-columns: 1fr; text-align: center; }
.hero-copy { max-width: 820px; margin-inline: auto; }
.hero .lead { margin-inline: auto; }
.hero .cta-row { justify-content: center; }

/* Cards: foto e nome levam à página do modelo */
a.card-img { display: block; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card a { -webkit-user-drag: none; }

/* Página do modelo */
.model { padding: 40px 0 96px; }
.model-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.model-photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #1a1c16; aspect-ratio: 3 / 4; }
.model-photo img { width: 100%; height: 100%; object-fit: cover; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: 18px; }
.back:hover { color: var(--accent); }
.model h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.specs { margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; text-align: right; }
.fine { color: var(--muted); font-size: 0.88rem; margin: 18px 0 0; max-width: 60ch; }
@media (max-width: 860px) {
  .model { padding: 24px 0 72px; }
  .model-grid { grid-template-columns: 1fr; gap: 28px; }
  .model-photo { aspect-ratio: auto; height: min(56vh, 480px); width: 100%; }
}

/* Modelos em grade: 3 colunas no computador, 2 no tablet e no celular */
.models-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
@media (max-width: 980px) { .models-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 560px) {
  .models-grid { gap: 12px; margin-top: 28px; }
  .card-body { padding: 12px; gap: 10px; }
  .card h3 { font-size: 1rem; }
  .card .btn { padding: 10px 12px; font-size: 0.88rem; }
}
