@charset "utf-8";

/* ==========================================================================
   MX Distribuidora Automotiva — folha de estilo única
   Fontes auto-hospedadas em fonts/ · nenhuma dependência externa
   ========================================================================== */

/* ---------- Montserrat ---------- */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('fonts/montserrat-300-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('fonts/montserrat-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/montserrat-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/montserrat-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/montserrat-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/montserrat-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/montserrat-600-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/montserrat-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/montserrat-700-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/montserrat-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('fonts/montserrat-800-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('fonts/montserrat-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Poppins ---------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/poppins-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/poppins-600-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  --navy:   #003049;
  --navy-d: #002234;
  --orange: #F77F00;
  --yellow: #FFD100;
  --ink:    #202020;
  --grey:   #7A7A7A;
  --line:   #e3e7ea;
  --bg:     #f5f7f8;
  --white:  #fff;
  --wrap:   1180px;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(0, 48, 73, .10);
  --font:   'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-alt: 'Poppins', var(--font);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--orange); color: #fff; padding: 10px 18px; font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 13px 26px; border: 0; border-radius: 4px;
  font-family: var(--font); font-size: .9rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .2s, transform .2s, color .2s;
}
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: #d96f00; transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: #e8bf00; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); }
.btn--ghost:hover { background: #fff; color: var(--navy); }

/* ---------- cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { flex: none; }
.brand img { width: 170px; }
.nav-toggle {
  margin-left: auto; display: none; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .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); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: #fff; text-decoration: none; font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 0;
  border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.site-nav .btn { text-transform: uppercase; padding: 11px 22px; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: grid; align-items: center;
  min-height: min(88vh, 700px);
  padding: 90px 0;
  background: var(--navy-d) url('images/hero-banner.jpg') center / cover no-repeat;
  color: #fff; text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 34, 52, .62), rgba(0, 34, 52, .58));
}
.hero__kicker {
  font-size: clamp(1rem, 2.2vw, 1.35rem); font-weight: 600; color: var(--yellow);
  letter-spacing: .02em; margin-bottom: .4em;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800;
  letter-spacing: .01em; margin-bottom: .5em; text-transform: uppercase;
}
.hero__regions { max-width: 780px; margin-inline: auto; }
.hero__regions p { font-size: 1rem; color: rgba(255, 255, 255, .92); }
.hero__regions strong { color: var(--yellow); }
.hero .btn { margin-top: 18px; font-size: 1rem; padding: 16px 38px; }

/* ---------- títulos de seção ---------- */
.section { padding: 84px 0; }
.section__head { text-align: center; margin-bottom: 52px; }
.section__head h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; text-transform: uppercase;
  letter-spacing: .02em; margin-bottom: .35em;
}
.section__head .rule { width: 90px; height: 4px; margin: 0 auto; background: var(--orange); border-radius: 2px; }

/* ---------- empresa ---------- */
.empresa {
  position: relative; isolation: isolate;
  background: var(--ink); color: #fff;
}
.empresa::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url('images/empresa-overlay.jpg') center right / cover no-repeat;
  opacity: .18;
}
.empresa .section__head h2 { color: #fff; }
.empresa__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.empresa__text h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--yellow);
  font-weight: 700; margin-bottom: .8em;
}
.empresa__text p { color: rgba(255, 255, 255, .88); }
.empresa__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.empresa__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.empresa__photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.empresa__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2 / 3; }
.empresa__photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: 46px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 34, 52, .94));
}
.empresa__photo q { display: block; font-size: 1rem; font-weight: 700; font-style: normal; quotes: none; }
.empresa__photo cite { display: block; margin-top: 4px; font-style: normal; font-size: .85rem; color: var(--yellow); font-weight: 600; }

/* ---------- produtos ---------- */
.produtos {
  position: relative; isolation: isolate;
  background: var(--navy); color: #fff;
}
.produtos::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url('images/produtos-overlay.jpg') center / cover no-repeat;
  opacity: .10;
}
.produtos .section__head h2 { color: #fff; }
.produtos__intro { max-width: 640px; margin: -30px auto 52px; text-align: center; color: rgba(255, 255, 255, .85); }
.cat { margin-bottom: 44px; }
.cat > h3 {
  display: flex; align-items: center; gap: 16px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--yellow);
  margin-bottom: 22px;
}
.cat > h3::after { content: ""; flex: 1; height: 2px; background: rgba(255, 255, 255, .18); }
/* flex + justify-content:center para que a última linha (incompleta)
   fique centralizada e cresça do meio para os lados */
.logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
.logos li {
  flex: 0 1 150px;
  display: grid; place-items: center;
  background: #fff; border-radius: 8px; padding: 16px;
  min-height: 106px; box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
  transition: transform .2s;
}
.logos li:hover { transform: translateY(-4px); }
.logos img { max-height: 74px; width: auto; object-fit: contain; }

/* ---------- dados / contato ---------- */
.dados { background: var(--bg); }
/* sem align-items:start -> os cards esticam para a altura do mais alto */
.lojas { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.loja {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.loja__mapa { flex: none; border-bottom: 1px solid var(--line); }
.loja__mapa iframe { display: block; width: 100%; height: 260px; border: 0; }
/* body vira coluna flex para o botao poder ser empurrado ate a base */
.loja__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.loja__body h3 {
  font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--navy); margin-bottom: .2em;
}
.loja__local {
  display: block; margin-top: 4px;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  text-transform: none; color: var(--grey);
}
.loja__body .rule { width: 52px; height: 3px; background: var(--orange); border-radius: 2px; margin-bottom: 16px; }
.info { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.info li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .92rem; }
.info svg { width: 17px; height: 17px; fill: var(--orange); margin-top: 4px; }
.info a { color: var(--navy); text-decoration: none; font-weight: 600; }
.info a:hover { text-decoration: underline; }
.info .muted { color: var(--grey); font-size: .86rem; }
/* o rodape do card (link de rota + botao) fica preso na base: margin-top:auto
   absorve toda a folga, entao a Filial -- que tem uma linha de telefone a menos
   -- alinha o rodape exatamente na mesma altura da Matriz */
.loja__footer {
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid; gap: 14px;
}
.loja__rota {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--orange); text-decoration: none;
}
.loja__rota:hover { text-decoration: underline; }
.loja__rota svg { width: 15px; height: 15px; fill: var(--orange); flex: none; }
.loja .btn { width: 100%; justify-content: center; }

/* ---------- mapa ---------- */
.mapa { margin-top: 54px; }
.mapa h3 {
  text-align: center; font-size: 1.15rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--navy); margin-bottom: 22px;
}
.mapa__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mapa__card {
  margin: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mapa__card iframe { display: block; width: 100%; height: 300px; border: 0; }
.mapa__card figcaption { padding: 18px 20px 20px; }
.mapa__card figcaption strong { display: block; color: var(--navy); font-size: .98rem; }
.mapa__card figcaption > span { display: block; font-size: .85rem; color: var(--grey); margin-top: 2px; }
.mapa__card figcaption a {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--orange); text-decoration: none;
}
.mapa__card figcaption a:hover { text-decoration: underline; }
.mapa__card figcaption svg { width: 15px; height: 15px; fill: var(--orange); flex: none; }

/* ---------- rodapé ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding: 40px 0; font-family: var(--font-alt); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.site-footer img { width: 140px; opacity: .9; }
.site-footer p { margin: 0; font-size: .84rem; }
.site-footer a { color: var(--yellow); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- whatsapp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .empresa__grid, .lojas { grid-template-columns: 1fr; gap: 36px; }
  .mapa__grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-d); padding: 10px 20px 22px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, .3);
    display: none;
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .site-nav li:last-child { border: 0; padding-top: 14px; }
  .site-nav a { display: block; padding: 14px 0; border: 0; }
  .site-nav .btn { justify-content: center; }
}
@media (max-width: 620px) {
  .section { padding: 58px 0; }
  .hero { padding: 68px 0; min-height: auto; }
  .empresa__photos { grid-template-columns: 1fr; }
  .empresa__photo img { aspect-ratio: 4 / 3; }
  .logos { gap: 12px; }
  .logos li { flex-basis: 118px; min-height: 88px; padding: 12px; }
  .logos img { max-height: 56px; }
}

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