/* ==========================================================================
   Sterling Laundry Ltd. — Universal Footer Styles
   Used on: Welcome, Login, Dashboard, and all Admin pages
   Author: Provat Sen
   Version: 1.0.0
   ========================================================================== */

/* ==========================================================================
   Footer Container
   ========================================================================== */
.site-footer {
    padding: 14px 24px;
    background: #fafafa;
    border-top: 1px solid #e5e7eb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.6;
    margin-top: auto;   /* Pushes footer to bottom in flex layouts */
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   Footer Inner Layout (3-Column Horizontal Flex)
   ========================================================================== */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Left Section — Copyright + Version
   ========================================================================== */
.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.footer-copyright {
    color: #111111;
    font-size: 12.5px;
    font-weight: 400;
}

.footer-copyright strong {
    color: #8b2323;
    font-weight: 600;
}

.footer-version {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #111111;
}

.footer-version strong {
    color: #111111;
    font-weight: 600;
}

.footer-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #111111;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.footer-sep {
    color: #9ca3af;
    font-weight: 300;
}

/* ==========================================================================
   Center Section — Developer Credit
   ========================================================================== */
.footer-center {
    color: #111111;
    font-size: 12.5px;
    text-align: center;
    flex: 1;
    min-width: 160px;
}

.footer-center strong {
    color: #8b2323;
    font-weight: 600;
}

/* ==========================================================================
   Right Section — Contact Icons
   ========================================================================== */
.footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-contact-label {
    font-size: 11px;
    color: #111111;
    margin-right: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ==========================================================================
   Icon Buttons (Email / Phone / WhatsApp / Website)
   ========================================================================== */
.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #111111;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 150ms ease;
    flex-shrink: 0;
    cursor: pointer;
}

/* Force SVG icons to a small, consistent size */
.footer-icon svg {
    width: 15px !important;
    height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    display: block;
    flex-shrink: 0;
}

/* Hover state — brand color */
.footer-icon:hover {
    background: #8b2323;
    color: #ffffff;
    border-color: #8b2323;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(139, 35, 35, 0.2);
}

.footer-icon:hover svg {
    color: #ffffff;
}

/* WhatsApp-specific hover (green brand) */
.footer-icon-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

/* Focus state (keyboard navigation) */
.footer-icon:focus-visible {
    outline: 2px solid #8b2323;
    outline-offset: 2px;
}

/* ==========================================================================
   Responsive — Tablet & Mobile
   ========================================================================== */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .footer-left,
    .footer-center {
        justify-content: center;
    }
    .footer-right {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .site-footer {
        padding: 12px 16px;
        font-size: 11px;
    }
    .footer-version {
        font-size: 10px;
    }
    .footer-icon {
        width: 28px;
        height: 28px;
    }
    .footer-icon svg {
        width: 14px !important;
        height: 14px !important;
        max-width: 14px !important;
        max-height: 14px !important;
    }
    .footer-contact-label {
        display: none;   /* Hide "CONTACT:" label on very small screens */
    }
}

/* ==========================================================================
   Print Styles (hide interactive icons when printing)
   ========================================================================== */
@media print {
    .site-footer {
        background: transparent;
        border-top: 1px solid #ccc;
        padding: 10px 0;
    }
    .footer-right {
        display: none;
    }
}