/* Footer Styles */
.footer {
    background-color: #000000;
    padding: 138px 0 0 0;
    position: relative;
}
.curved-divider {
    height: 38px;
    background-color: white;
    border-radius: 0 0 30px 30px;
    position: absolute;
    z-index: 2;
    top: 0;
    width: 100%;
    /* margin-bottom: -30px; */
}
.home .curved-divider {
    background-color: #f7f7f7
}
.footer-content {
    padding-bottom: 55px;
}

.logo {
    margin-bottom: 75px;
    display: inline-block;
}

.primary-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.primary-link {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: normal ;
    opacity: 0.7; 
    position: relative;
    display: inline-block;
}

.primary-link:hover {
    color: #F9452D;
    opacity: 1;
}

/* arrow appears AFTER text */
.primary-link::after {
    content: '';
    position: absolute;
    top: 50%;
    margin-left: 7px;
    /* ✅ exact space */
    width: 20px;
    height: 26px;
    background-image: url('../images/icons/arrow-right-red.svg');
    background-repeat: no-repeat;
    background-size: contain;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* show arrow on hover */
.primary-link:hover::after,
.primary-link:focus::after {
    opacity: 1;
    transform: translate(4px, -50%);
}

/* Main Content Columns */

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 30px;
}

.footer-section:last-child {
    margin-bottom: 0px;
}
.border-top-sm{
    border-top: 1px solid transparent;
}
.section-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0.24px;
    color: #ffffff;
}

.section-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.section-links li a {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: normal;
    color: #B6B6B6;
    text-decoration: none;
    display: block;
}

.section-links li a:hover {
    color: #F9452D;
}

/* Bottom Footer Bar */
.footer-bottom {
    border-top: 1px solid #242222;
    padding: 22px 0 54px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.copyright {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: normal;
    color: #ffff;
    opacity: 0.5;
}


.legal-links a {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: normal;
    text-decoration: underline;
    color: #ffffff;
    opacity: 0.5;
}

.legal-links a:hover {
    color: #ffffff;
    opacity: 1;
}

.footer-social-icons {
    display: flex;
    gap: 9px;
    align-items: center;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 7px;
    border-radius: 50%;
    background-color: transparent;
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    background-color: #ffffff;
}

.social-icon:hover .icon-black {
    display: block;
}

.social-icon:hover .icon-gray {
    display: none;
}

.icon-black {
    display: none;
}

/* Accordion Styles for Mobile/Tablet */
.accordion-toggle {
    display: none;
}

.accordion-icon {
    display: none;
}

/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .sm-grid {
        display: grid;
        grid-gap: 15px;
    }

    .footer {
        padding: 82px 0 0 0;
    }

    .footer-content {
        padding-bottom: 49px;
    }

    .logo {
        margin-bottom: 40px;
    }
    
    .primary-links {
        gap: 20px;
        margin-bottom: 40px;
    }
    .footer-bottom {
    padding: 16px 0 20px 0;
}
.legal-links{
    width: 40%;
    order: 1;
}
.copyright{
    width: 50%;
    order: 3;
}
.footer-social-icons{
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 50%;
    order: 2;
}


}

/* Mobile Styles (max-width: 767px) */
@media screen and (max-width: 767px) {
     .sm-grid {
        grid-gap: 0px;
    }
        .footer-content {
        padding-bottom: 0px;
    }
    .footer .custom-container{
        padding: 0;
    }
    .logo-sm-padding{
        padding-left: 20px;
    }
      .logo {
        margin-bottom: 30px;
    }
       .primary-links {
        gap: 18px;
        margin-bottom: 30px;
    }
    .primary-link{
        font-size: 16px;
    }
    /* Accordion Layout for Mobile */

    .footer-section {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
       margin-bottom: 0;
       gap: 0;
    }

    .section-title {
        font-weight: 400;
       font-size: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        cursor: pointer;
        user-select: none;
    }

    .accordion-icon {
        display: inline-block;
        transition: transform 0.8s ease-in-out;
        width: 16px;
        height: 14px;
    }
    .border-top-sm{
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .section-title.active .accordion-icon {
        transform: rotate(180deg);
    }
    
    .section-links {
        padding: 0 20px 0px 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 1s ease-in-out;
        gap: 4px;
    }
    .section-links li:last-child {
    padding-bottom: 20px;
}
    .section-links.active {
        max-height: 1000px;
    }

    .section-links li a {
        font-size: 16px !important;
        line-height: 26px;
    }

    .footer-bottom {
        padding: 50px 20px 30px 20px;
        border-top: transparent;
    }

    .footer-bottom-content {
        gap: 25px;
    }
    
.legal-links{
    width: 100%;
}
.copyright{
    width: 100%;
}
.footer-social-icons{
    justify-content: flex-start;
    width: 100%;
}
}