/* الإعدادات العامة */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {

    --primary: #173B57;
    --deep: #102B40;
    --accent: #20A6A6;
    --pale: #DDF3F1;
    --ink: #182B39;
    --muted: #6D7C87;
    --surface: #F4F7F8;
    --line: #E4EAED;
    --white: #fff;

    --shadow: 0 18px 50px rgba(20,49,68,.1);

}

html {
    scroll-behavior: smooth;
}

body {

    font-family: 'Tajawal', sans-serif;

    color: var(--ink);

    background: #fff;

    line-height: 1.8;

}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.container {

    width: min(1160px, 91%);

    margin-inline: auto;

}

.section {
    padding-block: 82px;
}


/* العناوين الصغيرة */

.eyebrow {

    color: var(--accent);

    font-size: 14px;

    font-weight: 800;

}


/* الأزرار */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 12px 22px;

    border-radius: 9px;

    font-weight: 800;

    border: 1px solid transparent;

    cursor: pointer;

    transition: .2s;

}

.btn:hover {
    transform: translateY(-3px);
}

.primary {

    color: #fff;

    background: var(--accent);

}

.primary:hover {
    background: #168d8d;
}

.outline {

    color: #fff;

    border-color: #ffffff70;

    background: #ffffff0d;

}

.light {

    color: var(--primary);

    background: #fff;

}


/* القائمة العلوية */

.header {

    position: sticky;

    inset-block-start: 0;

    z-index: 20;

    background: #ffffffed;

    border-block-end: 1px solid var(--line);

    backdrop-filter: blur(12px);

}

.nav {

    min-height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}

.brand {

    display: flex;

    align-items: center;

    gap: 9px;

    color: var(--primary);

    font-size: 22px;

    font-weight: 800;

    white-space: nowrap;

}

.brand b {
    color: var(--accent);
}

.logo-mark {

    display: grid;

    place-items: center;

    width: 37px;

    height: 37px;

    border-radius: 10px;

    color: #fff;

    background: var(--primary);

    font: 800 21px Arial;

}

.nav-links {

    display: flex;

    gap: 32px;

    align-items: center;

}

.nav-links a {

    font-weight: 700;

    color: #53636e;

}

.nav-links a:hover,
.nav-links .active {

    color: var(--accent);

}

.nav-action,
.text-link {

    font-weight: 800;

    color: var(--primary);

}

.menu-toggle {

    display: none;

    border: 1px solid var(--line);

    background: #fff;

    color: var(--primary);

    border-radius: 9px;

    width: 43px;

    height: 42px;

    font-size: 22px;

    cursor: pointer;

}


/* القسم الترحيبي */

.hero {

    color: #fff;

    background:

    radial-gradient(
        circle at 15% 20%,
        #20a6a638,
        transparent 28%
    ),

    linear-gradient(
        125deg,
        var(--deep),
        var(--primary)
    );

    overflow: hidden;

}

.hero-grid {

    min-height: 570px;

    padding-block: 65px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 45px;

}

.hero-copy h1 {

    font-size: clamp(44px, 5.5vw, 68px);

    line-height: 1.25;

    margin-block: 15px;

}

.hero-copy h1 em,
.page-hero em {

    font-style: normal;

    color: #79d8d1;

}

.hero-copy > p {

    color: #d1dee5;

    font-size: 18px;

    max-width: 540px;

}

.actions {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-block: 27px;

}

.hero-note {
    color: #c9d9e0;
}

.hero-picture {

    position: relative;

    display: grid;

    place-items: center;

    min-height: 350px;

}

.hero-picture img {

    width: 90%;

    aspect-ratio: 1.3;

    object-fit: cover;

    border: 8px solid #ffffff20;

    border-radius: 18px;

    box-shadow: 0 30px 70px #0005;

    transform: rotate(-3deg);

    z-index: 1;

}

.halo {

    position: absolute;

    width: 390px;

    aspect-ratio: 1;

    border: 1px solid #79d8d144;

    border-radius: 50%;

}

.float-label {

    position: absolute;

    z-index: 2;

    inset-block-start: 30px;

    inset-inline-start: 0;

    padding: 9px 15px;

    border: 1px solid #ffffff33;

    border-radius: 9px;

    background: #ffffff20;

    backdrop-filter: blur(8px);

}


/* عناوين الأقسام */

.section-title {

    text-align: center;

    margin-block-end: 38px;

}

.section-title h2 {

    font-size: clamp(28px, 3.5vw, 39px);

    color: var(--primary);

    margin-block: 7px;

}

.section-title h2 em {

    font-style: normal;

    color: var(--accent);

}

.section-title p {
    color: var(--muted);
}


/* المميزات وآراء العملاء */

.features,
.reviews {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

}

.features article,
.reviews article {

    padding: 28px;

    border: 1px solid var(--line);

    border-radius: 14px;

    background: #fff;

    transition: .2s;

}

.features article:hover {

    transform: translateY(-5px);

    box-shadow: var(--shadow);

}

.features i {

    display: grid;

    place-items: center;

    width: 50px;

    height: 50px;

    border-radius: 13px;

    background: var(--pale);

    color: var(--accent);

    font-style: normal;

    font-size: 26px;

}

.features h3 {

    color: var(--primary);

    margin-block: 15px 5px;

}

.features p,
.reviews p {

    color: var(--muted);

    font-size: 15px;

}


/* معرض الصور */

.gallery-section,
.products-section,
.contact-section {

    background: var(--surface);

}

.row-title {

    display: flex;

    justify-content: space-between;

    align-items: end;

    text-align: start;

}

.gallery {

    display: grid;

    grid-template-columns: 1.25fr 1fr;

    grid-template-rows: 210px 210px;

    gap: 17px;

}

.gallery > a {

    position: relative;

    overflow: hidden;

    border-radius: 14px;

    background: var(--primary);

    color: #fff;

}

.gallery > a:after {

    content: '';

    position: absolute;

    inset: 0;

    background: linear-gradient(
        0deg,
        #081925dc,
        transparent 75%
    );

}

.gallery img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: .4s;

}

.gallery a:hover img {
    transform: scale(1.05);
}

.gallery span {

    position: absolute;

    z-index: 1;

    inset-inline: 22px;

    inset-block-end: 17px;

    display: grid;

}

.gallery small {
    color: #8be0da;
}

.gallery b {
    font-size: 20px;
}

.gallery-large {
    grid-row: span 2;
}


/* آراء العملاء */

.reviews strong {

    color: #e4a83a;

    letter-spacing: 3px;

}

.reviews p {

    margin-block: 13px;

    min-height: 75px;

}

.reviews b {
    color: var(--primary);
}

.note {

    font-size: 12px;

    color: #87949c;

    margin-block-start: 18px;

}


/* قسم التواصل في الرئيسية */

.cta {

    padding-block: 43px;

    background: var(--primary);

    color: #fff;

}

.cta-inner {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

}

.cta h2 {
    font-size: 30px;
}

.cta p {
    color: #cbd9e0;
}

.cta .eyebrow {
    color: #79d8d1;
}


/* التذييل */

footer {

    background: #0d2435;

    color: #c4d0d7;

    padding-block: 23px;

}

.footer-inner {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 18px;

}

.footer-brand {
    color: #fff;
}

.footer-brand b {
    color: #79d8d1;
}

.footer-inner p,
.footer-inner div {
    font-size: 13px;
}

.footer-inner div {

    display: flex;

    gap: 17px;

}


/* العنوان الداخلي */

.page-hero {

    padding-block: 65px;

    background:

    radial-gradient(
        circle at 10% 10%,
        #20a6a63b,
        transparent 28%
    ),

    linear-gradient(
        120deg,
        var(--deep),
        var(--primary)
    );

    color: #fff;

}

.page-hero h1 {

    font-size: clamp(38px, 5vw, 55px);

    margin-block: 10px;

}

.page-hero p {
    color: #d0dde4;
}


/* صفحة المنتجات */

.products-heading {

    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 20px;

    margin-block-end: 28px;

}

.products-heading h2 {

    font-size: 30px;

    color: var(--primary);

}

.filters {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

}

.filter {

    padding: 8px 15px;

    border: 1px solid var(--line);

    border-radius: 30px;

    background: #fff;

    color: var(--muted);

    font-weight: 700;

    cursor: pointer;

}

.filter.active,
.filter:hover {

    background: var(--primary);

    color: #fff;

    border-color: var(--primary);

}

.product-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

}

.product {

    overflow: hidden;

    border: 1px solid var(--line);

    border-radius: 14px;

    background: #fff;

    transition: .2s;

}

.product:hover {

    transform: translateY(-4px);

    box-shadow: var(--shadow);

}

.product[hidden] {
    display: none !important;
}

.product-img {

    height: 195px;

    position: relative;

    background: #e9eff2;

}

.product-img img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.product-img label {

    position: absolute;

    z-index: 1;

    inset-block-start: 12px;

    inset-inline-start: 12px;

    padding: 4px 11px;

    border-radius: 30px;

    background: #fff;

    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

}

.product-info {
    padding: 19px;
}

.product-info small {

    color: var(--accent);

    font-weight: 800;

}

.product-info h3 {

    color: var(--primary);

    font-size: 21px;

}

.product-info p {

    min-height: 50px;

    color: var(--muted);

    font-size: 14px;

}

.product-info ul {

    padding-inline-start: 20px;

    margin-block: 12px;

    color: #53636e;

    font-size: 13px;

}

.product-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    padding-block-start: 12px;

    border-block-start: 1px solid var(--line);

}

.product-bottom b {

    color: var(--primary);

    white-space: nowrap;

}

.small {

    font-size: 12px;

    padding: 8px 11px;

}


/* صفحة التواصل */

.contact-layout {

    display: grid;

    grid-template-columns: .9fr 1.1fr;

    gap: 45px;

}

.contact-copy h2 {

    font-size: 34px;

    color: var(--primary);

    margin-block: 8px;

}

.contact-copy > p {
    color: var(--muted);
}

.contact-detail {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-block-start: 22px;

}

.contact-detail i {

    display: grid;

    place-items: center;

    width: 45px;

    height: 45px;

    border-radius: 12px;

    background: var(--pale);

    color: var(--accent);

    font-style: normal;

    font-size: 21px;

}

.contact-detail b,
.contact-detail a,
.contact-detail span {
    display: block;
}

.contact-detail b {
    color: var(--primary);
}

.contact-detail a,
.contact-detail span {
    color: var(--muted);
}

.contact-box {

    margin-block-start: 27px;

    padding: 21px;

    border-radius: 13px;

    background: var(--primary);

    color: #fff;

}

.contact-box p {

    color: #cbd9e0;

    margin-block: 5px 14px;

}

.contact-form {

    padding: 29px;

    border: 1px solid var(--line);

    border-radius: 15px;

    background: #fff;

    box-shadow: var(--shadow);

}

.contact-form h2 {

    font-size: 26px;

    color: var(--primary);

}

.contact-form > p {

    color: var(--muted);

    font-size: 14px;

    margin-block-end: 15px;

}

.contact-form label {

    display: block;

    margin-block: 12px 5px;

    color: var(--primary);

    font-weight: 700;

}

.contact-form input,
.contact-form select,
.contact-form textarea {

    width: 100%;

    padding: 11px 13px;

    border: 1px solid #dce4e8;

    border-radius: 8px;

    background: #fbfcfc;

    outline: none;

}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {

    border-color: var(--accent);

    box-shadow: 0 0 0 3px #20a6a61a;

}

.contact-form textarea {
    resize: vertical;
}

.submit {

    width: 100%;

    margin-block-start: 17px;

}

.contact-form > small {

    display: block;

    text-align: center;

    color: #87949c;

    font-size: 12px;

    margin-block-start: 10px;

}


/* زر واتساب الثابت */

.whatsapp {

    position: fixed;

    z-index: 10;

    inset-inline-end: 22px;

    inset-block-end: 22px;

    display: grid;

    place-items: center;

    width: 57px;

    height: 57px;

    border: 4px solid #fff;

    border-radius: 50%;

    background: #20b86a;

    color: #fff;

    font-size: 25px;

    box-shadow: 0 8px 25px #0003;

}


/* الأجهزة المتوسطة */

@media (max-width: 900px) {

    .nav-action {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        gap: 22px;
    }

    .contact-layout {
        gap: 25px;
    }

}


/* الجوال */

@media (max-width: 700px) {

    .section {
        padding-block: 60px;
    }

    .nav {
        min-height: 70px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {

        position: absolute;

        inset-inline: 0;

        inset-block-start: 100%;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 10px 5% 17px;

        background: #fff;

        border-block-end: 1px solid var(--line);

        box-shadow: 0 12px 25px #1431441a;

    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {

        padding: 12px 7px;

        border-block-end: 1px solid #f0f3f4;

    }

    .hero-grid {

        grid-template-columns: 1fr;

        padding-block: 48px 35px;

    }

    .hero-picture {
        min-height: 260px;
    }

    .hero-picture img {
        width: 85%;
    }

    .halo {
        width: 280px;
    }

    .features,
    .reviews,
    .product-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .gallery {

        grid-template-columns: 1fr;

        grid-template-rows: 250px 205px 205px;

    }

    .gallery-large {
        grid-row: auto;
    }

    .row-title,
    .products-heading,
    .cta-inner,
    .footer-inner {

        align-items: flex-start;

        flex-direction: column;

    }

    .product-img {
        height: 225px;
    }

    .contact-form {
        padding: 22px;
    }

    .footer-inner div {
        padding-block-start: 4px;
    }

}


/* الجوال الصغير */

@media (max-width: 420px) {

    .brand {
        font-size: 19px;
    }

    .actions {
        flex-direction: column;
    }

    .actions .btn {
        width: 100%;
    }

    .filters {
        gap: 5px;
    }

    .filter {

        padding: 7px 10px;

        font-size: 13px;

    }

    .whatsapp {

        inset-inline-end: 14px;

        inset-block-end: 14px;

        width: 52px;

        height: 52px;

    }

}