/* ==========================================================================
   Umeed Pakistan — Site Stylesheet
   Brand: hopeful, youth-focused, professional, humanitarian, trustworthy
   ========================================================================== */

:root {
  --green-dark:    #0F5C2A;
  --green:         #1B7A3E;
  --green-light:   #E8F5EC;
  --green-lighter: #F4FAF6;
  --gold:          #E8A93C;
  --gray-900:      #1A1D1B;
  --gray-700:      #4A524D;
  --gray-500:      #7A857F;
  --gray-200:      #E7ECE9;
  --white:         #FFFFFF;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(15, 92, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 92, 42, 0.1);
  --shadow-lg: 0 20px 50px rgba(15, 92, 42, 0.14);
  --transition: all 0.3s ease;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gray-900);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.text-accent { color: var(--green); }
.bg-soft { background: var(--green-lighter); }

.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
@media (max-width: 767px) {
  .section { padding: 60px 0; }
  .section-sm { padding: 40px 0; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.section-lead { color: var(--gray-700); font-size: 1.05rem; max-width: 680px; }
.section-lead.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn-primary-custom {
  background: var(--green);
  border: 2px solid var(--green);
  color: var(--white);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-primary-custom:hover, .btn-primary-custom:focus {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary-custom {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-outline-primary-custom:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-light-custom {
  background: var(--white);
  border: 2px solid var(--white);
  color: var(--green-dark);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-light-custom:hover { background: transparent; color: var(--white); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: var(--transition);
  z-index: 1050;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.navbar-brand { flex-shrink: 0; }
.brand-logo { height: 52px; width: auto; }

.footer-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  padding: 6px;
  flex-shrink: 0;
}
.footer-logo-badge img { width: 100%; height: 100%; object-fit: contain; }

.navbar .nav-link {
  font-weight: 500;
  color: var(--gray-900);
  padding: 8px 8px !important;
  border-radius: 30px;
  white-space: nowrap;
  font-size: 0.87rem;
  transition: var(--transition);
}
.navbar .nav-link:hover, .navbar .nav-link.active {
  color: var(--green);
  background: var(--green-light);
}

.navbar-cta-group { flex-shrink: 0; }
.navbar-cta-group .btn {
  white-space: nowrap;
  padding: 9px 14px;
  font-size: 0.83rem;
}

/* The navbar carries more items than body sections, so it gets a wider
   container than the 1140px Bootstrap caps .container-xl at — this keeps
   nav links and CTA buttons from bleeding past their own row. */
@media (min-width: 1200px) {
  .navbar .container-xl { max-width: 1200px; }
}
@media (min-width: 1400px) {
  .navbar .container-xl { max-width: 1320px; }
}
@media (min-width: 1600px) {
  .navbar .container-xl { max-width: 1440px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--green-lighter) 0%, var(--white) 100%);
  padding: 70px 0 40px;
  overflow: hidden;
}
.hero-eyebrow {
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--gray-700);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.2; }

.hero-badge-card {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-badge-card .icon-circle { width: 44px; height: 44px; font-size: 1.2rem; }
@media (max-width: 991px) {
  .hero-badge-card { left: 10px; bottom: -18px; }
}

.scroll-indicator {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  color: var(--gray-500);
  animation: bounce 2s infinite;
}
.scroll-indicator i { font-size: 1.5rem; }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* ---------- Icon circle ---------- */
.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ---------- Impact Stats ---------- */
.impact-section { background: var(--green-dark); color: var(--white); position: relative; }
.impact-stat { text-align: center; padding: 20px 10px; }
.impact-stat .stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
  display: block;
}
.impact-stat .stat-label { color: rgba(255,255,255,0.8); font-weight: 500; margin-top: 6px; }

/* ---------- Cards ---------- */
.card-custom {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.card-custom:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); border-color: transparent; }

.focus-card { padding: 34px 28px; }
.focus-card .icon-circle { margin-bottom: 20px; }
.focus-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.focus-card p { color: var(--gray-700); margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Project cards ---------- */
.project-card { overflow: hidden; display: flex; flex-direction: column; }
.project-card-img { position: relative; overflow: hidden; aspect-ratio: 16/10.5; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-card-img img { transform: scale(1.08); }
.project-card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.project-card-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.project-card-body p { color: var(--gray-700); font-size: 0.93rem; margin-bottom: 18px; }

.badge-category {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-status {
  font-weight: 600;
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 30px;
  text-transform: uppercase;
}
.badge-status.status-ongoing { background: #FFF4DE; color: #9A6B00; }
.badge-status.status-upcoming { background: #E5F1FF; color: #0A5FB4; }
.badge-status.status-completed { background: var(--green-light); color: var(--green-dark); }

.meta-row { font-size: 0.82rem; color: var(--gray-500); }

/* ---------- Featured project ---------- */
.featured-project {
  background: var(--green-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
}
.featured-project-img { aspect-ratio: 4/3; overflow: hidden; }
.featured-project-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-project-body { padding: 44px; }
.featured-project .tagline { color: var(--gold); font-weight: 600; letter-spacing: 0.03em; }
.progress-custom {
  height: 10px;
  background: rgba(255,255,255,0.18);
  border-radius: 20px;
  overflow: hidden;
}
.progress-custom .bar { height: 100%; background: var(--gold); border-radius: 20px; }

/* ---------- How We Work / Process ---------- */
.process-flow { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 0; }
.process-step {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  flex: 1 1 180px;
  max-width: 210px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.process-step:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.process-step .step-number {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin: 0 auto 14px;
}
.process-step h4 { font-size: 1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.85rem; color: var(--gray-700); margin: 0; }
.process-arrow { display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 1.4rem; padding: 0 6px; }
@media (max-width: 767px) {
  .process-flow { flex-direction: column; align-items: center; }
  .process-step { max-width: 320px; width: 100%; }
  .process-arrow { transform: rotate(90deg); padding: 6px 0; }
}

/* ---------- Articles ---------- */
.article-card { overflow: hidden; }
.article-card-img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .article-card-img img { transform: scale(1.08); }
.article-card-body { padding: 22px; }
.article-card-body h3 { font-size: 1.05rem; margin: 12px 0 10px; }
.article-card-body p { color: var(--gray-700); font-size: 0.92rem; }
.article-meta { font-size: 0.8rem; color: var(--gray-500); }
.read-more-link { color: var(--green); font-weight: 600; font-size: 0.9rem; }
.read-more-link i { transition: var(--transition); }
.read-more-link:hover i { transform: translateX(4px); }

/* ---------- CTA sections ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
}
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,0.88); }

.donation-cta-strip { background: var(--green-lighter); }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-900); color: rgba(255,255,255,0.75); }
.footer-brand { display: inline-flex; }
.footer-text { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-heading { color: var(--white); font-family: var(--font-heading); font-size: 1rem; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.92rem; transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-text a { color: rgba(255,255,255,0.75); }
.footer-text a:hover { color: var(--white); }

.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-icons a:hover { background: var(--green); transform: translateY(-3px); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }
.footer-legal a { color: rgba(255,255,255,0.65); }
.footer-legal a:hover { color: var(--white); }

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1040;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-dark); color: var(--white); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--green-lighter);
  padding: 130px 0 60px;
  text-align: center;
}
.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; }
.breadcrumb-custom { font-size: 0.9rem; color: var(--gray-500); }
.breadcrumb-custom a { color: var(--green); font-weight: 500; }

/* ---------- Forms ---------- */
.form-control-custom, .form-select {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
}
.form-control-custom:focus, .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}
.form-label-custom { font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 40px; }

/* ---------- Donation categories ---------- */
.donate-category-card { text-align: center; padding: 32px 20px; cursor: default; }
.donate-category-card .icon-circle { margin: 0 auto 18px; }
.donate-category-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.donate-category-card p { font-size: 0.88rem; color: var(--gray-700); margin: 0; }

.account-detail-box {
  background: var(--green-lighter);
  border: 1px dashed var(--green);
  border-radius: var(--radius-md);
  padding: 28px;
}
.account-detail-box dt { color: var(--gray-700); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.account-detail-box dd { color: var(--gray-900); font-weight: 600; margin-bottom: 16px; }

/* ---------- Membership benefits ---------- */
.benefit-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.benefit-item .icon-circle { width: 46px; height: 46px; font-size: 1.15rem; }
.benefit-item h4 { font-size: 1.02rem; margin-bottom: 4px; }
.benefit-item p { color: var(--gray-700); font-size: 0.92rem; margin: 0; }

/* ---------- Article reading layout ---------- */
.article-hero-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16/8; }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: 1.05rem; line-height: 1.85; color: var(--gray-900); max-width: 760px; margin: 0 auto; }
.article-body p { margin-bottom: 1.4em; }
.article-message-box {
  background: var(--green-lighter);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin-top: 2em;
}
.article-message-box h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.article-message-box p { font-style: italic; color: var(--gray-900); margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-info-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--gray-200); }
.contact-info-card:last-child { border-bottom: none; }
.map-placeholder {
  background: var(--green-lighter);
  border: 1px dashed var(--gray-500);
  border-radius: var(--radius-md);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--gray-500);
  text-align: center;
  padding: 30px;
}

/* ---------- Utility placeholders (in lieu of real photography) ---------- */
.img-placeholder {
  background: linear-gradient(135deg, var(--green-light) 0%, #d7ecdd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 2rem;
  width: 100%;
  height: 100%;
}

/* ---------- Animations ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-up.in-view { opacity: 1; transform: translateY(0); }

.fade-in-up.delay-1 { transition-delay: 0.1s; }
.fade-in-up.delay-2 { transition-delay: 0.2s; }
.fade-in-up.delay-3 { transition-delay: 0.3s; }
.fade-in-up.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
