* {
  box-sizing: border-box;
}

body {
  direction: rtl;
  text-align: right;
  font-family: 'Segoe UI', 'Heebo', 'Poppins', sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  color: #333;
}
html, body {
  overflow-x: hidden;
  width: 100%;
}

.container {
  padding: 100px 1.5rem 1.5rem;
  max-width: 800px;
  margin: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* === Navbar Modern RTL === */
/* الوضع العادي (حاسوب) */
/* === Navbar Modern RTL === */
/* الوضع العادي (حاسوب) */
.navbar {
  background-color: #000;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.navbar .logo a {
  font-size: 22px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.navbar .menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

.navbar .menu a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.navbar .menu a:hover {
  background-color: #f57c00;
  color: black;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

.logo-image img {
  height: 40px;
  width: auto;
}

.logo-image {
  display: flex;
  align-items: center;
}

/* هاتف */
@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    padding: 10px 15px;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar .logo a {
    font-size: 20px;
    text-align: center;
  }

  .logo-image {
    position: relative;
    left: 0;
    margin-left: auto;
  }

  .logo-image img {
    height: 50px;
  }

  .hamburger {
    display: flex;
    margin-left: 10px;
  }

.navbar .menu {
  position: absolute;
  top: 60px;
  right: 0;
  width: 100%;
  flex-direction: column;
  background-color: #111;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}

.navbar .menu.active {
  max-height: 500px; /* enough height for all items */
}

.navbar .menu a {
  padding: 12px 20px;
  width: 100%;
  border-bottom: 1px solid #333;
}
}


.car-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #222;
}

.car-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.car-info {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}
/* === Footer === */
.footer {
  background-color: #000;
  color: #ccc;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  font-size: 14px;
  border-top: 2px solid #f57c00;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.5);
}

.footer p {
  margin: 0;
  color: #aaa;
}

.footer p span {
  color: #f57c00;
  font-weight: bold;
}
footer a {
  color: #eee;           /* لون برتقالي موحد */
  text-decoration: none;    /* إزالة الخط */
  transition: color 0.3s;
  font-weight: 500;
}

footer a:hover {
  color: #ff9800;           /* لون أفتح عند التحويم */
  text-decoration: underline;
}
/* === Contact Form Styling === */
.contact-form-container {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  max-width: 350px;
  margin: 0 auto;
  text-align: right;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.contact-form-container h4 {
  color: #f57c00;
  margin-bottom: 20px;
  font-size: 22px;
  text-align: center;
}

.contact-form-container input,
.contact-form-container textarea {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 12px;
  border: none;
  border-radius: 20px;
  font-size: 15px;
  background-color: #333;
  color: white;
}

.contact-form-container textarea {
  border-radius: 10px;
  resize: none;
}

.contact-form-container button {
  background-color: #f57c00;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 20px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.contact-form-container button:hover {
  background-color: #ff9800;
}

#formResponse {
  margin-top: 12px;
  font-size: 15px;
  text-align: center;
}

#formResponse.success {
  color: #4CAF50;
}

#formResponse.error {
  color: #ff4444;
}

@media (max-width: 480px) {
  .contact-form-container {
    padding: 20px;
    max-width: 90%;
  }
}
/* Responsive Design Enhancements */
@media (max-width: 768px) {

  .main-heading {
    font-size: 1.5rem;
  }

  .car-list {
    grid-template-columns: 1fr; /* Show 1 car per row on tablet */
  }

  .car-info h2 {
    font-size: 1.1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.3rem;
    padding-left: 0.5rem;
  }

  .nav-links {
    font-size: 0.95rem;
  }

  .main-heading {
    font-size: 1.3rem;
    margin-top: 1rem;
  }

  .car-info h2 {
    font-size: 1rem;
  }

  .car-item {
    padding: 0.8rem;
  }

    .container {
        padding-top: 120px;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }

  .car-title {
    font-size: 1.4rem;
  }

  .car-img {
    height: auto;
    max-height: 300px;
  }

  .car-info {
    font-size: 0.95rem;
  }

  .back-link {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
  }
}

