/* =========================================================
   VETERAN FORUM PREMIUM FOOTER CSS
   File: /assets/style/footer.css

   Designed to match Veteran Forum header identity.
   Mobile-first, accessible, lightweight and legally safe.
   ========================================================= */

:root {
    --vf-navy: #0A2342;
    --vf-deep-blue: #071A33;
    --vf-royal-blue: #123B63;
    --vf-gold: #D4AF37;
    --vf-soft-gold: #F2D27A;
    --vf-off-white: #F8F6F0;
    --vf-white: #FFFFFF;
    --vf-steel: #B8C0CC;
    --vf-muted: rgba(255, 255, 255, 0.76);
    --vf-footer-gradient: linear-gradient(135deg, #071A33 0%, #0A2342 55%, #123B63 100%);
    --vf-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F2D27A 100%);
    --vf-footer-shadow: 0 -18px 50px rgba(7, 26, 51, 0.20);
    --vf-radius: 18px;
    --vf-container: 1240px;
}

/* Footer base */
.vf-footer {
    position: relative;
    background: var(--vf-footer-gradient);
    color: var(--vf-white);
    font-family: Inter, Poppins, Arial, system-ui, sans-serif;
    box-shadow: var(--vf-footer-shadow);
}

.vf-footer a {
    color: inherit;
    text-decoration: none;
}

.vf-footer-container {
    width: min(var(--vf-container), calc(100% - 40px));
    margin: 0 auto;
}

/* Visible focus for accessibility */
.vf-footer a:focus-visible,
.vf-footer button:focus-visible {
    outline: 3px solid var(--vf-soft-gold);
    outline-offset: 3px;
}

/* =========================================================
   TOP CTA STRIP
   ========================================================= */
.vf-footer-cta {
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), transparent 30%),
        rgba(7, 26, 51, 0.94);
    border-top: 4px solid var(--vf-gold);
    border-bottom: 1px solid rgba(242, 210, 122, 0.20);
}

.vf-footer-cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 34px 0;
}

.vf-footer-kicker {
    display: inline-flex;
    color: var(--vf-soft-gold);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 8px;
}

.vf-footer-cta h2 {
    margin: 0 0 8px;
    font-family: Merriweather, Georgia, serif;
    font-size: clamp(1.35rem, 2.2vw, 2.1rem);
    line-height: 1.2;
}

.vf-footer-cta p {
    margin: 0;
    max-width: 760px;
    color: var(--vf-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.vf-footer-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.vf-footer-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
    border: 1px solid rgba(242, 210, 122, 0.55);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    white-space: nowrap;
}

.vf-footer-btn-gold {
    color: var(--vf-deep-blue);
    background: var(--vf-gold-gradient);
    box-shadow: 0 14px 26px rgba(212, 175, 55, 0.24);
}

.vf-footer-btn-outline {
    color: var(--vf-white);
    background: rgba(255, 255, 255, 0.06);
}

.vf-footer-btn:hover {
    transform: translateY(-2px);
}

/* =========================================================
   MAIN FOOTER GRID
   ========================================================= */
.vf-footer-main {
    padding: 52px 0 34px;
}

.vf-footer-grid {
    display: grid;
    grid-template-columns: 1.45fr repeat(4, 1fr);
    gap: 34px;
}

/* Brand block */
.vf-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vf-footer-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex: 0 0 64px;
}

.vf-footer-logo-fallback {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 50%;
    display: none;
    place-items: center;
    position: relative;
    color: var(--vf-gold);
    background: radial-gradient(circle at center, var(--vf-royal-blue) 0%, var(--vf-navy) 65%, var(--vf-deep-blue) 100%);
    border: 3px solid var(--vf-gold);
}

.vf-footer-logo-fallback::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(242, 210, 122, 0.55);
    border-radius: 50%;
}

.vf-footer-logo-star {
    position: absolute;
    top: 7px;
    font-size: 0.65rem;
    color: var(--vf-soft-gold);
}

.vf-footer-logo-text {
    font-family: Georgia, serif;
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -0.05em;
    z-index: 1;
}

.vf-footer-brand strong {
    display: block;
    font-family: Merriweather, Georgia, serif;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    color: var(--vf-white);
}

.vf-footer-brand em {
    display: block;
    font-style: normal;
    color: var(--vf-soft-gold);
    font-weight: 800;
    font-size: 0.86rem;
    margin-top: 2px;
}

.vf-footer-positioning {
    margin: 20px 0 10px;
    color: var(--vf-soft-gold);
    font-weight: 900;
    line-height: 1.5;
}

.vf-footer-description {
    margin: 0;
    color: var(--vf-muted);
    line-height: 1.75;
    font-size: 0.96rem;
}

.vf-footer-contact {
    margin-top: 18px;
    display: grid;
    gap: 9px;
    font-style: normal;
}

.vf-footer-contact a {
    color: var(--vf-off-white);
    font-weight: 750;
}

.vf-footer-contact a:hover {
    color: var(--vf-soft-gold);
}

/* Footer columns */
.vf-footer-col h3 {
    margin: 0 0 16px;
    color: var(--vf-soft-gold);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.vf-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}

.vf-footer-col a {
    color: var(--vf-muted);
    line-height: 1.45;
    font-size: 0.94rem;
    transition: color .18s ease, padding-left .18s ease;
}

.vf-footer-col a:hover {
    color: var(--vf-soft-gold);
    padding-left: 4px;
}

/* Mobile accordion button hidden on desktop */
.vf-footer-accordion {
    display: none;
}

/* =========================================================
   DISCLAIMER SECTION
   ========================================================= */
.vf-footer-disclaimer {
    padding: 0 0 30px;
}

.vf-disclaimer-box {
    border: 1px solid rgba(242, 210, 122, 0.32);
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--vf-radius);
    padding: 24px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.vf-disclaimer-box h2 {
    margin: 0 0 10px;
    color: var(--vf-soft-gold);
    font-family: Merriweather, Georgia, serif;
    font-size: 1.2rem;
}

.vf-disclaimer-box p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    font-size: 0.95rem;
}

.vf-disclaimer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: var(--vf-steel);
}

.vf-disclaimer-links a {
    color: var(--vf-off-white);
    font-weight: 850;
}

.vf-disclaimer-links a:hover {
    color: var(--vf-soft-gold);
}

/* =========================================================
   COPYRIGHT BAR
   ========================================================= */
.vf-footer-bottom {
    border-top: 1px solid rgba(242, 210, 122, 0.22);
    background: rgba(0, 0, 0, 0.18);
}

.vf-footer-bottom-inner {
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
}

.vf-footer-bottom p {
    margin: 0;
    color: var(--vf-muted);
    font-size: 0.9rem;
}

.vf-footer-bottom p:last-child {
    text-align: right;
}

.vf-footer-bottom-slogan {
    color: var(--vf-soft-gold) !important;
    font-weight: 900;
    text-align: center;
}

/* Back to top */
.vf-back-to-top {
    position: fixed;
    right: 18px;
    bottom: 76px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(242, 210, 122, 0.60);
    border-radius: 50%;
    display: none;
    place-items: center;
    background: var(--vf-gold-gradient);
    color: var(--vf-deep-blue);
    font-size: 1.3rem;
    font-weight: 900;
    z-index: 1500;
    box-shadow: 0 12px 28px rgba(7, 26, 51, 0.25);
}

.vf-back-to-top.is-visible {
    display: grid;
}

/* =========================================================
   RESPONSIVE FOOTER
   ========================================================= */
@media (max-width: 1100px) {
    .vf-footer-grid {
        grid-template-columns: 1.2fr repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .vf-footer-container {
        width: min(100% - 28px, var(--vf-container));
    }

    .vf-footer-cta-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .vf-footer-cta-actions {
        justify-content: flex-start;
    }

    .vf-footer-btn {
        width: 100%;
    }

    .vf-footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .vf-footer-main {
        padding: 38px 0 24px;
    }

    .vf-footer-brand-block {
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(242, 210, 122, 0.18);
    }

    /* Convert columns into accordions on mobile */
    .vf-footer-accordion {
        width: 100%;
        min-height: 48px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 1px solid rgba(242, 210, 122, 0.24);
        border-radius: 12px;
        padding: 13px 14px;
        background: rgba(255, 255, 255, 0.06);
        color: var(--vf-soft-gold);
        font-weight: 900;
        text-align: left;
        font-size: 1rem;
    }

    .vf-footer-plus {
        transition: transform .18s ease;
        font-size: 1.3rem;
    }

    .vf-footer-accordion.is-active .vf-footer-plus {
        transform: rotate(45deg);
    }

    .vf-footer-panel {
        display: none;
        padding: 14px 12px 2px;
    }

    .vf-footer-panel.is-open {
        display: block;
    }

    .vf-footer-panel h3 {
        display: none;
    }

    .vf-footer-col ul {
        gap: 0;
    }

    .vf-footer-col li a {
        display: block;
        min-height: 44px;
        padding: 11px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 0.96rem;
    }

    .vf-disclaimer-box {
        padding: 18px;
    }

    .vf-footer-bottom-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 16px 0;
    }

    .vf-footer-bottom p:last-child {
        text-align: center;
    }
}

@media (max-width: 520px) {
    .vf-footer-cta-inner {
        padding: 28px 0;
    }

    .vf-footer-brand {
        align-items: flex-start;
    }

    .vf-footer-logo,
    .vf-footer-logo-fallback {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .vf-footer-brand strong {
        font-size: 1.05rem;
    }

    .vf-footer-brand em {
        font-size: 0.78rem;
    }

    .vf-footer-contact a {
        min-height: 38px;
        display: flex;
        align-items: center;
    }

    .vf-back-to-top {
        right: 14px;
        bottom: 72px;
    }
}
