/* ═══════════════════════════════════════════════════════════════
   NFCS ENUGU DIOCESE — shell: masthead, navigation, footer
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Top contact strip ─────────────────────────────────────── */
.n-band {
    background: var(--sanctuary);
    color: rgba(255,255,255,0.92);
    font-size: 0.78rem;
}
.n-band-inner {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0.4rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.n-band-motto { font-weight: 500; }
.n-band-contact { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.n-band-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
}
.n-band-contact a:hover { color: #fff; }
.n-band-contact i { font-size: 0.78rem; }

@media (max-width: 768px) {
    .n-band-inner { justify-content: center; text-align: center; font-size: 0.72rem; }
    .n-band-contact { display: none; }
}

/* ── 2. Navbar ────────────────────────────────────────────────── */
.n-masthead-bar {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.n-nav-inner {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0.75rem var(--gutter);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Brand */
.n-crest {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    margin-right: auto;
    flex-shrink: 0;
}
.n-crest img { height: 40px; width: auto; transition: transform 0.3s ease; }
.n-crest:hover img { transform: scale(1.05); }
.n-crest-words { display: flex; flex-direction: column; line-height: 1.25; }
.n-crest-name { font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.n-crest-sub  { font-size: 0.7rem; color: var(--ink-faint); }

/* Desktop: links and actions sit on one row */
.n-nav-collapse {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Links */
.n-nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.n-nav-link {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.25s ease;
}
.n-nav-link:hover,
.n-nav-link.is-active { color: var(--sanctuary); background: var(--parchment); }
.n-nav-link::after { content: none; }

.n-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

/* Hamburger */
.n-burger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s ease;
}
.n-burger:hover { background: var(--parchment); }
.n-burger span {
    display: block;
    height: 3px;
    width: 24px;
    background: var(--sanctuary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.n-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.n-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.n-burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Collapse — drops down under the bar, no slide-in panel */
@media (max-width: 1199px) {
    .n-burger { display: flex; }

    .n-nav-collapse {
        display: none;
        width: 100%;
        order: 3;
        background: var(--parchment);
        border-top: 1px solid var(--rule);
        margin: 0.75rem calc(var(--gutter) * -1) 0;
        width: calc(100% + var(--gutter) * 2);
        padding: 0.5rem 0;
    }
    .n-nav-collapse.is-open { display: block; }

    .n-nav-links { flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--gutter); }
    .n-nav-link {
        padding: 0.85rem 1rem;
        font-size: 0.9375rem;
        border-radius: 0;
        border-bottom: 1px solid var(--rule);
        
    }
    .n-nav-link:hover,
    .n-nav-link.is-active {
        background: var(--paper);
        
        padding-left: 1.5rem;
    }

    .n-nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        margin: 0.85rem 0 0;
        padding: 0.85rem var(--gutter) 0.25rem;
        border-top: 1px solid var(--rule);
    }
    .n-nav-actions .n-btn,
    .n-nav-actions form,
    .n-nav-actions form button { width: 100%; justify-content: center; }
}

@media (max-width: 340px) {
    .n-crest-words { display: none; }
}

/* ── 4. Footer — compact, light ───────────────────────────────── */
.n-footer {
    background: var(--paper);
    border-top: 1px solid var(--rule);
    color: var(--ink-soft);
}

.n-footer-inner {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 1.75rem var(--gutter) 1.25rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem 2.5rem;
    flex-wrap: wrap;
}

.n-footer-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.n-footer-brand img { height: 44px; width: auto; }
.n-footer-name { display: block; font-size: 0.98rem; font-weight: 700; color: var(--ink); margin: 0; }
.n-footer-sub  { display: block; font-size: 0.82rem; color: var(--ink-faint); margin: 0.1rem 0 0; }

.n-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.n-footer-links a {
    font-size: 0.9rem;
    color: var(--ink-soft);
    text-decoration: none;
}
.n-footer-links a:hover { color: var(--sanctuary); text-decoration: underline; }

.n-footer-socials { display: flex; gap: 0.4rem; }
.n-footer-socials a {
    width: 32px; height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--rule-strong);
    border-radius: 4px;
    color: var(--ink-soft);
    font-size: 0.85rem;
    text-decoration: none;
}
.n-footer-socials a:hover { border-color: var(--sanctuary); color: var(--sanctuary); }

.n-footer-bottom { border-top: 1px solid var(--rule); }
.n-footer-bottom-inner {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0.85rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--ink-faint);
}

@media (max-width: 640px) {
    .n-footer-inner { flex-direction: column; gap: 1.1rem; }
    .n-footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ── 5. Floating actions ─────────────────────────────────────── */
.n-float {
    position: fixed;
    right: clamp(0.9rem, 2.5vw, 1.6rem);
    z-index: 900;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}
.n-float-whatsapp {
    bottom: clamp(0.9rem, 2.5vw, 1.6rem);
    background: #25D366;
    color: #fff;
    box-shadow: 0 8px 22px -8px rgba(37,211,102,0.8);
}
.n-float-top {
    bottom: calc(clamp(0.9rem, 2.5vw, 1.6rem) + 58px);
    background: var(--sanctuary);
    color: var(--gold-bright);
    border: 1px solid rgba(0,135,81,0.5);
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
}
.n-float-top.is-shown { opacity: 1; visibility: visible; }
.n-float:hover { transform: translateY(-3px); }

/* ── 6. Toasts ───────────────────────────────────────────────── */
.n-toasts {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: min(380px, calc(100vw - 2.4rem));
}
.n-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    
    border-radius: 2px;
    box-shadow: 0 18px 40px -22px rgba(0,0,0,0.6);
    animation: n-toast-in 0.4s cubic-bezier(.2,.7,.3,1);
}
.n-toast--success {  }
.n-toast--error   {  }
.n-toast i.n-toast-icon { font-size: 1.15rem; margin-top: 0.1rem; }
.n-toast--success .n-toast-icon { color: var(--sanctuary-mid); }
.n-toast--error   .n-toast-icon { color: var(--crest-red); }
.n-toast-title {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--sanctuary-deep);
    line-height: 1.2;
}
.n-toast-msg { font-size: 0.84rem; color: var(--ink-soft); line-height: 1.55; margin-top: 0.15rem; }
.n-toast-x {
    margin-left: auto;
    background: none;
    border: 0;
    color: var(--ink-faint);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
}
@keyframes n-toast-in {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: none; }
}

/* ── 7. Bootstrap modal, dressed for the Cathedral ───────────── */
.modal-content {
    border: 1px solid var(--rule);
    border-radius: 2px;
    background: var(--parchment);
}
.modal-header {
    border-bottom: 1px solid var(--rule);
    background: var(--sanctuary);
    color: #fff;
    border-radius: 0;
}
.modal-header .modal-title {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.modal-body { padding: 1.5rem; }
