/* ==========================================================
   MONSECH MOTORS — style.css
   Cores extraídas do logo: preto, branco e vermelho.
   Troque as variáveis abaixo se quiser ajustar o tom.
========================================================== */

:root{
  --bg:            #0A0A0B;
  --bg-elevated:   #141416;
  --bg-elevated-2: #1C1C1F;
  --text:          #F5F5F5;
  --text-muted:    #9A9A9F;
  --accent:        #E8232B;
  --accent-strong: #FF3038;
  --border:        rgba(245,245,245,0.10);
  --radius:        14px;
  --shadow:        0 20px 40px rgba(0,0,0,0.35);
}

*{ box-sizing: border-box; margin: 0; padding: 0; }

html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h3, .brand, .nav a, .btn{
  font-family: 'Rajdhani', 'Inter', system-ui, sans-serif;
}

h1, h2, .car-price, .stat b, .diff-number{
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  text-transform: uppercase;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

h1{
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.005em;
}
h1 span{ color: var(--accent); }

h2{
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  margin-bottom: 14px;
}

.section-lead{
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ---------- Botões ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }

.btn-primary{
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover{ background: var(--accent-strong); }

.btn-ghost{
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover{ border-color: var(--text-muted); }

.btn-whatsapp{
  background: #1E9E52;
  color: #fff;
  padding: 10px 18px;
  font-size: 0.95rem;
}
.btn-whatsapp:hover{ background: #23B65F; }

.btn-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #1E9E52;
  color: #fff;
  flex-shrink: 0;
}
.btn-icon:hover{ background: #23B65F; }

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,11,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled{
  background: rgba(10,10,11,0.92);
  border-color: var(--border);
}
.header-inner{
  display: flex;
  align-items: center;
  gap: 24px;
  height: 78px;
}
.brand-logo{ height: 52px; width: auto; }
.nav{
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a{
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav a:hover{ color: var(--text); }

.header-cta{ margin-left: 8px; }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span{
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
/* ==========================================================
   HERO — FUNDO PREMIUM MONSECH MOTORS
========================================================== */

.hero {
  position: relative;
  min-height: 760px;

  padding: 170px 0 90px;

  overflow: hidden;

  background-image:
    linear-gradient(
      90deg,
      rgba(3, 3, 3, 0.96) 0%,
      rgba(3, 3, 3, 0.82) 30%,
      rgba(3, 3, 3, 0.48) 55%,
      rgba(3, 3, 3, 0.28) 78%,
      rgba(3, 3, 3, 0.48) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.40) 0%,
      rgba(0, 0, 0, 0.08) 45%,
      rgba(0, 0, 0, 0.72) 100%
    ),
    url("../assets/img/porsche-hero.jpg");

  background-size: cover;
  background-position: center 72%;
  background-repeat: no-repeat;

  box-shadow:
  inset 0 -30px 60px rgba(0, 0, 0, 0.28);
}
.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 75% 45%,
      rgba(232, 35, 43, 0.12),
      transparent 38%
    );

  pointer-events: none;
}

.hero::after {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.18),
    transparent 45%,
    rgba(0, 0, 0, 0.12)
  );

  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-glow{
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(232,35,43,0.22), transparent 70%);
  pointer-events: none;
}
.hero-ghost-car{
  position: absolute;
  top: 50%; right: -6%;
  width: 60vw;
  max-width: 820px;
  transform: translateY(-50%) rotate(-4deg);
  color: var(--text);
  opacity: 0.05;
  pointer-events: none;
}
.hero-inner{ position: relative; }
.hero-lead{
  margin-top: 22px;
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 56ch;
}
.hero-actions{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.hero-stats{
  display: flex;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.stat b{
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.stat span{ color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Sections ---------- */
.section{ padding: 100px 0; }
.section-alt{ background: var(--bg-elevated); }

/* ---------- Filtros ---------- */
.filters{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn{
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover{ color: var(--text); border-color: var(--text-muted); }
.filter-btn.active{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Grid de carros ---------- */
.car-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.car-card{
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.car-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.car-photo{
  position: relative;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg-elevated-2), #0D0D0E);
}
.car-photo-icon{
  width: 62%;
  color: var(--text-muted);
  opacity: 0.55;
}
.car-badge{
  position: absolute;
  top: 14px; left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}
.car-badge-alt{ background: var(--bg-elevated-2); border: 1px solid var(--border); color: var(--text); }

.car-body{ padding: 20px 22px 22px; }
.car-body h3{ font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.car-specs{
  display: flex;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.car-specs span{ display: inline-flex; align-items: center; gap: 5px; }
.car-specs svg{ color: var(--accent); flex-shrink: 0; }

.car-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.car-price{ font-family: 'Rajdhani', sans-serif; font-size: 1.35rem; font-weight: 700; }

.empty-state{ display: none; text-align: center; color: var(--text-muted); padding: 40px 0; }

/* ---------- Diferenciais ---------- */
.diff-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.diff-card{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.diff-number{
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}
.diff-card h3{ font-size: 1.1rem; margin: 14px 0 8px; }
.diff-card p{ color: var(--text-muted); font-size: 0.95rem; }

.bank-strip{
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.bank-strip > span{ color: var(--text-muted); font-size: 0.9rem; white-space: nowrap; }
.bank-pills{ display: flex; gap: 10px; flex-wrap: wrap; }
.bank-pill{
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- CTA band ---------- */
.cta-band{ padding: 80px 0; }
.cta-band-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--bg-elevated), var(--bg-elevated-2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
}
.cta-band-inner h2{ margin-bottom: 6px; }
.cta-band-inner .section-lead{ margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}
.footer-inner{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand p{ color: var(--text-muted); margin-top: 14px; font-size: 0.95rem; max-width: 32ch; }
.footer-col h4{ font-family: 'Rajdhani', sans-serif; font-size: 1.05rem; margin-bottom: 14px; }
.footer-col p{ color: var(--text-muted); font-size: 0.92rem; margin-bottom: 8px; }
.footer-col a:hover{ color: var(--text); }

.social-icons{ display: flex; gap: 10px; }
.social-icons a{
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.social-icons a:hover{ color: #fff; background: var(--accent); border-color: var(--accent); }
.footer-bottom{
  border-top: 1px solid var(--border);
  padding: 22px 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Avaliações de clientes ---------- */
.section-reviews {
  background: linear-gradient(180deg, var(--bg) 0%, #101012 100%);
}
.section-reviews > .container > h2 {
  margin-bottom: 8px;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
  margin-top: 36px;
}
.review-card {
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, #18181b, #101012);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
}
.review-card img {
  width: 100%;
  height: auto;
  border-radius: 9px;
  background: #202023;
}
.review-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 7px 4px;
  color: var(--text);
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}
.review-card figcaption span {
  flex: 0 0 auto;
  color: #f4bb32;
  font-family: Arial, sans-serif;
  font-size: .95rem;
  letter-spacing: .08em;
}
.review-card:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 560px);
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.whatsapp-fab{
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #1E9E52;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
  z-index: 90;
  transition: transform 0.15s ease;
}
.whatsapp-fab:hover{ transform: scale(1.08); }

/* ---------- Animação de entrada ---------- */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible{ opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px){
  .car-grid{ grid-template-columns: repeat(2, 1fr); }
  .diff-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px){
  .nav{
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: rgba(10,10,11,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav.open{ transform: translateY(0); }
  .nav-toggle{ display: flex; }
  .header-cta{ display: none; }
  .car-grid{ grid-template-columns: 1fr; }
  .diff-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .cta-band-inner{ flex-direction: column; align-items: flex-start; padding: 32px; }
  .hero{ padding: 150px 0 70px; }
  .hero-ghost-car{ display: none; }
  .bank-strip{ flex-direction: column; align-items: flex-start; }
  .review-grid{ grid-template-columns: 1fr; gap: 16px; margin-top: 26px; }
  .review-card:last-child{ grid-column: auto; width: 100%; }
  .review-card{ padding: 8px; }
}
/* ==========================================================
   HEADER PREMIUM — MONSECH MOTORS
========================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  height: 88px;

  background: rgba(7, 7, 7, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.07);

  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    height 0.3s ease;
}

/* Linha vermelha discreta */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(232, 35, 43, 0.7),
    transparent
  );

  opacity: 0.65;
}

/* Header depois de rolar */
.site-header.scrolled {
  height: 76px;

  background: rgba(5, 5, 5, 0.94);

  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Container interno */
.header-inner {
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 40px;
}

/* ==========================================================
   LOGO
========================================================== */

.brand {
  display: flex;
  align-items: center;

  flex-shrink: 0;

  text-decoration: none;
}

.brand-logo {
  width: 125px;
  height: auto;

  display: block;

  object-fit: contain;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.04);
  opacity: 0.95;
}

.site-header.scrolled .brand-logo {
  width: 112px;
}

/* ==========================================================
   MENU
========================================================== */

.nav {
  display: flex;
  align-items: center;

  gap: 38px;

  margin-left: auto;
}

.nav a {
  position: relative;

  display: inline-flex;
  align-items: center;

  height: 88px;

  color: rgba(255, 255, 255, 0.72);

  font-family: "Rajdhani", sans-serif;
  font-size: 17px;
  font-weight: 600;

  text-decoration: none;

  letter-spacing: 0.3px;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

/* Linha vermelha embaixo */
.nav a::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 22px;

  width: 0;
  height: 2px;

  background: #e8232b;

  transform: translateX(-50%);

  transition: width 0.25s ease;
}

.nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav a:hover::after {
  width: 22px;
}

/* ==========================================================
   WHATSAPP
========================================================== */

.header-cta {
  flex-shrink: 0;

  min-height: 50px;

  padding: 0 23px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  border-radius: 999px;

  background: #20b45a;

  color: #ffffff !important;

  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;

  text-decoration: none;

  box-shadow:
    0 8px 25px rgba(32, 180, 90, 0.18);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.header-cta:hover {
  background: #25c966;

  transform: translateY(-2px);

  box-shadow:
    0 12px 30px rgba(32, 180, 90, 0.30);
}

.header-cta svg {
  flex-shrink: 0;
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 900px) {

  .site-header {
    height: 76px;
  }

  .header-inner {
    gap: 18px;
  }

  .brand-logo {
    width: 105px;
  }

  .nav {
    gap: 22px;
  }

  .nav a {
    font-size: 15px;
  }

  .header-cta {
    padding: 0 17px;
    min-height: 46px;
  }

  .header-cta {
    font-size: 0;
  }

  .header-cta svg {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================
   CELULAR
========================================================== */

@media (max-width: 700px) {

  .site-header {
    height: 70px;
  }

  .header-inner {
    justify-content: space-between;
  }

  .brand-logo {
    width: 100px;
  }

  .nav {
    position: absolute;

    top: 70px;
    left: 15px;
    right: 15px;

    padding: 20px;

    flex-direction: column;
    align-items: stretch;

    gap: 4px;

    background: rgba(8, 8, 8, 0.97);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 16px;

    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.45);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);

    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    height: 48px;

    padding: 0 15px;

    border-radius: 10px;

    font-size: 16px;
  }

  .nav a:hover {
    background: rgba(232, 35, 43, 0.08);
  }

  .nav a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}
/* Remove o carro fantasma do Hero */
.hero-ghost-car {
  display: none !important;
}
/* ==========================================================
   HERO — DESTACAR A PORSCHE E A PLACA MONSECH
========================================================== */

.hero {
  background-position: center 72% !important;

  box-shadow:
    inset 0 -30px 60px rgba(0, 0, 0, 0.28) !important;
}

/* Remove o carro fantasma */
.hero-ghost-car {
  display: none !important;
}

/* Mantém a região inferior da foto mais visível */
.hero::after {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.16),
      transparent 48%,
      rgba(0, 0, 0, 0.08)
    ) !important;
}
/* ==========================================================
   HERO — MOSTRAR A PLACA MONSECH
========================================================== */

.hero {
  background-position: center bottom !important;

  /* deixa a imagem um pouco mais ampla */
  background-size: cover !important;
}

/* Reduz o escurecimento na parte inferior */
.hero {
  box-shadow: inset 0 -10px 35px rgba(0, 0, 0, 0.18) !important;
}

/* Mantém a Porsche visível */
.hero::after {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.12) 0%,
      rgba(0, 0, 0, 0.04) 55%,
      rgba(0, 0, 0, 0.08) 100%
    ) !important;
}

/* Remove completamente o carro fantasma */
.hero-ghost-car {
  display: none !important;
}
/* ==========================================================
   HERO — PLACA MONSECH EM DESTAQUE
========================================================== */

.hero {
  background-position: center 68% !important;

  /* reduz o escurecimento geral */
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 3, 3, 0.92) 0%,
      rgba(3, 3, 3, 0.70) 32%,
      rgba(3, 3, 3, 0.28) 58%,
      rgba(3, 3, 3, 0.18) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.20) 0%,
      rgba(0, 0, 0, 0.02) 55%,
      rgba(0, 0, 0, 0.28) 100%
    ),
    url("../assets/img/porsche-hero.jpg") !important;

  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* Remove definitivamente o carro fantasma */
.hero-ghost-car {
  display: none !important;
}

/* Conteúdo um pouco mais para cima */
.hero-inner {
  position: relative;
  z-index: 5;

  padding-bottom: 40px;
}

/* Estatísticas não ficam tão próximas da placa */
.hero-stats {
  margin-top: 55px;
}

/* Remove sombra pesada que estava escondendo a parte inferior */
.hero {
  box-shadow:
    inset 0 -20px 40px rgba(0, 0, 0, 0.20) !important;
}

/* Mantém o brilho sem colocar elementos sobre o carro */
.hero-glow {
  z-index: 1;
  opacity: 0.35;
}

.hero-inner {
  z-index: 5;
}
/* ==========================================================
   MONSECH MOTORS — FILTROS DO ESTOQUE
   ESTILO PREMIUM
========================================================== */

.stock-toolbar {
  width: 100% !important;

  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 12px !important;

  margin: 30px 0 0 !important;
  padding: 18px !important;

  background: #111 !important;

  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;

  box-sizing: border-box !important;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.30) !important;
}

/* TODOS OS CAMPOS */
.stock-toolbar .stock-field {
  width: 100% !important;
  height: 52px !important;

  box-sizing: border-box !important;

  padding: 0 16px !important;

  background-color: #1a1a1a !important;

  color: #fff !important;

  border: 1px solid #333 !important;
  border-radius: 10px !important;

  outline: none !important;

  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;

  transition: all 0.25s ease !important;
}

/* PLACEHOLDER */
.stock-toolbar .stock-field::placeholder {
  color: #777 !important;
}

/* FOCO */
.stock-toolbar .stock-field:focus {
  border-color: #e8232b !important;

  background-color: #202020 !important;

  box-shadow: 0 0 0 3px rgba(232, 35, 43, 0.12) !important;
}

/* SELECTS */
.stock-toolbar select.stock-field {
  cursor: pointer !important;

  color: #fff !important;

  background-color: #1a1a1a !important;
}

/* OPÇÕES */
.stock-toolbar select.stock-field option {
  background: #171717 !important;
  color: #fff !important;
}

/* ==========================================================
   CONTADOR
========================================================== */

.stock-count {
  margin: 20px 2px 20px !important;

  color: #888 !important;

  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* ==========================================================
   FILTROS DE CATEGORIA
========================================================== */

#filters.filters {
  display: flex !important;
  flex-wrap: wrap !important;

  gap: 10px !important;

  margin-top: 25px !important;
}

#filters .filter-btn {
  min-height: 40px !important;

  padding: 0 18px !important;

  border: 1px solid #333 !important;
  border-radius: 999px !important;

  background: #111 !important;

  color: #999 !important;

  font-family: "Inter", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;

  cursor: pointer !important;

  transition: all 0.25s ease !important;
}

#filters .filter-btn:hover {
  color: #fff !important;

  border-color: #e8232b !important;

  transform: translateY(-1px) !important;
}

#filters .filter-btn.active {
  background: #e8232b !important;

  border-color: #e8232b !important;

  color: #fff !important;

  box-shadow: 0 8px 22px rgba(232, 35, 43, 0.20) !important;
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 900px) {

  .stock-toolbar {
    grid-template-columns: 1fr 1fr !important;
  }

  .stock-toolbar .stock-search {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 600px) {

  .stock-toolbar {
    grid-template-columns: 1fr !important;

    padding: 14px !important;

    gap: 10px !important;
  }

  .stock-toolbar .stock-search {
    grid-column: auto !important;
  }

  .stock-toolbar .stock-field {
    height: 50px !important;
  }

  #filters.filters {
    flex-wrap: nowrap !important;

    overflow-x: auto !important;

    padding-bottom: 8px !important;
  }

  #filters .filter-btn {
    flex-shrink: 0 !important;
  }
}

/* ---------- Modal de detalhes e galeria ---------- */
.car-card {
  cursor: pointer;
}

.car-card:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
}

.car-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.car-card:hover .car-photo img {
  transform: scale(1.035);
}

.car-photo-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  color: #fff;
  background: rgba(9, 10, 12, .78);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.car-card:hover .car-photo-open,
.car-card:focus-visible .car-photo-open {
  opacity: 1;
  transform: translateY(0);
}

.vehicle-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(1040px, calc(100vw - 36px));
  max-width: none;
  max-height: min(90vh, 820px);
  margin: 0;
  padding: 0;
  overflow: auto;
  color: var(--text);
  background: #111316;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .6);
  transform: translate(-50%, -50%);
}

.vehicle-modal[open] {
  display: block;
  animation: vehicle-modal-in .2s ease-out;
}

.vehicle-modal::backdrop {
  background: rgba(3, 4, 6, .82);
  backdrop-filter: blur(7px);
}

@keyframes vehicle-modal-in {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.vehicle-modal-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  min-height: 520px;
}

.vehicle-modal-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: rgba(10, 12, 15, .74);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.vehicle-modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.vehicle-modal-gallery {
  min-width: 0;
  padding: 24px;
  background: linear-gradient(145deg, #171a1f, #0c0e11);
}

.vehicle-modal-main-photo {
  position: relative;
  display: grid;
  min-height: 350px;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: #08090b;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
}

.vehicle-modal-main-photo > img {
  width: 100%;
  height: 100%;
  max-height: 490px;
  object-fit: contain;
}

.vehicle-modal-main-photo > img[hidden],
.vehicle-modal-no-photo[hidden],
.vehicle-gallery-arrow[hidden] {
  display: none !important;
}

.vehicle-modal-no-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: .9rem;
}

.vehicle-modal-no-photo .car-photo-icon {
  width: 150px;
  height: auto;
}

.vehicle-modal-photo-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(0, 0, 0, .68);
  border-radius: 999px;
  font-size: .72rem;
}

.vehicle-gallery-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: rgba(8, 9, 11, .76);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.vehicle-gallery-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.vehicle-gallery-arrow.previous { left: 14px; }
.vehicle-gallery-arrow.next { right: 14px; }

.vehicle-modal-thumbnails {
  display: flex;
  gap: 9px;
  margin-top: 12px;
  padding: 2px 1px 5px;
  overflow-x: auto;
  scrollbar-color: #444 transparent;
}

.vehicle-modal-thumbnail {
  flex: 0 0 84px;
  height: 62px;
  padding: 0;
  overflow: hidden;
  background: #0c0e11;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  opacity: .65;
  cursor: pointer;
}

.vehicle-modal-thumbnail.active,
.vehicle-modal-thumbnail:hover {
  border-color: var(--accent-strong);
  opacity: 1;
}

.vehicle-modal-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-modal-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px 34px 30px;
}

.vehicle-modal-content .eyebrow {
  margin: 0 0 8px;
  font-size: .72rem;
}

.vehicle-modal-content h2 {
  max-width: 90%;
  margin: 0 0 5px;
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
}

.vehicle-modal-version {
  margin: 0;
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.5;
}

.vehicle-modal-price {
  margin: 17px 0 20px;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.vehicle-modal-specs {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.vehicle-modal-spec {
  min-height: 67px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 9px;
}

.vehicle-modal-spec span,
.vehicle-modal-spec strong {
  display: block;
}

.vehicle-modal-spec span {
  margin-bottom: 4px;
  color: #858d97;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.vehicle-modal-spec strong {
  color: #edf0f3;
  font-size: .86rem;
  font-weight: 600;
}

.vehicle-modal-description {
  width: 100%;
  margin-top: 20px;
}

.vehicle-modal-description[hidden] {
  display: none !important;
}

.vehicle-modal-description h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.vehicle-modal-description p {
  color: #a3aab3;
  font-size: .85rem;
  line-height: 1.65;
  white-space: pre-line;
}

.vehicle-modal-contact {
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 13px 18px;
  border-radius: 9px;
}

@media (max-width: 760px) {
  .vehicle-modal {
    max-height: 92vh;
    border-radius: 14px;
  }

  .vehicle-modal-shell {
    grid-template-columns: 1fr;
  }

  .vehicle-modal-gallery {
    padding: 16px 16px 11px;
  }

  .vehicle-modal-main-photo {
    min-height: 230px;
    max-height: 42vh;
  }

  .vehicle-modal-main-photo > img {
    max-height: 42vh;
  }

  .vehicle-modal-content {
    padding: 22px 20px 20px;
  }

  .vehicle-modal-content h2 {
    max-width: calc(100% - 30px);
  }

  .vehicle-modal-contact {
    margin-top: 22px;
  }
}

@media (hover: none) {
  .car-photo-open {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vehicle-modal[open] {
    animation: none;
  }

  .car-photo img,
  .car-photo-open {
    transition: none;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .nav { gap: 14px; }
  .nav a { font-size: 15px; white-space: nowrap; }
  .header-inner { gap: 20px; }
}
