/**
 * Eau System Custom Footer
 *
 * @since 1.72.48
 */

/* Hide default theme footer on system pages (keep our injected Elementor footer) */
body.eau-system-page #site-footer,
body.eau-system-page > .site-footer,
body.eau-system-page #colophon {
    display: none !important;
}

/* ==========================================================================
   Eau App Footer
   ========================================================================== */

.eau-app-footer {
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.eau-app-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    padding: 1.25rem 1.5rem;
    margin: 0 auto;
}

/* Left Side: Logo and Copyright */
.eau-app-footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.eau-app-footer-logo {
    height: 32px;
    width: auto;
    opacity: 0.8;
}

.eau-app-footer-copyright {
    font-size: 0.8125rem;
    color: #6b7280;
    white-space: nowrap;
}

/* Right Side: Links */
.eau-app-footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

a.eau-app-footer-link,
a.eau-app-footer-link:link {
    font-size: 0.8125rem !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
    white-space: nowrap !important;
}

a.eau-app-footer-link:hover {
    color: #2563eb !important;
    text-decoration: none !important;
}

a.eau-app-footer-link:active,
a.eau-app-footer-link:focus,
a.eau-app-footer-link:visited {
    color: #6b7280 !important;
    text-decoration: none !important;
    outline: none !important;
}

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

@media (max-width: 768px) {
    .eau-app-footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
        gap: 0.75rem;
    }

    .eau-app-footer-left {
        flex-direction: column;
        gap: 0.5rem;
    }

    .eau-app-footer-logo {
        height: 28px;
    }

    .eau-app-footer-copyright {
        font-size: 0.75rem;
    }

    .eau-app-footer-right {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    a.eau-app-footer-link,
    a.eau-app-footer-link:link {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .eau-app-footer-inner {
        padding: 0.875rem 0.75rem;
    }

    .eau-app-footer-right {
        gap: 0.75rem;
    }
}

/* ==========================================================================
   Ensure footer stays at bottom of page
   ========================================================================== */

body.eau-system-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.eau-system-page .entry-content,
body.eau-system-page .page-content,
body.eau-system-page article.page,
body.eau-system-page .elementor {
    flex: 1;
}
