/* 
  AIOX_Template_Popular_2
  Theme: Community / Trust
  Colors: Forest Green, Light Warm Gray, White
*/

:root {
  --brand-primary: #1B5E20; /* Forest Green */
  --brand-accent: #FFB300; /* Amber/Gold for stars and highlights */
  --brand-secondary: #4CAF50; /* Light Green */
  
  --bg-body: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-dark: #123315; /* Very Dark Green */
  
  --text-primary: #222222;
  --text-secondary: #555555;
  --text-muted: #888888;
  
  --border-subtle: #E8ECEE;
  
  --font-main: 'Outfit', 'Inter', system-ui, sans-serif;
  
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* THEMES */
body.theme-blue {
  --brand-primary: #0D47A1;
  --brand-accent: #FFB300;
  --brand-secondary: #1976D2;
  --bg-dark: #072657;
}

body.theme-burgundy {
  --brand-primary: #6A1B9A;
  --brand-accent: #FFB300;
  --brand-secondary: #8E24AA;
  --bg-dark: #3A0D57;
}

body.theme-green {
  /* Default */
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  transition: all 0.3s;
}

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

img {
  max-width: 100%;
  display: block;
}

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

/* =========================================
   HEADER
========================================= */
.top-bar {
  background: var(--bg-dark);
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 20px;
}

.top-bar-contact span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-header {
  background: var(--bg-card);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--text-primary);
  font-weight: 400;
}

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

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--brand-primary);
}

.btn {
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #128C7E;
}

/* =========================================
   HERO / COMMUNITY SECTION
========================================= */
.hero-section {
  position: relative;
  padding: 100px 0;
  background-image: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 100%), url('https://images.unsplash.com/photo-1560179707-f14e90ef3623?w=1600&q=80'); /* Office/Store background */
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  background: rgba(27, 94, 32, 0.1);
  color: var(--brand-primary);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--brand-primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* =========================================
   FLOATING SIMULATOR WIDGET
========================================= */
.home-simulator {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-top: -60px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sim-header {
  text-align: center;
  margin-bottom: 10px;
}

.sim-header h3 {
  font-size: 1.8rem;
  color: var(--brand-primary);
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 20px;
  align-items: flex-end;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.input-group select,
.input-group input {
  padding: 15px;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.input-group select:focus,
.input-group input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

/* =========================================
   VEHICLE CARDS GRID
========================================= */
.section-padding {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.vehicle-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.vehicle-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 94, 32, 0.1);
}

.card-img-wrap {
  position: relative;
  height: 220px;
}

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

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
}

.card-badge.gold {
  color: #B28900;
}

.card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
}

.card-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 20px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* =========================================
   SOCIAL PROOF (TESTIMONIALS & TRUST)
========================================= */
.trust-section {
  background: var(--bg-dark);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.trust-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.feature-item {
  background: rgba(255,255,255,0.05);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--brand-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
}

.feature-item h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.feature-item p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
  background: var(--bg-card);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border-subtle);
}

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

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--brand-primary);
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 30px;
  max-width: 400px;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-primary);
}

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

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

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 500;
}

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

.footer-contact p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =========================================
   THEME SWITCHER WIDGET
========================================= */
.theme-switcher {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #fff;
  padding: 15px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  border: 1px solid var(--border-subtle);
}

.theme-switcher h4 {
  font-size: 0.8rem;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.theme-colors {
  display: flex;
  gap: 10px;
}

.theme-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border-subtle);
  cursor: pointer;
}

.theme-btn.green { background: #1B5E20; }
.theme-btn.blue { background: #0D47A1; }
.theme-btn.burgundy { background: #6A1B9A; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .sim-grid { grid-template-columns: 1fr 1fr; }
  .trust-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .top-bar { display: none; }
  .header-nav .nav-links { display: none; }
  .hero-title { font-size: 2.5rem; }
  .sim-grid { grid-template-columns: 1fr; }
}



/* =====================================================
   AIOX MOBILE GLOBAL FIX — Prevent horizontal scroll
   ===================================================== */

/* 1. Força contenção total de largura */
html, body, #root {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  width: 100% !important;
}

/* 2. Qualquer imagem não pode sair do container */
img {
  max-width: 100% !important;
  height: auto;
}

@media (max-width: 768px) {

  /* 3. Reset de padding lateral para todas as sections e containers */
  section, header, footer, nav {
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 4. Qualquer div filho direto de section que tenha display:flex ou grid vira coluna */
  section > div,
  header > div,
  footer > div {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 5. Remove padding grande de sections inline-styled */
  section[style*="padding"],
  div[style*="padding: 6rem"],
  div[style*="padding: 8rem"],
  div[style*="padding: 10rem"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* 6. Flexbox nav wrapping */
  nav > div,
  nav[style] {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  /* 7. Grid — força 1 coluna */
  div[style*="grid-template-columns: repeat(4"],
  div[style*="grid-template-columns: repeat(3"],
  div[style*="grid-template-columns: repeat(2"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* 8. Split sections flex -> coluna */
  section[style*="display: flex"] {
    flex-direction: column !important;
  }
  section[style*="display: flex"] > div {
    width: 100% !important;
    flex: unset !important;
    min-width: unset !important;
  }

  /* 9. Tipografia responsiva */
  h1, h2 { font-size: clamp(1.8rem, 7vw, 2.8rem) !important; line-height: 1.2 !important; }
  h3 { font-size: clamp(1.2rem, 5vw, 1.6rem) !important; }

  /* 10. Botões full-width */
  a[class*="btn"], button[class*="btn"] {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    box-sizing: border-box !important;
  }

  /* 11. Altura hero mobile */
  section[style*="min-height: 100vh"],
  section[style*="min-height: 80vh"] {
    min-height: 70vh !important;
  }

  /* 12. Imagens em split sections */
  div[style*="flex: 1"] > img,
  div[style*="flex: 1"] {
    height: 300px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ============================================================
   AIOX MOBILE PROFESSIONAL FIX — Static v3.0
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; height: auto; }

@media (max-width: 768px) {

  .container, .wrapper, .inner {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    max-width: 100% !important;
  }

  section, .section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    overflow: hidden !important;
  }

  .site-header, header {
    padding: 1rem 1.25rem !important;
  }

  .hero-section, .hero, [class*="hero"] {
    min-height: 65vh !important;
    height: auto !important;
    padding-top: 5rem !important;
    padding-bottom: 3rem !important;
  }

  .hero-title, h1 {
    font-size: clamp(1.8rem, 7vw, 2.8rem) !important;
    line-height: 1.15 !important;
  }

  h2, .section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }

  h3 { font-size: 1.1rem !important; }
  p { font-size: 0.95rem !important; max-width: 100% !important; }

  .header-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
  }

  /* Ocultar nav links no mobile */
  .nav-links, .header-nav, nav ul { display: none !important; }

  /* Grids */
  .grid, .sec-grid, .fleet-grid, .about-grid, .testi-grid,
  [class*="grid-"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Cards de 2 colunas para mobile */
  .cards-grid, .inventory-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .footer-grid, .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Split sections */
  .split-section, [class*="split"],
  .about-section > .container,
  .experience-section > .container {
    flex-direction: column !important;
  }

  /* Imagens de seção */
  .card-img, .about-img, [class*="-img"] {
    height: 220px !important;
    width: 100% !important;
  }

  /* Botões */
  .btn, .btn-vip, .btn-full, .btn-primary, .btn-secondary,
  [class*="btn-"], button {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    max-width: 100% !important;
  }

  /* Flex groups de botões */
  .btn-group, .hero-btns, .cta-btns,
  div:has(> .btn) {
    flex-direction: column !important;
    gap: 1rem !important;
  }
}


/* ════════════════════════════════════════════════════════
   AIOX MOBILE FIX v4.0 — Templates Estáticos
   Regra: 20px lateral | 40-60px vertical | sem overflow
   ════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; height: auto; display: block; }

@media (max-width: 768px) {

  /* ── Container padrão ── */
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 100% !important;
  }

  /* ── Seções: vertical generoso, lateral 20px ── */
  .section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  /* ── Header: mantém flex-row com logo + hamburger ── */
  .site-header {
    padding: 0 20px !important;
  }
  /* NÃO mudar direction do header-inner — o hamburger já está implementado */
  .header-inner {
    padding: 0 !important;
  }

  /* ── Hero: altura adequada, mantém background ── */
  .hero {
    min-height: 70vh !important;
    height: auto !important;
  }
  .hero-content {
    padding: 0 20px !important;
  }
  /* Frame decorativo do vintage — reduz padding para não ficar enorme */
  .hero-frame {
    padding: 1.5rem !important;
  }
  .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem) !important;
    line-height: 1.1 !important;
  }
  .hero-subtitle {
    font-size: 1rem !important;
    max-width: 100% !important;
  }
  .hero-ctas, .cta-buttons {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  /* ── About / Split sections ── */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .about-image {
    width: 100% !important;
  }
  .about-image img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
  }
  /* Remove accent decorativo que sai da tela */
  .about-image-accent {
    display: none !important;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* ── Services grid ── */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .service-card {
    padding: 1.5rem !important;
  }

  /* ── Gallery ── */
  .gallery-grid, .gallery-mosaic {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: 160px !important;
    gap: 8px !important;
  }
  .gallery-item--large,
  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  /* ── Testimonials ── */
  .testimonial-card {
    min-width: 100% !important;
    margin: 0 !important;
  }

  /* ── Contact ── */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 0.5rem !important;
    text-align: center !important;
  }

  /* ── Botões ── */
  .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .hero-ctas .btn {
    min-width: 0 !important;
  }

  /* ── Tipografia ── */
  h2, .section-title {
    font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
    line-height: 1.2 !important;
  }
  h3 {
    font-size: clamp(1.1rem, 4vw, 1.4rem) !important;
  }
  p, .section-desc {
    font-size: 0.95rem !important;
    max-width: 100% !important;
  }

  /* ── Automóveis específico ── */
  .inventory-grid, .fleet-grid, .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .vip-contact, .contact-form {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ── Aviação específico ── */
  .fleet-card, .aircraft-card {
    width: 100% !important;
  }
  .stats-grid, .numbers-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* ── Ornaments: manter mas não deixar criar overflow ── */
  .hero-ornament {
    overflow: hidden !important;
  }
}
