/* ================================
   ألوان الموقع
================================ */

:root {
    --green-dark: #073b2a;
    --green: #16845c;
    --green-light: #39a879;

    --white: #ffffff;
    --gray-bg: #f5f7f6;
    --gray: #6b7772;
    --text: #17352b;

    --border: #e2e8e5;
}


/* ================================
   GENERAL
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Tahoma, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* ================================
   HEADER
================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: var(--green-dark);

    border-bottom: 1px solid rgba(255,255,255,0.1);

    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.nav-container {
    min-height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 55px;
    height: 55px;

    background: white;

    border-radius: 10px;

    padding: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.2;
}

.brand-text strong {
    color: white;
    font-size: 18px;
}

.brand-text span {
    color: #b8d7ca;
    font-size: 13px;
}

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    color: white;
    font-size: 15px;

    transition: 0.3s;
}

.menu a:hover {
    color: #75d4aa;
}

.menu-toggle {
    display: none;

    border: 0;
    background: none;

    color: white;

    font-size: 28px;

    cursor: pointer;
}


/* ================================
   HERO
================================ */

.hero {
    min-height: 720px;

    display: flex;
    align-items: center;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #f7faf8 0%,
            #ffffff 55%,
            #edf6f1 100%
        );
}

.hero-content {
    padding: 90px 0;
}

.hero-logo {
    width: 150px;
    height: 150px;

    margin: 0 auto 25px;

    background: white;

    border-radius: 20px;

    padding: 15px;

    box-shadow:
        0 15px 40px rgba(7,59,42,0.12);
}

.hero-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.hero-subtitle {
    color: var(--green);

    letter-spacing: 3px;

    font-size: 14px;

    margin-bottom: 15px;

    direction: ltr;
}

.hero h1 {
    color: var(--green-dark);

    font-size: clamp(42px, 7vw, 78px);

    line-height: 1.15;

    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--green);
}

.hero-description {
    max-width: 650px;

    margin: auto;

    color: var(--gray);

    font-size: 18px;
}

.hero-buttons {
    margin-top: 35px;

    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;
}

.btn {
    display: inline-block;

    padding: 14px 28px;

    border-radius: 8px;

    font-weight: bold;

    transition: 0.3s;

    cursor: pointer;

    border: 1px solid transparent;
}

.btn-primary {
    background: var(--green);

    color: white;

    box-shadow:
        0 8px 20px rgba(22,132,92,0.18);
}

.btn-primary:hover {
    background: var(--green-light);

    transform: translateY(-3px);
}

.btn-outline {
    border-color: var(--green);

    color: var(--green-dark);

    background: white;
}

.btn-outline:hover {
    background: var(--green-dark);

    color: white;
}


/* ================================
   SECTIONS
================================ */

.section {
    padding: 100px 0;

    background: white;
}

.section-dark {
    background: var(--green-dark);

    color: white;
}

.section-title {
    text-align: center;

    max-width: 750px;

    margin: 0 auto 55px;
}

.section-title > span {
    color: var(--green);

    font-size: 14px;

    letter-spacing: 2px;

    font-weight: bold;
}

.section-dark .section-title > span {
    color: #76d4aa;
}

.section-title h2 {
    color: var(--green-dark);

    font-size: clamp(30px, 5vw, 48px);

    margin: 10px 0 15px;
}

.section-dark .section-title h2 {
    color: white;
}

.section-title p {
    color: var(--gray);
}

.section-dark .section-title p {
    color: #b7cdc4;
}


/* ================================
   SERVICES
================================ */

.services-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.service-card {
    background: white;

    border: 1px solid rgba(255,255,255,0.12);

    padding: 35px 25px;

    border-radius: 15px;

    transition: 0.3s;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-7px);

    border-color: #4ab98b;

    box-shadow:
        0 15px 35px rgba(0,0,0,0.12);
}

.service-icon {
    color: var(--green);

    font-size: 18px;

    font-weight: bold;

    margin-bottom: 25px;
}

.service-card h3 {
    color: var(--green-dark);

    margin-bottom: 12px;

    font-size: 21px;
}

.service-card p {
    color: var(--gray);
}


/* ================================
   PROJECT COUNTER
================================ */

.project-counter {
    padding: 90px 0;

    background: var(--gray-bg);
}

.counter-box {
    text-align: center;

    background: white;

    border-radius: 22px;

    padding: 60px 20px;

    border: 1px solid var(--border);

    box-shadow:
        0 15px 45px rgba(7,59,42,0.08);
}

.counter-label {
    display: block;

    color: var(--gray);

    font-size: 19px;

    margin-bottom: 12px;
}

.counter-number {
    direction: ltr;

    font-size: clamp(70px, 12vw, 130px);

    font-weight: bold;

    line-height: 1;

    color: var(--green-dark);
}

.counter-number .plus {
    color: var(--green);

    font-size: 55%;
}

.counter-box p {
    color: var(--gray);

    margin-top: 15px;
}


/* ================================
   PROJECTS
================================ */

#projects {
    background: var(--gray-bg);
}

.projects-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.project-card {
    overflow: hidden;

    background: white;

    border-radius: 15px;

    border: 1px solid var(--border);

    transition: 0.3s;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.05);
}

.project-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 35px rgba(7,59,42,0.12);
}

.project-image {
    width: 100%;

    height: 260px;

    overflow: hidden;

    background: #eaf2ee;
}

.project-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 22px;
}

.project-number {
    color: var(--green);

    font-size: 13px;

    font-weight: bold;
}

.project-content h3 {
    color: var(--green-dark);

    margin: 8px 0;

    font-size: 20px;
}

.project-content p {
    color: var(--gray);

    font-size: 14px;
}


/* ================================
   SAFETY
================================ */

.safety-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.safety-item {
    padding: 30px;

    background: rgba(255,255,255,0.08);

    border:
        1px solid rgba(255,255,255,0.1);

    border-radius: 15px;

    transition: 0.3s;
}

.safety-item:hover {
    background: rgba(255,255,255,0.13);

    transform: translateY(-5px);
}

.safety-item h3 {
    color: #76d4aa;

    margin-bottom: 12px;
}

.safety-item p {
    color: #c0d3cb;
}


/* ================================
   CONTACT
================================ */

.contact-wrapper {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 50px;

    align-items: start;
}

.contact-info h3 {
    color: var(--green-dark);

    font-size: 30px;

    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--gray);

    margin-bottom: 30px;
}

.contact-item {
    display: flex;

    flex-direction: column;

    margin-bottom: 20px;
}

.contact-item strong {
    color: var(--green);

    margin-bottom: 3px;
}

.contact-item a {
    color: var(--green-dark);

    font-weight: bold;
}

.contact-item span {
    color: var(--gray);
}

.contact-form {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    background: var(--gray-bg);

    border: 1px solid var(--border);

    color: var(--text);

    padding: 15px;

    border-radius: 8px;

    font-family: inherit;

    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green);

    background: white;

    box-shadow:
        0 0 0 3px rgba(22,132,92,0.08);
}

.contact-form textarea {
    resize: vertical;
}


/* ================================
   FOOTER
================================ */

.footer {
    background: #04251b;

    padding: 30px 0;

    color: #a7c0b6;
}

.footer .container {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    flex-wrap: wrap;
}

.footer span {
    color: #6fc29d;
}


/* ================================
   TABLET
================================ */

@media (max-width: 1000px) {

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .safety-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* ================================
   MOBILE
================================ */

@media (max-width: 700px) {

    .menu-toggle {
        display: block;
    }

    .menu {
        display: none;

        position: absolute;

        top: 80px;

        right: 0;

        left: 0;

        background: var(--green-dark);

        flex-direction: column;

        padding: 20px;

        gap: 15px;

        border-bottom:
            1px solid rgba(255,255,255,0.1);
    }

    .menu.active {
        display: flex;
    }

    .hero {
        min-height: 650px;
    }

    .hero-logo {
        width: 120px;

        height: 120px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section {
        padding: 75px 0;
    }

    .services-grid,
    .safety-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 240px;
    }

    .counter-box {
        padding: 45px 15px;
    }

    .footer .container {
        flex-direction: column;

        text-align: center;
    }

}