/* ============================================
   MOORE XTREME - Special Olympics Team
   Maroon & Dark color scheme
   ============================================ */

:root {
  --maroon: #8B1A2B;
  --maroon-light: #A82940;
  --maroon-dark: #6E1522;
  --maroon-bg: rgba(139, 26, 43, 0.08);
  --dark: #1E1E1E;
  --dark-light: #2E2E2E;
  --dark-deep: #141414;
  --cream: #FDF7F5;
  --cream-dark: #F3EAE6;
  --white: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-medium: #4A4A5A;
  --text-light: #7A7A8A;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
  --shadow-maroon: 0 4px 20px rgba(139, 26, 43, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--cream); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--text-medium); font-size: 1.05rem; max-width: 65ch; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.text-center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 2rem; border-radius: var(--radius-xl); font-family: var(--font-display); font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.btn-primary { background: var(--maroon); color: var(--white); box-shadow: var(--shadow-maroon); }
.btn-primary:hover { background: var(--maroon-light); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(139, 26, 43, 0.4); }
.btn-secondary { background: var(--dark); color: var(--white); }
.btn-secondary:hover { background: var(--dark-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: var(--white); color: var(--dark); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* Navigation */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1rem 0; transition: var(--transition); background: transparent; }
.navbar.scrolled { background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); padding: 0.5rem 0; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--white); z-index: 1001; }
.navbar.scrolled .nav-brand { color: var(--dark); }
.nav-brand img { height: 48px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.navbar.scrolled .nav-brand img { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; color: rgba(255,255,255,0.85); position: relative; padding: 0.25rem 0; }
.navbar.scrolled .nav-links a { color: var(--text-dark); }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--maroon); transition: var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--maroon); }
.nav-cta { margin-left: 1rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 1001; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }
.navbar.scrolled .nav-toggle span { background: var(--dark); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--dark-deep); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--dark-deep) 0%, var(--dark) 40%, #2A1520 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 80%, rgba(139, 26, 43, 0.2) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(139, 26, 43, 0.12) 0%, transparent 50%); }
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-shapes .shape { position: absolute; border-radius: 50%; opacity: 0.05; background: var(--maroon); }
.hero-shapes .shape-1 { width: 600px; height: 600px; top: -200px; right: -100px; animation: float 20s ease-in-out infinite; }
.hero-shapes .shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; animation: float 25s ease-in-out infinite reverse; }
.hero-shapes .shape-3 { width: 200px; height: 200px; top: 40%; right: 30%; animation: float 15s ease-in-out infinite 2s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -30px) scale(1.05); } 66% { transform: translate(-20px, 20px) scale(0.95); } }

.hero-content { position: relative; z-index: 2; padding: 8rem 0 5rem; }
.hero-logo { max-width: 320px; margin-bottom: 2rem; animation: fadeInUp 0.8s ease-out; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(139, 26, 43, 0.2); border: 1px solid rgba(139, 26, 43, 0.4); color: #E8A0A0; padding: 0.5rem 1.25rem; border-radius: var(--radius-xl); font-size: 0.85rem; font-weight: 600; font-family: var(--font-display); margin-bottom: 1.5rem; animation: fadeInUp 0.8s ease-out; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; animation: fadeInUp 0.8s ease-out 0.1s both; }
.hero h1 .highlight { color: var(--maroon-light); }
.hero-text { color: rgba(255,255,255,0.7); font-size: 1.2rem; max-width: 550px; margin-bottom: 2.5rem; line-height: 1.8; animation: fadeInUp 0.8s ease-out 0.2s both; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeInUp 0.8s ease-out 0.3s both; }
.hero-stats { display: flex; gap: 3rem; margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.1); animation: fadeInUp 0.8s ease-out 0.4s both; }
.hero-stat h3 { color: var(--maroon-light); font-size: 2.5rem; margin-bottom: 0.25rem; }
.hero-stat p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Section headers */
.section-header { margin-bottom: 3rem; }
.section-label { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--maroon); font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--maroon); border-radius: 2px; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; }

/* Sport cards */
.sport-card { background: var(--white); border-radius: var(--radius-md); padding: 1.75rem; text-align: center; transition: var(--transition); box-shadow: var(--shadow-sm); border: 1px solid transparent; }
.sport-card:hover { border-color: var(--maroon); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sport-icon { width: 56px; height: 56px; border-radius: var(--radius-md); background: rgba(139, 26, 43, 0.08); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.5rem; }
.sport-card h4 { font-size: 1rem; }

/* Involve cards */
.involve-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; position: relative; overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm); }
.involve-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--maroon); transform: scaleX(0); transition: var(--transition); }
.involve-card:hover::before { transform: scaleX(1); }
.involve-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.involve-icon { width: 64px; height: 64px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--maroon), var(--maroon-light)); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin-bottom: 1.5rem; color: var(--white); }
.involve-card h3 { margin-bottom: 0.75rem; }
.involve-card p { font-size: 0.95rem; margin-bottom: 1.25rem; }

/* FAQ */
.faq-item { background: var(--white); border-radius: var(--radius-md); margin-bottom: 0.75rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--dark); border: none; background: none; width: 100%; text-align: left; transition: var(--transition); }
.faq-question:hover { color: var(--maroon); }
.faq-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(139, 26, 43, 0.08); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--maroon); transition: var(--transition); flex-shrink: 0; }
.faq-item.active .faq-icon { background: var(--maroon); color: var(--white); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 1.5rem 1.25rem; color: var(--text-medium); line-height: 1.7; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--dark); margin-bottom: 0.5rem; }
.form-input, .form-textarea { width: 100%; padding: 0.85rem 1.25rem; border: 2px solid var(--cream-dark); border-radius: var(--radius-md); font-family: var(--font-body); font-size: 1rem; color: var(--text-dark); background: var(--white); transition: var(--transition); outline: none; }
.form-input:focus, .form-textarea:focus { border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(139, 26, 43, 0.1); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Photo placeholder */
.photo-placeholder { background: linear-gradient(135deg, var(--cream-dark), var(--cream)); border: 2px dashed rgba(139, 26, 43, 0.15); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; color: var(--text-light); text-align: center; min-height: 300px; }
.photo-placeholder-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.photo-placeholder p { font-size: 0.9rem; color: var(--text-light); }

/* Impact section */
.impact-section { background: var(--dark); position: relative; overflow: hidden; }
.impact-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(139, 26, 43, 0.12) 0%, transparent 50%); }
.impact-quote { position: relative; z-index: 1; }
.impact-quote blockquote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 1.8rem); color: var(--white); line-height: 1.6; font-weight: 500; margin-bottom: 1.5rem; max-width: 700px; }
.impact-quote blockquote::before { content: '\201C'; font-size: 4rem; color: var(--maroon-light); font-family: Georgia, serif; line-height: 0; display: block; margin-bottom: 0.5rem; }
.impact-quote cite { color: var(--maroon-light); font-style: normal; font-weight: 600; font-family: var(--font-display); }

/* Footer */
.footer { background: var(--dark-deep); color: rgba(255,255,255,0.7); padding: 3rem 0 1.5rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.5rem; }
.footer-brand { max-width: 300px; }
.footer-brand h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-brand h3 img { height: 36px; width: auto; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3)); }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.footer-links h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-links a { display: block; color: rgba(255,255,255,0.5); font-size: 0.9rem; padding: 0.25rem 0; }
.footer-links a:hover { color: var(--maroon-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.35); }

/* Donate banner */
.donate-banner { background: linear-gradient(135deg, var(--maroon), var(--maroon-dark)); padding: 3.5rem 0; text-align: center; }
.donate-banner h2 { color: var(--white); margin-bottom: 1rem; }
.donate-banner p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin: 0 auto 2rem; }

/* Page hero */
.page-hero { background: var(--dark); padding: 8rem 0 4rem; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(139, 26, 43, 0.15) 0%, transparent 50%); }
.page-hero h1 { color: var(--white); position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,0.6); font-size: 1.15rem; position: relative; z-index: 1; margin-top: 1rem; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Scroll to top */
.scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px; border-radius: 50%; background: var(--maroon); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; cursor: pointer; border: none; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(20px); transition: var(--transition); z-index: 100; }
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-maroon); }

.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; }
.nav-overlay.active { display: block; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { position: fixed; top: 0; right: -100%; width: 80%; max-width: 350px; height: 100vh; background: var(--dark-deep); flex-direction: column; align-items: flex-start; padding: 6rem 2rem 2rem; gap: 1.5rem; transition: right 0.4s ease; box-shadow: -4px 0 30px rgba(0,0,0,0.3); }
  .nav-links.open { right: 0; }
  .nav-links a { color: rgba(255,255,255,0.8) !important; font-size: 1.1rem; }
  .nav-cta { margin-left: 0; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .footer-top { flex-direction: column; }
  .hero-logo { max-width: 240px; }
}
