/* ============================================================
   footer.css — footer nav and contact items
   ============================================================
   Sits on the permanently dark footer, so items use the "always on
   dark" text tokens: white on hover/active, soft grey resting. The
   -on-dark suffix means "this value, always" — a plain token would
   follow the mode and land on the translucent white meant for text on
   a photo, which reads lighter (9.10:1 against 8.19). DESIGN-SYSTEM §2.
   The footer nav's underline GEOMETRY is not here — it is shared with
   the header nav and lives in navigation.css. This file sets only the
   footer's own colours on top of it.
   Conventions: _shared/bricks-builder/css-conventions.md

   Contents
     1. Footer navigation
     2. Contact item — phone / address icon boxes
     3. Contact list — stacks the contact items

   Last updated: 2026-10-12 (auto-stamped by the pre-commit hook)
   ============================================================ */


/* --- 1. Footer navigation — .footer-nav on the Nav Menu element --- */
.footer-nav .bricks-nav-menu {
    flex-direction: column;

    list-style: none;
    padding-inline: 0;
    margin-block: 0;
}

/* One 44 px tap target per row, and nothing between them. The header's
   menu lies in a bar and takes its height from Theme Style › Nav menu ›
   Padding; stacked in the footer that padding plus a gap pushed the rows
   63 px apart where the design draws 31. The box keeps the house target
   (Katrine's choice 18-09-2026), the menu line-height gives way to the
   body one, and the row lands at 44 px. */
.brxe-nav-menu.footer-nav .bricks-nav-menu > li > a {
    display: flex;
    align-items: center;
    min-block-size: 2.75rem;
    line-height: var(--line-height-body-text);
}

/* Bricks injects margin-left:30px on each <li> (horizontal-menu gap); zero it since we stack. */
.footer-nav .bricks-nav-menu > li {
    margin-inline-start: 0;
}

/* Footer nav must never collapse to a hamburger — force the list shown,
   hide the toggle/drawer. (Element "Mobile menu: None" also does it.) */
.footer-nav .bricks-nav-menu-wrapper {
    display: block !important;
}
.footer-nav .bricks-mobile-menu-toggle,
.footer-nav .bricks-mobile-menu-wrapper {
    display: none !important;
}

.footer-nav .bricks-nav-menu a {
    padding-inline: 0;
}

/* Resting colour only — the underline geometry is the shared base in navigation.css. */
.footer-nav a {
    color: var(--text-secondary-on-dark, var(--text-secondary));
}

/* Hover/focus → white + hairline slides in. */
.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: var(--text-on-dark);
    background-size: 100% var(--border-width-thin);
}

/* Current page → branded colour + permanent hairline. After :hover so it stays coloured while hovered. */
.footer-nav .current-menu-item > a {
    color: var(--text-link);
    background-size: 100% var(--border-width-thin);
}

/* The slogan under the logo. --text-secondary flips to white at 70 % on a
   dark surface, which read lighter than the menu and contact text beside
   it (9.10:1 against their 8.19). The -on-dark partner is grey in every
   context, so all three now match (Katrine, 18-09-2026). */
.footer-columns .subtitle--soft {
    color: var(--text-secondary-on-dark);
}


/* --- 2. Contact item — phone / address icon boxes. One `color` reaches
   both the text and the icon (currentColor). */
.contact-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-xs);
    color: var(--text-secondary-on-dark, var(--text-secondary));
    text-align: start;   /* stay left even if the footer centres the group */
}

/* Icon sized to --icon-s. The icon is a house SVG file inlined by Bricks
   (Icon Manager set "UX-designer"); the wrapper's font-size sets its 1em
   box below. The house files sit in a square 512 frame, so every icon
   is a 24 × 24 box; the fixed column keeps the text on the same line
   in every row even if a non-square icon ever slips in. */
.contact-item .icon {
    /* A shade quieter than the text beside it, so the row reads as words
       first (Katrine, 18-09-2026). Mixed from the text's own colour, so
       it follows the surface instead of naming a second one. */
    color: color-mix(in srgb, currentColor 70%, transparent);
    font-size: var(--icon-s);
    inline-size: var(--icon-s);
    justify-content: center;
}
.contact-item .icon svg {
    block-size: 1em;
    inline-size: auto;
}

/* --- 3. Contact list — stacks the two .contact-item boxes on the footer's
   right column. One-column grid: the column hugs the widest box so the
   icons line up, but may shrink to its minimum (the address wraps) instead
   of overflowing when the footer column is tight. The column is centred in
   its track, like the menu in its own — Katrine's choice 06-09-2026 between
   outer-, inner- and centre-aligned side columns. */
.contact-list {
    display: grid;
    grid-template-columns: minmax(min-content, max-content);
    justify-content: center;
    /* One step below the menu's rhythm on the house scale: the two
       columns then read as the same list (Katrine, 18-09-2026). */
    gap: var(--space-xs);
}

