/* ═══════════════════════════════════════════
   RASHTRA NIRMAN SAHYOG SANSTHA
   Shared Stylesheet
═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Tiro+Devanagari+Hindi&display=swap');

:root {
  --saffron:    #FF9933;
  --saffron-dk: #e07a00;
  --saffron-lt: #fff4e6;
  --green:      #138808;
  --green-dk:   #0a5c05;
  --green-lt:   #edfaed;
  --gold:       #C9A84C;
  --gold-lt:    #fdf6e3;
  --ink:        #111827;
  --ink-mid:    #374151;
  --ink-soft:   #6B7280;
  --border:     #E5E7EB;
  --off-white:  #F9FAFB;
  --white:      #ffffff;
  --nav-h:      72px;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 20px 48px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography helpers ── */
.devanagari { font-family: 'Tiro Devanagari Hindi', serif; }

.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 30px;
  margin-bottom: 14px;
}
.tag-saffron { color: var(--saffron); background: var(--saffron-lt); border: 1px solid rgba(255,153,51,.25); }
.tag-green   { color: var(--green);   background: var(--green-lt);   border: 1px solid rgba(19,136,8,.25);  }

.section-heading {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800; line-height: 1.2; color: var(--ink);
}
.section-heading .s { color: var(--saffron); }
.section-heading .g { color: var(--green); }

.section-sub {
  color: var(--ink-soft); font-size: 1.03rem;
  font-weight: 400; line-height: 1.85; max-width: 560px;
}

/* ── Button system ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 50px;
  font-size: .9rem; font-weight: 600; transition: all .25s ease;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary   { background: var(--saffron); color: #fff; box-shadow: 0 4px 18px rgba(255,153,51,.35); }
.btn-primary:hover { background: var(--saffron-dk); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,153,51,.45); }
.btn-green     { background: var(--green); color: #fff; box-shadow: 0 4px 18px rgba(19,136,8,.3); }
.btn-green:hover { background: var(--green-dk); transform: translateY(-2px); }
.btn-outline   { border-color: var(--saffron); color: var(--saffron); background: transparent; }
.btn-outline:hover { background: var(--saffron); color: #fff; transform: translateY(-2px); }
.btn-white     { background: #fff; color: var(--ink); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 92px 0; }
.section-pad-sm { padding: 60px 0; }

/* ── Reveal animations ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* ── Tri-colour divider ── */
.tricolor-bar {
  display: flex; height: 4px; border-radius: 4px; overflow: hidden;
  width: 64px; margin-bottom: 20px;
}
.tricolor-bar span:nth-child(1) { flex: 1; background: var(--saffron); }
.tricolor-bar span:nth-child(2) { flex: 1; background: #fff; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.tricolor-bar span:nth-child(3) { flex: 1; background: var(--green); }

/* ── Cards base ── */
.card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--border); transition: all .28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ── WhatsApp FAB ── */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 9000;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  animation: waPulse 3s ease-in-out infinite; transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.12); }
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 4px 30px rgba(37,211,102,.7), 0 0 0 8px rgba(37,211,102,.1); }
}

/* ── Scroll to top ── */
.scroll-top {
  position: fixed; bottom: 28px; left: 28px; z-index: 9000;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--ink); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: all .25s;
  opacity: 0; pointer-events: none;
}
.scroll-top.show { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--saffron); color: #fff; border-color: var(--saffron); transform: translateY(-2px); }

/* ── Page hero (for inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--ink) 0%, #1f2937 100%);
  padding: 72px 0 64px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(255,153,51,.12) 0%, transparent 65%),
              radial-gradient(ellipse 40% 60% at 20% 80%, rgba(19,136,8,.1) 0%, transparent 60%);
}
.page-hero-tag { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  color: #fff; line-height: 1.2; position: relative; z-index: 1;
  margin-bottom: 14px;
}
.page-hero h1 span { color: var(--saffron); }
.page-hero p {
  font-size: 1.05rem; color: rgba(255,255,255,.65);
  max-width: 560px; margin: 0 auto; position: relative; z-index: 1;
}
.page-hero-breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .8rem; color: rgba(255,255,255,.45);
  margin-top: 20px; position: relative; z-index: 1;
}
.page-hero-breadcrumb a { color: var(--saffron); }
.page-hero-breadcrumb a:hover { text-decoration: underline; }

/* ── Form styles ── */
.form-label {
  display: block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-mid); margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  background: var(--off-white); border: 1.5px solid var(--border);
  border-radius: 10px; font-family: inherit; font-size: .92rem;
  color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--saffron); background: #fff;
  box-shadow: 0 0 0 3px rgba(255,153,51,.12);
}
.form-textarea { min-height: 110px; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-soft); }

/* ── Stats strip ── */
.stats-strip { background: var(--ink); padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell {
  text-align: center; padding: 8px 16px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat-cell:last-child { border-right: none; }
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--saffron); line-height: 1; display: block; }
.stat-label  { font-size: .75rem; color: rgba(255,255,255,.5); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }

/* ── Footer ── */
.site-footer {
  background: #0d1117; color: rgba(255,255,255,.5);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand-desc { font-size: .85rem; line-height: 1.8; margin-top: 12px; }
.footer-col-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.75);
  margin-bottom: 16px;
}
.footer-col a { display: block; font-size: .85rem; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--saffron); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: .8rem;
}
.footer-tricolor { display: flex; gap: 2px; }
.ftc { height: 12px; width: 6px; border-radius: 2px; }

/* ── Navbar ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8000;
  height: var(--nav-h); background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px); border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .3s;
}
.site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.nav-inner {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.nav-logo-wrap { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon {
  width: 42px; height: 42px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dk) 45%, var(--green) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; box-shadow: 0 3px 12px rgba(255,153,51,.3);
}
.nav-logo-lines .l1 {
  font-size: .7rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--saffron); line-height: 1.3;
}
.nav-logo-lines .l2 { font-size: .62rem; color: var(--ink-soft); font-weight: 400; }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu a {
  font-size: .82rem; font-weight: 500; color: var(--ink-mid);
  padding: 7px 12px; border-radius: 8px; transition: all .2s;
  white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--saffron); background: var(--saffron-lt); }
.nav-join { margin-left: 8px; padding: 9px 20px; font-size: .82rem; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; border-radius: 8px;
}
.hamburger:hover { background: var(--saffron-lt); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 7999;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg); padding: 12px 20px 20px;
  flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: .95rem; font-weight: 500; padding: 11px 14px; border-radius: 10px; transition: all .2s; }
.mobile-nav a:hover { background: var(--saffron-lt); color: var(--saffron); }
.mobile-nav .mn-cta { background: var(--saffron); color: #fff; text-align: center; border-radius: 50px; margin-top: 8px; font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav-menu, .nav-join { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 16px; }
  .stat-cell:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 580px) {
  .section-pad { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}