/* ===========================================================
   Vineet Bharala — Sardhana campaign portal
   Palette: deep green (growth/farmers/harmony) + warm gold accent
   Party-neutral by design.
   =========================================================== */

:root {
  /* green = kisaan/growth/harmony · blue = strength & trust */
  --green:       #15803d;
  --green-dark:  #0f5c2e;
  --green-deep:  #0a3d20;
  --blue:        #1f53c4;
  --blue-dark:   #163d96;
  --blue-deep:   #0e2a66;
  --blue-soft:   #eaf1ff;
  --gold:        #f0a500;        /* tiny warm accent only */
  --gold-soft:   #eaf1ff;        /* alias kept -> light blue */
  --ink:         #16202b;
  --muted:       #5a6675;
  --bg:          #ffffff;
  --bg-alt:      #f3f7f4;
  --line:        #e1e8ec;
  --wa:          #25d366;
  --radius:      16px;
  --shadow:      0 10px 30px rgba(14, 42, 102, .08);
  --shadow-lg:   0 20px 50px rgba(14, 42, 102, .16);
  --max:         1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  font-family: "Noto Sans Devanagari", "Poppins", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* English mode uses Poppins as the primary face */
body.lang-en { font-family: "Poppins", "Noto Sans Devanagari", system-ui, sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(21,128,61,.3); }
.btn--primary:hover { background: var(--green-dark); box-shadow: 0 10px 26px rgba(21,128,61,.4); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--whatsapp { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.35); }
.btn--whatsapp:hover { filter: brightness(1.05); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s ease;
}
.nav.scrolled { box-shadow: 0 6px 20px rgba(10,61,32,.07); }
.nav__inner { max-width: var(--max); margin-inline: auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--blue)); color: #fff;
  font-weight: 800; font-size: 1.05rem; box-shadow: 0 4px 12px rgba(21,128,61,.35);
}
.brand--footer .brand__mark { background: var(--blue); color: #fff; }

.nav__links { display: flex; gap: 6px; }
.nav__links a {
  padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--ink); font-size: .98rem;
  transition: background .15s ease, color .15s ease;
}
.nav__links a:hover { background: var(--bg-alt); color: var(--green); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  border: 2px solid var(--green); background: #fff; color: var(--green);
  font-weight: 800; font-size: .82rem; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  min-width: 46px; transition: background .15s ease, color .15s ease;
}
.lang-btn:hover { background: var(--green); color: #fff; }

.nav__hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__hamburger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav__hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 78px; overflow: hidden; color: #fff; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 540px at 84% -12%, rgba(31,83,196,.55), transparent 62%),
    linear-gradient(135deg, var(--green-deep) 0%, var(--green) 40%, var(--blue-dark) 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 26px 26px;
}
.hero__inner {
  position: relative; max-width: var(--max); margin-inline: auto; padding: 64px 20px 80px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.hero__eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  font-size: .8rem; color: var(--gold-soft); background: rgba(255,255,255,.12);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero__name { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.05; font-weight: 800; letter-spacing: -.5px; }
.hero__tag { font-size: clamp(1.05rem, 2.2vw, 1.35rem); margin-top: 16px; max-width: 32ch; color: rgba(255,255,255,.92); }
.hero__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__photo { justify-self: center; }
.hero__photo img {
  width: 320px; height: 400px; object-fit: cover; object-position: center 18%; border-radius: 24px;
  border: 5px solid rgba(255,255,255,.5); box-shadow: var(--shadow-lg); background: rgba(255,255,255,.1);
}
.hero__photo img.img--fallback {
  display: grid; place-items: center; color: #fff; font-weight: 700; text-align: center;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.08), rgba(255,255,255,.08) 12px, rgba(255,255,255,.14) 12px, rgba(255,255,255,.14) 24px);
}

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.kicker {
  color: var(--green); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  font-size: .82rem; margin-bottom: 8px;
}
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 36px; max-width: 22ch; }
.note { margin-top: 20px; color: var(--muted); font-size: .9rem; font-style: italic; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: center; }
.about__badge {
  display: inline-block; margin-bottom: 18px; padding: 7px 16px; border-radius: 999px;
  font-weight: 700; font-size: .85rem; color: #fff; letter-spacing: .3px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 6px 16px rgba(21,128,61,.25);
}
.about__text p { margin-bottom: 16px; color: #33433a; font-size: 1.05rem; }
.about__quote {
  position: relative; margin: 40px 0 0; padding: 30px 32px 30px 70px;
  background: linear-gradient(135deg, var(--green-deep), var(--blue-dark)); color: #fff;
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.about__quote::before {
  content: "“"; position: absolute; left: 18px; top: 2px;
  font-size: 5rem; line-height: 1; color: rgba(255,255,255,.28); font-family: Georgia, serif;
}
.about__quote p { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; line-height: 1.5; margin: 0; }
.about__quote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 600; color: var(--blue-soft); }
.about__stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 22px; }
.legacy { margin: 0; max-width: 360px; width: 100%; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.legacy img { width: 100%; display: block; }
.legacy figcaption { padding: 12px 16px; font-weight: 600; font-size: .9rem; color: var(--blue-dark); background: var(--blue-soft); }
.stat {
  display: flex; align-items: center; gap: 13px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow);
}
.stat--blue { border-left-color: var(--blue); }
.stat__icon { font-size: 1.7rem; line-height: 1; flex: none; }
.stat__body { display: flex; flex-direction: column; min-width: 0; }
.stat__num { font-size: 1.12rem; font-weight: 800; color: var(--green-deep); line-height: 1.25; }
.stat__label { color: var(--muted); font-weight: 600; font-size: .85rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card--feature { border: 2px solid var(--blue); background: linear-gradient(180deg, var(--blue-soft), #fff); }
.card__icon { font-size: 2.4rem; margin-bottom: 14px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--green-deep); }
.card--feature h3 { color: var(--blue-dark); }
.card p { color: #44544a; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 8px; padding-left: 28px; border-left: 3px solid var(--line); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -39px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--blue);
}
.tl-date {
  display: inline-block; background: var(--blue-soft); color: var(--blue-dark);
  font-weight: 700; font-size: .78rem; padding: 3px 11px; border-radius: 999px; margin-bottom: 8px;
}
.tl-body h3 { font-size: 1.2rem; color: var(--green-deep); margin-bottom: 6px; }
.tl-body p { color: #44544a; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__item {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background-color: #e8efe9; background-size: cover; background-position: center top;
  box-shadow: var(--shadow); margin: 0; transition: transform .2s ease, box-shadow .2s ease;
}
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px;
  color: #fff; font-weight: 700; font-size: .95rem;
  background: linear-gradient(transparent, rgba(10,61,32,.82));
}

/* ---------- Join / CTA ---------- */
.section--cta { background: linear-gradient(160deg, #e8f0fc 0%, #eef5ef 100%); color: var(--ink); border-top: 4px solid var(--gold); }
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.join__text h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin-bottom: 14px; color: var(--green-deep); }
.join__text p { color: #44544a; margin-bottom: 24px; font-size: 1.08rem; }

.join__form { background: #fff; color: var(--ink); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-lg); }
.join__form h3 { color: var(--green-deep); margin-bottom: 18px; font-size: 1.25rem; }
.join__form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: .92rem; color: #33433a; }
.join__form input, .join__form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; font: inherit; font-size: 1rem; background: #fbfdfb; transition: border .15s ease;
}
.join__form input:focus, .join__form textarea:focus { outline: none; border-color: var(--green); }
.join__form .btn { width: 100%; margin-top: 4px; }
.form__msg { margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--gold-soft); color: var(--green-deep); font-weight: 600; text-align: center; }

/* ---------- Join / Team Bharala extras ---------- */
.join__kicker { color: var(--blue); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: .82rem; margin-bottom: 8px; }
.join__points { list-style: none; margin: 16px 0 22px; padding: 0; }
.join__points li { color: #2f4636; font-weight: 600; margin-bottom: 9px; font-size: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr .58fr; gap: 12px; }
.form__row label { margin-bottom: 14px; }
.btn--block { width: 100%; }
.form__hint { margin-top: 10px; font-size: .8rem; color: var(--muted); text-align: center; }
.hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.join__form .photo-drop { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; cursor: pointer;
  border: 1.5px dashed #b9d3c2; border-radius: 14px; padding: 22px 16px; background: #f7fbf8; margin-bottom: 14px;
  transition: border-color .15s, background .15s; }
.join__form .photo-drop:hover { border-color: var(--green); background: #eef6f0; }
.photo-drop__icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); font-size: 1.6rem; }
.photo-drop__title { font-weight: 700; color: var(--green-deep); font-size: 1rem; }
.photo-drop__sub { font-size: .8rem; color: var(--muted); }
.photo-thumb { display: block; width: 96px; height: 116px; object-fit: cover; border-radius: 10px; margin-top: 10px; border: 2px solid #fff; box-shadow: var(--shadow); }
.photo-thumb[hidden] { display: none; }
.join__result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.join__success { color: var(--green-deep); font-weight: 700; margin-bottom: 14px; line-height: 1.5; }
.card__preview { width: 100%; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 14px; border: 1px solid var(--line); }

/* ---------- Footer ---------- */
.footer { background: var(--green-deep); color: rgba(255,255,255,.85); padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer__col h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.footer__col p { margin-bottom: 8px; }
.footer__col a:hover { color: var(--gold); }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer__tag { color: var(--gold-soft); font-weight: 600; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { padding: 7px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: .9rem; font-weight: 600; transition: .15s; }
.socials a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 20px; text-align: center; font-size: .88rem; }

/* ---------- Floating action buttons ---------- */
.fab {
  position: fixed; right: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow-lg); font-size: 1.4rem;
  transition: transform .2s ease;
}
.fab:hover { transform: scale(1.08); }
.fab--wa { bottom: 20px; background: var(--wa); }
.fab--call { bottom: 86px; background: var(--blue); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-top: 44px; }
  .hero__pills, .hero__cta { justify-content: center; }
  .hero__tag { margin-inline: auto; }
  .hero__photo { order: -1; }
  .hero__photo img { width: 240px; height: 300px; }
  .about { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .join { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }

  .nav__links {
    position: fixed; top: 63px; right: 0; width: min(78vw, 300px); height: calc(100vh - 63px);
    background: #fff; flex-direction: column; padding: 20px; gap: 4px;
    box-shadow: -10px 0 30px rgba(0,0,0,.12); transform: translateX(100%); transition: transform .28s ease;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { padding: 14px; border-radius: 10px; }
  .nav__hamburger { display: flex; }
}

@media (max-width: 460px) {
  .about__stats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
