/* ============================================================
   SHISHU ULLASH — GLOBAL STYLES
   "Lead Sustainably, Inspire Globally."
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --green-dark:    #0d4a28;
  --green-primary: #1a6e3c;
  --green-mid:     #2a9f57;
  --green-light:   #e8f5ee;
  --green-tint:    #f2faf5;

  --navy:          #0f1e3c;
  --blue:          #1A4FAA;
  --blue-light:    #e8f0ff;

  --amber:         #F5A623;
  --amber-light:   #fff4e0;

  --white:         #ffffff;
  --off-white:     #f8faf8;
  --surface:       #f4f7f4;
  --border:        #dde8df;

  --text-primary:  #111820;
  --text-secondary:#3d4f45;
  --text-muted:    #7a8e82;

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  --shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.12);

  --transition:    0.25s ease;
  --max-w:         1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ── CONTAINER ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--text-primary); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; }

.display { font-family: var(--font-display); }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-primary);
  display: inline-block;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ── SECTIONS ── */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-center { text-align: center; }
.section-center .section-subtitle { margin: 0 auto; }

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

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 6px 20px rgba(26,110,60,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--green-primary);
  border-color: var(--green-primary);
}
.btn-outline:hover {
  background: var(--green-primary);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--green-primary);
  border-color: transparent;
  padding-left: 0;
}
.btn-ghost:hover { gap: 12px; }

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 15px 36px; font-size: 16px; }

/* ── BADGE / TAG ── */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-green  { background: var(--green-light); color: var(--green-dark); }
.badge-blue   { background: var(--blue-light);  color: var(--blue); }
.badge-amber  { background: var(--amber-light); color: #7a4e00; }
.badge-navy   { background: var(--navy); color: var(--white); font-size: 11px; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}
.nav-logo-text { line-height: 1.2; }
.nav-logo-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--green-primary);
  letter-spacing: -0.01em;
}
.nav-logo-text span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--green-primary);
  background: var(--green-light);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-dropdown-toggle .chevron {
  font-size: 10px;
  transition: transform var(--transition);
}
.nav-dropdown:hover .chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown-menu a:hover {
  background: var(--green-light);
  color: var(--green-primary);
}
.nav-dropdown-menu a .drop-icon {
  width: 28px;
  height: 28px;
  background: var(--green-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* Donate CTA in nav */
.btn-nav-donate {
  background: var(--green-primary);
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.btn-nav-donate:hover {
  background: var(--green-dark) !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 18px;
  color: var(--text-primary);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: #c8d8e0;
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 50px;
}

.footer-brand {}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.9);
}
.footer-logo-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}
.footer-logo-text span {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  margin-bottom: 22px;
  line-height: 1.5;
}
.footer-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--green-mid); }

.footer-newsletter p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
  line-height: 1.6;
}
.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-newsletter-form input {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter-form input:focus { border-color: var(--green-mid); }
.footer-newsletter-form button {
  padding: 10px 18px;
  background: var(--green-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: background var(--transition);
}
.footer-newsletter-form button:hover { background: var(--green-mid); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p, .footer-bottom a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a:hover { color: var(--green-mid); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ─────────────────────────────────────────
   HERO (page-level, reusable)
───────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: 90px 0 80px;
  background: var(--navy);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=1600') center/cover no-repeat;
  opacity: 0.08;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(42,159,87,0.2);
  border: 1px solid rgba(42,159,87,0.35);
  border-radius: 20px;
  color: var(--green-mid);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.page-hero h1 {
  color: var(--white);
  font-family: var(--font-display);
  margin-bottom: 18px;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   UTILITIES
───────────────────────────────────────── */
.text-green   { color: var(--green-primary); }
.text-green-mid { color: var(--green-mid); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-white   { color: var(--white); }

.bg-surface   { background: var(--surface); }
.bg-white     { background: var(--white); }
.bg-navy      { background: var(--navy); }
.bg-green-tint { background: var(--green-tint); }

.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2       { gap: 8px; }
.gap-3       { gap: 12px; }
.gap-4       { gap: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

.hidden { display: none !important; }

/* ── Animated counter ── */
.count-up { font-variant-numeric: tabular-nums; }

/* ── Scroll animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ─────────────────────────────────────────
   COOKIE CONSENT
───────────────────────────────────────── */
.cookie-bar {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 400px;
  font-size: 13.5px;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
  display: none;
}
.cookie-bar a { color: var(--green-mid); text-decoration: underline; }
.cookie-bar button {
  background: var(--green-primary);
  color: var(--white);
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  transition: background var(--transition);
}
.cookie-bar button:hover { background: var(--green-mid); }

/* ─────────────────────────────────────────
   NEWSLETTER POPUP
───────────────────────────────────────── */
.newsletter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.newsletter-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 42px 40px;
  max-width: 420px;
  width: 100%;
  position: relative;
  text-align: center;
}
.newsletter-modal-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 20px;
}
.newsletter-modal h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.newsletter-modal p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.newsletter-modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-modal-form input {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-modal-form input:focus { border-color: var(--green-primary); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }

/* ─────────────────────────────────────────
   BACK TO TOP
───────────────────────────────────────── */
#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--green-primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform var(--transition);
}
#backToTop:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}
#backToTop.show { display: flex; }

/* ─────────────────────────────────────────
   FORM STYLES (global)
───────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--green-primary); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input.error { border-color: #e53e3e; }

/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 55px 0; }
  .section-header { margin-bottom: 36px; }

  /* Nav */
  .nav-mobile-toggle { display: flex; align-items: center; justify-content: center; }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    gap: 4px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 12px 14px; }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--green-light);
    border-radius: 0;
    background: var(--green-tint);
    margin: 4px 0 4px 14px;
    padding: 4px;
  }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }

  /* Grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; }

  /* Cookie */
  .cookie-bar { left: 12px; right: 12px; max-width: none; flex-wrap: wrap; }

  /* Hero */
  .page-hero { padding: 60px 0 50px; }
}