/**
 * Site footer — Next Assurance & Advisory
 *
 * Loaded after the theme stylesheet, so selectors are namespaced under
 * `.na-footer` and, where the theme sets a competing rule, qualified with
 * `footer#colophon` to win on specificity without resorting to !important.
 */

.na-footer {
    --naf-navy: #003759;
    --naf-navy-900: #00243b;
    --naf-blue: #095ab3;
    --naf-text: rgba(255, 255, 255, .78);
    --naf-heading: #ffffff;
    --naf-line: rgba(255, 255, 255, .14);
    --naf-accent: #7cc0f5;

    position: relative;
    font-size: 15px;
    line-height: 1.65;
    overflow: hidden;
    isolation: isolate;
}

.na-footer::after {
    content: "";
    position: absolute;
    right: -220px;
    top: -220px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(9, 90, 179, .42) 0%, rgba(9, 90, 179, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* The theme paints `footer#colophon` with an id selector, so match it. */
footer#colophon.na-footer {
    background: linear-gradient(135deg, var(--naf-navy-900) 0%, var(--naf-navy) 45%, #063f74 100%);
    color: var(--naf-text);
}

.na-footer *,
.na-footer *::before,
.na-footer *::after { box-sizing: border-box; }

.na-footer__inner {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding: 0 20px;
}

footer#colophon.na-footer a { color: var(--naf-text); text-decoration: none; transition: color .18s ease; }
footer#colophon.na-footer a:hover { color: #fff; }

.na-footer__heading {
    color: var(--naf-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0 0 18px;
    padding: 0;
    line-height: 1.4;
}

/* ---------- Top bar ---------- */

.na-footer__top {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--naf-line);
    flex-wrap: wrap;
}

.na-footer__logo {
    flex: none;
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    line-height: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.na-footer__logo img {
    display: block;
    width: auto;
    height: 46px;
    max-width: none;
    border-radius: 0;
}

.na-footer__tagline {
    flex: 1 1 260px;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--naf-text);
    max-width: 460px;
}

.na-footer__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.na-footer__social {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.na-footer__social li { margin: 0; padding: 0; }

footer#colophon.na-footer .na-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

footer#colophon.na-footer .na-footer__social a:hover {
    background: #fff;
    border-color: #fff;
    color: var(--naf-navy);
    transform: translateY(-2px);
}

.na-footer__social svg { display: block; }

footer#colophon.na-footer a.na-footer__cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--naf-navy);
    border-radius: 999px;
    padding: 12px 26px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease;
}

footer#colophon.na-footer a.na-footer__cta:hover {
    color: var(--naf-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

/* ---------- Main columns ---------- */

.na-footer__cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.4fr;
    gap: 40px;
    padding: 44px 0;
    border-bottom: 1px solid var(--naf-line);
}

.na-footer__col p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.7; }

.na-footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.na-footer__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-size: 14.5px;
}

.na-footer__ic {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: var(--naf-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

footer#colophon.na-footer .na-footer__contact a { font-weight: 600; color: #fff; }
footer#colophon.na-footer .na-footer__contact a:hover { color: var(--naf-accent); }

.na-footer .na-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.na-footer .na-footer__menu li { padding: 0; margin: 0; }

footer#colophon.na-footer .na-footer__menu a {
    font-size: 14.5px;
    line-height: 1.5;
    display: inline-block;
    position: relative;
}

footer#colophon.na-footer .na-footer__menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--naf-accent);
    transition: width .22s ease;
}

footer#colophon.na-footer .na-footer__menu a:hover::after { width: 100%; }

.na-footer__offices {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.na-footer__offices li {
    padding: 0 0 0 14px;
    border-left: 2px solid rgba(255, 255, 255, .18);
    font-size: 14px;
    line-height: 1.65;
}

.na-footer__offices strong {
    display: block;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 3px;
}

.na-footer__offices strong span { font-weight: 400; opacity: .65; }

/* ---------- Locations: one row per city ---------- */

.na-footer__locations { padding: 40px 0 8px; }

.na-footer__heading--wide { margin-bottom: 22px; }

.na-footer__cityrow {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px 28px;
    align-items: start;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.na-footer__cityrow:first-of-type { border-top: 0; padding-top: 0; }

.na-footer__cityname {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    padding-top: 2px;
}

.na-footer__cityname svg { flex: none; color: var(--naf-accent); }

.na-footer__citylinks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.na-footer__citylinks li { margin: 0; padding: 0; }

footer#colophon.na-footer .na-footer__citylinks a {
    display: inline-block;
    font-size: 13.5px;
    line-height: 1.3;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .13);
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

footer#colophon.na-footer .na-footer__citylinks a:hover {
    background: rgba(124, 192, 245, .18);
    border-color: rgba(124, 192, 245, .5);
    color: #fff;
    transform: translateY(-1px);
}

/* ---------- Bottom bar ---------- */

.na-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    flex-wrap: wrap;
    padding: 24px 0 30px;
    margin-top: 24px;
    border-top: 1px solid var(--naf-line);
    font-size: 13.5px;
}

.na-footer__bottom p { margin: 0; font-size: 13.5px; }

.na-footer .na-footer__bottommenu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
}

.na-footer .na-footer__bottommenu li { padding: 0; margin: 0; position: relative; }

.na-footer .na-footer__bottommenu li + li::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 1px;
    height: 12px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .25);
}

footer#colophon.na-footer .na-footer__bottommenu a { font-size: 13.5px; }

/* ---------- Responsive ---------- */

@media (max-width: 1099px) {
    .na-footer__cols { grid-template-columns: 1fr 1fr; gap: 34px; }
    .na-footer__col--offices { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .na-footer__top { gap: 20px; }
    .na-footer__tagline { flex-basis: 100%; order: 3; max-width: none; }
    .na-footer__actions { margin-left: auto; }
    .na-footer__cityrow { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 640px) {
    .na-footer__inner { padding-inline: 18px; }
    .na-footer__top { flex-direction: column; align-items: flex-start; padding-top: 34px; }
    .na-footer__actions { margin-left: 0; width: 100%; justify-content: space-between; }
    .na-footer__cols { grid-template-columns: 1fr; gap: 30px; padding: 34px 0; }
    .na-footer__col--offices { grid-column: auto; }
    .na-footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
    .na-footer__logo img { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    footer#colophon.na-footer .na-footer__social a:hover,
    footer#colophon.na-footer a.na-footer__cta:hover,
    footer#colophon.na-footer .na-footer__citylinks a:hover { transform: none; }
}
