/* --- Base & Normalized Styles --- */

.site_footer {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.site_footer_image {
    display: flex;
    width: 100%;
    justify-content: center;
    position: relative;
}

.site_footer_image_sized {
    display: flex;
    width: calc(100% - 20px);
    max-width: 1740px;
    justify-content: flex-end;
    box-sizing: border-box; /* Added for safety */
}

.site_footer_image_sized img {
    display: block;
    width: auto;
    max-width: 100%;
}

.site_footer_pre {
    display: flex;
    width: 100%;
    justify-content: center;
    background-image: url('/wp-content/themes/webstudios/assets/img/pre_footer_bg.png'), linear-gradient(0deg, #242424, #242424);
    background-size: cover;
    background-position: center bottom;
    margin-top: -130px;
}

.site_footer_pre_sized {
    display: flex;
    width: calc(100% - 20px);
    max-width: 1280px;
    padding: 14px 0;
    justify-content: flex-start;
    flex-wrap: wrap; /* Added to allow wrapping on smaller screens */
    box-sizing: border-box; /* Added for safety */
}

.site_footer_pre_contact_i {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin: 20px 20px 20px 0; /* Prevents unwanted space on the far left */
}

.site_footer_pre_contact_i_icon {
    display: flex;
    width: 54px;
    aspect-ratio: 1/1;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevents icon from squishing */
}

.site_footer_pre_contact_i_icon img {
    width: auto;
    height: auto;
    max-width: 52px;
}

.site_footer_pre_contact_i_text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    box-sizing: border-box;
}

.site_footer_pre_contact_i_text span:nth-child(1) {
    color: #F8CA07;
    font: 400 20px/1 OS_Bold;
}

.site_footer_pre_contact_i_text span:nth-child(2) {
    color: #FFFFFF;
    font: 400 16px/1 OS_Light;
    margin-top: 4px;
}

.site_footer_main {
    display: flex;
    width: 100%;
    background: #242424;
    justify-content: center;
}

.site_footer_main_sized {
    display: flex;
    width: calc(100% - 20px);
    max-width: 1280px;
    justify-content: space-between;
    flex-wrap: wrap; /* Added to allow wrapping on smaller screens */
    box-sizing: border-box; /* Added for safety */
}

.site_footer_main_logo_c {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers logo and slogan within its column */
}

.site_footer_main_logo {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.site_footer_main_logo > img {
    display: block;
    width: 80%;
    max-width: 240px;
}

.site_footer_main_logo_slogan {
    display: block;
    max-width: 320px;
    margin-top: 24px;
    text-align: center;
    color: #FFFFFF;
    font: 400 16px/1.4 OS_Regular;
}

.site_footer_main_navigation {
    display: flex;
    flex-wrap: wrap; /* Allows nav columns to sit side-by-side until they need to wrap */
}

.site_footer_main_navigation_i,
.site_footer_main_contact {
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.site_footer_main_navigation_i_title,
.site_footer_main_contact_title {
    display: flex;
    font: 400 18px/1.4 OS_Regular;
    color: #FFFFFF;
    text-transform: uppercase;
    opacity: 0.51;
}

.site_footer_main_navigation_i_list {
    display: flex;
    flex-direction: column;
}

.site_footer_main_navigation_i_list > a {
    font: 400 18px/2.5 OS_ALT_Regular;
    color: #FFFFFF;
    text-decoration: none;
}

.site_footer_main_contact_btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: #F8CA07;
    border-radius: 30px;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}

.site_footer_main_contact_btn > span:nth-child(1) {
    display: flex;
    width: 50px;
    flex-shrink: 0; /* Prevents icon from squishing */
}

.site_footer_main_contact_btn > span:nth-child(1) > img {
    height: 40px;
    width: auto;
}

.site_footer_main_contact_btn > span:nth-child(2) {
    display: flex;
    width: calc(100% - 50px);
    flex-direction: column;
    align-items: center;
    padding-right: 10px;
    box-sizing: border-box;
}

.site_footer_main_contact_btn > span:nth-child(2) > span:nth-child(1) {
    font: 400 13px/1 OS_Regular;
    color: #242424;
}

.site_footer_main_contact_btn > span:nth-child(2) > span:nth-child(2) {
    font: 400 16px/1 OS_Bold;
    margin-top: 7px;
    color: #242424; 
}

/* --- Responsive Partition --- */

/* Tablet Devices */
@media (max-width: 768px) {
    .site_footer_main_sized {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site_footer_main_navigation {
        justify-content: center;
        margin-top: 30px;
    }

    .site_footer_main_navigation_i,
    .site_footer_main_contact {
        padding: 15px; /* Tighter padding when stacked */
        align-items: center;
    }
    
    .site_footer_main_navigation_i_list {
        align-items: center;
    }

    .site_footer_pre_sized {
        justify-content: center; /* Centers the contact icons when stacked */
    }
    
    .site_footer_pre_contact_i {
        margin: 10px; /* Even margins all around when wrapping */
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .site_footer_image_sized {
        justify-content: center; /* Centers the top image on mobile */
    }

    .site_footer_main_navigation {
        flex-direction: column; /* Stacks nav columns vertically */
        width: 100%;
    }

    .site_footer_main_contact {
        align-items: center;
        margin-top: 20px;
    }

    .site_footer_main_contact_btn {
        width: 50px;
        height: 50px;/* Makes the button span full width */
        position: fixed;
        z-index: 99999999999999999999999;
        bottom: 80px;
        right: 10px;
        justify-content: center;
        padding: 5px;
    }
    
    .site_footer_main_contact_btn > span:nth-child(2) {
        display: none !important;
    }
    
    .site_footer_main_contact_btn > span:nth-child(1) {
        justify-content: center;
    }
}