8/* ===========================
   NEW ROYAL ELECTRICAL
   STYLE.CSS
=========================== */

:root{

--primary:#1E5AA8;
--secondary:#2F2A6D;
--accent:#FFC107;
--white:#ffffff;
--light:#f6f8fc;
--dark:#222;
--gray:#777;

--shadow:0 15px 40px rgba(0,0,0,.08);

}

*{
margin:0;
padding:0;
box-sizing:border-box;
scroll-behavior:smooth;
}

body{

font-family:'Poppins',sans-serif;
background:var(--light);
color:var(--dark);
overflow-x:hidden;

}

.img{

max-width:100%;
display:block;

}

.footer-logo{
    width:180px;
    margin-bottom:0px;
}



.about-image img{
    width:106%;
    max-width:650px;
    height:450px;
    object-fit:cover;
    border-radius:20px;
}


.footer-box:first-child{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    text-align:right;
}

.footer-description{
    max-width:380px;
    margin:20px 0;
}

.social{
    display:flex;
    
    gap:15px;
    margin:0px 0;
}

.copyright{
    text-align:right;
}


.container{

width:90%;
max-width:1300px;
margin:auto;

}

a{

text-decoration:none;

}

.section{

padding:100px 0;

}

/*====================
LOADER
====================*/

#loader{

position:fixed;
width:100%;
height:100%;
background:#fff;
display:flex;
justify-content:center;
align-items:center;
z-index:99999;

}

.spinner{

width:60px;
height:60px;
border:6px solid #ddd;
border-top:6px solid var(--primary);
border-radius:50%;
animation:spin 1s linear infinite;

}

@keyframes spin{

100%{

transform:rotate(360deg);

}

}

/*====================
HEADER
====================*/

header{

position:fixed;
top:0;
left:0;
width:100%;
background:rgba(255,255,255,.96);
backdrop-filter:blur(12px);
box-shadow:0 3px 15px rgba(0,0,0,.08);
z-index:999;

}

header .container{

display:flex;
justify-content:space-between;
align-items:center;
padding:15px 0;

}

.logo img{

height:70px;

}

nav ul{

display:flex;
list-style:none;
gap:35px;

}

nav a{

color:#333;
font-weight:600;
transition:.3s;

}

nav a:hover{

color:var(--primary);

}

#menu-btn{

display:none;
font-size:28px;
cursor:pointer;

}

/*====================
HERO
====================*/

.hero{

height:100vh;

background:

linear-gradient(rgba(12,28,61,.85),rgba(12,28,61,.88)),

url("images/main-2.png");

background-size:cover;
background-position:center;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
color:white;
position:relative;

}

.hero-content{

max-width:900px;

}

.hero h4{

letter-spacing:5px;
font-weight:500;
margin-bottom:20px;

}

.hero h1{

font-size:72px;
line-height:1.1;
margin-bottom:30px;
font-weight:800;

}

.hero p{

font-size:22px;
color:#ddd;
margin-bottom:45px;

}

.hero-buttons{

display:flex;
justify-content:center;
gap:20px;
flex-wrap:wrap;

}

.btn{

padding:16px 40px;
background:var(--accent);
color:#111;
font-weight:600;
border-radius:40px;
transition:.35s;

}

.btn:hover{

transform:translateY(-5px);

}

.btn2{

background:transparent;
color:white;
border:2px solid white;

}

.btn2:hover{

background:white;
color:black;

}

/*====================
STATS
====================*/

.stats{

background:white;
box-shadow:var(--shadow);

}

.stats .container{

display:grid;
grid-template-columns:repeat(4,1fr);
text-align:center;

}

.stat{

padding:35px;

}

.stat h2{

font-size:48px;
color:var(--primary);

}

.stat p{

margin-top:10px;
color:var(--gray);

}

/*====================
ABOUT
====================*/

.about-grid{

display:grid;
grid-template-columns:1fr 1fr;
gap:70px;
align-items:center;

}

.about h5{

color:var(--primary);
letter-spacing:2px;
margin-bottom:15px;

}

.about h2{

font-size:42px;
margin-bottom:25px;

}

.about p{

line-height:1.9;
color:#555;

}

.features{

display:grid;
grid-template-columns:repeat(2,1fr);
gap:20px;
margin-top:35px;

}

.features div{

font-weight:600;

}

.features i{

color:green;
margin-right:10px;

}

about-image img{

border-radius:20px;
box-shadow:var(--shadow);

}

/*====================
SECTION TITLE
====================*/

.section-title{

text-align:center;
margin-bottom:70px;

}

.section-title h5{

color:var(--primary);
letter-spacing:3px;
margin-bottom:10px;

}

.section-title h2{

font-size:42px;

}

/*====================
PRODUCTS
====================*/

.product-grid{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:30px;

}

.product-card{

background:white;
padding:40px;
border-radius:20px;
text-align:center;
box-shadow:var(--shadow);
transition:.35s;

}

.product-card:hover{

transform:translateY(-12px);

}

.product-card i{

font-size:55px;
color:var(--primary);
margin-bottom:25px;

}

.product-card h3{

margin-bottom:15px;

}

.product-card p{

color:#666;

}

/*====================
BRANDS
====================*/

.brands{

display:grid;
grid-template-columns:repeat(4,1fr);
gap:25px;

}

.brands div{

background:white;
padding:35px;
text-align:center;
font-size:22px;
font-weight:700;
border-radius:15px;
box-shadow:var(--shadow);

}

/*====================
SERVICES
====================*/

.services{

display:grid;
grid-template-columns:repeat(4,1fr);
gap:25px;
background:#F8FAFC;

}

.service{

background:white;
padding:45px;
border-radius:20px;
text-align:center;
box-shadow:var(--shadow);

}

.service i{

font-size:55px;
color:var(--primary);
margin-bottom:25px;

}

.service h3{

font-size:22px;

}


.product-card,
.service,
.stat{
    background:#FFFFFF;
    border:1px solid #E5E7EB;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.about-text{
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.9;
    font-size: 17px;
    color: #4B5563;
    margin-top: 20px;
}

.location-section{
    padding:70px 0;
    background:#F8FAFC;
}

.location-grid{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:50px;
    align-items:center;
    margin-top:50px;
}

.location-info h3{
    font-size:32px;
    color:#1E5AA8;
    margin-bottom:20px;
}

.location-info>p{
    line-height:1.8;
    color:#555;
    margin-bottom:35px;
    text-align:justify;
}

.location-item{
    display:flex;
    gap:18px;
    margin-bottom:25px;
}

.location-item i{
    width:55px;
    height:55px;
    background:#1E5AA8;
    color:#fff;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:20px;
}

.location-item h4{
    margin-bottom:5px;
}

.location-item p{
    color:#666;
}

.location-map{
    overflow:hidden;
    border-radius:20px;
    box-shadow:0 15px 40px rgba(0,0,0,.10);
}

.location-map iframe{
    width:100%;
    height:500px;
    border:0;
    display:block;
}

@media(max-width:991px){

.location-grid{
    grid-template-columns:1fr;
}

.location-map iframe{
    height:400px;
}

}




