/* ============================================================
   DD-214 Project — Clean Rebuild
   ============================================================ */

/* Google Fonts are loaded via <link> in each page's <head> for non-blocking render */

:root {
  --navy:     #0a1628;
  --navy-mid: #122040;
  --gold:     #c9a84c;
  --gold-lt:  #e8c96a;
  --red:      #991b1b;
  --white:    #f8f7f4;
  --gray:     #e4e2dc;
  --text:     #2d3748;
  --muted:    #6b7280;
  --radius:   6px;
  --shadow:   0 2px 16px rgba(10,22,40,0.12);
  --trans:    0.2s ease;
}

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

/* Accessibility: visually hidden but exposed to screen readers (for SEO h1 etc.) */
.sr-only-h1 {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a   { color: var(--gold); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--gold-lt); }
h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}
.container { width: 92%; max-width: 1100px; margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.btn-gold    { background: var(--gold);        color: var(--navy); border-color: var(--gold); }
.btn-gold:hover  { background: var(--gold-lt); border-color: var(--gold-lt); color: var(--navy); }
.btn-outline { background: transparent;        color: var(--gold); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold);  color: var(--navy); }
.btn-white   { background: var(--white);       color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: var(--gold);    border-color: var(--gold); color: var(--navy); }
.btn-red     { background: var(--red);         color: #fff;        border-color: var(--red); }
.btn-red:hover  { background: #7f1d1d;         border-color: #7f1d1d; }
.btn-lg      { font-size: 1.1rem; padding: 16px 40px; }

/* ── Navbar ── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-brand:hover { color: var(--gold); }
.nav-brand .star { color: var(--gold); font-size: 1.3rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 7px 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.78);
  border-radius: var(--radius);
  transition: color var(--trans), background var(--trans);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); background: rgba(201,168,76,0.1); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }
#mobile-nav { display: none; background: var(--navy-mid); border-top: 1px solid rgba(201,168,76,0.2); }
#mobile-nav.open { display: block; }
#mobile-nav a {
  display: block;
  padding: 13px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
#mobile-nav a:hover { color: var(--gold); background: rgba(201,168,76,0.07); }

/* ── Hero ── */
#hero { display: block; line-height: 0; }
.hero-img { width: 100%; height: auto; display: block; }
.hero-btns-wrap {
  background: var(--navy);
  padding: 24px 0;
  border-bottom: 3px solid var(--gold);
  text-align: center;
}
.hero-btns-inner { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ── Services ── */
#services { padding: 64px 0; text-align: center; }
.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.gold-bar { width: 44px; height: 3px; background: var(--gold); border-radius: 2px; margin: 0 auto 32px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  border: 1px solid var(--gray);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  background: var(--white);
  transition: box-shadow var(--trans), transform var(--trans);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.service-card h3    { font-size: 1.05rem; margin-bottom: 7px; }
.service-card p     { font-size: 0.88rem; color: var(--muted); }

/* ── Crisis Bar ── */
#crisis { background: var(--navy-mid); padding: 28px 0; border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }
.crisis-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.crisis-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.crisis-icon {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
}
.crisis-text h3 { font-size: 1.25rem; color: var(--gold); margin-bottom: 4px; }
.crisis-text p  { font-size: 1rem; color: rgba(248,247,244,0.85); }
.crisis-btns    { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Mission home block ── */
#mission-home { background: var(--gray); padding: 56px 0; }
.mission-home-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.mission-goal,
.mission-statement { text-align: center; }
.mission-goal h3    { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 4px; }
.mission-goal p     { font-size: 0.97rem; color: var(--text); line-height: 1.75; }
.mission-statement h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.mission-statement p  { font-size: 0.97rem; color: var(--text); line-height: 1.75; }
.mission-goal .gold-bar,
.mission-statement .gold-bar { margin-left: auto; margin-right: auto; margin-top: 10px; margin-bottom: 16px; }

/* ── Contact home block ── */
#contact-home { background: var(--navy); padding: 56px 0; }
.contact-home-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-home-text,
.contact-home-info,
.contact-home-links { text-align: center; }
.contact-home-text h2 { color: var(--white); font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 8px; }
.contact-home-text p  { color: rgba(248,247,244,0.75); font-size: 0.93rem; margin-bottom: 10px; line-height: 1.65; }
.contact-home-text .gold-bar,
.contact-home-info .gold-bar,
.contact-home-links .gold-bar { margin-left: auto; margin-right: auto; margin-bottom: 16px; }
.contact-home-info h3,
.contact-home-links h3 { color: var(--gold); font-size: 1rem; margin-bottom: 16px; font-family: 'Oswald', sans-serif; letter-spacing: 0.05em; text-transform: uppercase; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; align-items: center; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: rgba(248,247,244,0.78); justify-content: center; }
.contact-list li span { flex-shrink: 0; font-size: 1rem; margin-top: 2px; }
.contact-list a { color: rgba(248,247,244,0.78); }
.contact-list a:hover { color: var(--gold); }

.social-icons { display: flex; gap: 12px; justify-content: center; }
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(248,247,244,0.7);
  transition: background var(--trans), color var(--trans);
}
.social-icons a:hover { background: var(--gold); color: var(--navy); }

.contact-links-block { display: flex; flex-direction: column; align-items: center; }
.contact-links-block a { color: rgba(248,247,244,0.65); font-size: 0.9rem; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.07); width: 100%; text-align: center; }
.contact-links-block a:last-child { border-bottom: none; }
.contact-links-block a:hover { color: var(--gold); }

/* ── Footer ── */
#footer {
  background: var(--navy);
  padding: 32px 0;
  border-top: 3px solid var(--gold);
  text-align: center;
}
.footer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-left .brand {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}
.footer-left .copy { font-size: 0.78rem; color: rgba(248,247,244,0.45); margin-top: 3px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.8rem; color: rgba(248,247,244,0.5); }
.footer-links a:hover { color: var(--gold); }

/* ── Inner page header ── */
.page-header {
  background: var(--navy);
  padding: 44px 0 36px;
  border-bottom: 3px solid var(--gold);
}
.page-header h1 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-header p  { color: rgba(248,247,244,0.65); margin-top: 8px; font-size: 0.95rem; }

/* ── Page body ── */
.page-body { padding: 56px 0; }

/* ── Mission page ── */
.mission-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.mission-main p  { margin-bottom: 16px; font-size: 0.97rem; line-height: 1.78; }
.mission-main h3 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--navy); }
.mission-main h3:first-child { margin-top: 0; }
.founder-sig {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--gray);
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}
.founder-sig strong { display: block; color: var(--navy); font-size: 1rem; margin-bottom: 2px; }
.mission-btns { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.mission-sidebar {}
.sidebar-card {
  background: var(--gray);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.sidebar-card h3 { font-size: 1.1rem; }
.sidebar-list {
  list-style: none;
}
.sidebar-list li {
  padding: 7px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.sidebar-list li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.sidebar-list li:last-child { border-bottom: none; }

/* In-content bulleted lists (article body) */
.content-list { list-style: none; margin: 12px 0 18px; }
.content-list li {
  padding: 6px 0 6px 22px;
  font-size: 0.98rem;
  position: relative;
  line-height: 1.6;
}
.content-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--gold);
  font-size: 0.8em;
}

/* ── Donate page ── */
.donate-stats-bar {
  background: var(--navy-mid);
  border-bottom: 3px solid var(--gold);
  padding: 0;
}
.donate-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.donate-stat {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.donate-stat:last-child { border-right: none; }
.donate-stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.donate-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.6);
  margin-top: 4px;
}

.donate-top-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}
.donate-sidebar {}
.donate-copy h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.donate-lead {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.donate-copy p { font-size: 0.97rem; line-height: 1.75; margin-bottom: 14px; }
.donate-quote {
  background: var(--navy);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.donate-quote p {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  color: var(--white);
  font-style: italic;
  margin: 0 0 6px;
  line-height: 1.4;
}
.donate-quote span { font-size: 0.82rem; color: var(--gold); }

.donate-tiers-section { margin-bottom: 40px; scroll-margin-top: 80px; }
.tiers-heading { font-size: clamp(1.5rem, 2.5vw, 2rem); text-align: center; }

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tier-card {
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  transition: box-shadow var(--trans), transform var(--trans);
  position: relative;
}
.tier-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tier-card.featured-tier { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.tier-featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  z-index: 1;
}
.tier-img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
}
.tier-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.tier-amount {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 4px 14px;
  border-top-right-radius: var(--radius);
}
.tier-body {
  padding: 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tier-body h3 { font-size: 1rem; margin-bottom: 8px; }
.tier-body p  { font-size: 0.86rem; color: var(--muted); flex: 1; margin-bottom: 16px; line-height: 1.6; }

.paypal-btn {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 11px 16px;
}
.paypal-btn span { font-size: 0.9rem; }
.paypal-btn small { font-size: 0.7rem; opacity: 0.75; font-family: 'Source Sans 3', sans-serif; text-transform: none; letter-spacing: 0; font-weight: 400; }
.tax-box {
  margin-top: 32px;
  padding: 16px 20px;
  background: #fdf8ec;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.88rem;
}

/* ── State cards ── */
.states-section { margin-top: 56px; }
.states-section h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.states-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 24px;
}
.state-card {
  display: block;
  text-align: center;
  padding: 12px 6px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: background var(--trans), color var(--trans), border-color var(--trans);
  text-decoration: none;
}
.state-card:hover { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.state-card.home-state { border: 2px solid var(--gold); }
.state-abbr { font-family: 'Oswald', sans-serif; font-size: 1.05rem; font-weight: 700; display: block; }
.state-name { font-size: 0.68rem; display: block; color: var(--muted); margin-top: 2px; line-height: 1.2; }
.state-card:hover .state-name { color: rgba(248,247,244,0.65); }
@media (max-width: 860px) { .states-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .states-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── VA Links page ── */
.va-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.va-card {
  border: 1px solid var(--gray);
  border-bottom: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: box-shadow var(--trans);
}
.va-card:hover { box-shadow: var(--shadow); }
.va-card .icon { font-size: 1.8rem; }
.va-card h3    { font-size: 0.98rem; }
.va-card p     { font-size: 0.85rem; color: var(--muted); flex: 1; }
.va-card a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  width: fit-content;
}
.va-card a:hover { color: var(--gold); }
/* Full-width "Find facilities" tile sits below the 6 link cards as a feature row */
.va-card-center {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.va-card-center .icon { font-size: 2.4rem; }
.va-card-center h3    { font-size: 1.05rem; margin-bottom: 2px; }
.va-card-center p     { flex: 1; margin: 0; }
.va-card-center .state-select { max-width: 320px; margin: 0; flex-shrink: 0; }
@media (max-width: 860px) {
  .va-card-center { flex-direction: column; align-items: stretch; }
  .va-card-center .state-select { max-width: none; }
}
.state-select {
  width: 100%;
  margin-top: auto;
  padding: 10px 12px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  appearance: auto;
}

/* ── Page banner (skinny image below header) ── */
.page-banner {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* ── Request page layout ── */
.request-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}
.request-sidebar {
  display: flex;
  flex-direction: column;
}
.request-sidebar .sidebar-card {
  flex: 1;
}
.request-form h3 { font-size: 1.2rem; color: var(--navy); }

.form-anchor {
  background: var(--navy);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 18px 24px 14px;
  text-align: center;
}
.form-anchor h3 {
  color: var(--white);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  margin: 0;
}
/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .services-grid      { grid-template-columns: 1fr 1fr; }
  .donate-stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .donate-top-layout  { grid-template-columns: 1fr; }
  .donate-sidebar     { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .donate-sidebar .sidebar-card { margin-top: 0 !important; }
  .tiers-grid         { grid-template-columns: repeat(2, 1fr); }
  .va-grid            { grid-template-columns: 1fr 1fr; }
  .mission-home-grid  { grid-template-columns: 1fr; gap: 32px; }
  .mission-layout     { grid-template-columns: 1fr; }
  .mission-sidebar    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .mission-sidebar .sidebar-card { margin-top: 0 !important; }
  .request-layout     { grid-template-columns: 1fr; }
  .request-sidebar    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .request-sidebar .sidebar-card { margin-top: 0 !important; }
  .contact-home-wrap  { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-home-text  { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle           { display: flex; }
  .services-grid        { grid-template-columns: 1fr; }
  .va-grid              { grid-template-columns: 1fr; }
  .tiers-grid           { grid-template-columns: 1fr; }
  .donate-stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .donate-sidebar       { grid-template-columns: 1fr; }
  .mission-sidebar      { grid-template-columns: 1fr; }
  .request-sidebar      { grid-template-columns: 1fr; }
  .page-banner          { height: 140px; }
  .crisis-wrap          { flex-direction: column; text-align: center; }
  .crisis-btns          { justify-content: center; }
  .footer-wrap          { flex-direction: column; text-align: center; }
  .footer-links         { justify-content: center; }
  .hero-btns-inner      { flex-direction: column; }
  .contact-home-wrap    { grid-template-columns: 1fr; }
}
