/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
    position: relative;
    background-color: #fdf6f4;
    margin-top: -40px;
    padding: 4rem 4rem 3rem;
    border-radius: 40px;
}

/* Beige nav area */
.site-footer__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
}

/* ---------- Back to top button ---------- */

.site-footer__top-btn {
    position: fixed;
    top: auto;
    bottom: 24px;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #4875be;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.2;
    z-index: 40;
    transition: opacity 0.2s ease;
}

.site-footer__top-btn.site-footer__top-btn--docked {
    position: absolute;
    top: 15px;
    right: 1rem;
    bottom: auto;
    z-index: 2;
}

.site-footer__top-btn:hover {
    opacity: 0.75;
}

/* ---------- Inner layout ---------- */

.site-footer__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

/* ---------- Branding ---------- */

.site-footer__branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.site-footer__logo-icon {
    width: 60px;
    height: auto;
}

/* ---------- Navigation ---------- */

.site-footer__nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0 1.5rem;
}

.site-footer__col--bordered {
    border-left: 1px solid #e8ddd8;
}

/* ---------- Link groups ---------- */

.site-footer__link-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-footer__eyebrow {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #d8c9c6;
    text-transform: uppercase;
}

.site-footer__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__link:hover {
    color: #fc7a62;
}

.site-footer__link-group--external .site-footer__link:hover {
    color: #4875be;
}

.site-footer__link-arrow {
    color: #fc7a62;
    font-size: 1rem;
    font-weight: 700;
    margin-left: auto;
}

.site-footer__link-icon {
    width: 0.75rem;
    height: 0.75rem;
    display: block;
    object-fit: contain;
    opacity: 0.6;
    margin-left: auto;
    transition: opacity 0.2s ease;
}

.site-footer__link-group--external .site-footer__link:hover .site-footer__link-icon {
    opacity: 1;
}

/* ---------- Sub-links ---------- */

.site-footer__sublinks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__sublinks a {
    font-size: 0.75rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__sublinks a:hover {
    color: #fc7a62;
}

.site-footer__col:hover .site-footer__sublinks a:hover,
.site-footer__col:focus-within .site-footer__sublinks a:hover {
    color: #fc7a62;
}

/* ---------- Copyright ---------- */

.site-footer__copyright {
    text-align: center;
    padding: 1.5rem 4rem;
    background-color: #fff;
}

.site-footer__copyright p {
    font-size: 0.6875rem;
    color: #888;
    margin: 0;
    letter-spacing: 0.05em;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .site-footer {
        padding: 4rem 2rem 0;
    }

    .site-footer__nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .site-footer__col--bordered {
        border-left: none;
    }

    .site-footer__col:nth-child(odd) {
        border-left: none;
    }
}

@media (max-width: 768px) {
    .site-footer {
        border-radius: 24px 24px 0 0;
    }

    .site-footer__top-btn {
        right: 1rem;
        bottom: 16px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer__branding {
        flex-direction: row;
        justify-content: center;
    }

    .site-footer__nav {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .site-footer__col {
        padding: 0;
    }

    .site-footer__col--bordered {
        border-left: none;
        border-top: 1px solid #e8ddd8;
        padding-top: 1.5rem;
    }
}
