/*=================================================
MKHONKOSI ELECTRICAL SERVICES
STYLE.CSS
=================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#ffffff;
    color:#222;
    line-height:1.6;
    overflow-x:hidden;
}

img{
    display:block;
    max-width:100%;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

:root{

    --primary:#f7931e;
    --secondary:#0c2f5c;
    --dark:#162033;
    --light:#f5f7fa;
    --white:#ffffff;

}

/*=================================================
HEADER
=================================================*/

header{

    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;

    background:rgba(10,22,40,.94);
    backdrop-filter:blur(10px);

}

.navbar{

    width:92%;
    max-width:1300px;

    margin:auto;

    height:90px;

    display:flex;
    align-items:center;
    justify-content:space-between;

}

/*=================================================
LOGO
=================================================*/

.logo{

    display:flex;
    align-items:center;

}

.logo img{

    height:60px;
    width:auto;
    display:block;

}

/*=================================================
NAVIGATION
=================================================*/

.nav-links{

    display:flex;
    gap:35px;

}

.nav-links a{

    color:#fff;
    font-size:17px;
    font-weight:600;
    transition:.3s;

}

.nav-links a:hover,
.nav-links .active{

    color:var(--primary);

}

/*=================================================
BUTTON
=================================================*/

.quote-btn{

    background:var(--primary);
    color:#fff;

    padding:14px 28px;

    border-radius:8px;

    font-weight:600;

    transition:.3s;

}

.quote-btn:hover{

    background:#db7e08;

}
/*=================================================
HERO
=================================================*/

.hero{

    position:relative;

    width:100%;
    height:100vh;

    margin-top:90px;

    overflow:hidden;

}

.slider{

    position:absolute;

    inset:0;

}

.slide{

    position:absolute;

    inset:0;

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    opacity:0;

    transition:opacity 1.2s ease-in-out;

}

.slide.active{

    opacity:1;

}

.hero-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.55);

}

.hero-content{

    position:relative;

    z-index:2;

    width:92%;
    max-width:1300px;

    height:100%;

    margin:auto;

    display:flex;
    flex-direction:column;
    justify-content:center;

    color:#fff;

}

.hero-content h1{

    font-size:68px;

    line-height:1.1;

    margin-bottom:25px;

    font-weight:800;

    max-width:700px;

}

.hero-content p{

    font-size:22px;

    line-height:1.8;

    max-width:650px;

    margin-bottom:40px;

}

.hero-buttons{

    display:flex;

    gap:20px;

}

.btn-primary{

    background:var(--primary);

    color:#fff;

    padding:18px 36px;

    border-radius:8px;

    font-size:18px;

    font-weight:600;

    transition:.3s;

}

.btn-primary:hover{

    background:#db7e08;

}

.btn-secondary{

    border:2px solid #fff;

    color:#fff;

    padding:18px 36px;

    border-radius:8px;

    font-size:18px;

    font-weight:600;

    transition:.3s;

}

.btn-secondary:hover{

    background:#fff;

    color:var(--dark);

}
/*=================================================
SERVICES
=================================================*/

.services{

    padding:100px 8%;

    background:var(--light);

}

.section-title{

    text-align:center;

    margin-bottom:60px;

}

.section-title h2{

    font-size:42px;

    color:var(--secondary);

    margin-bottom:15px;

}

.section-title p{

    max-width:700px;

    margin:auto;

    color:#666;

    font-size:18px;

    line-height:1.8;

}

.services-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

}

.service-card{

    background:#fff;

    padding:40px 30px;

    border-radius:12px;

    text-align:center;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.35s;

}

.service-card:hover{

    transform:translateY(-8px);

}

.service-card i{

    font-size:50px;

    color:var(--primary);

    margin-bottom:20px;

}

.service-card h3{

    font-size:26px;

    color:var(--secondary);

    margin-bottom:15px;

}

.service-card p{

    color:#666;

    line-height:1.8;

}

/*=================================================
ABOUT
=================================================*/

.about-home{

    padding:100px 8%;

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:60px;

    align-items:center;

}

.about-image img{

    width:100%;

    border-radius:12px;

}

.about-text h2{

    font-size:42px;

    color:var(--secondary);

    margin-bottom:20px;

}

.about-text p{

    color:#555;

    line-height:1.9;

    margin-bottom:35px;

}
/*=================================================
CALL TO ACTION
=================================================*/

.cta{

    background:var(--secondary);

    color:#fff;

    text-align:center;

    padding:100px 8%;

}

.cta-content{

    max-width:850px;

    margin:auto;

}

.cta h2{

    font-size:44px;

    margin-bottom:20px;

}

.cta p{

    font-size:18px;

    line-height:1.9;

    margin-bottom:40px;

}

/*=================================================
FOOTER
=================================================*/

footer{

    background:#111827;

    color:#fff;

}

.footer-container{

    width:92%;
    max-width:1300px;

    margin:auto;

    padding:70px 0;

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:50px;

}

.footer-logo img{

    height:60px;

    width:auto;

    margin-bottom:20px;

}

.footer-logo p{

    color:#d1d5db;

    line-height:1.8;

}

.footer-links h3,
.footer-contact h3{

    margin-bottom:20px;

    font-size:22px;

}

.footer-links a{

    display:block;

    color:#d1d5db;

    margin-bottom:12px;

    transition:.3s;

}

.footer-links a:hover{

    color:var(--primary);

}

.footer-contact p{

    color:#d1d5db;

    margin-bottom:12px;

}

.footer-contact i{

    color:var(--primary);

    margin-right:8px;

}

.copyright{

    text-align:center;

    padding:20px;

    border-top:1px solid rgba(255,255,255,.08);

    color:#bdbdbd;

}

/*=================================================
RESPONSIVE
=================================================*/

@media(max-width:992px){

    .navbar{

        flex-direction:column;

        height:auto;

        padding:20px 0;

    }

    .nav-links{

        margin:20px 0;

        flex-wrap:wrap;

        justify-content:center;

        gap:20px;

    }

    .hero{

        margin-top:150px;

    }

    .hero-content{

        text-align:center;

        align-items:center;

    }

    .hero-content h1{

        font-size:50px;

    }

    .hero-content p{

        font-size:19px;

    }

    .about-home{

        grid-template-columns:1fr;

    }

    .footer-container{

        grid-template-columns:1fr;

        text-align:center;

    }

}

@media(max-width:768px){

    .hero-buttons{

        flex-direction:column;

        width:100%;

    }

    .btn-primary,
    .btn-secondary{

        width:100%;

        text-align:center;

    }

    .hero-content h1{

        font-size:38px;

    }

    .section-title h2,
    .about-text h2,
    .cta h2{

        font-size:32px;

    }

}
/*=================================================
QUOTATION FORM
=================================================*/

.quote-form{

    display:flex;
    flex-direction:column;
    gap:18px;

    margin-top:30px;

}

.quote-form input,
.quote-form textarea{

    width:100%;

    padding:16px 18px;

    border:1px solid #d9d9d9;

    border-radius:8px;

    font-size:16px;

    font-family:'Poppins',sans-serif;

    outline:none;

    transition:.3s;

}

.quote-form input:focus,
.quote-form textarea:focus{

    border-color:var(--primary);

    box-shadow:0 0 8px rgba(247,147,30,.25);

}

.quote-form textarea{

    resize:vertical;

    min-height:160px;

}

.quote-form button{

    width:220px;

    border:none;

    cursor:pointer;

}

.quote-form button:hover{

    transform:translateY(-2px);

}
