/* Beyond A Step - Main Stylesheet */
/* Navy (#0a1628) + Gold (#c9a227) */

:root {
  --navy: #0a1628;
  --navy-dark: #060e1a;
  --navy-light: #0d1d35;
  --gold: #c9a227;
  --gold-light: #d4b440;
  --gold-bright: #e8d170;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
  --shadow-gold: 0 6px 24px rgba(201,162,39,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-light);
  color: #333;
  line-height: 1.6;
}

/* American Flag Background */
#flag-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -100;
  overflow: hidden;
  pointer-events: none;
}

#flag-bg video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(1.15) saturate(1.3);
}

#flag-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.3) 0%, rgba(10,22,40,0.2) 50%, rgba(10,22,40,0.35) 100%);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px; left: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 24px;
  z-index: 100001;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold-bright), var(--gold-light), var(--gold));
  background-size: 200% 100%;
  z-index: 10001;
  box-shadow: 0 0 12px rgba(201,162,39,0.6);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(201,162,39,0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 45px;
  width: auto;
}

.nav-logo span {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

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

.nav-donate {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
}

.nav-donate:hover {
  background: var(--gold-light);
}

.nav-donate::after { display: none !important; }

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: transparent;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 140px;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.3));
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.9), 0 2px 10px rgba(0,0,0,0.95);
}

.hero .tagline {
  color: rgba(255,255,255,0.95);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,162,39,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
}

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

/* Section Base */
section {
  padding: 5rem 2rem;
  background: rgba(10,22,40,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

section h2 {
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  text-shadow: 0 3px 20px rgba(0,0,0,0.6);
}

.section-label {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: rgba(255,255,255,0.85);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Impact Stats */
.impact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.impact-stat {
  text-align: center;
}

.impact-stat .stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}

.impact-stat .stat-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Cards */
.card {
  background: rgba(13,29,53,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201,162,39,0.15);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,162,39,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.card h3 {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: rgba(201,162,39,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Tier Cards (Donation) */
.tier-card {
  background: rgba(13,29,53,0.92);
  border: 1px solid rgba(201,162,39,0.15);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: all 0.4s;
}

.tier-card.featured {
  border-color: var(--gold);
  background: rgba(201,162,39,0.08);
  position: relative;
}

.tier-card.featured::before {
  content: 'MOST IMPACT';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 16px;
  border-radius: 50px;
}

.tier-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(201,162,39,0.2);
}

.tier-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.tier-desc {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  min-height: 60px;
}

/* Board Member Cards */
.board-card {
  background: rgba(13,29,53,0.92);
  border: 1px solid rgba(201,162,39,0.15);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s;
}

.board-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.board-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s;
}

.board-card:hover img {
  transform: scale(1.05);
}

.board-card-content {
  padding: 1.5rem;
}

.board-card h3 {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.board-card .role {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.board-card .bio {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Event Card */
.event-card {
  background: rgba(13,29,53,0.92);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
}

.event-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.event-card h3 {
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.event-date {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-location {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 10px;
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  text-align: center;
  border-top: 1px solid rgba(201,162,39,0.2);
  border-bottom: 1px solid rgba(201,162,39,0.2);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Crisis Bar */
.crisis-bar {
  background: var(--navy-dark);
  padding: 0.75rem 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(201,162,39,0.1);
}

.crisis-bar p {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}

.crisis-bar a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.crisis-bar a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: rgba(6,14,26,0.98);
  padding: 4rem 2rem 1.5rem;
  border-top: 1px solid rgba(201,162,39,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

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

.footer-contact p,
.footer-contact a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: rgba(255,255,255,0.5);
  font-size: 1.25rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--gold);
}

/* Mobile Sticky Donate */
.mobile-donate {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 12px 20px;
  text-align: center;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.mobile-donate a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Page Header */
.page-header {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: transparent;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}

.page-header p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content h3 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-content p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* FAQ */
.faq-item {
  background: rgba(13,29,53,0.8);
  border: 1px solid rgba(201,162,39,0.1);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.25rem;
  max-height: 500px;
}

.faq-answer p {
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(13,29,53,0.9);
  border-radius: 20px;
}

.legal-content h2 {
  text-align: left;
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
}

.legal-content p, .legal-content li {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-content a {
  color: var(--gold);
}

/* Responsive */
@media (max-width: 968px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10,22,40,0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(201,162,39,0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .mobile-donate {
    display: block;
  }
  
  .footer {
    padding-bottom: 5rem;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 0.75rem 1rem;
  }
  
  section {
    padding: 3rem 1rem;
  }
  
  .hero {
    padding: 5rem 1rem 3rem;
  }
  
  .hero-logo {
    width: 100px;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero .tagline {
    font-size: 1rem;
  }
  
  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .page-header {
    padding: 6rem 1rem 3rem;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
