/* =============================================================
   Vigilis Site Footer
   ============================================================= */

.vig-site-footer {
    background: #020202;
    color: #D8D3DF;
    font-family: var(--wp--preset--font-family--lexend, 'Lexend', sans-serif);
}

/* -- Top section --------------------------------------------- */
.vig-footer-top {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 64px var(--wp--custom--spacing--side, 80px) 48px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 40px;
}

.vig-footer-logo {
    display: block;
    height: 45px;
    width: auto;
}

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

/* -- Col headings -------------------------------------------- */
.vig-footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 16px;
}

.vig-footer-heading--contact {
    margin-top: 24px;
}

/* -- Address / text ------------------------------------------ */
.vig-footer-address,
.vig-footer-text {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: #D8D3DF;
    font-style: normal;
    margin: 0;
}

.vig-footer-address a,
.vig-footer-text a {
    color: #D8D3DF;
    text-decoration: none;
    transition: color 0.2s;
}

.vig-footer-address a:hover,
.vig-footer-text a:hover {
    color: #ffffff;
}

.vig-footer-address a:focus-visible,
.vig-footer-text a:focus-visible {
    outline: 2px solid #F48113;
    outline-offset: 2px;
}

/* -- Nav links ----------------------------------------------- */
.vig-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vig-footer-links a {
    font-size: 14px;
    font-weight: 300;
    color: #D8D3DF;
    text-decoration: none;
    transition: color 0.2s;
}

.vig-footer-links a:hover {
    color: #ffffff;
}

.vig-footer-links a:focus-visible {
    outline: 2px solid #F48113;
    outline-offset: 2px;
}

/* -- Newsletter ---------------------------------------------- */
.vig-footer-newsletter__heading {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 16px;
}

.vig-newsletter-input-wrap {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
}

.vig-newsletter-input {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

/* Higher specificity (0,2,0) to beat the global input[type="email"] rule in colors.css (0,1,0) */
input[type="email"].vig-newsletter-input {
    border-radius: 9999px 0 0 9999px;
    color: rgba(255, 255, 255, 0.9);
}

.vig-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.vig-newsletter-input:focus {
    background: rgba(255, 255, 255, 0.08);
}

.vig-newsletter-input:focus-visible {
    outline: 2px solid #F48113;
    outline-offset: -2px;
}

.vig-newsletter-btn {
    padding: 12px 20px;
    background: #F48113;
    color: #020202;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 0 9999px 9999px 0;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.vig-newsletter-btn:hover {
    background: #FFB56E;
}

.vig-newsletter-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -3px;
}

.vig-newsletter-disclaimer {
    font-size: 12px;
    color: #8a8a8a;
    margin: 8px 0 0;
}

/* -- Marquee ------------------------------------------------- */
.vig-marquee {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    white-space: nowrap;
    padding: 14px 0;
    cursor: default;
}

.vig-marquee__track {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    animation: vig-marquee-scroll 60s linear infinite;
    will-change: transform;
}

.vig-marquee:hover .vig-marquee__track {
    animation-play-state: paused;
}

@keyframes vig-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.vig-marquee__word {
    font-size: 16px;
    font-weight: 300;
    color: #ffffff;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.vig-marquee__dot svg {
    display: block;
}

/* -- Social links -------------------------------------------- */
.vig-footer-social {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 32px var(--wp--custom--spacing--side, 80px);
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vig-footer-social__label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vig-footer-social__list {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vig-footer-social__list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s;
}

.vig-footer-social__list a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.vig-footer-social__list a:focus-visible {
    outline: 2px solid #F48113;
    outline-offset: 2px;
}

/* -- Bottom bar --------------------------------------------- */
.vig-footer-bottom {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 20px var(--wp--custom--spacing--side, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.vig-footer-copyright {
    font-size: 12px;
    color: #8a8a8a;
    margin: 0;
}

.vig-footer-policies {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vig-footer-policies a {
    font-size: 12px;
    color: #8a8a8a;
    text-decoration: none;
    transition: color 0.2s;
}

.vig-footer-policies a:hover {
    color: #ffffff;
}

.vig-footer-policies a:focus-visible {
    outline: 2px solid #F48113;
    outline-offset: 2px;
}

/* =============================================================
   Responsive — tablet (768px)
   ============================================================= */
@media (max-width: 920px) {
    .vig-footer-top {
        padding: 48px 24px 32px;
    }

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

    .vig-footer-newsletter {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .vig-newsletter-input-wrap,
    .vig-newsletter-form,
    .vig-footer-newsletter {
        min-width: 0;
    }

    .vig-footer-social {
        padding: 24px 24px;
        flex-wrap: wrap;
    }

    .vig-footer-bottom {
        padding: 16px 24px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============================================================
   Responsive — mobile (480px)
   ============================================================= */
@media (max-width: 480px) {
    .vig-footer-grid {
        grid-template-columns: 1fr;
    }

    .vig-footer-newsletter {
        grid-column: auto;
    }

    .vig-newsletter-input-wrap {
        flex-direction: column;
        border-radius: 12px;
        overflow: visible;
    }

    input[type="email"].vig-newsletter-input {
        border-radius: 12px 12px 0 0;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .vig-newsletter-btn {
        border-radius: 0 0 12px 12px;
        width: 100%;
    }
}

/* =============================================================
   Reduced motion — WCAG 2.1 AA 2.2.2
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
    .vig-marquee__track {
        animation: none;
        /* Display text statically without scrolling */
    }

    .vig-footer-address a,
    .vig-footer-text a,
    .vig-footer-links a,
    .vig-newsletter-btn,
    .vig-footer-social__list a,
    .vig-footer-policies a {
        transition: none;
    }
}
