@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap");

* {
    font-family: "IBM Plex Sans Arabic", sans-serif;
}
:root {
    --black: #0e0101;
    --white: #f0f0f0;
    --brand: #b32025;
    --surface: #bfbfbf;
}
html {
    scroll-behavior: smooth;
}
section[id],
footer[id] {
    scroll-margin-top: 7rem;
}
.text-black {
    color: var(--black);
}
.text-white {
    color: var(--white);
}
.text-brand {
    color: var(--brand);
}
.text-surface {
    color: var(--surface);
}
.bg-white {
    background-color: var(--white);
}
.bg-black {
    background-color: var(--black);
}
.bg-brand {
    background-color: var(--brand);
}
.bg-surface {
    background-color: var(--surface);
}
.border-black {
    border: 1px solid var(--black);
}
.border-white {
    border: 1px solid var(--white);
}
.border-brand {
    border: 1px solid var(--brand);
}
.border-right-brand {
    border-right: 2px solid var(--brand);
}
.border-top-brand {
    border-top: 2px solid var(--brand);
}
.border-bottom-brand {
    border-bottom: 3px solid var(--brand);
}
.body {
    scroll-behavior: smooth;
}
.border-bottom-brand {
    border-bottom: 2px solid var(--brand);
}
body::-webkit-scrollbar {
    width: 4px;
}
body::-webkit-scrollbar-track {
    background-color: var(--white);
}
body::-webkit-scrollbar-thumb {
    background-color: var(--brand);
}
.wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    direction: rtl;
}
.navbar {
    width: 96%;
    max-width: 1440px;
    display: flex;
    /* background-color: hsla(0, 0%, 75%, 0.113); */
    position: absolute;
    left: auto;
    z-index: 99;
}
.navbar-image-container {
    width: 90px;
}
.navbar-image-container img {
    width: 100%;
}
.menu-toggle,
.mobile-menu,
.mobile-menu-backdrop {
    display: none;
}
main {
    max-width: 1440px;
}
.hero-section-image {
    height: 60vh;
    width: 100%;
    background-image: url(./images/hero.jpg);
    background-repeat: no-repeat;
    background-size: 100%;
    background-origin: center;
    position: relative;
    overflow: hidden;
}
.hero-section-logo-container {
    position: absolute;
    bottom: 0px;
    left: 0px;
    height: 200px;
    width: 200px;
    background-color: var(--brand);
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0px 100%, 0 0);
}
.hero-section-image img {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 200px;
    height: 200px;
}

.hero-actions {
    flex-wrap: wrap;
    align-content: flex-end;
}

.about-item {
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.about-long-text {
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.product {
    width: calc((100% / 3) - 24px);
    min-width: 400px;
    clip-path: polygon(
        20px 0,
        /* top edge, after top-left cut */ calc(100% - 20px) 0,
        /* top edge, before top-right cut */ 100% 20px,
        /* right edge, after top-right cut */ 100% calc(100% - 20px),
        /* right edge, before bottom-right cut */ calc(100% - 20px) 100%,
        /* bottom edge, after bottom-right cut */ 20px 100%,
        /* bottom edge, before bottom-left cut */ 0 calc(100% - 20px),
        /* left edge, after bottom-left cut */ 0 20px /* left edge, before top-left cut */
    );
}
.cooperator {
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.social-link {
    clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
}

.footer {
    background: var(--black);
    color: var(--white);
    padding: 5rem 3rem 1.5rem;
}

.footer-box {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 1fr 1.15fr;
    gap: 3rem;
    max-width: 1320px;
    margin: auto;
    padding-bottom: 4rem;
}

.footer-intro h2 {
    color: var(--white);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    margin: 1.25rem 0 1rem;
}

.footer-intro > p,
.footer-form > p {
    color: rgb(240 240 240 / 0.65);
    font-size: 0.95rem;
    line-height: 2;
}

.footer-logo {
    display: block;
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    background: var(--white);
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

.footer h3 {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    padding-right: 0.75rem;
    border-right: 2px solid var(--brand);
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-links a,
.footer-contact a,
.footer-contact p {
    color: rgb(240 240 240 / 0.7);
    font-size: 0.9rem;
    font-style: normal;
    transition: color 160ms ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--brand);
}

.footer-contact {
    gap: 0.85rem;
}

.footer-contact span {
    color: var(--white);
    font-weight: 600;
    margin-left: 0.45rem;
}

.footer-contact b {
    font-weight: 400;
}

.footer-form {
    padding: 1.5rem;
    background: #1c1010;
    clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.footer-form h3 {
    margin-bottom: 0.8rem;
}

.footer-form input {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.8rem 1rem;
    color: var(--white);
    background: transparent;
    border: 1px solid rgb(240 240 240 / 0.35);
    outline: none;
}

.footer-form input:focus {
    border-color: var(--brand);
}

.footer-form button {
    width: 100%;
    margin-top: 0.7rem;
    padding: 0.8rem 1rem;
    color: var(--white);
    background: var(--brand);
    cursor: pointer;
    border: 0;
    font-weight: 600;
    transition: background 160ms ease;
}

.footer-form button:hover {
    background: #d1353a;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1320px;
    margin: auto;
    padding-top: 1.5rem;
    color: rgb(240 240 240 / 0.5);
    border-top: 1px solid rgb(240 240 240 / 0.15);
    font-size: 0.8rem;
}

.footer-bottom a:hover {
    color: var(--brand);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1250px) {
    .product {
        width: calc(50% - 1rem);
        min-width: 320px;
    }
}

@media (max-width: 900px) {
    .hero-section {
        min-height: auto;
    }

    .hero-section-image {
        height: 54vh;
        min-height: 360px;
        background-size: cover;
        background-position: center;
    }

    .hero-section-text {
        height: auto !important;
        flex-direction: column;
        gap: 48px;
    }

    .hero-text,
    .hero-actions,
    .about-section > .about-column {
        width: 100% !important;
        height: auto !important;
    }

    .hero-text {
        min-height: 310px;
        padding: 3rem 2rem !important;
    }

    .hero-actions {
        justify-content: flex-start !important;
        padding: 0 2rem 3rem !important;
    }

    .about-section {
        flex-direction: column;
        gap: 2rem !important;
        padding: 7rem 2rem !important;
    }

    .about-section > .about-content > .section-title {
        font-size: 2.25rem !important;
    }

    .about-long-text {
        font-size: 1rem !important;
    }

    .products-section,
    .partners-section,
    .contact-section {
        min-height: auto !important;
        padding: 6rem 2rem !important;
    }

    .product-container {
        justify-content: center !important;
    }

    .social-link {
        width: calc(50% - 0.5rem);
        min-width: 280px;
    }
}

@media (max-width: 600px) {
    .hero-section-image {
        height: 48vh;
        min-height: 300px;
        margin-top: 100px;
    }

    .hero-section-logo-container,
    .hero-section-image img {
        width: 130px;
        height: 130px;
    }

    .hero-section-logo-container {
        clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%, 0 0);
    }

    .hero-text {
        min-height: 0;
        padding: 2.5rem 1.5rem !important;
    }

    .hero-text h1 {
        font-size: 3.25rem !important;
    }

    .hero-text p {
        font-size: 1rem !important;
        line-height: 2;
    }

    .hero-actions {
        gap: 0.75rem !important;
        padding: 0 1.5rem 2.5rem !important;
    }

    .hero-actions-link {
        flex: 1;
        padding: 0.8rem 0.65rem !important;
        text-align: center;
    }

    .hero-actions-link-wide {
        flex: 0 0 100%;
    }

    .about-section,
    .products-section,
    .partners-section,
    .contact-section {
        padding: 4.5rem 1.5rem !important;
    }

    .about-section > .about-column:first-child {
        gap: 1rem !important;
    }

    .about-item {
        padding: 1.25rem !important;
    }

    .about-item > p:first-child {
        font-size: 3.5rem !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    .product-container {
        gap: 1.25rem !important;
        margin-top: 2.5rem !important;
    }

    .product {
        width: 100%;
        min-width: 0;
        padding: 1.5rem !important;
    }

    .product > .product-title {
        font-size: 1.5rem !important;
    }

    .product > p:last-child {
        font-size: 0.95rem !important;
        line-height: 1.9;
    }

    .product img {
        width: 65% !important;
    }

    .partners-section > div {
        margin-top: 2.5rem !important;
    }

    .cooperator {
        width: 100%;
        padding: 0.85rem 1rem !important;
        font-size: 0.95rem !important;
        line-height: 1.9;
    }

    .contact-section > div {
        margin-top: 2.5rem !important;
    }

    .social-link {
        width: 100%;
        min-width: 0;
        max-width: 380px;
        height: 10rem;
        padding: 1.5rem !important;
    }
}

@media (max-width: 760px) {
    .navbar {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 1.5rem !important;
    }

    .navbar-image-container {
        width: 4.25rem;
    }

    .navbar-link-conatiner {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.6rem 0.85rem;
        color: var(--white);
        background: var(--black);
        border: 0;
        cursor: pointer;
        font-size: 0.85rem;
        font-weight: 600;
        clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    }
    .menu-toggle svg {
        height: 32px;
        width: 32px;
    }
    .mobile-menu-close svg {
        height: 32px;
        width: 32px;
    }
    .mobile-menu-backdrop {
        display: block;
        position: fixed;
        z-index: 120;
        inset: 0;
        background: rgb(14 1 1 / 0.55);
        opacity: 0;
        pointer-events: none;
        transition: opacity 240ms ease;
    }

    .mobile-menu {
        display: flex;
        position: fixed;
        z-index: 130;
        top: 0;
        right: 0;
        width: min(86vw, 360px);
        height: 100dvh;
        padding: 1.5rem;
        color: var(--white);
        background: var(--black);
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: -16px 0 40px rgb(0 0 0 / 0.2);
    }

    .mobile-menu.is-open {
        transform: translateX(0);
    }

    .mobile-menu-open .mobile-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 950px) {
    .footer-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 3rem 1.5rem 1.25rem;
    }

    .footer-box {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
