/* Max Veículos — style.css */

:root {
  --red: #C0392B;
  --red-hover: #A93226;
  --red-light: rgba(192,57,43,0.12);
  --blue-dark: #1A2A4A;
  --blue-mid: #243B6E;
  --blue-light: #2E4A8A;
  --bg: #F5F5F5;
  --white: #FFFFFF;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --gray-border: #D1D5DB;
  --shadow: 0 4px 24px rgba(26,42,74,0.12);
  --shadow-hover: 0 8px 40px rgba(26,42,74,0.22);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--blue-dark); overflow-x: hidden; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--blue-dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ── Typography ────────────────────────────────────────── */
.font-syne { font-family: 'Syne', sans-serif; }
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.15;
}
.section-title span { color: var(--red); }
.title-bar {
  display: inline-block;
  width: 56px; height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ── Navbar ────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--blue-dark);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  color: var(--white); letter-spacing: 0.05em;
  text-decoration: none; position: relative; padding-bottom: 3px;
}
.nav-logo::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px; background: var(--red);
}
.nav-link {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; transition: color var(--transition);
  padding: 0.25rem 0; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--red);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-red {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--red); color: var(--white);
  padding: 0.75rem 1.75rem; border-radius: 8px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.03em; text-decoration: none; border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-red:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,57,43,0.4); }
.btn-red:active { transform: translateY(0); }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--white);
  padding: 0.75rem 1.75rem; border-radius: 8px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.03em; text-decoration: none; border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer; transition: all var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-2px); }

.btn-blue {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--blue-dark); color: var(--white);
  padding: 0.65rem 1.5rem; border-radius: 8px;
  font-weight: 600; font-size: 0.875rem;
  border: none; cursor: pointer; text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.btn-blue:hover { background: var(--blue-mid); transform: translateY(-1px); }

/* ── Hero ────────────────────────────────────────────────── */
#hero {
  min-height: 100vh; position: relative;
  background: var(--blue-dark);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../fachada.png');
  background-size: cover; background-position: center;
  opacity: 0.2; transform: scale(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,42,74,0.97) 0%, rgba(26,42,74,0.75) 60%, rgba(192,57,43,0.15) 100%);
}
.hero-accent {
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 5px; background: var(--red); border-radius: 0 3px 3px 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--red-light); border: 1px solid rgba(192,57,43,0.3);
  color: #ff6b6b; padding: 0.35rem 0.9rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.05;
  color: var(--white); margin-bottom: 1.25rem;
}
.hero-headline span { color: var(--red); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75); max-width: 520px;
  line-height: 1.65; margin-bottom: 2.5rem;
}

/* ── Cards de veículo ────────────────────────────────────── */
.card-veiculo {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer; position: relative;
  box-shadow: var(--shadow);
}
.card-veiculo:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--gray-light); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-veiculo:hover .card-img-wrap img { transform: scale(1.05); }
.badge-destaque {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: var(--white);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 100px;
}
.badge-vendido {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.7); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 100px;
}
.card-body { padding: 1.25rem; }
.card-nome { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 0.5rem; }
.card-specs { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.card-spec { font-size: 0.78rem; color: var(--gray); display: flex; align-items: center; gap: 0.3rem; }
.card-spec svg { width: 14px; height: 14px; opacity: 0.7; }
.card-preco { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--red); margin-bottom: 1rem; }
.card-preco small { font-size: 0.75rem; font-weight: 500; color: var(--gray); margin-right: 4px; }

/* ── Filtros ─────────────────────────────────────────────── */
.filtros-wrap { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filtro-btn {
  padding: 0.5rem 1.1rem; border-radius: 100px;
  border: 2px solid var(--gray-border); background: var(--white);
  color: var(--gray); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.filtro-btn:hover { border-color: var(--blue-dark); color: var(--blue-dark); }
.filtro-btn.active { background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark); }
.filtro-btn-red.active { background: var(--red); border-color: var(--red); }
.filtros-sec { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filtro-select {
  padding: 0.5rem 1rem; border-radius: 8px;
  border: 2px solid var(--gray-border); background: var(--white);
  color: var(--blue-dark); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: border-color var(--transition);
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 2rem;
}
.filtro-select:focus { outline: none; border-color: var(--red); }

/* ── Modal ───────────────────────────────────────────────── */
#modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,16,30,0.88); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
#modal-overlay.open { display: flex; }
.modal-box {
  background: var(--blue-dark); border-radius: 16px;
  width: 100%; max-width: 900px; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  background: rgba(255,255,255,0.1); border: none; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.2); }
.modal-foto-main { aspect-ratio: 16/9; overflow: hidden; border-radius: 8px; background: var(--blue-mid); margin-bottom: 0.75rem; }
.modal-foto-main img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.modal-thumb {
  width: 68px; height: 52px; border-radius: 6px; overflow: hidden;
  cursor: pointer; border: 2px solid transparent;
  transition: border-color var(--transition);
}
.modal-thumb.active { border-color: var(--red); }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-nome { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--white); }
.modal-preco { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--red); line-height: 1; }
.modal-spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.modal-spec-item { background: rgba(255,255,255,0.06); border-radius: 8px; padding: 0.75rem; }
.modal-spec-label { font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.4); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.3rem; }
.modal-spec-value { font-size: 0.95rem; font-weight: 700; color: var(--white); }
.modal-descricao { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.65; }

/* ── Sobre ───────────────────────────────────────────────── */
#sobre { background: var(--blue-dark); }
.sobre-stat { text-align: center; }
.sobre-stat-num { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--red); line-height: 1; }
.sobre-stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.55); font-weight: 500; margin-top: 0.3rem; }
.sobre-foto { border-radius: var(--radius); overflow: hidden; position: relative; }
.sobre-foto::before { content: ''; position: absolute; inset: -3px; border-radius: calc(var(--radius) + 3px); border: 3px solid var(--red); z-index: -1; }

/* ── Depoimentos ─────────────────────────────────────────── */
.review-card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border-top: 3px solid var(--red);
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.review-stars { color: var(--red); font-size: 0.95rem; margin-bottom: 0.75rem; }
.review-text { color: var(--gray); font-size: 0.9rem; line-height: 1.65; margin-bottom: 1rem; }
.review-nome { font-weight: 700; color: var(--blue-dark); font-size: 0.9rem; }
.review-via { font-size: 0.75rem; color: var(--gray); }

/* ── Mapa ────────────────────────────────────────────────── */
#mapa { position: relative; }
#mapa iframe { display: block; filter: grayscale(20%) contrast(1.05); }
.mapa-overlay {
  position: absolute; bottom: 0; left: 0;
  background: rgba(26,42,74,0.9); backdrop-filter: blur(4px);
  padding: 1.25rem 1.75rem; border-top-right-radius: var(--radius);
}
.mapa-overlay h3 { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--white); font-size: 1rem; }
.mapa-overlay p { color: rgba(255,255,255,0.65); font-size: 0.82rem; margin-top: 0.25rem; }
.mapa-overlay span.dot { display: inline-block; width: 8px; height: 8px; background: var(--red); border-radius: 50%; margin-right: 6px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }

/* ── WhatsApp fixo ───────────────────────────────────────── */
#btn-whatsapp-fixo {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
  background: #25D366; color: var(--white);
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none; transition: transform var(--transition), box-shadow var(--transition);
}
#btn-whatsapp-fixo:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.55); }
#btn-whatsapp-fixo svg { width: 28px; height: 28px; }

/* ── Empty state ─────────────────────────────────────────── */
#empty-state { text-align: center; padding: 4rem 1rem; }
#empty-state svg { width: 64px; height: 64px; color: var(--gray-border); margin-bottom: 1rem; }

/* ── Loading ─────────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--gray-light) 25%, #e0e0e0 50%, var(--gray-light) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Footer ──────────────────────────────────────────────── */
#footer { background: var(--blue-dark); border-top: 3px solid var(--red); }
.footer-link { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; transition: color var(--transition); }
.footer-link:hover { color: var(--white); }

/* ── CTA final ───────────────────────────────────────────── */
#cta-final { background: var(--red); }

/* ── Hamburger ───────────────────────────────────────────── */
.ham-line { display: block; width: 22px; height: 2px; background: var(--white); transition: all 0.3s; transform-origin: center; }
#nav-toggle.open .ham-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#nav-toggle.open .ham-line:nth-child(2) { opacity: 0; }
#nav-toggle.open .ham-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background: rgba(26,42,74,0.98); }
.mobile-menu.open { max-height: 300px; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-hover); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue-dark);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; line-height: 1;
  transition: background var(--transition), transform var(--transition);
}
details[open] .faq-icon { background: var(--red); color: #fff; transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid var(--gray-light);
  padding-top: 1rem;
}

/* ── Reveal animations ───────────────────────────────────── */
.reveal       { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }

/* ── Prefers reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .modal-spec-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-box { border-radius: 12px 12px 0 0; max-height: 95vh; }
  #modal-overlay { align-items: flex-end; padding: 0; }
  .sobre-foto { display: none; }
}

@media (max-width: 480px) {
  .modal-spec-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-headline { font-size: 2.2rem; }
}
