/* =================================================================
   Custom site footer — replaces parent (avanam) footer.
   Tokens come from tokens.css (--cjw-*).
   Mirrors the architectural pattern of custom-header.css.
   ================================================================= */

.cjw-footer {
    background: var(--cjw-color-bg-dark, #111111);
    color: var(--cjw-color-text-on-dark-soft, #cccccc);
    font-family: var(--cjw-font-base, 'Jost', sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.cjw-footer a {
    color: inherit;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cjw-footer a:hover,
.cjw-footer a:focus-visible {
    color: var(--cjw-color-text-on-dark, #ffffff);
}

/* ---------- Layout: 4-col grid (desktop) ---------- */
.cjw-footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
    max-width: 1480px;
    margin: 0 auto;
    padding: 64px clamp(20px, 4vw, 64px) 48px;
}

/* ---------- Column 1: Brand ---------- */
.cjw-footer__col--brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cjw-footer__brand {
    display: inline-flex;
    align-items: center;
    width: -moz-fit-content;
    width: fit-content;
}

.cjw-footer__logo {
    display: block;
    height: 56px;
    width: auto;
    /* Logo is dark on light; invert to render on dark footer */
    filter: brightness(0) invert(1);
}

.cjw-footer__tag {
    margin: 0;
    color: var(--cjw-color-text-on-dark-muted, #aaaaaa);
    font-size: 13px;
    line-height: 1.7;
    max-width: 280px;
}

/* ---------- Column headings ---------- */
.cjw-footer__heading {
    margin: 0 0 18px;
    color: var(--cjw-color-text-on-dark, #ffffff);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Lines / lists ---------- */
.cjw-footer__line,
.cjw-footer__address {
    margin: 0 0 14px;
    font-style: normal;
}

.cjw-footer__hours {
    color: var(--cjw-color-text-on-dark-muted, #aaaaaa);
    font-size: 13px;
}

.cjw-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cjw-footer__link {
    color: inherit;
}

/* ---------- Column 4: WhatsApp button ---------- */
.cjw-footer__wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--cjw-color-wa, #25D366);
    color: #ffffff !important;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 18px;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.cjw-footer__wa-btn:hover,
.cjw-footer__wa-btn:focus-visible {
    filter: brightness(1.08);
    color: #ffffff !important;
}

.cjw-footer__wa-icon {
    flex-shrink: 0;
}

/* ---------- Social icons ---------- */
.cjw-footer__social {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    gap: 12px;
}

.cjw-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--cjw-color-text-on-dark-soft, #cccccc);
}

.cjw-footer__social a:hover,
.cjw-footer__social a:focus-visible {
    color: var(--cjw-color-text-on-dark, #ffffff);
    border-color: var(--cjw-color-text-on-dark, #ffffff);
}

/* ---------- Bottom bar ---------- */
.cjw-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.cjw-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    max-width: 1480px;
    margin: 0 auto;
    padding: 18px clamp(20px, 4vw, 64px);
    color: var(--cjw-color-text-on-dark-muted, #aaaaaa);
    font-size: 12px;
}

.cjw-footer__copy {
    margin: 0;
}

.cjw-footer__legal {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cjw-footer__sep {
    opacity: 0.5;
}

.cjw-footer__pay {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.cjw-footer__pay-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--cjw-color-text-on-dark-soft, #cccccc);
}

/* ---------- Responsive: tablet ---------- */
@media (max-width: 1024px) {
    .cjw-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 48px clamp(20px, 4vw, 40px) 36px;
    }
}

/* ---------- Responsive: mobile (single column) ---------- */
@media (max-width: 640px) {
    .cjw-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px 28px;
    }

    .cjw-footer__bottom-inner {
        justify-content: flex-start;
    }

    .cjw-footer__legal {
        order: 2;
    }

    .cjw-footer__pay {
        order: 3;
    }

    .cjw-footer__copy {
        order: 1;
        width: 100%;
    }
}
