/* Auto Glass World - footer */
.site-footer {
    overflow: hidden;
    padding: clamp(72px, 10vh, 110px) 0 28px;
    border-top: 1px solid rgba(244, 242, 236, 0.08);
    background: var(--agw-color-graphite);
    color: var(--agw-color-paper);
}

.site-footer a {
    color: inherit;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--agw-color-sky);
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 3fr);
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.footer-logo {
    display: block;
}

.footer-logo img {
    display: block;
    width: auto;
    height: 58px;
}

.footer-about,
.footer-contact {
    max-width: 34ch;
    margin: 0;
    color: var(--agw-film-muted);
    font-size: 15px;
    line-height: 23px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-socials,
.footer-menu,
.footer-legal {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--agw-film-line);
    border-radius: 50%;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.footer-col-title {
    margin: 0 0 16px;
    color: var(--agw-film-muted);
    font-family: var(--agw-font-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    font-size: 15px;
    transition: color var(--agw-transition);
}

/* Big outlined word mark; the <em> part is solid. Slides in on scroll where supported. */
.footer-signature {
    margin: clamp(56px, 10vh, 110px) 0 28px;
    color: transparent;
    font-family: var(--agw-font-heading);
    font-size: clamp(3.6rem, 13.4vw, 13rem);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.012em;
    white-space: nowrap;
    -webkit-text-stroke: 1.5px rgba(244, 242, 236, 0.28);
}

.footer-signature em {
    color: var(--agw-color-paper);
    font-style: italic;
    -webkit-text-stroke: 0;
}

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .footer-signature {
            animation: agw-signature linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 50%;
        }
    }
}

@keyframes agw-signature {
    from {
        opacity: 0.2;
        transform: translateX(8%);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--agw-film-line);
    color: var(--agw-film-muted);
    font-size: 13.5px;
}

.footer-copyright {
    margin: 0;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

.site-footer .footer-legal a:hover {
    color: var(--agw-color-paper);
}

/* Mobile quick bar (call + quote). Hidden on desktop; header.js adds .is-on after the header. */
.mobile-bar {
    display: none;
}

@media (max-width: 991px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        grid-template-columns: 1fr 1fr;
    }

    .footer-signature {
        white-space: normal;
    }

    .site-footer {
        padding-bottom: 96px;
    }

    .mobile-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 90;
        display: flex;
        gap: 10px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(10, 15, 23, 0.9);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        visibility: hidden;
        transform: translateY(110%);
        transition: transform 0.5s var(--agw-ease), visibility 0s linear 0.5s;
    }

    .mobile-bar.is-on {
        visibility: visible;
        transform: none;
        transition: transform 0.5s var(--agw-ease);
    }

    .mobile-bar-btns {
        display: flex;
        flex: 1;
        gap: 10px;
        transition: opacity 0.3s;
    }

    .mobile-bar.is-min .mobile-bar-btns {
        opacity: 0;
    }

    .mobile-bar .btn {
        --agw-btn-height: 50px;
        flex: 1;
        justify-content: center;
    }

    /* Round arrow at the bar's left end (the chat bubble sits on the right). Hide: the bar slides
       left while the arrow slides right by the same amount, so the arrow stays in place and only it
       shows (bottom-left). Show: both slide back. */
    .mobile-bar-toggle {
        display: grid;
        flex: none;
        place-items: center;
        align-self: center;
        width: 32px;
        height: 32px;
        margin: 0 -4px 0 -10px; /* 6px from the screen edge, 6px to the buttons */
        padding: 0;
        border: 0;
        position: relative;
        z-index: 1;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        color: var(--agw-color-white);
        cursor: pointer;
    }

    .mobile-bar-toggle,
    .mobile-bar-toggle svg {
        transition: transform 0.5s var(--agw-ease);
    }

    .mobile-bar.is-on.is-min {
        border-radius: 0 16px 0 0;
        /* Left until 44px show, down 26px; the arrow moves up 13px inside it (below), so the tab is
           44 x 44 with 6px around the arrow. The arrow normally sits 19px below the bar top
           (10px padding + (50px buttons - 32px) / 2): 19 - 13 = 6. */
        transform: translate(calc(-100% + 44px), 26px);
    }

    .mobile-bar.is-min .mobile-bar-toggle {
        transform: translate(calc(100vw - 44px), -13px); /* the bar is 100vw wide; 44px = 6 + 32 + 6 */
    }

    .mobile-bar.is-min .mobile-bar-toggle svg {
        transform: rotate(180deg);
    }

}

@media (max-width: 575px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-bar,
    .mobile-bar.is-on,
    .mobile-bar-btns,
    .mobile-bar-toggle,
    .mobile-bar-toggle svg {
        transition: none;
    }
}
