/* ════════════════════════════════════════════
   GHAR NIRMAN FOUNDATION — Shared Stylesheet
   Primary: #14167D (Blue) · #157F3D (Green)
   ════════════════════════════════════════════ */

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

:root {
  --blue:        #14167D;
  --blue-light:  #1A1E99;
  --blue-dark:   #0E1057;
  --blue-pale:   #E8E9F8;
  --blue-mid:    #C5C7EE;
  --green:       #157F3D;
  --green-light: #1A9E4C;
  --green-dark:  #0F5C2C;
  --green-pale:  #E8F5ED;
  --white:       #FFFFFF;
  --off-white:   #F8F9FE;
  --gray-light:  #F2F4FA;
  --gray-mid:    #DDE1F0;
  --gray-text:   #5A5C7A;
  --dark:        #0D0F2B;
  --font-main:   'Outfit', sans-serif;
  --font-dev:    'Noto Sans Devanagari', sans-serif;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 2px 16px rgba(20,22,125,0.07);
  --shadow-md:   0 6px 32px rgba(20,22,125,0.12);
  --shadow-lg:   0 12px 48px rgba(20,22,125,0.16);
  --transition:  0.22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 840px; margin: 0 auto; padding: 0 24px; }

/* ── SECTION BASE ─────────────────────────── */
section { padding: 96px 0; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 16.5px;
  color: var(--gray-text);
  line-height: 1.75;
  max-width: 560px;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── BUTTONS ──────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: var(--white);
  padding: 13px 26px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--green); transition: all var(--transition);
  cursor: pointer; font-family: var(--font-main);
}
.btn-primary:hover {
  background: var(--green-dark); border-color: var(--green-dark);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(21,127,61,0.3);
}
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: var(--white);
  padding: 13px 26px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--blue); transition: all var(--transition);
  cursor: pointer; font-family: var(--font-main);
}
.btn-secondary:hover {
  background: var(--blue-dark); border-color: var(--blue-dark);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(20,22,125,0.28);
}
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--blue);
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 2px solid var(--blue-mid); transition: all var(--transition);
  cursor: pointer; font-family: var(--font-main);
}
.btn-outline:hover {
  background: var(--blue-pale); border-color: var(--blue);
}
.btn-outline-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--white);
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 2px solid rgba(255,255,255,0.35); transition: all var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }

/* ── NAVBAR ───────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-mid); transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between; height: 70px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.nav-logo-icon {
  width: 42px; height: 42px; background: var(--blue); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 22px; height: 22px; fill: white; }
.nav-logo-text { line-height: 1.2; }
.nav-logo-text .name {
  display: block; font-size: 16px; font-weight: 800;
  color: var(--blue); font-family: var(--font-dev);
}
.nav-logo-text .sub {
  display: block; font-size: 10.5px; font-weight: 600;
  color: var(--gray-text); letter-spacing: 0.06em; text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: 28px; list-style: none;
}
.nav-links a {
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  color: var(--dark); transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-cta {
  background: var(--green) !important; color: var(--white) !important;
  padding: 9px 20px !important; border-radius: var(--radius) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--green-dark) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;

  position: relative;
  z-index: 9999;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px; transition: all 0.3s;
}

/* ── FOOTER ───────────────────────────────── */
footer {
  background: var(--dark); padding: 72px 0 0;
  color: rgba(255,255,255,0.65);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; text-decoration: none;
}
.footer-logo-icon {
  width: 40px; height: 40px; background: var(--blue); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-icon svg { width: 20px; height: 20px; fill: white; }
.footer-logo-text {
  font-size: 16px; font-weight: 800; color: var(--white);
  font-family: var(--font-dev);
}
.footer-brand p {
  font-size: 13.5px; line-height: 1.75;
  color: rgba(255,255,255,0.45); margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 8px; }
.social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); text-decoration: none; transition: all var(--transition);
}
.social-btn svg { width: 15px; height: 15px; fill: currentColor; }
.social-btn:hover { background: var(--blue); border-color: var(--blue); color: white; }
.footer-heading {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--white); margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 13.5px; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: rgba(255,255,255,0.5);
  margin-bottom: 10px; line-height: 1.5;
}
.footer-contact-item svg { width: 15px; height: 15px; fill: var(--green-light); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-contact-item a:hover { color: white; }
.footer-next-event {
  margin-top: 18px; padding: 14px 16px;
  background: rgba(21,127,61,0.15); border-radius: 8px;
  border: 1px solid rgba(21,127,61,0.3);
}
.footer-next-event .label {
  font-size: 10px; color: rgba(255,255,255,0.4);
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px;
}
.footer-next-event .date { font-size: 14px; color: white; font-weight: 700; }
.footer-next-event .venue { font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-bottom {
  padding: 18px 0; display: flex; align-items: center;
  justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--white); padding: 16px 24px 20px;
    border-bottom: 1px solid var(--gray-mid);
    box-shadow: var(--shadow-md); gap: 14px; z-index: 999;
  }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* ── SCROLL REVEAL ────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
