/* ============================================================
   NTM Footer (Figma redesign)

   Dark editorial footer. Brand block on the left (stacked logo +
   tagline) with a soft teal arc glow anchored to its lower-left.
   Three link columns on the right with serif column titles and
   inline social icons under "Legal". Bottom strip carries the
   copyright line and a horizontal hairline.
   ============================================================ */

.footer.footer-ntm.ntm-footer {
    position: relative;
    overflow: hidden;
    background-color: #161616;
    color: rgba(255, 255, 255, 0.78);
    padding: 80px 0 30px;
    font-family: var(--ntm-font-sans);
    border-top: 0.1px solid rgba(255, 255, 255, 0.15);
    isolation: isolate;
}

/* --- Decorative arc glow ---
   Sits under the brand block at the lower-left of the footer. Anchored
   relative to the inner grid so it tracks the brand column rather than
   bleeding across the full footer width. */
.ntm-footer__arc {
    position: absolute;
    left: -6%;
    bottom: -7%;
    width: 48%;
    max-width: 780px;
    pointer-events: none;
    /* Above the bottom strip (copyright) so the arc sweeps over it,
       but below the brand + link columns. */
    z-index: 2;
    line-height: 0;
    opacity: 1;
}

.ntm-footer__arc img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Layout shell ---
   No z-index on the inner so its children share the footer's stacking
   context; the grid sits above the arc, the bottom strip below. */
.ntm-footer__inner {
    position: relative;
    max-width: var(--ntm-container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.ntm-footer__grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 140px;
}

@media (min-width: 992px) {
    .ntm-footer__grid {
        grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
        gap: 80px;
        align-items: start;
        padding-bottom: 210px;
    }
}

/* --- Brand block --- */
.ntm-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 320px;
}

.ntm-footer__logo-link {
    display: inline-block;
    line-height: 0;
}

.ntm-footer__logo {
    width: 168px;
    height: auto;
    display: block;
}

.ntm-footer__tagline {
    margin: 0;
    font-family: var(--ntm-font-sans);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.78);
}

/* --- Link columns --- */
.ntm-footer__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
}

@media (min-width: 768px) {
    .ntm-footer__columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .ntm-footer__columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .ntm-footer__columns {
        grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr);
    }
}

.ntm-footer__column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.ntm-footer__column-title {
    margin: 0 0 4px;
    font-family: var(--ntm-font-serif);
    font-weight: 400;
    font-style: normal;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: #ffffff;
}

.ntm-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ntm-footer__link {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--ntm-font-sans);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ntm-footer__link:hover,
.ntm-footer__link:focus-visible {
    color: var(--ntm-accent-teal);
    text-decoration: none;
}

/* --- Social icons (live under the Legal column) --- */
.ntm-footer__social {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.ntm-footer__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.78);
    background-color: transparent;
    border-radius: 0;
    font-size: 17px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ntm-footer__social-icon:hover,
.ntm-footer__social-icon:focus-visible {
    color: var(--ntm-accent-teal);
    transform: translateY(-1px);
    text-decoration: none;
}

/* --- Bottom strip: copyright + hairline ---
   Sits below the arc (z-index: 1) so the arc curve sweeps over the
   copyright line, matching the Figma reference. */
.ntm-footer__bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ntm-footer__copyright {
    margin: 0;
    font-family: var(--ntm-font-sans);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

.ntm-footer__rule {
    flex: 1 1 auto;
    height: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.0);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .footer.footer-ntm.ntm-footer {
        padding: 96px 0 56px;
    }

    .ntm-footer__brand {
        max-width: none;
    }

    .ntm-footer__arc {
        left: -15%;
        width: 90%;
        bottom: -30%;
        opacity: 0.85;
    }
}

@media (max-width: 575px) {
    .ntm-footer__columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ntm-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
