/* =========================================================
   HOME HERO
========================================================= */

.hero-home {
    position: relative;
    min-height: calc(100svh - 90px);

    background:
        #274F3A
        url("../assets/images/hero-bg.webp")
        center / cover
        no-repeat;

    overflow: hidden;
}


/* =========================================================
   OVERLAY
========================================================= */

.hero-home::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(20, 55, 39, 0.18),
            rgba(20, 55, 39, 0.04) 50%,
            rgba(20, 55, 39, 0.15)
        );

    pointer-events: none;
    z-index: 1;
}


/* =========================================================
   HERO GRID
========================================================= */

.hero-home .hero-grid {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: calc(100svh - 90px);

    display: block;
}


/* =========================================================
   HERO COPY
========================================================= */

.hero-home .hero-copy {
    position: static;
}


/* =========================================================
   HERO CONTENT — DEFAULT / ARABIC
========================================================= */

.hero-home .hero-content {
    position: absolute;

    top: 8%;
    right: 5%;
    left: auto;

    width: min(720px, 52%);

    padding: 8px 25px 12px;

    box-sizing: border-box;

    z-index: 6;

    direction: rtl;
    text-align: right;

    border-right: 4px solid #D8B74A;
    border-left: 0;

    background: transparent; /* إزالة الخلفية/الظل خلف العنوان العربي */
}


/* =========================================================
   HERO TITLE — DEFAULT / ARABIC
========================================================= */

.hero-home .hero-content h1 {
    margin: 0;

    color: #ffffff;

    font-family: Cairo, Arial, sans-serif;

    font-size: clamp(
        1.8rem,
        3vw,
        3.5rem
    );

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -1px;

    text-align: right;

    white-space: nowrap;

    text-shadow:
        0 4px 14px rgba(0, 0, 0, 0.4);
}


/* =========================================================
   ARABIC — CONTENT WRAPPER
========================================================= */
html[dir="rtl"] .hero-home .hero-content {
    position: absolute;

    top: 10%;
    left: 36%;
    right: auto;

    width: min(720px, 65%);

    padding: 8px 25px 12px;

    box-sizing: border-box;

    z-index: 6;

    direction: rtl;
    text-align: right;

    border-right: 4px solid #D8B74A;
    border-left: 0;

    background: transparent; /* إزالة الخلفية/الظل خلف العنوان العربي */
}



/* =========================================================
   ENGLISH — CONTENT WRAPPER
========================================================= */

html[dir="ltr"] .hero-home .hero-content {
    position: absolute;

    top: 10%;

    left: 16%;
    right: 3%;

    width: auto;

    padding: 8px 18px 12px;

    box-sizing: border-box;

    z-index: 6;

    direction: ltr;

    text-align: left;

    border: 0;

    background: transparent; /* إزالة الظل/الخلفية اللي ورا العنوان الإنجليزي */
}

/* =========================================================
   ENGLISH — TITLE
========================================================= */

html[dir="ltr"] .hero-home .hero-content h1 {
    margin: 0;

    color: #FFFFFF;

    font-family: Inter, Arial, sans-serif;

    font-size: clamp(
        1.3rem,
        2vw,
        2.4rem
    );

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -1px;

    text-align: left;

    white-space: nowrap;

    text-shadow:
        0 4px 14px rgba(0, 0, 0, 0.4);
}


/* =========================================================
   ENGLISH — SUBTITLE
========================================================= */

html[dir="ltr"] .hero-home .hero-content p {
    margin: 12px 0 0;

    color: #FFFFFF;

    font-family: Inter, Arial, sans-serif;

    font-size: clamp(
        1rem,
        1.5vw,
        1.6rem
    );

    font-weight: 600;

    line-height: 1.3;

    text-align: left;

    white-space: nowrap;

    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   ARABIC — SUBTITLE
========================================================= */

html[dir="rtl"] .hero-home .hero-content p {
    margin: 12px 0 0;

    color: #FFFFFF;

    font-family: Cairo, Arial, sans-serif;

    font-size: clamp(
        1rem,
        1.5vw,
        1.6rem
    );

    font-weight: 600;

    line-height: 1.3;

    text-align: right;

    white-space: nowrap;

    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.35);
}
/* =========================================================
   HERO ACTIONS
========================================================= */


html[dir="rtl"] .hero-home .hero-actions {
    left: auto;
    right: 5%;
}

.hero-home .hero-actions {
    position: absolute;

    top: 10%;
    left: 5%;
    right: auto;

    z-index: 7;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 10px;

    direction: ltr;
}


/* =========================================================
   ENGLISH — GOLD LINE
========================================================= */

html[dir="ltr"] .hero-home .hero-actions::after {
    content: "";

    position: absolute;

    top: 0;
    right: -18px;

    width: 4px;
    height: 20%;

    background: #D8B74A;

    border-radius: 2px;

    box-shadow:
        0 0 6px rgba(216, 183, 74, 0.25);
}


/* =========================================================
   BUTTONS — BASE
========================================================= */

.hero-home .hero-actions .btn {
    width: 140px;
min-width: 140px;
    height: 42px;

    padding: 0 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    box-sizing: border-box;

    border-radius: 12px;

    font-family: Inter, Arial, sans-serif;

    font-size: 0.85rem;

    font-weight: 800;

    text-align: center;

    white-space: nowrap;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


/* =========================================================
   BUTTONS — PRIMARY
========================================================= */

.hero-home .hero-actions .btn-primary {
    background: #E7B94F;

    color: #10261B;

    border: 1px solid #E7B94F;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15);
}



/* =========================================================
   BUTTONS — SECONDARY
========================================================= */

.hero-home .hero-actions .btn-light {
    background: rgba(31, 69, 50, 0.55);

    color: #FFFFFF;

    border: 1px solid #E7B94F;
}



/* =========================================================
   BUTTONS — HOVER
========================================================= */

.hero-home .hero-actions .btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   REVEAL
========================================================= */

.hero-home .reveal {
    opacity: 1;
    transform: none;
}


/* =========================================================
   RESPONSIVE — TABLET 
========================================================= */

@media (max-width: 1000px) {

    .hero-home {
        min-height: calc(100svh - 80px);
    }

    .hero-home .hero-grid {
        min-height: calc(100svh - 80px);
    }

    .hero-home .hero-content {
        width: min(650px, 55%);

        top: 8%;
    }

    .hero-home .hero-actions {
        top: 8%;
    }

    .hero-home .hero-actions .btn {
        height: 40px;

        padding: 0 13px;

        font-size: 0.82rem;
    }
}


/* =========================================================
   RESPONSIVE 
========================================================= */

@media (max-width: 768px) {

    .hero-home {
        min-height: calc(100svh - 70px);
    }

    .hero-home .hero-grid {
        min-height: calc(100svh - 70px);
    }


    /* Overlay */
    .hero-home::after {
        background:
            linear-gradient(
                180deg,
                rgba(39, 79, 58, 0.05),
                rgba(39, 79, 58, 0.08) 50%,
                rgba(20, 55, 39, 0.42)
            );
    }


    /* Content */
    .hero-home .hero-content {
        top: 8%;

        left: 18px;
        right: 18px;

        width: auto;

        padding: 8px 14px;

        border-right: 3px solid #D8B74A;
        border-left: 0;

        background:
            linear-gradient(
                90deg,
                transparent,
                rgba(31, 69, 50, 0.25)
            );
    }


    /* Content — Arabic */
    html[dir="rtl"] .hero-home .hero-content {
        right: 18px;
        left: 18px;
        

        border-right: 3px solid #D8B74A;
        border-left: 0;

        text-align: right;
    }


    /* Content — English */
    html[dir="ltr"] .hero-home .hero-content {
        left: 18px;
        right: 18px;

        border-right: 3px solid #D8B74A;
        border-left: 0;

        text-align: right;
    }


    /* Title */
    .hero-home .hero-content h1 {
        font-size: clamp(
            1.35rem,
            6.5vw,
            2rem
        );

        line-height: 1.25;

        letter-spacing: -0.5px;
    }


    /* Subtitle */
    .hero-home .hero-content p {
        margin-top: 8px;

        font-size: clamp(
            0.95rem,
            4.2vw,
            1.25rem
        );
    }


    /* Products visual */
    .hero-home .hero-products-visual {
        left: -5%;
        right: -5%;

        width: 110%;

        height: 48%;
    }


    /* Buttons */
    .hero-home .hero-actions {
        left: 18px;
        right: auto;

        top: 38%;

        gap: 10px;
    }

    html[dir="rtl"] .hero-home .hero-actions,
    html[dir="ltr"] .hero-home .hero-actions {
        left: 18px;
        right: auto;
    }

    .hero-home .hero-actions .btn {
        height: 40px;

        padding: 0 12px;

        font-size: 0.8rem;

        border-radius: 11px;
    }
}


/* =========================================================
   RESPONSIVE — SMALL PHONES 
========================================================= */

@media (max-width: 480px) {

    .hero-home .hero-content {
        top: 7%;
    }

    .hero-home .hero-products-visual {
        height: 45%;
    }

    .hero-home .hero-actions {
        top: 37%;
    }

    .hero-home .hero-actions .btn {
        height: 38px;

        padding: 0 11px;

        font-size: 0.78rem;
    }
}
/* =========================================================
   MOBILE HERO FIX
========================================================= */

@media (max-width: 760px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* HERO */
    .hero,
    .hero-home {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    /* HERO CONTENT */
    .hero-content,
    .hero-copy {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        padding-left: 28px;
        padding-right: 28px;
    }

    /* HERO TITLE */
    .hero h1,
    .hero-home h1,
    .hero-content h1,
    .hero-copy h1 {
        width: 100%;
        max-width: 100%;

        margin: 0;

        font-size: clamp(1.8rem, 7vw, 2.4rem);
        line-height: 1.12;
        letter-spacing: -0.025em;

        white-space: normal !important;
        overflow-wrap: break-word;
        word-break: normal;
    }

    /* HERO SUBTITLE */
    .hero p,
    .hero-home p,
    .hero-content p,
    .hero-copy p {
        width: 100%;
        max-width: 100%;

        margin-top: 12px;

        font-size: 0.9rem;
        line-height: 1.45;

        white-space: normal !important;
        overflow-wrap: break-word;
    }

    /* HERO VISUAL */
    .hero-visual {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    /* HERO BUTTONS */
    .hero-actions {
        left: 18px;
        right: auto;

        max-width: calc(100% - 36px);

        bottom: 8%;

        gap: 10px;
    }

    .hero-actions .btn {
        width: 145px;
        min-width: 145px;

        height: 46px;

        padding: 0 12px;

        font-size: 0.72rem;
    }
}
/* =========================================================
   MOBILE HERO BACKGROUND
========================================================= */

@media (max-width: 760px) {

    .hero-home {
        background:
         #274F3A
        url("../assets/images/hero-mobile.webp")
        center center / cover
         no-repeat;
        }

    }

@media (max-width: 760px) {

    .hero-actions::before,
    .hero-actions::after {
        display: none !important;
        content: none !important;
    }

}
/* =========================================================
   HOME — LANGUAGE SWITCH
========================================================= */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    direction: ltr;
    z-index: 50;
}

.lang-switch button {
    border: 0;
    background: transparent;

    padding: 0 3px;

    color: rgba(255, 255, 255, 0.75);

    font-family: Inter, Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;

    cursor: pointer;

    transition: color 0.2s ease;
}

.lang-switch button:hover {
    color: #D8B74A;
}

.lang-switch button.active {
    color: #D8B74A;
}