/* =====================================================================
   NcBose HCS — Public site shell: header (navbars/navbar_public.html)
   and footer (fragments/footer_public.html).
   Self-contained so it also works on pages that are not fully on the
   design system yet (Bootstrap base styles around it).
   ===================================================================== */

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

.nb-header, .nb-footer { font-family: var(--nb-font-body); -webkit-font-smoothing: antialiased; }
.nb-header *, .nb-footer * { box-sizing: border-box; }
.nb-header a:hover, .nb-footer a:hover { text-decoration: none; }
.nb-header img, .nb-footer img { display: block; max-width: 100%; height: auto; }

/* ============================ HEADER ============================ */
.nb-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(244, 251, 250, 0.86);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.nb-header.is-scrolled { border-bottom-color: var(--nb-border); box-shadow: var(--nb-shadow-1); }
.nb-header__inner { display: flex; align-items: center; gap: 24px; height: 80px; }
.nb-header .nb-brand { color: inherit; }
.nb-header__nav { display: flex; align-items: center; gap: 32px; margin: 0 auto; }
.nb-header__nav > a {
    font-size: 15.5px;
    font-weight: 500;
    color: var(--nb-text);
    transition: color .15s ease;
}
.nb-header__nav > a:hover, .nb-header__nav > a.is-current { color: var(--nb-primary-deep); }
.nb-header__actions { display: flex; align-items: center; gap: 8px; }
.nb-header__actions--mobile { display: none; }
.nb-header__toggle {
    display: none;
    width: 44px; height: 44px;
    margin-left: auto;
    align-items: center; justify-content: center;
    border: 1px solid var(--nb-border);
    border-radius: 12px;
    background: var(--nb-surface);
    color: var(--nb-ink);
    cursor: pointer;
}

@media (max-width: 1099px) {
    .nb-header__nav > a { font-size: 15px; }
    .nb-header__nav { gap: 22px; }
}
@media (max-width: 991px) {
    .nb-header__inner { height: 68px; }
    .nb-header__toggle { display: inline-flex; }
    .nb-header__inner > .nb-header__actions { display: none; }
    .nb-header__nav {
        display: none;
        position: absolute;
        top: 68px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px var(--nb-gutter) 20px;
        background: var(--nb-surface);
        border-bottom: 1px solid var(--nb-border);
        box-shadow: var(--nb-shadow-2);
    }
    .nb-header__nav.is-open { display: flex; }
    .nb-header__nav > a { padding: 14px 4px; border-bottom: 1px solid var(--nb-canvas); font-size: 16px; }
    .nb-header__actions--mobile { display: grid; gap: 10px; margin-top: 16px; }
}

/* ============================ FOOTER ============================ */
.nb-footer { background: var(--nb-footer); color: rgba(255, 255, 255, 0.72); font-size: 15px; line-height: 1.5; }
.nb-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 56px;
}
.nb-footer__brand p { margin: 20px 0 0; max-width: 380px; font-size: 15px; line-height: 1.65; }
.nb-footer h4 {
    margin: 0 0 18px;
    font-family: var(--nb-font-body);
    font-size: 13.5px; font-weight: 700; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase;
    color: #FFFFFF;
}
.nb-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nb-footer a { font-size: 15px; color: rgba(255, 255, 255, 0.72); transition: color .15s ease; }
.nb-footer a:hover { color: #FFFFFF; }
.nb-footer__contact li { display: flex; align-items: center; gap: 10px; }
.nb-footer__contact .nb-icon { color: var(--nb-primary); font-size: 18px; }
.nb-footer ul.nb-footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.nb-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 50%; color: rgba(255, 255, 255, 0.78); transition: background .15s ease, border-color .15s ease, color .15s ease; }
.nb-footer__social a:hover { border-color: var(--nb-primary); background: var(--nb-primary); color: #FFFFFF; }
.nb-footer__social a:focus-visible { outline: 2px solid var(--nb-primary); outline-offset: 2px; }
.nb-footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.nb-footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.nb-footer__bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 22px; padding-bottom: 22px; font-size: 13px; }

@media (max-width: 991px) {
    .nb-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    .nb-footer__grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
