/* ── MADAD.PK GLOBAL STYLES ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=DM+Sans:wght@400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

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

:root {
  --green:       #166534;
  --green-mid:   #16A34A;
  --green-light: #22C55E;
  --green-pale:  #F0FDF4;
  --green-soft:  #DCFCE7;
  --white:       #FFFFFF;
  --cream:       #FAFDF7;
  --text:        #0F1A12;
  --text-mid:    #3D5A44;
  --text-soft:   #6B8F73;
  --text-muted:  #A3BEA8;
  --border:      #D1FAE5;
  --border-mid:  #BBF7D0;
  --gold:        #CA8A04;
  --gold-light:  #FEF9C3;
  --red:         #DC2626;
  --red-light:   #FEF2F2;
  --shadow-sm:   0 1px 8px rgba(22,101,52,0.08);
  --shadow:      0 4px 20px rgba(22,101,52,0.12);
  --shadow-lg:   0 8px 40px rgba(22,101,52,0.18);
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --nav-h:       70px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

.urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  direction: rtl;
  line-height: 2;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar a { color: #86EFAC; font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
  transition: box-shadow 0.2s;
}

.nav.scrolled { box-shadow: 0 4px 24px rgba(22,101,52,0.1); }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--green-mid), var(--green));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}

.logo-name { display: flex; flex-direction: column; line-height: 1; }
.logo-en { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 22px; color: var(--green); letter-spacing: -0.5px; }
.logo-ur { font-family: 'Noto Nastaliq Urdu', serif; font-size: 12px; color: var(--text-soft); direction: rtl; line-height: 1.8; }

.nav-links { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-mid); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: var(--radius-sm); transition: all 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--green); background: var(--green-pale); }

.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 7px; font-family: 'DM Sans', sans-serif; font-weight: 700; border-radius: 50px; cursor: pointer; transition: all 0.2s; text-decoration: none; border: none; white-space: nowrap; }

.btn-sm { font-size: 13px; padding: 8px 18px; }
.btn-md { font-size: 14px; padding: 11px 24px; }
.btn-lg { font-size: 16px; padding: 15px 36px; }
.btn-xl { font-size: 17px; padding: 17px 42px; }

.btn-primary { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(22,101,52,0.3); }
.btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(22,101,52,0.38); }

.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--border-mid); }
.btn-outline:hover { background: var(--green-pale); border-color: var(--green-mid); }

.btn-ghost { background: transparent; color: var(--text-mid); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--green-mid); color: var(--green); }

.btn-white { background: #fff; color: var(--green); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.22); }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #B91C1C; }

.btn .material-icons { font-size: 17px; }

/* ── SECTION LAYOUT ── */
.section { padding: 80px 5vw; }
.section-sm { padding: 48px 5vw; }
.section-alt { background: var(--cream); }

.section-header { text-align: center; margin-bottom: 52px; }

.s-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-soft); color: var(--green);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 16px;
}

.s-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900; letter-spacing: -1.5px; color: var(--text); margin-bottom: 12px; line-height: 1.15;
}

.s-sub { font-size: 17px; color: var(--text-mid); max-width: 560px; margin: 0 auto; }
.s-sub-ur { font-family: 'Noto Nastaliq Urdu', serif; font-size: 15px; color: var(--text-soft); direction: rtl; margin-top: 8px; line-height: 2.2; display: block; }

/* ── CARDS ── */
.card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.card-hover { transition: all 0.22s; }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-mid); }

/* ── PROGRESS BAR ── */
.progress-wrap { margin-bottom: 10px; }
.progress-bar { height: 7px; background: var(--green-pale); border-radius: 99px; overflow: hidden; margin-bottom: 7px; }
.progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green-light), var(--green-mid)); transition: width 1.2s ease; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; }
.p-raised { color: var(--green); }
.p-goal { color: var(--text-muted); }

/* ── BADGE ── */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-gold { background: var(--gold-light); color: var(--gold); }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-gray { background: #F5F5F4; color: #57534E; }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-mid); margin-bottom: 7px; }
.form-label .ur { font-family: 'Noto Nastaliq Urdu', serif; font-size: 12px; color: var(--text-muted); direction: rtl; margin-left: 6px; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; cursor: pointer; }

.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 5px; display: none; }
.form-error.show { display: block; }

/* ── ALERT ── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; display: flex; align-items: flex-start; gap: 10px; }
.alert .material-icons { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--green-pale); color: var(--green); border: 1px solid var(--border-mid); }
.alert-danger { background: var(--red-light); color: var(--red); border: 1px solid #FECACA; }
.alert-info { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.alert-gold { background: var(--gold-light); color: var(--gold); border: 1px solid #FDE68A; }

/* ── AVATAR ── */
.avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.avatar-sm { width: 36px; height: 36px; font-size: 13px; }
.avatar-md { width: 48px; height: 48px; font-size: 16px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-green { background: var(--green-pale); color: var(--green); }
.avatar-gold { background: var(--gold-light); color: var(--gold); }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(28px);} to { opacity:1; transform:translateY(0);} }
@keyframes fadeIn { from { opacity:0;} to { opacity:1;} }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-up { animation: fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) both; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; } .d4 { animation-delay: 0.35s; }

/* ── FOOTER ── */
.footer { background: #0A1410; padding: 64px 5vw 32px; }

.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px; padding-bottom: 52px;
  border-bottom: 1px solid #1A2B1D;
}

.footer-logo-wrap { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.footer-logo-icon { width: 36px; height: 36px; background: var(--green); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.footer-logo-en { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; color: #fff; }
.footer-logo-ur { font-family: 'Noto Nastaliq Urdu', serif; font-size: 13px; color: #4ADE80; direction: rtl; line-height: 2; }
.footer-desc { font-size: 14px; color: #3D5A44; line-height: 1.75; margin-bottom: 22px; }
.footer-desc-ur { font-family: 'Noto Nastaliq Urdu', serif; font-size: 12px; color: #2A4030; direction: rtl; display: block; margin-top: 6px; line-height: 2; }
.payment-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-pill { background: #1A2B1D; border: 1px solid #2A4030; border-radius: 6px; padding: 5px 12px; font-size: 11px; font-weight: 700; color: #6B7C6E; }
.footer-col-title { font-weight: 700; font-size: 13px; color: #fff; margin-bottom: 18px; }
.footer-col-title-ur { font-family: 'Noto Nastaliq Urdu', serif; font-size: 11px; color: #3D5A44; direction: rtl; display: block; margin-top: 3px; line-height: 1.8; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; color: #3D5A44; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.footer-links a:hover { color: #4ADE80; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-size: 13px; color: #2A4030; }
.footer-copy a { color: #2A4030; text-decoration: none; }
.footer-copy a:hover { color: #4ADE80; }
.footer-social { display: flex; gap: 8px; }
.soc { width: 36px; height: 36px; background: #1A2B1D; border: 1px solid #2A4030; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #3D5A44; font-size: 12px; font-weight: 800; cursor: pointer; transition: all 0.15s; text-decoration: none; }
.soc:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 56px 5vw; }
}
