/* Youth Singh Sabha — shared styles */
:root {
  --kesri: #e07b12;
  --kesri-deep: #b85f05;
  --kesri-soft: #fdf0e1;
  --navy: #13203f;
  --navy-2: #1d2f5c;
  --ink: #1b1f2a;
  --muted: #5b6273;
  --line: #e7e1d6;
  --bg: #fbf8f3;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 32, 63, .06), 0 8px 24px rgba(19, 32, 63, .06);
  --max: 1160px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gur: "Noto Sans Gurmukhi", "Raavi", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--kesri-deep); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.gur { font-family: var(--gur); font-weight: 600; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--kesri-deep); margin-bottom: 14px;
}
.eyebrow .gur { letter-spacing: 0; text-transform: none; font-size: .95rem; color: var(--muted); font-weight: 500; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.section-head { margin-bottom: 44px; max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lead { margin-left: auto; margin-right: auto; }
.ph { background: #fff4c2; color: #6b5200; padding: 0 4px; border-radius: 4px; font-size: .92em; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: .15s ease;
  font-family: var(--sans);
}
.btn-primary { background: var(--kesri); color: #fff; }
.btn-primary:hover { background: var(--kesri-deep); }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar + header */
.topbar { background: var(--navy); color: #cfd6e8; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar strong { color: #ffc98a; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--kesri); color: var(--navy); font-size: 28px; line-height: 1; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.brand-text span { font-family: var(--gur); font-size: .85rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--kesri-soft); }
.nav a.active { color: var(--kesri-deep); }
.nav .btn { margin-left: 8px; padding: 10px 20px; color: #fff; }
.nav .btn:hover { background: var(--kesri-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px 0; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; background: var(--bg);
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 110px 0 120px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(224, 123, 18, .35), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(224, 123, 18, .18), transparent 60%);
}
.hero::after {
  content: "☬"; position: absolute; right: -40px; bottom: -120px; font-size: 520px; line-height: 1;
  color: rgba(255,255,255,.04); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 em { font-style: normal; color: #ffb366; }
.hero .gur-line { font-family: var(--gur); font-size: 1.3rem; color: #ffc98a; margin-bottom: 18px; }
.hero .lead { color: #c9d1e6; font-size: 1.2rem; margin-bottom: 32px; }
.hero-small { padding: 80px 0 72px; }
.hero-small h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.crumbs { font-size: .85rem; color: #aab4cf; margin-bottom: 14px; }
.crumbs a { color: #fff; text-decoration: none; }

/* Stats */
.stats { margin-top: -56px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.stat { padding: 28px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Grids & cards */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } section { padding: 64px 0; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 1px 2px rgba(19,32,63,.04);
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

.dept-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.dept-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dept-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--kesri-soft); color: var(--kesri-deep);
  display: grid; place-items: center; margin-bottom: 18px;
}
.dept-icon svg { width: 26px; height: 26px; }
.dept-card h3 { margin-bottom: 2px; }
.dept-card .gur { color: var(--kesri-deep); font-size: .95rem; display: block; margin-bottom: 10px; }
.dept-card .more { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: .9rem; color: var(--navy); }

/* Department detail blocks */
.dept-block {
  display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.dept-block:first-of-type { border-top: 0; }
.dept-side .num { font-family: var(--serif); font-size: 3.4rem; color: var(--kesri); line-height: 1; }
.dept-side h2 { font-size: 1.8rem; margin: 10px 0 4px; }
.dept-side .gur { color: var(--kesri-deep); font-size: 1.1rem; }
.dept-side .lead-by { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.dept-main ul { padding-left: 0; list-style: none; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.dept-main li { position: relative; padding-left: 22px; }
.dept-main li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--kesri); }
@media (max-width: 860px) { .dept-block { grid-template-columns: 1fr; gap: 16px; } .dept-main ul { grid-template-columns: 1fr; } }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { text-decoration: none; font-size: .88rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.chip:hover { border-color: var(--kesri); color: var(--kesri-deep); }

/* Split + image placeholders */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.photo {
  aspect-ratio: 4 / 3; border-radius: var(--radius); position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, var(--navy-2), var(--navy));
  display: grid; place-items: center; color: rgba(255,255,255,.6); font-size: .85rem; text-align: center; padding: 20px;
}
.photo::before { content: "☬"; display: block; font-size: 64px; color: rgba(224,123,18,.7); margin-bottom: 6px; }
.photo.kesri { background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 14px, transparent 14px 28px), linear-gradient(135deg, #e8902d, var(--kesri-deep)); }
.photo.kesri::before { color: rgba(19,32,63,.55); }

/* Helpline band */
.band { background: var(--kesri); color: #fff; padding: 40px 0; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h3 { color: #fff; font-size: 1.5rem; margin: 0 0 4px; }
.band p { margin: 0; color: #fff3e4; }
.band .btn { background: var(--navy); color: #fff; }
.band .btn:hover { background: #0b1530; }

/* Events */
.event { display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start; }
.event-date {
  text-align: center; border-radius: 12px; background: var(--navy); color: #fff; padding: 10px 6px; line-height: 1.1;
}
.event-date b { display: block; font-family: var(--serif); font-size: 1.9rem; }
.event-date span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #ffc98a; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--kesri-soft); color: var(--kesri-deep); margin-bottom: 8px; }
.meta { font-size: .88rem; color: var(--muted); }

/* Calendar table */
.cal { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.cal th, .cal td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cal th { background: var(--navy); color: #fff; font-weight: 600; font-size: .88rem; }
.cal td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }
.cal tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* Structure tiers */
.tiers { display: grid; gap: 12px; max-width: 760px; }
.tier { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.tier .lvl { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #ffc98a; display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; }
.tier h4 { margin: 0; font-size: 1.1rem; }
.tier p { margin: 0; color: var(--muted); font-size: .95rem; }
.tier:nth-child(2) { margin-left: 28px; } .tier:nth-child(3) { margin-left: 56px; } .tier:nth-child(4) { margin-left: 84px; }
@media (max-width: 640px) { .tier:nth-child(n) { margin-left: 0; } }

/* People */
.person { text-align: center; }
.person .avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; background: var(--kesri-soft); color: var(--kesri-deep); display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.person h4 { margin: 0; font-size: 1.05rem; }
.person p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Doc list */
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.docs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.docs li span { color: var(--muted); font-size: .85rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%; background: var(--kesri); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-family: var(--serif); font-size: 1.2rem;
}
.step h4 { margin: 6px 0 4px; }
.step p { margin: 0; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--navy); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #d8d1c4; border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--kesri); outline-offset: 1px; border-color: var(--kesri); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { width: auto; margin-top: 5px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success { display: none; background: #e8f6ec; color: #1d5b33; border: 1px solid #b9e2c6; padding: 14px 16px; border-radius: 10px; }
.form-success.show { display: block; }

/* Amount picker */
.amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.amounts button { font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 10px; border: 1px solid #d8d1c4; background: #fff; cursor: pointer; color: var(--navy); }
.amounts button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Quote */
.quote { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--navy); line-height: 1.4; max-width: 860px; margin: 0 auto; text-align: center; }
.quote .gur { display: block; font-family: var(--gur); color: var(--kesri-deep); font-size: .8em; margin-bottom: 14px; font-weight: 600; }
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .95rem; color: var(--muted); margin-top: 14px; }

/* Bars (fund use) */
.bar { margin-bottom: 16px; }
.bar-top { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 6px; }
.bar-track { height: 10px; background: #efe8dc; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--kesri); border-radius: 99px; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c2da; padding: 72px 0 28px; font-size: .93rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #dfe5f3; text-decoration: none; }
.site-footer a:hover { color: #ffc98a; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-text span { color: #9aa5c4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #8d98b8; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
