:root {
  --primary: #060097;
  --primary-dark: #050080;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  font-family: var(--font); 
}

html { 
  scroll-behavior: smooth; 
}

body { 
  background: var(--white); 
  color: var(--primary); 
  line-height: 1.6; 
  -webkit-font-smoothing: antialiased;
}

img { 
  max-width: 100%; 
  display: block; 
  height: auto;
}

a { 
  text-decoration: none; 
  color: inherit; 
}

/* ========== ACESSIBILIDADE ========== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  z-index: 2000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Foco visível e acessível */
.btn:focus-visible,
.carousel-btn:focus-visible,
.dot:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2);
}

/* Suporte a redução de movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn-whatsapp-float {
    animation: none !important;
  }
}

/* Container */
.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 5%; 
}

.section { 
  padding: 5rem 0; 
}

.section-header { 
  text-align: center; 
  margin-bottom: 3rem; 
}

.section-header h2 { 
  font-size: clamp(1.8rem, 4vw, 2.2rem); 
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.section-header p { 
  color: var(--gray); 
  font-size: 1.05rem;
}

/* Header */
.header { 
  background: var(--primary); 
  padding: 1rem 0; 
  position: sticky; 
  top: 0; 
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-flex { 
  display: flex; 
  justify-content: center; /* centraliza horizontal */
  align-items: center;     /* centraliza vertical */
}

.logo img { 
  height: 70px; 
  transition: transform 0.2s;
}

.logo img:hover {
  transform: scale(1.02);
}

/* Botão WhatsApp Flutuante */
.btn-whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #22c553;
  color: white;
  width: 90px; /* Aumentado para acomodar o texto circular */
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
  z-index: 1000;
  transition: transform 0.3s;
  text-decoration: none;
}

/* O texto circular */
.circle-text {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotateText 10s linear infinite; /* Rotação lenta */
}

.circle-text text {
  fill: white;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Ícone centralizado */
.whatsapp-icon {
  position: relative;
  z-index: 2;
  width: 35px;
  height: 35px;
}

/* Animação de rotação */
@keyframes rotateText {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Efeito de hover */
.btn-whatsapp-float:hover {
  transform: scale(1.1);
  background: #16a34a;
}

/* Ajuste Mobile */
@media (max-width: 768px) {
  .btn-whatsapp-float {
    width: 80px;
    height: 80px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-icon {
    width: 30px;
    height: 30px;
  }
}

/* Hero Section - Carrossel */
.hero { 
  color: var(--white); 
  padding: 0;
  height: 100vh;
  position: relative;
  border-bottom: 1px solid var(--gray-light);
  margin-top: -1px;
}

.hero .carousel {
  aspect-ratio: unset !important;
  height: 100vh !important;
  overflow: hidden;
}

.hero .carousel-slide {
  height: 100vh;
  position: relative;
}

/* ✨ Overlay gradiente para legibilidade do texto */
.hero .carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.7) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.carousel-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .carousel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 90%;
  max-width: 700px;
  padding: 2rem 5%;
  background: rgba(10, 10, 30, 0.75);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1.5rem;
  line-height: 1.1;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  color: var(--white);
}

.hero p {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
  line-height: 1.5;
  color: rgba(255,255,255,0.95);
}

.hero .btn-hero {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.3);
}

.hero .btn-hero:hover {
  background: var(--light);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.hero .carousel-btn {
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: bold;
  width: 50px;
  height: 50px;
}

.hero .carousel-btn:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-50%) scale(1.15);
}

.hero .carousel-dots {
  bottom: 20px;
}

.hero .container {
  max-width: none;
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
}

.hero .dot {
  background: rgba(255,255,255,0.7);
  width: 14px;
  height: 14px;
}

.hero .dot.active {
  background: var(--white);
  transform: scale(1.4);
}

/* Cars Grid */
.grid-cars {
  display: flex;
  flex-direction: column;   /* coloca em coluna */
  align-items: center;      /* centraliza horizontal */
  gap: 2rem;                /* espaço entre os cards */
}

.card { 
  background: var(--white); 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow); 
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  border: 1px solid var(--gray-light);
  position: relative;
  will-change: transform;
  transform: translateZ(0);
}

/* ✨ Efeito de destaque no hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover { 
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  opacity: 1;
}

.card-body { 
  padding: 1.5rem; 
}

.card-title { 
  font-size: clamp(1.15rem, 3vw, 1.35rem); 
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 700;
}

.card-price { 
  color: var(--accent); 
  font-size: clamp(1.4rem, 4vw, 1.6rem); 
  font-weight: 800; 
  margin-bottom: 1.25rem;
}

.specs { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 0.75rem; 
  margin-bottom: 1.5rem; 
  font-size: 0.9rem; 
  color: var(--gray); 
}

.specs span { 
  background: var(--light); 
  padding: 0.5rem 0.75rem; 
  border-radius: var(--radius-sm); 
  text-align: center;
  font-weight: 500;
}

/* Botões com gradiente e efeito shine */
.btn { 
  display: block; 
  width: 100%; 
  padding: 1rem; 
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--white); 
  text-align: center; 
  border-radius: var(--radius-sm); 
  font-weight: 700; 
  border: none; 
  cursor: pointer; 
  transition: all 0.3s; 
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::after {
  left: 100%;
}

.btn:hover { 
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.btn-primary:hover {
  box-shadow: 0 6px 15px rgba(6, 0, 151, 0.3);
}

/* Carousel */
.carousel { 
  position: relative; 
  overflow: hidden; 
  background: var(--gray-light); 
  aspect-ratio: 16/9; 
}

.carousel-track { 
  display: flex; 
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  height: 100%; 
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

.carousel-track > * {
  flex: 0 0 100%;
}

.carousel-track img { 
  min-width: 100%; 
  height: 100%; 
  object-fit: cover;
  /* ✨ Skeleton loading enquanto carrega */
  background: linear-gradient(90deg, var(--gray-light) 25%, var(--white) 50%, var(--gray-light) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

.carousel-track img[src]:not([src=""]) {
  animation: none;
  background: transparent;
}

@keyframes loading-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.carousel-btn { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  background: rgba(255,255,255,0.95); 
  border: none; 
  width: 44px; 
  height: 44px; 
  border-radius: 50%; 
  cursor: pointer; 
  font-size: 1.2rem; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  transition: all 0.2s; 
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel-btn:hover { 
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots { 
  position: absolute; 
  bottom: 12px; 
  left: 50%; 
  transform: translateX(-50%); 
  display: flex; 
  gap: 8px; 
}

.dot { 
  width: 10px; 
  height: 10px; 
  border-radius: 50%; 
  background: rgba(255,255,255,0.6); 
  cursor: pointer; 
  transition: all 0.2s;
}

.dot.active { 
  background: var(--white); 
  transform: scale(1.3); 
}

/* Trust Section */
.trust { 
  background: var(--light); 
  padding: 4rem 5%; 
  text-align: center; 
}

.trust h2 { 
  margin-bottom: 2rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: var(--primary);
}

.trust-grid { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 1.25rem; 
}

.trust-item { 
  display: flex; 
  align-items: center; 
  gap: 0.6rem; 
  font-weight: 600; 
  background: var(--white); 
  padding: 1rem 1.5rem; 
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.trust-item span { 
  font-size: 1.5rem; 
}

/* Contact Section */
.contact-box { 
  max-width: 600px; 
  text-align: center; 
  background: var(--white); 
  padding: 3rem 2.5rem; 
  border-radius: var(--radius); 
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  border: 1px solid var(--gray-light);
}

.contact-box h2 {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.contact-box > p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.form { 
  display: flex; 
  flex-direction: column; 
  gap: 1.25rem; 
}

.form input,
.form textarea { 
  padding: 1rem; 
  border: 2px solid var(--gray-light); 
  border-radius: var(--radius-sm); 
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: var(--font);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.form textarea { 
  resize: vertical; 
  min-height: 120px; 
}

.form input::placeholder,
.form textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.note { 
  font-size: 0.85rem; 
  color: var(--gray); 
  margin-top: 1.5rem; 
}

/* Footer */
footer { 
  background: var(--primary); 
  color: #94a3b8; 
  text-align: center; 
  padding: 2.5rem 5%; 
  font-size: 0.9rem; 
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
  .container { padding: 0 4%; }
  .header { padding: 0.75rem 0; }
  .logo img { height: 55px; }
  
  .btn-whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
  .btn-whatsapp-float svg { width: 28px; height: 28px; }
  
  .hero { padding: 0; height: 100vh; }
  .hero h1 { margin: 1.25rem 0; }
  .section { padding: 3.5rem 0; }
  
  .grid-cars { grid-template-columns: 1fr; gap: 1.75rem; }
  .card-body { padding: 1.25rem; }
  
  .trust-grid { flex-direction: column; align-items: stretch; }
  .trust-item { justify-content: center; }
  
  .contact-box { padding: 2rem 1.5rem; margin: 0 1rem; }
  
  /* ✨ Touch targets mínimos de 44px para mobile */
  .btn, .carousel-btn, .dot, .form input, .form textarea {
    min-height: 30px;
    min-width: 30px;
  }
  
  .carousel-btn { width: 44px; height: 44px; font-size: 1.3rem; }
  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }
  
  /* ✨ Performance: sombras mais leves em mobile */
  .card, .contact-box, .trust-item {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 1rem; }
  
  .specs {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    font-size: 0.85rem;
  }
  .specs span { padding: 0.4rem 0.5rem; }
  .card-price { font-size: 1.35rem; }
}

@media (max-width: 360px) {
  .container { padding: 0 3%; }
  .hero .carousel-content { padding: 1.5rem 4%; border-radius: 16px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }
  .specs { grid-template-columns: 1fr; gap: 0.5rem; }
  .card-price { font-size: 1.3rem; }
}

/* ✨ Touch devices: botões maiores para dedos */
@media (hover: none) and (pointer: coarse) {
  .carousel-btn {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  animation: fadeIn 0.6s ease-out;
}