/* ============================================================
   Q World Athletics Inc. — Main Stylesheet
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary: #E8491D;
  --color-primary-dark: #C23A15;
  --color-secondary: #1A3A5C;
  --color-secondary-light: #245580;
  --color-accent: #F4A024;
  --color-accent-light: #FFD180;
  --color-bg-light: #FFF8F0;
  --color-bg-white: #FFFFFF;
  --color-text: #2D2D2D;
  --color-text-light: #6B7280;
  --color-text-inverse: #FFFFFF;
  --color-border: #E5E7EB;
  --color-success: #10B981;
  --color-overlay: rgba(26, 58, 92, 0.75);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-secondary);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-light {
  background: var(--color-bg-light);
}

.section-dark {
  background: var(--color-secondary);
  color: var(--color-text-inverse);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-text-inverse);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.8);
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-text-inverse);
}

.btn-secondary:hover {
  background: var(--color-secondary-light);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--color-text-inverse);
  color: var(--color-secondary);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-text);
}

.btn-accent:hover {
  background: #e09020;
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* ---------- Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-bg-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-secondary);
}

.logo span {
  color: var(--color-primary);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-primary);
  background: rgba(232, 73, 29, 0.06);
}

.nav-list .btn {
  margin-left: 0.5rem;
  padding: 0.5rem 1.25rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 3px;
  transition: all var(--transition);
  margin: 5px 0;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-inverse);
  margin-top: var(--header-height);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #0d2137 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,92,0.85) 0%, rgba(13,33,55,0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 3rem 1.5rem;
}

.hero-content h1 {
  color: var(--color-text-inverse);
  font-size: 3.25rem;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero-content h1 span {
  color: var(--color-accent);
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.hero-page {
  min-height: 350px;
}

.hero-page .hero-content h1 {
  font-size: 2.75rem;
}

/* ---------- Decorative Shapes ---------- */
.hero::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--color-bg-white);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}

.section-light + .section-dark::before,
.section-dark + .section-light::before {
  display: none;
}

/* ---------- Impact Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.section-dark .stat-number {
  color: var(--color-accent);
}

.section-dark .stat-label {
  color: rgba(255,255,255,0.8);
}

/* ---------- Cards (Programs, Events, etc.) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.card-icon {
  font-size: 3.5rem;
  opacity: 0.9;
  color: white;
}

.card-body {
  padding: 1.75rem;
}

.card-body h3 {
  margin-bottom: 0.75rem;
}

.card-body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(232, 73, 29, 0.08);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ---------- Feature Row (alternating image/text) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 5rem;
}

.feature-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-text p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.feature-list {
  margin-bottom: 1.5rem;
}

.feature-list li {
  padding: 0.4rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--color-text-light);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

/* ---------- Mission / Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(232, 73, 29, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.value-card h3 {
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 2.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.team-card h4 {
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.team-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-right: 0;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  right: -8px;
  top: 1rem;
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid var(--color-bg-white);
  box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -8px;
}

.timeline-content {
  background: var(--color-bg-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.timeline-date {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.timeline-content h4 {
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---------- Events ---------- */
.event-card {
  display: flex;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  margin-bottom: 1.5rem;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.event-date-box {
  min-width: 100px;
  background: var(--color-primary);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.event-date-box .month {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-date-box .day {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
  margin: 0.25rem 0;
}

.event-date-box .year {
  font-size: 0.8rem;
  opacity: 0.8;
}

.event-info {
  padding: 1.5rem;
  flex: 1;
}

.event-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.event-info p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.event-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ---------- Donation Tiers ---------- */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.donate-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  background: var(--color-bg-white);
}

.donate-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.donate-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.donate-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.donate-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.donate-amount sup {
  font-size: 1.5rem;
  top: -0.75em;
}

.donate-card h3 {
  margin-bottom: 1rem;
}

.donate-perks {
  text-align: left;
  margin-bottom: 2rem;
}

.donate-perks li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--color-text-light);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
}

.donate-perks li:last-child {
  border-bottom: none;
}

.donate-perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

/* ---------- Forms ---------- */
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-bg-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color var(--transition);
  background: var(--color-bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232, 73, 29, 0.1);
}

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

.form-group input.error,
.form-group textarea.error {
  border-color: #EF4444;
}

.form-error {
  color: #EF4444;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.form-error.show {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.show {
  display: block;
}

.form-success h3 {
  color: var(--color-success);
  margin-bottom: 0.75rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  text-align: center;
  padding: 4rem 1.5rem;
  border-radius: var(--radius-lg);
  margin: 3rem 0;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  text-align: center;
}

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

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

/* ---------- Footer ---------- */
.footer {
  background: var(--color-secondary);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: white;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-newsletter p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: rgba(255,255,255,0.1);
  color: white;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form input:focus {
  outline: none;
  background: rgba(255,255,255,0.15);
}

.newsletter-form button {
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.newsletter-form button:hover {
  background: var(--color-primary-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: white;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Contact Info ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-list {
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(232, 73, 29, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  color: var(--color-primary);
}

.contact-info-text h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.contact-info-text p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.map-placeholder {
  width: 100%;
  height: 300px;
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 1rem;
  border: 2px dashed var(--color-border);
}

/* ---------- Volunteer ---------- */
.volunteer-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.benefit-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(232, 73, 29, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.benefit-card h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.benefit-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-row {
    gap: 2.5rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .section {
    padding: 3.5rem 0;
  }

  /* Mobile Nav */
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg-white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    gap: 0.25rem;
    align-items: stretch;
  }

  .nav-list.active {
    right: 0;
  }

  .nav-list a {
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
  }

  .nav-list .btn {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

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

  .nav-overlay.active {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: 450px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .hero-page {
    min-height: 280px;
  }

  /* Stats */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  /* Feature */
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  /* Grid layouts */
  .card-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .donate-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 2rem 1.5rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* Timeline */
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 3.5rem;
    padding-right: 0;
  }

  .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 12px;
    right: auto;
  }

  /* Events */
  .event-card {
    flex-direction: column;
  }

  .event-date-box {
    flex-direction: row;
    gap: 0.5rem;
    padding: 1rem;
    min-width: auto;
  }

  .event-date-box .day {
    font-size: 1.75rem;
  }

  /* CTA */
  .cta-banner {
    padding: 3rem 1.5rem;
    margin: 2rem 0;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .volunteer-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}
