/* ==========================================================================
   HB MOTORS — ESTILO VISUAL AUTOMOTIVO PREMIUM (DARK & GOLD METALLIC)
   ========================================================================== */

:root {
  --bg-main: #07080a;
  --bg-surface: #0e1015;
  --bg-card: #13161e;
  --bg-card-hover: #171b25;
  --bg-glass: rgba(14, 16, 21, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(247, 168, 49, 0.4);
  --border-gold: rgba(229, 153, 36, 0.6);

  /* Tons de Ouro Automotivo HB */
  --gold-primary: #e59924;
  --gold-light: #fdb73f;
  --gold-dark: #b7700e;
  --gold-gradient: linear-gradient(135deg, #fdb73f 0%, #e59924 50%, #b7700e 100%);
  --gold-glow: 0 0 25px rgba(229, 153, 36, 0.25);

  /* Tons de Cromo / Prata */
  --silver-light: #f0f2f5;
  --silver-mid: #c8ccd6;
  --silver-dark: #7b7f8c;
  --silver-gradient: linear-gradient(135deg, #ffffff 0%, #d1d4dd 50%, #848894 100%);

  /* Textos */
  --text-white: #ffffff;
  --text-primary: #f0f2f5;
  --text-secondary: #9aa1b0;
  --text-muted: #646b7a;

  /* WhatsApp & Status */
  --whatsapp-color: #25d366;
  --whatsapp-hover: #1ebd56;
  --whatsapp-glow: 0 0 20px rgba(37, 211, 102, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Atmosphere */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 80% 10%, rgba(229, 153, 36, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 10% 40%, rgba(132, 136, 148, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(229, 153, 36, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Tipografia */
h1, h2, h3, h4, .brand-title {
  color: var(--text-white);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.silver-gradient-text {
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Top Announcement Bar */
.topbar {
  background: #090b0f;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-item svg {
  color: var(--gold-light);
}

.topbar-social a {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.topbar-social a:hover {
  color: var(--gold-light);
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: var(--transition-normal);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(229, 153, 36, 0.3));
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

.nav-badge {
  background: rgba(229, 153, 36, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(229, 153, 36, 0.4);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

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

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #000000;
  box-shadow: 0 4px 14px rgba(229, 153, 36, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 153, 36, 0.45);
}

.btn-whatsapp {
  background: #128c7e;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  box-shadow: var(--whatsapp-glow);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
  color: var(--text-white);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background: 
    linear-gradient(180deg, rgba(7, 8, 10, 0.75) 0%, rgba(7, 8, 10, 0.98) 100%),
    url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 153, 36, 0.1);
  border: 1px solid rgba(229, 153, 36, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(19, 22, 30, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.hero-badge-item svg {
  color: var(--gold-light);
}

/* Smart Search Box */
.search-card {
  background: var(--bg-card);
  border: 1px solid rgba(229, 153, 36, 0.35);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--gold-glow);
  text-align: left;
}

.search-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  background: #090a0e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-white);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(229, 153, 36, 0.2);
}

/* ==========================================================================
   Categorias Rápidas (Pills)
   ========================================================================== */
.categories-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0 24px;
}

.category-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-btn:hover {
  background: var(--bg-card);
  color: var(--text-white);
  border-color: var(--border-hover);
}

.category-btn.active {
  background: var(--gold-gradient);
  color: #000000;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(229, 153, 36, 0.35);
}

/* ==========================================================================
   Seção de Estoque / Catálogo
   ========================================================================== */
.inventory-section {
  padding: 50px 0 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.section-header p {
  color: var(--text-secondary);
}

.inventory-filter-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Grid de Carros */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

/* Card de Carro */
.car-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.car-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 153, 36, 0.15);
}

.car-image-box {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #000000;
}

.car-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.car-card:hover .car-image {
  transform: scale(1.06);
}

.car-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.car-badge.badge-gold {
  background: rgba(229, 153, 36, 0.9);
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.car-badge.badge-silver {
  background: rgba(200, 204, 214, 0.85);
  color: #090a0c;
}

.car-favorite-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 16, 21, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.car-favorite-btn:hover, .car-favorite-btn.active {
  color: #ff4757;
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.15);
}

/* Corpo do Card */
.car-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.car-title-row {
  margin-bottom: 12px;
}

.car-title {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text-white);
}

.car-version {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Ficha Rápida */
.car-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.car-spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.car-spec-item svg {
  color: var(--gold-light);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Preço e Financiamento */
.car-price-box {
  margin-bottom: 20px;
}

.car-price {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.car-installment {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.car-installment strong {
  color: var(--text-primary);
}

/* Botões do Card */
.car-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.car-actions .btn {
  padding: 10px 14px;
  font-size: 0.88rem;
}

/* ==========================================================================
   Instagram Section
   ========================================================================== */
.instagram-section {
  padding: 70px 0;
  background: #090b0f;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.instagram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.instagram-title-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.instagram-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.instagram-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  color: var(--text-white);
}

.instagram-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 39, 67, 0.5);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.instagram-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(6px);
}

.instagram-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.instagram-stats {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 600;
}

.instagram-caption {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Seção 'Venda seu Carro' / Consignação
   ========================================================================== */
.sell-car-section {
  padding: 80px 0;
}

.sell-car-box {
  background: linear-gradient(135deg, rgba(19, 22, 30, 0.95) 0%, rgba(14, 16, 21, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), var(--gold-glow);
}

.sell-car-info h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.sell-car-info p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.sell-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sell-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(229, 153, 36, 0.15);
  border: 1px solid rgba(229, 153, 36, 0.4);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sell-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================================
   Modal de Detalhes do Veículo
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), var(--gold-glow);
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 71, 87, 0.8);
  border-color: transparent;
}

.modal-body {
  padding: 36px;
}

/* Galeria do Modal */
.modal-gallery-main {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  margin-bottom: 14px;
}

.modal-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.modal-thumb {
  width: 90px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.modal-thumb.active, .modal-thumb:hover {
  border-color: var(--gold-primary);
  opacity: 1;
}

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

/* Simulador de Financiamento dentro do Modal */
.simulator-box {
  background: var(--bg-card);
  border: 1px solid rgba(229, 153, 36, 0.3);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 28px 0;
}

.simulator-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--gold-light);
}

.simulator-result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px;
  background: rgba(7, 8, 10, 0.8);
  border-radius: var(--radius-sm);
  margin-top: 18px;
  border: 1px dashed var(--border-gold);
}

.simulator-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-light);
}

/* Opcionais Tags */
.optionals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.optional-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.optional-tag svg {
  color: var(--gold-light);
}

/* ==========================================================================
   Depoimentos e Prova Social
   ========================================================================== */
.testimonials-section {
  padding: 70px 0;
  background: #090b0f;
  border-top: 1px solid var(--border-subtle);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}

.testimonial-stars {
  color: #ffb100;
  margin-bottom: 12px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text-white);
}

.testimonial-location {
  font-size: 0.8rem;
  color: var(--gold-light);
}

/* ==========================================================================
   Localização / Sobre Nós / Contato
   ========================================================================== */
.location-section {
  padding: 80px 0;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.location-info h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.location-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  border-radius: var(--radius-sm);
}

.contact-card-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(229, 153, 36, 0.15);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  height: 420px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #050608;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 16px 0;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-white);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.admin-lead-link {
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.8rem;
}

.admin-lead-link:hover {
  color: var(--gold-light);
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition-normal);
  animation: floatPulse 3s ease-in-out infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ==========================================================================
   Mini-CRM / Gaveta de Leads (Admin)
   ========================================================================== */
.crm-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 580px;
  height: 100vh;
  background: #0c0e14;
  border-left: 2px solid var(--gold-primary);
  z-index: 1100;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.9);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.crm-drawer.active {
  right: 0;
}

.crm-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crm-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.crm-lead-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crm-lead-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crm-status-select {
  background: #07080a;
  color: var(--gold-light);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: #11131a;
  border: 1px solid var(--gold-primary);
  color: var(--text-white);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,0.8), var(--gold-glow);
  z-index: 1200;
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Botão Flutuante de WhatsApp (Mobile & Desktop)
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  z-index: 995;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.floating-whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.8;
  animation: fabPulse 2.4s infinite;
  pointer-events: none;
}

@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

.floating-whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #0d0f14;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(229, 153, 36, 0.3);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-whatsapp-btn:hover .floating-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Menu Mobile Drawer & Backdrop
   ========================================================================== */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: var(--transition-fast);
}

.mobile-menu-btn:hover, .mobile-menu-btn:focus {
  border-color: var(--gold-light);
  background: rgba(229, 153, 36, 0.1);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 86vw);
  height: 100vh;
  background: #0a0c10;
  border-left: 1px solid rgba(229, 153, 36, 0.25);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.85);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-drawer-close:hover {
  background: rgba(255, 71, 87, 0.2);
  border-color: #ff4757;
  color: #ff4757;
}

.mobile-drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(229, 153, 36, 0.12);
  border-color: rgba(229, 153, 36, 0.35);
  color: var(--gold-light);
}

.mobile-drawer-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 18px;
}

/* ==========================================================================
   Responsividade Mobile (Tablets e Smartphones)
   ========================================================================== */
@media (max-width: 992px) {
  .search-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sell-car-box {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  /* Topbar minimalista */
  .topbar {
    padding: 6px 0;
    font-size: 0.78rem;
  }
  .topbar-content {
    justify-content: center;
    gap: 8px;
  }
  .topbar-schedule {
    display: none;
  }
  .topbar-info {
    gap: 12px;
  }

  /* Navbar Mobile */
  .navbar-container {
    height: 66px;
    padding: 0 16px;
  }
  .logo-img {
    height: 38px;
  }
  .nav-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .header-whatsapp-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  .header-whatsapp-btn .btn-phone-text {
    display: none;
  }
  .header-whatsapp-btn::after {
    content: 'WhatsApp';
    font-weight: 600;
  }

  /* Hero Mobile */
  .hero {
    padding: 36px 0 28px;
  }
  .hero-pill {
    font-size: 0.75rem;
    padding: 6px 12px;
    margin-bottom: 14px;
  }
  .hero h1 {
    font-size: clamp(1.75rem, 6.8vw, 2.3rem);
    line-height: 1.18;
    margin-bottom: 12px;
  }
  .hero p {
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 18px;
    padding: 0 4px;
  }
  .hero-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero-badge-item {
    font-size: 0.75rem;
    padding: 8px 10px;
    justify-content: center;
  }

  /* Barra de Busca e Filtros */
  .search-box {
    padding: 16px 14px;
    border-radius: var(--radius-md);
    margin-top: 20px;
  }
  .search-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .search-field select,
  .search-field input {
    height: 46px;
    font-size: 16px !important; /* Evita zoom forçado no Safari/iOS */
  }
  .search-btn {
    height: 48px;
    width: 100%;
    font-size: 0.98rem;
  }

  /* Category Pills (Carrossel Horizontal Deslizável no Touch) */
  .category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 2px 12px;
    scrollbar-width: none;
  }
  .category-pills::-webkit-scrollbar {
    display: none;
  }
  .category-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-pill);
  }

  /* Cabeçalho da Seção Estoque */
  .inventory-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }
  .inventory-sort {
    width: 100%;
  }
  .inventory-sort select {
    width: 100%;
    height: 44px;
    font-size: 16px !important;
  }

  /* Cards de Carro Mobile */
  .cars-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .car-card {
    border-radius: var(--radius-md);
  }
  .car-card-img-wrapper {
    height: 230px;
  }
  .car-card-body {
    padding: 18px 16px;
  }
  .car-card-title {
    font-size: 1.15rem;
  }
  .car-specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 14px 0;
  }
  .car-spec-item {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  .car-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 14px;
  }
  .car-price-val {
    font-size: 1.6rem;
  }
  .car-installment-text {
    font-size: 0.78rem;
  }
  .car-card-actions {
    flex-direction: column;
    gap: 8px;
  }
  .car-card-actions .btn {
    width: 100%;
    height: 44px;
    font-size: 0.92rem;
  }

  /* Modais de Detalhes e Proposta no Mobile */
  .modal-overlay {
    padding: 0;
    align-items: flex-end; /* Abre como Bottom Sheet no celular */
  }
  .modal-box {
    max-height: 92vh;
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 24px 16px 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .modal-gallery-main {
    height: 240px;
  }
  .modal-sticky-actions {
    position: sticky;
    bottom: -30px;
    left: 0;
    right: 0;
    background: #0d0f14;
    padding: 14px 0 0;
    margin-top: 16px;
    border-top: 1px solid var(--border-subtle);
    z-index: 10;
  }
  .modal-sticky-actions .btn {
    width: 100%;
    height: 48px;
  }

  /* Seção Venda seu Carro Mobile */
  .sell-car-section {
    padding: 48px 0;
  }
  .sell-car-box {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }
  .sell-car-form .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sell-car-form .form-control {
    height: 46px;
    font-size: 16px !important;
  }

  /* Localização & Footer */
  .location-section {
    padding: 48px 0;
  }
  .map-wrapper iframe {
    height: 260px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero h1 {
    font-size: 1.65rem;
  }
  .hero-pill {
    font-size: 0.7rem;
  }
  .stat-card {
    padding: 14px;
  }
  .floating-whatsapp-btn {
    width: 52px;
    height: 52px;
    bottom: 18px;
    right: 16px;
  }
}

