/* =========================================================
   FOOTER – PREMIUM STRUCTURED LAYOUT
   ========================================================= */

.site-footer {
    margin-top: 120px;
    padding: 90px 0 40px 0;
    background: #f4efe9;
    color: var(--text);
    border-top: 1px solid var(--divider);
}


/* GRID */

.footer-grid {
    max-width: 1100px;
    margin: auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: .9fr 1fr 1fr 1fr;
    gap: 50px;
    align-items: start;
}


/* LOGO */

.footer-logo-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-link img {
    height: 75px;
    opacity: .85;
    transition: opacity .25s ease;
}

.footer-logo-link:hover img {
    opacity: 1;
}


/* TITLES */

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--premium-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}


/* TEXT */

.footer-column p {
    line-height: 1.7;
    margin-bottom: 14px;
    opacity: .85;
    font-size: .95rem;
}


/* PRESENCE NOTE */

.footer-note-present {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: .85rem;
    opacity: .9;
}

.footer-note-present i {
    color: var(--accent-soft);
}


/* LINKS */

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .92rem;
    transition: all .25s ease;
}

.footer-link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}


/* BOTTOM */

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--divider);
}

.footer-bottom-inner {
    max-width: 1100px;
    margin: auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
    opacity: .6;
}

.footer-legal-nav {
    display: flex;
    gap: 24px;
}

.footer-legal-nav a {
    color: var(--text);
    text-decoration: none;
    transition: color .2s ease;
}

.footer-legal-nav a:hover {
    color: var(--accent);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

}


/* =========================================================
   MOBILE – REFINED LAYOUT
   ========================================================= */

@media (max-width: 650px) {

    .site-footer {
        padding: 60px 0 30px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-logo-col {
        margin-bottom: 10px;
    }

    .footer-logo-link img {
        height: 58px;
        opacity: .9;
    }

    .footer-column {
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .footer-column:last-child {
        border-bottom: none;
    }

    .footer-column h3 {
        justify-content: center;
        font-size: 1.05rem;
        margin-bottom: 12px;
    }

    .footer-column p {
        font-size: .95rem;
    }

    .footer-link {
        justify-content: center;
    }

    .footer-note-present {
        justify-content: center;
        font-size: .82rem;
    }

    .footer-bottom {
        margin-top: 35px;
        padding-top: 20px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 14px;
        text-align: center;
        font-size: .78rem;
    }

    .footer-legal-nav {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

}


/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */

.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: all .25s ease;
    box-shadow: var(--shadow-soft);
    z-index: 9999;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--text);
}

@media (max-width: 650px) {
    .back-to-top {
        display: none;
    }
}