/* =========================================
   9. Site Footer (Complete, Unified & Bulletproof)
   ========================================= */

.site-footer {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2);
    border-radius: 7px;
    margin: 20px 0 0 0;
    background: whitesmoke;
    color: #121111;
}

.site-footer .footer-info {
    display: flex;
    gap: 30px;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    min-height: 330px;
}

.site-footer .footer-main {
    flex: 2;
    max-width: 650px;
    padding-right: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
}

/* THE FIX: Shields against global <nav> styles bleeding in */
.site-footer .footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    min-width: 185px;
    flex: 1;
    background: transparent !important; /* Overrides global nav backgrounds */
    height: auto !important;            /* Stops them stretching down */
    padding: 0 !important;              /* Resets global nav padding */
    margin: 0 !important;               /* Resets global nav margin */
}

.footer-links__header {
    margin: 0 0 10px 0;
    font-weight: bold;
    font-size: 1.1rem;
    color: #121111;
}

/* Link Styling - Bulletproofed */
.site-footer .footer-links a,
.site-footer .footer-links button {
    color: #121111 !important;
    text-decoration: underline !important;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    display: block;
    width: 100%;
    text-align: left;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links button:hover {
    font-weight: 700;
    text-decoration: none !important;
}

.site-footer .footer-main p {
    display: block;
    text-align: left;
    line-height: 1.5;
    margin: 0;
}

.footer-main__header {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

/* -----------------------------------------
   Footer Copyright Layout Architecture
   ----------------------------------------- */
.footer-copyright {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0b121e;
    padding: 25px 0;
    margin-top: auto;
    border-radius: 0 0 7px 7px;
}

.footer-copyright__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright__legal {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.footer-copyright__bespoke {
    display: none;
    text-align: right;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}


/* =========================================
   Media Queries & Responsiveness
   ========================================= */

/* Mobile & Tablet adjustments */
@media (max-width: 900px) {
   .site-footer .footer-info {
       flex-wrap: wrap;
       height: auto;
       padding-bottom: 30px;
   }

   .site-footer .footer-links {
        flex-basis: calc(50% - 15px);
        min-width: auto;
    }

    .site-footer .footer-main {
        flex-grow: 1;
        flex-basis: 100%;
        order: 3;
        padding: 0;
        margin-top: 30px;
    }
}

/* Desktop adjustments */
@media (min-width: 992px) {
    .footer-copyright__bespoke {
        display: block;
        padding-right: 80px;
    }
}
