:root {
  --saffron: #FF6A13;
  --saffron-dark: #D9500A;
  --saffron-light: #FFB37A;
  --gold: #E8A94A;
  --maroon: #7A1F2B;
  --navy: #16233F;
  --navy-light: #223259;
  --cream: #FFF8F1;
  --cream-deep: #FBEDE0;
  --gray: #6B7280;
  --border: #EDE3D6;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(22, 35, 63, 0.18);
  --shadow-lift: 0 20px 40px -16px rgba(122, 31, 43, 0.28);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.7;
}
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }
a { color: var(--saffron-dark); text-decoration: none; transition: color .2s ease; }
a:hover { text-decoration: none; color: var(--maroon); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; color: var(--navy); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.grid .reveal:nth-child(1) { transition-delay: .05s; }
.grid .reveal:nth-child(2) { transition-delay: .15s; }
.grid .reveal:nth-child(3) { transition-delay: .25s; }
.grid .reveal:nth-child(4) { transition-delay: .35s; }

/* Entrance / ambient animation */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulseHeart { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@keyframes glowShift { 0%, 100% { opacity: .12; } 50% { opacity: .22; } }
@keyframes shimmerBg { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.hero-enter { opacity: 0; animation: fadeInUp .8s ease forwards; }
.hero-enter:nth-child(1) { animation-delay: .05s; }
.hero-text > .hero-enter:nth-of-type(1) { animation-delay: .1s; }
.hero-eyebrow.hero-enter { animation-delay: .1s; }
h1.hero-enter { animation-delay: .28s; }
.hero-text > p.hero-enter { animation-delay: .46s; }
.hero-actions.hero-enter { animation-delay: .62s; }

.hero::before { animation: glowShift 7s ease-in-out infinite; }
.pulse-heart { display: inline-block; animation: pulseHeart 1.6s ease-in-out infinite; }

/* Top ribbon */
.top-ribbon { background: var(--navy); color: #D9E0EE; font-size: .82rem; text-align: center; padding: 7px 0; }
.top-ribbon a { color: var(--saffron-light); font-weight: 600; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; color: var(--navy); font-family: var(--font-head); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 48px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.brand-logo-footer { height: 54px; filter: brightness(0) invert(1); opacity: .95; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--navy); font-weight: 600; font-size: .95rem; }
.site-nav a:hover, .site-nav a.active { color: var(--saffron-dark); text-decoration: none; }
.btn-nav-donate { background: linear-gradient(135deg, var(--saffron), var(--maroon)); color: var(--white) !important; padding: 10px 20px; border-radius: 30px; box-shadow: 0 6px 16px -6px rgba(217,80,10,.6); }
.btn-nav-donate:hover { filter: brightness(1.08); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--navy); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 16px 20px; gap: 14px; border-bottom: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .btn-nav-donate { display: inline-block; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, #2C3D66 0%, var(--navy) 55%, #0F1830 100%);
  color: var(--white); padding: 90px 0 100px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, var(--saffron) 0, transparent 45%),
                     radial-gradient(circle at 80% 70%, var(--gold) 0, transparent 40%);
}
.hero .container { position: relative; display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.hero-text { flex: 1 1 440px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--saffron-light); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: .78rem; margin-bottom: 18px; }
.hero-eyebrow .glyph { font-size: 1.1rem; }
.hero-text h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); margin: 0 0 20px; color: var(--white); }
.hero-text h1 em { font-style: italic; color: var(--saffron-light); }
.hero-text p { font-size: 1.12rem; color: #D9E0EE; margin-bottom: 30px; max-width: 560px; }
.hero-image { flex: 1 1 320px; text-align: center; position: relative; }
.hero-logo-card {
  display: flex; align-items: center; justify-content: center;
  width: 280px; height: 280px; margin: 0 auto; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-lift);
  padding: 34px; animation: floatY 5s ease-in-out infinite;
}
.hero-logo-card img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 720px) { .hero-logo-card { width: 200px; height: 200px; padding: 26px; } }
.btn { display: inline-block; padding: 13px 28px; border-radius: 30px; font-weight: 700; font-size: .98rem; }
.btn-primary { background: linear-gradient(135deg, var(--saffron), var(--maroon)); color: var(--white); box-shadow: 0 10px 24px -8px rgba(217,80,10,.55); }
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); text-decoration: none; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Wave divider between hero and content */
.wave-divider { margin-top: -2px; line-height: 0; }
.wave-divider svg { width: 100%; height: 60px; display: block; }
.wave-divider path { fill: var(--cream); }

/* Sections */
section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 46px; }
.section-title .kicker { color: var(--saffron-dark); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: .8rem; }
.section-title h2 { margin: 10px 0 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-title p { color: var(--gray); max-width: 620px; margin: 14px auto 0; font-size: 1.02rem; }

/* Story / mission quote block */
.story-quote { text-align: center; max-width: 760px; margin: 0 auto; position: relative; }
.story-quote .mark { font-family: var(--font-head); font-size: 4rem; color: var(--saffron-light); line-height: 0; display: block; margin-bottom: 6px; }
.story-quote p { font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-style: italic; color: var(--navy); line-height: 1.5; }
.story-quote .attribution { font-family: var(--font-body); font-style: normal; font-weight: 700; color: var(--saffron-dark); margin-top: 18px; font-size: .95rem; }

/* Grids */
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }

/* Cause cards with icon medallions */
.cause-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.cause-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.cause-card .icon-medal { width: 66px; height: 66px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--saffron-light), var(--saffron)); color: var(--white); margin: -50px auto 16px; box-shadow: 0 8px 18px -6px rgba(217,80,10,.5); border: 4px solid var(--white); }
.cause-card .icon-medal svg { width: 30px; height: 30px; }
.cause-card .top-fill { height: 60px; background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.cause-card .body { padding: 0 22px 26px; flex: 1; display: flex; flex-direction: column; text-align: center; }
.cause-card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.cause-card p { color: var(--gray); flex: 1; font-size: .95rem; }
.badge { display: inline-block; background: var(--cream-deep); color: var(--saffron-dark); font-size: .72rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; margin-bottom: 12px; }

.stat-strip { background: linear-gradient(120deg, var(--saffron) 0%, var(--maroon) 100%); color: var(--white); padding: 50px 0; }
.stat-strip .grid-4 { text-align: center; }
.stat-strip .num, .stat-strip .num-static { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; }
.stat-strip .label { opacity: .92; font-size: .92rem; letter-spacing: .3px; }

.team-card { text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.team-card img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; background: var(--navy); border: 4px solid var(--cream-deep); }
.avatar-initials { width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--saffron-light), var(--saffron)); color: var(--white); font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; border: 4px solid var(--cream-deep); box-shadow: 0 8px 18px -6px rgba(217,80,10,.5); }
.team-card h3 { margin: 0 0 4px; }
.team-card .role { color: var(--saffron-dark); font-weight: 700; margin-bottom: 12px; font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; }

.testimonial { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; box-shadow: var(--shadow); }
.testimonial::before { content: "\201C"; font-family: var(--font-head); font-size: 3.5rem; color: var(--cream-deep); position: absolute; top: 6px; left: 18px; line-height: 1; z-index: 0; }
.testimonial p.quote { font-style: italic; color: var(--navy); position: relative; z-index: 1; font-size: 1.02rem; }
.testimonial .who { font-weight: 700; margin-top: 14px; color: var(--saffron-dark); }
.testimonial .who span { display: block; font-weight: 400; color: var(--gray); font-size: .85rem; }

.cta-strip { background: linear-gradient(135deg, var(--navy) 0%, #0F1830 100%); color: var(--white); text-align: center; padding: 70px 0; position: relative; overflow: hidden; }
.cta-strip::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: radial-gradient(circle at 15% 20%, var(--saffron) 0, transparent 40%), radial-gradient(circle at 85% 80%, var(--gold) 0, transparent 40%); }
.cta-strip .container { position: relative; }
.cta-strip h2 { margin: 0 0 14px; color: var(--white); }
.cta-strip p { color: #D9E0EE; margin-bottom: 30px; font-size: 1.05rem; }

/* Impact tiers (donate page) */
.impact-tiers { display: grid; gap: 16px; }
.impact-tier { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); }
.impact-tier .amt { font-family: var(--font-head); font-weight: 700; color: var(--saffron-dark); font-size: 1.15rem; min-width: 76px; }
.impact-tier p { margin: 0; color: var(--navy); font-size: .95rem; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit; background: var(--cream);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(255,106,19,.15); background: var(--white); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; }
.alert-success { background: #E5F6EA; color: #1E7A38; border: 1px solid #BEE6C8; }
.alert-error { background: #FDEAEA; color: #B3261E; border: 1px solid #F5C2C0; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.info-list li:last-child { border-bottom: none; }
.info-list .icon { color: var(--saffron-dark); font-weight: 700; }

/* Donate */
.qr-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; text-align: center; box-shadow: var(--shadow); }
#qrcode { display: inline-block; margin: 16px auto; padding: 14px; background: var(--white); border: 2px solid var(--cream-deep); border-radius: var(--radius-sm); }
.upi-id { font-size: 1.2rem; font-weight: 800; color: var(--navy); background: var(--cream); padding: 10px 18px; border-radius: var(--radius-sm); display: inline-block; margin: 10px 0; letter-spacing: .5px; }

/* Footer */
.footer-wave svg { width: 100%; height: 50px; display: block; }
.footer-wave path { fill: var(--navy); }
.site-footer { background: var(--navy); color: #C9D2E3; padding: 10px 0 0; }
.footer-tagline { font-style: italic; color: #AEB9D4; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; padding: 30px 0; }
.footer-grid .brand { color: var(--white); margin-bottom: 12px; }
.footer-grid h4 { color: var(--white); margin: 0 0 14px; font-family: var(--font-head); }
.footer-grid a { color: #C9D2E3; display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--saffron-light); }
.social-links { display: flex; gap: 14px; margin-top: 14px; }
.footer-bottom { border-top: 1px solid #2C3B60; padding: 18px 20px; text-align: center; font-size: .88rem; color: #8C99BC; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.notice-box { background: linear-gradient(135deg, #FFF3E0, #FFE8D1); border: 1px solid #FFD9A8; border-radius: var(--radius); padding: 24px; margin-top: 20px; color: #7A4A00; }
.notice-box h3 { color: #7A4A00; }

/* ============ Responsive: tablets ============ */
@media (max-width: 960px) {
  .container { padding: 0 18px; }
  section { padding: 54px 0; }
  .hero { padding: 60px 0 76px; }
  .hero .container { gap: 34px; text-align: center; justify-content: center; }
  .hero-text { flex: 1 1 100%; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-image { flex: 1 1 100%; order: -1; }
  .hero-image .frame { width: 180px; height: 180px; }
  .cta-strip { padding: 54px 0; }
  .footer-grid { padding: 26px 0; gap: 24px; }
}

/* ============ Responsive: phones/tablets ============ */
@media (max-width: 720px) {
  .top-ribbon { font-size: .72rem; padding: 6px 10px; }
  .top-ribbon .container { white-space: normal; line-height: 1.5; }
  .header-inner { padding: 10px 16px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: .95rem; }
  section { padding: 44px 0; }
  .section-title { margin-bottom: 30px; }
  .hero { padding: 46px 0 60px; }
  .hero-text h1 { font-size: 1.7rem; }
  .hero-text p { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .story-quote .mark { font-size: 3rem; }
  .story-quote p { font-size: 1.15rem; }
  .grid { gap: 18px; }
  .cause-card .icon-medal { width: 56px; height: 56px; margin-top: -40px; }
  .cause-card .icon-medal svg { width: 24px; height: 24px; }
  .cause-card .top-fill { height: 44px; }
  .stat-strip { padding: 34px 0; }
  .stat-strip .num { font-size: 2rem; }
  .stat-strip .grid-4 { gap: 22px; }
  .card, .form-card, .qr-box { padding: 22px; }
  .cta-strip h2 { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-links { justify-content: center; }
  .footer-bottom { font-size: .8rem; padding: 16px; }
  .impact-tier { flex-direction: column; text-align: center; gap: 6px; }
}

@media (max-width: 420px) {
  .hero-text h1 { font-size: 1.45rem; }
  .btn { padding: 12px 20px; font-size: .92rem; }
  .upi-id { font-size: 1rem; word-break: break-all; }
}

/* Tables/embeds never overflow the viewport */
iframe, table { max-width: 100%; }
.form-card, .card, .qr-box, .cause-card, .testimonial, .team-card { max-width: 100%; }
