/* ============================================================
   Site footer
   Figma: desktop 38101:976 · mobile 38101:2577

   Loaded on every page through layouts/layout.blade.php, so the rules are
   unscoped and the block below re-declares the handful of tokens it needs.
   home.css defines the same names on .page-home; these are identical values
   and the two never disagree because both are generated from the Figma
   Color / Typography systems.
   ============================================================ */

.rte-footer {
    --footer-bg: #060f1f;
    --footer-white: #ffffff;
    --footer-mint: #5eead4;
    --footer-link: #c3d2e3;
    --footer-rule: #c3d2e3;
    --footer-copy: #f4f7fb;

    /* Pinned, not inherited: style.css sets 18px/32px on body for the rest of
       the site and home.css sets 16px/24px on .page-home. */
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

/* Matches .rte-container in home.css so the footer lines up with the page
   above it; standalone here because other pages do not load home.css. */
.rte-footer .rte-container {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: clamp(40px, calc(14.4231vw - 107.69px), 100px);
}

@media (max-width: 1023.98px) {
    .rte-footer .rte-container { padding-inline: 40px; }
}

@media (max-width: 767.98px) {
    .rte-footer .rte-container { padding-inline: 20px; }
}

.rte-footer {
    padding: 105px 0 32px;
    background-color: var(--footer-bg);
}

/* Column starts in the design are 0 / 505 / 827 / 1080 of the 1240 column. */
/* Every rule below is prefixed with .rte-footer so it outranks the page-level
   element rules it has to survive: bootstrap's h2/ul/p defaults everywhere,
   and home.css's own .page-home h2 / .page-home p on the homepage. */

.rte-footer .rte-footer__top {
    display: grid;
    grid-template-columns: 505fr 322fr 253fr 160fr;
    align-items: start;
}

/* ---------- Brand ---------- */
.rte-footer .rte-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.rte-footer .rte-footer__logo img {
    display: block;
    flex-shrink: 0;
    width: auto;
    height: 45px;
}

.rte-footer .rte-footer__wordmark {
    font-size: 30px;
    line-height: normal;
    letter-spacing: -0.04em;
    font-weight: 700;
    color: var(--footer-white);
}

.rte-footer .rte-footer__wordmark em {
    font-style: normal;
    font-weight: 500;
    color: var(--footer-mint);
}

.rte-footer .rte-footer__tagline {
    max-width: 325px;
    margin: 18px 0 0;
    font-size: 20px;
    line-height: 30px;
    font-weight: 500;
    color: var(--footer-white);
}

/* ---------- Link columns ---------- */
/* The headings sit 12px below the logo's top edge in the design. */
.rte-footer .rte-footer__col {
    min-width: 0;
    padding-top: 12px;
}

.rte-footer .rte-footer__col-title {
    margin: 0;
    font-size: 14px;
    line-height: normal;
    letter-spacing: 0.1em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--footer-white);
}

.rte-footer .rte-footer__links {
    display: flex;
    flex-direction: column;
    gap: 21px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    /* The li drives the line box, so the size lives here and not on the a. */
    font-size: 16px;
    line-height: normal;
}

.rte-footer .rte-footer__links a {
    font-size: 16px;
    line-height: normal;
    letter-spacing: -0.01em;
    font-weight: 500;
    color: var(--footer-link);
    text-decoration: none;
}

.rte-footer .rte-footer__links a:hover,
.rte-footer .rte-footer__links a:focus-visible {
    color: var(--footer-white);
    text-decoration: underline;
}

/* ---------- Disclaimer + copyright ---------- */
.rte-footer .rte-footer__legal {
    margin-top: 78px;
    padding-top: 32px;
    border-top: 1px solid var(--footer-rule);
}

.rte-footer .rte-footer__disclaimer {
    margin: 0;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: var(--footer-white);
}

.rte-footer .rte-footer__copyright {
    margin: 13px 0 0;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: var(--footer-copy);
}

.rte-footer .rte-footer__copyright span {
    font-weight: 700;
    color: var(--footer-mint);
}

/* ---------- Stacked layout ---------- */
@media (max-width: 1023.98px) {
    .rte-footer {
        padding: 60px 0 20px;
        text-align: center;
    }

    .rte-footer .rte-footer__top {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 40px;
    }


    .rte-footer .rte-footer__tagline {
        max-width: none;
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.5;
    }

    .rte-footer .rte-footer__col {
        padding-top: 0;
    }

    .rte-footer .rte-footer__links {
        gap: 16px;
        margin-top: 20px;
    }

    .rte-footer .rte-footer__legal {
        margin-top: 40px;
        padding-top: 24px;
    }

    .rte-footer .rte-footer__copyright {
        margin-top: 16px;
    }
}
