/* ====================================================
   FOOTER: MAIN STYLING
   ==================================================== */

body #ry-footer,
body #ry-footer > div,
body #ry-footer .module-16 {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    background-color: var(--secondary-color, #304c5b);
}

body #ry-footer .module-16 .ry-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    float: none;
    box-sizing: border-box;
}

body #ry-footer #footer-row1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 65px 0;
    margin: 0;
    width: 100%;
    float: none;
    border: none;
    background: transparent;
}

body #ry-footer .logo-container {
    width: auto;
    max-width: 330px;
    padding: 0;
    margin: 0;
    float: none;
    display: flex;
    align-items: center;
}

body #ry-footer .logo-container img {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
}

body #ry-footer .contact-container {
    width: auto;
    padding: 0;
    margin: 0;
    float: none;
    display: flex;
    flex-direction: column;
}

body #ry-footer .contact-container .ry-footer-phone {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 22px;
}

body #ry-footer .contact-container .ry-footer-phone::before {
    content: "\f095";
    font-family: "FontAwesome" !important;
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background-color: #ecebe6;
    color: var(--secondary-color, #304c5b) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 23px !important;
    transform: rotate(15deg);
}

body #ry-footer .contact-container .ry-footer-phone p {
    margin: 0;
    padding: 0;
}

body #ry-footer .contact-container .ry-footer-phone .span-1 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body #ry-footer .contact-container .ry-footer-phone .span-2 {
    font-family: 'General Sans', sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.35;
    color: #ffffff !important;
    display: block;
}

body #ry-footer .contact-container .ry-footer-phone a {
    font-family: 'General Sans', sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.35;
    color: #ffffff !important;
    text-decoration: none !important;
    background: transparent !important;
    background-color: transparent !important;
    display: inline-block;
    padding: 0;
}

body #ry-footer .contact-container .ry-footer-phone a:empty::after {
    content: "(413) 267-4200";
    font-family: 'General Sans', sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    display: inline-block;
}

body #ry-footer .contact-container .ry-footer-address {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 26px;
}

body #ry-footer .contact-container .ry-footer-address::before {
    content: "\f041";
    font-family: "FontAwesome" !important;
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background-color: #ecebe6;
    color: var(--secondary-color, #304c5b) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px !important;
}

body #ry-footer .contact-container .ry-footer-address p {
    margin: 0;
    padding: 0;
}

body #ry-footer .contact-container .ry-footer-address a {
    font-family: 'General Sans', sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.38;
    color: #ffffff !important;
    text-decoration: none !important;
    display: block;
    max-width: 240px;
}

body #ry-footer .contact-container .social-media {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    margin: 0;
    float: none;
    width: auto;
}

body #ry-footer .contact-container .social-media > div {
    font-family: 'General Sans', sans-serif !important;
    font-size: 17.5px !important;
    font-weight: 400 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    margin: 0;
    white-space: nowrap;
}

body #ry-footer .contact-container .social-icons {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    width: auto;
    float: none;
}

body #ry-footer .contact-container .social-inner-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
}

body #ry-footer .contact-container .social-icons li {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background: transparent !important;
}

/* FIX: Prevent Google or any social icon from inheriting red background */
body #ry-footer .contact-container .social-icons a,
body #ry-footer .contact-container .social-icons a.fa-google,
body #ry-footer .contact-container .social-icons li[data-href*="google"] a {
    color: #ffffff !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-size: 21px !important;
    text-decoration: none !important;
    opacity: 0.95;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

body #ry-footer .contact-container .social-icons a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

body #ry-footer .hours-container {
    width: auto;
    padding: 0;
    margin: 0;
    float: none;
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

body #ry-footer .hours-container::before {
    content: "\f017";
    font-family: "FontAwesome" !important;
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background-color: #ecebe6;
    color: var(--secondary-color, #304c5b) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px !important;
    margin-top: 2px;
}

body #ry-footer .day-and-time-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: auto;
    padding: 0;
    margin: 0;
    float: none;
}

body #ry-footer .day-and-time {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    width: auto;
    margin: 0;
    padding: 0;
}

body #ry-footer .day-and-time .span-1 {
    min-width: 114px;
    width: 114px;
    font-family: 'General Sans', sans-serif !important;
    font-size: 17.5px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    text-align: left;
}

body #ry-footer .day-and-time .span-2 {
    font-family: 'General Sans', sans-serif !important;
    font-size: 17.5px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    white-space: nowrap;
    text-align: left;
}

/* Row 2: Bottom Bar */
body #ry-footer #footer-row2 {
    width: 100%;
    background-color: var(--primary-color, #496879);
    margin: 0;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    float: none;
    box-sizing: border-box;
}

@media (min-width: 1600px) {
    body #ry-footer #footer-row2 {
        padding-left: calc((100vw - 1520px) / 2);
        padding-right: calc((100vw - 1520px) / 2);
    }
}

body #ry-footer #footer-row2 .ry-left {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    padding: 0;
    margin: 0;
    float: none;
    display: flex;
    align-items: center;
}

body #ry-footer #footer-row2 .ry-left .text-wrap,
body #ry-footer #footer-row2 .ry-left .ry-text {
    width: auto;
    max-width: 100%;
    padding: 0;
    margin: 0;
    float: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

body #ry-footer #footer-row2 .ry-left .ry-text,
body #ry-footer #footer-row2 .ry-left .span-2,
body #ry-footer #footer-row2 .ry-left a {
    font-family: 'General Sans', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none !important;
}

body #ry-footer #footer-row2 .ry-left a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

body #ry-footer #footer-row2 .ry-right {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    float: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

body #ry-footer #footer-row2 .powered-by,
body #ry-footer #footer-row2 .powered {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

body #ry-footer #footer-row2 .powered span {
    font-family: 'General Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.85) !important;
    white-space: nowrap;
}

body #ry-footer #footer-row2 .powered img {
    height: 20px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* ==========================================================
   RESPONSIVE (MOBILE & TABLET FIXES)
   ========================================================== */

@media (max-width: 991px) {
    body #ry-footer .module-16 .ry-container {
        padding: 0 20px !important;
        margin: 0 auto !important;
        float: none !important;
    }

    body #ry-footer #footer-row1 {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 36px !important;
        padding: 45px 0 !important;
        float: none !important;
    }

    /* 1. Logo */
    body #ry-footer .logo-container {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
        float: none !important;
    }
    body #ry-footer .logo-container img {
        max-width: 260px !important;
        margin: 0 auto !important;
    }

    /* 2. Contact Container */
    body #ry-footer .contact-container {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto !important;
        float: none !important;
    }

    body #ry-footer .contact-container .ry-footer-phone {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        margin: 0 auto 20px auto !important;
        width: 100% !important;
    }
    body #ry-footer .contact-container .ry-footer-phone::before {
        margin: 0 auto !important;
    }
    body #ry-footer .contact-container .ry-footer-phone .span-1 {
        align-items: center !important;
        text-align: center !important;
    }
    body #ry-footer .contact-container .ry-footer-phone .span-2,
    body #ry-footer .contact-container .ry-footer-phone a,
    body #ry-footer .contact-container .ry-footer-phone a:empty::after {
        font-size: 19px !important;
        text-align: center !important;
    }

    body #ry-footer .contact-container .ry-footer-address {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        margin: 0 auto 22px auto !important;
        width: 100% !important;
    }
    body #ry-footer .contact-container .ry-footer-address::before {
        margin: 0 auto !important;
    }
    body #ry-footer .contact-container .ry-footer-address a {
        font-size: 18px !important;
        max-width: 300px !important;
        text-align: center !important;
        margin: 0 auto !important;
        line-height: 1.4 !important;
    }

    body #ry-footer .contact-container .social-media {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    body #ry-footer .contact-container .social-icons {
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    body #ry-footer .contact-container .social-inner-wrap {
        justify-content: center !important;
        gap: 20px !important;
        margin: 0 auto !important;
    }

    /* 3. Hours */
    body #ry-footer .hours-container {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
        margin: 0 auto !important;
    }
    body #ry-footer .hours-container::before {
        margin: 0 auto !important;
    }

    body #ry-footer .day-and-time-wrap {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }
    body #ry-footer .day-and-time {
        display: flex !important;
        width: 100% !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 16px !important;
        margin: 0 auto !important;
    }
    body #ry-footer .day-and-time .span-1 {
        text-align: left !important;
        min-width: 100px !important;
        width: auto !important;
        font-size: 16px !important;
    }
    body #ry-footer .day-and-time .span-2 {
        text-align: right !important;
        font-size: 16px !important;
    }

    /* 4. Bottom Row 2 (No clipping & extra bottom space for widget) */
    body #ry-footer #footer-row2 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 14px !important;
        padding: 22px 20px 48px !important;
        box-sizing: border-box !important;
    }
    body #ry-footer #footer-row2 .ry-left {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    body #ry-footer #footer-row2 .ry-left .text-wrap,
    body #ry-footer #footer-row2 .ry-left .ry-text {
        width: 100% !important;
        display: inline !important;
        text-align: center !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        line-height: 1.8 !important;
        margin: 0 auto !important;
    }
    body #ry-footer #footer-row2 .ry-left .span-2,
    body #ry-footer #footer-row2 .ry-left a {
        display: inline !important;
        white-space: normal !important;
        font-size: 12px !important;
    }
    body #ry-footer #footer-row2 .ry-right {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin: 4px auto 0 auto !important;
    }
    body #ry-footer #footer-row2 .powered-by,
    body #ry-footer #footer-row2 .powered {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
}

/* Small Screens (<= 480px) */
@media (max-width: 480px) {
    body #ry-footer .module-16 .ry-container {
        padding: 0 16px !important;
    }
    body #ry-footer #footer-row1 {
        padding: 36px 0 !important;
        gap: 28px !important;
    }
    body #ry-footer .logo-container img {
        max-width: 220px !important;
    }
    body #ry-footer .contact-container .ry-footer-phone::before,
    body #ry-footer .contact-container .ry-footer-address::before,
    body #ry-footer .hours-container::before {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        font-size: 19px !important;
    }
    body #ry-footer .contact-container .ry-footer-phone .span-2,
    body #ry-footer .contact-container .ry-footer-phone a,
    body #ry-footer .contact-container .ry-footer-phone a:empty::after {
        font-size: 17px !important;
    }
    body #ry-footer .contact-container .ry-footer-address a {
        font-size: 16px !important;
        max-width: 260px !important;
    }
    body #ry-footer .day-and-time-wrap {
        max-width: 270px !important;
    }
    body #ry-footer .day-and-time .span-1,
    body #ry-footer .day-and-time .span-2 {
        font-size: 14.5px !important;
    }
}