
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial;
}

.container{
max-width:1300px;
margin:auto;
width:100%;
padding:0 20px;
}
.container-body{
max-width:1300px;
margin:auto;
width:100%;
padding:0 00px;
}
/* TOP BAR */
.topbar{
background:black;
color:white;
font-size:14px;
}

.topbar .container{
display:flex;
justify-content:space-between;
align-items:center;
padding:8px 20px;
}

.topbar i{
color:red;
margin-right:6px;
}

.social i{
margin-left:12px;
cursor:pointer;
}

/* HEADER */
header {
  background: #000;
  padding: 15px 0;
  width: 100%;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* LOGO */
.logo img {
  width: 120px;
  transition: 0.3s;
}

.logo img:hover {
  opacity: 0.8;
}

/* NAVIGATION */
nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  transition: 0.3s;
  border-radius: 6px;
}

nav ul li a i {
  color: red;
}

nav ul li a:hover {
  background: red;
  color: white;
}

/* DROPDOWN */
.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  z-index: 10;
}

.dropdown li {
  width: 100%;
}

.dropdown li a {
display:flex;
align-items:center;
gap:8px;
padding:12px 15px;
color:black;
font-weight:600;
}

.dropdown li a:hover {
  background: #f3f3f3;
  color: red;
}

/* TOGGLE BUTTON */
.menu-toggle {
  display: none;
  font-size: 22px;
  color: white;
  cursor: pointer;
}

/* SLIDER TOPBAR (mobile only) */
.topbar-slider {
  display: flex;
  gap: 20px;
}

.slide {
  display: none;
  white-space: nowrap;
}

.slide.active {
  display: block;
}
.topbar-slider .slide {
  display: block;
}
/* HERO */

/* HERO */
.hero {
    text-align: center;
    padding: 60px 20px 30px;
    background-color: #ffffff;
}

.hero h1 {
    font-size: 37px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero p {
    color: #666;
    font-size: 18px;
    max-width: 600px;
    margin: auto;
}

/* BUTTONS */
.hero-buttons {
    margin-top: 25px;
}

.hero-buttons button {
background:#f40014;
    border: none;
    color: white;
    padding: 14px 25px;
    margin: 8px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.hero-buttons button:hover {
    background: #111;
    transform: translateY(-2px);
}

/* PROMOTIONS */
.promotions {
    margin-top: 40px;
}

/* SLIDER */
.promo-slider {
    max-width: 1300px;
    margin: auto;
}

/* SLIDE */
.promo-slide {
    display: none;
}

.promo-slide.active {
    display: block;
}

/* IMAGE */
.promo-slide img {
    width: 100%;
    max-width: 1300px;
    height: auto;
    display: block;
}

/* SEARCH */


.search-wrapper{
width:100%;
display:flex;
justify-content:center;
margin:50px 0;
padding:0 20px;
position:relative;
}

.search-box{
width:100%;
max-width:650px;
display:flex;
background:white;
border-radius:50px;
overflow:hidden;
box-shadow:0 10px 30px rgba(0,0,0,0.15);
border:2px solid #eee;
transition:0.3s;
}

.search-box:focus-within{
border-color:red;
box-shadow:0 10px 30px rgba(255,0,0,0.2);
}

.search-box input{
flex:1;
padding:16px 20px;
border:none;
font-size:16px;
outline:none;
background:transparent;
}

.search-box button{
width:65px;
border:none;
background:red;
color:white;
font-size:18px;
cursor:pointer;
transition:0.3s;
}

.search-box button:hover{
background:black;
}

/* AUTOCOMPLETE */

/* SEARCH RESULT */

#searchResults{
position:absolute;
top:70px;
left:50%;
transform:translateX(-50%);
width:100%;
max-width:650px;
background:white;
border-radius:12px;
box-shadow:0 15px 40px rgba(0,0,0,0.2);
z-index:999;
max-height:320px;
overflow-y:auto;
}

/* ITEM */

.search-item{
display:flex;
align-items:center;
gap:12px;
padding:12px 15px;
border-bottom:1px solid #eee;
text-decoration:none;
color:black;
transition:0.2s;
}

.search-item:hover{
background:#f8f8f8;
}

.search-img{
width:65px;
height:45px;
object-fit:cover;
border-radius:6px;
}

.search-text{
font-size:14px;
font-weight:600;
}
/* CARS SECTION */

.cars{

padding:20px 20px;
background:#f5f5f5;

}

.cars-header{

display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:30px;

}

.cars-header h2{

font-size:28px;

}

.see-more{

background:red;
color:white;
padding:10px 18px;
border-radius:6px;
text-decoration:none;
font-weight:bold;

}

.see-more:hover{

background:black;

}

/* SLIDER */

.cars-slider{

display:flex;
gap:20px;
overflow-x:auto;
scroll-behavior:smooth;
padding-bottom:10px;

}

.cars-slider::-webkit-scrollbar{
display:none;
}

/* CARD */

.car-card{

min-width:280px;
background:white;
border-radius:10px;
overflow:hidden;
box-shadow:0 6px 20px rgba(0,0,0,0.1);
transition:0.3s;

}

.car-card:hover{

transform:translateY(-5px);

}

.car-card img{

width:100%;
height:180px;
object-fit:cover;

}

.car-info{

padding:15px;

}

.car-info h3{

font-size:18px;
margin-bottom:8px;

}

/* PRICE */

.price{

font-size:22px;
color:red;
font-weight:bold;

}

.monthly{

font-size:14px;
color:#777;
margin-bottom:10px;

}

/* DETAILS */

.car-details{

display:flex;
gap:12px;
font-size:14px;
color:#555;
margin-bottom:12px;

}

.car-details i{

color:red;
margin-right:4px;

}

/* BUTTON */

.discover{

display:block;
text-align:center;
background:#f40014;
color:white;
padding:10px;
border-radius:6px;
text-decoration:none;
font-weight:bold;

}

.discover:hover{

background:red;

}
.cars-controls{

display:flex;
gap:10px;
align-items:center;

}

.cars-controls button{

width:40px;
height:40px;
border:none;
background:black;
color:white;
font-size:20px;
border-radius:50%;
cursor:pointer;

}

.cars-controls button:hover{

background:red;

}
/* CONTACT SECTION */

.contact-section{
background:#111;
color:white;
padding:80px 20px;
text-align:center;
}

.contact-title{
font-size:32px;
margin-bottom:50px;
font-weight:bold;
}

.contact-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:25px;
}

/* CARD */

.contact-card{
background:#1a1a1a;
padding:35px 20px;
border-radius:12px;
transition:0.3s;
box-shadow:0 10px 25px rgba(0,0,0,0.3);
}

.contact-card:hover{
transform:translateY(-6px);
box-shadow:0 15px 35px rgba(0,0,0,0.5);
}

/* ICON */

.contact-card i{
font-size:32px;
color:red;
margin-bottom:15px;
}

/* TITLE */

.contact-card h3{
font-size:20px;
margin-bottom:10px;
}

/* TEXT */

.contact-card p{
color:#ccc;
font-size:15px;
line-height:1.6;
}

/* BUTTON */

.contact-btn{
display:inline-block;
margin-top:15px;
background:red;
color:white;
padding:10px 18px;
border-radius:6px;
text-decoration:none;
font-weight:bold;
transition:0.3s;
}

.contact-btn:hover{
background:white;
color:black;
}


/* FOOTER */

.footer{
background:#0d0d0d;
color:white;
padding:70px 20px 30px;
}

.footer-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:40px;
}

/* TITLES */

.footer h3{
margin-bottom:15px;
color:white;
}

/* CONTACT FORM */

.footer-contact input,
.footer-contact textarea{
width:100%;
padding:12px;
margin-bottom:10px;
border:none;
border-radius:6px;
background:#1a1a1a;
color:white;
}

.footer-contact textarea{
height:100px;
resize:none;
}

.footer-contact button{
width:100%;
padding:12px;
border:none;
border-radius:6px;
background:red;
color:white;
font-weight:bold;
cursor:pointer;
transition:0.3s;
}

.footer-contact button:hover{
background:white;
color:black;
}

/* LINKS */

.footer-links a{
display:block;
color:#ccc;
text-decoration:none;
margin-bottom:8px;
transition:0.3s;
}

.footer-links a:hover{
color:red;
}

/* SOCIAL */

.social-icons a{
color:white;
font-size:22px;
margin-right:12px;
transition:0.3s;
}

.social-icons a:hover{
color:red;
}

/* ABOUT */

.footer-about p{
color:#ccc;
line-height:1.6;
}

/* ADDRESS */

.footer-address{
margin-top:15px;
color:#ccc;
font-size:14px;
}

/* BOTTOM */

.footer-bottom{
text-align:center;
margin-top:50px;
border-top:1px solid #222;
padding-top:20px;
color:#777;
font-size:14px;
}
.mobile-only {
  display: none;
}
.whatsapp-float{

position:fixed;
bottom:25px;
right:25px;
background:#25D366;
color:white;
width:60px;
height:60px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:32px;
box-shadow:0 8px 20px rgba(0,0,0,0.3);
z-index:999;

}

.whatsapp-float:hover{

background:#1ebe5b;

}

.full-width-image {
    width: 100%;
    margin: 0;
    padding: 0;
}

.full-width-image img {
    width: 100%;
    height: auto;
    display: block;
    
}

/* MOBILE */
@media(max-width:900px){

  .menu-toggle {
    display: block;
  }

  .header-flex {
    flex-direction: row;
    justify-content: space-between;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: #00000091;
    transition: 0.3s;
    padding-top: 80px;
    z-index: 999;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20px;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    width: 100%;
    padding: 12px 0;
  }

  .menu-toggle.active i::before {
    content: "\f00d";
  }

  .topbar .container {
    flex-direction: row; /* نفس desktop */
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* ما يهبطوش */
    gap: 10px;
  }

  .topbar-slider {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
  }

  .social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0; /* ما يتصغروش */
  }
    .topbar-slider .slide {
    display: none;
  }

  .topbar-slider .slide.active {
    display: block;
  }
    .hero h1 {
        font-size: 28px;
    }

.contact-grid{
grid-template-columns:1fr 1fr;
}

.footer-grid{
grid-template-columns:1fr 1fr;
}
    .hero {
        padding: 20px 20px;

    }
    .promotions {
    margin-top: 20px;

}
.cars{

padding:20px 10px;

}

}
@media (max-width: 768px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons button {
        width: 100%;
        max-width: 250px;
    }
}
@media(max-width:600px){

  /* LOGO */
.logo img {
  width: 90px;
  transition: 0.3s;
}
    .hero {
        padding: 20px 20px;

    }

.hero h1{

font-size:24px;

}

.hero p{

font-size:16px;

}

.cars-header h2{

font-size:18px;

}

.see-more{

font-size:16px;

}



.search-wrapper{
margin:30px 0;
}

.search-box{
max-width:100%;
border-radius:10px;
}

.search-box input{
padding:14px;
font-size:14px;
}

.search-box button{
width:55px;
}

#searchResults{
max-width:100%;
top:65px;
}

.search-img{
width:55px;
height:40px;
}

.contact-grid{
grid-template-columns:1fr;
}

.contact-title{
font-size:26px;
}


.footer-grid{
grid-template-columns:1fr;
}
    .has-dropdown {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}
@media (max-width: 480px) {
 .container-body{
padding:0 10px;
}
    .hero {
        padding: 20px 5px;

    }

    .hero h1 {
        font-size: 20px;
    } 

.hero p {
  margin-bottom: -25px;
}

/* BUTTONS */
.hero-buttons {
    margin-top: 10px;
}

.hero-buttons button {
    padding: 14px 25px;
    margin: 8px;
}

/* PROMOTIONS */
.promotions {
    margin-top: 40px;

}
.logo img {
  width: 80px;
  transition: 0.3s;
}
.hero-buttons button {
    font-size: 15px;

}
.search-wrapper{
margin:10px 0;
padding:0 10px;

}

}

@media(max-width:450px){
/* LOGO */
.logo img {
  width: 80px;
  transition: 0.3s;
}
  .social {
    gap: 10px;
    margin-left: 0px;
    margin-right: -5px;

  }
  .hero-buttons button {
    font-size: 14px;

}
.search-wrapper{
margin:10px 0;
padding:0 5px;

}
}
@media(max-width:400px){
 .container-body{
padding:0 5px;
}
    .hero h1 {
        font-size: 18px;
    } 
        .hero p {
        font-size: 14px;
    } 
    .hero p {
  margin-top: -5px;
  
}












}


