/* styles.css - custom styles that do NOT override Bootstrap core classes */
:root {
  --primary: #0d6efd;
  --primary-dark: #0b5ed7;
  --muted: #6c757d;
  --bg-soft: #f5f7fb;
  --card-border: #e9ecef;
  --text: #111827;
  --shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: #fff;
  color: var(--text);
  line-height: 1.6;
}

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

iframe { width: 100%; }

.company-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px;
  backdrop-filter: blur(4px);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  z-index: 1030;
}

.whatsapp-float i {
  font-size: 1.8rem;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.04);
}

.hero {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), linear-gradient(135deg, #1f2937 0%, #0f172a 100%);
  min-height: 44vh;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 1.9rem;
  color: #fff;
}

.hero p.lead {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
}

.hero-tag,
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dfe9ff;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-weight: 700;
}

.service-card,
.vehicle-card,
.contact-card,
.info-box {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.service-card {
  padding: 20px 16px;
}

.service-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-icon {
  font-size: 1.8rem;
}

.vehicle-card .card-img-top {
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--card-border);
}

.vehicle-price {
  display: inline-block;
  background: rgba(13, 110, 253, 0.1);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.contact-card,
.info-box {
  padding: 24px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.contact-card i {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, 0.08);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact-form .form-control {
  border-radius: 10px;
  border: 1px solid #d9e1ee;
  padding: 0.75rem 0.9rem;
}

.contact-form .form-control:focus {
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.car-card { display: flex; gap: 12px; align-items: center; }
.car-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; }
.car-meta { font-size: 0.95rem; color: var(--muted); }

.car-page {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 24%, #ffffff 100%);
  color: var(--text);
}

.car-detail {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.car-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: #edf2ff;
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.car-detail__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

.car-detail__gallery {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.car-gallery {
  display: grid;
  gap: 0.75rem;
}

.car-gallery__main {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef2ff;
}

.car-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 0.5rem;
}

.car-gallery__thumbs img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.75;
  transition: all 0.2s ease;
}

.car-gallery__thumbs img.is-active {
  border-color: var(--primary);
  opacity: 1;
}

.car-detail__info {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.car-detail__info h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
}

.car-detail__price {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.1rem;
}

.car-detail__summary {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.detail-section {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.4rem 1.25rem;
  margin-bottom: 1.25rem;
}

.detail-section h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.detail-section p {
  margin: 0;
  color: #334155;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.spec-item {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: #f8fafc;
  padding: 0.9rem 0.95rem;
}

.spec-item span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.spec-item strong {
  font-size: 1rem;
  color: var(--text);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero { min-height: 60vh; }

  .car-detail__layout {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .detail-section {
    padding: 1.6rem 1.5rem;
  }
}
