/*
 * Footer Styles
 * All footer-related styles including layout, menus, and responsive adjustments
 * 
 * @package IntrosMatter
 * @since 1.0.0
 */

/* Footer Styles */
.site-footer {
    background: #001214;
    margin-top: 0;
    border-top: none;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.site-footer .container {
    padding: 40px 0;
    min-height: 188px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2%;
}

.footer-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    width: 100%;
}

.footer-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 6.86px;
    margin: 0 auto;
    min-width: 180px;
    max-width: 220px;
    width: 15%;
    height: 32px;
    flex: 0 0 auto;
    order: 0;
}

.footer-menu-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    margin: 0 auto;
    min-width: 120px;
    max-width: 180px;
    width: 12%;
    flex: 0 0 auto;
}

.footer-menu-section:nth-child(2) {
    min-height: 80px;
    order: 1;
}

.footer-menu-section:nth-child(4) {
    min-height: 80px;
    order: 3;
}

.footer-menu-title {
    width: auto;
    height: 24px;
    font-family: 'Outfit', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #059CB0;
    margin: 0;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    height: 100%;
    flex: none;
    flex-grow: 0;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-menu a {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 10px;
    width: 144px;
    height: 20px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 1rem;
    color: #F3FDFF;
    flex: none;
    order: 0;
    flex-grow: 0;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #059CB0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    margin: 0 auto;
    min-width: 200px;
    max-width: 280px;
    width: 20%;
    min-height: 100px;
    flex: 0 0 auto;
    order: 4;
}

.footer-email {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 8px;
    width: 222px;
    height: 24px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.email-icon {
    width: 24px;
    height: 24px;
    flex: none;
    order: 0;
    flex-grow: 0;
    color: #FFFFFF;
}

.email-link {
    width: 190px;
    height: 24px;
    font-family: 'Be Vietnam', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-decoration-line: underline;
    color: #FFFFFF;
    flex: none;
    order: 1;
    flex-grow: 0;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #059CB0;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 12px;
    width: 235px;
    height: 52px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.copyright-text {
    width: 235px;
    height: 20px;
    font-family: 'Outfit', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #CFD5D8;
    margin: 0;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.footer-legal {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 16px;
    width: 205px;
    height: 20px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.legal-link {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 10px;
    height: 20px;
    font-family: 'Outfit', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    text-decoration-line: underline;
    color: #F3FDFF;
    flex: none;
    order: 0;
    flex-grow: 0;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #059CB0;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.logo-isotype {
    width: 32px;
    height: 32px;
    position: relative;
}

.footer-logo-text {
    width: 167.82px;
    height: 22.78px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 22.78px;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

/* Footer Logo Image */
.footer-logo-image {
    max-width: 100%;
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Footer Site Name Fallback */
.footer-site-name {
    font-family: 'Outfit', sans-serif;
    font-style: normal;
    font-weight: 600;  
    font-size: 18px;
    line-height: 32px;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Responsive adjustments for footer logo image */

/* Below 375px - Extra small mobile */
@media (max-width: 374px) {
    .footer-logo-image {
        max-height: 22px;
    }
    
    .footer-site-name {
        font-size: 13px;
        line-height: 22px;
    }
}

/* 375px to 639px - Small mobile */
@media (min-width: 375px) and (max-width: 639px) {
    .footer-logo-image {
        max-height: 24px;
    }
    
    .footer-site-name {
        font-size: 14px;
        line-height: 24px;
    }
}

/* 640px to 833px - Larger mobile/Small tablet */
@media (min-width: 640px) and (max-width: 833px) {
    .footer-logo-image {
        max-height: 26px;
    }
    
    .footer-site-name {
        font-size: 15px;
        line-height: 26px;
    }
}

/* 834px to 1023px - Tablet */
@media (min-width: 834px) and (max-width: 1023px) {
    .footer-logo-image {
        max-height: 28px;
    }
    
    .footer-site-name {
        font-size: 16px;
        line-height: 28px;
    }
}

/* 1024px to 1279px - Large tablet/Small desktop */
@media (min-width: 1024px) and (max-width: 1279px) {
    .footer-logo-image {
        max-height: 30px;
    }
    
    .footer-site-name {
        font-size: 17px;
        line-height: 30px;
    }
}
