/* public/css/site/media-safety.css */

/* ===== Hero ===== */
.safety-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;
}

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

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

.safety-hero__line {
    display: block;
}

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

.safety-hero__lead {
    margin: 14px 0 0;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.9;
}

.safety-hero__lead--soft {
    opacity: 0.9;
}

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

.safety-section__head {
    text-align: center;
    margin-bottom: clamp(16px, 3.5vw, 24px);
}

.safety-section__title {
    margin: 0;
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 900;
    color: var(--black, #0b0f19);
}

.safety-section__title--light {
    color: #f9fafb;
}

.safety-section__subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #6b6f76);
}

/* ===== Intro ===== */
.safety-intro {
    background: #ffffff;
}

.safety-intro__layout {
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.safety-intro__content {
    text-align: start;
}

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

.safety-intro__text--soft {
    opacity: 0.95;
}

.safety-intro__media {
    margin: 0;
}

.safety-intro__image-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line, #e5e7eb);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
    background: #020617;
}

.safety-intro__image {
    display: block;
    width: 100%;
    height: min(360px, 60vh);
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 0.6s ease-out;
}

@media (hover: hover) and (pointer: fine) {
    .safety-intro__image-wrap:hover .safety-intro__image {
        transform: scale(1.06);
    }
}

@media (max-width: 880px) {
    .safety-intro__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .safety-intro__media {
        order: -1;
    }
}

/* ===== Main safety grid ===== */
.safety-main {
    background: #f9fafb;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 22px);
}

.safety-card {
    border-radius: 18px;
    border: 1px solid var(--line, #e5e7eb);
    background: #ffffff;
    padding: 14px 14px 16px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.safety-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--black, #0b0f19);
}

.safety-card__body {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #4b5563);
    line-height: 1.9;
}

/* ===== Safety lists (داخل الكروت) ===== */
.safety-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.safety-list li {
    position: relative;
    /* بدل padding يمين/يسار: اجعلها حسب اتجاه الصفحة */
    padding-inline-start: 18px; /* start = يمين في RTL ويسار في LTR */
    padding-inline-end: 0;

    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #4b5563);
    line-height: 1.8;
}

.safety-list li::before {
    content: "";
    position: absolute;
    top: 0.85em;

    /* بدل right/left: ضعها في بداية السطر حسب الاتجاه */
    inset-inline-start: 0; /* start = يمين في RTL ويسار في LTR */

    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: radial-gradient(
        circle at 30% 30%,
        var(--accent-2, #e2c777),
        var(--accent, #c9a552)
    );
    transform: translateY(-50%);
}

/* ===== Commitment block ===== */
.safety-commitment {
    background: radial-gradient(
            900px 360px at 50% 0,
            rgba(201, 165, 82, 0.18),
            transparent 65%
        ),
        #020617;
    color: #f9fafb;
}

.safety-commitment__layout {
    max-width: 1000px;
    margin-inline: auto;
}

.safety-commitment__content {
    text-align: start;
}

.safety-commitment__text {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 2;
}

/* ===== Safety message (quote) ===== */
.safety-message {
    background: #ffffff;
}

.safety-message__layout {
    max-width: 700px;
    margin-inline: auto;
}

.safety-message__content {
    text-align: center;
}

.safety-message__quote {
    margin: 14px auto 0;
    max-width: 640px;
    font-size: 15px;
    font-weight: 700;
    line-height: 2;
    color: var(--black, #0b0f19);
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(201, 165, 82, 0.35);
    background: radial-gradient(
            600px 260px at 50% 0,
            rgba(201, 165, 82, 0.09),
            transparent 70%
        ),
        #f9fafb;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .safety-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .safety-hero {
        padding-block: clamp(28px, 11vh, 70px);
    }

    .safety-card__title {
        font-size: 14px;
    }

    .safety-card__body,
    .safety-list li {
        font-size: 13px;
    }

    .safety-message__quote {
        font-size: 14px;
    }
}
