/* --------------------------------------------------------------------------
   Footer — deep multi-column
-------------------------------------------------------------------------- */
.site-footer {
    margin-top: var(--space-4xl);
    /* Footer colours are theme-invariant; white text on saturated blue reads
       correctly in both dark and light modes. */
    --footer-bg:         #2B6CB0;
    --footer-bg-deep:    #0D2D4E;
    --footer-text:       #FFFFFF;
    --footer-text-muted: rgba(255, 255, 255, 0.68);
    --footer-heading:    #E9F0FA;
    --footer-hairline:   rgba(255, 255, 255, 0.15);
    --footer-accent:     #B06F2B;   /* copper — for the top hairline */
}

.footer-main {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--space-4xl) 0 var(--space-3xl);
    /* Copper hairline at the very top — the only warm note in the footer. */
    border-top: 3px solid var(--footer-accent);
    position: relative;
}
/* Subtle overlay for depth without a shadow. */
.footer-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%,   rgba(255, 255, 255, 0.12), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(13, 45, 78, 0.35), transparent 60%);
    pointer-events: none;
}

.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: start;
}
@media (min-width: 720px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
    .footer-grid {
        /* Brand col ~1.8× the link cols. minmax(0,…) stops long words
           forcing tracks wider than their share. */
        grid-template-columns:
            minmax(0, 1.8fr)
            minmax(0, 1fr)
            minmax(0, 1.2fr)
            minmax(0, 1fr)
            minmax(0, 1fr);
        gap: var(--space-xl);
    }
}

.footer-brand {
    /* No max-width on the column itself — let the grid track govern width.
       Individual copy blocks get their own max-width for readability. */
    min-width: 0;
}
.footer-logo {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.02em;
    color: var(--footer-text);
    margin-bottom: var(--space-md);
}
.footer-tagline {
    color: var(--footer-text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 40ch;
    margin-bottom: var(--space-lg);
}
.footer-address {
    font-size: 13px;
    color: var(--footer-text-muted);
    line-height: 1.6;
    margin: 0;
}
.footer-address a {
    color: var(--footer-text);
    border-bottom: 1px solid var(--footer-hairline);
    padding-bottom: 1px;
    transition: border-color var(--transition);
}
.footer-address a:hover { border-bottom-color: var(--footer-text); }

.footer-col h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--footer-heading);
    margin-bottom: var(--space-md);
    opacity: 0.85;
}
.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.footer-col a {
    color: var(--footer-text-muted);
    font-size: 14px;
    line-height: 1.4;
    transition: color var(--transition);
    display: inline-block;
}
.footer-col a:hover { color: var(--footer-text); }

.footer-bottom {
    background: var(--footer-bg-deep);
    color: var(--footer-text-muted);
    padding: var(--space-md) 0;
    font-size: 12px;
}
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.footer-meta {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.02em;
    font-size: 11px;
}
@media (max-width: 640px) {
    .footer-bottom-row { flex-direction: column; align-items: flex-start; }
}


