/* ==========================================================================
   FOOTER STYLES — Gradient Ribbon
   ========================================================================== */

.rv-footer {
    background: linear-gradient(180deg, var(--rv-brand-primary, #1e3a5f) 0%, #0f172a 100%);
    color: #fff;
    position: relative;
    margin-top: auto;
}

.rv-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #8b5cf6, #ec4899, #2563eb);
    background-size: 300% 100%;
}

.rv-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2.5rem 0;
}

/* ---------- Top row: brand + app ---------- */

.rv-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rv-footer__brand-side {
    max-width: 420px;
}

.rv-footer__wordmark {
    font-size: var(--rv-text-3xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.1;
}

.rv-footer__tagline {
    font-size: var(--rv-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.35rem;
}

.rv-footer__mission {
    font-size: var(--rv-text-md);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.75rem;
}

.rv-footer__app-side {
    text-align: right;
}

.rv-footer__app-label {
    font-size: var(--rv-text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.5rem;
}

.rv-footer__store-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.rv-footer__store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.rv-footer__store-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.rv-footer__store-badge svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.rv-footer__store-badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.rv-footer__store-badge-text .small {
    font-size: var(--rv-text-2xs);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.rv-footer__store-badge-text .big {
    font-size: var(--rv-text-md);
    font-weight: 600;
}

/* ---------- Navigation grid ---------- */

.rv-footer__nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rv-footer__nav-col h4 {
    font-size: var(--rv-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.625rem;
}

.rv-footer__nav-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}

.rv-footer__nav-col a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: var(--rv-text-md);
    transition: color 0.2s;
}

.rv-footer__nav-col a:hover {
    color: #fff;
}

/* ---------- Newsletter row ---------- */

.rv-footer__newsletter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 1.5rem;
    flex-wrap: wrap;
}

.rv-footer__newsletter-text {
    font-size: var(--rv-text-base);
    color: rgba(255, 255, 255, 0.4);
}

.rv-footer__newsletter-text strong {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

/* Style the newsletter shortcode output within footer */
.rv-footer__newsletter-form {
    flex: 1;
    max-width: 320px;
}

.rv-footer__newsletter-form .rv-newsletter-wrapper {
    margin-block-start: 0;
}

.rv-footer__newsletter-form .rv-newsletter-form--inline {
    max-width: 100%;
}

.rv-footer__newsletter-form .rv-newsletter-form--inline input[type="email"] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    border-radius: 6px 0 0 6px;
    color: #fff;
    font-size: var(--rv-text-md);
    min-width: 0;
}

.rv-footer__newsletter-form .rv-newsletter-form--inline input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.rv-footer__newsletter-form .rv-newsletter-form--inline input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

.rv-footer__newsletter-form .rv-newsletter-form--inline .rv-newsletter-submit {
    padding: 0.5rem 1.125rem;
    background: var(--rv-brand-accent, #2563eb);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    font-size: var(--rv-text-md);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.rv-footer__newsletter-form .rv-newsletter-form--inline .rv-newsletter-submit:hover {
    background: #1d4ed8;
}

/* ---------- Bottom bar ---------- */

.rv-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: var(--rv-text-xs);
    color: rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rv-footer__bottom a {
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.rv-footer__bottom a:hover {
    color: rgba(255, 255, 255, 0.5);
}

.rv-footer__legal {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ---------- Tablet (782px) ---------- */

@media (max-width: 782px) {
    .rv-footer__inner {
        padding: 2rem 1.5rem 0;
    }

    .rv-footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .rv-footer__brand-side {
        max-width: 100%;
    }

    .rv-footer__app-side {
        text-align: left;
        width: 100%;
    }

    .rv-footer__store-badges {
        justify-content: flex-start;
    }

    .rv-footer__nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .rv-footer__newsletter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem 0;
    }

    .rv-footer__newsletter-form {
        max-width: 100%;
        width: 100%;
    }

    .rv-footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
        padding: 1rem 0;
    }

    .rv-footer__legal {
        justify-content: center;
    }
}

/* ---------- Small mobile (420px) ---------- */

@media (max-width: 420px) {
    .rv-footer__inner {
        padding: 1.75rem 1.25rem 0;
    }

    .rv-footer__top {
        gap: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .rv-footer__store-badges {
        flex-direction: column;
        gap: 0.5rem;
    }

    .rv-footer__store-badge {
        justify-content: center;
        width: 100%;
    }

    .rv-footer__nav {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}
