/* ==========================================================================
   FOODBANK FOOTER REDESIGN — Award-winning, modular, animated
   ========================================================================== */

:root {
    --fb-footer-bg: #1a1a2e;
    --fb-footer-bg-accent: #16213e;
    --fb-footer-text: #e0e0e0;
    --fb-footer-text-muted: #8a8fa8;
    --fb-footer-heading: #ffffff;
    --fb-footer-accent: #e86121;
    --fb-footer-accent-glow: rgba(232, 97, 33, 0.3);
    --fb-footer-link-hover: #ff8c52;
    --fb-footer-border: rgba(255, 255, 255, 0.08);
    --fb-footer-card-bg: rgba(255, 255, 255, 0.04);
    --fb-footer-radius: 16px;
    --fb-footer-radius-sm: 10px;
}

/* ---------- Base ---------- */
.fb-footer {
    position: relative;
    overflow: hidden;
    background: var(--fb-footer-bg);
    color: var(--fb-footer-text);
    font-family: inherit;
}

/* ---------- Wave Separator ---------- */
.fb-footer__wave {
    position: relative;
    margin-top: -1px;
    line-height: 0;
}
.fb-footer__wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ---------- Background Art ---------- */
.fb-footer__bg-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.fb-footer__svg {
    position: absolute;
    width: 260px;
    height: 260px;
    opacity: 0.6;
}
.fb-footer__svg--left {
    left: -40px;
    bottom: 20px;
}
.fb-footer__svg--right {
    right: -30px;
    top: 40px;
}

/* Floating SVG keyframes */
@keyframes fbFloat1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(6deg); }
}
@keyframes fbFloat2 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.05); }
}
@keyframes fbFloat3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-4deg); }
}
@keyframes fbFloat4 {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.08) rotate(8deg); }
}

.fb-footer__float--1 { animation: fbFloat1 7s ease-in-out infinite; }
.fb-footer__float--2 { animation: fbFloat2 9s ease-in-out infinite; }
.fb-footer__float--3 { animation: fbFloat3 8s ease-in-out infinite 1s; }
.fb-footer__float--4 { animation: fbFloat4 10s ease-in-out infinite 2s; }

/* ---------- Food Emoji Particles ---------- */
@keyframes fbParticleDrift {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-80px) rotate(25deg); opacity: 0; }
}

.fb-footer__particle {
    position: absolute;
    font-size: 22px;
    opacity: 0;
    animation: fbParticleDrift 12s ease-in-out infinite;
    will-change: transform, opacity;
    user-select: none;
}
.fb-footer__particle--1 { left: 5%; bottom: 15%; animation-delay: 0s; font-size: 26px; }
.fb-footer__particle--2 { left: 18%; bottom: 60%; animation-delay: 2s; font-size: 20px; }
.fb-footer__particle--3 { left: 45%; bottom: 25%; animation-delay: 4s; font-size: 18px; }
.fb-footer__particle--4 { right: 30%; bottom: 50%; animation-delay: 6s; font-size: 24px; }
.fb-footer__particle--5 { right: 12%; bottom: 20%; animation-delay: 8s; font-size: 20px; }
.fb-footer__particle--6 { right: 5%; bottom: 70%; animation-delay: 10s; font-size: 22px; }

/* ---------- Main Content ---------- */
.fb-footer__main {
    position: relative;
    z-index: 1;
    padding: 60px 0 40px;
}

.fb-footer__grid {
    row-gap: 40px;
}

/* ---------- Scroll Reveal ---------- */
.fb-footer__col {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fb-footer__col.fb-footer--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Module 1: Brand & Social ---------- */
.fb-footer__brand {
    margin-bottom: 24px;
}
.fb-footer__logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}
.fb-footer__logo-link:hover {
    transform: scale(1.05);
}
.fb-footer__logo-img {
    width: 130px;
    height: auto;
    filter: brightness(1.1);
}
.fb-footer__tagline {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--fb-footer-text-muted);
    max-width: 260px;
}
.fb-footer__social {
    margin-top: 4px;
}
.fb-footer__social-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--fb-footer-text-muted);
    margin-bottom: 14px;
}
.fb-footer__social-icons {
    display: flex;
    gap: 10px;
}
.fb-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--fb-footer-card-bg);
    border: 1px solid var(--fb-footer-border);
    color: var(--fb-footer-text);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.fb-footer__social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--fb-footer-accent);
    transform: scale(0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}
.fb-footer__social-link i {
    position: relative;
    z-index: 1;
}
.fb-footer__social-link:hover {
    color: #fff;
    border-color: var(--fb-footer-accent);
    box-shadow: 0 0 20px var(--fb-footer-accent-glow);
    transform: translateY(-3px);
}
.fb-footer__social-link:hover::before {
    transform: scale(1);
}

/* ---------- Module 2 & 3 & 4: Widget ---------- */
.fb-footer__widget {
    background: var(--fb-footer-card-bg);
    border: 1px solid var(--fb-footer-border);
    border-radius: var(--fb-footer-radius);
    padding: 28px 24px;
    height: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.fb-footer__widget:hover {
    border-color: rgba(232, 97, 33, 0.2);
    box-shadow: 0 4px 30px rgba(232, 97, 33, 0.08);
}

.fb-footer__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--fb-footer-heading);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}
.fb-footer__title-icon {
    font-size: 18px;
    display: inline-flex;
}

/* Nav links */
.fb-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fb-footer__nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--fb-footer-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 0;
}
.fb-footer__nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fb-footer-accent);
    opacity: 0.4;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.fb-footer__nav-link:hover {
    color: var(--fb-footer-link-hover);
    transform: translateX(6px);
}
.fb-footer__nav-link:hover .fb-footer__nav-dot {
    opacity: 1;
    box-shadow: 0 0 8px var(--fb-footer-accent-glow);
}

/* App badges */
.fb-footer__apps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fb-footer__app-badge {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--fb-footer-radius-sm);
    overflow: hidden;
}
.fb-footer__app-badge img {
    display: block;
    height: 44px;
    width: auto;
    border-radius: var(--fb-footer-radius-sm);
}
.fb-footer__app-badge:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Trust badges */
.fb-footer__trust {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.fb-footer__trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--fb-footer-border);
    border-radius: var(--fb-footer-radius-sm);
    transition: all 0.3s ease;
}
.fb-footer__trust-badge:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(232, 97, 33, 0.15);
}
.fb-footer__trust-badge img {
    height: 28px;
    width: auto;
    object-fit: contain;
}
.fb-footer__etbis-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fb-footer__etbis-info span {
    font-size: 10px;
    color: var(--fb-footer-text-muted);
}
.fb-footer__etbis-info strong {
    font-size: 12px;
    color: var(--fb-footer-heading);
    font-weight: 600;
}

/* ---------- Bottom Bar ---------- */
.fb-footer__bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--fb-footer-border);
    padding: 18px 0;
}
.fb-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.fb-footer__copyright {
    font-size: 12px;
    color: var(--fb-footer-text-muted);
    margin: 0;
}

/* Accent dots animation */
.fb-footer__bottom-accent {
    display: flex;
    gap: 6px;
}
.fb-footer__bottom-accent span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fb-footer-accent);
    opacity: 0.4;
    animation: fbPulse 2s ease-in-out infinite;
}
.fb-footer__bottom-accent span:nth-child(2) {
    animation-delay: 0.3s;
}
.fb-footer__bottom-accent span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fbPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

/* ---------- Gradient Line Animation at Top ---------- */
.fb-footer__main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--fb-footer-accent), transparent);
    animation: fbGlowLine 3s ease-in-out infinite;
}

@keyframes fbGlowLine {
    0%, 100% { width: 80px; opacity: 0.5; }
    50% { width: 200px; opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .fb-footer__main {
        padding: 40px 0 30px;
    }
    .fb-footer__svg {
        width: 180px;
        height: 180px;
    }
    .fb-footer__particle { font-size: 16px !important; }
}

@media (max-width: 767px) {
    .fb-footer__wave svg {
        height: 50px;
    }
    .fb-footer__main {
        padding: 30px 0 20px;
    }
    .fb-footer__grid {
        row-gap: 24px;
    }
    .fb-footer__widget {
        padding: 22px 18px;
    }
    .fb-footer__col--brand {
        text-align: center;
    }
    .fb-footer__col--brand .fb-footer__tagline {
        margin-left: auto;
        margin-right: auto;
    }
    .fb-footer__social-icons {
        justify-content: center;
    }
    .fb-footer__social-label {
        text-align: center;
    }
    .fb-footer__bottom-inner {
        justify-content: center;
        text-align: center;
    }
    .fb-footer__svg--left,
    .fb-footer__svg--right {
        display: none;
    }
}

@media (max-width: 575px) {
    .fb-footer__particle {
        display: none;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .fb-footer__float--1,
    .fb-footer__float--2,
    .fb-footer__float--3,
    .fb-footer__float--4,
    .fb-footer__particle,
    .fb-footer__bottom-accent span {
        animation: none !important;
    }
    .fb-footer__main::before {
        animation: none !important;
        width: 120px;
        opacity: 0.7;
    }
    .fb-footer__col {
        opacity: 1;
        transform: none;
    }
}
