/* =========================================================
   COMMUNITY RELOAD
   FOOTER
   PT KREASI KOMUNITAS NUSANTARA
   ========================================================= */


/* =========================================================
   01. FOOTER BASE
   ========================================================= */

.footer {
    position: relative;

    padding:
        78px 0 24px;

    overflow: hidden;

    border-top:
        1px solid rgba(255, 255, 255, 0.07);

    background:
        linear-gradient(
            135deg,
            #111a2a 0%,
            #0d1625 48%,
            #0a1220 100%
        );

    color: #ffffff;
}


/* =========================================================
   02. DECORATIVE LIGHT
   ========================================================= */

.footer::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    left: -260px;
    top: -310px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(104, 71, 245, 0.13),
            rgba(104, 71, 245, 0.025) 52%,
            transparent 72%
        );

    pointer-events: none;
}

.footer::after {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    right: -250px;
    bottom: -300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(22, 184, 212, 0.09),
            rgba(22, 184, 212, 0.02) 50%,
            transparent 72%
        );

    pointer-events: none;
}


/* =========================================================
   03. FOOTER CONTAINER
   ========================================================= */

.footer > .container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   04. FOOTER TOP
   ========================================================= */

.footer-top {
    display: grid;

    grid-template-columns:
        minmax(280px, 1.8fr)
        minmax(130px, 0.8fr)
        minmax(150px, 0.95fr)
        minmax(180px, 1fr);

    gap: 56px;

    padding-bottom: 58px;
}


/* =========================================================
   05. FOOTER BRAND
   ========================================================= */

.footer-brand {
    min-width: 0;
}

.footer-brand .brand {
    color: #ffffff;
}

.footer-brand .brand-logo {
    filter:
        drop-shadow(
            0 8px 20px
            rgba(0, 0, 0, 0.25)
        );
}

.footer-brand .brand-text strong {
    color: #ffffff;
}

.footer-brand .brand-text span {
    color: #8996a9;
}


/* =========================================================
   06. FOOTER DESCRIPTION
   ========================================================= */

.footer-brand > p {
    max-width: 460px;

    margin:
        23px 0 22px;

    color: #8996a9;

    font-size: 0.76rem;

    line-height: 1.85;
}


/* =========================================================
   07. FOOTER LEGAL
   ========================================================= */

.footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    color: #68768a;

    font-size: 0.57rem;
    font-weight: 600;

    line-height: 1.6;
}

.footer-legal span:nth-child(2) {
    color: #435065;
}


/* =========================================================
   08. FOOTER COLUMNS
   ========================================================= */

.footer-column {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 11px;
}


/* =========================================================
   09. COLUMN HEADING
   ========================================================= */

.footer-column h3 {
    position: relative;

    margin:
        0 0 9px;

    padding-bottom: 9px;

    color: #ffffff;

    font-family: var(--font-heading);

    font-size: 0.72rem;
    font-weight: 800;

    line-height: 1.2;

    letter-spacing: 0.04em;
}

.footer-column h3::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 22px;
    height: 2px;

    border-radius:
        var(--radius-pill);

    background:
        linear-gradient(
            90deg,
            var(--color-primary),
            var(--color-secondary)
        );
}


/* =========================================================
   10. COLUMN LINKS
   ========================================================= */

.footer-column a,
.footer-column > span {
    position: relative;

    display: inline-flex;
    align-items: center;

    max-width: 100%;

    color: #8491a4;

    font-size: 0.69rem;
    font-weight: 500;

    line-height: 1.55;

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

.footer-column a:hover {
    color: #ffffff;

    transform:
        translateX(3px);
}


/* =========================================================
   11. FOOTER SERVICE ITEMS
   ========================================================= */

.footer-column > span {
    cursor: default;
}

.footer-column > span::before {
    content: "";

    width: 4px;
    height: 4px;

    margin-right: 8px;

    flex: 0 0 auto;

    border-radius: 50%;

    background:
        #45546a;

    transition:
        background var(--transition-fast),
        transform var(--transition-fast);
}

.footer-column > span:hover::before {
    background:
        var(--color-primary);

    transform:
        scale(1.25);
}


/* =========================================================
   12. FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-top: 22px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.075);

    color: #59677a;

    font-size: 0.59rem;
    font-weight: 500;

    line-height: 1.6;
}

.footer-bottom span {
    display: block;
}

.footer-bottom span:last-child {
    color: #69778a;

    font-weight: 700;

    letter-spacing: 0.04em;
}


/* =========================================================
   13. FOOTER LINK ACCESSIBILITY
   ========================================================= */

.footer a:focus-visible {
    outline:
        3px solid
        rgba(134, 108, 248, 0.35);

    outline-offset:
        4px;

    border-radius:
        4px;
}


/* =========================================================
   14. TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .footer-top {
        grid-template-columns:
            1.5fr
            0.8fr
            1fr;

        gap: 42px;
    }

    .footer-brand {
        grid-column:
            1 / -1;

        max-width: 700px;
    }

    .footer-brand > p {
        max-width: 620px;
    }
}


/* =========================================================
   15. TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 850px) {

    .footer {
        padding-top: 65px;
    }

    .footer-top {
        grid-template-columns:
            1fr 1fr;

        gap:
            42px 35px;

        padding-bottom:
            45px;
    }

    .footer-brand {
        grid-column:
            1 / -1;
    }

    .footer-column h3 {
        margin-bottom:
            7px;
    }

    .footer-bottom {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 8px;
    }
}


/* =========================================================
   16. MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .footer {
        padding:
            58px 0 20px;
    }

    .footer-top {
        grid-template-columns:
            1fr;

        gap:
            34px;

        padding-bottom:
            38px;
    }

    .footer-brand {
        grid-column:
            auto;
    }

    .footer-brand > p {
        margin-top:
            20px;

        margin-bottom:
            18px;

        font-size:
            0.73rem;
    }

    .footer-legal {
        font-size:
            0.54rem;
    }

    .footer-column {
        gap:
            10px;
    }

    .footer-column h3 {
        margin-bottom:
            6px;
    }

    .footer-column a,
    .footer-column > span {
        font-size:
            0.68rem;
    }

    .footer-bottom {
        padding-top:
            18px;

        font-size:
            0.56rem;
    }
}


/* =========================================================
   17. SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .footer {
        padding-top:
            52px;
    }

    .footer-brand .brand-logo {
        width:
            40px;

        height:
            40px;
    }

    .footer-brand .brand-text strong {
        font-size:
            0.7rem;
    }

    .footer-brand .brand-text span {
        font-size:
            0.47rem;
    }
}


/* =========================================================
   18. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .footer-column a,
    .footer-column > span,
    .footer-column > span::before {
        transition:
            none !important;
    }
}


/* =========================================================
   END OF FOOTER.CSS
   ========================================================= */


/* =========================================================
   SHARED FOOTER ALIGNMENT
   ========================================================= */

/* index.html previously used .footer-grid while the other pages
   use .footer-top. Both structures now share the same layout. */
.footer {
    --color-primary: #7c3aed;
    --color-secondary: #d946ef;
    background: radial-gradient(circle at 18% 0%, rgba(124,58,237,.25), transparent 26rem), #0b0714 !important;
}

/* Keep the complete footer presentation here so catalog pages need no home-page CSS. */
.footer-company-email {
    display: table;
    margin-top: 13px;
    color: #b9abc9;
    font-size: .72rem;
    font-weight: 650;
    transition: color .2s ease;
}

.footer-company-email:hover { color: #fff; }

.footer-price-cta {
    display: inline-flex;
    min-height: 42px;
    margin-top: 18px;
    padding: 0 8px 0 14px;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(216,180,254,.2);
    border-radius: 9px;
    color: #eee7f8 !important;
    background: rgba(255,255,255,.055);
    font-size: .72rem;
    font-weight: 800;
    transition: border-color .22s ease, background-color .22s ease, transform .22s ease;
}

.footer-price-cta span:last-child {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 7px;
    color: #f4d35e;
    background: rgba(244,211,94,.08);
}

.footer-price-cta:hover {
    border-color: rgba(216,180,254,.42);
    color: #fff !important;
    background: rgba(255,255,255,.09);
    transform: translateY(-2px) !important;
}

@media (prefers-reduced-motion: reduce) {
    .footer-company-email, .footer-price-cta { transition: none !important; }
}

.footer-top,
.footer-grid {
    display: grid;
    grid-template-columns:
        minmax(280px, 1.8fr)
        minmax(140px, 0.8fr)
        minmax(155px, 0.95fr)
        minmax(180px, 1fr);
    gap: 56px;
    padding-bottom: 58px;
}

/* Clickable product links keep the same visual language as service items. */
.footer-column a.footer-service-link::before {
    width: 4px;
    height: 4px;
    margin-right: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #45546a;
    content: "";
    transition:
        background var(--transition-fast),
        transform var(--transition-fast);
}

.footer-column a.footer-service-link:hover::before {
    background: var(--color-primary);
    transform: scale(1.25);
}

.footer-brand > p {
    max-width: 470px;
    font-size: 0.88rem;
    line-height: 1.8;
}

.footer-legal {
    font-size: 0.68rem;
}

.footer-column {
    gap: 13px;
}

.footer-column h3 {
    font-size: 0.86rem;
}

.footer-column a,
.footer-column > span {
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-bottom {
    font-size: 0.7rem;
}

@media (max-width: 1050px) {
    .footer-top,
    .footer-grid {
        grid-template-columns: 1.5fr 0.8fr 1fr;
        gap: 42px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 700px;
    }
}

@media (max-width: 850px) {
    .footer-top,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 42px 35px;
        padding-bottom: 45px;
    }
}

@media (max-width: 600px) {
    .footer-top,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-bottom: 38px;
    }

    .footer-brand > p {
        font-size: 0.82rem;
    }

    .footer-legal {
        font-size: 0.64rem;
    }

    .footer-column h3 {
        font-size: 0.82rem;
    }

    .footer-column a,
    .footer-column > span {
        font-size: 0.78rem;
    }

    .footer-bottom {
        font-size: 0.66rem;
    }
}
