/* =============================================
   Global Site Footer — taubenloft footer.php
   Pixel-perfect from Figma node 81:7541 (desktop 1920)
   + mobile counterpart 81:7637 (440)
   Mirrors blocks/footer/style.css; columns are wp_nav_menu <ul>.
   ─────────────────────────────────────────────
   Section bg:   #333A42
   Padding:      48 top / 16 bottom (desktop)
   Dividers:     #585D63, 0.5px
   Text color:   #B9BEC5 (Nunito Sans)
   main:         1200 container, HORIZONTAL space-between
     left  396  : description 20/27.28 SemiBold + logo 396×70 (gap 96, pad 48 t/b)
     line  42   : vertical divider
     right      : 3 link columns, gap 64, links 16/22.4 SemiBold (gap 20), pad-top 48
   low:          legal bar — items 14/19.096 Medium UPPER, vertical-line separated
   ============================================= */

/* Defensive */
.tl-footer img { max-width: 100%; height: auto; display: block; }
.tl-footer svg { max-width: 100%; }

.tl-footer {
    background: #333a42;                 /* Figma section fill */
    color: #b9bec5;
    font-family: 'Nunito Sans', 'Nunito Sans Fallback', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    padding: 48px 24px 16px;             /* Figma: 48 top / 16 bottom */
}

.tl-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Main (description+logo | columns) ───────────── */
.tl-footer__main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 64px;                           /* min room between left & columns (space-between spreads them) */
    border-top: 0.5px solid #585d63;     /* Figma Line 40 */
    position: relative;
}
/* Vertical divider centred in the row (Figma Line 42, sits at the horizontal centre) */
.tl-footer__main::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: -16px;                       /* extend through the legal bar's top margin */
    width: 1px;
    background: #585d63;
}

/* Left column: description + logo */
.tl-footer__left {
    display: flex;
    flex-direction: column;
    gap: 48px;                           /* tightened from Figma 96 — logo sits closer to the description */
    padding: 48px 0;                     /* Figma left padding 48 t/b */
    width: 396px;                        /* Figma left width */
    max-width: 396px;
    flex: 0 0 auto;
}

.tl-footer__description {
    margin: 0;
    font-family: 'Nunito Sans', 'Nunito Sans Fallback', sans-serif;
    font-weight: 600;                    /* Figma SemiBold */
    font-size: 20px;                     /* Figma fontSize */
    line-height: 27.28px;                /* Figma lineHeightPx 27.2799... */
    letter-spacing: 0;
    color: #b9bec5;
}

.tl-footer__logo {
    width: 396px;                        /* Figma logo_full 396×70 */
    max-width: 100%;
    height: auto;
}

/* Vertical divider between left and columns (Figma Line 42) */
.tl-footer__columns {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;           /* hug the right edge (Figma right frame) */
    gap: 64px;                           /* Figma right itemSpacing 64 */
    padding-top: 48px;                   /* Figma right paddingTop 48 */
    flex: 0 0 auto;                      /* content width — sits at the right via parent space-between */
}

/* Column wrapper holds the wp_nav_menu <ul> (.tl-footer__col-menu) */
.tl-footer__column {
    min-width: 92px;                     /* Figma column width 92 */
}

/* wp_nav_menu <ul> — matches the block's .tl-footer__column list */
.tl-footer__col-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;                           /* Figma column itemSpacing 20 */
}

.tl-footer__col-menu li { margin: 0; padding: 0; }

/* Menu links — match the block's .tl-footer__link */
.tl-footer__col-menu a {
    font-family: 'Nunito Sans', 'Nunito Sans Fallback', sans-serif;
    font-weight: 600;                    /* Figma SemiBold */
    font-size: 16px;                     /* Figma fontSize */
    line-height: 22.4px;                 /* Figma lineHeightPx */
    letter-spacing: 0;
    color: #b9bec5;
    text-decoration: none;
    transition: opacity 0.2s;
    display: inline-block;
}
.tl-footer__col-menu a:hover,
.tl-footer__col-menu a:focus { opacity: 0.7; color: #b9bec5; text-decoration: none; }

/* ── Legal / address bar ─────────────────────────── */
.tl-footer__legal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;       /* Figma SPACE_BETWEEN across full 1200px */
    align-items: center;
    gap: 0;                              /* Figma SPACE_BETWEEN — no inter-item gap */
    margin-top: 16px;                    /* Figma low itemSpacing 16 */
    padding-top: 16px;
    border-top: 0.5px solid #585d63;     /* Figma Line 41 */
}

.tl-footer__legal-item {
    position: relative;
    font-family: 'Nunito Sans', 'Nunito Sans Fallback', sans-serif;
    font-weight: 500;                    /* Figma Medium */
    font-size: 14px;                     /* Figma fontSize */
    line-height: 19.096px;               /* Figma lineHeightPx 19.0959... */
    letter-spacing: 0;
    text-transform: uppercase;           /* Figma textCase UPPER */
    color: #b9bec5;
    text-decoration: none;
    white-space: nowrap;
}
.tl-footer__legal-item--link { transition: opacity 0.2s; }
.tl-footer__legal-item--link:hover,
.tl-footer__legal-item--link:focus { opacity: 0.7; color: #b9bec5; text-decoration: none; }

/* Vertical separator lines (Figma Line 13-16) — real flex children, so with
   SPACE_BETWEEN they distribute together with the items and sit centered in
   each gap (not clinging to an item's edge). */
.tl-footer__legal-sep {
    flex: 0 0 auto;
    align-self: center;
    width: 2px;                          /* Figma separator ~2.6px wide */
    height: 15px;                        /* Figma separator line height ~14.8 */
    background: #b9bec5;                 /* Figma separator color */
    opacity: 0.6;                        /* subtle divider */
    transform: rotate( 20deg );          /* Figma: slanted "/" divider, not vertical */
}

/* ── Laptop ≤1440 ─────────────────────────────────── */
@media (max-width: 1440px) {
    .tl-footer__main { gap: 48px; }
    .tl-footer__columns { gap: 48px; }
}

/* ── ≤1280 ────────────────────────────────────────── */
@media (max-width: 1280px) {
    .tl-footer__columns { gap: 32px; }
}

/* ── Tablet ≤1024 ─────────────────────────────────── */
@media (max-width: 1024px) {
    .tl-footer { padding: 40px 16px 16px; }
    .tl-footer__container { padding: 0 16px; }
    .tl-footer__left { width: 340px; max-width: 340px; gap: 64px; padding: 40px 0; }
    .tl-footer__logo { width: 320px; }
    .tl-footer__columns { gap: 24px; }
}

/* ── Mobile ≤767 — Figma node 81:7637 (440) ──────────
   Section: 0 top / 16 bottom
   main/main: VERTICAL center, gap 16
     left: pad-top 16, gap 48, description 16/22.4 SemiBold
     Line 42 becomes HORIZONTAL divider
     right: HORIZONTAL, pad 32 t/b, gap 64 (3 cols still side-by-side)
   low: gap 24; legal stacks VERTICAL, gap 8
*/
@media (max-width: 767px) {
    .tl-footer { padding: 0 16px 16px; }

    .tl-footer__main {
        flex-direction: column;          /* RESET row → column */
        align-items: center;
        gap: 16px;                       /* Figma main/main itemSpacing 16 */
    }
    .tl-footer__main::before { display: none; }   /* divider is horizontal on mobile (border-top on columns) */

    .tl-footer__left {
        width: 100%;                     /* RESET 396px */
        max-width: 100%;
        gap: 48px;                       /* Figma mobile left itemSpacing 48 */
        padding: 16px 0 0;               /* RESET 48 t/b → 16 top only */
    }
    .tl-footer__description {
        font-size: 16px;                 /* RESET 20 → 16 */
        line-height: 22.4px;             /* RESET 27.28 → 22.4 */
    }
    .tl-footer__logo {
        width: 100%;                     /* RESET 396px */
        max-width: 381px;                /* Figma mobile logo width */
    }

    .tl-footer__columns {
        border-left: 0;                  /* RESET vertical divider */
        border-top: 0.5px solid #585d63; /* Figma Line 42 → horizontal on mobile */
        padding-left: 0;                 /* RESET */
        padding-top: 32px;               /* RESET 48 → Figma mobile pad 32 t/b */
        padding-bottom: 32px;
        gap: 64px;                       /* Figma mobile right itemSpacing 64 */
        width: 100%;
        justify-content: center;
    }

    .tl-footer__legal {
        flex-direction: row;             /* Figma mobile: inline items wrapping to 2 lines */
        flex-wrap: wrap;
        justify-content: center;         /* RESET space-between → centered */
        align-items: center;
        column-gap: 0;
        row-gap: 8px;                    /* spacing between the wrapped lines */
        margin-top: 24px;                /* Figma mobile low itemSpacing 24 */
    }
    /* Keep separators inline between items (margin gives the spacing instead of SPACE_BETWEEN) */
    .tl-footer__legal-sep { display: block; margin: 0 9px; }
}

/* ── Narrow mobile ≤480 — keep columns from overflowing ── */
@media (max-width: 480px) {
    .tl-footer__columns { gap: 24px; }
    .tl-footer__column { min-width: 0; flex: 1 1 0; }
}
