/* =========================================================
   PKL Footer - One Premium Row Layout
   File: public/assets/pkl/css/footer.css
========================================================= */

.pkl-footer {
    position: relative;
    padding: 72px 0 24px;
    background:
        linear-gradient(rgba(0, 195, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 195, 255, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 15% 0%, rgba(0, 195, 255, 0.16), transparent 34%),
        radial-gradient(circle at 88% 30%, rgba(0, 195, 255, 0.10), transparent 32%),
        linear-gradient(180deg, #03111b 0%, #041925 100%);
    background-size: 58px 58px, 58px 58px, auto, auto, auto;
    overflow: hidden;
    color: #eaf8ff;
}

.pkl-footer .pkl-container,
.pkl-footer .pkl-home-container {
    width: min(1680px, calc(100% - 56px));
    margin-inline: auto;
}

/* البوكس الكبير الواحد */
.pkl-footer__panel {
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    border: 1px solid rgba(0, 195, 255, 0.22);
    background:
        linear-gradient(90deg, rgba(0, 195, 255, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(0, 195, 255, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 90% 12%, rgba(0, 195, 255, 0.13), transparent 30%),
        linear-gradient(145deg, rgba(6, 25, 39, 0.94), rgba(3, 16, 27, 0.98));
    background-size: 52px 52px, 52px 52px, auto, auto;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: clamp(32px, 3.4vw, 56px);
}

/* خط علوي فاخر */
.pkl-footer__panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 42px;
    right: 42px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #00c3ff, transparent);
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.45);
}

/* أهم جزء: كل الأعمدة في نفس السطر */
.pkl-footer__grid {
    display: grid;
    grid-template-columns:
        minmax(160px, 0.9fr)
        minmax(190px, 1fr)
        minmax(210px, 1.05fr)
        minmax(180px, 0.9fr)
        minmax(320px, 1.25fr);
    gap: clamp(22px, 2.4vw, 46px);
    align-items: start;
}

/* فواصل عمودية خفيفة بين الأعمدة */
.pkl-footer__col {
    position: relative;
    min-width: 0;
}

.pkl-footer__col:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 4px;
    right: calc(clamp(22px, 2.4vw, 46px) / -2);
    width: 1px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(0, 195, 255, 0.16),
        transparent
    );
}

.pkl-footer__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(22px, 1.8vw, 34px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.pkl-footer__line {
    display: block;
    width: 68px;
    height: 4px;
    margin: 18px 0 34px;
    border-radius: 999px;
    background: #00c3ff;
    box-shadow: 0 0 18px rgba(0, 195, 255, 0.45);
}

.pkl-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pkl-footer__links li + li {
    margin-top: 22px;
}

.pkl-footer__links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(220, 235, 245, 0.78);
    text-decoration: none;
    font-size: clamp(16px, 1.25vw, 24px);
    line-height: 1.45;
    font-weight: 850;
    transition:
        color 0.25s ease,
        transform 0.25s ease,
        text-shadow 0.25s ease;
}

.pkl-footer__links a::after {
    content: "›";
    color: rgba(0, 195, 255, 0.76);
    font-size: 24px;
    line-height: 1;
    transition: transform 0.25s ease, color 0.25s ease;
}

.pkl-footer__links a:hover {
    color: #00c3ff;
    transform: translateX(5px);
    text-shadow: 0 0 16px rgba(0, 195, 255, 0.24);
}

.pkl-footer__links a:hover::after {
    transform: translateX(4px);
    color: #55dcff;
}

/* Contact */
.pkl-footer__col--contact {
    max-width: 420px;
}

.pkl-footer__contact-list {
    display: grid;
    gap: 24px;
}

.pkl-footer__contact-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    align-items: start;
}

.pkl-footer__contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.30), transparent 30%),
        linear-gradient(135deg, #00c3ff, #1ad9ff);
    color: #04131f;
    font-size: 24px;
    font-weight: 950;
    box-shadow:
        0 0 26px rgba(0, 195, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.pkl-footer__contact-item p,
.pkl-footer__contact-item a {
    margin: 0;
    color: rgba(228, 240, 247, 0.88);
    font-size: clamp(16px, 1.22vw, 23px);
    font-weight: 850;
    line-height: 1.65;
    text-decoration: none;
}

.pkl-footer__contact-item a:hover {
    color: #00c3ff;
}

.pkl-footer__social {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.pkl-footer__social a {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(0, 195, 255, 0.24);
    background:
        radial-gradient(circle at 70% 18%, rgba(0, 195, 255, 0.18), transparent 34%),
        rgba(6, 23, 36, 0.72);
    color: #eaf8ff;
    text-decoration: none;
    font-size: 21px;
    font-weight: 950;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.pkl-footer__social a:hover {
    transform: translateY(-4px);
    background: #00c3ff;
    color: #03111b;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 28px rgba(0, 195, 255, 0.28);
}

.pkl-footer__bottom {
    text-align: center;
    margin-top: 26px;
}

.pkl-footer__bottom p {
    margin: 0;
    color: rgba(188, 210, 222, 0.72);
    font-size: 14px;
    font-weight: 700;
}

/* =========================================================
   Responsive
========================================================= */

/* شاشات اللابتوب المتوسطة: يبقى نفس السطر لكن أصغر */
@media (max-width: 1399px) {
    .pkl-footer .pkl-container,
    .pkl-footer .pkl-home-container {
        width: min(100% - 40px, 1280px);
    }

    .pkl-footer__panel {
        padding: 34px 28px;
    }

    .pkl-footer__grid {
        grid-template-columns:
            minmax(130px, 0.85fr)
            minmax(160px, 1fr)
            minmax(180px, 1fr)
            minmax(150px, 0.85fr)
            minmax(270px, 1.2fr);
        gap: 24px;
    }

    .pkl-footer__title {
        font-size: 24px;
    }

    .pkl-footer__links a {
        font-size: 17px;
    }

    .pkl-footer__contact-item {
        grid-template-columns: 54px 1fr;
        gap: 14px;
    }

    .pkl-footer__contact-icon {
        width: 54px;
        height: 54px;
        font-size: 20px;
    }

    .pkl-footer__contact-item p,
    .pkl-footer__contact-item a {
        font-size: 17px;
    }
}

/* التابلت: يتحول إلى صفين */
@media (max-width: 991px) {
    .pkl-footer {
        padding: 56px 0 22px;
    }

    .pkl-footer__panel {
        border-radius: 28px;
        padding: 30px 24px;
    }

    .pkl-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 28px;
    }

    .pkl-footer__col:not(:last-child)::after {
        display: none;
    }

    .pkl-footer__col--contact {
        max-width: none;
        grid-column: 1 / -1;
    }

    .pkl-footer__contact-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* الجوال */
@media (max-width: 640px) {
    .pkl-footer .pkl-container,
    .pkl-footer .pkl-home-container {
        width: min(100% - 24px, 1280px);
    }

    .pkl-footer__panel {
        border-radius: 22px;
        padding: 24px 18px;
    }

    .pkl-footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pkl-footer__title {
        font-size: 22px;
    }

    .pkl-footer__line {
        width: 54px;
        height: 3px;
        margin: 14px 0 22px;
    }

    .pkl-footer__links li + li {
        margin-top: 15px;
    }

    .pkl-footer__links a {
        font-size: 16px;
    }

    .pkl-footer__contact-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pkl-footer__contact-item {
        grid-template-columns: 48px 1fr;
    }

    .pkl-footer__contact-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .pkl-footer__contact-item p,
    .pkl-footer__contact-item a {
        font-size: 16px;
    }

    .pkl-footer__social a {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}