/* ===== CUSTOM PROPERTIES ===== */
:root {
  --primary: #1a3a6b;
  --primary-dark: #0f2548;
  --primary-light: #2a5298;
  --accent: #c9a84c;
  --accent-light: #e8d48b;
  --bg: #ffffff;
  --bg-alt: #f7f8fc;
  --text: #2c3e50;
  --text-secondary: #5a6d80;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(15, 37, 72, 0.10);
  --shadow-hover: 0 8px 32px rgba(15, 37, 72, 0.18);
  --transition: 0.3s ease;
  --max-width: 1100px;
  --nav-height: 64px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus { top: 8px; }

/* ===== UTILITIES ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section__label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 12px;
}
.section--alt { background: var(--bg-alt); }
.section__label--gold { color: var(--accent); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: 32px;
}
.section__title--white { color: #fff; }
.section__title--center { text-align: center; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}
.btn--gold:hover { background: var(--accent-light); box-shadow: 0 6px 24px rgba(201, 168, 76, 0.45); }
.btn--outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn--disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ===== INLINE LINK STYLES ===== */
.link--accent { color: var(--primary); font-weight: 600; }
.link--accent:hover { color: var(--accent); }

/* ===== SCROLL ANIMATIONS ===== */
.fade-target { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-target.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .fade-target { opacity: 1; transform: none; }
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(15, 37, 72, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.logo__dollar {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.logo__text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
}
.logo__spartan { height: 32px; width: auto; }
.nav__accent { color: var(--accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__links a {
  color: rgba(255,255,255,0.8);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: color var(--transition), background var(--transition);
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav__cta {
  background: var(--accent) !important;
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
}
.nav__cta:hover { background: var(--accent-light) !important; }
.nav__toggle {
  display: none;
  color: #fff;
  padding: 8px;
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(15, 37, 72, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }
  .nav--open .nav__links {
    max-height: 300px;
    padding: 16px 0;
  }
  .nav__links a { padding: 12px 24px; width: 100%; border-radius: 0; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 120px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(42, 82, 152, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; max-width: 720px; }
.hero__badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 50px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp 0.7s ease both;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeUp 0.7s ease 0.15s both;
}
.hero__highlight { color: var(--accent); }
.hero__subtitle {
  color: rgba(255,255,255,0.8);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.8;
  margin-bottom: 36px;
  animation: fadeUp 0.7s ease 0.3s both;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.45s both;
}
.hero__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== ABOUT ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.about__text p { margin-bottom: 16px; color: var(--text-secondary); }
.about__text p:first-child { color: var(--text); }
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-card__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.stat-card__label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .about__grid { grid-template-columns: 1.2fr 1fr; gap: 56px; }
}

/* ===== FOUNDERS ===== */
.founders__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.founders__photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.founders__intro {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 24px;
}
.founders__names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.founders__names li {
  padding: 10px 16px;
  border-left: 3px solid var(--accent);
  font-size: 15px;
  color: var(--text-secondary);
}
.founders__names strong { color: var(--text); font-weight: 700; }
@media (min-width: 768px) {
  .founders__wrap { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* ===== HOW IT WORKS ===== */
.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.step { text-align: center; max-width: 280px; }
.step__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  color: var(--primary);
}
.step__number {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.step__desc { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.steps__connector {
  color: var(--accent);
  transform: rotate(90deg);
}
@media (min-width: 768px) {
  .steps { flex-direction: row; justify-content: center; gap: 24px; }
  .steps__connector { transform: none; }
}

/* ===== WAYS TO HELP (CARDS) ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-image: linear-gradient(to right, var(--primary), var(--accent)) 1;
}
.card--primary { border-top: 3px solid var(--accent); }
.card__icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 20px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.card__desc { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.card__link {
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  transition: color var(--transition);
}
.card__link:hover { color: var(--accent); }
.card__link[role="button"] { cursor: pointer; }
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* ===== DONATE ===== */
.donate {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.donate::before {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(42, 82, 152, 0.3) 0%, transparent 70%);
  pointer-events: none;
}
.donate .container { position: relative; z-index: 1; }
.donate__subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 560px;
  margin: -16px auto 40px;
  line-height: 1.8;
}

/* Progress bar */
.progress {
  max-width: 480px;
  margin: 0 auto 40px;
}
.progress__labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
}
.progress__raised { color: var(--accent); font-weight: 700; }
.progress__goal { color: rgba(255,255,255,0.7); }
.progress__track {
  height: 14px;
  background: rgba(255,255,255,0.13);
  border-radius: 7px;
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  border-radius: 7px;
  transition: width 1.5s ease;
}
.progress__percent {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-top: 8px;
}

/* Donorbox placeholder */
.donate__embed {
  max-width: 520px;
  margin: 0 auto;
}
.donate__placeholder {
  border: 2px dashed rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 40px 24px;
}
.donate__placeholder p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  font-size: 15px;
}

/* ===== FAQ ===== */
.faq__list { max-width: 720px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid #e8ecf1;
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { display: none; content: ''; }
.faq__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #d0d7e0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 1px;
}
.faq__icon::before { width: 12px; height: 2px; }
.faq__icon::after { width: 2px; height: 12px; transition: transform var(--transition); }
.faq__item[open] .faq__icon { border-color: var(--accent); }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); }
.faq__answer {
  padding: 0 0 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.faq__answer p + p { margin-top: 12px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  padding: 48px 0 32px;
  text-align: center;
}
.footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer__logo .logo__dollar { font-size: 1.6rem; }
.footer__logo .logo__text { font-size: 10px; }
.footer__logo .logo__spartan { height: 26px; width: auto; }
.footer__tagline {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  margin-bottom: 8px;
}
.footer__email { margin-bottom: 24px; }
.footer__email a {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  transition: color var(--transition);
}
.footer__email a:hover { color: var(--accent-light); }
.footer__rule {
  border: none;
  height: 1px;
  background: var(--accent);
  max-width: 80px;
  margin: 0 auto 24px;
  opacity: 0.5;
}
.footer__copy {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
}

/* ===== FOCUS STYLES ===== */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nav__links a:focus-visible, .btn:focus-visible { outline-offset: 2px; }
