/* --- Custom Footer Element Styles --- */

.brxe-custom-footer .col-1-svg svg {
        width: 150px;
        height: auto; /*fix small logo on safari */
}

#brx-footer{
    font-size:85%;
    border-top: 1px solid var(--color-primary);
}

.brxe-custom-footer {
    width: 100%;
    background-color: var(--color-quaternary);
    padding-top: 50px;
    padding-left: 0px;
    padding-right: 0px;
    padding-bottom: 75px;
    box-sizing: border-box;
}

.brxe-custom-footer .brx-container {
    max-width: var(--site-container-width);
    margin: 0 auto;
}

.brxe-custom-footer .top-footer-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.brxe-custom-footer .top-footer-row .col-1 {
    width: 40%;
    padding: 0 100px 0 0;
    box-sizing: border-box;
}

.brxe-custom-footer .top-footer-row .col-2-content,
.brxe-custom-footer .top-footer-row .col-3-content,
.brxe-custom-footer .top-footer-row .col-4-content {
    width: 20%;
    padding: 10px;
    box-sizing: border-box;
}

.brxe-custom-footer .col-1-svg {
    max-width: 150px;
    margin-bottom: 10px;
}

.brxe-custom-footer .footer-social-icons {
    margin-top: 0px;
    display: flex;
    gap: 15px;
}

.brxe-custom-footer .footer-social-icons a {
    color: inherit;
    text-decoration: none;
    font-size: 1.2em;
}

.brxe-custom-footer .bottom-footer-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
}

.brxe-custom-footer .bottom-footer-row > div {
    flex: 1;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 0px;
    padding-right: 0px;
}

.brxe-custom-footer .bottom-left {
    text-align: left;
}

.brxe-custom-footer .bottom-right {
    text-align: right;
}

.brxe-custom-footer h4 {
    font-size: 1em;
}

.brxe-custom-footer .bottom-footer-row ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.brxe-custom-footer .bottom-footer-row ul li {
    display: inline-block;
    margin-right: 40px;
}

.brxe-custom-footer .col-4-content ul,
.brxe-custom-footer .col-4-content ul li {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Responsive Styles --- */
@media screen and (max-width: 768px) {
    .brxe-custom-footer {
        padding: 10px 15px !important;
    }
    
    .brxe-custom-footer .top-footer-row,
    .brxe-custom-footer .bottom-footer-row {
        font-size: 0.85em;
    }

    .brxe-custom-footer p {
        font-size: 0.85em;
    }
    
    .brxe-custom-footer h4 {
        font-size: 0.9em;
        font-weight: bold;
    }
    
    .brxe-custom-footer .col-1-svg svg {
        width: 100px;
    }
    
    .brxe-custom-footer .col-1-svg {
        margin-left: auto;
        margin-right: auto;
            margin-bottom: 0px;
    
    }
    
    .brxe-custom-footer .footer-social-icons {
        margin-top: -2px !important;
        justify-content: center;
        padding-bottom:20px;
    }
    
    /* Mobile Column Layout */
    .brxe-custom-footer .top-footer-row > .col-1,
    .brxe-custom-footer .top-footer-row .col-4-content {
        width: 100% !important;
        text-align: center;
        padding: 15px 0 !important;
        padding-bottom:0px !important;
    }

    .brxe-custom-footer .top-footer-row > .col-1 p {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .brxe-custom-footer .top-footer-row .col-2-content,
    .brxe-custom-footer .top-footer-row .col-3-content {
        width: 50% !important;
        text-align: center;
        padding: 15px 10px;
        border-bottom: 1px dotted #e8d298;
        border-top: 1px dotted #e8d298;
    }
    
    .brxe-custom-footer .top-footer-row .col-2-content {
        border-right: 1px dotted #e8d298;
    }
    
    /* Bottom row responsive */
    .brxe-custom-footer .bottom-footer-row {
        flex-direction: column;
        align-items: center;
        margin-top: 0px !important;
    }
    
    .brxe-custom-footer .bottom-footer-row > div {
        width: 100%;
        padding: 10px 0 !important;
        text-align: center;
    }
    
    .brxe-custom-footer .bottom-footer-row ul {
        margin-bottom: 10px !important;
    }
    
    .brxe-custom-footer ul {
        text-align: center;
        padding-left: 0;
        font-size: 0.85em;
    }
    
    .brxe-custom-footer ul li {
        display: inline-block;
        margin: 5px;
        margin-bottom: 0px;
    }

    #brx-footer{
    font-size:100%;
}
}

/* --- Accessibility Fix for Lighthouse --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Remove the custom underline effect from telephone links in the footer */
#brx-footer .col-2-content p a[href^="tel"]::after {
    display: none !important;
}

/* Ensure the text decoration is also removed for standard browser styles */
#brx-footer .col-2-content p a[href^="tel"] {
    text-decoration: none !important;
    border: none !important;
}