/* home.css — أنماط خاصة بهذه الصفحة وحدها.
   المرحلة 3: كانت مكتوبة داخل <style> فى الـ View، تنزل مع كل
   طلب ولا يستطيع المتصفح تخزينها. الآن ملف مستقل قابل للتخزين. */

/* ===== HERO PRO (typical industrial split-layout hero) ===== */
.hero-pro {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 78% 22%, rgba(212, 160, 23, .20), transparent 38%), radial-gradient(circle at 18% 80%, rgba(212, 160, 23, .10), transparent 42%), linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 55%, #050505 100%);
    color: #fff;
    padding: 70px 0 0;
}

    .hero-pro::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M 100 0 L 0 0 0 100' fill='none' stroke='%23d4a017' stroke-opacity='.06' stroke-width='.4'/></svg>");
        background-size: 56px 56px;
        opacity: .55;
        pointer-events: none;
    }

    .hero-pro .container {
        position: relative;
        z-index: 2;
    }

    /* Wider container in hero so content uses more horizontal space */
    .hero-pro > .container {
        max-width: 1480px;
    }

.hero-pro-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 40px;
    padding-bottom: 60px;
}

/* ====== TEXT SIDE ====== */
.hero-pro-text {
    text-align: right;
    transform: translateX(40px); /* nudge text further to the RIGHT */
}

.hero-pro-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(212, 160, 23, .12);
    border: 1px solid rgba(212, 160, 23, .38);
    padding: 9px 22px;
    border-radius: 999px;
    color: #f0c75e;
    font-weight: 900;
    margin-bottom: 22px;
    font-size: .98rem;
}

.hero-pro-title {
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 10px;
    background: linear-gradient(180deg, #fff 0%, #f0c75e 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-pro-en {
    display: inline-block;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    font-weight: 700;
    letter-spacing: 8px;
    color: #d4a017;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212, 160, 23, .35);
}

.hero-pro-tagline {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-start;
    font-size: 1.15rem;
    font-weight: 800;
    color: #f0c75e;
    margin-bottom: 22px;
}

    .hero-pro-tagline i {
        font-size: .5rem;
        opacity: .7;
        color: #d4a017;
    }

.hero-pro-desc {
    max-width: 540px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.08rem;
    line-height: 1.95;
    margin: 0 0 28px;
}

.hero-pro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ====== VISUAL SIDE ====== */
.hero-pro-visual {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-40px); /* nudge whole visual block to the LEFT */
}

/* ===== Golden spotlight (main circle) ===== */
.hero-pro-circle {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 160, 23, .32) 0%, rgba(212, 160, 23, .18) 35%, rgba(212, 160, 23, .08) 60%, transparent 78%);
    z-index: 0;
    pointer-events: none;
}

    /* Soft outer halo extending beyond the main circle */
    .hero-pro-circle::after {
        content: "";
        position: absolute;
        inset: -90px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(212, 160, 23, .12) 0%, rgba(212, 160, 23, .05) 45%, transparent 70%);
        z-index: -1;
    }

    /* Inner rotating dashed ring */
    .hero-pro-circle::before {
        content: "";
        position: absolute;
        inset: 36px;
        border-radius: 50%;
        border: 1px dashed rgba(212, 160, 23, .42);
        animation: heroProSpin 60s linear infinite;
    }

@keyframes heroProSpin {
    to {
        transform: rotate(360deg);
    }
}

.hero-pro-main-img {
    position: relative;
    z-index: 2;
    max-width: 88%;
    max-height: 500px;
    height: auto;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 25px rgba(212, 160, 23, .15));
}

/* ===== Slideshow stack ===== */
.hero-pro-slideshow {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
    height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Pedestal glow at base of equipment */
    .hero-pro-slideshow::after {
        content: "";
        position: absolute;
        bottom: 56px;
        left: 50%;
        transform: translateX(-50%);
        width: 56%;
        height: 28px;
        background: radial-gradient(ellipse at center, rgba(212, 160, 23, .45) 0%, rgba(212, 160, 23, .18) 40%, transparent 72%);
        filter: blur(12px);
        z-index: 1;
        pointer-events: none;
    }

.hero-pro-slide {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 460px;
    height: 460px;
    max-width: 78%;
    max-height: 78%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transform: scale(.92);
    transition: opacity .9s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 0 0 2px rgba(212, 160, 23, .65), 0 0 0 10px rgba(212, 160, 23, .14), 0 0 0 11px rgba(212, 160, 23, .35), 0 28px 55px rgba(0, 0, 0, .55), 0 0 60px rgba(212, 160, 23, .20);
    pointer-events: none;
    z-index: 2;
}

    .hero-pro-slide.is-active {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

/* === Equipment name caption === */
.hero-pro-caption {
    position: absolute;
    z-index: 4;
    bottom: 56px;
    right: 0;
    left: 0;
    margin: 0 auto;
    width: fit-content;
    max-width: 80%;
    background: rgba(10, 10, 10, .82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 160, 23, .45);
    border-radius: 999px;
    padding: 8px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
}

.hero-pro-caption-label {
    font-size: .76rem;
    color: #f0c75e;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: .85;
    padding-left: 12px;
    border-left: 1px solid rgba(212, 160, 23, .4);
}

.hero-pro-caption strong {
    color: #fff;
    font-weight: 900;
    font-size: 1.05rem;
}

/* === Dots === */
.hero-pro-dots {
    position: absolute;
    z-index: 4;
    bottom: 18px;
    right: 0;
    left: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 8px;
}

    .hero-pro-dots button {
        width: 9px;
        height: 9px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, .28);
        cursor: pointer;
        transition: .25s ease;
    }

        .hero-pro-dots button:hover {
            background: rgba(212, 160, 23, .65);
        }

        .hero-pro-dots button.is-active {
            background: #f0c75e;
            width: 28px;
            border-radius: 999px;
            box-shadow: 0 0 0 3px rgba(212, 160, 23, .25);
        }

/* Floating SINCE 2010 medallion — متعلق على حافة دايرة المنتجات */
.hero-pro-medal {
    position: absolute;
    /* الموقع: زاوية upper-right من الـ slideshow بحيث يتاخم حافة الدايرة */
    top: 10%;
    right: 10%;
    z-index: 4;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a017 0%, #f0c75e 50%, #a07906 100%);
    color: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 16px 32px rgba(212, 160, 23, .45), 0 0 0 4px rgba(255, 255, 255, .12), 0 0 0 5px rgba(212, 160, 23, .35), inset 0 0 0 2px rgba(255, 255, 255, .30);
    transform: rotate(-8deg);
    animation: heroProMedalFloat 4s ease-in-out infinite;
}

    /* خط دائرى منقّط بطىء — يدّى انطباع ختم رسمى */
    .hero-pro-medal::before {
        content: "";
        position: absolute;
        inset: 8px;
        border-radius: 50%;
        border: 1px dashed rgba(10, 10, 10, .25);
        animation: heroProSpin 18s linear infinite;
        pointer-events: none;
    }

@keyframes heroProMedalFloat {
    0%, 100% {
        transform: rotate(-8deg) translateY(0);
    }

    50% {
        transform: rotate(-5deg) translateY(-6px);
    }
}

.hero-pro-medal-since {
    font-size: .72rem;
    letter-spacing: 2px;
    opacity: .85;
    position: relative;
    z-index: 1;
}

.hero-pro-medal strong {
    font-size: 1.85rem;
    line-height: 1;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

/* ====== STATS STRIP ====== */
.hero-pro-stats {
    position: relative;
    z-index: 2;
    background: linear-gradient(90deg, rgba(212, 160, 23, .14) 0%, rgba(212, 160, 23, .06) 50%, rgba(212, 160, 23, .14) 100%);
    border-top: 1px solid rgba(212, 160, 23, .35);
    border-bottom: 1px solid rgba(212, 160, 23, .35);
    padding: 22px 0;
}

.hero-pro-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

    .hero-pro-stats-grid > div {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        position: relative;
    }

        .hero-pro-stats-grid > div:not(:last-child)::after {
            content: "";
            position: absolute;
            left: -12px;
            top: 18%;
            bottom: 18%;
            width: 1px;
            background: rgba(212, 160, 23, .30);
        }

    .hero-pro-stats-grid strong {
        font-size: 1.7rem;
        font-weight: 900;
        color: #f0c75e;
        line-height: 1;
    }

    .hero-pro-stats-grid span {
        color: rgba(255, 255, 255, .82);
        font-weight: 700;
        font-size: .92rem;
    }

/* ====== RESPONSIVE ====== */
@media (max-width: 1399px) {
    .hero-pro-text {
        transform: translateX(20px);
    }

    .hero-pro-visual {
        transform: translateX(-20px);
    }
}

@media (max-width: 1199px) {
    .hero-pro-circle {
        width: 520px;
        height: 520px;
    }

    .hero-pro-slideshow {
        max-width: 540px;
        height: 520px;
    }

    .hero-pro-text {
        transform: translateX(10px);
    }

    .hero-pro-visual {
        transform: translateX(-10px);
    }
}

@media (max-width: 991px) {
    .hero-pro {
        padding: 50px 0 0;
    }

    .hero-pro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 40px;
    }

    .hero-pro-text {
        text-align: center;
        transform: none;
    }

    .hero-pro-tagline {
        justify-content: center;
    }

    .hero-pro-actions {
        justify-content: center;
    }

    .hero-pro-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-pro-en {
        display: inline-block;
    }

    .hero-pro-visual {
        min-height: 460px;
        transform: none;
    }

    .hero-pro-circle {
        width: 400px;
        height: 400px;
    }

        .hero-pro-circle::after {
            inset: -60px;
        }

    .hero-pro-slideshow {
        width: 92%;
        max-width: 460px;
        height: 420px;
    }

        .hero-pro-slideshow::after {
            bottom: 40px;
        }

    .hero-pro-medal {
        width: 88px;
        height: 88px;
        top: 6%;
        right: 6%;
    }

        .hero-pro-medal strong {
            font-size: 1.35rem;
        }

    .hero-pro-caption {
        bottom: 48px;
        padding: 7px 18px;
    }

        .hero-pro-caption strong {
            font-size: .95rem;
        }

    .hero-pro-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 12px;
    }
}

@media (max-width: 575px) {
    .hero-pro-circle {
        width: 300px;
        height: 300px;
    }

        .hero-pro-circle::after {
            inset: -30px;
        }

    .hero-pro-slideshow {
        width: 96%;
        max-width: 300px;
        height: 300px;
    }

    .hero-pro-en {
        letter-spacing: 5px;
        font-size: 1rem;
    }

    .hero-pro-stats-grid strong {
        font-size: 1.35rem;
    }

    .hero-pro-stats-grid > div:not(:last-child)::after {
        display: none;
    }

    .hero-pro-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

        .hero-pro-actions .btn {
            width: 100%;
            justify-content: center;
        }

    .hero-pro-medal {
        width: 72px;
        height: 72px;
        top: 4%;
        right: 4%;
    }

        .hero-pro-medal strong {
            font-size: 1.1rem;
        }

    .hero-pro-medal-since {
        font-size: .58rem;
        letter-spacing: 1.5px;
    }

    .hero-pro-medal::before {
        inset: 6px;
    }

    .hero-pro-caption {
        bottom: 32px;
        padding: 6px 14px;
    }

        .hero-pro-caption strong {
            font-size: .85rem;
        }

    .hero-pro-title {
        font-size: 2rem;
    }

    .hero-pro-desc {
        font-size: .98rem;
        line-height: 1.8;
    }
}

@media (max-width: 380px) {
    .hero-pro-circle {
        width: 260px;
        height: 260px;
    }

        .hero-pro-circle::after {
            inset: -20px;
        }

    .hero-pro-slideshow {
        max-width: 260px;
        height: 260px;
    }

    .hero-pro-visual {
        min-height: 360px;
    }

    .hero-pro-medal {
        width: 64px;
        height: 64px;
    }

        .hero-pro-medal strong {
            font-size: 1rem;
        }

    .hero-pro-stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-pro-title {
        font-size: 1.7rem;
    }

    .hero-pro-en {
        font-size: .85rem;
        letter-spacing: 3px;
    }
}

/* ===== Lightbox لمعرض معدات الأدهم (تكبير الصورة عند الضغط) ===== */
.home-import-product-grid img {
    cursor: zoom-in;
}

.home-import-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    background: rgba(5, 5, 5, .92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

    .home-import-lightbox.is-open {
        opacity: 1;
        visibility: visible;
    }

    .home-import-lightbox .hil-figure {
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        max-width: 90vw;
        max-height: 82vh;
        transform: scale(.96);
        transition: transform .25s ease;
    }

    .home-import-lightbox.is-open .hil-figure {
        transform: scale(1);
    }

    .home-import-lightbox img {
        max-width: 90vw;
        max-height: 74vh;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    }

    .home-import-lightbox .hil-caption {
        color: #fff;
        font-weight: 700;
        font-size: 1.05rem;
        text-align: center;
    }

    .home-import-lightbox .lb-close,
    .home-import-lightbox .lb-nav {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, .12);
        color: #fff;
        font-size: 1.1rem;
        cursor: pointer;
        transition: background .2s ease, transform .2s ease;
    }

        .home-import-lightbox .lb-close:hover,
        .home-import-lightbox .lb-nav:hover {
            background: rgba(212, 160, 23, .85);
        }

    .home-import-lightbox .lb-close {
        top: 20px;
        left: 20px;
    }

        .home-import-lightbox .lb-close:hover {
            transform: scale(1.06);
        }

    .home-import-lightbox .lb-nav {
        top: 50%;
        transform: translateY(-50%);
    }

        .home-import-lightbox .lb-nav:hover {
            transform: translateY(-50%) scale(1.06);
        }

    .home-import-lightbox .lb-prev {
        right: 24px;
    }

    .home-import-lightbox .lb-next {
        left: 24px;
    }

@media (max-width: 575.98px) {
    /* مساحة سفلية لشريط أزرار التنقل حتى لا تتراكب مع الصورة */
    .home-import-lightbox {
        padding: 12px 12px 78px;
    }

        .home-import-lightbox .hil-figure {
            max-width: 94vw;
            max-height: 74vh;
        }
        /* تصغير الصورة لإفساح مكان للعنوان وزر الإغلاق وأزرار التنقل */
        .home-import-lightbox img {
            max-width: 92vw;
            max-height: 60vh;
        }

        .home-import-lightbox .hil-caption {
            font-size: .95rem;
            padding: 0 8px;
        }

        .home-import-lightbox .lb-close,
        .home-import-lightbox .lb-nav {
            width: 42px;
            height: 42px;
            font-size: 1rem;
        }

        .home-import-lightbox .lb-close {
            top: 12px;
            left: 12px;
        }
        /* نقل أزرار التنقل من جانبى الصورة إلى شريط سفلى */
        .home-import-lightbox .lb-nav {
            top: auto;
            bottom: 16px;
            transform: none;
        }

            .home-import-lightbox .lb-nav:hover {
                transform: scale(1.06);
            }

        .home-import-lightbox .lb-prev {
            right: calc(50% - 56px);
        }

        .home-import-lightbox .lb-next {
            left: calc(50% - 56px);
        }
}
