/* ============================================
   donate.com.bd — Main Stylesheet
   Design: Premium NGO + Fintech Hybrid
   Mobile-First, Bangladesh Green + Red
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Syne:wght@600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --green:       #006A4E;
  --green-dark:  #004d38;
  --green-mid:   #1a8a63;
  --green-light: #E8F5F0;
  --green-xlight:#F0FAF6;
  --red:         #F42A41;
  --red-light:   #FFF0F1;
  --blue:        #185FA5;
  --blue-light:  #E6F1FB;
  --amber:       #D97706;
  --amber-light: #FEF3C7;
  --purple:      #534AB7;
  --purple-light:#EEEDFE;
  --bg:          #F4F7F5;
  --card:        #ffffff;
  --text:        #0F1923;
  --muted:       #5A6470;
  --border:      rgba(0,0,0,0.08);
  --border-md:   rgba(0,0,0,0.12);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:      0 4px 16px rgba(0,0,0,0.08);
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --font-bn:     'Hind Siliguri', sans-serif;
  --font-en:     'DM Sans', sans-serif;
  --font-head:   'Syne', sans-serif;
  --nav-h:       64px;
  --transition:  all 0.18s cubic-bezier(0.4,0,0.2,1);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0a1612;
    --card:    #111f1a;
    --text:    #eef3f0;
    --muted:   #8aa09a;
    --border:  rgba(255,255,255,0.08);
    --border-md: rgba(255,255,255,0.12);
    --green-light: #0d3026;
    --green-xlight: #0a261f;
    --red-light:   #2a0810;
    --blue-light:  #0a1a2e;
    --amber-light: #2a1d06;
    --purple-light:#1a1640;
  }
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-bn);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(22px, 3.5vw, 36px); font-weight: 700; }
h3 { font-size: clamp(17px, 2.5vw, 22px); font-weight: 700; }
h4 { font-size: 16px; font-weight: 600; }
.bn { font-family: var(--font-bn); }
.en { font-family: var(--font-en); }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; border: none;
  transition: var(--transition); cursor: pointer; white-space: nowrap;
  font-family: var(--font-bn);
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #c5152a; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green-light); }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: var(--green-light); }
.btn-ghost { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn-lg { padding: 15px 32px; font-size: 15px; border-radius: var(--radius-sm); }
.btn-sm { padding: 8px 16px; font-size: 12px; border-radius: 6px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

/* ── Cards ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { border-color: var(--border-md); box-shadow: var(--shadow); }
.card-body { padding: 1.25rem; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-amber { background: var(--amber-light); color: var(--amber); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-urgent { background: var(--red); color: #fff; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.7} }

/* ── Progress Bar ── */
.progress-wrap { }
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin: 6px 0; }
.progress-fill { height: 100%; border-radius: 3px; background: var(--green); transition: width 1s ease; }
.progress-fill.red { background: var(--red); }
.progress-fill.amber { background: var(--amber); }
.progress-stats { display: flex; justify-content: space-between; font-size: 12px; }
.progress-stats .raised { font-weight: 700; color: var(--green); }

/* ── Form Elements ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-label span.req { color: var(--red); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border-md); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font-bn);
  background: var(--card); color: var(--text);
  transition: var(--transition); outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,106,78,0.1);
}
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-hint { font-size: 11px; color: var(--muted); }
.form-error { font-size: 11px; color: var(--red); display: none; }
.form-error.show { display: block; }

/* ── Sections headers ── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--green); margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 16px; color: var(--muted); max-width: 580px; margin: 0 auto; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* ── Stat ── */
.stat-card { background: var(--color-background-secondary,var(--green-xlight)); border-radius: var(--radius-sm); padding: 1rem; text-align: center; }
.stat-number { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--green); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── Navigation ── */
.navbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center;
}
.navbar-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-mark {
  width: 36px; height: 36px; background: var(--green);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 18px; height: 18px; fill: #fff; }
.nav-logo-text { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--green); letter-spacing: -0.3px; }
.nav-logo-text span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 7px 13px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--muted); transition: var(--transition); border: none; background: transparent;
}
.nav-link:hover, .nav-link.active { color: var(--green); background: var(--green-light); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: flex; background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px; gap: 2px;
}
.lang-btn {
  padding: 4px 12px; border-radius: 16px; font-size: 12px; font-weight: 700;
  border: none; cursor: pointer; background: transparent; color: var(--muted);
  transition: var(--transition); font-family: var(--font-bn);
}
.lang-btn.active { background: var(--green); color: #fff; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; border: none; background: transparent;
}
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; display: block; transition: var(--transition); }
.mobile-menu {
  display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 16px 20px; z-index: 999; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 12px 14px; border-radius: 8px; display: block; }

/* ── Bottom Nav (Mobile) ── */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--card); border-top: 1px solid var(--border);
  z-index: 999; padding: 8px 0 env(safe-area-inset-bottom, 8px);
}
.bottom-nav-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; padding: 6px 4px; border: none; background: transparent;
  cursor: pointer; transition: var(--transition); color: var(--muted); font-size: 10px; font-weight: 600;
}
.bottom-nav-item.active { color: var(--green); }
.bottom-nav-item svg { width: 20px; height: 20px; }

/* ── Footer ── */
.footer { background: #041810; color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.footer h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: 0.3px; }
.footer-link {
  display: block; font-size: 13px; color: rgba(255,255,255,0.6);
  margin-bottom: 8px; transition: var(--transition);
}
.footer-link:hover { color: #86EFCA; }
.footer-logo { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-logo span { color: var(--red); }
.footer-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 40px 0 0; }
.footer-bottom {
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,0.4);
}
.payment-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.payment-badge {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 700; color: #fff;
}

/* ── Verified Badge ── */
.verified-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--green-light); color: var(--green-dark);
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
}
.verified-badge svg { width: 10px; height: 10px; fill: var(--green); }

/* ── Utility ── */
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius-sm); }
.rounded-full { border-radius: 50%; }
.overflow-hidden { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── Animations ── */
@keyframes fadeIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideIn { from{transform:translateX(-20px);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes countUp { from{opacity:0;transform:scale(0.8)} to{opacity:1;transform:scale(1)} }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
.animate-in { animation: fadeIn 0.5s ease forwards; }
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--card) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── Donation Amount Selector ── */
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.amount-btn {
  padding: 11px 8px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-md); background: var(--bg);
  font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer;
  transition: var(--transition); text-align: center;
}
.amount-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-light); }
.amount-btn.selected { background: var(--green-light); border-color: var(--green); color: var(--green); }

/* ── NGO Card ── */
.ngo-card .ngo-cover { height: 120px; background: var(--green-light); overflow: hidden; }
.ngo-card .ngo-cover img { width: 100%; height: 100%; object-fit: cover; }
.ngo-card .ngo-logo-wrap {
  padding: 0 16px; margin-top: -24px; margin-bottom: 8px; display: flex;
  align-items: flex-end; justify-content: space-between;
}
.ngo-card .ngo-logo {
  width: 48px; height: 48px; border-radius: 10px; border: 3px solid var(--card);
  background: var(--green); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 14px; font-weight: 800; color: #fff;
}
.ngo-card .ngo-body { padding: 0 16px 16px; }
.ngo-card .ngo-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.ngo-card .ngo-type { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.ngo-card .ngo-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.ngo-card .ngo-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-top: 1px solid var(--border);
}
.ngo-card .ngo-location { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.ngo-card .ngo-location svg { width: 12px; height: 12px; fill: var(--muted); }

/* ── Campaign Card ── */
.campaign-card .camp-img { height: 160px; background: var(--green-light); overflow: hidden; }
.campaign-card .camp-img img { width: 100%; height: 100%; object-fit: cover; }
.campaign-card .camp-body { padding: 14px; }
.campaign-card .camp-cat { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.campaign-card .camp-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.campaign-card .camp-org { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.campaign-card .camp-foot { padding: 10px 14px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }

/* ── Mobile responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 52px 0; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bottom-nav { display: block; }
  body { padding-bottom: 72px; }
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 32px; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
