:root {
  --azul-tech: #3F8EFC;
  --azul-tech-soft: #e5f0ff;
  --bg-body: #f4f7fb;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --radius-xl: 26px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #eef4ff 0, #f4f7fb 45%, #e5eaf5 100%);
}

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

a {
  color: inherit;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.98), rgba(248, 250, 252, 0.86));
  border-bottom: 1px solid rgba(148, 163, 184, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
}
.logo-mark {
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--azul-tech), #60a5fa);
  color: #0b1120;
  font-weight: 700;
}
.logo-text {
  font-weight: 500;
  color: #1e293b;
}

.main-nav {
  display: flex;
  gap: 10px;
  font-size: .9rem;
}
.main-nav a {
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: #475569;
}
.main-nav a:hover {
  background: rgba(148, 163, 184, .16);
}

.header-cta {
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--azul-tech), #60a5fa);
  color: #0b1120;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(59, 130, 246, .4);
}

/* Layout */
.site-main {
  padding-bottom: 56px;
}

/* Hero */
.hero {
  padding: 32px 0 18px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.hero-title {
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 8px;
}
.hero-subtitle {
  font-size: .98rem;
  color: var(--text-muted);
  max-width: 430px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.hero-badge {
  font-size: .78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .03);
  border: 1px solid rgba(148, 163, 184, .4);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, var(--azul-tech), #60a5fa);
  color: #0b1120;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(59, 130, 246, .38);
}
.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .7);
  background: rgba(255, 255, 255, .7);
  color: #0f172a;
  font-size: .86rem;
  text-decoration: none;
}

.hero-card {
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, #e5f0ff 0, #f8fafc 45%, #e2e8f0 100%);
  border: 1px solid rgba(148, 163, 184, .5);
  padding: 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
  font-size: .84rem;
}

/* Sections */
.section {
  padding: 20px 0;
}
.section-header h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}
.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: .9rem;
}

/* Cards de veículos */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.car-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, .5);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
}
.car-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, .18);
}
.car-card-img-wrap {
  position: relative;
  background: linear-gradient(135deg, #020617, #1f2937);
  min-height: 160px;
}
.car-card-img-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.car-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.car-card-title {
  font-size: .96rem;
  font-weight: 600;
  margin: 0;
}
.car-card-subtitle {
  font-size: .8rem;
  color: var(--text-muted);
}
.car-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: .78rem;
  color: var(--text-muted);
}
.car-card-meta span::before {
  content: "• ";
}
.car-card-meta span:first-child::before {
  content: "";
}
.car-card-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: .82rem;
}
.car-card-price {
  font-weight: 700;
}
.card-link {
  font-size: .8rem;
  color: var(--azul-tech);
  text-decoration: none;
}
.card-link:hover {
  text-decoration: underline;
}

.car-card-whatsapp {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #22c55e;
  color: #022c22;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}
.car-card-whatsapp:hover {
  filter: brightness(1.05);
}

/* Página veículo */
.vehicle-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
}
.vehicle-gallery-main {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .28);
  background: #020617;
}
.vehicle-gallery-main img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.vehicle-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
}
.vehicle-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: .8;
  border: 2px solid transparent;
}
.vehicle-thumbs img.active,
.vehicle-thumbs img:hover {
  opacity: 1;
  border-color: var(--azul-tech);
}

.vehicle-info h1 {
  margin-top: 0;
  font-size: 1.4rem;
}
.vehicle-price {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 6px;
}
.vehicle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.vehicle-description {
  margin-top: 12px;
  font-size: .9rem;
}
.btn-whatsapp-detalhe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #22c55e;
  color: #022c22;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  margin-top: 10px;
}
.btn-whatsapp-detalhe:hover {
  filter: brightness(1.05);
}

/* Map / tour */
.section-map, .section-tour {
  padding: 40px 0;
}
.map-wrapper,
.tour-wrapper {
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .24);
}
.map-wrapper iframe,
.tour-wrapper iframe {
  border: 0;
  width: 100%;
  height: 360px;
}

/* Footer */
.site-footer {
  background: #020617;
  color: #e5e7eb;
  padding: 30px 0 18px;
  margin-top: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  font-size: .86rem;
}
.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: .8rem;
}
.footer-social a {
  text-decoration: none;
  color: #bfdbfe;
}
.footer-social a:hover {
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, .38);
  margin-top: 18px;
  padding-top: 10px;
  font-size: .78rem;
  text-align: center;
  color: #9ca3af;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #22c55e;
  color: #022c22;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  box-shadow: 0 12px 35px rgba(22,163,74,.55);
}
.whatsapp-float:hover {
  filter: brightness(1.05);
}

/* Admin base (compartilhado com veiculos.php) */
.admin-shell {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 230px;
  padding: 18px 16px;
  background: rgba(15, 23, 42, 0.98);
  border-right: 1px solid rgba(30, 64, 175, 0.6);
  color: #e5e7eb;
}
.admin-main {
  flex: 1;
  padding: 18px;
}
.admin-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
}

/* Responsivo */
@media (max-width: 900px) {
  .hero-grid,
  .vehicle-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-header {
    position: static;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .car-card-img-wrap img {
    height: 180px;
  }
}
