/* =========================================================
   Help and Grow Foundation - Master Stylesheet
   Designed with Senior UI/UX Precision
   ========================================================= */

:root {
  --primary: #15803d;
  --primary-hover: #166534;
  --primary-light: #ecfdf5;
  --secondary: #d97706;
  --secondary-hover: #b45309;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
  --gold-gradient: linear-gradient(135deg, #f59e0b, #d97706);
  --green-gradient: linear-gradient(135deg, #16a34a, #15803d);
  --dark-gradient: linear-gradient(135deg, #0f172a, #1e293b);
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

body {
  font-family: var(--font-main);
  color: #334155;
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Header & Topbar */
.top-bar {
  background-color: var(--dark);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.top-bar a:hover {
  color: #34d399;
}

/* Navbar */
.navbar-custom {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 14px 0;
  transition: all 0.3s ease;
}

.navbar-brand .brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand .brand-logo span {
  color: var(--secondary);
}

.nav-link {
  font-weight: 600;
  color: #334155 !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
  background-color: var(--primary-light);
}

/* Custom Buttons */
.btn-primary-ngo {
  background: var(--green-gradient);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-ngo:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
}

.btn-secondary-ngo {
  background: var(--gold-gradient);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary-ngo:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.88)), 
              url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #ffffff;
  padding: 120px 0 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-desc {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 650px;
  margin-bottom: 35px;
}

/* Impact Counters */
.counter-box {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border-bottom: 4px solid var(--primary);
  transition: transform 0.3s ease;
}

.counter-box:hover {
  transform: translateY(-5px);
}

.counter-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
}

.counter-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 5px;
}

/* Cause Cards */
.cause-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cause-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.cause-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.cause-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cause-card:hover .cause-img-wrap img {
  transform: scale(1.06);
}

.cause-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
}

.cause-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.progress-custom {
  height: 10px;
  background-color: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0 10px;
}

.progress-bar-custom {
  background: var(--green-gradient);
  border-radius: 10px;
}

.donation-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.donation-stats strong {
  color: var(--dark);
}

/* Donation Form Styling */
.amount-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.amount-pill-btn {
  background: #ffffff;
  border: 2px solid var(--border-color);
  color: #334155;
  font-weight: 700;
  padding: 12px 10px;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.amount-pill-btn:hover, .amount-pill-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-whatsapp:hover {
  color: #ffffff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* Footer */
.footer-main {
  background-color: var(--dark);
  color: #94a3b8;
  padding: 80px 0 30px;
}

.footer-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
}

.footer-brand span {
  color: var(--secondary);
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #34d399;
  padding-left: 5px;
}

/* Responsiveness */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-section {
    padding: 70px 0 60px;
  }
}
