/* ==========================================================================
   Rugged Cross Foundation, style.css
   Palette: deep navy / ivory / antique gold
   ========================================================================== */

:root {
  --navy-900: #0b1626;
  --navy-800: #0f1e33;
  --navy-700: #16283f;
  --navy-600: #21354f;
  --ivory: #f7f4ec;
  --ivory-soft: #efeadd;
  --white: #fdfcf9;
  --gold: #b08d3e;
  --gold-bright: #c9a227;
  --gold-soft: #d9c48a;
  --ink: #1d2634;
  --ink-soft: #4a5568;
  --line-light: rgba(15, 30, 51, 0.12);
  --line-dark: rgba(247, 244, 236, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation: none !important; }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.container.narrow { width: min(720px, 92%); }

.gold { color: var(--gold-bright); }

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 22, 38, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.site-header.scrolled {
  background: rgba(11, 22, 38, 0.92);
  border-bottom-color: var(--line-dark);
}

.header-inner {
  width: min(1200px, 94%);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ivory);
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.brand-name em {
  display: block;
  font-style: normal;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--ivory);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  opacity: 0.85;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav-link:hover { opacity: 1; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-link.active { color: var(--gold-soft); opacity: 1; }

/* Hamburger */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ivory);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 4rem) 1.5rem 6rem;
  color: var(--ivory);
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(176, 141, 62, 0.16), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(33, 53, 79, 0.9), transparent 65%),
    linear-gradient(168deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(247, 244, 236, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 860px;
}

.hero-kicker {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.6rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
}

.hero-lede {
  max-width: 640px;
  margin-inline: auto;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  color: rgba(247, 244, 236, 0.82);
  margin-bottom: 2.6rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-900);
}

.btn-gold:hover { background: var(--gold-bright); }

.btn-ghost {
  border: 1px solid rgba(247, 244, 236, 0.45);
  color: var(--ivory);
}

.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  color: rgba(247, 244, 236, 0.55);
  animation: cue-bob 2.6s ease-in-out infinite;
}

.scroll-cue:hover { color: var(--gold-soft); }

@keyframes cue-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.section-light { background: var(--white); color: var(--ink); }

.section-light:nth-of-type(odd) { background: var(--ivory); }

.section-navy {
  background:
    radial-gradient(900px 480px at 90% 0%, rgba(176, 141, 62, 0.1), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--ivory);
}

.section-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.section-navy .section-kicker { color: var(--gold-soft); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 1.4rem;
  max-width: 22ch;
}

.section-lede {
  max-width: 640px;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: 3rem;
}

.section-navy .section-lede { color: rgba(247, 244, 236, 0.78); }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: 2.5rem;
  align-items: start;
}

.about-copy p { margin-bottom: 1.3rem; color: var(--ink-soft); }

.about-copy p:last-child { margin-bottom: 0; }

.pull-line {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--navy-800) !important;
  border-left: 2px solid var(--gold);
  padding-left: 1.3rem;
  margin-top: 2rem;
}

.about-objects {
  background: var(--navy-800);
  color: var(--ivory);
  padding: 2.4rem 2.2rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.about-objects::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(176, 141, 62, 0.28), transparent 70%);
}

.about-objects h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
  color: var(--gold-soft);
}

.objects-list { list-style: none; }

.objects-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(247, 244, 236, 0.85);
}

.objects-list li strong { color: var(--ivory); font-weight: 500; }

.objects-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: 0.8rem;
}

/* Values band */

.values-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-light);
}

.value h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--navy-800);
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 0.7rem;
}

.value h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.value p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Giving ---------- */

.giving-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-top: 1rem;
}

.giving-step {
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 2rem 1.7rem;
  background: rgba(247, 244, 236, 0.03);
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out), background 0.35s ease;
}

.giving-step:hover {
  border-color: rgba(176, 141, 62, 0.55);
  background: rgba(176, 141, 62, 0.06);
  transform: translateY(-4px);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 1rem;
}

.giving-step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.giving-step p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(247, 244, 236, 0.75);
}

/* ---------- Board ---------- */

.board-anon {
  max-width: 720px;
  border-left: 2px solid var(--gold);
  padding-left: clamp(1.4rem, 3vw, 2.2rem);
}

.board-anon p {
  color: var(--ink-soft);
  margin-bottom: 1.3rem;
}

.board-anon p:last-child { margin-bottom: 0; }

.board-anon a {
  color: var(--navy-800);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color 0.25s ease;
}

.board-anon a:hover { color: var(--gold); }

/* ---------- Charities ---------- */

.charity-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.charity-group {
  border-top: 2px solid var(--gold);
  padding-top: 1.4rem;
}

.charity-group h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}

.charity-group ul { list-style: none; }

.charity-group li {
  font-size: 0.93rem;
  font-weight: 300;
  color: rgba(247, 244, 236, 0.85);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(247, 244, 236, 0.08);
}

.charity-group li:last-child { border-bottom: 0; }

.charity-group li a {
  text-decoration: none;
  transition: color 0.25s ease;
}

.charity-group li a:hover { color: var(--gold-soft); }

/* ---------- Contact ---------- */

#contact { text-align: center; }

#contact .section-title,
#contact .section-lede { margin-inline: auto; }

.contact-card {
  margin-top: 1rem;
  display: inline-block;
  padding: 2.6rem 3.4rem;
  background: var(--navy-800);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(480px 200px at 80% -20%, rgba(176, 141, 62, 0.22), transparent 65%);
}

.contact-mail {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 196, 138, 0.4);
  padding-bottom: 4px;
  transition: color 0.25s ease, border-color 0.25s ease;
  word-break: break-all;
}

.contact-mail:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

.contact-note {
  position: relative;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.55);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: var(--ivory);
  padding: 3.5rem 0 3rem;
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  text-align: center;
}

.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }

.footer-brand .brand-mark { width: 26px; height: 26px; }

.footer-brand p {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.5;
}

.footer-brand p span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.5);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
}

.footer-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(247, 244, 236, 0.65);
  transition: color 0.25s ease;
}

.footer-nav a:hover { color: var(--gold-soft); }

.footer-reg {
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: rgba(247, 244, 236, 0.5);
}

.footer-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(247, 244, 236, 0.6);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .giving-grid, .charity-groups { grid-template-columns: repeat(2, 1fr); }
  .values-band { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.4rem; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(11, 22, 38, 0.98);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.5rem 0 1rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.3s ease, visibility 0.3s;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.95rem 0;
  }

  .site-nav .nav-link::after { display: none; }
}

@media (max-width: 560px) {
  .giving-grid, .charity-groups, .values-band { grid-template-columns: 1fr; }
  .contact-card { padding: 2.2rem 1.6rem; width: 100%; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* ---------- PBO verification link + clipboard toast ---------- */

.pbo-link {
  color: rgba(247, 244, 236, 0.75);
  text-decoration: none;
  border-bottom: 1px dotted rgba(217, 196, 138, 0.55);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.pbo-link:hover {
  color: var(--gold-soft);
  border-bottom-style: solid;
  border-color: var(--gold-soft);
}

.pbo-toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%) translateY(8px);
  z-index: 200;
  background: rgba(11, 22, 38, 0.96);
  border: 1px solid rgba(217, 196, 138, 0.5);
  color: var(--gold-soft);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pbo-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
