/* =========================================================
   Company Home - Hero Section Styles (مستقل عن باقي السكاشن)
   بانر غلاف ماليء الشاشة بالعرض والارتفاع
   ========================================================= */

:root {
    --ch-main: #222168;
    --ch-second: #6bbdcd;
    --ch-white: #ffffff;
    --ch-text: #4a4a5a;
    --ch-font: 'Plus Jakarta Sans', sans-serif;
}

.ch-hero * {
    box-sizing: border-box;
}

.ch-hero {
    direction: ltr;
    font-family: var(--ch-font);
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;

    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ch-hero.ch-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- الصورة كخلفية كاملة للسكشن ----------
   بنستخدم div بخلفية CSS (مش <img>) عشان نضمن التغطية الكاملة (Cover) في كل الشاشات
   من غير ما يتأثر بأي ستايل عام جاي من الثيم بيحط height:auto على كل الصور
------------------------------------------------------- */
.ch-hero__bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    z-index: 0;
}

/* تدرّج شفافية فوق الصورة عشان النص يفضل واضح ومقروء */
.ch-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        var(--ch-white) 0%,
        rgba(255, 255, 255, 0.92) 30%,
        rgba(255, 255, 255, 0.55) 55%,
        rgba(255, 255, 255, 0.1) 78%,
        rgba(255, 255, 255, 0) 100%
    );
}

/* ---------- المحتوى ---------- */
.ch-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.ch-hero__content {
    max-width: 560px;
}

.ch-hero__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ch-second);
    text-transform: uppercase;
    margin-bottom: 18px;
}

.ch-hero__heading {
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.2;
    font-weight: 800;
    color: var(--ch-main);
    margin: 0 0 20px;
}

.ch-hero__heading-accent {
    color: var(--ch-second);
}

.ch-hero__desc {
    color: var(--ch-text);
    font-size: 16px;
    line-height: 1.8;
    max-width: 480px;
    margin: 0 0 32px;
}

.ch-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ch-second);
    color: var(--ch-main);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(107, 189, 205, 0.35);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.ch-hero__cta-arrow {
    transition: transform 0.25s ease;
}

.ch-hero__cta:hover {
    background: var(--ch-main);
    color: var(--ch-white);
    transform: translateY(-2px);
}

.ch-hero__cta:hover .ch-hero__cta-arrow {
    transform: translateX(4px);
}

/* ---------- كلمات الديكور فوق الصورة مباشرة ---------- */
.ch-hero__tags {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ch-white);
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.ch-hero__tags--top {
    top: 8%;
    right: 5%;
    text-align: right;
    align-items: flex-end;
}

.ch-hero__tags--bottom {
    bottom: 8%;
    right: 5%;
    text-align: right;
    align-items: flex-end;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .ch-hero {
        min-height: 90vh;
        min-height: 90vh;
    }

    /* في الموبايل بنستخدم تظليل غامق فوق الصورة بدل التدرّج الأبيض، عشان النص يفضل واضح فوق أي صورة */
    .ch-hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(34, 33, 104, 0.15) 0%,
            rgba(34, 33, 104, 0.55) 55%,
            rgba(34, 33, 104, 0.88) 100%
        );
    }

    .ch-hero__inner {
        display: flex;
        align-items: center;
        min-height: 90vh;
        min-height: 90vh;
    }

    .ch-hero__content {
        max-width: 100%;
    }

    .ch-hero__eyebrow {
        color: var(--ch-second);
    }

    .ch-hero__heading {
        color: var(--ch-white);
    }

    .ch-hero__desc {
        color: rgba(255, 255, 255, 0.85);
        max-width: 100%;
    }

    .ch-hero__tags {
        display: none;
    }
}

@media (max-width: 480px) {
    .ch-hero__inner {
        padding: 0 20px;
    }
}