/* ==========================================================
   Eco Moto, Mobilidade Elétrica
   Cores provisórias: ajustar conforme o cartão da empresa.
   ========================================================== */
:root {
  --verde: #2E9E44;
  --verde-escuro: #237A35;
  --amarelo: #F5C518;
  --amarelo-escuro: #DDB010;
  --azul-escuro: #0F2A44;
  --azul-medio: #173A5C;

  --texto: #1F2A37;
  --texto-suave: #5B6675;
  --fundo: #FFFFFF;
  --fundo-alt: #F4F7F5;
  --borda: #E3E8EC;

  --raio: 14px;
  --sombra: 0 6px 24px rgba(15, 42, 68, .08);
  --container: 1120px;
  --fonte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

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

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--azul-escuro); }
p { margin: 0 0 1em; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--amarelo);
  color: var(--azul-escuro);
  font-weight: 700;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 8px 18px; font-size: .95rem; }

.btn--yellow { background: var(--amarelo); color: var(--azul-escuro); }
.btn--yellow:hover { background: var(--amarelo-escuro); }

/* Branco sobre o verde-escuro garante contraste AA */
.btn--green { background: var(--verde-escuro); color: #fff; }
.btn--green:hover { background: var(--verde); }

.btn--outline { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--azul-escuro);
  font-size: 1.35rem;
  letter-spacing: -.01em;
}
.logo__text { font-weight: 500; }
.logo__text strong { color: var(--verde); font-weight: 800; }
.logo__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--azul-escuro);
}
.logo__icon svg { width: 22px; height: 22px; fill: var(--amarelo); }

.logo--light { color: #fff; }
.logo--light .logo__icon { background: var(--verde); }
.logo--light .logo__text strong { color: var(--amarelo); }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.header.is-scrolled { border-color: var(--borda); box-shadow: 0 2px 12px rgba(15, 42, 68, .06); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--azul-escuro);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--borda);
  box-shadow: var(--sombra);
  display: none;
}
.nav.is-open { display: block; }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav a:not(.btn) {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--azul-escuro);
}
.nav a:not(.btn):hover { color: var(--verde-escuro); }
.nav .btn { margin-top: 8px; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    display: block;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav ul { flex-direction: row; align-items: center; gap: 28px; padding: 0; }
  .nav a:not(.btn) { padding: 0; }
  .nav .btn { margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-color: var(--azul-escuro);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(46, 158, 68, .45), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(245, 197, 24, .18), transparent 40%),
    rgba(15, 42, 68, .65);
  z-index: 1;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 68, .5);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: 72px 80px;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: var(--amarelo);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero__title {
  max-width: 14ch;
  color: #fff;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero__title span { color: var(--amarelo); }
.hero__text {
  max-width: 52ch;
  margin-bottom: 32px;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, .85);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__vehicles {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 40px 0 0;
  padding: 0;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
}
.hero__vehicles li { display: flex; align-items: center; gap: 8px; }
.hero__vehicles li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--verde);
  box-shadow: 0 0 0 3px rgba(46, 158, 68, .3);
}

@media (min-width: 768px) {
  .hero__inner { padding-block: 112px 120px; }
}

/* ---------- Seções ---------- */
.section { padding-block: 72px; background: var(--fundo-alt); }
.section__header { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section__eyebrow {
  margin-bottom: 8px;
  color: var(--verde-escuro);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.section__title { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
.section__lead { color: var(--texto-suave); font-size: 1.075rem; }

.section--dark { background: var(--azul-escuro); }
.section--dark .section__eyebrow { color: var(--amarelo); }
.section--dark .section__title { color: #fff; }
.section--dark .section__lead { color: rgba(255, 255, 255, .78); }

@media (min-width: 768px) {
  .section { padding-block: 96px; }
}

/* ---------- Cards de serviço ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--borda);
  border-top: 4px solid var(--verde);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-top-color: var(--amarelo); }
.card h3 { font-size: 1.15rem; }
.card p { margin: 0; color: var(--texto-suave); }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(46, 158, 68, .12);
}
.card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--verde-escuro);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Unidades ---------- */
.units { display: grid; gap: 20px; grid-template-columns: 1fr; max-width: 900px; margin-inline: auto; }
@media (min-width: 768px) { .units { grid-template-columns: repeat(2, 1fr); } }

.unit {
  padding: 32px 28px;
  background: var(--azul-medio);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--raio);
  color: rgba(255, 255, 255, .88);
}
.unit__name {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--amarelo);
  color: #fff;
  font-size: 1.35rem;
}
.unit__info { display: flex; gap: 12px; align-items: flex-start; }
.unit__info svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  fill: none;
  stroke: var(--verde);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.unit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.unit__actions .btn { flex: 1 1 140px; }

/* ---------- Galeria de Produtos ---------- */
.gallery {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.gallery__item {
  border-radius: var(--raio);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--borda);
  box-shadow: var(--sombra);
  transition: transform .2s, box-shadow .2s;
}
.gallery__item:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(15, 42, 68, .12); }
.gallery__item h3 { margin: 18px 20px 8px; font-size: 1.15rem; color: var(--azul-escuro); }
.gallery__item p { margin: 0 20px 20px; color: var(--texto-suave); font-size: .95rem; }

.gallery__image {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--fundo-alt), #f0f5f3);
}
.gallery__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery__item:hover .gallery__image img { transform: scale(1.05); }

/* ---------- Rodapé ---------- */
.footer { background: #0A1F33; color: rgba(255, 255, 255, .75); padding-top: 48px; }
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__slogan { margin: 14px 0 0; color: var(--amarelo); font-weight: 600; font-size: 1.05rem; }
.footer__contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__contacts strong { color: #fff; }
.footer__contacts a { text-decoration: none; }
.footer__contacts a:hover { color: var(--amarelo); text-decoration: underline; }
.footer__copy { margin: 0; padding-block: 20px; font-size: .875rem; color: rgba(255, 255, 255, .55); }

@media (min-width: 768px) {
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer__contacts { text-align: right; }
}
