/* =============================================
   FOOTER — Full responsive replacement
   ============================================= */

.ricas-footer-wrapper {
    background: #f5f5f5;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

/* ---- TOP LAYOUT ---- */
.ricas-footer-top {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 3%;
    align-items: flex-start;
    box-sizing: border-box;
    flex-wrap: nowrap; /* allows graceful wrapping on mid sizes */
}

/* ---- BRAND BLOCK ---- */
.ricas-footer-brand-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ricas-footer-brand-top img {
    width: 44px;
    height: auto;
    flex-shrink: 0;
}

.ricas-footer-brand-top span {
    font-weight: 700;
    font-size: 20px;
}

/* ---- CONTACT BLOCK ---- */
.ricas-footer-contact {
    margin-top: 0;
}

.ricas-footer-contact div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ricas-footer-contact img {
    width: 20px;
    height: auto;
    flex-shrink: 0;
}

.ricas-footer-contact p,
.ricas-footer-contact span,
.ricas-footer-contact a {
    font-size: 15px;
    line-height: 1.5;
    color: #000;
    text-decoration: none;
    word-break: break-word;
}

/* ---- COLUMNS ---- */
.ricas-footer-col {
    flex: 0 0 auto; /* flex shrink/grow with min width */
    min-width: 200px;
}

.ricas-footer-col h4 {
    font-weight: 700;
    text-decoration: underline;
    margin-bottom: 18px;
    margin-top: 0;
    font-size: 18px;
}

.ricas-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ricas-footer-col li {
    margin-bottom: 14px;
    font-size: 16px;
}

.ricas-footer-col a {
    text-decoration: none;
    color: #000;
    display: inline-block;
    transition: transform 0.2s ease;
}

.ricas-footer-col a:hover {
    transform: translate(3px, -3px);
}

/* ---- ADDRESS ---- */
.ricas-footer-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 300px;
    line-height: 1.9;
}

.ricas-footer-address img {
    width: 20px;
    height: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

/* ---- SOCIAL ---- */
.ricas-footer-social li {
    margin-bottom: 18px;
    margin-right: 10px;
}

.ricas-footer-social li a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ricas-footer-social img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* ---- DIVIDER ---- */
.ricas-footer-divider {
    margin: 2rem 0 0;
    border: none;
    border-top: 1px solid #222222;
}

/* ---- BOTTOM ---- */
.ricas-footer-bottom {
    text-align: center;
    padding: 1rem 0;
    font-size: 14px;
}

/* Column 1 (Brand + Contact) */
.ricas-footer-col:first-child {
    width: 22%;
    min-width: 240px;
}

/* Column 2 (Quick Links) */
.ricas-footer-col:nth-child(2) {
    width: 18%;
    min-width: 180px;
}

/* Column 3 (Address) */
.ricas-footer-col:nth-child(3) {
    width: 32%;
    min-width: 260px;
}

/* Column 4 (Social) */
.ricas-footer-col:nth-child(4) {
    width: 18%;
    min-width: 180px;
}

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

@media (max-width: 900px) {
    .ricas-footer-top {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .ricas-footer-col {
        width: 48% !important;
    }
}

@media (max-width: 600px) {
    .ricas-footer-top {
        flex-direction: column;
        gap: 2rem;
        padding: 24px 20px;
    }

    .ricas-footer-col {
        flex: 1 1 100%;
        min-width: unset;
        width: 100% !important;
    }

    .ricas-footer-col h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .ricas-footer-col li {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .ricas-footer-address {
        max-width: 100%;
    }

    .ricas-footer-social {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }

    .ricas-footer-bottom {
        font-size: 13px;
        padding: 1rem 16px;
    }

    .ricas-footer-brand-top span {
        font-size: 18px;
    }
}