/* ===========================================================
   Kunchaparthi Village — kunchaprthi.org
   Shared stylesheet (no build step)
   =========================================================== */

:root {
  --green-900: #14361f;
  --green-800: #1b5e34;
  --green-700: #237a44;
  --green-600: #2e9d57;
  --green-100: #e7f4ec;
  --gold: #f4b400;
  --gold-dark: #c98a00;
  --red: #c0322b;
  --red-dark: #8e1f1a;
  --earth: #8a5a2b;
  --ink: #1c2620;
  --muted: #5d6b62;
  --paper: #fbfaf6;
  --card: #ffffff;
  --line: #e3e6e0;
  --shadow: 0 10px 30px rgba(20, 54, 31, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 54, 31, 0.18);
  --radius: 18px;
  --maxw: 1180px;
  --font-en: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-te: "Noto Sans Telugu", "Plus Jakarta Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.te { font-family: var(--font-te); }

img { max-width: 100%; display: block; }

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-800); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { line-height: 1.18; margin: 0 0 .4em; font-weight: 800; letter-spacing: -0.01em; }

.section { padding: 84px 0; }
.section.alt { background: linear-gradient(180deg, #ffffff 0%, var(--green-100) 100%); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-700);
  background: var(--green-100); padding: 7px 14px; border-radius: 999px;
  margin-bottom: 18px;
}

.section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); color: var(--green-900); }
.section-lead { font-size: 1.08rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green-800); color: #fff; }
.btn-gold { background: var(--gold); color: #3a2a00; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-outline { background: #fff; color: var(--green-800); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green-600); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow);
}
.brand-text strong { display: block; font-size: 1.06rem; color: var(--green-900); letter-spacing: -.01em; }
.brand-text span { display: block; font-size: .74rem; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 14px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; color: var(--ink);
}
.nav-links a:hover { background: var(--green-100); color: var(--green-800); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 75% -10%, #2e9d57 0%, transparent 55%),
              linear-gradient(160deg, #14361f 0%, #1b5e34 55%, #237a44 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 76px; padding-bottom: 84px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 15px; border-radius: 999px; font-weight: 600; font-size: .85rem; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); color: #fff; }
.hero h1 .te { display: block; font-size: 1.12em; margin-bottom: .12em; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 540px; margin: 18px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 1.9rem; font-weight: 800; }
.hero-stats .stat span { font-size: .85rem; color: rgba(255,255,255,.78); }

/* Decorative banner card in hero */
.banner-card {
  position: relative; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.18);
  transform: rotate(-1.2deg); transition: transform .4s ease;
}
.banner-card:hover { transform: rotate(0deg) scale(1.01); }
.banner-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.banner-card .banner-tag {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: rgba(20,54,31,.78); backdrop-filter: blur(6px);
  color: #fff; padding: 14px 16px; border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.banner-tag b { font-size: 1.02rem; }
.banner-tag .arrow { font-size: 1.3rem; }
.banner-link { position: absolute; inset: 0; z-index: 3; }

/* ---------- Feature banner strip ---------- */
.spotlight {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  color: #fff; border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: 1.1fr .9fr; box-shadow: var(--shadow-lg);
}
.spotlight-body { padding: 46px 44px; }
.spotlight-body .eyebrow { background: rgba(255,255,255,.16); color: #ffe6b3; }
.spotlight-body h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.spotlight-body p { color: rgba(255,255,255,.9); font-size: 1.05rem; }
.spotlight-figure { position: relative; min-height: 320px; }
.spotlight-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); font-size: 1.5rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.22rem; color: var(--green-900); }
.card p { color: var(--muted); margin: 0; }
.card a.more { display: inline-flex; gap: 6px; margin-top: 16px; font-weight: 700; }

/* Link card (sections on home) */
.link-card { position: relative; }
.link-card::after { content: "→"; position: absolute; top: 24px; right: 24px; color: var(--green-600); font-weight: 700; opacity: .5; transition: .2s; }
.link-card:hover::after { transform: translateX(4px); opacity: 1; }

/* ---------- Allocation / plan bars ---------- */
.alloc { display: grid; gap: 16px; }
.alloc-row { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.alloc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.alloc-head b { font-size: 1.05rem; color: var(--green-900); }
.alloc-head .acres { font-weight: 700; color: var(--earth); }
.bar { height: 12px; border-radius: 999px; background: var(--green-100); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-600), var(--green-800)); }
.alloc-row p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Religious place cards ---------- */
.place-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.place-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.place-photo { aspect-ratio: 16/10; display: grid; place-content: center; gap: 6px; text-align: center; color: #fff; }
.place-photo .pico { font-size: 2.6rem; }
.place-photo .psoon { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.place-photo.temple { background: linear-gradient(135deg, #b9551f, #e08b2d); }
.place-photo.church { background: linear-gradient(135deg, #355b8c, #5a86bd); }
.place-body { padding: 24px 26px; }
.place-body h3 { font-size: 1.25rem; color: var(--green-900); margin-bottom: 2px; }
.place-body .te { display: block; color: var(--green-700); font-weight: 600; margin-bottom: 10px; }
.place-body p { color: var(--muted); margin: 0; }
.place-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--earth); background: #f6efe6; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- People roster (Panchayat) ---------- */
.lead-person { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); margin-bottom: 24px; }
.lead-person .avatar { width: 84px; height: 84px; font-size: 1.7rem; }
.lead-person .role { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); }
.lead-person h3 { font-size: 1.5rem; color: var(--green-900); margin: 2px 0; }
.lead-person p { color: var(--muted); margin: 4px 0 0; }
.avatar { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--green-700), var(--green-600)); color: #fff; font-weight: 800; font-size: 1.25rem; flex: none; }
.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 18px; text-align: center; box-shadow: var(--shadow); transition: transform .2s ease; }
.person:hover { transform: translateY(-3px); }
.person .avatar { margin: 0 auto 12px; }
.person b { display: block; color: var(--green-900); }
.person .ward { font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) { .roster { grid-template-columns: 1fr 1fr; } .lead-person { grid-template-columns: 1fr; text-align: center; } .lead-person .avatar { margin: 0 auto; } }

/* ---------- Roadmap timeline ---------- */
.timeline { position: relative; margin-top: 30px; padding-left: 4px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--green-600), var(--green-100)); border-radius: 3px; }
.tl-item { position: relative; padding: 0 0 34px 58px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 8px; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--green-600); display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: var(--green-700); }
.tl-item h3 { font-size: 1.15rem; margin-bottom: 4px; color: var(--green-900); }
.tl-phase { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); }
.tl-item p { color: var(--muted); margin: 6px 0 0; }

/* ---------- Documents list ---------- */
.doc-list { display: grid; gap: 14px; }
.doc {
  display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 20px; transition: .2s;
}
.doc:hover { border-color: var(--green-600); box-shadow: var(--shadow); }
.doc .doc-ico { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-size: 1.3rem; }
.doc .doc-meta { flex: 1; }
.doc .doc-meta b { display: block; color: var(--green-900); }
.doc .doc-meta span { font-size: .85rem; color: var(--muted); }
.doc .doc-act { font-weight: 700; white-space: nowrap; }

/* ---------- News clippings ---------- */
.clip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 8px; }
.clip-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.clip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.clip-thumb { position: relative; aspect-ratio: 3/4; background: #f3f5f1; overflow: hidden; }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.clip-thumb.clip-ph { display: grid; place-content: center; text-align: center; background: repeating-linear-gradient(135deg, #eef3ec, #eef3ec 12px, #e9efe6 12px, #e9efe6 24px); }
.clip-thumb.clip-ph::after { content: "Newspaper clipping"; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); opacity: .65; }
.clip-date { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--red); color: #fff; font-size: .74rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.clip-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.clip-src { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.clip-body h3 { font-size: 1.18rem; color: var(--green-900); margin: 6px 0 8px; }
.clip-body p { color: var(--muted); margin: 0; font-size: .94rem; }
.clip-body .open { margin-top: 14px; font-weight: 700; color: var(--green-700); }
@media (max-width: 760px) { .clip-grid { grid-template-columns: 1fr; } }

/* Key facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-align: center; box-shadow: var(--shadow); }
.fact b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--green-800); }
.fact span { font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

/* ---------- News ---------- */
.news-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; }
.news-feature img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); background: #fbe9e8; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }

/* ---------- Gallery ---------- */
.gallery { columns: 3; column-gap: 18px; }
.gallery figure { break-inside: avoid; margin: 0 0 18px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; position: relative; background: #fff; }
.gallery img { width: 100%; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-size: .85rem; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: .25s; }
.gallery figure:hover figcaption { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,20,14,.92); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close { position: absolute; top: 22px; right: 28px; font-size: 2rem; color: #fff; background: none; border: 0; cursor: pointer; line-height: 1; }
.lightbox .lb-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); }

/* ---------- Values / pledge ---------- */
.pledge { background: var(--green-900); color: #fff; border-radius: var(--radius); padding: 54px 44px; text-align: center; }
.pledge h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.pledge .te { color: #ffe39a; }
.pledge p { color: rgba(255,255,255,.85); max-width: 720px; margin: 14px auto 0; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.chip { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 10px 18px; border-radius: 999px; font-weight: 600; }

/* ---------- Do / Don't lists ---------- */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.list-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.list-card h3 { display: flex; align-items: center; gap: 10px; }
.list-card.bad h3 { color: var(--red-dark); }
.list-card.good h3 { color: var(--green-800); }
.list-card ul { list-style: none; margin: 16px 0 0; padding: 0; }
.list-card li { padding: 9px 0 9px 32px; position: relative; border-top: 1px solid var(--line); color: var(--ink); }
.list-card li:first-child { border-top: 0; }
.list-card.bad li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.list-card.good li::before { content: "✓"; position: absolute; left: 0; color: var(--green-600); font-weight: 800; }

/* ---------- "Our Stand" demand card ---------- */
.stand-card {
  display: block; background: #fff; border-radius: 22px; padding: 28px;
  box-shadow: var(--shadow-lg); color: var(--ink);
  border: 1px solid rgba(255,255,255,.25); transition: transform .3s ease;
}
.stand-card:hover { transform: translateY(-4px); }
.stand-head { border-bottom: 2px solid var(--green-100); padding-bottom: 14px; margin-bottom: 16px; }
.stand-head .te { display: block; color: var(--green-700); font-weight: 700; font-size: 1rem; }
.stand-head strong { display: block; font-size: 1.45rem; color: var(--green-900); }
.stand-intro { color: var(--muted); margin: 0 0 18px; font-weight: 500; }
.stand-intro .te { color: var(--red-dark); font-weight: 700; }
.demand { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.demand li { display: flex; gap: 14px; align-items: flex-start; }
.demand .num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--green-700), var(--green-600)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.demand b { display: block; color: var(--green-900); font-size: 1.04rem; }
.demand .te { display: block; color: var(--green-700); font-weight: 600; font-size: .95rem; }
.demand em { display: block; color: var(--muted); font-style: normal; font-size: .88rem; margin-top: 3px; }
.stand-cta { display: inline-block; margin-top: 20px; font-weight: 800; color: var(--green-700); }
.stand-card:hover .stand-cta { color: var(--green-800); }

/* ---------- Welcome photo placeholder ---------- */
.photo-soon {
  display: grid; place-content: center; text-align: center; gap: 6px;
  aspect-ratio: 4/3; border-radius: 22px; padding: 30px;
  background: rgba(255,255,255,.08); border: 2px dashed rgba(255,255,255,.35);
  color: #fff; box-shadow: var(--shadow-lg);
}
.photo-soon .ps-ico { font-size: 2.6rem; }
.photo-soon b { font-size: 1.15rem; }
.photo-soon .te { color: rgba(255,255,255,.8); }

/* ---------- Grama Raasi feature banner (home) ---------- */
.gr-banner {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: stretch;
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  box-shadow: var(--shadow-lg); color: #fff;
  background: radial-gradient(900px 500px at 80% -20%, #2e9d57 0%, transparent 55%),
              linear-gradient(135deg, #14361f 0%, #1b5e34 60%, #237a44 100%);
}
.gr-banner-text { padding: 46px 44px; }
.gr-badge {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase; color: #ffe39a;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.gr-banner-text h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.gr-banner-text h2 .te { display: block; font-size: 1.05em; }
.gr-banner-text p { color: rgba(255,255,255,.9); font-size: 1.05rem; max-width: 460px; margin: 12px 0 26px; }
.gr-banner-text .te-line { color: #ffe39a; font-weight: 600; margin: -10px 0 26px; }
.gr-banner-figure { position: relative; min-height: 280px; }
.gr-banner-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gr-banner-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,54,31,.55), transparent 40%); }
@media (max-width: 860px) {
  .gr-banner { grid-template-columns: 1fr; }
  .gr-banner-figure { min-height: 220px; order: -1; }
}

/* Demand as a horizontal strip (interior page) */
.demand-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.demand-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.demand-step .num { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--green-700), var(--green-600)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.demand-step h3 { font-size: 1.12rem; color: var(--green-900); margin-bottom: 4px; }
.demand-step .te { display: block; color: var(--green-700); font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.demand-step p { color: var(--muted); margin: 0; font-size: .95rem; }
.demand-step::after { content: "→"; position: absolute; top: 50%; right: -16px; transform: translateY(-50%); color: var(--green-600); font-weight: 800; font-size: 1.4rem; z-index: 2; }
.demand-step:last-child::after { display: none; }
@media (max-width: 760px) {
  .demand-strip { grid-template-columns: 1fr; }
  .demand-step::after { content: "↓"; top: auto; bottom: -22px; right: 50%; transform: translateX(50%); }
}

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(160deg, #14361f, #237a44); color: #fff; padding: 70px 0 64px; }
.page-hero .eyebrow { background: rgba(255,255,255,.14); color: #ffe6b3; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; }
.page-hero h1 .te { display: block; }
.page-hero p { color: rgba(255,255,255,.88); max-width: 680px; font-size: 1.1rem; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.9); }

/* In-page section nav */
.subnav { position: sticky; top: 72px; z-index: 40; background: rgba(251,250,246,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; }
.subnav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.subnav a:hover, .subnav a.active { background: var(--green-100); color: var(--green-800); }

/* ---------- Footer ---------- */
.footer { background: #11271a; color: rgba(255,255,255,.8); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.footer a { color: rgba(255,255,255,.78); display: block; padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer .brand-text strong { color: #fff; }
.footer .brand-text span { color: rgba(255,255,255,.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .85rem; color: rgba(255,255,255,.6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .banner-card { max-width: 380px; margin: 0 auto; transform: none; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-figure { min-height: 240px; }
  .news-feature { grid-template-columns: 1fr; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .dual { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 2; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 18px 18px; box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s ease; }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px 8px; border-radius: 8px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .hero-stats { gap: 20px; }
  .spotlight-body, .pledge, .list-card, .card { padding: 26px 22px; }
}

/* ===========================================================
   Village portal — multi-page additions
   =========================================================== */

/* Nav dropdown */
.has-drop { position: relative; }
.drop-toggle { display: flex; align-items: center; gap: 5px; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink); padding: 9px 14px; border-radius: 10px; }
.drop-toggle:hover { background: var(--green-100); color: var(--green-800); }
.drop-toggle::after { content: "▾"; font-size: .8rem; opacity: .7; }
.drop { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 60; }
.has-drop:hover .drop, .has-drop.open .drop { opacity: 1; visibility: visible; transform: none; }
.drop li a { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: .94rem; color: var(--ink); }
.drop li a:hover { background: var(--green-100); color: var(--green-800); }

/* Grama Raasi nav distinction */
.nav-gr { display: inline-flex; align-items: center; gap: 6px; font-weight: 700 !important; color: var(--gold-dark) !important; background: #fff7e6; border: 1.5px solid #f3d68a; }
.nav-gr::before { content: "🌱"; }
.nav-gr:hover { background: #ffefc4; color: #8a5a00 !important; }

/* Grama Raasi distinction ribbon (top of GR pages) */
.gr-ribbon { background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: #fff; }
.gr-ribbon .wrap { display: flex; align-items: center; gap: 14px; padding: 12px 22px; flex-wrap: wrap; }
.gr-ribbon .badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #ffe39a; font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; }
.gr-ribbon p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.9); }
.gr-ribbon a { color: #fff; font-weight: 700; margin-left: auto; white-space: nowrap; }

/* Reusable info tiles (village pages) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tiles.cols-2 { grid-template-columns: repeat(2, 1fr); }
.tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; text-decoration: none; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile-photo { aspect-ratio: 16/10; display: grid; place-content: center; gap: 6px; text-align: center; color: #fff; }
.tile-photo .tico { font-size: 2.6rem; }
.tile-photo .tsoon { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .92; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: 22px 24px; flex: 1; }
.tile-body h3 { color: var(--green-900); font-size: 1.2rem; margin-bottom: 2px; }
.tile-body .te { display: block; color: var(--green-700); font-weight: 600; margin-bottom: 8px; }
.tile-body p { color: var(--muted); margin: 0; font-size: .95rem; }
.tile-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--earth); background: #f6efe6; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.tp-temple { background: linear-gradient(135deg, #b9551f, #e08b2d); }
.tp-church { background: linear-gradient(135deg, #355b8c, #5a86bd); }
.tp-school { background: linear-gradient(135deg, #1b5e34, #2e9d57); }
.tp-shop   { background: linear-gradient(135deg, #8a5a2b, #c08a3e); }
.tp-water  { background: linear-gradient(135deg, #1f6f8b, #3aa6c2); }
.tp-dev    { background: linear-gradient(135deg, #5a4b8c, #8a78c2); }
.tp-news   { background: linear-gradient(135deg, #4a5d52, #6f8576); }
.tp-generic{ background: linear-gradient(135deg, #4a5d52, #6f8576); }

/* "Coming soon" empty-state panel */
.empty-note { text-align: center; background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 28px; color: var(--muted); }
.empty-note .en-ico { font-size: 2.4rem; }
.empty-note b { display: block; color: var(--green-900); margin: 8px 0 4px; font-size: 1.1rem; }

/* Policy / disclaimer */
.policy-strip { background: #fff7e6; border-top: 1px solid #f3d68a; border-bottom: 1px solid #f3d68a; }
.policy-strip .wrap { display: flex; align-items: center; gap: 14px; padding: 14px 22px; flex-wrap: wrap; }
.policy-strip .pico { font-size: 1.4rem; }
.policy-strip p { margin: 0; font-size: .92rem; color: #6a4e12; }
.policy-strip a { color: var(--gold-dark); font-weight: 700; }
.policy-box { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 14px; padding: 28px 30px; box-shadow: var(--shadow); }
.policy-box h3 { color: var(--green-900); }
.policy-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.policy-list li { padding-left: 34px; position: relative; color: var(--ink); }
.policy-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; background: var(--green-100); color: var(--green-700); border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.policy-list li.no::before { content: "✕"; background: #fbe9e8; color: var(--red); }

@media (max-width: 640px) {
  .tiles, .tiles.cols-2 { grid-template-columns: 1fr; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--green-100); border-radius: 0; margin: 2px 0 6px 12px; padding: 0; min-width: 0; }
  .has-drop .drop { display: none; }
  .has-drop.open .drop { display: block; }
  .drop-toggle { width: 100%; justify-content: space-between; }
  .gr-ribbon a { margin-left: 0; }
}
