/* ============================================================
   KRISHNA SARTHI — COMMON STYLESHEET
   Shared across all pages: reset, nav, mobile menu, floats,
   buttons, section utilities, footer.
   Page-specific styles stay in each page's own <style> block.
   ============================================================ */

/* ── RESET & VARS ─────────────────────────────────────── */
:root {
  --gd: #1B4D2E; --gm: #2D7D46; --gl: #4CAF6E; --gp: #E8F5ED;
  --go: #C9941A; --gy: #F5C842; --gyp: #FDF6E3;
  --ww: #FDFAF5; --bd: #E0D8C8; --tx: #1C1C1C; --tm: #4A4A4A; --ts: #7A7060;
  --radius: 12px; --shadow: 0 4px 24px rgba(0,0,0,.08);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'DM Sans', sans-serif; background: var(--ww); color: var(--tx); overflow-x: hidden; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── SKIP LINK ────────────────────────────────────────── */
.skip { position: absolute; top: -60px; left: 1rem; background: var(--gd); color: #fff; padding: .6rem 1.2rem; border-radius: 0 0 8px 8px; font-size: .875rem; font-weight: 600; z-index: 9999; transition: top .2s; }
.skip:focus { top: 0; }

/* ── NAV ──────────────────────────────────────────────── */
.nav { background: var(--gd); height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 16px rgba(0,0,0,.25); }
.nav-logo { display: flex; align-items: center; gap: .75rem; }
.nav-logo img { height: 50px; width: auto; object-fit: contain; }
.nav-logo-text { display: none; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,.75); font-size: .8125rem; font-weight: 500; padding: .45rem .75rem; border-radius: 6px; transition: color .2s, background .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-links a.active { color: var(--gy); background: transparent; }
.drop { position: relative; }
.drop-menu { display: none; position: absolute; top: calc(100% + 10px); left: 0; background: #0e2e1a; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: .4rem; min-width: 210px; box-shadow: 0 12px 40px rgba(0,0,0,.4); z-index: 500; }
.drop:hover .drop-menu, .drop:focus-within .drop-menu { display: block; }
.drop-menu a { display: flex; align-items: center; gap: .6rem; padding: .6rem .875rem; border-radius: 7px; font-size: .8125rem; color: rgba(255,255,255,.8); transition: background .15s; }
.drop-menu a:hover, .drop-menu a:focus { background: rgba(255,255,255,.1); color: #fff; }
.drop-menu a .di { font-size: 1rem; display: flex; align-items: center; }
.nav-donate { background: var(--go) !important; color: #fff !important; padding: .5rem 1rem !important; border-radius: 6px !important; font-weight: 700 !important; font-size: .8125rem !important; }
.nav-donate:hover { background: #a87c14 !important; }
.ham { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; border-radius: 6px; }
.ham span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mob { display: none; flex-direction: column; position: fixed; inset: 68px 0 0 0; background: rgba(14,46,26,.98); z-index: 999; padding: 1.5rem; overflow-y: auto; gap: .25rem; }
.mob.open { display: flex; }
.mob a { color: rgba(255,255,255,.85); font-size: 1rem; font-weight: 500; padding: .875rem 1rem; border-radius: 8px; transition: background .15s; }
.mob a:hover, .mob a.active { background: rgba(255,255,255,.08); color: var(--gy); }
.mob-sep { height: 1px; background: rgba(255,255,255,.08); margin: .5rem 0; }
.mob-donate { background: var(--go) !important; color: #fff !important; font-weight: 700 !important; text-align: center; border-radius: 10px !important; margin-top: .75rem; min-height: 48px; display: flex !important; align-items: center; justify-content: center; }

/* ── FLOATS (WhatsApp + Back to top) ─────────────────── */
.wa-float { position: fixed; bottom: 1.5rem; left: 1.5rem; background: #25D366; color: #fff; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.4); z-index: 990; transition: transform .2s; }
.wa-float:hover { transform: scale(1.1); }
.btt { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--gd); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s; box-shadow: 0 4px 16px rgba(0,0,0,.3); z-index: 990; border: none; cursor: pointer; }
.btt.show { opacity: 1; pointer-events: auto; }
.btt:hover { transform: translateY(-3px); }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn-gold { display: inline-flex; align-items: center; gap: .5rem; background: var(--go); color: #fff; padding: .875rem 2rem; border-radius: 8px; font-size: .9375rem; font-weight: 700; transition: background .2s, transform .2s; box-shadow: 0 4px 20px rgba(197,148,26,.3); min-height: 48px; }
.btn-gold:hover { background: #a87c14; transform: translateY(-2px); }
.btn-green { display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: var(--gm); padding: .8125rem 1.75rem; border-radius: 8px; font-size: .9375rem; font-weight: 600; border: 2px solid var(--gm); min-height: 48px; transition: background .2s; }
.btn-green:hover { background: var(--gp); }

/* ── SECTION UTILS ────────────────────────────────────── */
.sec { padding: 4rem 2rem; }
.wrap { max-width: 1140px; margin: 0 auto; }
.lbl { font-size: .6875rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; display: flex; align-items: center; gap: .625rem; margin-bottom: .75rem; }
.lbl::before { content: ''; width: 24px; height: 2px; }
.lbl.green { color: var(--gm); } .lbl.green::before { background: var(--gm); }
.lbl.gold { color: var(--go); } .lbl.gold::before { background: var(--go); }
.lbl.center { justify-content: center; }
.h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.625rem,4vw,2.5rem); font-weight: 900; color: var(--tx); line-height: 1.2; margin-bottom: .875rem; }
.h2 em { color: var(--gm); font-style: normal; }
.desc { font-size: .9375rem; color: var(--tm); line-height: 1.75; }
.hindi { font-family: 'Tiro Devanagari Hindi', serif; }
.quote { background: var(--gyp); border-left: 4px solid var(--go); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; font-family: 'Tiro Devanagari Hindi', serif; font-size: 1.0625rem; color: var(--go); line-height: 1.65; margin-top: 1.25rem; }

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer { background: #0a1f14; color: #fff; padding: 0; }
.footer-wrap { max-width: 1200px; margin: 0 auto; padding: 3.5rem 2rem 0; }
.footer-top { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-logo-link { display: inline-block; margin-bottom: .75rem; }
.footer-tagline-hi { font-family: 'Tiro Devanagari Hindi', serif; font-size: .9375rem; color: #F5C842; margin-bottom: .875rem; }
.footer-desc { font-size: .8125rem; color: rgba(255,255,255,.55); line-height: 1.8; margin-bottom: 1.25rem; max-width: 360px; }
.footer-contact-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.fci { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.fci:hover { color: #F5C842; }
.footer-social { display: flex; gap: .5rem; flex-wrap: wrap; }
.fsoc { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); text-decoration: none; transition: all .2s; }
.fsoc:hover { transform: translateY(-2px); }
.fsoc.fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.fsoc.ig:hover { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); border-color: #e1306c; color: #fff; }
.fsoc.yt:hover { background: red; border-color: red; color: #fff; }
.fsoc.li:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.fsoc.wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.fcol-title { font-size: .625rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1.125rem; font-weight: 700; }
.fcol a { display: block; font-size: .8125rem; color: rgba(255,255,255,.6); margin-bottom: .625rem; text-decoration: none; transition: color .2s; }
.fcol a:hover { color: #F5C842; }
.fqr-note { font-size: .75rem; color: rgba(255,255,255,.5); margin-bottom: .75rem; }
.fqr-box { width: 110px; height: 110px; background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: .625rem; }
.fqr-box img { width: 100%; height: 100%; object-fit: cover; }
.fupi { font-size: .75rem; font-weight: 700; color: #F5C842; font-family: monospace; margin-bottom: .375rem; letter-spacing: .5px; }
.fbank { font-size: .6875rem; color: rgba(255,255,255,.42); line-height: 1.5; }
/* ROOT FIX: .icon-svg had no size rule anywhere on the site, so every icon using
   this class (hero headings, story/value cards, timeline dots, dropdown menus, CTAs)
   rendered at the browser's unsized-SVG default (~300x150px). Sizing to 1em makes
   each icon scale with its container's font-size — which pages were already setting
   (e.g. .story-icon{font-size:4rem}) in clear anticipation of this exact rule. */
.icon-svg { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.125em; }
/* Footer contact icon sizing — covers .fci and .footer-contact-item markup used across pages, with or without the .fci-icon wrapper span. Without this, unsized <svg> icons render at browser-default size (huge). */
.fci svg, .footer-contact-item svg, .fci-icon svg, .fci-icon { width: 15px; height: 15px; flex-shrink: 0; opacity: .7; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; flex-wrap: wrap; gap: .625rem; }
.fbot-l, .fbot-r { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: rgba(255,255,255,.4); flex-wrap: wrap; }
.fbot-r a { color: rgba(255,255,255,.48); text-decoration: none; transition: color .2s; }
.fbot-r a:hover { color: #fff; }
.fdot { opacity: .4; }

/* ── NAV + FOOTER RESPONSIVE ──────────────────────────── */
@media (max-width: 1100px) { .nav { padding: 0 1.25rem; } }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .ham { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .fbot-l, .fbot-r { justify-content: center; }
  .footer-wrap { padding: 2.5rem 1.25rem 0; }
  .footer-desc { max-width: 100%; }
}