/* =========================
   EHS-001 Professional CSS
   Part 1: Base + Header + Hero
========================= */


:root{

    --primary:#0d3b66;
    --secondary:#00695c;
    --gold:#e6c600;

    --bg:#f4f7fb;
    --text:#222;
    --white:#ffffff;
    --gray:#555;

}


/* ===== Reset ===== */

*{

    box-sizing:border-box;
    margin:0;
    padding:0;

}


html{

    scroll-behavior:smooth;

}


body{

    direction:rtl;
    text-align:right;

    font-family:"Noto Nastaliq Urdu", serif;

    background:var(--bg);

    color:var(--text);

    font-size:20px;

    line-height:2.2;

}
    main{
    max-width:1200px;
    margin:auto;
    padding:20px;
}

img{

    max-width:100%;
    height:auto;

}



/* ===== Navigation ===== */


nav{

    background:var(--primary);

    padding:15px 20px;

    border-radius:12px;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:25px;

    flex-wrap:wrap;

    margin-bottom:25px;

    position:sticky;

    top: 0px;

    z-index:1000;

    box-shadow:
    0 4px 12px rgba(0,0,0,.15);

}



nav a{

    color:white;

    text-decoration:none;

    font-size:20px;

    font-weight:bold;

    transition:.3s;

}



nav a:hover{

    color:#ffd54f;

    text-decoration:none;

}




/* ===== Hero Section ===== */


.hero{

    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
    );


    color:white;

    padding:45px 25px;

    border-radius:18px;

    text-align:center;

    margin-bottom:25px;

    box-shadow:
    0 8px 20px rgba(0,0,0,.15);

}



/* ===== Logo ===== */


.logo{

    display:block;

    width:clamp(130px,15vw,220px);

    margin:10px auto 20px;

    filter:
    drop-shadow(0 5px 12px rgba(0,0,0,.35));

}



/* ===== Main Title ===== */


h1{

    text-align:center;

    font-size:clamp(32px,5vw,45px);

    margin-bottom:10px;

}



#title{

    color:var(--gold);

    text-shadow:
    2px 2px 10px #806f00;

}



/* ===== Tagline ===== */


.tagline{

    color:#f5f5f5;

    text-align:center;

    font-size:clamp(18px,3vw,23px);

    margin:15px auto;

}



/* ===== Hero Text ===== */


.hero-text{

    color:#f8f8f8;

    text-align:center;

    font-size:clamp(18px,3vw,23px);

    max-width:800px;

    margin:15px auto;

    line-height:2;

    opacity:.95;

}



/* ===== Headings ===== */


h2{

    background:var(--white);

    color:var(--secondary);

    padding:20px;

    border-radius:12px;

    margin:30px 0 20px;

    font-size:clamp(25px,3vw,32px);

    box-shadow:
    0 5px 15px rgba(0,0,0,.1);

}

/* =========================
   Part 2: Buttons + Services
========================= */


/* ===== Hero Buttons ===== */


.hero-buttons{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:15px;

    flex-wrap:wrap;

    margin:25px 0 35px;

}



.main-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    background:white;

    color:var(--primary);

    padding:12px 28px;

    border-radius:30px;

    font-size:20px;

    font-weight:bold;

    text-decoration:none;

    box-shadow:
    0 4px 12px rgba(0,0,0,.15);

    transition:.3s;

}



.main-btn:hover{

    background:#ffd54f;

    color:var(--primary);

    transform:translateY(-4px);

    text-decoration:none;

}



.whatsapp-btn{

    background:#25D366;

    color:white;
    text-decoration: none;

}



.whatsapp-btn:hover{

    background:#1da851;

    color:white;

}



/* ===== Featured Services ===== */


.featured-services{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

    margin:30px 0;

}



.featured-card{

    background:var(--white);

    padding:25px 20px;

    border-radius:15px;

    text-align:center;

    box-shadow:

    0 5px 15px rgba(0,0,0,.12);

    border-top:5px solid var(--secondary);

    transition:.3s;

}



.featured-card:hover{

    transform:translateY(-6px);

    box-shadow:

    0 10px 25px rgba(0,0,0,.18);

}



.featured-card h3{

    color:var(--primary);

    font-size:24px;

    margin-bottom:10px;

}



.featured-card p{

    color:var(--gray);

    font-size:18px;

}



/* ===== Services Grid ===== */


.services-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

    margin-bottom:30px;

}



/* ===== Service Cards ===== */


.service-card{

    background:var(--white);

    padding:22px;

    border-radius:15px;

    border-right:5px solid var(--secondary);

    box-shadow:

    0 5px 15px rgba(0,0,0,.10);

    transition:.3s;

}



.service-card:hover{

    transform:translateY(-5px);

    box-shadow:

    0 10px 25px rgba(0,0,0,.18);

}



.service-card h3{

    color:var(--primary);

    font-size:24px;

    margin-bottom:10px;

}



.service-card h3 i{

    color:var(--secondary);

    font-size:24px;

    margin-left:8px;

}



.service-card p{

    color:var(--gray);

    font-size:18px;

    line-height:2;

}

/* =========================
   Part 3: Contact + Floating Buttons + Footer
========================= */


/* ===== Contact Section ===== */


.contact-box{

    background:var(--white);

    padding:25px;

    border-radius:15px;

    box-shadow:

    0 5px 18px rgba(0,0,0,.12);

    margin-bottom:30px;

}



.contact-buttons{

    display:flex;

    justify-content:flex-start;

    align-items:center;

    gap:15px;

    flex-wrap:wrap;

    margin:20px 0;

}



.contact-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:190px;

    padding:10px 20px;

    border-radius:30px;

    color:white;

    font-size:17px;

    font-weight:bold;

    text-decoration:none;

    box-shadow:

    0 4px 12px rgba(0,0,0,.18);

    transition:.3s;

}



.contact-btn:hover{

    transform:translateY(-3px);

    text-decoration:none;

}



.call-btn{

    background:var(--primary);

}



.call-btn:hover{

    background:#092b4c;

    color:white;

}



.whatsapp-contact-btn{

    background:#25D366;

}



.whatsapp-contact-btn:hover{

    background:#1da851;

    color:white;

}



.contact-btn i{

    font-size:20px;

    margin-left:8px;

}



/* ===== Contact Information ===== */


.contact-item{

    font-size:20px;

    margin:15px 0;

}



.contact-item a{

    color:var(--secondary);

}



.contact-item a:hover{

    color:var(--primary);

}



/* ===== Floating WhatsApp Button ===== */


.whatsapp{

    position:fixed;

    bottom:20px;

    left:20px;

    width:60px;

    height:60px;


    background:#25D366;

    color:white;


    border-radius:50%;


    display:flex;

    justify-content:center;

    align-items:center;


    font-size:32px;


    box-shadow:

    0 5px 15px rgba(0,0,0,.3);


    z-index:1001;


    transition:.3s;

}



.whatsapp:hover{

    background:#1da851;

    color:white;

    transform:scale(1.1);

}



.whatsapp i{

    font-size:35px;

}



/* ===== Back To Top Button ===== */


#topBtn{

    position:fixed;

    bottom:20px;

    right:20px;


    width:55px;

    height:55px;


    display:none;


    background:var(--primary);

    color:white;


    border:none;

    border-radius:50%;


    font-size:28px;


    cursor:pointer;


    box-shadow:

    0 5px 12px rgba(0,0,0,.3);


    z-index:1002;


    transition:.3s;

}



#topBtn:hover{

    background:var(--secondary);

    transform:translateY(-3px);

}



/* ===== Footer ===== */


footer{

    text-align:center;

    color:#666;

    font-size:18px;

    margin-top:30px;

    padding:20px;

}
/* ===== Links ===== */

a{
    color:var(--secondary);
    text-decoration:none;
    transition:.3s;
}

a:hover{
    color:var(--primary);
}

/* ===== About ===== */

.about{
    background:var(--white);
    padding:30px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.12);
    margin:35px 0;
}

.about p{
    font-size:20px;
    color:var(--gray);
    line-height:2.2;
}

.why-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin:30px 0;
}

.why-card{
    background:#fff;
    border-radius:15px;
    padding:25px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.10);
    transition:.3s;
}

.why-card:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 25px rgba(0,0,0,.18);
}

.why-card i{
    font-size:40px;
    color:var(--secondary);
    margin-bottom:15px;
}

.why-card h3{
    color:var(--primary);
    margin-bottom:10px;
}

.why-card p{
    color:var(--gray);
    line-height:1.9;
}
/* ===== FAQ ===== */

.faq{
    margin:40px 0;
}

.faq details{

    background:var(--white);

    margin-bottom:15px;

    padding:18px 20px;

    border-radius:12px;

    box-shadow:0 5px 15px rgba(0,0,0,.10);

    transition:.3s;

}

.faq details:hover{

    box-shadow:0 8px 20px rgba(0,0,0,.15);

}

.faq summary{

    font-size:22px;

    font-weight:bold;

    color:var(--primary);

    cursor:pointer;

    list-style:none;

}

.faq summary::-webkit-details-marker{

    display:none;

}

.faq summary::before{

    content:"+ ";

    color:var(--secondary);

    font-size:24px;

    font-weight:bold;

}

.faq details[open] summary::before{

    content:"− ";

}

.faq p{

    margin-top:15px;

    color:var(--gray);

    line-height:2;

    font-size:18px;

}
a:focus,
button:focus,
.main-btn:focus,
.contact-btn:focus,
#topBtn:focus,
.whatsapp:focus{
    outline:3px solid #ffd54f;
    outline-offset:3px;
}
/* =========================
   Part 4: Responsive Design
========================= */


/* ===== Tablet ===== */

@media (max-width:900px){

    body{

        padding:15px;

        font-size:18px;

    }


    .featured-services{

        grid-template-columns:repeat(2,1fr);

    }


    .services-grid{

        grid-template-columns:1fr;

    }


    .hero{

        padding:40px 20px;

    }


    nav{

        gap:15px;

    }


    nav a{

        font-size:18px;

    }

}

/* ===== Mobile ===== */


@media (max-width:600px){


    body{

        padding:10px;

        line-height:2;

    }



    nav{

        padding:12px;

        gap:10px;

        border-radius:10px;

    }



    nav a{

        font-size:16px;

    }



    .hero{

        padding:30px 15px;

        border-radius:15px;

    }



    .logo{

        width:140px;

    }



    h1{

        font-size:32px;

    }



    .tagline{

        font-size:18px;

    }



    .hero-text{

        font-size:18px;

    }



    .hero-buttons{

        flex-direction:column;

        width:100%;

    }



    .main-btn{

        width:100%;

    }



    .featured-services{

        grid-template-columns:1fr;

        gap:15px;

    }



    .featured-card{

        padding:20px 15px;

    }



    .featured-card h3{

        font-size:22px;

    }



    .services-grid{

        grid-template-columns:1fr;

        gap:15px;

    }



    .service-card{

        padding:18px;

    }



    .service-card h3{

        font-size:21px;

    }



    h2{

        font-size:25px;

        padding:15px;

    }



    .contact-buttons{

        flex-direction:column;

        align-items:stretch;

    }



    .contact-btn{

        width:100%;

    }

    .contact-item{

        font-size:17px;
        overflow-wrap: break-word;

    }

    .whatsapp{

        width:55px;

        height:55px;

        bottom:15px;

        left:15px;

    }



    #topBtn{

        width:50px;

        height:50px;

        right:15px;

        bottom:15px;

    }
}

/* ===== Professional Improvements ===== */

/* Smooth Cards */
.service-card,
.featured-card,
.why-card,
.about,
.contact-box,
.faq details{
    border:1px solid #e8edf3;
}

/* Better Heading */
h2{
    border-right:6px solid var(--gold);
}

/* Service Links */
.service-card h3 a{
    color:var(--primary);
    text-decoration:none;
    display:block;
}

.service-card h3 a:hover{
    color:var(--secondary);
}

/* Navigation Active Effect */
nav a{
    padding:8px 12px;
    border-radius:8px;
}

nav a:hover{
    background:rgba(255,255,255,.15);
}

/* Better Paragraph Reading */
p{
    text-align:justify;
}

/* Image Animation */
.logo{
    transition:.4s;
}

.logo:hover{
    transform:scale(1.05);
}

/* Better Selection */
::selection{
    background:#0d3b66;
    color:#fff;
}

/* Nice Scrollbar (Chrome) */
::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-thumb{
    background:#0d3b66;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#00695c;
}