/* ============================================================================
   Web-only site footer (FCApp.Web). Every selector is scoped under .fc-web-footer
   so nothing leaks globally. Brand values come from Momento tokens (tokens.css) —
   no hardcoded brand hex. Loaded only by FCApp.Web/Components/App.razor, so the
   MAUI host never pulls these styles.
   ========================================================================== */

/* Sticky footer (web only — MAUI never loads this file): make the scroll container's
   content a flex column so a short page grows to fill the viewport and the footer settles
   at the bottom instead of floating mid-page. Purely layout; does not touch page logic. */
#main-scroll-container > .content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.fc-web-footer {
    width: 100%;
    margin-top: auto;   /* absorbs free space above so the footer sits at the bottom on short pages */
    flex-shrink: 0;
    background-color: var(--color-brand-primary);
    color: var(--color-surface-default);
    padding: var(--space-4) var(--space-3);
    font-family: var(--font-body);
}

.fc-web-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .fc-web-footer__inner {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

/* ── Brand block ── */
.fc-web-footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-width: 384px;
}
.fc-web-footer__logo {
    width: 100%;
    max-width: 384px;
    height: auto;
    aspect-ratio: 2150 / 409;
    object-fit: contain;
    display: block;
}
.fc-web-footer__brand-blurb.mud-typography {
    font-size: var(--text-label-md-size);
    line-height: 20px;
    color: var(--color-surface-default);
    opacity: 0.85;
}

/* ── Link columns ── */
.fc-web-footer__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}
@media (min-width: 768px) {
    .fc-web-footer__cols {
        grid-template-columns: repeat(3, auto);
        gap: var(--space-6);
    }
}
.fc-web-footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.fc-web-footer__heading {
    margin: 0 0 4px;
    font-family: var(--font-body);
    font-size: var(--text-label-md-size);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-surface-default);
}
.fc-web-footer__link.mud-typography,
.fc-web-footer__link.mud-link {
    font-size: var(--text-label-md-size);
    color: var(--color-surface-default) !important;
    opacity: 0.85;
    text-decoration: none;
    width: fit-content;
    cursor: pointer;
    transition: opacity 0.12s ease;
}
.fc-web-footer__link.mud-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ── Copyright bar ── */
.fc-web-footer__bar {
    max-width: 1280px;
    margin: var(--space-3) auto 0;
    padding: var(--space-2) 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}
.fc-web-footer__copyright {
    font-size: var(--text-xs-size);
    color: var(--color-surface-default);
    opacity: 0.75;
}

/* ── Visibility: desktop web only ──────────────────────────────────────────
   The site footer is a desktop-web element. Hide it on narrow / mobile-web
   widths (DevTools mobile emulation, small browser windows). Physical mobile
   (MAUI) never loads this stylesheet, so it is already hidden there. The 1024px
   threshold matches the app's desktop/mobile boundary (sidebar ↔ mobile filter). */
@media (max-width: 1023px) {
    .fc-web-footer { display: none !important; }
}
