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

:root {
    --ink: var(--black, #0a0a0a);
    --bg: var(--white, #fff);
    --muted: var(--muted, #6b6f76);
    --line: var(--line, #e9eaec);
    --card: var(--card, #f7f7f8);
    --ac: var(--accent, #c9a552);
    --ac2: var(--accent-2, #e2c777);
    --ac-ink: var(--accent-ink, #13100a);
    --sec-bg: #faf9f6;
}

/* ===== HERO ===== */
.build-hero {
    position: relative;
    color: #fff;
    background: radial-gradient(
            700px 280px at 95% -15%,
            rgba(201, 165, 82, 0.12),
            transparent 60%
        ),
        linear-gradient(180deg, #101214 0%, #1a1f25 100%);
    padding-block: clamp(32px, 12vh, 96px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    isolation: isolate;
    overflow: clip;
}
.build-hero__inner {
    text-align: center;
    position: relative;
    z-index: 1;
}
.build-hero__title {
    margin: 0 0 6px;
    font: 900 clamp(24px, 5.2vw, 40px) / 1.15 Tajawal, system-ui;
    letter-spacing: 0.2px;
}
.build-hero__line {
    display: block;
}
.build-hero__line--soft {
    background: linear-gradient(90deg, var(--ac), var(--ac2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.build-hero__lead {
    margin: 6px auto 12px;
    max-width: 62ch;
    color: #e9eef4;
    font-weight: 700;
    line-height: 1.9;
}

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

.build-section__intro,
.build-section__intro {
    /* للانسجام لو استخدمناه مع أكثر من قسم */
}

/* ===== مقدمة البناء والتشييد ===== */
.build-intro {
    background: var(--bg);
}
.build-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: center;
}
.build-intro__head {
    margin-bottom: 12px;
}
.build-intro__body {
    max-width: 880px;
}
.build-intro__lead {
    margin: 0 0 10px;
    font-weight: 700;
    color: var(--muted);
    line-height: 1.9;
}
.build-intro__text {
    margin: 0;
    font-weight: 600;
    color: #4d525a;
    line-height: 2;
}

/* صورة مقدمة البناء */
.build-intro__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.14);
    background: #000;
    aspect-ratio: 16 / 9;
}
.build-intro__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) {
    .build-intro__media:hover .build-intro__image {
        transform: scale(1.06);
    }
}
@media (max-width: 960px) {
    .build-intro__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===== حلول البناء (two col) ===== */
.build-solutions {
    background: #fff;
    padding-bottom: 0 !important;
}
.build-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: center;
}
.build-two-col__content {
    min-width: 0;
}
.build-section__intro {
    margin: 8px 0 10px;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.9;
}

/* صورة حلول البناء */
.build-two-col__media {
    display: flex;
    justify-content: center;
}
.build-two-col__frame {
    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: 4 / 3;
}
.build-two-col__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) {
    .build-two-col__frame:hover .build-two-col__image {
        transform: scale(1.06);
    }
}
@media (max-width: 960px) {
    .build-two-col {
        grid-template-columns: minmax(0, 1fr);
    }
    .build-two-col__frame {
        max-width: 360px;
        margin-inline: auto;
    }
}

/* ===== قائمة عامة للأقسام (تصميم أنعم واحترافي) ===== */
.build-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.build-list li {
    position: relative;
    padding-inline-start: 24px;
    font-size: 13px;
    font-weight: 600;
    color: #363b44;
    line-height: 1.9;
}

/* نقطة افتراضية (لدينا في عدة أقسام) */
.build-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.35);
    background: radial-gradient(circle at 30% 30%, var(--ac2), var(--ac));
    box-shadow: 0 0 0 3px rgba(201, 165, 82, 0.08);
    transform: translateY(-50%);
}

/* قائمة بعلامة صح – تستخدم في قسم إدارة العمليات */
.build-list--check li {
    padding-inline-start: 30px;
}

.build-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(--ac);
    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%);
}

/* قائمة بنقاط عادية – تستخدم في قسم الجودة والسلامة */
.build-list--bullets li {
    padding-inline-start: 24px;
}

.build-list--bullets li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: radial-gradient(circle at 30% 30%, #ffffff, #e5e7eb);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05);
    top: 0.65em;
    transform: translateY(-50%);
}

/* ===== إدارة عمليات التشييد (صورة 70% يسار + لوحة نص سوداء 30%) ===== */
.build-ops {
    background: var(--bg);
    padding-block: clamp(40px, 14vh, 110px);
}
.build-ops__shell {
    display: flex;
    min-height: clamp(260px, 70vh, 520px);
}

/* الصورة 70% من عرض الشاشة ومحاذية لليسار */
.build-ops__media {
    flex: 0 0 70vw;
    max-width: 70vw;
    margin: 0;
}
.build-ops__frame {
    width: 100%;
    height: 100%;
    border-radius: 0 26px 26px 0;
    overflow: hidden;
    background: #000;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22);
}
.build-ops__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) {
    .build-ops__frame:hover .build-ops__image {
        transform: scale(1.06);
    }
}

/* اللوحة السوداء للنص في الجزء المتبقي */
.build-ops__panel {
    flex: 1;
    background: #020617;
    color: #e5e7eb;
    display: flex;
    align-items: center;
}
.build-ops__panel-inner {
    /* نضبط عرض النص داخل الـ container */
}
.build-ops__title {
    color: #facc15;
}
.build-ops__intro {
    color: #e5e7eb;
}
.build-ops__list li {
    color: #cbd5f5;
}

/* موبايل: الصورة فوق والنص تحت بعرض كامل */
@media (max-width: 960px) {
    .build-ops__shell {
        flex-direction: column;
        min-height: auto;
    }
    .build-ops__media {
        flex: 0 0 auto;
        max-width: 100vw;
    }
    .build-ops__frame {
        border-radius: 0;
        height: clamp(220px, 46vh, 360px);
    }
    .build-ops__panel {
        width: 100%;
    }
}

/* ===== الهندسة والتقنيات + التشطيبات ===== */
.build-tech-finishing {
    background: #fff;
    padding-top: 0 !important;
}
.build-tech-finishing__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 20px;
    margin-bottom: 18px;
}
.build-tech,
.build-finishing {
    padding: 14px 16px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
}
@media (max-width: 960px) {
    .build-tech-finishing__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===== شرائح صور كاملة العرض حول قسم التقنيات والتشطيبات ===== */
/* .build-band {
    padding-block: clamp(16px, 4vh, 28px);
    background: var(--bg);
} */

.build-band__frame {
    width: 100vw;
    margin-inline: auto;
    height: clamp(360px, 85vh, 720px);
    overflow: hidden;
    background: #000;
    position: relative;
    border-radius: 0;
}

.build-band__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 0.6s ease-out;
    position: relative;
    z-index: 0;
}

.build-band__frame::before {
    content: "";
    position: absolute;
    inset: 0 0 55% 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;

    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        rgba(255, 255, 255, 0.95) 10%,
        rgba(255, 255, 255, 0.6) 25%,
        rgba(255, 255, 255, 0) 100%
    );
}

.build-band__frame::after {
    content: "";
    position: absolute;
    inset: 65% 0 0 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;

    background: linear-gradient(
        to top,
        var(--sec-bg) 0%,
        rgba(250, 249, 246, 0.9) 20%,
        rgba(250, 249, 246, 0) 100%
    );
}

@media (max-width: 640px) {
    .build-band__frame {
        border-radius: 14px;
    }
}

/* ===== إدارة الجودة والسلامة ===== */
.build-quality {
    background: var(--bg);
}
.build-quality__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: center;
}
.build-quality__content {
    min-width: 0;
}
.build-quality__media {
    display: flex;
    justify-content: center;
}
.build-quality__frame {
    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: 4 / 3;
}
.build-quality__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) {
    .build-quality__frame:hover .build-quality__image {
        transform: scale(1.06);
    }
}
@media (max-width: 960px) {
    .build-quality__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .build-quality__frame {
        max-width: 360px;
        margin-inline: auto;
    }
}

/* ===== مشاريع تُبنى لتدوم (صورة 75% + كرت أسود متداخل في الجهة المعاكسة) ===== */
.build-projects {
    background: var(--sec-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    padding-block: clamp(40px, 14vh, 110px);
    position: relative;
    overflow: visible;
}
.build-projects__media {
    width: 75vw;
    margin-inline-start: auto;
}
.build-projects__figure {
    margin: 0;
    height: clamp(260px, 80vh, 720px);
    border-radius: 0 26px 26px 0;
    overflow: hidden;
    background: #000;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22);
}
.build-projects__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) {
    .build-projects__figure:hover .build-projects__image {
        transform: scale(1.06);
    }
}
.build-projects__content-wrap {
    position: relative;
    margin-top: clamp(-260px, -40vh, -180px);
    pointer-events: none;
}
.build-projects__content-card {
    pointer-events: auto;
    position: relative;
    background: radial-gradient(
            circle at 0 0,
            rgba(201, 165, 82, 0.14),
            transparent 55%
        ),
        linear-gradient(135deg, rgba(2, 6, 23, 0.52), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(12px);
    color: #f9fafb;
    padding: clamp(18px, 3.4vw, 26px);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.55);
    max-width: 640px;
    margin-inline-start: 0;
    margin-inline-end: auto;
}

.build-projects__content-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(201, 165, 82, 0.5),
        rgba(226, 199, 119, 0.15)
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.45;
    pointer-events: none;
}

.build-projects__title {
    color: #facc15;
}
.build-projects__intro {
    color: #e5e7eb;
}
.build-projects__text {
    margin: 8px 0 0;
    font-weight: 600;
    color: #cbd5f5;
    line-height: 2;
}
@media (max-width: 960px) {
    .build-projects__media {
        width: 100vw;
    }
    .build-projects__figure {
        border-radius: 0;
        height: clamp(220px, 46vh, 360px);
    }
    .build-projects__content-wrap {
        margin-top: 18px;
    }
    .build-projects__content-card {
        margin-inline: auto;
        border-radius: 18px;
    }
}

/* ===== Small screens tweaks ===== */
@media (max-width: 640px) {
    .build-tech,
    .build-finishing {
        border-radius: 16px;
        padding: 12px 12px 14px;
    }

    .build-intro__media,
    .build-two-col__frame,
    .build-ops__frame,
    .build-quality__frame,
    .build-projects__figure {
        border-radius: 18px;
    }
}

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