/* ── NBDTC SHARED STYLES ── */
:root {
  --navy:      #0a1f44;
  --navy-mid:  #12306b;
  --blue:      #1a4ba8;
  --red:       #c8102e;
  --red-dark:  #a50d24;
  --gold:      #d4a843;
  --off-white: #f4f2ed;
  --gray-lt:   #e8e5de;
  --gray-mid:  #9a9488;
  --text:      #1c1a17;
  --text-soft: #4a4640;
  --white:     #fafaf8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  padding-top: 102px; /* affiliate bar 34px + nav 68px */
}
/* When a sub-nav is present, JS adds this class to push content down */
body.has-subnav { padding-top: 142px; } /* +40px for sub-nav */

/* ── SUB-NAV ── */
.sub-nav {
  position: fixed; top: 102px; left: 0; right: 0; z-index: 90;
  height: 40px;
  background: var(--off-white);
  border-bottom: 2px solid var(--gray-lt);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sub-nav::-webkit-scrollbar { display: none; }
.subnav-links {
  display: flex; align-items: center;
  list-style: none;
  height: 100%;
  padding: 0 2rem;
  gap: 0;
  white-space: nowrap;
  max-width: 1100px; margin: 0 auto;
}
.subnav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0 1rem;
  height: 40px; line-height: 40px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
  display: inline-block;
}
.subnav-link:hover { color: var(--navy); }
.subnav-link.subnav-active {
  color: var(--navy);
  border-bottom-color: var(--red);
}
/* Scroll offset so anchors don't hide under fixed bars */
.anchor-target { scroll-margin-top: 150px; }

/* ── AFFILIATE BAR ── */
.affiliate-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 34px;
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  gap: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.06em;
}
.affiliate-bar span { color: rgba(255,255,255,0.4); }
.affiliate-bar a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color .15s; }
.affiliate-bar a:hover { color: var(--gold); }

/* ── NAV ── */
nav {
  position: fixed; top: 34px; left: 0; right: 0; z-index: 100;
  height: 68px;
  background: var(--navy);
  border-bottom: 3px solid var(--red);
  display: flex; align-items: center;
  padding: 0 2.5rem;
  gap: 1.5rem;
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-right: auto;
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: white; line-height: 1.25;
}

.nav-links {
  display: flex; align-items: center; gap: 0.15rem;
  list-style: none;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 3px;
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.nav-active {
  color: white;
  background: rgba(255,255,255,0.1);
}
.nav-links a.nav-active {
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
  padding-bottom: 0.3rem;
}

.nav-donate {
  background: var(--red);
  color: white !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 3px;
  transition: background .2s;
  white-space: nowrap;
}
.nav-donate:hover { background: var(--red-dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 2px; transition: all .2s;
}

/* Mobile nav */
@media (max-width: 860px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column; align-items: stretch;
    padding: 0.75rem 0; gap: 0;
    border-bottom: 3px solid var(--red);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 2rem; border-radius: 0; font-size: 0.9rem; }
  .nav-links a.nav-active { border-bottom: none; border-left: 3px solid var(--gold); padding-left: calc(2rem - 3px); }
}
@media (max-width: 500px) {
  nav { padding: 0 1.25rem; }
}

/* ── FOOTER ── */
footer {
  background: #060e1e;
  padding: 2.5rem 2rem;
  margin-top: 5rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 1.5rem;
}
.footer-brand span {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: white; line-height: 1.3;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem; font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  transition: color .15s;
}
.footer-links a:hover { color: white; }
.footer-bottom p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}
.footer-bottom a { color: var(--gold); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ── SHARED TYPOGRAPHY ── */
.page-header {
  background: var(--navy);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
}
.page-header .eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem;
}
.page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900; color: white;
  line-height: 1.1;
}
.page-header p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem; font-weight: 300;
  font-style: italic;
  max-width: 560px; margin: 0.75rem auto 0;
  line-height: 1.65;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.6rem;
}
.section-label.gold { color: var(--gold); }
.section-label.blue { color: var(--blue); }

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700; color: var(--navy);
  line-height: 1.15; margin-bottom: 1rem;
}
h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.5rem;
}

/* ── SHARED BUTTONS ── */
.btn-red {
  display: inline-block;
  background: var(--red); color: white;
  padding: 0.8rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-radius: 3px;
  transition: background .2s, transform .15s;
  border: none; cursor: pointer;
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-navy {
  display: inline-block;
  background: var(--navy); color: white;
  padding: 0.8rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-radius: 3px;
  transition: background .2s;
  border: none; cursor: pointer;
}
.btn-navy:hover { background: var(--blue); }

.btn-outline {
  display: inline-block;
  background: transparent; color: white;
  padding: 0.8rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-radius: 3px;
  border: 2px solid rgba(255,255,255,0.45);
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* ── LAYOUT HELPERS ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 2rem; }

/* ── FORM STYLES ── */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 0.35rem;
}
.form-group.light label { color: var(--gray-mid); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  padding: 0.7rem 0.9rem;
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  border-radius: 3px; outline: none;
  transition: border-color .2s;
}
.form-group.light input,
.form-group.light textarea {
  background: var(--off-white);
  border: 1px solid var(--gray-lt);
  color: var(--text);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group.light input:focus, .form-group.light textarea:focus { border-color: var(--blue); background: white; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group.light input::placeholder, .form-group.light textarea::placeholder { color: var(--gray-mid); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group select option { background: var(--navy); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; opacity: 0; }
.fade-up:nth-child(2) { animation-delay: 0.1s; }
.fade-up:nth-child(3) { animation-delay: 0.2s; }
.fade-up:nth-child(4) { animation-delay: 0.3s; }
