/* public/css/site/investments.css */

/* ===== Hero ===== */
.inv-hero {
    padding-block: clamp(40px, 14vh, 110px);
    background: radial-gradient(
            900px 320px at 10% -20%,
            rgba(201, 165, 82, 0.16),
            transparent 60%
        ),
        linear-gradient(135deg, #050814, #0b0d10 60%, #020617 100%);
    color: #f9fafb;
    border-bottom: 1px solid rgba(15, 23, 42, 0.7);
    position: relative;
    isolation: isolate;
    overflow: clip;
}

.inv-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin-inline: auto;
}

.inv-hero__title {
    margin: 0;
    font-size: clamp(26px, 5.6vw, 40px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.2px;
}

.inv-hero__line {
    display: block;
}

.inv-hero__line--accent {
    background: linear-gradient(
        90deg,
        var(--accent, #c9a552),
        var(--accent-2, #e2c777)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== Sections ===== */
.inv-section {
    padding-block: clamp(28px, 9vh, 80px);
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.inv-section--alt {
    background: var(--section-background-color, #f7f7f8);
}

.inv-title {
    margin: 0;
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 900;
    color: inherit;
}

/* ===== Intro (نص + صورة) ===== */
.inv-intro {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.inv-intro__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(16px, 3vw, 28px);
    margin-inline: auto;
    align-items: center;
}

.inv-intro__content {
    min-width: 0;
    text-align: start;
}

[dir="rtl"] .inv-intro__content {
    text-align: start;
}

.inv-intro__subtitle {
    margin: 6px 0 4px;
    font-weight: 800;
    font-size: 16px;
    color: var(--black, #0b0f19);
}

.inv-intro__text {
    margin: 10px 0 0;
    font-weight: 600;
    color: var(--muted, #6b6f76);
    line-height: 1.9;
}

/* Intro media (الصورة) */
.inv-intro__media {
    min-width: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line, #e5e7eb);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    background: #020617;
}

.inv-intro__media picture,
.inv-intro__media img {
    display: block;
    width: 100%;
    height: 100%;
}

.inv-intro__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== CTA + Form ===== */
/* خلفية بصورة + اندماج أبيض من الأعلى بدون فلتر أسود عام */
.inv-cta {
    position: relative;
    border-bottom: none;
    background: transparent;
    isolation: isolate;
    overflow: hidden;
    color: var(--black, #0b0f19);
}

.inv-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(
            to bottom,
            #ffffff 0,
            #ffffff 40px,
            rgba(255, 255, 255, 0.9) 80px,
            rgba(255, 255, 255, 0) 140px
        ),
        var(--inv-cta-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateZ(0);
}

.inv-cta__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(16px, 3vw, 28px);
    align-items: flex-start;
    position: relative;
    z-index: 1;
    padding-top: 40px;
}

.inv-cta .inv-title {
    color: var(--black, #0b0f19);
}

/* فلتر أبيض خفيف خلف النص */
.inv-cta__text {
    min-width: 0;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(3px);
}

.inv-cta__lead {
    margin: 10px 0 4px;
    font-weight: 700;
    color: var(--muted, #4b5563);
}

.inv-cta__note {
    margin: 4px 0 0;
    font-weight: 700;
    color: var(--accent, #c9a552);
}

.inv-cta__form {
    min-width: 0;
}

.inv-form {
    display: grid;
    gap: 10px;
    padding: 16px 16px 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--line, #e5e7eb);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.inv-form__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inv-form__field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--black, #0b0f19);
}

.inv-form__field input,
.inv-form__field select,
.inv-form__field textarea {
    border-radius: 10px;
    border: 1px solid var(--line, #e5e7eb);
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
    background: #f9fafb;
    color: var(--text, #0c0c0c);
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease,
        background 0.16s ease;
}

.inv-form__field textarea {
    resize: vertical;
    min-height: 96px;
}

.inv-form__field input:focus,
.inv-form__field select:focus,
.inv-form__field textarea:focus {
    border-color: var(--accent, #c9a552);
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(201, 165, 82, 0.25);
}

.inv-form__submit {
    margin-top: 6px;
}

/* ===== Page transition & scroll animations ===== */

.inv-page {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.inv-page.is-loaded {
    opacity: 1;
    transform: none;
}

.inv-page.is-leaving {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}

/* عناصر data-anim عند الدخول */
.inv-page [data-anim] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.inv-page [data-anim="left"] {
    transform: translateX(26px);
}

.inv-page [data-anim="up"] {
    transform: translateY(26px);
}

.inv-page [data-anim].is-visible {
    opacity: 1;
    transform: none;
}

/* ===== Alerts (Success) - Forced for Investments ===== */
.inv-form .careers-alert {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    margin: 10px 0 12px !important;
}

.inv-form .careers-alert__icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 32px !important;
    border: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
    color: #0b0f19 !important;
}

.inv-form .careers-alert__title {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0b0f19 !important;
    line-height: 1.55 !important;
}

.inv-form .careers-alert__text {
    margin: 3px 0 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
    line-height: 1.85 !important;
}

.inv-form .careers-alert--success {
    border-color: #bfe6d3 !important;
    background: #ecfdf5 !important;
}

.inv-form .careers-alert--success .careers-alert__icon {
    border-color: #bfe6d3 !important;
    background: #d1fae5 !important;
    color: #0f766e !important;
}

/* Match contact error style */
.contact-error {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #b91c1c;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .inv-intro__layout {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .inv-intro__layout {
        grid-template-columns: 1fr;
        max-width: 880px;
    }

    .inv-intro__content {
        text-align: center;
    }

    .inv-intro__media {
        max-width: 620px;
        margin-inline: auto;
    }

    .inv-cta__layout {
        grid-template-columns: 1fr;
    }

    .inv-cta__text {
        text-align: center;
        margin-bottom: 12px;
    }
}
