/* =========================================================
   RAFATHAR ORIGINAL — COMPACT PROFESSIONAL FOOTER
   File: /assets/css/footer.css
========================================================= */

.site-footer {
    --footer-bg: #f8f5ef;
    --footer-surface: #fffdf9;
    --footer-text: #302820;
    --footer-muted: #756d63;
    --footer-accent: #9a6b32;
    --footer-accent-hover: #765020;
    --footer-border: #e9e1d5;

    width: 100%;
    margin: 0;
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: 1px solid var(--footer-border);
    font-family: var(--sans, Inter, Arial, sans-serif);
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

/* =========================================================
   FOOTER MAIN — DESKTOP
========================================================= */

.footer-main.container {
    width: calc(100% - 64px);
    max-width: 1180px;
    margin: 0 auto;

    /* Jarak vertikal dirapatkan */
    padding: 18px 0 14px;

    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.8fr 1.15fr;
    column-gap: 32px;
    row-gap: 12px;
    align-items: start;
}

/* =========================================================
   COLUMNS
========================================================= */

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 4px;
}

.footer-column h4 {
    position: relative;
    margin: 0 0 4px;
    padding: 0 0 8px;

    color: var(--footer-text);
    font-family: var(--sans, Inter, Arial, sans-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.footer-column h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 26px;
    height: 2px;
    border-radius: 10px;
    background: var(--footer-accent);
}

/* =========================================================
   BRAND
========================================================= */

.footer-brand {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-bottom: 2px;
    text-decoration: none;
}

.footer-logo {
    display: block;
    width: auto;
    max-width: 145px;
    max-height: 50px;
    object-fit: contain;
    object-position: left center;
}

.footer-description {
    max-width: 290px;
    margin: 0;

    color: var(--footer-muted);
    font-size: 12.5px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

/* =========================================================
   SOCIAL MEDIA
========================================================= */

.socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    border: 1px solid var(--footer-border);
    border-radius: 50%;
    background: var(--footer-surface);
    color: var(--footer-accent);

    font-size: 14px;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.socials a:hover {
    background: var(--footer-accent);
    color: #fff;
    border-color: var(--footer-accent);
    transform: translateY(-2px);
}

/* =========================================================
   LINKS
========================================================= */

.footer-column > a:not(.brand):not(.contact-item) {
    display: inline-block;
    max-width: 100%;

    color: var(--footer-muted);
    font-size: 12.5px;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;

    transition: color 0.2s ease;
}

.footer-column > a:not(.brand):not(.contact-item):hover {
    color: var(--footer-accent-hover);
}

/* =========================================================
   CONTACT
========================================================= */

.footer-contact {
    gap: 8px;
}

.footer-contact h4 {
    margin-bottom: 3px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 9px;

    width: 100%;
    min-width: 0;

    color: var(--footer-muted);
    font-size: 12px;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;

    transition: color 0.2s ease;
}

.contact-item:hover {
    color: var(--footer-accent-hover);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    border-radius: 8px;
    background: #eee5d7;
    color: var(--footer-accent);
    font-size: 12px;
}

/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
    width: 100%;
    border-top: 1px solid var(--footer-border);
    background: rgba(255, 253, 249, 0.72);
}

.footer-bottom-inner.container {
    width: calc(100% - 64px);
    max-width: 1180px;
    min-height: 0;
    margin: 0 auto;
    padding: 8px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-bottom-inner > span {
    color: var(--footer-muted);
    font-size: 11px;
    line-height: 1.6;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.footer-legal a {
    color: var(--footer-muted);
    font-size: 11px;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--footer-accent-hover);
}

.footer-divider {
    color: #c7bbaa;
    font-size: 11px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
    .footer-main.container {
        width: calc(100% - 44px);
        padding: 18px 0 14px;

        grid-template-columns: 1.2fr 1fr 1fr;
        column-gap: 24px;
        row-gap: 12px;
    }

    .footer-about {
        grid-column: 1 / -1;
        max-width: 440px;
    }

    .footer-bottom-inner.container {
        width: calc(100% - 44px);
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {
    .footer-main.container {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 16px 18px 12px;

        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 14px;
    }

    .footer-about {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-logo {
        max-width: 135px;
        max-height: 46px;
    }

    .footer-description {
        max-width: 340px;
        font-size: 12px;
        line-height: 1.7;
    }

    .footer-column {
        gap: 4px;
    }

    .footer-column h4 {
        margin-bottom: 4px;
        padding-bottom: 7px;
        font-size: 13px;
    }

    .footer-column > a:not(.brand):not(.contact-item) {
        font-size: 12px;
        line-height: 1.65;
    }

    .socials {
        gap: 7px;
        margin-top: 5px;
    }

    .socials a {
        width: 33px;
        height: 33px;
        flex-basis: 33px;
        font-size: 13px;
    }

    .footer-contact {
        grid-column: 1 / -1;
        gap: 8px;
    }

    .footer-contact h4 {
        margin-bottom: 3px;
    }

    .contact-item {
        gap: 9px;
        font-size: 12px;
    }

    .contact-icon {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .footer-bottom-inner.container {
        width: auto;
        max-width: none;
        min-height: 0;
        margin: 0;
        padding: 8px 18px;

        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 6px;
    }

    .footer-bottom-inner > span {
        font-size: 10.5px;
    }

    .footer-legal {
        justify-content: flex-start;
        gap: 7px;
    }

    .footer-legal a {
        font-size: 10.5px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 360px) {
    .footer-main.container {
        padding: 14px 14px 10px;
        column-gap: 12px;
        row-gap: 12px;
    }

    .footer-logo {
        max-width: 125px;
        max-height: 43px;
    }

    .footer-column h4 {
        font-size: 12.5px;
    }

    .footer-column > a:not(.brand):not(.contact-item) {
        font-size: 11.5px;
    }

    .footer-bottom-inner.container {
        padding: 8px 14px;
    }

    .footer-legal {
        gap: 6px;
    }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.site-footer a:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
