:root{
    --brand-dark: #c53a1f;
    --brand-light: #f2a689;
    --accent-blue: #1ea0d7;
    --text-on-brand: #ffffff;
    --max-width: 1200px;
}

.footer{
    position: relative;
    overflow: visible;
    background: linear-gradient(180deg, var(--brand-dark), #b63a20 70%);
    color: var(--text-on-brand);
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    padding: 40px 16px 0;
    box-sizing: border-box;
}

.footer-container{
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr 240px;
    align-items: start;
    gap: 48px;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Logo / brand */
.footer-brand{
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-brand img{
    height: 84px;
    width: auto;
    display: block;
}

/* Lokasi (tengah) */
.footer-location{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer-location h4{
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-on-brand);
    letter-spacing: 0.3px;
}
.location-row{
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    max-width: 720px;
}
.location-row img{
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}
.location-row p{
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
    max-width: 640px;
    text-align: left;
}

/* Contact (kanan) */
.footer-contact{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.footer-contact h4{
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
}
.footer-icons{
    display: flex;
    gap: 12px;
    align-items: center;
}
.footer-icons a{
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    transition: transform .12s ease, background .12s ease;
    text-decoration: none;
}
.footer-icons a:hover{
    transform: translateY(-3px);
    background: rgba(255,255,255,0.12);
}
.footer-icons img{
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* WATERMARK */
.footer::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 184px;
    height: 184px;
    background: url("../images/logonordic.png") no-repeat center;
    background-size: contain;
    opacity: .06;
    z-index: 1;
}

/* BOTTOM BAR */
.footer-bottom {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 20px auto 0;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    color: rgba(255,255,255,0.95);
    font-size: 13px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,0.35);
}

.footer-bottom span {
    margin: 0 8px;
}

/* CREDIT BAR */
.footer-credit {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 8px 24px 16px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.3px;
}

/* =====================================
   MOBILE FOOTER
   ===================================== */
@media (max-width: 768px) {

    .footer {
        padding: 20px 16px 0;
    }

    /* GRID 2 KOLOM: kiri = lokasi+sosmed, kanan = logo */
    .footer-container {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0;
        padding: 0;
        align-items: start;
    }

    /* LOGO — kolom kanan, baris 1, rata atas */
    .footer-brand {
        grid-column: 2;
        grid-row: 1;
        align-self: flex-start;
        margin-left: 16px;
    }
    .footer-brand img {
        height: 64px;
    }

    /* LOCATION — kolom kiri, baris 1 */
    .footer-location {
        grid-column: 1;
        grid-row: 1;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 14px;
    }
    .footer-location h4 {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 6px;
    }
    .location-row {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }
    .location-row img {
        width: 14px;
        height: 14px;
        margin-top: 3px;
    }
    .location-row p {
        font-size: 13px;
        line-height: 1.6;
        max-width: 280px;
        opacity: .95;
    }

    /* SOCIAL MEDIA — kolom kiri, baris 2 (di bawah alamat) */
    .footer-contact {
        grid-column: 1;
        grid-row: 2;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    .footer-contact h4 {
        display: none;
    }
    .footer-icons {
        gap: 12px;
    }
    .footer-icons a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255,255,255,0.12);
    }
    .footer-icons img {
        width: 20px;
        height: 20px;
    }

    /* WATERMARK */
    .footer::before {
        width: 52px;
        height: 52px;
        left: 8px;
        opacity: 0.025;
    }

    /* BOTTOM BAR */
    .footer-bottom {
        margin-top: 0;
        padding: 10px 0;
        font-size: 11px;
        white-space: normal;
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        border-bottom: 1px solid rgba(255,255,255,0.35);
        flex-direction: column;
    }
    .footer-bottom span {
        margin: 0 3px;
    }

    /* CREDIT BAR */
    .footer-credit {
        padding: 6px 0 14px;
        font-size: 10px;
        color: rgba(255,255,255,0.5);
    }
}