/* ===========================
   Footer — RapiX Solutions
   All values reference CSS custom properties. No hardcoded colours or fonts.
   Dark background: var(--color-text) = #0B0F2A
   =========================== */

/* ---- Footer shell ---- */

.site-footer {
    background-color: var(--color-text);
    color: var(--color-white);
    font-family: var(--font-body);
}

/* ---- Main grid ---- */

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

/* ---- Brand column ---- */

.footer-logo {
    display: inline-block;
    margin-bottom: 1.375rem;
}

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

.footer-site-name {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.375rem;
    color: var(--color-white);
    text-decoration: none;
    margin-bottom: 1.375rem;
}

.footer-description {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--color-on-dark);
    margin-bottom: 1.875rem;
    max-width: 28ch;
}

/* ---- Social icons ---- */

.footer-social {
    display: flex;
    gap: 0.625rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background-color: var(--color-on-dark-fill);
    color: var(--color-on-dark-soft);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

/* ---- Link & contact columns ---- */

.footer-col-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--color-white);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--color-on-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

/* ---- Contact column ---- */

.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-contact-item {
    font-size: 0.9375rem;
    color: var(--color-on-dark);
    line-height: 1.6;
    margin-bottom: 0.625rem;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact-item a {
    color: var(--color-on-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: var(--color-primary-light);
}

.footer-address {
    font-style: normal;
}

/* ---- Bottom bar ---- */

.footer-bottom {
    border-top: 1px solid var(--color-on-dark-line);
}

.footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-on-dark-dim);
    text-align: center;
}

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

@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        padding: 4rem 2rem 3rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-description {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr;
        padding: 3rem 1.25rem 2.5rem;
        gap: 2rem;
    }

    .footer-bottom-inner {
        padding: 1.25rem;
    }
}
