/* public/css/site/services-energy.css */

:root {
    --energy-ink: var(--black, #0a0a0a);
    --energy-bg: var(--white, #ffffff);
    --energy-muted: var(--muted, #6b6f76);
    --energy-line: var(--line, #e9eaec);
    --energy-card: var(--card, #f7f7f8);
    --energy-accent: var(--accent, #c9a552);
    --energy-accent-soft: var(--accent-2, #e2c777);
    --energy-accent-2: var(--accent-2, #e2c777);
    --energy-accent-ink: var(--accent-ink, #13100a);
    --energy-media-ratio: 16/9;
    --energy-media-ratio-sm: 4/3;
}

/* ===== HERO ===== */
.energy-hero {
    position: relative;
    color: #fff;
    background: radial-gradient(
            900px 320px at 10% -20%,
            rgba(201, 165, 82, 0.18),
            transparent 60%
        ),
        linear-gradient(180deg, #101214 0%, #0b0d10 100%);
    padding-block: clamp(32px, 12vh, 96px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.7);
    isolation: isolate;
    overflow: clip;
}
.energy-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        1000px 420px at 10% -30%,
        rgba(255, 255, 255, 0.06),
        transparent 55%
    );
    opacity: 0.9;
    z-index: 0;
}
.energy-hero__inner {
    text-align: center;
    position: relative;
    z-index: 1;
}
.energy-hero__title {
    margin: 0 0 6px;
    font-weight: 900;
    font-size: clamp(24px, 5.2vw, 40px);
    letter-spacing: 0.2px;
}
.energy-hero__line {
    display: block;
}
.energy-hero__line--soft {
    background: linear-gradient(
        90deg,
        var(--energy-accent),
        var(--energy-accent-2)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.energy-hero__lead {
    margin: 6px auto 12px;
    max-width: 62ch;
    color: #e8eef4;
    font-weight: 700;
    line-height: 1.9;
}

/* ===== Generic Section ===== */
.energy-section {
    padding-block: clamp(32px, 12vh, 92px);
}
.energy-section__title {
    margin: 0;
    font-weight: 700;
    color: var(--energy-ink);
    font-size: clamp(20px, 4.4vw, 32px);
    letter-spacing: 0.2px;
}
.energy-section__intro {
    margin: 8px 0 0;
    color: var(--energy-muted);
    font-weight: 600;
    line-height: 1.9;
}

/* ===== مقدمة الطاقة والتعدين – كرت مع خلفية صورة ===== */
.energy-intro {
    background: #020617;
    color: #e5e7eb;
    position: relative;
    overflow: hidden;
}
.energy-intro__inner {
    position: relative;
    z-index: 1;
}
.energy-intro__card {
    max-width: 880px;
    margin-inline: auto;
    padding: 20px 18px 18px;
    border-radius: 24px;
    background: radial-gradient(
            circle at 0% 0%,
            rgba(201, 165, 82, 0.18),
            transparent 52%
        ),
        linear-gradient(135deg, #050714, #0f172a);
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.energy-intro__title {
    color: #f9fafb;
}
.energy-intro__lead {
    margin: 10px 0 10px;
    font-weight: 700;
    color: #cbd5f5;
    line-height: 1.9;
}
.energy-intro__text {
    margin: 0 0 6px;
    font-weight: 500;
    color: #e5e7eb;
    line-height: 2;
}
.energy-intro__tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.energy-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(201, 165, 82, 0.08);
    border: 1px solid var(--energy-accent);
    color: var(--energy-accent-soft);
    font-size: 12px;
    font-weight: 600;
}
.energy-tag::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(
        circle at 30% 30%,
        var(--energy-accent-soft),
        var(--energy-accent)
    );
}

/* الخلفية الزخرفية للصورة */
.energy-intro__bg {
    position: absolute;
    inset-inline-end: max(0px, (100% - 1080px) / 2 - 40px);
    top: -6%;
    bottom: -18%;
    width: min(520px, 52vw);
    margin: 0;
    opacity: 0.6;
    pointer-events: none;
    mix-blend-mode: screen;
}
.energy-intro__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    border-radius: 28px;
}
@media (max-width: 768px) {
    .energy-intro__bg {
        opacity: 0.35;
        bottom: -10%;
        width: 80vw;
    }
}

/* ===== قائمة عامة – ستايل احترافي للنقاط ===== */
.energy-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}
.energy-list li {
    position: relative;
    padding-inline-start: 24px;
    font-size: 13px;
    font-weight: 600;
    color: #363b44;
    line-height: 1.9;
}
.energy-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.65em;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(201, 165, 82, 0.45);
    background: radial-gradient(
        circle at 30% 30%,
        var(--energy-accent-soft),
        var(--energy-accent)
    );
    box-shadow: 0 0 0 3px rgba(201, 165, 82, 0.14);
    transform: translateY(-50%);
}

/* قائمة بعلامة صح */
.energy-list--check li {
    padding-inline-start: 30px;
}
.energy-list--check li::before {
    content: "✓";
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #ffffff;
    color: var(--energy-accent);
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    top: 0.6em;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    transform: translateY(-50%);
}

/* ===== مجالات الطاقة والتعدين – لوحات + كولاج صور ===== */
.energy-domains {
    background: #f9fafb;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* هيدر القسم */
.energy-domains__head {
    max-width: 880px;
    margin: 0 auto 22px;
    text-align: center;
}
.energy-domains__eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--energy-muted);
}
.energy-domains__title {
    font-size: clamp(21px, 4.4vw, 30px);
}
.energy-domains__intro {
    margin-top: 8px;
}

/* جسم القسم: كروت + صور */
.energy-domains__body {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 20px;
    align-items: stretch;
}

/* كروت الطاقة والتعدين */
.energy-domains__cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.energy-domain {
    padding: 16px 16px 18px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.energy-domain::before {
    content: "";
    position: absolute;
    inset-inline-start: -6%;
    inset-block-start: -18%;
    width: 46%;
    height: 60%;
    background: radial-gradient(
        circle at 0 0,
        rgba(201, 165, 82, 0.16),
        transparent 60%
    );
    opacity: 0.7;
    pointer-events: none;
}

.energy-domain__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.energy-domain__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(201, 165, 82, 0.6);
    background: rgba(201, 165, 82, 0.06);
    color: var(--energy-accent-ink);
}

.energy-domain__badge--power {
    /* ممكن نخليه الافتراضي، أو تضيف تمييز بسيط لو حاب */
}

.energy-domain__badge--mining {
    border-style: dashed;
}

.energy-domain__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--energy-ink);
}

.energy-domain__intro {
    margin-top: 4px;
    font-size: 13px;
}

.energy-domain__list li {
    color: #111827;
}

.energy-domain__note {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--energy-accent-ink);
}

/* كولاج الصور */
.energy-domains__media {
    display: grid;
    grid-template-rows: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 10px;
    align-self: stretch;
    position: relative;
}

.energy-domains__media::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: radial-gradient(
        circle at 0 0,
        rgba(201, 165, 82, 0.24),
        transparent 55%
    );
    pointer-events: none;
    mix-blend-mode: soft-light;
    opacity: 0.65;
}

.energy-domains__tile {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.energy-domains__tile--primary {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.energy-domains__tile--secondary {
    opacity: 0.98;
    transform-origin: bottom left;
}

.energy-domains__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.6s ease-out;
}

@media (hover: hover) and (pointer: fine) {
    .energy-domains__tile:hover .energy-domains__image {
        transform: scale(1.06);
    }
}

/* موبايل / تابلت */
@media (max-width: 960px) {
    .energy-domains__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .energy-domains__media {
        grid-template-rows: minmax(0, 1.2fr) minmax(0, 1fr);
        margin-top: 6px;
    }

    .energy-domains__media::before {
        border-radius: 18px;
    }
}

@media (max-width: 640px) {
    .energy-domain {
        border-radius: 18px;
        padding-inline: 14px;
    }
    .energy-domains__tile {
        border-radius: 16px;
    }
}

/* ===== تقنيات حديثة ومعايير عالمية – صورة + كروت ===== */
.energy-tech {
    background: #020617;
    color: #e5e7eb;
    border-top: 1px solid rgba(15, 23, 42, 0.7);
    border-bottom: 1px solid rgba(15, 23, 42, 0.7);
}

.energy-tech__head {
    max-width: 780px;
    margin-inline: auto;
    text-align: center;
}
.energy-tech__head .energy-section__title {
    color: #f9fafb;
}
.energy-tech__head .energy-section__intro {
    color: #cbd5f5;
}

.energy-tech__body {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 20px;
    align-items: stretch;
}

.energy-tech__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.energy-tech__card {
    background: rgba(15, 23, 42, 0.94);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 14px 16px 16px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.5);
}
.energy-tech__card--wide {
    grid-column: span 2;
}

.energy-tech__card-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #e5e7eb;
}
.energy-tech__card-text {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5f5;
    line-height: 1.9;
}

/* عمود الصورة */
.energy-tech__media {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.energy-tech__thumb {
    width: 100%;
    max-width: 520px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.9);
    background: #000;
    aspect-ratio: 4 / 3;
}
.energy-tech__thumb-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.6s ease-out;
}

@media (hover: hover) and (pointer: fine) {
    .energy-tech__thumb:hover .energy-tech__thumb-image {
        transform: scale(1.06);
    }
}

@media (max-width: 960px) {
    .energy-tech__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .energy-tech__media {
        order: -1;
    }

    .energy-tech__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .energy-tech__card--wide {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .energy-tech__thumb {
        border-radius: 18px;
    }
}

/* ===== إدارة احترافية للمشاريع الضخمة – تايم لاين ===== */
.energy-management {
    background: var(--section-background-color);
}
.energy-management__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 22px;
    align-items: flex-start;
}
.energy-management__content {
    min-width: 0;
}
.energy-management__note {
    margin: 14px 0 0;
    font-weight: 700;
    color: #3b2c10;
}

.energy-timeline {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    position: relative;
}
.energy-timeline::before {
    content: "";
    position: absolute;
    inset-inline-start: 8px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(201, 165, 82, 0.5),
        rgba(226, 199, 119, 0.45)
    );
}
.energy-timeline__item {
    position: relative;
    padding-inline-start: 26px;
    padding-block: 6px;
}
.energy-timeline__item::before {
    content: "";
    position: absolute;
    inset-inline-start: 2px;
    top: 13px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    background: radial-gradient(
        circle at 30% 30%,
        var(--energy-accent-soft),
        var(--energy-accent)
    );
    box-shadow: 0 0 0 4px rgba(201, 165, 82, 0.18);
}
.energy-timeline__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}
.energy-timeline__text {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.9;
}

/* صورة جانبية مصغرة */
.energy-management__media {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    background: #000;
    aspect-ratio: var(--energy-media-ratio-sm);
}
.energy-management__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 0.6s ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .energy-management__media:hover .energy-management__image {
        transform: scale(1.06);
    }
}
@media (max-width: 960px) {
    .energy-management__layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===== استدامة تعيد تشكيل قطاع الطاقة والتعدين ===== */
.energy-sustain {
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.energy-sustain__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: center;
}

.energy-sustain__content {
    min-width: 0;
}

.energy-sustain__text {
    margin: 10px 0 0;
    font-weight: 600;
    color: #4d525a;
    line-height: 2;
}

.energy-sustain__highlight {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(201, 165, 82, 0.06);
    border: 1px dashed rgba(201, 165, 82, 0.55);
    color: var(--energy-accent-ink);
    font-weight: 700;
    line-height: 2;
}

.energy-sustain__list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.energy-sustain__list-item {
    position: relative;
    padding-inline-start: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #4d525a;
    line-height: 1.9;
}

.energy-sustain__list-item::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(
        circle at 30% 30%,
        var(--energy-accent-soft),
        var(--energy-accent)
    );
    box-shadow: 0 0 0 3px rgba(201, 165, 82, 0.14);
    transform: translateY(-50%);
}

.energy-sustain__media {
    display: flex;
    justify-content: center;
}

.energy-sustain__frame {
    margin: 0;
    max-width: 560px;
    width: 100%;
    aspect-ratio: 5 / 2.6;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    background: #000;
    border: 1px solid rgba(15, 23, 42, 0.9);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.8);
}

.energy-sustain__frame::before {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 999px;
    border: 1px solid rgba(201, 165, 82, 0.6);
    pointer-events: none;
}

.energy-sustain__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 0.7s ease-out;
}

@media (hover: hover) and (pointer: fine) {
    .energy-sustain__frame:hover .energy-sustain__image {
        transform: scale(1.09);
    }
}

.energy-sustain__chips {
    position: absolute;
    inset-inline: 10%;
    bottom: 10%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.energy-sustain__chip {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(201, 165, 82, 0.65);
    color: #f9fafb;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.energy-sustain__chip--soft {
    background: rgba(15, 23, 42, 0.72);
    border-style: dashed;
}

@media (max-width: 960px) {
    .energy-sustain__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .energy-sustain__media {
        order: -1;
    }
}

@media (max-width: 640px) {
    .energy-sustain__frame {
        border-radius: 32px;
    }

    .energy-sustain__frame::before {
        inset: 10%;
        border-radius: 28px;
    }

    .energy-sustain__chips {
        inset-inline: 12%;
        bottom: 8%;
    }
}

/* ===== صورة / جاليري ختامي ===== */
.energy-gallery {
    padding-block: clamp(0px, 0vh, 0px);
    border-top: 0;
}

.energy-gallery [data-anim],
.energy-gallery [data-anim].is-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
}

.energy-gallery__frame1 {
    position: relative;
    width: 100vw;
    margin-inline: auto;
    margin: 0;
    max-height: 620px;
    overflow: hidden;
    background: transparent;
}

.energy-gallery__frame1::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0) 55%,
        var(--energy-bg, #ffffff) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.energy-gallery__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center bottom;
}

.energy-gallery__frame > .energy-gallery__image {
    position: relative;
    z-index: 0;
}

@media (max-width: 640px) {
    .energy-gallery__frame1 {
        border-radius: 16px;
    }
}

/* ===== Small screens tweaks ===== */
@media (max-width: 640px) {
    .energy-intro__card {
        padding-inline: 14px;
        border-radius: 20px;
    }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    *[data-anim] {
        animation: none !important;
        transition: none !important;
    }
}
