/* ==========================================================================
   Atual Autopeças Sete Lagoas — estilos do site
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #14093f;
  --navy-2: #1d1266;
  --blue: #1450c8;
  --blue-600: #0f3fa4;
  --blue-50: #eef3fe;
  --blue-light: #7ea5ff;
  --green: #008a3a;
  --green-600: #00722f;
  --ink: #101321;
  --mute: #5b6076;
  --paper: #ffffff;
  --wash: #f4f6fb;
  --line: #e5e9f2;

  --disp: 'Archivo', system-ui, sans-serif;
  --text: 'Manrope', system-ui, sans-serif;

  /* Layout: margem lateral, calha centralizada em 1240px e espaçamento vertical */
  --edge: clamp(18px, 5vw, 72px);
  --gut: max(var(--edge), calc((100% - 1240px) / 2 + var(--edge)));
  --sp: clamp(52px, 7vw, 108px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue); }
h1, h2, h3 { font-family: var(--disp); line-height: 1.12; }
img { display: block; max-width: 100%; }
.ph-duotone, .ph-fill { line-height: 1; }
::selection { background: #cfe0ff; }

.logo-white { width: auto; filter: brightness(0) invert(1); }

/* ---------- Tipografia de seção ---------- */
.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}
.title {
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
}
.title--lg { font-size: clamp(30px, 3.8vw, 48px); }
.title--sm { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; }
.title--flush { margin: 0; }
.lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--mute);
  margin: 16px 0 0;
}
.measure-18 { max-width: 18ch; }
.measure-20 { max-width: 20ch; }
.measure-22 { max-width: 22ch; }
.measure-24 { max-width: 24ch; }
.measure-40 { max-width: 40ch; }
.measure-48 { max-width: 48ch; }

/* ---------- Seções ---------- */
.section { padding-inline: var(--gut); padding-block: var(--sp); }
.section--flush-top { padding-block: 0 var(--sp); }
.section--wash { background: var(--wash); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head--tight { gap: 16px; }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15.5px;
  padding: 16px 26px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease;
}
.btn i { font-size: 1.23em; }
.btn--sm { gap: 9px; font-size: 14.5px; padding: 12px 20px; }
.btn--lg { font-size: 16px; padding: 17px 28px; }

.btn--whatsapp { background: var(--green); color: #fff; }
.btn--whatsapp:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); }
.btn--sm.btn--whatsapp:hover { transform: translateY(-1px); }

.btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,.4); padding-inline: 26px; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn--outline { background: #fff; color: var(--blue-600); border: 2px solid var(--blue); padding: 14px 24px; box-shadow: 0 4px 14px rgba(20,80,200,.14); }
.btn--outline i { color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn--outline:hover i { color: #fff; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
  white-space: nowrap;
}
.text-link:hover { color: var(--blue-600); }
.text-link i { font-size: 16px; }

.round-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
}
.round-btn:hover { background: var(--blue-50); color: var(--blue); }

/* ---------- Cabeçalho ---------- */
/* Fixo e transparente sobre o hero; ganha cor ao rolar (classe via JS) */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: var(--navy-2);
  box-shadow: 0 6px 24px rgba(13,8,53,.25);
}
html { scroll-padding-top: 74px; }
.site-header__inner {
  padding-inline: var(--gut);
  padding-block: 12px;
  min-height: 74px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
}
.site-header__logo { display: flex; align-items: center; justify-self: start; }
.site-header__logo img { height: clamp(32px, 3.6vw, 42px); }
.site-header__cta { justify-self: end; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 32px);
  flex-wrap: wrap;
  font-size: 14.5px;
  font-weight: 600;
}
.site-nav a { color: rgba(255,255,255,.85); white-space: nowrap; }
.site-nav a:hover { color: #fff; }
@media (max-width: 820px) {
  .site-nav { display: none; }
  .site-header__inner { grid-template-columns: auto auto; justify-content: space-between; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: #0d0835 url("../assets/img/hero.jpg?v=2") center 38% / cover no-repeat;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,8,53,.9) 0%, rgba(13,8,53,.72) 45%, rgba(13,8,53,.25) 100%);
}
.hero__inner {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding-inline: var(--gut);
  padding-block: clamp(56px, 8vw, 110px);
  padding-top: calc(74px + clamp(40px, 6vw, 90px)); /* espaço do cabeçalho fixo */
  display: grid;
  grid-template-columns: minmax(0, 640px);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 999px;
}
.hero__badge i { font-size: 14px; }
.hero__title {
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 22px 0 0;
}
.hero__title span { color: var(--blue-light); }
.hero__text {
  font-size: clamp(16.5px, 1.4vw, 19px);
  line-height: 1.6;
  color: rgba(255,255,255,.88);
  max-width: 46ch;
  margin: 22px 0 0;
}
.hero .btn-row { margin-top: 32px; }

/* ---------- Citação (fundo com parallax) ---------- */
.quote-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--navy);
  min-height: clamp(360px, 52vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp);
}
/* Camada maior que a seção: sobra altura para deslocar sem mostrar bordas */
.quote-band__bg {
  position: absolute;
  inset: -22% 0;
  z-index: -2;
  will-change: transform;
}
.quote-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(.95);
}
/* Tom azul da marca sobre a foto */
.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(13,8,53,.15) 0%, rgba(13,8,53,.45) 100%),
    rgb(22,62,214);
  mix-blend-mode: multiply;
}
.quote-band__inner {
  margin: 0;
  padding: clamp(56px, 8vw, 96px) var(--edge);
  max-width: 820px;
  text-align: center;
}
.quote-band blockquote {
  margin: 0;
  font-family: var(--text);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.45;
  text-wrap: balance;
}
.quote-band figcaption {
  margin-top: 24px;
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.01em;
}

/* ---------- Produtos ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 18px;
  margin-top: clamp(30px, 4vw, 52px);
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 28px);
  border-radius: 16px;
  background: var(--wash);
  color: var(--ink);
  transition: background .2s ease;
}
.product-card:hover { background: var(--blue-50); color: var(--ink); }
.product-card__icon { color: var(--blue); font-size: 30px; }
.product-card h3 {
  font-size: 20.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}
.product-card p { font-size: 15px; line-height: 24px; color: var(--mute); margin: 0; }
.product-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin-top: auto;
  padding-top: 12px;
}

/* ---------- Marcas ---------- */
/* Faixa de marcas rolando sem parar; a lista é duplicada via JS para o laço não ter emenda */
.brands {
  margin-top: clamp(24px, 3vw, 40px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brands__track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.brands:hover .brands__track { animation-play-state: paused; }
.brands__list {
  display: flex;
  gap: 16px;
  padding: 4px 16px 4px 0; /* padding final = gap, mantém o espaçamento na emenda */
  margin: 0;
  list-style: none;
}
.brands__list li {
  flex: none;
  width: clamp(150px, 15vw, 210px);
  aspect-ratio: 446 / 218;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.brands__list img { width: 100%; height: 100%; object-fit: cover; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .brands { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .brands__track { animation: none; }
  .brands__list[aria-hidden] { display: none; }
}

/* ---------- Vantagens ---------- */
.advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(32px, 4vw, 72px);
}
.advantages .lead { margin-top: 20px; }
.advantages__cta { margin-top: 30px; }
.advantages__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
}
.advantage > i { font-size: 28px; color: var(--blue); }
.advantage h3 {
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 14px 0 7px;
}
.advantage p { font-size: 14.5px; line-height: 23px; color: var(--mute); margin: 0; }

/* ---------- Quem somos ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 4vw, 76px);
  align-items: center;
}
.about__media { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3.2; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__text { font-size: 17px; line-height: 1.65; max-width: 50ch; margin-top: 22px; }
.about__text strong { color: var(--ink); }

.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }
.checklist i { font-size: 21px; color: var(--green); }

/* ---------- Depoimentos ---------- */
.reviews__controls { display: flex; gap: 10px; }
.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(360px, 86%);
  gap: 18px;
  margin-top: clamp(28px, 3.5vw, 44px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  margin: 0;
  scroll-snap-align: start;
  background: var(--wash);
  border-radius: 16px;
  padding: clamp(22px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review__stars { display: flex; gap: 2px; color: #ffc93d; font-size: 14px; }
.review__google { width: 22px; height: 22px; flex: none; }
.review blockquote { font-size: 16.5px; line-height: 1.6; margin: 0; color: var(--ink); }
.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
  line-height: 1.35;
}
.review figcaption strong { display: block; font-size: 15px; }
.review figcaption span span { font-size: 13.5px; color: var(--mute); }
.review__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-family: var(--disp);
  font-weight: 800;
  font-size: 15px;
}

/* ---------- Nossa loja ---------- */
.store {
  background: var(--navy-2);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
}
.store__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.store__grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.store__content { text-align: center; }
.store__text {
  margin: 0;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.75;
  text-align: justify;
  color: rgba(255,255,255,.92);
}
.store__text strong { color: #fff; font-weight: 800; }
.store__cta {
  margin-top: 36px;
  color: #fff;
  border: 2px solid var(--blue);
  padding: 13px 38px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.store__cta i { font-size: 14px; }
.store__cta:hover { background: var(--blue); color: #fff; }

/* ---------- Localização ---------- */
.location {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px;
  margin-top: clamp(28px, 3.5vw, 44px);
  align-items: stretch;
}
.location__card {
  background: var(--wash);
  border-radius: 18px;
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.location__actions { margin-top: auto; }
.location__actions .btn--whatsapp { padding: 15px 24px; }
.location__map {
  position: relative;
  min-height: clamp(300px, 40vw, 440px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.info { display: flex; gap: 14px; align-items: flex-start; }
.info__icon { color: var(--blue); font-size: 26px; flex: none; }
.info__label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 5px;
}
.info__value { font-size: 17px; line-height: 1.5; }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding-inline: var(--gut);
  padding-block: clamp(40px, 5vw, 70px) 26px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(28px, 4vw, 60px);
}
.site-footer__brand { display: inline-flex; }
.site-footer__logo { height: 42px; }
.site-footer__about {
  font-size: 14.5px;
  line-height: 25px;
  color: rgba(255,255,255,.7);
  max-width: 34ch;
  margin: 18px 0 0;
}
.site-footer__heading {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #9dbcff;
  margin-bottom: 16px;
}
.site-footer__text { font-size: 14.5px; line-height: 26px; color: rgba(255,255,255,.78); }
.site-footer__text a { color: #fff; }
.site-footer__text a:hover { color: #9dbcff; }
.site-footer__nav { display: grid; gap: 10px; font-size: 14.5px; }
.site-footer__nav a { color: rgba(255,255,255,.78); }
.site-footer__nav a:hover { color: #fff; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.social { display: flex; gap: 10px; margin-top: 20px; }
.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 19px;
  transition: background .2s ease;
}
.social a:hover { background: var(--blue); color: #fff; }
.social a.social--whatsapp:hover { background: var(--green); }

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--green);
  color: #fff;
  font-size: 30px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0,0,0,.2);
  transition: background .18s ease, transform .18s ease;
}
.wa-float:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); }

/* ---------- Animação de entrada (ativada pelo js/main.js) ---------- */
@keyframes slideup {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.rv-on [data-reveal] { opacity: 0; }
.rv-on [data-reveal].in { animation: slideup .7s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  .rv-on [data-reveal] { opacity: 1; }
  .rv-on [data-reveal].in { animation: none; }
}
