/* ============================================================
   DASAM CHARITY — Shared Design System
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #0b5e42;
  --primary-light: #148f64;
  --primary-dark: #073d2b;
  --secondary: #f4a261;
  --gold: #d4a843;
  --accent: #e76f51;
  --light: #f8f9fa;
  --cream: #fbf9f4;
  --dark: #1e2a26;
  --gray: #636e72;
  --white: #ffffff;
  --danger: #dc3545;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
  --radius: 14px;
  --transition: all 0.35s cubic-bezier(0.25,0.8,0.25,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.7; color: var(--dark);
  background: var(--light); overflow-x: hidden;
}

h1,h2,h3,h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- NAVBAR ---------- */
.navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 0.9rem 5%; display: flex; justify-content: space-between;
  align-items: center; box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  position: sticky; top: 0; z-index: 1000; transition: var(--transition);
}
.nav-brand {
  font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 800;
  color: var(--primary); text-decoration: none; letter-spacing: -0.3px;
}
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--dark); font-weight: 500;
  font-size: 0.94rem; position: relative; transition: var(--transition);
}
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gold); transition: width 0.3s ease;
}
.nav-links a:not(.btn):hover { color: var(--primary); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after { width: 100%; }
.mobile-menu-btn {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--primary);
}

/* ---------- BUTTONS ---------- */
.btn {
  padding: 0.9rem 2.1rem; border: none; border-radius: 50px;
  font-size: 0.97rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Inter', sans-serif; letter-spacing: 0.2px;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 6px 20px rgba(11,94,66,0.35); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(11,94,66,0.45); }
.btn-secondary { background: var(--secondary); color: var(--primary-dark); box-shadow: 0 6px 20px rgba(244,162,97,0.4); }
.btn-secondary:hover { background: #f7b072; transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }
.btn-ghost:hover { background: var(--white); color: var(--primary); transform: translateY(-3px); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #c82333; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- PAGE HEADER ---------- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white); padding: 5rem 5% 4rem; text-align: center;
  position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(244,162,97,0.16), transparent 70%);
  top: -180px; right: -120px; border-radius: 50%;
}
.page-header h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.8rem; position: relative; z-index: 1; }
.page-header p { color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 auto; position: relative; z-index: 1; }
.page-header .eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 2.5px;
  text-transform: uppercase; font-weight: 600; color: var(--secondary);
  margin-bottom: 0.9rem; position: relative; z-index: 1;
}

/* ---------- SECTIONS ---------- */
.section { padding: 5rem 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.2rem; }
.section-eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 2.5px;
  text-transform: uppercase; font-weight: 600; color: var(--primary-light);
  margin-bottom: 0.9rem;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; letter-spacing: -0.5px; }
.section-head p { color: var(--gray); font-size: 1.05rem; }

/* ---------- CARDS ---------- */
.card-grid { display: grid; gap: 1.8rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.info-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(11,94,66,0.06);
  transition: var(--transition);
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.info-card .icon-badge {
  width: 54px; height: 54px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem;
  color: var(--white); margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 6px 16px rgba(11,94,66,0.3);
}
.info-card h3 { color: var(--primary); font-size: 1.3rem; margin-bottom: 0.6rem; }
.info-card p { color: #4a5451; font-size: 0.96rem; }

/* ---------- OBJECTIVES (numbered) ---------- */
.objectives-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.6rem; }
.objective-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.8rem 1.8rem;
  position: relative; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11,94,66,0.06); transition: var(--transition); overflow: hidden;
}
.objective-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform 0.35s ease;
}
.objective-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.objective-card:hover::before { transform: scaleY(1); }
.objective-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.15rem; margin-bottom: 1.1rem;
  box-shadow: 0 6px 16px rgba(11,94,66,0.3);
}
.objective-card p { color: #4a5451; font-size: 0.97rem; line-height: 1.75; }

/* ---------- PROFILE CARDS (athletes/trustees) ---------- */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.profile-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition); text-align: center;
}
.profile-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.profile-card .profile-img {
  width: 100%; height: 300px; object-fit: cover; background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.profile-card .profile-body { padding: 1.6rem; }
.profile-card h3 { color: var(--primary); font-size: 1.3rem; margin-bottom: 0.2rem; }
.profile-card .profile-role { color: var(--gold); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.5px; margin-bottom: 0.8rem; }
.profile-card .profile-meta { color: var(--gray); font-size: 0.9rem; margin-bottom: 0.2rem; }
.profile-card .profile-bio { color: var(--gray); font-size: 0.9rem; margin-top: 0.8rem; }

/* ---------- FORMS ---------- */
.form-card {
  background: var(--white); border-radius: var(--radius); padding: 2.2rem;
  box-shadow: var(--shadow); max-width: 820px; margin: 0 auto;
}
.form-group { margin-bottom: 1.4rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.85rem 1rem; border: 2px solid #e3e8e6; border-radius: 10px;
  font-size: 0.95rem; font-family: 'Inter', sans-serif; transition: var(--transition); background: #fcfdfd;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary-light); background: var(--white);
  box-shadow: 0 0 0 4px rgba(20,143,100,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 1.4rem; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; padding: 1rem 2rem;
  border-radius: 10px; color: var(--white); z-index: 3000;
  animation: slideInRight 0.3s ease; display: none;
  font-size: 0.92rem; box-shadow: var(--shadow);
}
.toast-success { background: #27ae60; }
.toast-error { background: #e74c3c; }

/* ---------- LOADING ---------- */
.loading { text-align: center; padding: 3rem; font-size: 1.05rem; color: var(--gray); grid-column: 1/-1; }

/* ---------- FOOTER ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 3.5rem 5% 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-brand h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--white); margin-bottom: 0.8rem; }
.footer-brand h3 span { color: var(--gold); }
.footer-brand p { font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { color: var(--white); font-family: 'Inter', sans-serif; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.92rem; margin-bottom: 0.6rem; transition: var(--transition); }
.footer-col a:hover { color: var(--secondary); padding-left: 4px; }
.footer-bottom {
  max-width: 1200px; margin: 2.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12); text-align: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
}

/* ---------- BACK TO TOP ---------- */
.back-top {
  position: fixed; bottom: 2rem; left: 2rem; width: 48px; height: 48px;
  border-radius: 50%; background: var(--primary); color: var(--white);
  border: none; cursor: pointer; font-size: 1.1rem; display: none;
  align-items: center; justify-content: center; z-index: 900;
  box-shadow: 0 8px 22px rgba(11,94,66,0.4); transition: var(--transition);
}
.back-top.show { display: flex; }
.back-top:hover { background: var(--primary-light); transform: translateY(-3px); }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; width: 100%; background: var(--white);
    padding: 1.4rem 5%; box-shadow: var(--shadow); gap: 1.1rem; align-items: flex-start;
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .section { padding: 3.5rem 5%; }
  .form-card { padding: 1.5rem; }
}