/* =========================================================================
   L'Atelier de MIA — Footer (Phase 1)

   Small-caps type, hairline dividers, no ornament. Three short columns —
   address, hours, social — plus the legal line. Nothing else: no
   newsletter solicit, no quote, no decorative mark, no graphics.

   Colours: all via tokens. `--fg` for primary text, `--muted` for meta
   lines, `--hairline` for the two dividers.
   ========================================================================= */

.footer {
    background: var(--canvas);
    color: var(--fg);
    padding: var(--space-8) 0 var(--space-6);
    border-top: none;
}

.footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

/* ----- Top strip: brand + three meta columns --------------------------- */

.footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: var(--space-5);
    align-items: flex-start;
}

.footer__brand {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 28px;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: lowercase;
    color: var(--fg);
    text-decoration: none;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer__col-title {
    font-family: var(--type-label-caps-font);
    font-size: var(--type-label-caps-size);
    font-weight: var(--type-label-caps-weight);
    letter-spacing: var(--type-label-caps-tracking);
    text-transform: var(--type-label-caps-case);
    color: var(--muted);
    margin: 0 0 var(--space-1);
}

.footer__line {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--fg);
}

.footer__line a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur-fast) var(--ease);
}

.footer__line a:hover,
.footer__line a:focus-visible {
    border-bottom-color: var(--fg);
}

.footer__line a:focus { outline: none; }
.footer__line a:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 4px;
    border-bottom-color: transparent;
}

/* ----- Divider between top and bottom --------------------------------- */

.footer__divider {
    height: 1px;
    background: var(--hairline);
    margin: var(--space-6) 0 var(--space-4);
    border: none;
    outline: none;
    appearance: none;
}

/* ----- Bottom strip: legal line + back-to-top -------------------------- */

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    border-top: none;
    padding-top: 0;

    font-family: var(--type-caption-font);
    font-size: var(--type-caption-size);
    color: var(--muted);
}

.footer__bottom a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur-fast) var(--ease);
}

.footer__bottom a:hover,
.footer__bottom a:focus-visible {
    border-bottom-color: var(--muted);
}

/* Right-side footer nav (Sizing / Contact) — keeps the legal line
   left and the links grouped right within the space-between bottom strip. */
.footer__bottom-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* ----- Mobile ---------------------------------------------------------- */

@media (max-width: 899px) {
    .footer {
        padding: var(--space-7) 0 var(--space-5);
    }
    .footer__top {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
}
