/* ============================================================
   PAHAL WELFARE SOCIETY — Global Styles
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --green-dark:   #1a5c38;
  --green:        #2d8653;
  --green-light:  #4caf7d;
  --green-pale:   #e8f5ee;
  --saffron:      #f4831f;
  --saffron-light:#fff3e8;
  --navy:         #0d2b4e;
  --sky:          #1976d2;
  --white:        #ffffff;
  --off-white:    #f7f9f7;
  --text-dark:    #1a2a1e;
  --text-mid:     #3d5a47;
  --text-light:   #6b8a72;
  --border:       #d4e8da;
  --shadow-sm:    0 2px 8px rgba(26,92,56,.08);
  --shadow-md:    0 8px 32px rgba(26,92,56,.14);
  --shadow-lg:    0 20px 60px rgba(26,92,56,.18);
  --radius:       14px;
  --radius-lg:    22px;
  --transition:   all .3s cubic-bezier(.4,0,.2,1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-family: var(--font-display); line-height: 1.25; }
h1 { font-size: clamp(2rem,5vw,3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem,3.5vw,2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem,2.5vw,1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--text-mid); }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.text-center { text-align: center; }
.green { color: var(--green); }
.saffron { color: var(--saffron); }

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-pale);
  padding: 5px 16px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem,3.5vw,2.6rem);
  color: var(--text-dark);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 620px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 99px;
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,134,83,.35);
}
.btn-secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-secondary:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-saffron {
  background: var(--saffron);
  color: var(--white);
  border-color: var(--saffron);
}
.btn-saffron:hover {
  background: #d96d0a;
  border-color: #d96d0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,131,31,.35);
}
.btn-white {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--green-pale);
  transform: translateY(-2px);
}
.btn-lg { padding: 17px 38px; font-size: 1.05rem; }

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

/* ── Tags ── */
.tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--green-pale);
  color: var(--green-dark);
}

/* ============================================================
   NAVBAR
   ============================================================ */

   .navbar .logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  border: none;
}
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.navbar.dark-start {
  background: transparent;
}
.navbar.dark-start.scrolled {
  background: rgba(255,255,255,.96);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
/* Logo Container */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo Image (REAL FIX) */
.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Remove box styling completely */
.nav-logo .logo-icon {
  background: none;
  box-shadow: none;
  border-radius: 0;
  width: auto;
  height: auto;
  padding: 0;
}

/* Text */
.nav-logo .logo-text .name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.1;
}

.nav-logo .logo-text .tagline {
  font-size: 0.65rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 7px 13px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  background: var(--green-pale);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta .btn { padding: 10px 22px; font-size: .88rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Drawer */
.nav-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px,90vw);
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  transition: right .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.nav-drawer.open { right: 0; }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.drawer-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--text-dark);
  transition: var(--transition);
}
.drawer-close:hover { background: var(--green-pale); color: var(--green); }

.drawer-links { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}
.drawer-links a i { width: 20px; color: var(--green); }
.drawer-links a:hover,
.drawer-links a.active { background: var(--green-pale); color: var(--green); }
.drawer-footer {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drawer-footer .btn { justify-content: center; }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .logo-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 900;
  font-family: var(--font-display);
  margin-bottom: 16px;
}
.footer-brand h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.footer-brand .est {
  font-size: .78rem;
  color: var(--green-light);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-bottom: 20px; }
.social-links {
  display: flex;
  gap: 10px;
}
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .9rem;
  transition: var(--transition);
}
.social-links a:hover { background: var(--green); transform: translateY(-2px); }

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .03em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-col ul li a:before {
  content: '→';
  color: var(--green-light);
  font-size: .75rem;
}
.footer-col ul li a:hover { color: white; padding-left: 4px; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .88rem;
  margin-bottom: 12px;
}
.footer-contact li i { color: var(--green-light); margin-top: 3px; flex-shrink: 0; }


.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .82rem; }
.footer-bottom .links { display: flex; gap: 20px; }
.footer-bottom .links a { font-size: .82rem; transition: var(--transition); }
.footer-bottom .links a:hover { color: white; }

/* ============================================================
   HERO SHARED
   ============================================================ */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--green) 60%, var(--green-light) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .82rem;
  opacity: .8;
  margin-bottom: 16px;
}
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(2rem,5vw,3.2rem); color: white; margin-bottom: 16px; }
.page-hero p  { font-size: 1.1rem; opacity: .85; max-width: 580px; margin: 0 auto; color: white; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }

.animate-fade-up { animation: fadeUp .7s ease forwards; }
.animate-fade-up-d1 { animation: fadeUp .7s .15s ease both; }
.animate-fade-up-d2 { animation: fadeUp .7s .3s ease both; }
.animate-fade-up-d3 { animation: fadeUp .7s .45s ease both; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE — NAVBAR
   ============================================================ */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* ============================================================
   RESPONSIVE — FOOTER
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   MISC SHARED COMPONENTS
   ============================================================ */
.divider {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--saffron));
  border-radius: 2px;
  margin: 18px 0 24px;
}
.divider.center { margin: 18px auto 24px; }

.icon-box {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-pale);
  color: var(--green);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.icon-box.saffron { background: var(--saffron-light); color: var(--saffron); }
.icon-box.navy { background: rgba(13,43,78,.08); color: var(--navy); }

/* Form shared */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: var(--transition);
}
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,134,83,.1); }
.form-control.error { border-color: #e53935; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b8a72' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-error {
  font-size: .8rem;
  color: #e53935;
  margin-top: 5px;
  display: none;
}
.form-error.show { display: block; }

/* Success message */
.success-msg {
  display: none;
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  color: var(--green-dark);
  padding: 16px 20px;
  border-radius: 10px;
  font-weight: 500;
  text-align: center;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.success-msg.show { display: flex; }

/* Impact counter */
.stat-card {
  text-align: center;
  padding: 36px 24px;
}
.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card .stat-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.stat-card .stat-icon {
  font-size: 2rem;
  color: var(--green-light);
  margin-bottom: 12px;
}
