/* ============================================================
   Black Motors — Identidade visual
   Preto #0B0B0B · Branco #FFFFFF · Cinza escuro #2B2B2B ·
   Cinza claro #D9D9D9 · Sem gradientes · Fotografia como
   elemento principal · Tipografia geométrica espaçada
   ============================================================ */

:root {
  --black: #0b0b0b;
  --white: #ffffff;
  --gray-dark: #2b2b2b;
  --gray-light: #d9d9d9;
  --border: rgba(255, 255, 255, 0.1);
  --font-title: "Orbitron", "Eurostile", "Bank Gothic", sans-serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

section[id],
footer[id] {
  scroll-margin-top: 76px;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Botões ============ */

.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 14px 24px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-solid {
  background: var(--white);
  color: var(--black);
}

.btn-solid:hover {
  background: var(--gray-light);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  padding: 13px 23px;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

/* ============ Header ============ */

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(11, 11, 11, 0.95) 0%, rgba(11, 11, 11, 0.55) 60%, rgba(11, 11, 11, 0) 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

/* Logo em JPG com fundo preto — funde com o header preto */
.logo-img {
  height: 58px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  padding: 29px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--white);
}

.nav a.active {
  color: var(--white);
  border-bottom-color: var(--white);
}

.caret {
  font-size: 9px;
  vertical-align: middle;
}

/* ============ Hero ============ */

.hero {
  position: relative;
  background: var(--black);
  padding: 172px 0 150px;
}

.hero-image {
  position: absolute;
  inset: 0;
  background: #151515 url("../img/hero.jpg") center 60% / cover no-repeat;
}

.placeholder-note {
  position: absolute;
  right: 32px;
  top: 32px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.25);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0.45);
}

/* Degradê na base do hero — a foto funde gradualmente pro preto da página */
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(11, 11, 11, 0), var(--black));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  color: var(--gray-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
}

.hero-kicker::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--white);
  vertical-align: middle;
  margin-right: 14px;
}

.hero-title {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 50px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}

.hero-title span {
  color: var(--gray-light);
}

.hero-text {
  color: var(--gray-light);
  font-size: 14px;
  line-height: 1.7;
  max-width: 360px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
}

/* ============ Barra de pesquisa ============ */

.search-wrap {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  bottom: -58px;
}

.search-bar {
  background: var(--gray-dark);
  border-radius: 2px;
  padding: 24px 28px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.search-title {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}

.search-form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.search-field {
  flex: 1;
}

.search-field label {
  display: block;
  color: var(--gray-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
}

.select-wrap select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--black);
  background: var(--white);
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

.btn-search {
  height: 44px;
  padding: 0 34px;
}

.advanced-search {
  display: block;
  text-align: right;
  color: var(--gray-light);
  font-size: 12px;
  margin-top: 10px;
}

.advanced-search:hover {
  color: var(--white);
}

/* Espaço abaixo do hero pra barra que transborda */
.hero + * {
  margin-top: 90px;
}

/* ============ Faixa de benefícios ============ */

.beneficios {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.beneficios-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.beneficio {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.beneficio svg {
  width: 20px;
  height: 20px;
  color: var(--gray-light);
  flex-shrink: 0;
}

.beneficio-sep {
  color: var(--gray-light);
  font-size: 16px;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .beneficio-sep { display: none; }
  .beneficios-inner { gap: 14px 24px; }
  .beneficio { font-size: 12px; }
}

/* ============ Promo / Countdown ============ */

.promo {
  padding: 40px 0 60px;
}

.promo-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--gray-dark);
  border-radius: 2px;
  padding: 22px 30px;
}

.promo-discount {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 28px;
  border-right: 1px solid var(--border);
}

.promo-discount-label {
  color: var(--gray-light);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
}

.promo-discount-value {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.promo-info {
  flex: 1;
}

.promo-title {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 7px;
}

.promo-text {
  color: var(--gray-light);
  font-size: 12px;
  line-height: 1.5;
}

.promo-countdown {
  display: flex;
  align-items: center;
  gap: 12px;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 62px;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.countdown-value {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.countdown-label {
  color: var(--gray-light);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-top: 6px;
}

/* ============ Catálogo / Inventário ============ */

.inventory {
  padding: 30px 0 80px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: var(--font-title);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  margin-bottom: 26px;
}

.section-title::before,
.section-title::after {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--white);
}

.inventory-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 36px;
}

.inventory-tabs a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
}

.inventory-tabs a:hover {
  color: var(--white);
}

.inventory-tabs a.active {
  color: var(--white);
  border-bottom-color: var(--white);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.car-card {
  background: var(--gray-dark);
  border-radius: 2px;
  overflow: hidden;
}

.car-card[hidden] {
  display: none;
}

.inventory-empty {
  text-align: center;
  color: var(--gray-light);
  font-size: 13px;
  padding: 40px 0 10px;
}

.inventory-empty a {
  color: var(--white);
  text-decoration: underline;
}

.inventory-more {
  text-align: center;
  margin-top: 36px;
}

.inventory-more .btn {
  padding: 13px 46px;
}

.car-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

/* Placeholder — remover quando as fotos forem colocadas */
.car-placeholder {
  background: #151515;
  outline: 1px dashed rgba(255, 255, 255, 0.15);
  outline-offset: -8px;
}

.car-placeholder .placeholder-note {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  right: auto;
  white-space: nowrap;
}

.car-year {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--border);
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 9px;
  border-radius: 2px;
}

.car-body {
  padding: 16px 18px 18px;
}

.car-name {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.car-specs {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.car-spec {
  color: var(--gray-light);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.car-link {
  display: inline-block;
  font-family: var(--font-title);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.car-link:hover {
  border-bottom-color: var(--white);
}

.car-link .arrow {
  font-size: 12px;
  margin-left: 4px;
}

/* ============ Porquê a Black Motors ============ */

.porque {
  border-top: 1px solid var(--border);
  padding: 64px 0 70px;
}

.porque-kicker {
  color: var(--gray-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  margin-bottom: 16px;
}

.porque-kicker::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--white);
  vertical-align: middle;
  margin-right: 12px;
}

.porque-titulo {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.25;
  margin-bottom: 18px;
}

.porque-texto {
  color: var(--gray-light);
  font-size: 14px;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 40px;
}

.porque-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.porque-cartao {
  background: var(--gray-dark);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 28px 26px;
}

.porque-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--white);
  margin-bottom: 20px;
}

.porque-icone svg {
  width: 22px;
  height: 22px;
}

.porque-cartao-titulo {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.porque-cartao-texto {
  color: var(--gray-light);
  font-size: 12px;
  line-height: 1.7;
}

/* ============ Banners (slideshow: um banner a cada 5s) ============ */

.banners {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.banner-slider {
  position: relative;
  aspect-ratio: 2 / 1;
  border-radius: 2px;
  overflow: hidden;
  background: #151515;
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ Marcas (scroll automático) ============ */

.brands {
  border-top: 1px solid var(--border);
  padding: 44px 0 52px;
  overflow: hidden;
}

.brands-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-title);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
  margin-bottom: 34px;
}

.brands-title::before,
.brands-title::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--white);
}

.brands-viewport {
  overflow: hidden;
}

.brands-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  padding: 0 36px;
  animation: brands-scroll 28s linear infinite;
}

.brands-viewport:hover .brands-track {
  animation-play-state: paused;
}

/* O track contém o conjunto duplicado — -50% volta ao início sem salto */
@keyframes brands-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 36px)); }
}

.brand {
  font-family: var(--font-title);
  color: var(--gray-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.brand:hover {
  color: var(--white);
  opacity: 1;
}

/* Logótipos em imagem (quando os ficheiros chegarem) */
.brands-track img.brand {
  height: 34px;
  width: auto;
  opacity: 0.75;
  filter: grayscale(1) brightness(1.6);
}

/* ============ Footer ============ */

.footer {
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--gray-light);
  font-size: 12px;
  line-height: 1.7;
  max-width: 220px;
  margin-bottom: 18px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gray-light);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-social a:hover {
  color: var(--white);
  border-color: var(--white);
}

.footer-social svg {
  width: 15px;
  height: 15px;
}

.footer-title {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  color: var(--gray-light);
  font-size: 12px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--gray-light);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-contact a {
  color: var(--gray-light);
  transition: color 0.15s ease;
}

.footer-contact a:hover {
  color: var(--white);
}

.contact-icon {
  color: var(--white);
  font-size: 13px;
  line-height: 1.5;
}

.hours-group {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 14px 0 8px;
}

.hours-group:first-child {
  margin-top: 0;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  color: var(--gray-light);
  font-size: 12px;
  padding: 3px 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--gray-light);
  font-size: 11px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--gray-light);
  transition: color 0.15s ease;
}

.footer-legal a:hover {
  color: var(--white);
}

/* ============ Pop-up da promoção (só mobile) ============ */

.promo-popup {
  display: none;
}

@media (max-width: 600px) {
  .promo {
    display: none;
  }

  .promo-popup {
    display: block;
    position: fixed;
    z-index: 60;
    left: 14px;
    right: 14px;
    bottom: 14px;
    background: var(--gray-dark);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 18px 16px 16px;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
    transform: translateY(130%);
    transition: transform 0.45s ease;
  }

  .promo-popup.visivel {
    transform: translateY(0);
  }

  .popup-fechar {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    color: var(--gray-light);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
  }

  .popup-topo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding-right: 20px;
  }

  .popup-desconto {
    font-family: var(--font-title);
    color: var(--white);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
  }

  .popup-titulo {
    font-family: var(--font-title);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
  }

  .popup-texto {
    color: var(--gray-light);
    font-size: 11px;
    line-height: 1.5;
  }

  .popup-countdown {
    justify-content: center;
    margin-bottom: 14px;
  }

  .popup-countdown .countdown-box {
    width: 30%;
    height: 56px;
  }

  .popup-btn {
    display: block;
    width: 100%;
  }
}

/* ============ Responsivo ============ */

@media (max-width: 1024px) {
  .nav { display: none; }
  .inventory-grid { grid-template-columns: repeat(2, 1fr); }
  .inventory-tabs { flex-wrap: wrap; gap: 16px 22px; }
  .porque-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .search-form { flex-wrap: wrap; }
  .search-field { flex: 1 1 40%; }
  .btn-search { flex: 1 1 100%; }
  .search-wrap { position: static; transform: none; margin-top: 40px; }
  .hero { padding-bottom: 48px; }
  .promo-bar {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 20px;
  }
  .promo-discount {
    border-right: none;
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  .hero { padding-top: 250px; }
  .hero-title { font-size: 34px; }
  .search-field { flex: 1 1 100%; }
  .btn-header { display: none; }
  .inventory-grid { grid-template-columns: 1fr; }
  .porque-titulo { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}
