/* 
 * SAVE Styles - Custom Styles for the Application
 * Created: 2023
 */

BODY{
    background-color: var(--save-light-gray) !important;
}

 h2{
    font-family: var(--save-font-primary);
    font-size: var(--save-font-size-h2);
    font-weight: var(--save-font-weight-regular);
    line-height: var(--save-line-height);
    color: var(--save-black);
    margin: 0;
 }

 h3{
    font-family: var(--save-font-primary);
    font-size: var(--save-font-size-h3);
    font-weight: var(--save-font-weight-regular);
    line-height: var(--save-line-height);
    color: var(--save-black);
    margin: 0;
 }

 h4{
    font-family: var(--save-font-primary);
    font-size: var(--save-font-size-h4);
    font-weight: var(--save-font-weight-regular);
    line-height: var(--save-line-height);
    color: var(--save-black);
    margin: 0;
 }

 h5{
    font-family: var(--save-font-primary);
    font-size: var(--save-font-size-h5);
    font-weight: var(--save-font-weight-regular);
    line-height: var(--save-line-height);
    color: var(--save-black);
    margin: 0;
 }

 a {
    color: var(--save-black);
    text-decoration: none;
 }


/* Footer Styles */
.save-footer {
    background-color: var(--save-light-gray);
    border-top: 1px solid var(--save-border-color);
    font-family: var(--save-font-primary);
}

.footer-container {
    max-width: 1120px;
    margin: 0 auto;
    padding-top: 36px;
}

/* Top Section */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--save-spacing-md);
    margin-bottom: var(--save-spacing-xxl);
}

.footer-top > div {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 96px;
    padding: var(--save-spacing-md);
    background-color: var(--save-white);
    border-radius: var(--save-border-radius);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--save-spacing-md);
    align-self: stretch;
    height: 100%;
}

.footer-column .link-card {
    flex-shrink: 0;
}

.footer-column .link-group {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.footer-logo-container {
    padding: var(--save-spacing-sm) 0 0 0;
}

.footer-logo {
    max-width: 210px;
    height: auto;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: var(--save-spacing-md);
    align-self: stretch;
}

.info-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--save-primary-blue-backround-panel);
    padding: var(--save-spacing-md);
    border-radius: var(--save-border-radius);
    align-self: stretch;
}

.info-card span {
    font-family: var(--save-font-primary);
    font-size: var(--save-font-size-base);
    line-height: var(--save-line-height);
    font-weight: var(--save-font-weight-regular);
    color: var(--save-black);
    flex: 1;
}

.icon-container {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--save-white);
    border-radius: var(--save-border-radius);
}

.save-icon-location, .save-icon-phone, .icon-arrow-right {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.save-icon-location {
    background-image: url('/Content/images/icons/icon-location.svg');
}

.save-icon-phone {
    background-image: url('/Content/images/icons/icon-phone.svg');
}

.icon-arrow-right {
    background-image: url('/Content/images/icons/icon-arrow-right.svg');
}

.link-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--save-white);
    padding: 12px 12px 12px var(--save-spacing-md);
    border-radius: var(--save-border-radius);
    box-shadow: var(--save-box-shadow);
    text-decoration: none;
    align-self: stretch;
}

.link-card span {
    font-family: var(--save-font-primary);
    font-size: var(--save-font-size-md);
    font-weight: var(--save-font-weight-medium);
    line-height: var(--save-line-height);
    color: var(--save-black);
    flex: 1;
}

.cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--save-primary-blue-backround-panel);
    border-radius: var(--save-border-radius);
}

.link-group {
    padding: var(--save-spacing-lg) var(--save-spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--save-spacing-lg);
    border-radius: var(--save-border-radius);
    background-color: var(--save-white);
    align-self: stretch;
}

.link-group h3 {
    font-family: var(--save-font-primary);
    font-size: var(--save-font-size-md);
    font-weight: var(--save-font-weight-medium);
    line-height: var(--save-line-height);
    color: var(--save-black);
    margin: 0;
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: var(--save-spacing-md);
    align-self: stretch;
}

.footer-link {
    font-family: var(--save-font-primary);
    font-size: var(--save-font-size-base);
    line-height: var(--save-line-height);
    color: var(--save-gray);
    font-weight: var(--save-font-weight-regular);
    text-decoration: none;
    transition: color var(--save-transition);
}


/* Bottom Section */
.footer-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: stretch;
    gap: var(--save-spacing-md);
    margin-bottom: var(--save-spacing-xxl);
}

.footer-links-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: var(--save-white);
    border-radius: var(--save-border-radius);
    height: 48px;
    flex: 1;
}

.airport-links, .utility-links {
    display: flex;
    align-items: center;
    gap: var(--save-spacing-md);
}


.footer-link {
    font-family: var(--save-font-primary);
    font-size: var(--save-font-size-base);
    line-height: var(--save-line-height);
    color: var(--save-gray);
    font-weight: var(--save-font-weight-regular);
    text-decoration: none;
    transition: color var(--save-transition);
}

.footer-link-small {
    font-size: var(--save-font-size-sm);
}

.separator {
    width: 4px;
    height: 4px;
    background-color: var(--save-gray);
    border-radius: 50%;
    display: inline-block;
}

.social-icons {
    display: flex;
    gap: var(--save-spacing-md);
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--save-white);
    border-radius: var(--save-border-radius);
    padding: var(--save-spacing-md);
}


.social-icon img {
    width: 24px;
    height: 24px;
}

/* Credits Section */
.footer-credits {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--save-spacing-md);
    align-items: center;
}

.credits-text {
    font-family: var(--save-font-primary);
    font-size: var(--save-font-size-sm);
    line-height: var(--save-line-height);
    font-weight: var(--save-font-weight-regular);
    color: var(--save-black);
}

.partner-logos {
    display: flex;
    align-items: center;
    gap: 40px;
}

.partner-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Accordion styles */
.footer-accordion {
    display: none; /* Hidden by default on desktop */
    width: 100%; /* Ensure full width */
    margin-top: var(--save-spacing-md); /* Add spacing from top content */
}

.accordion-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 12px 12px var(--save-spacing-md);
    background-color: var(--save-white);
    border: none;
    border-radius: var(--save-border-radius);
    font-family: var(--save-font-primary);
    font-weight: var(--save-font-weight-medium);
    font-size: var(--save-font-size-base);
    line-height: var(--save-line-height);
    text-align: left;
    cursor: pointer;
}

.accordion-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--save-primary-blue-backround-panel);
    border-radius: var(--save-border-radius);
}

.accordion-icon img {
    width: 24px;
    height: 24px;
}

.accordion-content {
    display: none;
    padding: 12px 12px 16px var(--save-spacing-md);
    background-color: var(--save-white);
}

.accordion-active .accordion-content {
    display: block;
    background-color: var(--save-white);
}

.accordion-active .accordion-plus {
    display: none;
}

.accordion-active .accordion-button{
    border-radius: 8px 8px 0 0;
}

.accordion-active .accordion-content{
    border-radius: 0 0 8px 8px;
}

.accordion-collapsed .accordion-minus {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {


    h2 {
        font-size: var(--save-font-size-h2-mobile);
    }

    h3 {
        font-size: var(--save-font-size-h3-mobile);
    }

    h4 {
        font-size: var(--save-font-size-h4-mobile);
    }

    h5 {
        font-size: var(--save-font-size-h5-mobile);
    }

    .footer-container {
        padding: 20px var(--save-spacing-md) var(--save-spacing-xxl);
    }

    .footer-top {
        grid-template-columns: 1fr;
        margin-bottom: 0;
    }

    .footer-left {
        gap: 52px;
    }

    /* Link card and accordion display for mobile */
    .footer-column {
        width: 100%;
    }

        .footer-column .link-card {
            width: 100%;
            align-self: stretch;
        }

        .footer-column .link-group {
            display: none; /* Hide standard link groups on mobile */
        }

    .footer-accordion {
        display: block; /* Show accordions only on mobile */
        margin-top: var(--save-spacing-md);
    }

    .accordion-item {
        margin-bottom: var(--save-spacing-md);
    }

    /* Bottom section modifications for mobile */
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .footer-links-container {
        flex-direction: column;
        background-color: var(--save-white);
        border-radius: var(--save-border-radius);
        padding: var(--save-spacing-md);
        gap: var(--save-spacing-xl);
        align-items: center;
    }

    .airport-links, .utility-links {
        justify-content: center;
        flex-wrap: wrap;
        background-color: transparent;
        padding: 0;
        height: auto;
    }

    .utility-links {
        padding-top: var(--save-spacing-md);
        border-top: 1px solid var(--save-primary-blue-opacity);
    }

    .social-icons {
        display: flex;
        justify-content: stretch;
        width: 100%;
    }

    .social-icon {
        height: 64px;
        flex: 1;
    }

    /* Credits section modifications for mobile */
    .footer-credits {
        grid-template-columns: 1fr;
        gap: var(--save-spacing-xl);
        text-align: center;
    }

    .partner-logos {
        justify-content: center;
    }

    .pi-row-lg .pi-row-block-txt {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}


