.footer {
    margin-bottom: 0 !important;
}

.top-footer-section {
    background-color: var(--bg-card-body);
    color: var(--text-high);
    margin-top: 1rem;
    padding-top: 10px;
    padding-bottom: 8px;
    border-top: 2px solid var(--brand-primary);
}

.top-footer-section .featured-box {
    padding: 10px 8px;
}

.top-footer-section .featured-box h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

.top-footer-section .featured-box p {
    font-size: 12px;
    margin-bottom: 0;
}

/* ---------- Immersive Footer Base ---------- */
.immersive-footer {
    position: relative;
    overflow: hidden;
    color: #f8fafc;
}

/* Background image layer — uses brand gradient as fallback */
.footer-bg-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    background-size: cover;
    background-position: center bottom;
    opacity: 0.25;
    z-index: 1;
}

/* Gradient overlay for readability */
.footer-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    z-index: 2;
}

/* Content layer above background */
.footer-content-layer {
    position: relative;
    z-index: 10;
}

/* ---------- Middle Footer: Flex Layout ---------- */
.footer-main-grid {
    padding: 3.5rem 0;
}

.footer-flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 2.5rem;
}

.footer-flex-item {
    flex: 1 1 0;
    min-width: 140px;
}

.footer-flex-logo {
    flex: 0 0 auto;
    min-width: 140px;
    max-width: 300px;
}

.footer-flex-payment-social {
    flex: 1.8 1 0;
    min-width: 240px;
}

/* Logo column */
.footer-logo-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}



.footer-vision-text {
    font-size: 12px;
    line-height: 1.7;
    color: rgba(148, 163, 184, 0.85);
    padding-right: 1rem;
    margin-bottom: 0;
}

/* Section titles */
.footer-section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Navigation link list */
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li+li {
    margin-top: 10px;
}

.footer-nav-list a {
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
}

.footer-nav-list a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

/* Address */
.footer-address-text {
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* ---------- Payment + Social Wrapper ---------- */
.footer-payment-social-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-ps-block {
    flex: 1;
    min-width: 0;
}

/* Payment row — single line, no wrap */
.footer-payment-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-payment-img {
    width: 46px;
    height: 38px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 4px;
    transition: all 0.25s ease;
    box-shadow: var(--box-shadow-inset);
}

.footer-payment-img:hover {
    box-shadow: var(--box-shadow-inset-focus);
    transform: translateY(-2px);
}

/* Social row */
.footer-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 15px;
    text-decoration: none !important;
}

.footer-social-btn:hover {
    transform: translateY(-3px);
    color: #ffffff !important;
}

.footer-social-fb {
    font-size: 30px;
    color: #fff;
}

.footer-social-fb:hover {
    font-size: 32px;
    color: #fff;
}

.footer-social-tt {
    color: #fff;
    font-size: 30px;
}

.footer-social-tt:hover {
    color: #000;
    font-size: 32px;
}

/* ---------- Lower Footer: Copyright Bar ---------- */
.footer-copyright-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    background: var(--bg-card-body);
}

.footer-copyright-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-copyright-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-company-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.footer-copyright-divider {
    height: 1px;
    width: 32px;
    background-color: rgba(100, 116, 139, 0.3);
}

.footer-copyright-text {
    font-size: 11px;
    color: rgba(100, 116, 139, 0.7);
    margin-bottom: 0;
}

.footer-copyright-right {
    font-size: 11px;
    color: rgba(100, 116, 139, 0.7);
}

.footer-dev-link {
    color: var(--brand-primary) !important;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-dev-link:hover {
    color: var(--text-high) !important;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (min-width: 768px) {
    .footer-copyright-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 992px) {
    .footer-payment-row {
        gap: 8px;
    }

    .footer-payment-img {
        width: 50px;
        height: 42px;
    }
}

@media (max-width: 991.98px) {
    .footer-main-grid {
        padding: 2rem 0;
    }

    .footer-flex-row {
        gap: 1.5rem 2rem;
    }

    .footer-flex-item {
        flex: 1 1 45%;
        min-width: 45%;
    }

    .footer-flex-logo {
        flex: 1 1 45%;
        max-width: none;
    }

    .footer-flex-payment-social {
        flex: 1 1 100%;
    }

    .footer-brand-img--inverted {
        max-width: 140px;
    }

    .top-footer-section .featured-box {
        padding: 8px 6px;
    }

    .top-footer-section .featured-box h3 {
        font-size: 13px;
    }
}

@media (max-width: 575.98px) {
    .footer-flex-row {
        gap: 1.25rem;
    }

    .footer-flex-item {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .footer-flex-logo {
        flex: 1 1 100%;
        max-width: none;
    }

    .footer-payment-row {
        gap: 4px;
    }

    .footer-payment-img {
        width: 40px;
        height: 34px;
    }

    .footer-social-row {
        gap: 8px;
    }

    .footer-social-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
}

@media (max-width: 355px) {
    .search-card {
        width: 355px !important;
    }
}