/* ============================================
   FOOTER.CSS – Khem IT Dark Theme Footer
   Matches header, hero button styles
============================================ */

/* ----- FOOTER CONTAINER ----- */
.site-footer {
    background: #1e1029;           /* Dark purple, matches your theme */
    padding: 60px 40px 24px;
    border-top: 1px solid #3b2a4a;
    margin-top: 60px;
    width: 100%;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
}

/* ----- MAIN COLUMNS ----- */
.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #e2d6f0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

/* ----- BRAND COLUMN ----- */
.footer-logo {
    height: 26px;
    width: auto;
    margin-bottom: 14px;
}

.footer-brand p {
    color: #a090b0;
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 280px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(192, 132, 252, 0.1);
    border: 1px solid rgba(192, 132, 252, 0.25);
    color: #d8c6ea;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #4ade80;
    border-color: #4ade80;
    color: #0a1f1a;
    transform: translateY(-3px);
}

/* ----- LINKS COLUMNS ----- */
.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-links a,
.footer-contact a {
    color: #a090b0;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #4ade80;
}

.footer-contact a i {
    color: #c084fc;
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

/* ----- DIVIDER ----- */
.footer-divider {
    border: none;
    border-top: 1px solid #3b2a4a;
    margin: 0 0 20px;
}

/* ----- BOTTOM BAR ----- */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    color: #a090b0;
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal-link {
    color: #a090b0;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: #c084fc;
}

/* Staff sign-in: intentionally small and quiet — this is a utility link
   for internal use, not something the public footer should foreground. */
.footer-staff-link {
    color: #6b5c78;
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid #3b2a4a;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    background: none;
    cursor: pointer;
}

.footer-staff-link:hover {
    color: #d8c6ea;
    border-color: #6b5c78;
}

.footer-staff-link--btn {
    font-family: inherit;
}

.footer-user-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-user-greeting .greeting-text {
    color: #4ade80;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE TWEAKS
============================================ */
@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 44px 20px 20px;
    }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-links,
    .footer-contact {
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-bottom-right {
        justify-content: center;
    }
}
