/**
 * IABT Custom Footer Styles
 * Version: 1.0.0
 */

/* ===========================
   Footer Main Structure
   =========================== */
#iabt-custom-footer {
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Curved top edge */
#iabt-custom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 120%;
    height: 40px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    transform: translateY(-100%);
    z-index: 1;
}

.iabt-footer-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.footer-main-content {
    padding: 60px 0 0;
}

.footer-main-content .container {
    margin: 0 auto;
    padding: 0 15px;
}

/* ===========================
   Footer Columns Layout
   =========================== */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 20px;
}

.footer-column {
    min-width: 0; /* Prevent grid blowout */
}

/* ===========================
   Column 1: Contact Info
   =========================== */
.footer-column-1 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    display: block;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact-item i {
    font-size: 16px;
    margin-top: 3px;
    min-width: 16px;
    opacity: 0.8;
}

.footer-contact-item a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact-item a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.footer-contact-item span {
    display: block;
}

/* ===========================
   Social Media Icons
   =========================== */
.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-social-icons a i {
    font-size: 18px;
}

/* ===========================
   Footer Menus (Columns 2-4)
   =========================== */
.footer-menu-title {
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 20px 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    color: #fff;
}

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

.footer-menu-list li {
    margin-bottom: 12px;
}

.footer-menu-list a {
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-menu-list a:hover {
    text-decoration: none;
    padding-left: 5px;
    opacity: 1;
}

/* ===========================
   Copyright Section
   =========================== */
.footer-copyright {
    width: 100%;
    padding: 8px 0;
}

.footer-copyright .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.copyright-content {
    text-align: center;
}

.copyright-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.copyright-content a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.copyright-content a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablet */
@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-main-content {
        padding: 50px 0 0;
    }

    #iabt-custom-footer::before {
        height: 35px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-main-content {
        padding: 40px 0 0;
    }

    #iabt-custom-footer::before {
        height: 30px;
    }

    .footer-logo img {
        max-width: 150px;
    }

    .footer-column-1 {
        gap: 15px;
    }

    .footer-contact-item {
        font-size: 13px;
    }

    .footer-social-icons {
        gap: 12px;
    }

    .footer-social-icons a {
        width: 36px;
        height: 36px;
    }

    .footer-social-icons a i {
        font-size: 16px;
    }

    .footer-menu-title {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .footer-menu-list li {
        margin-bottom: 10px;
    }

    .footer-menu-list a {
        font-size: 13px;
    }

    .copyright-content p {
        font-size: 13px;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .footer-main-content .container,
    .footer-copyright .container {
        padding: 0 8px;
    }

    .footer-columns {
        gap: 25px;
    }
}

/* ===========================
   Accessibility & Print
   =========================== */
@media (prefers-reduced-motion: reduce) {
    .footer-social-icons a:hover,
    .footer-menu-list a:hover {
        transform: none;
        transition: none;
    }
}

@media print {
    #iabt-custom-footer {
        background: white !important;
        color: black !important;
    }

    .footer-social-icons {
        display: none;
    }
}
