/* ============================================================
   Jharkhand Mahila Jagriti — design system (v2)
   One file controls the look of the WHOLE site.
   Brand colors live in :root below — change them in one place.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette */
  --plum:      #6e1b50;
  --plum-700:  #551040;
  --plum-900:  #3a0a2b;
  --plum-50:   #f9eef5;
  --plum-100:  #f1ddea;
  --gold:      #eaa64a;
  --gold-600:  #d1872a;

  /* Neutrals */
  --ink:       #2a2230;
  --body:      #574e60;
  --muted:     #8a8194;
  --cream:     #fcf7f2;   /* page background */
  --sand:      #f5ede3;   /* alternating sections */
  --white:     #ffffff;
  --line:      #ece2ea;

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape & depth */
  --r:    16px;
  --r-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(58, 10, 43, 0.06);
  --shadow:    0 14px 40px rgba(58, 10, 43, 0.10);
  --shadow-lg: 0 30px 70px rgba(58, 10, 43, 0.16);

  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5rem; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.28rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--plum); text-decoration-color: rgba(110,27,80,.3); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 92px) 0; }
.section--sand { background: var(--sand); }
.section--plum { background: var(--plum-50); }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.18rem; color: var(--body); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Eyebrow label above headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .7rem;
}
.section-head { margin-bottom: 2.6rem; }
.section-head h2 { margin-bottom: .6rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--gold); color: #3c2400; box-shadow: 0 8px 22px rgba(209,135,42,.32); }
.btn--primary:hover { background: var(--gold-600); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(209,135,42,.4); }
.btn--plum { background: var(--plum); color: #fff; }
.btn--plum:hover { background: var(--plum-700); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--plum-700); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline:hover { background: #fff; color: var(--plum-700); border-color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; max-width: var(--max); margin: 0 auto; padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { height: 50px; width: auto; display: block; flex: none; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--plum), var(--plum-900));
  color: var(--gold); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; color: var(--ink); line-height: 1.1; }
.brand__name small { display: block; font-family: var(--font-body); font-size: .64rem; font-weight: 600; letter-spacing: .18em; color: var(--gold-600); margin-top: 2px; }

.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 9px 12px; border-radius: 10px; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav__links a:hover { background: var(--plum-50); color: var(--plum); }
.nav__links a.active { color: var(--plum); font-weight: 600; }
.nav__links .btn { padding: 9px 20px; margin-left: 8px; font-size: .95rem; }
.nav__toggle { display: none; background: none; border: 0; color: var(--plum); font-size: 1.7rem; cursor: pointer; padding: 4px 8px; line-height: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; text-align: center; isolation: isolate; }
.hero__inner { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { color: rgba(255,255,255,.92); }

.hero--home {
  min-height: 84vh; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; padding: 120px 0;
}
.hero--home h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 600; }
.hero--home .hero-quote { font-style: italic; font-size: 1.15rem; opacity: .9; max-width: 600px; margin: 0 auto 1.8rem; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 1.6rem; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

.hero--page {
  background: linear-gradient(135deg, var(--plum-900), var(--plum) 70%, #8a2a6a);
  padding: clamp(70px, 12vw, 110px) 24px clamp(60px, 9vw, 84px);
}
.hero--page h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.hero--page .tagline { color: var(--gold); font-size: 1.15rem; font-weight: 500; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 20px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat__num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 700; color: var(--plum); line-height: 1; margin-bottom: .5rem; }
.stat__label { color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* ---------- Work cards (with icons) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--plum-100); }
.work-card__icon {
  width: 60px; height: 60px; border-radius: 16px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--plum-50); color: var(--plum);
}
.work-card__icon svg { width: 30px; height: 30px; }
.work-card h3 { color: var(--ink); margin-bottom: .5rem; }
.work-card p { color: var(--body); margin: 0; font-size: .98rem; }

/* ---------- Programs / generic cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__top { height: 6px; background: linear-gradient(90deg, var(--gold), var(--plum)); }
.card__body { padding: 30px 26px; flex: 1; }
.card__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--plum-50); color: var(--plum); padding: 5px 12px; border-radius: 100px; margin-bottom: 12px; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- CTA band ---------- */
.band { position: relative; color: #fff; text-align: center; overflow: hidden; background: linear-gradient(135deg, var(--plum), var(--plum-900)); }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 1.6rem; }
.band--gold { background: linear-gradient(135deg, var(--gold), var(--gold-600)); }
.band--gold h2 { color: #3c2400; } .band--gold p { color: #4a2f08; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist li { padding: 8px 0 8px 34px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--plum-50); }
.checklist li::after { content: "\2714"; position: absolute; left: 5px; top: 8px; color: var(--plum); font-size: .72rem; font-weight: 700; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; background: var(--white); overflow: hidden; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .96rem; }
table.data th { background: var(--plum); color: #fff; font-family: var(--font-body); font-weight: 600; letter-spacing: .02em; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--plum-50); }

/* ---------- Info cards ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.info h3 { color: var(--plum); }
.info strong { color: var(--ink); }

/* ---------- Forms ---------- */
form label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 5px; color: var(--ink); }
form input, form textarea { width: 100%; padding: 13px 15px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; font-family: inherit; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
form input:focus, form textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 4px var(--plum-50); }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__img { width: 100%; height: 210px; object-fit: cover; background: var(--plum-50); }
.post-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card__date { color: var(--gold-600); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .5rem; }
.post-card h3 { margin-bottom: .6rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--plum); }
.post-card p { font-size: .95rem; color: var(--body); }
.post-card__more { margin-top: auto; font-weight: 600; font-size: .92rem; text-decoration: none; }

/* ---------- Photo gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 1.5rem 0; }
.gallery a { display: block; line-height: 0; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; height: 160px; object-fit: cover; transition: transform .3s ease; margin: 0; }
.gallery a:hover img { transform: scale(1.06); }

/* ---------- Article (blog post) ---------- */
.article { max-width: 768px; margin: 0 auto; }
.article > img { border-radius: var(--r-lg); margin: 1.5rem 0; box-shadow: var(--shadow); width: 100%; }
.article p { margin: 1.1rem 0; color: var(--ink); }
.article h3 { margin-top: 2rem; color: var(--plum); }
.article__meta { color: var(--muted); font-size: .92rem; margin-bottom: 1.5rem; }
.article__back { font-weight: 600; text-decoration: none; font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-900); color: #e9d4e2; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 14px; }
.site-footer p { color: #cdb0c3; }
.site-footer a { color: #f0d9e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .brand__mark { box-shadow: none; }
.footer-logo { background: #fff; border-radius: 12px; padding: 6px 9px; display: inline-flex; flex: none; }
.footer-logo img { height: 40px; width: auto; display: block; }
.footer-brand strong { font-family: var(--font-head); font-size: 1.15rem; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 22px; text-align: center; font-size: .85rem; color: #b89cae; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .work-grid, .cards, .posts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Collapse the menu to a hamburger before it can get crowded/wrap */
@media (max-width: 1040px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(255,255,255,.98); backdrop-filter: blur(12px);
    padding: 12px 18px 20px; box-shadow: var(--shadow);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 14px; }
  .nav__links .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .work-grid, .cards, .posts, .info-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: 28px; }
  .brand__logo { height: 42px; }
  .hero--home { min-height: 78vh; padding: 100px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
