/* ═══════════════════════════════════════════════════════════════
   NFCS ENUGU DIOCESE — "Cathedral" design system
   Nigeria Federation of Catholic Students, Enugu Diocese
   Living the Faith · Who Cares? NFCS Does!
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ────────────────────────────────────────────────── */
/* Palette taken from nfcsenugudiocese.com — green and neutrals, no gold. */
:root {
    /* Text */
    --ink:            #1a202c;
    --ink-soft:       #4a5568;
    --ink-faint:      #718096;

    /* Ground */
    --paper:          #ffffff;
    --parchment:      #f7fafc;
    --parchment-deep: #edf2f7;

    /* Green */
    --sanctuary:      #008751;
    --sanctuary-deep: #006641;
    --sanctuary-mid:  #008751;
    --sanctuary-soft: #e6f5ee;

    /* Accent — same green. These names are kept so existing rules
       keep working; nothing gold remains. */
    --gold:           #008751;
    --gold-bright:    #ffffff;
    --gold-pale:      #b8e0cd;
    --gold-wash:      #f0f9f5;
    --gold-dark:      #006641;

    /* Crest colours */
    --crest-blue:     #2E6DB4;
    --crest-red:      #C1272D;

    /* Lines */
    --rule:           #e2e8f0;
    --rule-strong:    #cbd5e0;

    /* Type */
    --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --display: var(--body);

    /* Image corner rounding */
    --arch: 8px;

    /* Measure */
    --measure: 1200px;
    --gutter:  clamp(1rem, 4vw, 2rem);
}

/* ── 2. Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html { font-size: 14px; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.72;
    color: var(--ink);
    background: var(--parchment);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

::selection { background: var(--gold-pale); color: var(--sanctuary-deep); }

/* ── 3. Typography ────────────────────────────────────────────── */
.n-display,
h1, h2, h3 {
    font-family: var(--body);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0;
}

h1 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h3 { font-size: clamp(1rem, 1.6vw, 1.1rem); font-weight: 600; }

h4, h5, h6 {
    font-family: var(--body);
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.35;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.n-lede {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--ink-soft);
}

.n-body  { font-size: 0.975rem; color: var(--ink-soft); line-height: 1.8; }
.n-small { font-size: 0.84rem;  color: var(--ink-faint); line-height: 1.7; }

/* Small label above a heading */
.n-eyebrow {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold);
    margin: 0 0 0.5rem;
}
.n-eyebrow::before { content: none; }
.n-eyebrow--light { color: var(--gold-bright); }

.n-motto { font-weight: 600; color: var(--gold); }

/* Drop caps removed — plain paragraphs. */
.n-dropcap::first-letter { font-size: inherit; float: none; padding: 0; color: inherit; }

/* ── 4. Rules & ornaments ─────────────────────────────────────── */
.n-rule {
    border: 0;
    height: 1px;
    background: var(--rule);
    margin: 0;
}

/* The decorative rule is gone, but it still carries the spacing
   that separated a heading from the content beneath it. */
.n-rule-gold {
    display: block;
    width: 0;
    height: 0;
    border: 0;
    background: none;
    margin: 0 0 1rem;
}

/* Ornamental dividers removed. */
.n-ornament { display: none; }

/* ── 5. Layout ────────────────────────────────────────────────── */
.n-wrap {
    width: 100%;
    max-width: var(--measure);
    margin: 0 auto;
    padding-inline: var(--gutter);
}
.n-wrap--narrow { max-width: 760px; }
.n-wrap--wide   { max-width: 1380px; }

.n-section { padding-block: clamp(1.75rem, 4vw, 3rem); }
.n-section--tight { padding-block: clamp(1.5rem, 3vw, 2.25rem); }

.n-section--parchment { background: var(--parchment); }
.n-section--deep      { background: var(--parchment-deep); }
.n-section--paper     { background: var(--paper); }
.n-section--sanctuary { background: var(--sanctuary); color: rgba(255,255,255,0.82); }
.n-section--sanctuary h1,
.n-section--sanctuary h2,
.n-section--sanctuary h3,
.n-section--sanctuary h4 { color: #fff; }

/* Section heading blocks */
.n-head { margin-bottom: clamp(1.1rem, 2.4vw, 1.6rem); }
.n-head--center { text-align: center; }
.n-head--center .n-rule-gold { margin-left: auto; margin-right: auto; }
.n-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.n-head p { margin-top: 0.8rem; max-width: 56ch; }
.n-head--center p { margin-inline: auto; }

/* ── 6. Buttons ───────────────────────────────────────────────── */
.n-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    padding: 0.6em 1.15em;
    font-family: var(--body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}
.n-btn:hover { transform: translateY(-1px); }
.n-btn i { font-size: 1.1em; }

.n-btn--gold {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}
.n-btn--gold:hover { background: var(--sanctuary-deep); border-color: var(--sanctuary-deep); color: #fff; }

.n-btn--green {
    background: var(--sanctuary);
    color: #fff;
    border-color: var(--sanctuary);
}
.n-btn--green:hover { background: var(--sanctuary-deep); border-color: var(--sanctuary-deep); color: #fff; }

.n-btn--outline {
    background: transparent;
    color: var(--sanctuary-deep);
    border-color: var(--rule-strong);
}
.n-btn--outline:hover { border-color: var(--sanctuary); background: var(--sanctuary); color: #fff; }

.n-btn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.35);
}
.n-btn--ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); background: transparent; }

.n-btn--white {
    background: #fff;
    color: var(--sanctuary-deep);
    border-color: #fff;
}
.n-btn--white:hover { background: var(--gold-wash); border-color: var(--gold-wash); color: var(--sanctuary); }

.n-btn--sm { padding: 0.5em 1em; font-size: 0.82rem; }
.n-btn--block { width: 100%; }

/* Text link with arrow */
.n-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    font-family: var(--body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    padding-bottom: 0.2em;
    border-bottom: 1px solid var(--gold-pale);
    transition: gap 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.n-link:hover { gap: 0.85em; color: var(--sanctuary); border-color: var(--sanctuary); }

/* ── 7. The arch — church-window image frame ─────────────────── */
.n-arch {
    position: relative;
    overflow: hidden;
    border-radius: var(--arch);
    background: var(--sanctuary-soft);
}
.n-arch > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.n-arch--sm  { --arch: 4px; }
.n-arch--lg  { --arch: 6px; }
.n-arch--framed { box-shadow: 0 0 0 1px var(--rule), 0 0 0 9px var(--parchment), 0 0 0 10px var(--gold-pale); }

/* ── 8. Cards ─────────────────────────────────────────────────── */
.n-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.n-card:hover {
    border-color: var(--sanctuary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    color: inherit;
}
.n-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--sanctuary-soft);
}
.n-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(.2,.6,.2,1);
}
.n-card:hover .n-card-media img { transform: scale(1.05); }
.n-card-body {
    padding: 1.5rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.6rem;
}
.n-card-title {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    margin: 0;
}
.n-card-desc { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.7; margin: 0; flex: 1; }

.n-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    font-size: 0.74rem;
    color: var(--ink-faint);
    letter-spacing: 0.02em;
    padding-top: 0.85rem;
    border-top: 1px solid var(--rule);
}
.n-card-meta i { color: var(--gold); margin-right: 0.3em; }

/* Status pips */
.n-pip {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.3em 0.7em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    background: rgba(255,255,255,0.94);
    color: var(--sanctuary-deep);
    backdrop-filter: blur(6px);
}
.n-pip--live   { background: var(--sanctuary); color: #fff; }
.n-pip--live::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold-bright);
    animation: n-pulse 1.8s ease-in-out infinite;
}
.n-pip--soon   { background: var(--gold); color: #fff; }
.n-pip--closed { background: rgba(26,26,22,0.7); color: #fff; }
.n-pip--right  { left: auto; right: 0.9rem; }

@keyframes n-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(1.35); }
}

/* ── 9. Grids ─────────────────────────────────────────────────── */
.n-grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.n-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.n-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.n-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

@media (max-width: 980px) {
    .n-grid--3, .n-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .n-grid--2, .n-grid--3, .n-grid--4 { grid-template-columns: minmax(0,1fr); }
}

/* Editorial split: text + image, asymmetric */
.n-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.n-split--reverse .n-split-media { order: -1; }
@media (max-width: 900px) {
    .n-split { grid-template-columns: minmax(0,1fr); gap: 2.5rem; }
    .n-split--reverse .n-split-media { order: 0; }
}

/* ── 10. Numbered list (01 — LABEL) ───────────────────────────── */
.n-numbered { display: grid; gap: 0; }
.n-numbered-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.2rem, 3vw, 2.6rem);
    padding-block: clamp(1.6rem, 3vw, 2.4rem);
    border-top: 1px solid var(--rule);
    align-items: start;
}
.n-numbered-item:last-child { border-bottom: 1px solid var(--rule); }
.n-numbered-num {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--gold);
    min-width: 2.2ch;
}
.n-numbered-body h4 {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.n-numbered-body p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; max-width: 62ch; }

/* ── 11. Quote / pull-out ─────────────────────────────────────── */
.n-quote {
    font-size: 1.05rem;
    line-height: 1.75;
    color: inherit;
    margin: 0;
    padding: 0;
    border: 0;
}
.n-quote::before { content: none; }

/* ── 12. Fact rows ────────────────────────────────────────────── */
.n-facts { display: grid; gap: 0; }
.n-fact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--rule);
}
.n-fact-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-faint);
    white-space: nowrap;
}
.n-fact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    text-align: right;
}
.n-section--sanctuary .n-fact { border-color: rgba(255,255,255,0.13); }
.n-section--sanctuary .n-fact-label { color: rgba(255,255,255,0.5); }
.n-section--sanctuary .n-fact-value { color: var(--gold-bright); }

/* ── 13. Empty / notice states ───────────────────────────────── */
.n-empty {
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem) 1.5rem;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--paper);
}
.n-empty i { font-size: 2.2rem; color: var(--gold-pale); display: block; margin-bottom: 0.9rem; }
.n-empty h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.n-empty p { font-size: 0.92rem; color: var(--ink-faint); margin: 0; }

.n-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    background: var(--gold-wash);
    border: 1px solid var(--gold-pale);
    border-radius: 6px;
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.65;
}
.n-notice i { color: var(--gold); font-size: 1.05rem; margin-top: 0.15rem; flex-shrink: 0; }
.n-notice a { color: var(--sanctuary); font-weight: 600; }

/* ── 14. Page mastheads (inner pages) ────────────────────────── */
.n-masthead {
    position: relative;
    background: var(--sanctuary);
    color: rgba(255,255,255,0.8);
    padding-block: clamp(1.4rem, 3vw, 2.1rem);
    overflow: hidden;
    isolation: isolate;
}
.n-masthead {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.n-masthead h1 { color: #fff; }
.n-masthead .n-eyebrow { color: var(--gold-bright); }
.n-masthead-lede {
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.72);
    max-width: 62ch;
    margin: 0.75rem 0 0;
}
.n-masthead--center { text-align: center; }
.n-masthead--center .n-masthead-lede { margin-inline: auto; }

/* Breadcrumb */
.n-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4em;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.9rem;
}
.n-crumbs a { color: rgba(255,255,255,0.68); text-decoration: none; }
.n-crumbs a:hover { color: var(--gold-bright); }
.n-crumbs span.sep { opacity: 0.4; }

/* ── 15. Prose (legal / page content) ────────────────────────── */
.n-prose { font-size: 1rem; line-height: 1.85; color: var(--ink-soft); }
.n-prose h2 {
    font-size: 1.2rem;
    margin: 2rem 0 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
}
.n-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.n-prose h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
.n-prose ul, .n-prose ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.n-prose li { margin-bottom: 0.5em; }
.n-prose li::marker { color: var(--gold); }
.n-prose a { color: var(--sanctuary); text-decoration: underline; text-decoration-color: var(--gold-pale); text-underline-offset: 3px; }
.n-prose a:hover { text-decoration-color: var(--gold); }
.n-prose strong { color: var(--ink); font-weight: 600; }

/* ── 16. Forms ────────────────────────────────────────────────── */
.n-field { margin-bottom: 1.15rem; }
.n-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 0.4rem;
}
.n-input, .n-select, .n-textarea {
    width: 100%;
    padding: 0.55rem 0.8rem;
    font-family: var(--body);
    font-size: 0.92rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.n-input:focus, .n-select:focus, .n-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(0,135,81,0.12);
}
.n-textarea { resize: vertical; min-height: 140px; }
.n-error { display: block; font-size: 0.78rem; color: var(--crest-red); margin-top: 0.35rem; }

/* ── 17. Utilities ────────────────────────────────────────────── */
.n-center     { text-align: center; }
.n-mt-0  { margin-top: 0; }
.n-mt-1  { margin-top: 0.75rem; }
.n-mt-2  { margin-top: 1.5rem; }
.n-mt-3  { margin-top: 2.25rem; }
.n-mb-2  { margin-bottom: 1.5rem; }
.n-stack { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.n-stack--center { justify-content: center; }

@media (max-width: 520px) {
    .n-stack .n-btn { width: 100%; }
}

/* Reveal-on-scroll */
.n-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.85s cubic-bezier(.2,.6,.2,1), transform 0.85s cubic-bezier(.2,.6,.2,1);
}
.n-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .n-reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .n-pip--live::before { animation: none; }
}
