/* ==========================================
   SITE FOOTER
   Treasure Pelo Industries
========================================== */

.site-footer {
    position: relative;
    margin-top: 0;
    background: linear-gradient(180deg, #131313 0%, #080808 100%);
    color: rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: rgba(176, 128, 20, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.site-footer::after {
    content: "";
    position: absolute;
    bottom: -180px;
    left: -140px;
    width: 340px;
    height: 340px;
    background: rgba(176, 128, 20, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

/* ==========================================
   FOOTER TOP
========================================== */

.footer-top {
    position: relative;
    z-index: 1;
    padding: clamp(56px, 7vw, 84px) 0 clamp(34px, 4vw, 48px);
    border-top: 1px solid rgba(176, 128, 20, 0.22);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 48px);
    align-items: start;
}

.footer-column {
    min-width: 0;
}

/* ==========================================
   FOOTER HEADINGS
========================================== */

.footer-heading {
    position: relative;
    margin: 0 0 16px;
    padding-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-white);
}

.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

/* ==========================================
   FOOTER LINKS
========================================== */

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.55;
    text-decoration: none;
    transition:
        color var(--transition-fast),
        padding-left var(--transition-fast);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--color-primary-light);
    padding-left: 4px;
    text-decoration: none;
}

/* ==========================================
   COMPANY OVERVIEW COLUMN
========================================== */

.footer-brand {
    max-width: 100%;
}

.footer-description {
    max-width: 360px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
    line-height: 1.75;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 7px 13px;
    border-radius: var(--radius-full);
    background: rgba(176, 128, 20, 0.14);
    border: 1px solid rgba(176, 128, 20, 0.28);
    color: var(--color-primary-light);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ==========================================
   FOOTER BOTTOM
========================================== */

.footer-bottom {
    position: relative;
    z-index: 1;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-bottom-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.footer-bottom-logo img {
    display: block;
    width: auto;
    height: 30px;
    max-width: 115px;
    object-fit: contain;
}

.footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
    text-align: right;
}

/* ==========================================
   LARGE TABLET / SMALL LAPTOP
========================================== */

@media (max-width: 1199.98px) {
    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 26px;
    }

    .footer-description {
        max-width: 340px;
    }

    .footer-links a,
    .footer-description {
        font-size: 0.82rem;
    }
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 991.98px) {
    .footer-top {
        padding: 50px 0 34px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 32px;
    }

    .footer-heading {
        font-size: 0.88rem;
    }

    .footer-description {
        max-width: 380px;
    }

    .footer-bottom-inner {
        justify-content: space-between;
        text-align: left;
    }

    .footer-bottom-logo img {
        height: 28px;
        max-width: 108px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767.98px) {
    .footer-top {
        padding: 42px 0 30px;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-column,
    .footer-brand {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .footer-heading {
        margin-bottom: 12px;
        font-size: 0.95rem;
        color: var(--color-white);
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        text-align: center;
    }

    .footer-links li {
        margin-bottom: 9px;
    }

    .footer-links a {
        font-size: 0.84rem;
        line-height: 1.55;
    }

    .footer-links a:hover,
    .footer-links a:focus {
        padding-left: 0;
    }

    .footer-brand {
        padding-top: 28px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .footer-description {
        max-width: 360px;
        margin: 0 auto 16px;
        font-size: 0.82rem;
        line-height: 1.7;
    }

    .footer-badge {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.7rem;
    }

    .footer-bottom {
        padding: 18px 0;
    }

    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .footer-bottom-logo {
        justify-content: center;
        width: 100%;
    }

    .footer-bottom-logo img {
        height: 28px;
        max-width: 105px;
    }

    .footer-copyright {
        width: 100%;
        text-align: center;
        font-size: 0.72rem;
        line-height: 1.6;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480.98px) {
    .footer-top {
        padding: 38px 0 26px;
    }

    .footer-grid {
        gap: 28px;
    }

    .footer-heading {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .footer-description {
        max-width: 310px;
        font-size: 0.76rem;
        line-height: 1.65;
    }

    .footer-badge {
        font-size: 0.66rem;
        padding: 6px 11px;
    }

    .footer-bottom {
        padding: 14px 0;
    }

    .footer-bottom-logo img {
        height: 26px;
        max-width: 100px;
    }

    .footer-copyright {
        font-size: 0.66rem;
    }
}

/* ==========================================
   LARGE DESKTOP
========================================== */

@media (min-width: 1400px) {
    .footer-grid {
        max-width: var(--container-width);
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================
   TOUCH DEVICES
========================================== */

@media (hover: none) {
    .footer-links a:hover {
        color: rgba(255, 255, 255, 0.7);
        padding-left: 0;
    }
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {
    .footer-links a {
        transition: none;
    }
}