/* =====================================================
   RB Modern Footer — 4-col with order CTAs, newsletter, social
   ===================================================== */

.rb-footer {
    position: relative;
    background: var(--rb-dark);
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    isolation: isolate;
}

.rb-footer__decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 320px;
    height: 320px;
    color: var(--rb-accent);
    pointer-events: none;
    z-index: 0;
}

.rb-footer__inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px var(--rb-space-4) 32px;
}

.rb-footer__cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
    gap: 40px;
    margin-bottom: 56px;
}

/* ---------- Headings ---------- */
.rb-footer__heading {
    position: relative;
    font-family: var(--rb-font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rb-light) !important;
    margin: 0 0 24px;
    padding-bottom: 12px;
}

.rb-footer__heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--rb-accent);
    border-radius: 2px;
}

/* ---------- Col 1: brand ---------- */
.rb-footer__logo-text {
    display: block;
    font-family: var(--rb-font-heading);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--rb-light) !important;
    margin-bottom: 12px;
}

.rb-footer__logo-image {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
}

.rb-footer__tagline {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 24px;
    max-width: 320px;
}

.rb-footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rb-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.rb-footer__contact svg {
    width: 16px;
    height: 16px;
    color: var(--rb-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.rb-footer__contact a {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
    transition: var(--rb-transition-fast);
}

.rb-footer__contact a:hover {
    color: var(--rb-accent) !important;
}

/* ---------- Quick links ---------- */
.rb-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rb-footer__list a {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: var(--rb-transition-fast);
    padding-left: 0;
}

.rb-footer__list a::before {
    content: "→";
    display: inline-block;
    margin-right: 8px;
    color: var(--rb-accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--rb-transition-fast);
}

.rb-footer__list a:hover {
    color: var(--rb-light) !important;
    transform: translateX(4px);
}

.rb-footer__list a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Order links ---------- */
.rb-footer__order-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Doubled-class selector beats inline widget-control CSS that hits .rb-footer a */
.rb-footer .rb-footer__order-list a,
.rb-footer__col .rb-footer__order-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: var(--rb-radius-sm);
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: var(--rb-transition);
}

.rb-footer .rb-footer__order-list a:hover,
.rb-footer .rb-footer__order-list a:focus,
.rb-footer__col .rb-footer__order-list a:hover {
    background: var(--rb-accent) !important;
    color: var(--rb-dark) !important;
    border-color: var(--rb-accent) !important;
    transform: translateX(4px);
}

/* Force inner text spans + arrow SVG to follow the link's hover color */
.rb-footer .rb-footer__order-list a:hover span,
.rb-footer .rb-footer__order-list a:hover svg {
    color: var(--rb-dark) !important;
}

.rb-footer .rb-footer__order-list a:hover .rb-footer__order-arrow {
    color: var(--rb-dark) !important;
}

.rb-footer .rb-footer__order-list a:hover .rb-footer__order-arrow path {
    stroke: currentColor !important;
}

.rb-footer__order-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(242, 177, 55, 0.15);
    border-radius: var(--rb-radius-sm);
    color: var(--rb-accent);
    flex-shrink: 0;
    transition: var(--rb-transition-fast);
}

.rb-footer__order-list a:hover .rb-footer__order-icon {
    background: rgba(31, 27, 22, 0.15);
    color: var(--rb-dark);
}

.rb-footer__order-icon svg,
.rb-footer__order-icon i {
    width: 14px;
    height: 14px;
    font-size: 13px;
}

.rb-footer__order-arrow {
    width: 14px;
    height: 14px;
    margin-left: auto;
    opacity: 0.5;
    transition: var(--rb-transition-fast);
}

.rb-footer__order-list a:hover .rb-footer__order-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* ---------- Newsletter ---------- */
.rb-footer__newsletter-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
}

.rb-footer__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.rb-footer__input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--rb-radius-sm);
    color: var(--rb-light);
    font-family: var(--rb-font-body);
    font-size: 14px;
    transition: var(--rb-transition-fast);
}

.rb-footer__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.rb-footer__input:focus {
    outline: none;
    border-color: var(--rb-accent);
    background: rgba(255, 255, 255, 0.10);
}

.rb-footer__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--rb-accent) !important;
    color: var(--rb-dark) !important;
    font-family: var(--rb-font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none !important;
    border-radius: var(--rb-radius-sm) !important;
    cursor: pointer;
    transition: var(--rb-transition);
    outline: none !important;
    box-shadow: none !important;
}

.rb-footer__submit:hover,
.rb-footer__submit:focus,
.rb-footer__submit:active {
    background: var(--rb-light) !important;
    color: var(--rb-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(242, 177, 55, 0.3) !important;
    outline: none !important;
}

.rb-footer__submit svg {
    width: 14px;
    height: 14px;
    transition: var(--rb-transition-fast);
}

.rb-footer__submit:hover svg {
    transform: translateX(2px);
}

.rb-footer__socials {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.rb-footer .rb-footer__socials a,
.rb-footer__col .rb-footer__socials a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 50%;
    color: var(--rb-accent) !important;
    transition: var(--rb-transition);
    text-decoration: none !important;
    line-height: 1;
}

.rb-footer .rb-footer__socials a:hover,
.rb-footer .rb-footer__socials a:focus,
.rb-footer .rb-footer__socials a:active,
.rb-footer__col .rb-footer__socials a:hover {
    background: var(--rb-accent) !important;
    border-color: var(--rb-accent) !important;
    color: var(--rb-dark) !important;
    transform: translateY(-2px) scale(1.05);
    outline: none;
}

/* Force SVG fill to follow text color */
.rb-footer .rb-footer__socials a svg,
.rb-footer .rb-footer__socials a svg * {
    fill: currentColor !important;
    stroke: none;
}

.rb-footer .rb-footer__socials a svg {
    width: 17px;
    height: 17px;
    display: block;
}

/* FontAwesome <i> uses color, not fill */
.rb-footer .rb-footer__socials a i {
    font-size: 17px;
    line-height: 1;
    color: inherit !important;
}

/* Hover state — ensure inner icons follow */
.rb-footer .rb-footer__socials a:hover i,
.rb-footer .rb-footer__socials a:hover svg,
.rb-footer .rb-footer__socials a:hover svg * {
    color: var(--rb-dark) !important;
    fill: currentColor !important;
}

/* ---------- Bottom bar ---------- */
.rb-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--rb-space-3);
}

.rb-footer__copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.rb-footer__bot-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--rb-space-4);
    flex-wrap: wrap;
}

.rb-footer__bot-links a {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 13px;
    text-decoration: none !important;
    transition: var(--rb-transition-fast);
}

.rb-footer__bot-links a:hover {
    color: var(--rb-accent) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .rb-footer__cols {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .rb-footer__decoration { width: 240px; height: 240px; }
}

@media (max-width: 600px) {
    .rb-footer__cols {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    .rb-footer__inner {
        padding: 60px var(--rb-space-3) 24px;
    }

    /* Center every column's content */
    .rb-footer__col { align-items: center; }
    .rb-footer__heading { text-align: center; }
    .rb-footer__heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .rb-footer__tagline {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Brand contact (icon + text) — center the whole list */
    .rb-footer__contact {
        align-items: center;
    }
    .rb-footer__contact li {
        justify-content: center;
        text-align: left;
    }

    /* Quick links — center the list */
    .rb-footer__list { align-items: center; }
    .rb-footer__list a::before { display: none; }
    .rb-footer__list a:hover { transform: none; }

    /* Order Now buttons — center, full-width-ish */
    .rb-footer__order-list {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    /* Newsletter form */
    .rb-footer__newsletter-text {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .rb-footer__form {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .rb-footer__socials { justify-content: center; }

    /* Bottom bar */
    .rb-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    .rb-footer__bot-links { justify-content: center; }
    .rb-footer__decoration { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .rb-footer * { transition: none !important; transform: none !important; }
}
