/* ============================================================
   FOURBROTHERS FOUNDATION — Website Stylesheet
   Palette and design follow the trust's existing branding.
   ============================================================ */

:root {
  /* Palette derived from the Trust banner: deep navy + green + olive/lime.
     Variable names are kept for compatibility; only the colors changed. */
  --saffron: #2FA24E;      /* fresh green — gradient start */
  --saffron-dark: #1F7A3A; /* green — gradient mid */
  --red: #2A55C7;          /* bright blue — primary: navbar, headings, buttons */
  --red-dark: #1D3F9E;     /* deeper blue — hover */
  --gold: #93C01F;         /* lime — accent: bars, pills, numbers */
  --green: #2FA24E;
  --ink: #16224A;          /* navy — text */
  --cream: #F5F8FC;        /* light cool background */
  --muted: #4A5568;
  --max: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Devanagari', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 { font-weight: 900; line-height: 1.2; }
img { max-width: 100%; display: block; }
a { color: var(--red); }

.wrap { width: min(var(--max), 92%); margin: 0 auto; }
.text-center { text-align: center; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 17px;
  padding: 14px 34px; border-radius: 40px; transition: transform .15s, box-shadow .2s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.btn-gold { background: var(--gold); color: var(--red); }
.btn-outline { background: #fff; color: var(--red); border: 2px solid var(--red); }
.btn-red { background: var(--red); color: #fff; }

/* ---------- NAVBAR ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--red);
  box-shadow: 0 2px 14px rgba(0,0,0,0.25);
}
nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
nav .brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
nav .brand img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; background:#fff; }
nav .brand span { font-size: 20px; font-weight: 800; }
nav ul { list-style: none; display: flex; gap: 26px; align-items: center; }
nav ul a { color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; transition: color .2s; }
nav ul a:hover, nav ul a.active { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }
.lang-btn {
  background: var(--gold); color: var(--red); border: none; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 15px; padding: 7px 16px;
  border-radius: 30px; transition: transform .15s, box-shadow .2s;
}
.lang-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.25); }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(147,192,31,0.18), transparent 48%),
    linear-gradient(120deg, #eef4ff 0%, #eafaf0 100%);
  color: var(--ink); text-align: center; padding: 56px 0;
  border-bottom: 1px solid #e6ecf6;
}
.page-hero h1 { font-size: 44px; color: var(--red); text-shadow: none; }
.page-hero p { font-size: 18px; margin-top: 12px; color: var(--muted); }

/* ---------- HOME HERO ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(147,192,31,0.22), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(42,85,199,0.16), transparent 46%),
    linear-gradient(180deg, #ffffff 0%, #eef4ff 55%, #eafaf0 100%);
  color: var(--ink); text-align: center; padding: 28px 0 12px; overflow: hidden;
}
.hero .logo-big {
  width: 150px; height: 150px; border-radius: 50%;
  background: #fff; border: 6px solid var(--gold);
  object-fit: cover; margin: 0 auto 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.hero h1 { font-size: 56px; color: var(--red); text-shadow: none; }
.hero .tagline {
  display: inline-block; margin-top: 16px; background: var(--gold); color: var(--red);
  font-weight: 800; font-size: 20px; padding: 8px 28px; border-radius: 40px;
}
.hero p.lead { max-width: 720px; margin: 24px auto 0; font-size: 20px; color: var(--muted); }
.hero .cta { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- BANNER STRIP ---------- */
/* Home banner — adjust size with --banner-max (width) and --banner-maxh (height) */
/* Home banner — adjust width with --banner-max */
.banner-strip {
  background: #fff; padding: 0 clamp(10px, 2.5vw, 28px) 18px; text-align: center;
  --banner-max: 1400px;
}
.banner-strip img {
  display: block; width: 100%; max-width: var(--banner-max);
  height: auto; margin: 0 auto; border-radius: 12px;
}

/* ---------- SECTIONS ---------- */
section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 14px; }
.section-title h2 { font-size: 40px; color: var(--red); }
.section-title .bar { width: 80px; height: 5px; background: var(--gold); margin: 14px auto 0; border-radius: 5px; }
.section-sub { text-align: center; max-width: 720px; margin: 0 auto 46px; font-size: 18px; color: var(--muted); }

/* ---------- MISSION ---------- */
.mission { background: #fff; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.mission-grid .text h3 { font-size: 30px; color: var(--saffron-dark); margin-bottom: 14px; }
.mission-grid .text p { font-size: 18px; color: #3a4152; margin-bottom: 14px; }
.mission-quote {
  background: linear-gradient(135deg, #4f86e0, var(--red));
  color: #fff; border-radius: 18px; padding: 40px 34px; text-align: center;
  box-shadow: 0 14px 36px rgba(10,42,102,0.3);
}
.mission-quote .mark { font-size: 60px; line-height: 0.6; color: var(--gold); font-family: 'Tiro Devanagari Hindi', serif; }
.mission-quote p { font-size: 24px; font-weight: 700; margin: 14px 0; }

/* ---------- WORK / CARDS ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border-radius: 18px; padding: 34px 26px; text-align: center;
  border-bottom: 6px solid var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform .18s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,0.14); }
.card .icon {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center; font-size: 38px; background: var(--cream);
}
.card h3 { font-size: 23px; color: var(--red); margin-bottom: 10px; }
.card p { font-size: 16px; color: var(--muted); }

/* ---------- IMPACT ---------- */
.impact { background: linear-gradient(135deg, var(--red), #4f86e0); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .num { font-size: 52px; font-weight: 900; color: var(--gold); }
.stats .lbl { font-size: 17px; font-weight: 600; margin-top: 6px; }

/* ---------- HELP ---------- */
.help { background: #fff; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.help-card {
  display: block; border: 2px dashed var(--saffron); border-radius: 18px; padding: 30px 24px;
  text-align: center; text-decoration: none; color: inherit;
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
a.help-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(16,34,74,0.12); border-color: var(--red); }
.help-card .icon { font-size: 40px; }
.help-card h3 { font-size: 22px; color: var(--saffron-dark); margin: 12px 0 8px; }
.help-card p { font-size: 16px; color: var(--muted); }

/* ---------- JOIN BANNER ---------- */
.join {
  background: linear-gradient(135deg, #4f86e0, var(--red));
  color: #fff; text-align: center; border-radius: 22px; padding: 56px 30px;
  box-shadow: 0 16px 40px rgba(10,42,102,0.3);
}
.join h2 { font-size: 38px; }
.join p { font-size: 19px; margin: 14px auto 28px; max-width: 640px; color: #e6edff; }

/* ---------- ABOUT PAGE ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { background:#fff; border-radius:16px; padding:28px 22px; box-shadow:0 8px 24px rgba(0,0,0,0.07); border-top:5px solid var(--gold); }
.value h3 { color: var(--red); font-size: 20px; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 16px; }
.founder-card {
  display:grid; grid-template-columns: 200px 1fr; gap:30px; align-items:center;
  background:#fff; border-radius:18px; padding:30px; box-shadow:0 8px 24px rgba(0,0,0,0.08);
}
.founder-card img { width:200px; height:200px; border-radius:16px; object-fit:cover; border:4px solid var(--gold); }
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.founders-grid .founder-card { grid-template-columns: 130px 1fr; gap: 20px; padding: 24px; align-items: start; height: 100%; }
.founders-grid .founder-card img { width: 130px; height: 130px; }
@media (max-width: 820px) { .founders-grid { grid-template-columns: 1fr; } }
.members-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.members-grid .slide .photo { height: 200px; }
.members-grid .slide .photo img { object-position: center center; }
@media (max-width: 820px) { .members-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .members-grid { grid-template-columns: repeat(2, 1fr); } }
.founder-card h3 { color: var(--saffron-dark); font-size:26px; margin-bottom:6px; }
.founder-card .edu { color: var(--muted); font-weight:600; font-size:15px; margin-bottom:4px; }
.founder-card .role { color: var(--red); font-weight:700; margin-bottom:12px; }
.founder-card p { color:#3a4152; }

/* ---------- SUPPORTERS & MENTORS ---------- */
.supporters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.supporter-card {
  background:#fff; border-radius:16px; padding:26px 20px; text-align:center;
  box-shadow:0 8px 24px rgba(0,0,0,0.07); border-top:5px solid var(--saffron);
  transition: transform .18s, box-shadow .2s;
}
.supporter-card:hover { transform: translateY(-4px); box-shadow:0 14px 30px rgba(16,34,74,0.12); }
.supporter-card .avatar {
  width:100%; height:200px; margin:0 0 14px; border-radius:12px;
  background:var(--cream); border:3px solid var(--gold);
  display:flex; align-items:center; justify-content:center; font-size:38px; overflow:hidden;
}
.supporter-card .avatar img { width:100%; height:100%; object-fit:cover; }
.supporter-card h4 { color: var(--red); font-size:19px; margin-bottom:6px; }
.supporter-card .edu { color: var(--muted); font-weight:600; font-size:14px; margin-bottom:8px; }
.supporter-card .contribution { color: var(--muted); font-size:15px; margin-top:8px; }
.support-badge {
  display:inline-block; font-size:13px; font-weight:700; padding:4px 12px;
  border-radius:30px; margin-top:2px;
}
.support-badge.finance { background:#e8f6ec; color: var(--saffron-dark); }
.support-badge.mentor { background:#e9eefc; color: var(--red-dark); }
@media (max-width: 820px) { .supporters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .supporters-grid { grid-template-columns: 1fr; } }

/* ---------- CONTACT PAGE ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap:34px; }
.contact-info { background:#fff; border-radius:18px; padding:34px; box-shadow:0 8px 24px rgba(0,0,0,0.08); }
.contact-info h3 { color: var(--red); font-size:24px; margin-bottom:18px; }
.contact-line { display:flex; align-items:flex-start; gap:14px; margin-bottom:18px; font-size:17px; color:#3a4152; }
.contact-line .ic { font-size:24px; }
.contact-line .ic-photo { width:44px; height:44px; border-radius:50%; object-fit:cover; border:2px solid var(--gold); flex:0 0 auto; }
.contact-line a { color:#3a4152; text-decoration:none; }
.contact-line a:hover { color: var(--red); }
form.contact-form { background:#fff; border-radius:18px; padding:34px; box-shadow:0 8px 24px rgba(0,0,0,0.08); }
form.contact-form label { display:block; font-weight:600; margin-bottom:6px; color: var(--ink); }
form.contact-form input, form.contact-form textarea {
  width:100%; padding:12px 14px; border:2px solid #d3ddec; border-radius:10px;
  font-family:inherit; font-size:16px; margin-bottom:18px; background:var(--cream);
}
form.contact-form input:focus, form.contact-form textarea:focus { outline:none; border-color: var(--saffron); }
.map-embed { border-radius:18px; overflow:hidden; box-shadow:0 8px 24px rgba(0,0,0,0.08); margin-top:34px; }
.map-embed iframe { width:100%; height:320px; border:0; display:block; }

/* ---------- FOOTER ---------- */
footer { background: var(--ink); color: #fff; padding: 56px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.foot-brand img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; background:#fff; }
.foot-brand span { font-size: 21px; font-weight: 800; white-space: nowrap; }
footer h4 { font-size: 19px; color: var(--gold); margin-bottom: 16px; }
footer p, footer a { color: #cdd6e5; text-decoration: none; font-size: 16px; display: block; margin-bottom: 10px; }
footer a:hover { color: var(--gold); }
.socials { display: flex; gap: 14px; margin-top: 10px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0;
  transition: background .2s, transform .15s;
}
.socials a svg { width: 21px; height: 21px; fill: currentColor; display: block; }
/* Brand colors per platform */
.socials a[aria-label="Facebook"]  { background: #1877F2; }
.socials a[aria-label="Instagram"] { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.socials a[aria-label="YouTube"]   { background: #FF0000; }
.socials a:hover { color: #fff; transform: translateY(-3px); filter: brightness(1.08); }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.15); margin-top: 34px; padding-top: 20px; color: #8893ac; font-size: 14px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  nav ul {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--red);
    flex-direction: column; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  nav ul.open { max-height: 420px; }
  nav ul li { border-top: 1px solid rgba(255,255,255,0.12); width:100%; }
  nav ul a { display: block; padding: 14px 22px; }
  nav ul li.lang-li { border-top: none; padding: 12px 22px; }
  .lang-btn { width: 100%; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 40px; }
  .page-hero h1 { font-size: 32px; }
  .mission-grid, .work-grid, .help-grid, .values-grid, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .founder-card { grid-template-columns: 1fr; justify-items:center; text-align:center; }
}

/* ---------- PHOTO GALLERY (compact grid) ---------- */
.gallery { background: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.slide {
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 5px 14px rgba(16,34,74,0.10);
  transition: transform .18s, box-shadow .2s;
}
.slide:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(16,34,74,0.16); }
.slide .photo {
  height: 96px; display: flex; align-items: center; justify-content: center; font-size: 36px;
}
/* Placeholder tile — replace the emoji with a real <img> when photos are ready */
.slide .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide .cap { padding: 10px 8px 14px; text-align: center; }
.slide .cap h4 { color: var(--red); font-size: 14px; margin-bottom: 3px; }
.slide .cap p { color: var(--muted); font-size: 12px; line-height: 1.4; }
@media (max-width: 820px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }
