.admin-form-modal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.2rem;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  background: #f8f7f3;
  border-radius: 18px;
  border: 1.5px solid #c9a74a33;
  box-shadow: 0 6px 32px 0 #c9a74a22, 0 1.5px 0 #e7d7a7;
  max-width: 900px;
  margin: 2.5rem auto 0 auto;
  align-items: flex-start;
}
.admin-form-modal label {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #1a2238;
  font-size: 1.04rem;
  margin-bottom: 0.2rem;
}
.admin-form-modal input {
  margin-top: 0.18rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: 1.2px solid #c9a74a44;
  font-size: 1.01rem;
  background: #f8f7f3;
  color: #1a2238;
  transition: border 0.18s;
}
.admin-form-modal input:focus {
  border-color: #c9a74a;
  outline: none;
}
.admin-form-modal-actions {
  flex-basis: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.admin-form-modal button[type="submit"] {
  background: linear-gradient(90deg, #e7d7a7 0%, #c9a74a 100%);
  color: #1a2238;
  border: none;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.08rem;
  padding: 0.65rem 2.5rem;
  min-width: 160px;
  box-shadow: 0 2px 10px 0 rgba(201,167,74,0.13), 0 1px 0 #e7d7a7;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.38s cubic-bezier(.4,1.4,.6,1), color 0.18s, transform 0.22s, box-shadow 0.22s;
}
.admin-form-modal button[type="submit"]:hover,
.admin-form-modal button[type="submit"]:focus {
  background: linear-gradient(90deg, #c9a74a 70%, #e7d7a7 100%);
  color: #fff;
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 10px 28px 0 rgba(201,167,74,0.22), 0 2px 0 #e7d7a7;
  outline: 2px solid #1a223822;
}
.admin-form-modal button[type="button"] {
  background: none;
  border: none;
  color: #c9a74a;
  font-size: 1.05rem;
  font-weight: 400;
  padding: 0.18rem 0.6rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  min-width: 90px;
  text-align: left;
}
.admin-form-modal button[type="button"]:hover,
.admin-form-modal button[type="button"]:focus {
  color: #b89a3c;
  background: #f8f7f3;
  outline: none;
}
@media (max-width: 700px) {
  .admin-form-modal {
    flex-direction: column;
    gap: 0.7rem 0;
    padding: 0.7rem 0.5rem 0.5rem 0.5rem;
    max-width: 98vw;
  }
  .admin-form-modal-actions {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  .admin-form-modal button[type="submit"] {
    width: 100%;
    min-width: 0;
  }
}
.admin-add-btn {
  background: none;
  border: none;
  color: #c9a74a;
  font-size: 1.05rem;
  font-weight: 400;
  padding: 0.18rem 0.6rem;
  margin-bottom: 1.2rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  box-shadow: none;
  transition: background 0.15s, color 0.15s;
}
.admin-add-btn:hover, .admin-add-btn:focus {
  background: #f8f7f3;
  color: #b89a3c;
  outline: none;
}
.admin-table tbody tr {
  border-bottom: 1.5px solid #ece6d6;
}
.admin-table tbody tr td {
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}
.admin-thumb {
  width: 48px;
  height: 32px;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 1px 4px #c9a74a22;
  background: #f8f7f3;
  margin-right: 0.2rem;
}
.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #f8f7f3 60%, #e7d7a7 100%);
  color: #1a2238;
  border: 1.2px solid #c9a74a;
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem 0.28rem 0.5rem;
  margin-right: 0.2rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
  min-width: 36px;
  min-height: 32px;
  gap: 0.3em;
}
.admin-action-btn svg {
  display: inline;
  vertical-align: middle;
  margin-right: 0.1em;
}
.admin-action-btn .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.admin-action-btn:last-child {
  margin-right: 0;
}
.admin-action-btn:hover, .admin-action-btn:focus {
  background: linear-gradient(90deg, #e7d7a7 60%, #c9a74a 100%);
  color: #c9a74a;
  border-color: #b89a3c;
  box-shadow: 0 2px 8px #c9a74a33;
  outline: none;
}
.admin-action-edit svg path {
  fill: #c9a74a;
}
.admin-action-delete svg path {
  stroke: #c9a74a;
}
.botao-comprar.admin-menor {
  font-size: 0.98rem;
  padding: 0.45rem 0;
  min-width: 110px;
  max-width: 160px;
  border-radius: 16px;
}
/* --- MENU LATERAL --- */
.side-panel-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 24, 48, 0.55);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.side-panel-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.side-panel {
  position: fixed;
  top: 0;
  right: 32px;
  width: 520px;
  max-width: calc(100vw - 32px);
  height: 96vh;
  margin-top: 2vh;
  margin-bottom: 2vh;
  background: #fff;
  box-shadow: -8px 0 40px #001f3f33, 0 4px 24px #001f3f11;
  border-radius: 18px 18px 18px 18px;
  z-index: 2100;
  transform: translateX(100%);
  opacity: 0.7;
  filter: blur(2px);
  transition:
    transform 0.55s cubic-bezier(.4,1.4,.6,1),
    opacity 0.45s cubic-bezier(.4,1.4,.6,1),
    filter 0.45s cubic-bezier(.4,1.4,.6,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.side-panel.active {
  transform: translateX(0);
  opacity: 1;
  filter: blur(0);
}
.side-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem 0.7rem 1.5rem;
  border-bottom: 1px solid #eee;
  background: #f7f9fa;
}
.side-panel-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #003366;
  margin: 0;
}
.side-panel-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #003366;
  cursor: pointer;
  transition: color 0.2s;
}
.side-panel-close:hover {
  color: #ffdd57;
}
.side-panel-content {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
}
.side-panel-content img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px #001f3f22;
}
.sp-gallery { position: relative; margin-bottom: 1rem; }
.sp-main { position: relative; }
.sp-main img { width: 100%; border-radius: 12px; box-shadow: 0 2px 12px #001f3f22; transition: opacity .18s ease; }
.sp-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(15,39,71,0.28); color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(2px); box-shadow: 0 4px 12px rgba(0,0,0,.18); transition: background .2s, transform .15s, opacity .2s; opacity: .9; }
.sp-arrow:hover, .sp-arrow:focus { background: rgba(15,39,71,0.45); outline: none; transform: translateY(-50%) scale(1.06); }
.sp-left { left: 10px; }
.sp-right { right: 10px; }
.sp-arrow:active { transform: translateY(-50%) scale(0.96); }
.side-panel-content .car-meta {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 0.7rem;
}
.side-panel-content .car-desc {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1.2rem;
}
.side-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.side-panel-actions button,
 .side-panel-actions a {
  background: linear-gradient(90deg, #c9a74a 70%, #e7d7a7 100%);
  color: #1a2238;
  border: none;
  border-radius: 24px;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.75rem 0;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 10px 0 rgba(201,167,74,0.13), 0 1px 0 #e7d7a7;
  letter-spacing: 0.01em;
  margin-bottom: 0.18rem;
  position: relative;
  overflow: hidden;
  transition: background 0.38s cubic-bezier(.4,1.4,.6,1), color 0.18s, transform 0.22s, box-shadow 0.22s;
  outline: none;
}
/* Efeito de brilho*/
.side-panel-actions button::after,
.side-panel-actions a::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.38) 50%, rgba(255,255,255,0.12) 100%);
  transform: skewX(-22deg);
  transition: left 0.6s cubic-bezier(.4,1.4,.6,1);
  pointer-events: none;
}
.side-panel-actions button:hover::after,
.side-panel-actions a:hover::after,
 .side-panel-actions button:focus::after,
 .side-panel-actions a:focus::after {
  left: 110%;
}
.side-panel-actions button:hover,
 .side-panel-actions a:hover,
 .side-panel-actions button:focus,
 .side-panel-actions a:focus {
  background: linear-gradient(90deg, #e7d7a7 0%, #c9a74a 100%);
  color: #1a2238;
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 10px 28px 0 rgba(201,167,74,0.22), 0 2px 0 #e7d7a7;
  outline: 2px solid #1a223822;
}
.side-panel-simulador #btn-simular {
  background: linear-gradient(90deg, #e7d7a7 0%, #c9a74a 100%);
  color: #1a2238;
  border: none;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.08rem;
  padding: 0.65rem 0;
  width: 100%;
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 10px 0 rgba(201,167,74,0.13), 0 1px 0 #e7d7a7;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.38s cubic-bezier(.4,1.4,.6,1), color 0.18s, transform 0.22s, box-shadow 0.22s;
}
.side-panel-simulador #btn-simular::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 70%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.44) 50%, rgba(255,255,255,0.18) 100%);
  transform: skewX(-18deg);
  transition: left 0.7s cubic-bezier(.4,1.4,.6,1);
  pointer-events: none;
}
.side-panel-simulador #btn-simular:hover::after,
.side-panel-simulador #btn-simular:focus::after {
  left: 120%;
}
.side-panel-simulador #btn-simular:hover,
.side-panel-simulador #btn-simular:focus {
  background: linear-gradient(90deg, #c9a74a 70%, #e7d7a7 100%);
  color: #fff;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 28px 0 rgba(201,167,74,0.22), 0 2px 0 #e7d7a7;
  outline: 2px solid #1a223822;
}
.side-panel-simulador {
  background: #f7f9fa;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 1px 6px #001f3f11;
}
.side-panel-simulador label {
  font-weight: 600;
  color: #003366;
  margin-bottom: 0.2rem;
  display: block;
}
.side-panel-simulador input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.8px solid #e0e0e0;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  font-size: 1.08rem;
  font-family: inherit;
  background: #fafdff;
  color: #222;
  box-shadow: 0 1.5px 8px #001f3f0a;
  transition: border 0.22s, box-shadow 0.22s;
}
.side-panel-simulador input:focus {
  border: 1.8px solid #ffdd57;
  outline: none;
  box-shadow: 0 2.5px 16px #ffdd5733;
}
.side-panel-simulador .simulador-resultado {
  font-weight: 700;
  color: #003366;
  margin-top: 0.5rem;
  font-size: 1.08rem;
}
@media (max-width: 700px) {
  .side-panel {
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    padding: 0;
  }
  .side-panel-content {
    padding: 1rem;
  }
}
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  background: #fefefe;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 400px) {
  html { font-size: 15px; }
}
@media (max-width: 330px) {
  html { font-size: 14px; }
}

a {
  color: #0055b8;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover,
a:focus {
  color: #002d72;
  outline: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: #003366;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
}

.logo-container {
  display: flex;
  align-items: center;
}
.logo {
  width: 150px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.logo:hover,
.logo:focus {
  transform: scale(1.05);
  outline: none;
}

nav {
  position: relative;
}
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: #f3f1ea;
  cursor: pointer;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s ease;
  color: #f3f1ea;
}
.nav-links li a:hover,
.nav-links li a:focus {
  border-color: #ffdd57;
  outline: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: #003366;
    flex-direction: column;
    width: 180px;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
  }
  .nav-links.active {
    max-height: 300px;
  }
  .nav-links li {
    text-align: right;
    padding: 0.5rem 1.5rem;
  }
  .nav-links li a {
    padding: 0.5rem 0;
    display: block;
  }
}

main {
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.section-home {
  text-align: center;
  margin-bottom: 4rem;
}
.section-home h2 {
  font-size: 2.8rem;
  color: #003366;
  font-weight: 900;
  margin-bottom: 1rem;
}
.section-home h2 span {
  color: #ffdd57;
}
.section-home p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #555;
}
.section-home img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
}
.section-home img:hover,
.section-home img:focus {
  transform: scale(1.03);
  outline: none;
}

.filtro-marcas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.filtro-marcas button {
  background: transparent;
  border: 2px solid #003366;
  color: #003366;
  font-weight: 700;
  padding: 0.4rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.filtro-marcas button:hover,
.filtro-marcas button:focus {
  background: #ffdd57;
  border-color: #ffdd57;
  color: #003366;
  outline: none;
}
.filtro-marcas button.active {
  background: #ffdd57;
  border-color: #ffdd57;
  color: #003366;
}

.grid-carros {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  justify-items: center; /* centraliza os cards quando houver poucas colunas */
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card-carro {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.3s cubic-bezier(.4,1.4,.6,1);
  animation: fadeInUp 0.7s cubic-bezier(.4,1.4,.6,1);
  min-height: 420px; /* altura mínima para alinhar os cards */
  width: 100%;
  max-width: 360px; /* evita estourar 100% da linha com poucos itens */
}
.card-carro:hover,
.card-carro:focus-within {
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.22);
  outline: none;
  transform: translateY(-6px) scale(1.03);
  transition: box-shadow 0.3s, transform 0.3s;
}
.card-img { /* wrapper para reservar espaço fixo e evitar layout shift */
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-bottom: 3px solid #ffdd57;
}
.card-carro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(.4,1.4,.6,1), filter 0.4s;
  filter: grayscale(10%) brightness(0.98);
  display: block;
}
.card-carro img:hover,
.card-carro img:focus {
  transform: scale(1.08) rotate(-1deg);
  filter: grayscale(0%) brightness(1.05) drop-shadow(0 2px 8px #ffdd5733);
  outline: none;
}
.card-conteudo {
  padding: 1rem 1.2rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.marca {
  font-weight: 700;
  font-size: 0.85rem;
  color: #003366;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.modelo {
  font-weight: 900;
  font-size: 1.3rem;
  color: #222;
  margin: 0 0 0.4rem;
}
.ano-preco {
  font-size: 0.9rem;
  font-weight: 600;
  color: #777;
  margin-bottom: 0.8rem;
}
.descricao {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.1rem;
  flex-grow: 1;
  max-height: 3.2em; /* ~2 linhas */
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Fixar altura do bloco de informações para consistência visual */
.card-conteudo .modelo { min-height: 28px; }
.card-conteudo .ano-preco { min-height: 22px; }
.card-conteudo .marca { min-height: 18px; }

/* Miniaturas (público e filtros) com tamanho consistente */
.admin-thumb,
.gallery-thumbnail,
.grid-carros .card-carro .miniatura {
  width: 120px;
  height: 80px;
  object-fit: cover;
}
.botao-comprar {
  background: linear-gradient(90deg, #e7d7a7 0%, #c9a74a 100%);
  color: #1a2238;
  border: none;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.08rem;
  padding: 0.65rem 0;
  width: 100%;
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 10px 0 rgba(201,167,74,0.13), 0 1px 0 #e7d7a7;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.38s cubic-bezier(.4,1.4,.6,1), color 0.18s, transform 0.22s, box-shadow 0.22s;
}
.botao-comprar::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 70%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.44) 50%, rgba(255,255,255,0.18) 100%);
  transform: skewX(-18deg);
  transition: left 0.7s cubic-bezier(.4,1.4,.6,1);
  pointer-events: none;
  }
  .botao-comprar:hover::after,
  .botao-comprar:focus::after {
    left: 110%;
}
 .botao-comprar:hover,
 .botao-comprar:focus {
  background: linear-gradient(90deg, #c9a74a 70%, #e7d7a7 100%);
  color: #fff;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 28px 0 rgba(201,167,74,0.22), 0 2px 0 #e7d7a7;
  outline: 2px solid #1a223822;
}
/* Fade in para seções principais */
.section-home, .section-vendidos, .section-sobre, .section-atendimento {
  animation: fadeInUp 0.8s cubic-bezier(.4,1.4,.6,1);
}
/* Parallax para página Sobre Nós */
.parallax-sobre {
  min-height: 520px;
  background-image: url('https://wallpapers.com/images/hd/vintage-car-pictures-94c8z6bogh80ewru.jpg');
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
}
.parallax-sobre::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, #003366e6 0%, #001f3fcc 80%, #00336699 100%);
  z-index: 1;
  opacity: 0.93;
}
.parallax-sobre .parallax-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 4.5rem 1.5rem 3.5rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.parallax-sobre h2 {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  color: #ffdd57;
  text-shadow: 0 2px 16px #001f3f99, 0 1px 0 #2228;
}
.parallax-sobre p {
  font-size: 1.35rem;
  max-width: 800px;
  margin: 0 auto 1.2rem auto;
  color: #fffde7;
  text-shadow: 0 1px 8px #001f3f77;
  line-height: 1.7;
}

/* Parallax secundário (citação) */
.parallax-sobre-2 {
  min-height: 380px;
  background-image: url('https://images.unsplash.com/photo-1517673400267-0251440c35f2?q=80&w=1600&auto=format&fit=crop');
  background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover;
  position: relative; display:flex; align-items:center; justify-content:center; overflow:hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.parallax-sobre-2::after { content:''; position:absolute; inset:0; background:linear-gradient(120deg,#001f3fcc 0%,#00336699 100%); z-index:1; opacity:.9; }
.parallax-sobre-2 .parallax-content { position:relative; z-index:2; color:#fff; text-align:center; padding:3rem 1.2rem; max-width:900px; }
.parallax-sobre-2 h2 { font-size:2rem; font-weight:900; color:#ffdd57; margin-bottom:.6rem; }

/* CTA Parallax */
.parallax-sobre-cta {
  min-height: 360px;
  background-image: url('https://images.unsplash.com/photo-1494976388531-d1058494cdd8?q=80&w=1600&auto=format&fit=crop');
  background-attachment: fixed; background-position:center; background-size:cover; background-repeat:no-repeat;
  position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.parallax-sobre-cta::after { content:''; position:absolute; inset:0; background:linear-gradient(120deg,#001f3fcc 0%,#00336699 100%); z-index:1; opacity:.9; }
.parallax-sobre-cta .parallax-content { position:relative; z-index:2; text-align:center; color:#fff; padding:3rem 1.2rem; }
.parallax-sobre-cta .btn-cta { display:inline-block; margin-top:1rem; background:linear-gradient(90deg,#e7d7a7 0%, #c9a74a 100%); color:#1a2238; font-weight:800; border-radius:14px; padding:.6rem 1.2rem; box-shadow:0 2px 10px rgba(201,167,74,.18); }

/* Métricas */
.sobre-metricas { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:14px; max-width:900px; margin: 2.5rem auto; padding: 0 1rem; }
.sobre-metricas .metric { background:#f8fafc; border:1px solid #e5e7eb; border-radius:14px; padding:1.1rem; text-align:center; box-shadow:0 1px 2px rgba(16,24,40,.04); }
.sobre-metricas .metric .num { display:block; font-size:1.8rem; font-weight:900; color:#003366; }
.sobre-metricas .metric .lbl { display:block; color:#475569; margin-top:.25rem; font-weight:700; }

/* Cards de valores/diferenciais */
.sobre-cards { max-width:1000px; margin: 1rem auto 2rem; padding:0 1rem; display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:14px; }
.sobre-cards .card { background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:1rem; box-shadow:0 1px 2px rgba(16,24,40,.04); text-align:left; }
.sobre-cards .card h3 { color:#003366; font-weight:900; margin-bottom:.4rem; }
.sobre-cards .card p { color:#475569; line-height:1.6; }

/* Timeline */
.sobre-timeline { max-width:900px; margin: 2.5rem auto 3rem; padding: 0 1rem; text-align:center; }
.sobre-timeline h2 { color:#003366; font-weight:900; margin-bottom:1rem; }
.timeline { list-style:none; padding:0; margin:0; text-align:left; border-left:3px solid #ffdd57; padding-left:1rem; }
.timeline li { padding:.7rem 0 .7rem .2rem; color:#334155; position:relative; }
.timeline li::before { content:''; position:absolute; left:-9px; top:1rem; width:12px; height:12px; border-radius:50%; background:#ffdd57; box-shadow:0 0 0 4px #fff; }
.timeline .ano { font-weight:900; color:#003366; margin-right:.5rem; }

@media (max-width: 900px){
  .sobre-metricas { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sobre-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px){
  .sobre-metricas, .sobre-cards { grid-template-columns: 1fr; }
}

.section-vendidos {
  margin: 4rem 0;
}
.section-vendidos h2 {
  font-size: 2rem;
  color: #003366;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
}
.lista-vendidos {
  max-width: 600px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  font-weight: 600;
  color: #444;
  font-size: 1.1rem;
  border-left: 5px solid #ffdd57;
  padding-left: 1rem;
}
.lista-vendidos li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
}

.section-sobre {
  max-width: 700px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
  color: #444;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
}
.section-sobre h2 {
  font-size: 2.2rem;
  color: #003366;
  margin-bottom: 1rem;
  font-weight: 900;
}

.section-atendimento {
  max-width: 700px;
  margin: 0 auto 5rem;
  padding: 0 1rem;
  color: #222;
}
.section-atendimento h2 {
  font-size: 2.2rem;
  color: #003366;
  margin-bottom: 1rem;
  font-weight: 900;
  text-align: center;
}
.section-atendimento p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #555;
}
form#form-contato {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
form label {
  font-weight: 700;
  font-size: 1rem;
  color: #003366;
}
form input,
form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid #ccc;
  border-radius: 10px;
  resize: vertical;
  transition: border-color 0.3s ease;
}
form input:focus,
form textarea:focus {
  border-color: #ffdd57;
  outline: none;
}
form button[type="submit"] {
  background: linear-gradient(90deg, #e7d7a7 0%, #c9a74a 100%);
  color: #1a2238;
  border: none;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.08rem;
  padding: 0.65rem 0;
  width: 100%;
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 10px 0 rgba(201,167,74,0.13), 0 1px 0 #e7d7a7;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.38s cubic-bezier(.4,1.4,.6,1), color 0.18s, transform 0.22s, box-shadow 0.22s;
}
form button[type="submit"]::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 70%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.44) 50%, rgba(255,255,255,0.18) 100%);
  transform: skewX(-18deg);
  transition: left 0.7s cubic-bezier(.4,1.4,.6,1);
  pointer-events: none;
}
form button[type="submit"]:hover::after,
form button[type="submit"]:focus::after {
  left: 110%;
}
form button[type="submit"]:hover,
form button[type="submit"]:focus {
  background: linear-gradient(90deg, #c9a74a 70%, #e7d7a7 100%);
  color: #fff;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 28px 0 rgba(201,167,74,0.22), 0 2px 0 #e7d7a7;
  outline: 2px solid #1a223822;
}
#feedback {
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  min-height: 1.2rem;
  color: #004400;
  text-align: center;
}

footer {
  background: #001f3f;
  padding: 1.5rem 0;
  text-align: center;
  color: #bbb;
  border-top: 4px solid #ffdd57;
}
footer .redes-sociais {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin-bottom: 1rem;
}
footer .redes-sociais a svg {
  width: 26px;
  height: 26px;
  fill: #ffdd57;
  transition: fill 0.3s ease;
}
footer .redes-sociais a:hover svg,
footer .redes-sociais a:focus svg {
  fill: #fff;
  outline: none;
}
footer p {
  font-size: 0.9rem;
}

button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid #ffdd57;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .section-home h2 {
    font-size: 2rem;
  }
  .section-vendidos,
  .section-sobre,
  .section-atendimento {
    padding: 0 0.8rem;
  }
  .filtro-marcas {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
}
#produtos-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: rgba(240, 240, 240, 0.8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#produtos-table th, #produtos-table td {
  padding: 0.85rem 1rem;
  text-align: left;
}
#produtos-table th {
  background: rgba(200, 200, 200, 0.8);
  color: #333;
  font-weight: 700;
  font-size: 1rem;
}
#produtos-table tr {
  border-bottom: 1px solid rgba(220, 220, 220, 0.8);
}
#produtos-table tr:last-child {
  border-bottom: none;
}
#produtos-table td {
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  font-size: 0.95rem;
}
/* Adicionando classes para substituir estilos inline em gallery.js */
.gallery-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-main-img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0002;
  cursor: zoom-in;
}

.gallery-thumbnails {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.gallery-thumbnail {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

.gallery-thumbnail.active {
  border: 2px solid #ffb300;
}
.footer-center {
    text-align: center;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-link {
    color: #fff;
    margin: 0 0.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #ffdd57;
}
.contact-form {
    max-width: 400px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-feedback {
    margin-top: 1rem;
}

.feedback-success {
    color: green;
}

/* ====== Mobile enhancements (drawer + panel) ====== */
@media (max-width: 768px) {
  /* Botão hamburger com área de toque melhor */
  .menu-toggle { display: block; line-height: 1; padding: .25rem; border-radius: 8px; }
  /* Drawer lateral para navegação */
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh; width: 78vw; max-width: 340px;
    background: #0b2a55;
    flex-direction: column;
    padding: 1rem 1rem 2rem 1.2rem;
    gap: .25rem;
    box-shadow: -10px 0 28px rgba(0,0,0,.28);
    border-left: 1px solid #1d3f70;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,1.4,.6,1);
    z-index: 1600;
  }
  .nav-links.active { transform: translateX(0); box-shadow: -12px 0 40px rgba(0,0,0,.34); }
  .nav-links.active::before { content:''; position:absolute; left:-2px; top:0; bottom:0; width:2px; background: linear-gradient(#e7d7a7,#c9a74a); animation: pulseEdge 1.6s ease-out 1; }
  @keyframes pulseEdge { 0%{transform: scaleY(.2); opacity:.6;} 80%{transform: scaleY(1); opacity:.2;} 100%{opacity:0;} }
  .nav-links li { text-align: left; padding: .25rem .25rem; }
  .nav-links li a { display: block; padding: .8rem .5rem; border-radius: 8px; }
  .nav-links li a:hover, .nav-links li a:focus { background: #0f356a; border-color: transparent; }
  /* Overlay do drawer */
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 1500; }
  .nav-overlay.active { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}

/* Side panel mobile tweaks */
@media (max-width: 700px) {
  .side-panel-header { padding: .9rem 1rem; }
  .side-panel-close { font-size: 2.2rem; }
  .sp-arrow { width: 48px; height: 48px; }
  .side-panel-actions button, .side-panel-actions a { min-height: 48px; }
}

/* Grid em telas muito estreitas */
@media (max-width: 380px) {
  .grid-carros { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
  .card-img { height: 150px; }
}