/* ========================================
   FABSOFT FOOTER
   fabsoft-footer.css
   
   Footer styles for all pages
   Requires: fabsoft-variables.css
   ======================================== */

/* ----------------------------------------
   FOOTER BASE
   ---------------------------------------- */
.homepage-footer {
    background: var(--bg-dark);
    color: var(--bg-light-gray);
    padding: 60px 16px 32px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ----------------------------------------
   FOOTER MAIN GRID
   ---------------------------------------- */
.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: var(--space-xl);
}

/* ----------------------------------------
   FOOTER BRAND
   ---------------------------------------- */
.footer-brand {
    text-align: center;
}

.footer-logo-wrapper {
    background: rgba(255,255,255,0.95);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo {
    height: 40px;
    width: auto;
    display: block;
}

.footer-tagline {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: var(--line-height-normal);
}

/* ----------------------------------------
   FOOTER CONTACT INFO
   ---------------------------------------- */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.8);
}

    .footer-contact-item svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        opacity: 0.7;
    }

    .footer-contact-item a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
    }

        .footer-contact-item a:hover {
            color: var(--text-white);
            text-decoration: underline;
        }

.footer-address span {
    color: rgba(255,255,255,0.6);
}

/* ----------------------------------------
   FOOTER NAVIGATION
   ---------------------------------------- */
.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.footer-nav-column h4 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-column li {
    margin-bottom: 10px;
}

.footer-nav-column a {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

    .footer-nav-column a:hover {
        color: var(--text-white);
    }

/* ----------------------------------------
   FOOTER SUPPORT HIGHLIGHT
   ---------------------------------------- */
.footer-support-highlight {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 20px;
}

    .footer-support-highlight h5 {
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-semibold);
        color: var(--text-white);
        margin-bottom: 8px;
    }

    .footer-support-highlight p {
        font-size: var(--font-size-sm);
        color: rgba(255,255,255,0.6);
        margin-bottom: 8px;
        line-height: 1.4;
    }

.footer-support-link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--primary-blue);
    text-decoration: none;
}

    .footer-support-link:hover {
        text-decoration: underline;
    }

/* ----------------------------------------
   FOOTER CTA BAR
   ---------------------------------------- */
.footer-cta-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: var(--space-lg);
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    text-align: center;
}

    .footer-cta-bar span {
        font-size: var(--font-size-md);
        color: rgba(255,255,255,0.9);
    }

/* ----------------------------------------
   FOOTER BOTTOM
   ---------------------------------------- */
.footer-bottom {
    border-top: 1px solid var(--border-white-alpha);
    padding-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

/* ----------------------------------------
   FOOTER SOCIAL LINKS
   ---------------------------------------- */
.footer-social {
    display: flex;
    gap: 12px;
}

    .footer-social a {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.1);
        border-radius: var(--radius-circle);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-smooth);
    }

        .footer-social a:hover {
            background: var(--primary-blue);
        }

    .footer-social svg {
        width: 20px;
        height: 20px;
        fill: var(--text-white);
    }

/* ----------------------------------------
   FOOTER LEGAL
   ---------------------------------------- */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

    .footer-legal a {
        font-size: var(--font-size-sm);
        color: rgba(255,255,255,0.6);
        text-decoration: none;
    }

        .footer-legal a:hover {
            color: var(--text-white);
        }

.footer-copyright {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.5);
}

/* ----------------------------------------
   HIDE DUPLICATE FOOTER
   ---------------------------------------- */
.home-wrapper ~ footer:not(.homepage-footer),
body > footer:not(.homepage-footer) {
    display: none !important;
}

.site-footer:not(.homepage-footer),
footer[class=''] {
    display: none !important;
}

/* ----------------------------------------
   RESPONSIVE - TABLET (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
    .homepage-footer {
        padding: 80px 40px 40px;
    }

    .footer-main {
        grid-template-columns: 1fr 2fr;
        gap: 60px;
    }

    .footer-brand {
        text-align: left;
    }

    .footer-contact-info {
        align-items: flex-start;
    }

    .footer-nav {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-cta-bar {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ----------------------------------------
   RESPONSIVE - DESKTOP (1024px+)
   ---------------------------------------- */
@media (min-width: 1024px) {
    .homepage-footer {
        padding: 100px 60px 48px;
    }
}
