/* =========================
GLOBAL
========================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
background:#fff;
font-family:"DM Sans", sans-serif;
overflow-x:hidden;
}

img{
max-width:100%;
display:block;
}

/* =========================
NAVBAR (GLOBAL)
========================= */

#nav{
position:fixed;
top:0;
left:0;
width:100%;
height:80px;
background:#000;
display:flex;
align-items:center;
justify-content:space-between;
padding:0 40px;
z-index:1000;
}

#navlogo img{
height:50px;
}

#navlinks{
display:flex;
gap:60px;
align-items:center;
}

#navlinks a{
color:#fff;
text-decoration:none;
font-weight:600;
font-size:15px;
}



#hamburger{
display:none;
font-size:32px;
color:#fff;
cursor:pointer;
}

/* =========================
HERO SECTION
========================= */

.background40-wrapper{
width:100%;
min-height:100vh;
display:flex;
justify-content:center;
align-items:center;
padding-top:120px;
}

#background40{
width:1100px;
max-width:95%;
height:650px;
border-radius:20px;
background:linear-gradient(135deg,#FCAE03,#f5a000,#e69100);
position:relative;
overflow:hidden;
}

/* Hero text */
.hero{
    margin-top: -20px;
}

.start{
position:absolute;
top:12%;
left:50%;
transform:translateX(-50%);
font-size:40px;
color:#1a1a1a;
}

.pay{
position:absolute;
top:28%;
left:6%;
font-size:320px;
font-weight:900;
color:#0a1a2f;
line-height:0.8;
transform:rotate(-10deg);
}

.pay span{
display:block;
font-size:50px;
margin-left:25px;
}

.image{
position:absolute;
bottom:-5px;
right:5%;
}

.image img{
width:480px;
transform:rotate(12deg);
}

.more{
position:absolute;
bottom:40px;
left:50%;
transform:translateX(-50%);
font-size:20px;
}

.more a{
font-weight:700;
color:#0a1a2f;
text-decoration:none;
}

/* =========================
PLAN 40 SECTION
========================= */

.plan40{
display:none;
position:absolute;
top:0;
left:0;
width:100%;
height:100%;

display:flex;
flex-direction:column;
align-items:center;
justify-content:center;

padding:40px 20px;
text-align:center;
z-index:5;
}

/* INNER CONTENT WIDTH CONTROL */

.plan40-slider,
.plan40button,
#planForm{
width:100%;
max-width:700px;
margin:auto;
}

/* SLIDER */

.plan40-slider{
display:flex;
overflow:hidden;
scroll-behavior:smooth;

width:100%;
max-width:750px;
}

/* EACH SLIDE */

.plan40a{
min-width:100%;
padding:20px;
box-sizing:border-box;
}

.plan40a h2{
font-size:24px;
margin-bottom:10px;
}

.plan40a p{
font-size:16px;
line-height:1.6;
max-width:600px;
margin:auto;
}

/* ARROW BUTTONS */

.plan40button{
display:flex;
justify-content:center;
gap:12px;
margin-top:10px;
}

.plan40button button{
padding:8px 14px;
border:none;
background:#000;
color:#fff;
border-radius:4px;
cursor:pointer;
}

/* FORM */

#planForm{
display:flex;
flex-direction:column;
gap:10px;
margin-top:15px;
}

#planForm input{
padding:12px;
border-radius:6px;
border:none;
}

#planForm button{
padding:12px;
border:none;
border-radius:6px;
font-weight:600;
cursor:pointer;
}

/* SEND BUTTON */

#planForm button[type="submit"]{
background:#000;
color:#fff;
}

/* CLOSE BUTTON */

#closeplan40{
background:#FCAE03;
color:#000;
}
/* =========================
CAR SLIDER
========================= */

.slider-wrapper{
margin:20px auto;
display:flex;
justify-content:center;
}

#image-slider1,
#image-slider2,
#image-slider3{
position:relative;
width:1000px;
max-width:95%;
height:520px;
border-radius:20px;
overflow:hidden;
}

#image-slider2,
#image-slider3{
display:none;
}

#phpimg1{
width:100%;
height:100%;
object-fit:cover;
border-radius:20px;
}

#imageslidertext1{
position:absolute;
bottom:20px;
left:50%;
transform:translateX(-50%);
background:rgba(0,0,0,0.5);
padding:15px;
width:80%;
text-align:center;
color:#fff;
border-radius:10px;
}

.slider-btn{
margin-top:10px;
padding:10px 18px;
background:#FCAE03;
border:none;
font-weight:700;
cursor:pointer;
border-radius:6px;
}

/* =========================
CAR GRID
========================= */
.newtopic{
    text-align: center;
    margin-top: 40px;
}
.newtopic2{
    max-width: 700px;
    margin: 60px auto;   /* centers the container horizontally */
    text-align: center;
    padding: 0 20px;     /* keeps text from touching edges on mobile */
}

.newtopic2 h1{
    text-align: center;
    margin-bottom: 20px;
}

.newtopic2 p{
    text-align: center;
    line-height: 1.6;
}
.carlisttopic{
    text-align: center;
    margin-top: 100px;
    margin-bottom: 30px;
}

#imagework1{
max-width:1200px;
margin:10px auto;
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
}

.imagework{
position:relative;
}

.imagework img{
width:100%;
height:300px;
object-fit:cover;
border-radius:10px;
box-shadow:0 10px 20px rgba(0,0,0,0.2);
}

.hover-btn{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
background:#FCAE03;
border:none;
padding:10px 20px;
color:#fff;
font-weight:700;
cursor:pointer;
opacity:0;
transition:opacity .3s;
}

.imagework:hover .hover-btn{
opacity:1;
}

/* =========================
SEARCH
========================= */

.search_button{
display:flex;
justify-content:center;
margin:60px auto;
}

.dropdown{
position:relative;
width:200px;
}

.dropdown input{
width:100%;
padding:10px;
cursor:pointer;
}

.options{
display:none;
position:absolute;
width:100%;
background:#fff;
border:1px solid #ccc;
z-index:10;
}

.options div{
padding:10px;
cursor:pointer;
}

.options div:hover{
background:#eee;
}

.search-results{
max-width:1200px;
margin:80px auto;
}

/* =========================
POPUP
========================= */

#popupOverlay{
position:fixed;
inset:0;
background:rgba(0,0,0,0.7);
display:none;
justify-content:center;
align-items:center;
z-index:2000;
}

#popupBox{
width:420px;
background:#fff;
padding:20px;
border-radius:8px;
text-align:center;
position:relative;
}

#popupBox img{
width:100%;
height:250px;
object-fit:cover;
border-radius:6px;
}

#closeImagePopup{
position:absolute;
top:10px;
right:15px;
font-size:22px;
cursor:pointer;
}

#sendOrderBtn{
margin-top:10px;
padding:10px 15px;
border:none;
background:#FCAE03;
font-weight:700;
cursor:pointer;
}

#successMsg{
display:none;
}

/* =========================
FACEBOOK POPUP
========================= */

.popup{
position:fixed;
inset:0;
background:rgba(0,0,0,0.6);
display:none;
align-items:center;
justify-content:center;
}

.popup-content{
background:#fff;
padding:30px;
border-radius:10px;
text-align:center;
}

/* =========================
FOOTER (GLOBAL)
========================= */

footer{
background:#000;
color:#fff;
padding:80px 40px;
text-align:center;
margin-top:100px;
}


/* =========================
TABLET
========================= */

@media(max-width:992px){

#imagework1{
grid-template-columns:repeat(2,1fr);
}

}

/* =========================
MOBILE
========================= */

@media(max-width:768px){

#hamburger{
display:block;
}

#navlinks{
position:fixed;
top:0;
right:-100%;
height:100vh;
width:260px;
background:#000;
flex-direction:column;
justify-content:center;
gap:30px;
transition:.3s;
}

#navlinks.nav-active{
right:0;
}

#imagework1{
grid-template-columns:1fr;
}


/* background container */
#background40{
width:100%;
min-height:650px;
height:auto;
padding-bottom:30px;
}

/* HERO WRAPPER */
.hero{
    
position:relative;
width:100%;
min-height:650px;
}

/* START TEXT */
.start{
top:12%;
left:50%;
transform:translateX(-50%);
font-size:22px;
text-align:center;
width:100%;
}

/* 40% TEXT */
.pay{
top:25%;
left:4%;
font-size:150px;
}

/* DOWN PAYMENT LABEL */
.pay span{
font-size:28px;
}

/* CAR IMAGE */
.image{
bottom:0;
right:5%;
}

.image img{
width:300px;
}

/* LINK */
.more{
bottom:25px;
font-size:16px;
}

/* PLAN SECTION */
.plan40{
margin-top:40px;
padding:0 10px;
}

/* PLAN SLIDES */
.plan40a{
padding:15px;
margin-top: 50px;
}

.plan40a h2{
font-size:16px;
}

.plan40a p{
font-size:13px;
}


.start{
font-size:24px;
}

.pay{
font-size:140px;
}

.pay span{
font-size:30px;
}

.image img{
width:300px;
}
#imageslidertext1{
    position: relative;
margin-top:20px;
bottom:15px;
left:50%;
transform:translateX(-50%);
width:90%;
padding:12px;
text-align:center;
}
footer{
padding:40px 20px;

}
.footeremblem{
    margin: 0px;
    max-width: 500px;
    white-space:nowrap;   /* keeps text on one line */
}
}