/* ========================================================================
   TwoSoldiers.org — Shared Design System
   Linked by all pages: index.html, visionary.html, partner.html, contact.html
   ======================================================================== */

:root {
  /* Backgrounds */
  --night: #1A1014;
  --night-deep: #120B0E;
  --espresso: #2C1810;

  /* Burgundy — brand color */
  --cherry: #6B1E2E;
  --cherry-bright: #C84462;
  --cherry-glow: #E85574;

  /* Text — pure white for body, reserved softness for meta only */
  --text-primary: #FFFFFF;
  --text-strong: #FFFFFF;
  --text-body: #FFFFFF;
  --text-warm: #F5EBE0;
  --text-soft: #CFC0B8;
  --text-quiet: #9A8B83;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--text-body);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--cherry-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cherry-glow); }

/* ============ NAV ============ */
/* Default: visible sticky nav (used by visionary/partner/contact)
   Homepage overrides this with .nav.nav-hidden-initial */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18, 11, 14, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(178, 58, 80, 0.3);
  padding: 1rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em; text-decoration: none;
}
.nav-logo span { color: var(--cherry-bright); }
.nav-links { display: flex; gap: 0.25rem; align-items: center; flex-wrap: wrap; }
.nav-link {
  color: var(--text-soft);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.55rem 1rem; text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--cherry-bright); }
.nav-donate {
  background: var(--cherry); color: #FFFFFF;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.7rem 1.3rem; border-radius: 2px;
  text-decoration: none; margin-left: 0.5rem;
  transition: background 0.2s;
}
.nav-donate:hover { background: var(--cherry-bright); color: #FFFFFF; }

/* Hidden-initial variant for homepage video-first layout */
.nav-hidden-initial {
  position: fixed; left: 0; right: 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.nav-hidden-initial.nav-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ============ SHARED CONTAINERS ============ */
.container { max-width: 1180px; margin: 0 auto; position: relative; z-index: 2; }
.container-narrow { max-width: 760px; margin: 0 auto; position: relative; z-index: 2; }

/* ============ SHARED TYPOGRAPHY ============ */
.eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--cherry-bright);
  margin-bottom: 2rem; text-align: center;
}

.page-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.1;
  color: var(--text-primary);
  text-align: center; margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.page-headline em { font-style: italic; font-weight: 400; color: var(--text-body); }

.page-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  text-align: center; color: var(--text-body);
  margin: 0 auto 0;
  max-width: 700px; line-height: 1.55;
}

.section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cherry-bright);
  margin-bottom: 1.25rem;
}

.section-head {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 700; line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.body-text {
  font-family: 'Barlow', sans-serif;
  font-size: 1.05rem; font-weight: 400;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 1.4rem;
}
.body-text strong { color: var(--text-primary); font-weight: 600; }
.body-text em { font-style: italic; color: var(--text-primary); }

.pull-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.55; color: var(--text-primary);
  padding: 0.5rem 0 0.5rem 1.75rem;
  border-left: 3px solid var(--cherry-bright);
  margin: 2rem 0 2.5rem;
}

.divider-thin {
  width: 60px; height: 1px;
  background: var(--cherry-bright);
  margin: 1.5rem auto;
  opacity: 0.7;
}

/* ============ SHARED SECTIONS ============ */
.section {
  padding: 6rem 2rem;
}
.section-dark { background: var(--night-deep); }
.section-espresso { background: var(--espresso); }

.page-hero {
  padding: 6rem 2rem 4rem;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(178, 58, 80, 0.14), transparent 60%),
    var(--night);
  text-align: center;
}

/* ============ PSALM (shared across pages) ============ */
.psalm {
  padding: 7rem 2rem;
  background: var(--espresso);
  text-align: center;
  position: relative;
}
.psalm::before, .psalm::after {
  content: ''; position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--cherry-bright); opacity: 0.7;
}
.psalm::before { top: 3rem; }
.psalm::after { bottom: 3rem; }
.psalm-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 400; line-height: 1.5;
  color: var(--text-primary);
  max-width: 820px; margin: 0 auto 1.5rem;
}
.psalm-ref {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--cherry-bright);
}

/* ============ CTA BUTTONS ============ */
.btn-primary {
  display: inline-block;
  background: var(--cherry); color: #FFFFFF;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1.3rem 2.8rem; text-decoration: none;
  border: none; border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: var(--cherry-bright);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(178, 58, 80, 0.5);
}

.btn-ghost {
  display: inline-block;
  background: transparent; color: var(--text-primary);
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1.2rem 2.6rem; text-decoration: none;
  border: 2px solid var(--cherry-bright);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover {
  background: var(--cherry-bright);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ============ FORM ELEMENTS ============ */
.form-group { margin-bottom: 1rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-label {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cherry-bright);
  margin-bottom: 0.5rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--espresso);
  border: 1px solid rgba(178, 58, 80, 0.4);
  color: var(--text-primary);
  padding: 0.95rem 1.1rem;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  border-radius: 3px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-soft); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--cherry-bright); }
.form-textarea { min-height: 140px; resize: vertical; font-family: 'Barlow', sans-serif; line-height: 1.6; }
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23C84462'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.75rem;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--night-deep);
  padding: 3rem 2rem 2.5rem;
  border-top: 1px solid rgba(178, 58, 80, 0.25);
  text-align: center;
}
.footer-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 1.1rem;
  color: var(--text-body); margin-bottom: 1rem;
}
.footer-meta {
  font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--text-soft);
}
.footer-meta a { color: var(--cherry-bright); }
.footer-meta a:hover { color: var(--cherry-glow); }

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .nav { padding: 0.85rem 1rem; }
  .nav-links { justify-content: center; }
  .nav-link { padding: 0.45rem 0.65rem; font-size: 0.66rem; letter-spacing: 0.12em; }
  .nav-donate { font-size: 0.66rem; padding: 0.55rem 0.95rem; }
  .page-hero { padding: 4rem 1.25rem 3rem; }
  .section { padding: 4.5rem 1.25rem; }
  .psalm { padding: 5rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .pull-quote { padding-left: 1.25rem; }
}
