/* ==========================================================================
   Site footer (template-parts/footer/site-footer.php)
   Newsletter band, four columns, disclaimer band and bottom bar.
   Breakpoints are in screens.css.
   ========================================================================== */

.nrds-footer {
    background: var(--nrd-dark);
    color: var(--nrd-on-dark-muted);
    font-size: .96rem;
    line-height: 1.6;
    margin-top: var(--section-gap);
}

.nrds-footer__container {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: var(--content-max-width);
    padding: 0 var(--nrd-gutter);
}

.nrds-fullscreen .nrds-footer__container {
    max-width: none;
}

.nrds-footer a {
    color: var(--nrd-on-dark-muted);
    text-decoration: none;
    transition: color .2s;
}

.nrds-footer a:hover,
.nrds-footer a:focus {
    color: var(--nrd-primary);
}

/* Buttons keep their own colors */
.nrds-footer .btn,
.nrds-footer .btn:hover,
.nrds-footer .btn:focus,
.nrds-footer .wp-block-button__link,
.nrds-footer .wp-block-button__link:hover {
    color: var(--nrd-on-primary);
}

/* ---------- Newsletter band ---------- */
.nrds-footer__band {
    background: var(--nrd-secondary);
    color: var(--nrd-light);
    padding: 40px 0;
    text-align: center;
}

.nrds-footer__band .widget-title,
.nrds-footer__band h2,
.nrds-footer__band h3 {
    color: var(--nrd-light);
    font-family: var(--nrd-font-head);
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: .04em;
    margin: 0 0 .4em;
    text-transform: uppercase;
}

.nrds-footer__band p {
    margin: 0 auto 1em;
    max-width: 640px;
}

.nrds-footer__band form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.nrds-footer__band input[type="email"],
.nrds-footer__band input[type="text"] {
    border: 0;
    flex: 1 1 260px;
    font: inherit;
    max-width: 380px;
    padding: 14px 16px;
}

/* ---------- Columns ---------- */
.nrds-footer__main {
    padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 56px);
}

.nrds-footer__grid {
    display: grid;
    gap: 40px 48px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Fewer active columns share the full width; a brand column gets a little more room. */
.nrds-footer__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nrds-footer__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nrds-footer__grid--1 { grid-template-columns: minmax(0, 1fr); }
.nrds-footer__grid--4.has-brand { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.nrds-footer__grid--3.has-brand { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
.nrds-footer__grid--2.has-brand { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.nrds-footer__grid--1.has-brand .nrds-footer__about { max-width: 560px; }

.nrds-footer__col {
    min-width: 0; /* Let long words, images and embeds shrink with the column */
}

.nrds-footer__col > * + * {
    margin-top: 28px;
}

.nrds-footer .widget-title {
    color: var(--nrd-light);
    font-family: var(--nrd-font-head);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .12em;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.nrds-footer__col .widget-title::after {
    background: var(--nrd-primary);
    content: "";
    display: block;
    height: 3px;
    margin-top: 8px;
    width: 32px;
}

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

.nrds-footer__col li {
    margin-bottom: 10px;
}

.nrds-footer__col ul ul {
    margin-top: 10px;
    padding-left: 14px;
}

.nrds-footer__col p {
    margin: 0 0 1em;
}

.nrds-footer__col img,
.nrds-footer__col iframe {
    height: auto;
    max-width: 100%;
}

/* The global current-page highlight doesn't belong in the footer. */
.nrds-footer .current-menu-item > a,
.nrds-footer .current_page_item > a {
    border-bottom: 0;
    color: var(--nrd-light);
    font-style: normal;
}

/* ---------- Brand block (column 1) ---------- */
.nrds-footer__brand .custom-logo-link {
    display: inline-block;
    margin-bottom: 18px;
}

.nrds-footer__brand .custom-logo {
    height: auto;
    max-height: 72px;
    width: auto;
}

.nrds-footer__brand .site-title {
    font-family: var(--nrd-font-head);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.1;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.nrds-footer__brand .site-title a {
    color: var(--nrd-light);
}

.nrds-footer__about {
    max-width: 360px;
}

.nrds-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.nrds-footer .nrds-social a {
    border: 2px solid var(--nrd-secondary);
    border-radius: 50%;
    color: var(--nrd-light);
    display: grid;
    height: 40px;
    place-items: center;
    transition: background .2s, border-color .2s;
    width: 40px;
}

.nrds-footer .nrds-social a:hover,
.nrds-footer .nrds-social a:focus {
    background: var(--nrd-primary);
    border-color: var(--nrd-primary);
    color: var(--nrd-on-primary);
}

.nrds-social svg {
    height: 18px;
    width: 18px;
}

/* ---------- Disclaimer ---------- */
.nrds-footer__legal {
    border-top: 1px solid var(--nrd-secondary);
    font-size: .85rem;
    padding: 24px 0;
}

.nrds-footer__legal p {
    margin: 0;
    max-width: 960px;
}

/* ---------- Bottom bar ---------- */
.nrds-footer__bottom {
    background: var(--nrd-secondary);
    color: var(--nrd-light);
    font-size: .85rem;
    padding: 16px 0;
}

.nrds-footer__bottom .nrds-footer__container {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    justify-content: space-between;
}

.nrds-footer__copyright {
    margin: 0;
}

.nrds-footer__bottom a {
    color: var(--nrd-light);
}

.nrds-footer__bottom-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nrds-footer__bottom-widgets {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.nrds-footer__bottom-widgets .widget-title {
    font-size: .85rem;
    margin: 0 0 4px;
}

/* Block social icons (core Social Icons block) in the footer */
.nrds-footer .wp-block-social-link a {
    color: var(--nrd-light);
    fill: var(--nrd-light);
}
