/* style.css */
body{
}
/* Navbar animation smoothness (optional) */
nav.navbar {
  transition: all 0.3s ease-in-out;
}
.mainhero{
    margin-top: 150px;
}
@font-face {
  font-family: 'Canaro Light';
  src: url('fonts/Canaro-Light.woff2') format('woff2'),
       url('fonts/Canaro-Light.woff') format('woff'),
       url('fonts/Canaro-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

h5 {
  font-family: 'Canaro Light', sans-serif;
}


/* Keyframe Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive contact text inside navbar */
@media (max-width: 992px) {
  nav .contact-info {
    display: none;
  }
}





footer {
  border-top: 2px solid #ccc; /* لون وسمك الحد */
}

footer a:hover {
  text-decoration: underline;
}
footer i {
  font-size: 1.2rem;
}

@media (max-width: 767.98px) {
  footer {
    text-align: center;
  }

  footer .row > div {
    margin-bottom: 15px;
  }
}


.hero-carousel {
  margin-top: 100px;
  height: 40vh;
  background: url('../../img/bg.jpg') no-repeat center bottom / cover;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* يضع العناصر بأسفل الخلفية */
  padding-bottom: 2rem; /* مثل py-4 */
  position: relative;
  overflow: hidden;
}


.carousel-wrapper {
  background: none; /* احذف الخلفية من هنا */
  position: relative;
  width: 100%;
  height: auto;
  margin: auto;
}

.car-item {
  position: absolute;
  top:150%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  user-select: none;
  transform-style: preserve-3d;
  transform-origin: center center;
  opacity: 0;
  z-index: 1;
}


  .car-item img {
    width: auto;
    max-height: 280px;
    display: block;
    border-radius: 15px;
    pointer-events: none;
  }

  .discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff3b3b;
    color: white;
    padding: 5px 8px;
    font-weight: bold;
    border-radius: 5px;
    user-select: none;
    pointer-events: none;
  }

  .carousel-btn {
    position: absolute;
    top: 80%;
    transform: translateY(-50%);
    font-size: 40px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s ease;
  }

  .carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
  }

  .carousel-btn.left {
    left: 10px;
  }

  .carousel-btn.right {
    right: 10px;
  }

@media (max-width: 768px) {
	
.hero-carousel{
	height:250px;
}
  .carousel-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 20px;
  }

  .car-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    position: relative;
    top: auto;
    left: auto;
    transform: none !important;
    opacity: 1 !important;
    z-index: 1;
    max-width: 80%;
	   opacity: 1 !important;  /* تأكد إنها شفافة تمامًا */
    filter: none !important; /* تأكد ما في فلتر يغمق */
    background: transparent !important; /* لو فيه خلفية */
    box-shadow: none !important; /* لو فيه ظل */
  }

  .car-item img {
    width: 100%;
    max-height: 220px;
    display: block;
    border-radius: 15px;
	 filter: none !important;
    opacity: 1 !important;
  }

  .carousel-btn {
    display: none;
  }
}
.offer-image {
  position: absolute;
  top: 0;
  left: 10px;
  width: 90px;
  text-align: center;
}

.offer-image img {
  width: 90%;
}

.offer-image span {
  position: absolute;
  top: 45%;
  left: 45%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

/* تنسيق خاص للموبايل */
@media (max-width: 576px) {
  .offer-image {
    width: 75px;
    left: 0;
	top:-10%;
  }

  .offer-image img {
    width: 70%;
  }

  .offer-image span {
    font-size: 10px;
	  top: 45%;
  left: 35%;
  }
}


.car-name2 {
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
  display: none; /* نخفيه افتراضيًا */
}

@media (max-width: 576px) {
  .car-name2 {
    display: block;
    font-size: 14px;
    text-align: center;
  }
}



.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  font-size: 28px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1ebc57;
}



.car-card {
  background: #fff;
  transition: box-shadow 0.3s ease;
  padding:25px;
  height: 400px;     /* يطول الطول */
  margin: 0 auto;    /* لتوسيط الكرت داخل العمود */
}

.car-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.price-tag {
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  background-color: transparent; /* يجعل الخلفية شفافة */
  box-shadow: none;              /* تأكد من إزالة أي ظل */
  border: none;                  /* إن وُجد إطار */
}

.car-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  max-height: 160px;
}
.car-card img {
  margin-top: 30px;
}

.car-name {
  font-weight: 600;
  font-size: 1.1rem;
}
.car-description {
	margin-top:15px;
  font-size: 1.1rem;
}
.spec-item i {

  font-size: 1.3rem;
  color: #FFAE00; /* أيقونات باللون الأخضر */
}
