/*
 * footer.css — the site-wide footer (components/footer.php).
 *
 * On the warm sand of the old footer: the link columns, with the official
 * store badges (unaltered, at one height) under the brand column, and a quiet
 * bottom bar.
 * Plain CSS, no Bootstrap dependency, so it reads the same on every page.
 */

.bt-footer {
    --ft-bg: #fbf1e0;
    --ft-ink: var(--color-text-strong, #000);
    --ft-text: var(--color-text, #212529);
    --ft-muted: #5f6368;
    --ft-link: #6b3a1f;
    --ft-accent: var(--color-primary, #F38651);
    --ft-accent-ink: var(--color-primary-700, #c9633a);
    --ft-line: rgba(107, 58, 31, 0.14);

    margin-top: 3rem;
    background: var(--ft-bg);
    border-top: 1px solid var(--ft-line);
    color: var(--ft-text);
    font-family: var(--font-family-body);
    font-size: 0.95rem;
    line-height: 1.5;
}

.bt-footer__inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.bt-footer a {
    text-decoration: none;
}

.bt-footer a:focus-visible {
    outline: 3px solid rgba(var(--rgb-primary, 243, 134, 81), 0.5);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---- Store badges (under the brand column) ------------------------------ */

.bt-footer__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

/* Apple and Google both ask for the badges unaltered and at one height. */
.app-badge {
    display: inline-block;
    line-height: 0;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.app-badge img {
    height: 40px;
    width: auto;
}

.app-badge:hover {
    transform: translateY(-2px);
}

/* ---- Link columns -------------------------------------------------------- */

.bt-footer__grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr));
    gap: 2rem;
    padding: 2.75rem 0 2.25rem;
}

.bt-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ft-ink);
    font-family: var(--font-family-title);
    font-size: 1.2rem;
    font-weight: 700;
}

.bt-footer__logo img {
    width: 36px;
    height: 36px;
}

.bt-footer__tagline {
    max-width: 34ch;
    margin: 0.75rem 0 0.9rem;
    color: var(--ft-muted);
}

.bt-footer__mail {
    color: var(--ft-link);
    font-weight: 600;
    border-bottom: 1px solid var(--ft-line);
}

.bt-footer__mail:hover {
    color: var(--ft-accent-ink);
    border-bottom-color: currentColor;
}

.bt-footer__col h3 {
    margin: 0 0 0.75rem;
    color: var(--ft-ink);
    font-family: var(--font-family-title);
    font-size: 0.95rem;
    font-weight: 700;
}

.bt-footer__col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bt-footer__col li {
    /* styles.css sets every `nav ul li` inline (the old header). */
    display: block;
}

.bt-footer__col li + li {
    margin-top: 0.4rem;
}

.bt-footer .bt-footer__col a {
    color: var(--ft-link);
    transition: color 0.15s ease;
}

.bt-footer__col a:hover {
    color: var(--ft-accent-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bt-footer__more {
    font-weight: 600;
}

.bt-footer__more::after {
    content: " \2192";
}

/* ---- Bottom bar ---------------------------------------------------------- */

.bt-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding: 1.1rem 0 1.5rem;
    border-top: 1px solid var(--ft-line);
    color: var(--ft-muted);
    font-size: 0.85rem;
}

/* ---- Narrower screens ---------------------------------------------------- */

@media (max-width: 1000px) {
    .bt-footer__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .bt-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .bt-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-badge,
    .bt-footer__col a {
        transition: none;
    }

    .app-badge:hover {
        transform: none;
    }
}
