/* Footer – Figma typography: Forma DJR Text, design tokens */

/* --- Slideout footer: main content sits on top, footer sticks to bottom and slides out on scroll --- */
.site-content-wrap {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    background-color: #000;
}

.site-footer {
    --Neutral-White-Stone: #EEEDED;
    --Primary-40: #FFF;
    position: sticky;
    bottom: 0;
    top: 0; /* when footer is taller than viewport, reveal normally */
    margin-top: auto;
    border-top: 2px solid #903510;
    background: linear-gradient(180deg, rgba(246, 91, 27, 0.30) 0%, rgba(0, 0, 0, 0.00) 54.33%), #000;
    color: var(--Primary-40);
    font-family: "forma-djr-text", sans-serif;
    padding: 120px 0 56px;
    z-index: 0;
}

/* Keep footer links clickable and keyboard-accessible when it slides into view */
.site-footer:focus-within {
    position: relative;
    z-index: 2;
}

.footer-container {
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 64px 72px;
}

/* Right side: Quick Links, Legal, Address (+ social) next to each other */
.footer-right-group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 48px 90px;
}

/* Column 1: Logo + motto */
.footer-brand {
    flex: 0 0 auto;
    min-width: 0;
}

.footer-logo-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 0;
}

.footer-logo-link:hover {
    color: #F65B1B;
    opacity: 1;
}

.footer-logo-img {
    display: block;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-company-name {
    display: block;
    font-family: "forma-djr-text", sans-serif;
    font-size: 2.75rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--Primary-40);
    margin: 0;
}

/* Desktop/Heading/H3 */
.footer-motto {
    color: var(--Neutral-White-Stone, #EEEDED);
    font-family: "forma-djr-text", sans-serif;
    font-size: 44px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    margin: 24px 0 0 0;
    max-width: 500px;
}

@media screen and (min-width: 1200px) {
    .footer-motto {
        font-size: 52px;
        max-width: 520px;
    }
}

@media screen and (min-width: 1700px) {
    .footer-motto {
        font-size: 70px;
        max-width: 720px;
    }

    .footer-right-group {
        gap: 48px 120px;
    }
}

/* Divider + bottom row (copyright, Site by Mude) */
.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 56px 0 28px 0;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 32px;
}

.footer-copyright p,
.footer-site-by p {
    margin: 0;
    font-family: "forma-djr-text", sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

.footer-site-by a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-site-by a:hover {
    color: #F65B1B;
}

/* Columns 2 & 3: Quick Links, Legal – Desktop/Body/Medium titles, Desktop/Body/Small items */
.footer-nav {
    flex: 0 0 auto;
}

/* Quick Links & Legal title (word as title) */
.footer-nav-heading {
    color: var(--Neutral-White-Stone, #EEEDED);
    font-family: "forma-djr-text", sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: 0.4px;
    margin: 0 0 24px 0;
}

.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}

.site-footer .footer-nav-list li,
.site-footer .footer-nav .menu-item {
    display: block;
    margin: 0 0 14px 0;
    list-style: none;
}

.site-footer .footer-nav-list li:last-child,
.site-footer .footer-nav .menu-item:last-child {
    margin-bottom: 0;
}

/* Menu items typography – ensure visible */
.site-footer .footer-nav-list a,
.site-footer .footer-nav-list li a,
.site-footer .footer-nav .menu-item a {
    color: #fff;
    font-family: "forma-djr-text", sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: 0.35px;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.site-footer .footer-nav-list a:hover,
.site-footer .footer-nav .menu-item a:hover {
    color: #F65B1B;
}

/* Address + social (inside right group, next to Quick Links & Legal) */
.footer-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Address block – "Address" label (Desktop/Body/Medium) then ACF title + text */
.footer-address {
    max-width: 300px;
}

/* "Address" word as title – same spacing as Quick Links / Legal headings */
.footer-address-label {
    color: var(--Neutral-White-Stone, #EEEDED);
    font-family: "forma-djr-text", sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: 0.4px;
    margin: 0 0 24px 0;
}

/* Address title ACF */
.footer-address-title {
    color: var(--Primary-40, #FFF);
    font-family: "forma-djr-text", sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.35px;
    margin: 0 0 6px 0;
}

/* Address ACF field (text) */
.footer-address-text,
.footer-phone {
    color: var(--Primary-40, #FFF);
    font-family: "forma-djr-text", sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: 0.35px;
    margin: 0 0 6px 0;
}

.footer-phone:last-child {
    margin-bottom: 0;
}

.footer-phone a {
    color: var(--Primary-40, #FFF);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-phone a:hover {
    color: #F65B1B;
}

/* Social icons below address */
.footer-social {
    display: flex;
    align-items: center;
    gap: 28px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: color 0.2s ease;
}

.footer-social-link:hover {
    color: #F65B1B;
}

.footer-social-link:hover .footer-social-icon-img {
    filter: invert(46%) sepia(92%) saturate(1200%) hue-rotate(346deg) brightness(100%) contrast(100%);
}

.footer-social-link svg,
.footer-social-icon-img {
    width: 24px;
    height: 24px;
    display: block;
}

.footer-social-icon-img {
    object-fit: contain;
    transition: filter 0.2s ease;
}

/* Responsive: match Figma behaviour */
@media screen and (max-width: 1024px) {
    .site-footer {
        padding: 88px 0 52px;
    }

    .footer-container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .footer-inner {
        gap: 52px 40px;
    }

    .footer-right-group {
        gap: 40px 56px;
    }

    .footer-company-name {
        font-size: 2.25rem;
    }

    .footer-motto {
        font-size: 32px;
        margin-top: 20px;
    }

    .footer-divider {
        margin-top: 44px;
        margin-bottom: 22px;
    }

    .footer-copyright p,
    .footer-site-by p {
        font-size: 0.875rem;
    }

    .footer-nav-heading,
    .footer-address-label {
        margin-bottom: 20px;
    }

    .footer-nav-list li {
        margin-bottom: 12px;
    }
}

@media screen and (max-width: 768px) {
    .site-footer {
        padding: 64px 0 44px;
    }

    .footer-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 48px;
    }

    .footer-brand {
        width: 100%;
    }

    .footer-right-group {
        flex-direction: column;
        width: 100%;
        gap: 40px 48px;
    }

    .footer-company-name {
        font-size: 2rem;
    }

    .footer-motto {
        font-size: 28px;
        max-width: none;
        margin-top: 18px;
    }

    .footer-divider {
        margin-top: 40px;
        margin-bottom: 22px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav-heading,
    .footer-address-label {
        margin-bottom: 16px;
    }

    .footer-nav-list li {
        margin-bottom: 10px;
    }

    .footer-right {
        gap: 24px;
    }

    .footer-social {
        gap: 24px;
    }

    .footer-address {
        max-width: none;
    }
}

@media screen and (max-width: 480px) {
    .site-footer {
        padding: 52px 0 36px;
    }

    .footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-company-name {
        font-size: 1.75rem;
    }

    .footer-motto {
        font-size: 22px;
    }

    .footer-nav-list a {
        font-size: 0.875rem;
    }

    .footer-copyright p,
    .footer-site-by p {
        font-size: 0.8125rem;
    }
}
