/* 
 * footer.css
 * Styles for the website footer
 */

/* Footer with improved grid for all browsers */
footer {
    background-color: #002447;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 0 -20px; /* For browsers without gap support */
    margin-bottom: 40px;
}

.footer-column {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 250px;
    flex: 1 1 250px;
    min-width: 0; /* Fix for IE flexbox issues */
    padding: 0 20px; /* For browsers without gap support */
    margin-bottom: 30px;
}

@supports (display: grid) {
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 40px;
        margin: 0 0 40px 0;
    }
    
    .footer-column {
        padding: 0;
        margin-bottom: 0;
    }
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: white;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #ff6600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #b4c9e0;
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.footer-bottom {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
}

/* For browsers that don't support gap */
@supports not (gap: 15px) {
    .social-icons a {
        margin-right: 15px;
    }
    
    .social-icons a:last-child {
        margin-right: 0;
    }
}

.social-icons a {
    color: white;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: #ff6600;
}

/* Trust Badges */
.trust-badges {
    padding: 40px 0;
    background-color: white;
    text-align: center;
}

.badges-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 30px;
}

/* For browsers that don't support gap */
@supports not (gap: 30px) {
    .badges-container {
        margin: -15px;
    }
    
    .badge-item {
        margin: 15px;
    }
}

.badge-item {
    opacity: 0.7;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
    max-width: 120px;
    height: auto;
}

.badge-item:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-bottom {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    
    /* Center footer column headings */
    .footer-column {
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

/* For print - hide footer */
@media print {
    footer,
    .trust-badges {
        display: none !important;
    }
}