:root {
  --nf-red:        #a11f1f;
  --nf-red-dark:   #7a1616;
  --nf-ink:        #17181a;
  --nf-ink-soft:   #43464b;
  --nf-muted:      #6a6f77;
  --nf-line:       #e3e4e7;
  --nf-bg:         #ffffff;
  --nf-bg-alt:     #f6f5f2;
  --nf-focus:      #2b6cb0;
  --nf-radius:     6px;
  --nf-container:  1120px;
  --nf-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--nf-font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--nf-ink);
  background: var(--nf-bg);
  min-width: 320px;
  overflow-wrap: break-word;
}
html.nf-menu-open, html.nf-menu-open body { overflow: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--nf-red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--nf-red-dark); }
a:focus-visible {
  outline: 3px solid var(--nf-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.nf-container { max-width: var(--nf-container); margin-inline: auto; padding-inline: 20px; }
.nf-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.nf-skip {
  position: absolute; left: -9999px; top: 0; padding: 12px 16px;
  background: var(--nf-ink); color: #fff;
}
.nf-skip:focus { left: 8px; top: 8px; z-index: 100; }

/* Emergency top bar */
.nf-emergency-bar {
  background: var(--nf-red);
  color: #fff;
  font-size: 15px;
}
.nf-emergency-bar .nf-container {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding-block: 8px;
}
.nf-emergency-bar a { color: #fff; text-decoration: underline; }
.nf-emergency-number { font-weight: 700; font-size: 18px; }
.nf-emergency-sub { margin-left: auto; opacity: 0.9; }

/* Site header */
.nf-site-header {
  background: var(--nf-bg);
  border-bottom: 1px solid var(--nf-line);
}
.nf-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 18px;
}
.nf-brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
}
.nf-brand:hover { color: inherit; }
.nf-brand-logo, .nf-brand img {
  width: 64px; height: 64px; object-fit: contain; flex-shrink: 0;
}
.nf-brand-text { display: flex; flex-direction: column; }
.nf-site-title {
  font-size: 22px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--nf-ink); line-height: 1.15;
}
.nf-site-tagline { margin: 2px 0 0; color: var(--nf-muted); font-size: 14px; }
.nf-primary-nav .nf-nav {
  display: flex; flex-wrap: wrap; gap: 4px 6px;
  list-style: none; margin: 0; padding: 0;
}
.nf-primary-nav a {
  display: inline-block; padding: 8px 12px; border-radius: var(--nf-radius);
  color: var(--nf-ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.nf-primary-nav a:hover,
.nf-primary-nav .current-menu-item > a { background: var(--nf-bg-alt); color: var(--nf-red-dark); }

/* Hero */
.nf-hero {
  background:
    linear-gradient(180deg, rgba(23,24,26,0.65), rgba(23,24,26,0.85)),
    radial-gradient(1200px 400px at 20% 0%, #3a1010 0%, transparent 60%),
    #17181a;
  color: #fff;
  padding: 72px 0 64px;
}
.nf-hero-eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; opacity: 0.85; margin: 0 0 8px; }
.nf-hero-title { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 0 0 12px; }
.nf-hero-sub { font-size: clamp(16px, 2vw, 19px); opacity: 0.9; margin: 0 0 28px; max-width: 720px; }
.nf-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.nf-btn {
  display: inline-block; padding: 12px 20px; border-radius: var(--nf-radius);
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.nf-btn-primary { background: var(--nf-red); color: #fff; }
.nf-btn-primary:hover { background: var(--nf-red-dark); color: #fff; }
.nf-btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.nf-btn-ghost:hover { background: #fff; color: var(--nf-ink); }

/* Sections */
.nf-section { padding: 56px 0; }
.nf-section-alt { background: var(--nf-bg-alt); }
.nf-section h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 24px; }

/* Card grids */
.nf-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nf-cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .nf-cards-3, .nf-cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .nf-cards-3, .nf-cards-4 { grid-template-columns: 1fr; } }

.nf-card, .nf-service, .nf-news {
  background: var(--nf-bg);
  border: 1px solid var(--nf-line);
  border-radius: var(--nf-radius);
  padding: 20px 22px;
  color: inherit;
  text-decoration: none;
  display: block;
}
.nf-card:hover { border-color: var(--nf-red); transform: translateY(-1px); transition: all .15s; }
.nf-card h3, .nf-service h3, .nf-news h3 { margin: 0 0 8px; font-size: 18px; }
.nf-card p, .nf-service p, .nf-news p { margin: 0; color: var(--nf-ink-soft); font-size: 15px; }

/* Quick actions strip lives on the alt-free section directly under hero */
.nf-quick-actions { padding: 40px 0; background: var(--nf-bg); }

/* Two-column split */
.nf-two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .nf-two-col { grid-template-columns: 1fr; } }
.nf-facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0; }
.nf-facts dt { font-size: 13px; color: var(--nf-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.nf-facts dd { margin: 4px 0 0; font-size: 20px; font-weight: 700; color: var(--nf-ink); }
.nf-inline-link { font-weight: 600; }

/* News meta */
.nf-news-meta { font-size: 13px; color: var(--nf-muted); margin: 0 0 8px; }
.nf-muted { color: var(--nf-muted); }

/* Generic page */
.nf-page-header { margin-bottom: 24px; }
.nf-page-header h1 { font-size: clamp(28px, 4vw, 36px); margin: 0; }
.nf-prose { max-width: 760px; }
.nf-prose p, .nf-prose li { font-size: 17px; line-height: 1.7; color: var(--nf-ink); }
.nf-prose h2 {
  margin-top: 2em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--nf-line);
}
.nf-prose h2:first-child { margin-top: 0; }
.nf-prose h3 { margin-top: 1.6em; margin-bottom: 0.4em; font-size: 18px; }
.nf-prose ul, .nf-prose ol { padding-left: 22px; }
.nf-prose li + li { margin-top: 6px; }
.nf-prose ol li { padding-left: 4px; }

/* Tables inside page content (apparatus roster). The wrapper keeps a wide
   table scrollable on phones instead of blowing out the page width. */
.nf-table-wrap { overflow-x: auto; margin: 20px 0; }
.nf-prose table {
  border-collapse: collapse;
  width: 100%;
  min-width: 420px;
  font-size: 16px;
}
.nf-prose th, .nf-prose td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--nf-line);
}
.nf-prose thead th {
  background: var(--nf-bg-alt);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nf-ink-soft);
  border-bottom: 2px solid var(--nf-line);
  white-space: nowrap;
}
.nf-prose tbody tr:last-child td { border-bottom: 0; }
.nf-prose tbody td:first-child { font-weight: 600; white-space: nowrap; }

/* Post list */
.nf-post-list { display: grid; gap: 24px; }
.nf-post-summary { padding-bottom: 24px; border-bottom: 1px solid var(--nf-line); }
.nf-post-summary:last-child { border-bottom: 0; }
.nf-post-summary h2 { margin: 0 0 6px; font-size: 22px; }
.nf-post-summary h2 a { color: var(--nf-ink); text-decoration: none; }
.nf-post-summary h2 a:hover { color: var(--nf-red-dark); }
.nf-pagination { margin-top: 32px; }

/* Search form */
.nf-search { display: flex; gap: 8px; }
.nf-search input[type="search"] {
  flex: 1; padding: 10px 12px; border: 1px solid var(--nf-line);
  border-radius: var(--nf-radius); font: inherit;
}
.nf-search button {
  padding: 10px 16px; border: 0; border-radius: var(--nf-radius);
  background: var(--nf-ink); color: #fff; font: inherit; cursor: pointer;
}

/* Footer */
.nf-site-footer { background: var(--nf-ink); color: #d7d9dd; margin-top: 40px; }
.nf-footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-block: 48px;
}
@media (max-width: 800px) { .nf-footer-grid { grid-template-columns: 1fr; } }
.nf-footer-heading { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 12px; }
.nf-site-footer a { color: #fff; }
.nf-site-footer address { font-style: normal; line-height: 1.7; }
.nf-footer-hours { color: #a4a8b0; font-size: 14px; margin-top: 12px; }
.nf-footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nf-footer-emergency { color: #fff; font-weight: 600; }
.nf-footer-legal {
  border-top: 1px solid #2a2c30; padding-block: 16px;
  color: #8f939b; font-size: 13px;
}

/* ---------- Mobile menu toggle (button, hidden on desktop) ---------- */
.nf-menu-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--nf-line);
  border-radius: var(--nf-radius);
  background: transparent;
  cursor: pointer;
}
.nf-menu-toggle:hover { background: var(--nf-bg-alt); }
.nf-menu-toggle-bars,
.nf-menu-toggle-bars::before,
.nf-menu-toggle-bars::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--nf-ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nf-menu-toggle-bars { position: relative; }
.nf-menu-toggle-bars::before,
.nf-menu-toggle-bars::after {
  content: ''; position: absolute; left: 0;
}
.nf-menu-toggle-bars::before { top: -7px; }
.nf-menu-toggle-bars::after  { top:  7px; }
.nf-menu-toggle[aria-expanded="true"] .nf-menu-toggle-bars { background: transparent; }
.nf-menu-toggle[aria-expanded="true"] .nf-menu-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nf-menu-toggle[aria-expanded="true"] .nf-menu-toggle-bars::after  { top: 0; transform: rotate(-45deg); }

/* ---------- Mobile layout (≤800px) ---------- */
@media (max-width: 800px) {
  .nf-header-inner {
    flex-wrap: wrap;
    padding-block: 14px;
    gap: 12px;
  }
  .nf-menu-toggle { display: inline-flex; }
  .nf-brand { min-width: 0; flex: 1; }
  .nf-brand-logo, .nf-brand img { width: 48px; height: 48px; }
  .nf-site-title { font-size: 18px; line-height: 1.2; }
  .nf-site-tagline { font-size: 13px; }

  .nf-primary-nav {
    display: none;
    order: 99;
    width: 100%;
    border-top: 1px solid var(--nf-line);
    padding-top: 8px;
    margin-top: 4px;
  }
  .nf-primary-nav.nf-open { display: block; }
  .nf-primary-nav .nf-nav {
    flex-direction: column;
    gap: 0;
  }
  .nf-primary-nav .nf-nav a {
    display: block;
    padding: 14px 12px;
    min-height: 44px;
    border-radius: 0;
    border-bottom: 1px solid var(--nf-line);
    font-size: 16px;
  }
  .nf-primary-nav .nf-nav li:last-child a { border-bottom: 0; }

  .nf-emergency-bar { font-size: 14px; }
  .nf-emergency-bar .nf-container { gap: 8px; padding-block: 10px; }
  .nf-emergency-sub { margin-left: 0; width: 100%; }

  .nf-hero { padding: 48px 0 40px; }
  .nf-hero-actions .nf-btn { flex: 1; text-align: center; }

  .nf-section        { padding: 40px 0; }
  .nf-quick-actions  { padding: 28px 0; }

  .nf-facts dl { grid-template-columns: 1fr; gap: 12px 24px; }
  .nf-facts dd { font-size: 18px; }

  .nf-footer-grid { padding-block: 36px; gap: 28px; }

  /* Prevent hero background image from causing horizontal scroll on very
     narrow screens where the gradient stretches. */
  .nf-hero { background-attachment: scroll; }
}

/* ---------- Very narrow phones ---------- */
@media (max-width: 380px) {
  .nf-container { padding-inline: 16px; }
  .nf-site-title { font-size: 17px; }
  .nf-brand { gap: 10px; }
  .nf-brand-logo, .nf-brand img { width: 42px; height: 42px; }
  .nf-hero-title { line-height: 1.15; }
}

/* ---------- Volunteer application form ---------- */
.nf-form { margin: 28px 0 0; }
.nf-form-note { font-size: 15px; color: var(--nf-muted); }

.nf-field { margin: 0 0 22px; padding: 0; border: 0; }
.nf-field > label,
.nf-field > legend {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 6px;
  padding: 0;
}
.nf-field input[type="text"],
.nf-field input[type="tel"],
.nf-field input[type="email"],
.nf-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #b9bcc2;
  border-radius: var(--nf-radius);
  font: inherit;
  color: var(--nf-ink);
  background: var(--nf-bg);
}
.nf-field textarea { resize: vertical; min-height: 90px; }
.nf-field input:focus-visible,
.nf-field textarea:focus-visible {
  outline: 3px solid var(--nf-focus);
  outline-offset: 1px;
  border-color: var(--nf-focus);
}
.nf-field-hint { display: block; margin-top: 6px; font-size: 14px; color: var(--nf-muted); }

/* Checkboxes and radios: generous hit area, label reads as one target. */
.nf-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-weight: 400;
  cursor: pointer;
  min-height: 32px;
}
.nf-choice input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--nf-red); }

/* Errors */
.nf-field-error input,
.nf-field-error textarea { border-color: var(--nf-red); border-width: 2px; }
.nf-field-msg { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--nf-red); }
.nf-form-errors {
  border: 2px solid var(--nf-red);
  border-radius: var(--nf-radius);
  background: #fdf3f3;
  padding: 16px 20px;
  margin: 0 0 24px;
}
.nf-form-errors p { margin: 0 0 8px; }
.nf-form-errors ul { margin: 0; padding-left: 20px; }
.nf-form-errors a { color: var(--nf-red-dark); }

/* Success */
.nf-form-success {
  border: 2px solid #1e7a3c;
  border-left-width: 6px;
  border-radius: var(--nf-radius);
  background: #f2f9f4;
  padding: 20px 24px;
  margin: 28px 0 0;
}
.nf-form-success h3 { margin: 0 0 8px; font-size: 20px; }
.nf-form-success p:last-child { margin-bottom: 0; }

/* Honeypot — off-screen for people, present for bots. */
.nf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nf-form button[type="submit"] { cursor: pointer; font-size: 17px; margin-top: 4px; }

@media (max-width: 560px) {
  .nf-form button[type="submit"] { width: 100%; }
}
