/* =============================================
   EASY-TO-EDIT SITE VARIABLES
   Change these to update the whole site!
============================================= */
:root {
  --navy:        #080b1a;   /* Deep space background */
  --navy-mid:    #0e1530;   /* Slightly lighter navy */
  --navy-light:  #161e3f;   /* Card/section backgrounds */
  --purple:      #3d2b6b;   /* Nebula purple */
  --gold:        #e8c87a;   /* Star gold accent */
  --gold-dim:    #a8874a;
  --silver:      #c8d4e8;   /* Moonlight silver text */
  --white:       #ffffff;
  --mid:         #8a99bc;   /* Secondary text */
  --glow-purple: rgba(120, 80, 220, 0.35);
  --glow-gold:   rgba(232, 200, 122, 0.25);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --radius: 6px;
  --max-w: 1100px;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--silver);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Starfield canvas sits behind everything */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* All content sits above starfield */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* =============================================
   UTILITY
============================================= */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--navy-light); }
.section--mid  { background: var(--navy-mid); }
.section--purple { background: var(--purple); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.lead {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 640px;
  line-height: 1.75;
}

.divider {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 0 20px var(--glow-gold);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 0 16px var(--glow-gold);
}
.btn-ghost {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

/* =============================================
   HEADER / NAV
============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 26, 0.88);
  border-bottom: 1px solid rgba(232, 200, 122, 0.15);
  backdrop-filter: blur(12px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo img { height: 42px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-star { color: var(--gold); font-size: 0.6rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--silver);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta { margin-left: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--silver); transition: all 0.3s;
}
.mobile-menu {
  display: none;
  background: var(--navy-mid);
  border-top: 1px solid rgba(232,200,122,0.1);
  padding: 1.5rem 2rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu a { font-size: 1rem; color: var(--silver); }
.mobile-menu .btn { margin-top: 1rem; width: 100%; text-align: center; display: block; }

/* =============================================
   HERO
============================================= */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  text-align: center;
}
/* Nebula glows */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 20% 60%, rgba(80,40,160,0.45) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(20,60,120,0.5) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 50% 90%, rgba(232,200,122,0.1) 0%, transparent 60%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--white);
  line-height: 1.1;
  max-width: 820px;
  font-weight: 200;
}
.hero h1 .title-outline {
  display: block;
  font-family: 'oskar-inline', sans-serif;
  font-weight: 400;
  -webkit-text-stroke: 2px var(--white);
  color: transparent;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  filter: drop-shadow(0 0 14px rgba(200, 212, 232, 0.5)) drop-shadow(0 0 32px rgba(120, 80, 220, 0.3));
}
.hero h1 .title-the {
  display: block;
  font-family: 'oskar-inline', sans-serif;
  font-size: 0.38em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  -webkit-text-stroke: 2px var(--white);
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(200, 212, 232, 0.5)) drop-shadow(0 0 32px rgba(120, 80, 220, 0.3));
  margin-bottom: 0.1em;
}
.hero h1 em {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
  font-weight: 400;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--mid);
  letter-spacing: 0.03em;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 520px;
  line-height: 1.7;
}
.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(232,200,122,0.1);
  border: 1px solid rgba(232,200,122,0.3);
  border-radius: 50px;
  padding: 0.55rem 1.4rem;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}
.hero-date-badge .star-dot { color: var(--gold); font-size: 0.55rem; }
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}
/* Shooting star decoration */
.shooting-star {
  position: absolute;
  width: 2px;
  height: 80px;
  background: linear-gradient(180deg, var(--gold), transparent);
  border-radius: 2px;
  animation: shoot 6s ease-in-out infinite;
  opacity: 0;
}
.shooting-star:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; transform: rotate(-30deg); }
.shooting-star:nth-child(2) { top: 20%; right: 20%; animation-delay: 2.5s; transform: rotate(-45deg); }
.shooting-star:nth-child(3) { top: 5%; left: 60%; animation-delay: 4s; transform: rotate(-25deg); }
@keyframes shoot {
  0%   { opacity: 0; transform: rotate(-30deg) translateY(0); }
  10%  { opacity: 1; }
  40%  { opacity: 0; transform: rotate(-30deg) translateY(120px); }
  100% { opacity: 0; transform: rotate(-30deg) translateY(120px); }
}

/* =============================================
   GOAL PROGRESS
============================================= */
.givebutter-wrap {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(120,80,220,0.25), 0 4px 32px rgba(0,0,0,0.4);
}

givebutter-widget {
  display: block;
  width: 100%;
  min-height: 80px;
}

/* =============================================
   EVENT DETAILS
============================================= */
.details-grid {
  display: grid;
  gap: 1rem;
}
.details-featured {
  grid-template-columns: repeat(4, 1fr);
}
.details-supporting {
  grid-template-columns: repeat(4, 1fr);
}
.detail-card {
  background: var(--navy-light);
  border: 1px solid rgba(232,200,122,0.12);
  border-radius: 10px;
  text-align: center;
  color: inherit;
  text-decoration: none;
}
.detail-card--featured {
  padding: 2rem 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.detail-card--featured:hover {
  border-color: rgba(232,200,122,0.45);
  box-shadow: 0 0 24px rgba(232,200,122,0.12);
  transform: translateY(-3px);
  cursor: pointer;
}
.detail-card--supporting {
  padding: 1.25rem 1rem;
  border-color: rgba(232,200,122,0.07);
  background: rgba(22,30,63,0.5);
}
.detail-icon { margin-bottom: 0.75rem; }
.detail-card--featured h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.detail-card--featured p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.55;
}
.detail-card--supporting h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--silver);
  margin-bottom: 0.3rem;
  opacity: 0.8;
}
.detail-card--supporting p {
  font-size: 0.78rem;
  color: var(--mid);
  line-height: 1.5;
  opacity: 0.7;
}
@media (max-width: 700px) {
  .details-featured { grid-template-columns: repeat(2, 1fr); }
  .details-supporting { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .details-featured { grid-template-columns: 1fr 1fr; }
  .details-supporting { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   WAYS TO HELP
============================================= */
.ways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.way-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,200,122,0.15);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s, border-color 0.2s;
}
.way-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(232,200,122,0.3);
}
.way-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--white);
}
.way-card p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  flex: 1;
}

/* =============================================
   DONORS TICKER
============================================= */
.ticker-section { padding: 2.5rem 0; background: var(--navy-mid); }
.ticker-label {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.ticker-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 35s linear infinite;
  width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--silver);
  padding: 0 2rem;
}
.ticker-sep {
  color: var(--gold);
  opacity: 0.5;
  font-size: 0.5rem;
  align-self: center;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   MISSION SPLIT
============================================= */
.mission-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  text-align: center;
  background: var(--navy-mid);
}
.mission-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(80, 40, 160, 0.45) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 75% 50%, rgba(20, 60, 130, 0.4) 0%, transparent 65%),
    radial-gradient(ellipse 30% 50% at 50% 100%, rgba(232, 200, 122, 0.08) 0%, transparent 60%);
}
.mission-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.mission-inner p { color: var(--mid); line-height: 1.8; }

/* =============================================
   VOLUNTEER / SIGN-UP
============================================= */
.signup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.signup-card {
  background: var(--navy-light);
  border-radius: 10px;
  border: 1px solid rgba(232,200,122,0.12);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s;
}
.signup-card:hover { border-color: rgba(232,200,122,0.3); }
.signup-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}
.signup-card p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.65;
  flex: 1;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(232,200,122,0.1);
  color: var(--mid);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-star {
  font-size: 1.5rem;
  opacity: 0.4;
  letter-spacing: 0.5rem;
}
.footer-inner p { font-size: 0.8rem; opacity: 0.55; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a {
  font-size: 0.8rem;
  color: var(--mid);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--gold); }

.footer-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mid);
  opacity: 0.55;
  font-size: 0.82rem;
  transition: opacity 0.2s, color 0.2s;
  text-decoration: none;
}
.footer-social-link:hover {
  opacity: 1;
  color: var(--gold);
}
.footer-social-link svg {
  flex-shrink: 0;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .goal-bar-wrap { padding: 1.5rem; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3.5rem; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }

  /* Mobile ticker fix */
  .ticker-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    mask-image: none;
  }
  .ticker-wrap::-webkit-scrollbar {
    height: 4px;
  }
  .ticker-wrap::-webkit-scrollbar-track {
    background: rgba(232,200,122,0.1);
  }
  .ticker-wrap::-webkit-scrollbar-thumb {
    background: rgba(232,200,122,0.3);
    border-radius: 2px;
  }
  .ticker-track {
    animation: none;
  }

  /* Mobile mission section - remove graph paper and match other sections */
  .mission-inner {
    text-align: left !important;
    align-items: flex-start !important;
    margin: 0 !important;
    padding: 0 2rem !important;
  }

  .mission-inner > .section-label {
    text-align: left !important;
    color: var(--gold) !important;
  }

  .mission-inner > p {
    text-align: left !important;
    color: var(--gold) !important;
  }

  .mission-inner > div {
    padding: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    background-image: none !important;
    text-align: left !important;
  }

  .mission-inner > div p {
    color: var(--mid) !important;
  }

  .mission-inner > div h2 {
    color: var(--white) !important;
    text-align: left !important;
  }

  .mission-inner > div .divider {
    display: block !important;
    margin: 1.5rem 0 !important;
    margin-left: 0 !important;
  }
}
