.hero {
  position: relative;
  background-image: url("../assets/images/fon1.png");
  background-color: var(--gray);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 20px 80px; /* yuqoridagi 120px + header offset 70px = 190px */
  text-align: center;
  color: white;
  overflow: hidden;
}

.wrapper {
  width: 100%;
}

.section.container {
  margin-top: 120px; /* header balandligi + biroz spacing */
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero .wrapper {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-bold);
  font-size: 42px;
  margin-bottom: 20px;
}

.hero-subtext,
.hero-buttons {
  font-family: var(--font-regular);
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 1s forwards;
}

.hero-subtext {
  animation-delay: 0.3s;
  font-family: var(--font-medium);
  font-size: 20px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  animation-delay: 0.6s;
}

.btn-hero {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-test {
  background-color: var(--red);
  color: var(--white);
}
.btn-test:hover {
  background-color: darkred;
  transform: scale(1.05);
}

.btn-inventory {
  background-color: rgb(17, 17, 46);
  color: var(--white);
}
.btn-inventory:hover {
  background-color: #001f4d;
  transform: scale(1.05);
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero {
    padding: 100px 15px 60px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-subtext {
    font-size: 16px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

/* ==========================
   ABOUT US - HOME
========================== */
.about-home {
  padding: 80px 20px;
  background: #f8f9fb;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #0b1f3a; /* navy */
}

.about-text .subtitle {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
}

.about-text p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat {
  background: #ffffff;
  padding: 30px 20px;
  text-align: center;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat h3 {
  font-size: 28px;
  color: #c1121f; /* red accent */
  margin-bottom: 6px;
}

.stat span {
  font-size: 14px;
  color: #666;
}

/* Mobile */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-text h2 {
    font-size: 28px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* Services Section */
.services {
  padding: 60px 20px;
  text-align: center; /* section title va description markazga */
}

.services .section-title {
  font-family: var(--font-bold);
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--navy);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center; /* har bir card markazga */
  align-items: stretch;
}

/* Service Card */
.service-card {
  background-color: var(--gray);
  border-radius: 12px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* icon va text markazga */
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-semibold);
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--navy);
}

.service-card p {
  font-family: var(--font-regular);
  font-size: 16px;
  color: var(--navy);
}

.contact {
  padding: 60px 20px;
  text-align: center; /* section title va paragraph markazga */
}
.contact .section-title {
  font-family: var(--font-bold);
  font-size: 36px;
  margin-bottom: 15px;
  color: var(--navy);
}
.contact p {
  font-family: var(--font-medium);
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--navy);
} /* Contact Form */
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto; /* markazga olish */
  align-items: center; /* inputs va button markazga */
  text-align: center;
}
#contactForm input,
#contactForm textarea {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: var(--font-regular);
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  resize: vertical;
  text-align: center; /* placeholder va yozuv markazga */
  box-sizing: border-box;
}
#contactForm button {
  align-self: center; /* button markazga */
  padding: 12px 30px;
  border-radius: 8px;
  background-color: var(--red);
  color: var(--white);
  font-family: var(--font-bold);
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: background 0.3s, transform 0.3s;
}
/* Responsive tweaks for contact form */
@media (max-width: 480px) {
  .contact {
    padding: 40px 15px; /* section padding kamaytirildi */
  }

  .contact .section-title {
    font-size: 24px; /* title kichikroq */
  }

  .contact p {
    font-size: 14px; /* description kichikroq */
  }

  .contact-form {
    gap: 10px;
  }

  #contactForm input,
  #contactForm textarea {
    width: 100%; /* full width */
    font-size: 14px;
    padding: 10px;
  }

  #contactForm button {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }

  #formStatus {
    font-size: 14px;
  }
}

/* Hover effect */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .services .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .services-grid {
    gap: 20px;
  }

  .service-card h3 {
    font-size: 20px;
  }

  .service-card p {
    font-size: 14px;
  }
}

/* ==========================
   LEGAL DISCLAIMER
========================== */
.legal-disclaimer {
  padding: 80px 20px;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: center;
}

.legal-disclaimer .container {
  max-width: 1100px;
  width: 100%;
}

/* Title */
.legal-disclaimer h2 {
  font-size: 34px;
  margin-bottom: 40px;
  color: #0b1f3a;
  text-align: center;
}

/* Section headings */
.legal-disclaimer h3 {
  font-size: 20px;
  margin: 40px auto 12px auto;
  color: #111;
  max-width: 900px;
  text-align: left; /* professional look */
}

/* Text */
.legal-disclaimer p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  max-width: 900px;
  margin: 0 auto 18px auto;
}

.site-footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 50px 20px 30px;
  text-align: center;
  font-family: var(--font-regular);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.footer-logo .logo {
  font-family: var(--font-bold);
  font-size: 28px;
  color: var(--white);
  text-decoration: none;
}

.footer-logo .red-star {
  color: var(--red);
  font-size: 32px;
  vertical-align: middle;
}

.footer-info {
  text-align: center;
}

.footer-info p {
  margin: 6px 0;
  font-size: 16px;
  line-height: 1.5;
}

.footer-info a {
  color: var(--white);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  justify-content: center; /* icon va text markazga */
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-medium);
  transition: transform 0.3s;
  text-decoration: none;
}

.footer-social a img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s;
}

.footer-social a:hover {
  transform: scale(1.1);
}

.footer-copy {
  font-family: var(--font-regular);
  font-size: 14px;
  margin-top: 10px;
  color: #ccc;
}

.footer-map {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(10%) contrast(1.05);
}

.footer-map iframe {
  pointer-events: none;
}

.footer-map:hover iframe {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .footer-map {
    height: 220px;
  }

  .map-overlay {
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    text-align: center;
  }
}

.map-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(11, 28, 45, 0.95);
  color: #fff;
  padding: 16px 18px;
  border-radius: 12px;
  max-width: 260px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.map-overlay h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.map-overlay p {
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.map-overlay a {
  color: #ff2d2d;
  font-weight: 600;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-logo .logo {
    font-size: 24px;
  }

  .footer-info p,
  .footer-copy {
    font-size: 14px;
  }

  .footer-social a img {
    width: 24px;
    height: 24px;
  }
}

.car-details {
  display: flex;
  gap: 30px;
  margin: 150px auto 80px;
  flex-wrap: wrap;
  justify-content: center;
}

.car-images {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.car-images img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

.car-info {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.car-info h1 {
  font-family: var(--font-bold);
  font-size: 28px;
  color: var(--navy);
}

.car-info p,
.car-info li {
  font-family: var(--font-regular);
  font-size: 16px;
  color: var(--navy);
}

.car-info ul {
  list-style-type: disc;
  padding-left: 20px;
}

.car-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .car-details {
    flex-direction: column;
    gap: 20px;
  }
  .car-images img {
    max-height: 300px;
  }
}

/* --- MOBIL VERSIYA UCHUN TAYYOR YECHIM --- */
@media (max-width: 768px) {
  /* 1. Header'ni tartibga solamiz */
  header,
  .site-header {
    height: 70px !important;
    padding: 0 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--navy);
  }

  /* Logotip juda katta bo'lsa, uni moslaymiz */
  header .logo img,
  .site-header img {
    height: 35px !important;
    width: auto;
  }

  /* O'ng tomondagi Call/Sell va Burger masofasi */
  .header-right,
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px !important; /* Bir-biriga yopishib qolmasligi uchun */
  }

  /* 2. Hero Section - Paddingni headerga qarab to'g'rilash */
  .hero {
    padding: 130px 15px 60px !important; /* Header tagida qolib ketmasligi uchun */
  }

  .hero-title {
    font-size: 28px !important; /* 42px telefonda juda katta */
    margin-bottom: 15px;
  }

  /* 3. Hero Tugmalarini chiroyli qilish */
  .hero-buttons {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100%;
  }

  .btn-hero {
    width: 85% !important; /* Ekran bo'ylab 100% cho'zilmaydi */
    max-width: 300px; /* Juda katta bo'lib ketishini cheklaydi */
    padding: 14px 20px !important;
    font-size: 15px !important;
    text-align: center;
    margin: 0 auto;
  }

  /* 4. Contact Form tugmasi ham cho'zilib ketmasligi uchun */
  #contactForm button {
    width: 85% !important;
    max-width: 300px;
  }
}

/* Kichik telefonlar uchun (iPhone SE) */
@media (max-width: 400px) {
  .hero-title {
    font-size: 24px !important;
  }
  .btn-hero {
    width: 90% !important;
  }
}

.selected-car-preview {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 20px;
  text-align: center;
}

.selected-car-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 14px;
  display: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
