/* ==========================================================
   muthukurussi.com — Muthukurussi Kudumbayogam Foundation
   Main stylesheet
   ========================================================== */

:root {
  --green-900: #0f3d24;
  --green-800: #14532d;
  --green-700: #1b6b3a;
  --green-50:  #eef6ef;
  --blue-800:  #1e3a8a;
  --blue-600:  #2b4fb3;
  --red-700:   #a3261f;
  --gold-500:  #d4a017;
  --gold-400:  #e5b93a;
  --gold-50:   #fdf7e6;
  --ink:       #1d2622;
  --ink-soft:  #4b5a54;
  --line:      #e3e7e2;
  --paper:     #fbfaf6;
  --white:     #ffffff;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ml:   "Noto Sans Malayalam", "Manjari", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 28px rgba(15, 61, 36, .08);
  --shadow-lg: 0 18px 48px rgba(15, 61, 36, .14);
  --container: 1240px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--green-900); font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.ml { font-family: var(--font-ml); }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 820px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .78em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1 var(--font-body); cursor: pointer; transition: .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold-500); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--green-900); transform: translateY(-1px); }
.btn-outline { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn-outline:hover { background: var(--green-800); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--green-900); }
.btn-red { background: var(--red-700); color: #fff; }
.btn-red:hover { background: #861d17; color: #fff; }
.btn-sm { padding: .55em 1em; font-size: .85rem; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--green-900); color: #d9e7dd; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 7px 0; }
.topbar a { color: #fff; }
.topbar .social { display: flex; gap: 14px; align-items: center; }
.topbar svg { width: 15px; height: 15px; vertical-align: -3px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--green-900); }
.brand img { width: 50px; height: 50px; }
.brand > div { white-space: nowrap; }
.brand { margin-right: 12px; flex-shrink: 0; }
.brand strong { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.1; }
.brand span { display: block; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav li { position: relative; }
.nav a.nav-link, .nav button.nav-link {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink);
  font: 500 .93rem var(--font-body); background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav a.nav-link:hover, .nav button.nav-link:hover, .nav .active > .nav-link { color: var(--green-800); background: var(--green-50); }
.nav .has-sub > .nav-link::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: 1px; }
.nav .sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub, .nav .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: .92rem; }
.nav .sub a:hover { background: var(--green-50); color: var(--green-800); }
.nav-cta { display: flex; gap: 8px; margin-left: 10px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--green-900); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .site-header { backdrop-filter: none; background: var(--paper); }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, var(--header-h)); background: var(--paper); z-index: 55;
    flex-direction: column; align-items: stretch; padding: 16px 20px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease;
  }
  .nav.open { transform: none; }
  .nav > ul { flex-direction: column; }
  .nav a.nav-link, .nav button.nav-link { padding: 14px 10px; font-size: 1.05rem; width: 100%; text-align: left; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; display: none; }
  .nav .has-sub.open .sub { display: block; }
  .nav-cta { margin: 20px 0 0; flex-direction: column; }
  .nav-cta .btn { justify-content: center; }
  .topbar .hide-sm { display: none; }
}

/* ---------- Hero (home banner) ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; padding: 64px 0 36px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.04); animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 78% 40%, rgba(212,160,23,.22), transparent 55%),
    linear-gradient(100deg, rgba(8,34,20,.94) 0%, rgba(8,34,20,.78) 42%, rgba(8,34,20,.35) 100%),
    linear-gradient(0deg, rgba(8,34,20,.85) 0%, transparent 40%); }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; min-height: 440px; }
.motto-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(229,185,58,.45); backdrop-filter: blur(6px); margin-bottom: 22px; font-size: .9rem; }
.motto-pill .ml { color: var(--gold-400); font-weight: 600; padding-left: 8px; }
.motto-pill em { color: #d9e4dc; font-size: .82rem; }
.motto-pill .sep { width: 1px; height: 16px; background: rgba(255,255,255,.3); }
.pill-emblem { display: none; width: 34px; height: 34px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: .35em; letter-spacing: -.01em; }
.hero h1 .hl { color: var(--gold-400); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; border-radius: 4px; background: linear-gradient(90deg, var(--gold-500), transparent); }
.hero .lead { font-size: 1.15rem; max-width: 540px; color: #e7efe9; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual { position: relative; justify-self: center; }
.emblem-ring { width: min(330px, 30vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle, rgba(229,185,58,.28), rgba(229,185,58,0) 68%); }
.emblem-ring::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(229,185,58,.55); animation: spin 60s linear infinite; }
.emblem-ring img { width: 88%; filter: drop-shadow(0 24px 40px rgba(0,0,0,.5)); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-badge { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); background: var(--gold-500); color: var(--green-900);
  font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 7px 16px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.hero-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 44px; }
.hero-quick a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; color: #fff;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); transition: .2s; }
.hero-quick a:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateY(-2px); }
.hero-quick .qi { width: 40px; height: 40px; min-width: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-500); color: var(--green-900); }
.hero-quick .qi svg { width: 21px; height: 21px; }
.hero-quick b { display: block; font-size: .95rem; line-height: 1.25; }
.hero-quick small { color: #c9d8ce; font-size: .8rem; }

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 26px; }
.mini-stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; text-align: center; }
.mini-stats b { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--green-800); line-height: 1.1; }
.mini-stats span { font-size: .78rem; color: var(--ink-soft); line-height: 1.3; display: block; margin-top: 4px; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { display: none; }
  .pill-emblem { display: block; }
  .hero-quick { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; padding: 70px 0 60px; isolation: isolate; overflow: hidden;
  background: linear-gradient(115deg, var(--green-900), var(--green-800) 55%, var(--blue-800));
}
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/hero-muthukurussi.jpg") center/cover; opacity: .22; }
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero p { color: #dfe9e2; max-width: 680px; font-size: 1.08rem; margin: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 14px; color: #bcd0c3; }
.breadcrumb a { color: var(--gold-400); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section.alt { background: #fff; }
.section.tint { background: var(--green-50); }
.section.gold { background: var(--gold-50); }
.section.dark { background: var(--green-900); color: #dfe9e2; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 10px; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-foot { margin-top: 36px; text-align: center; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 60px 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }

/* ---------- Image placeholder ---------- */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #cfe2d4, #e8efe3 50%, #f3e6c4);
  display: grid; place-items: center; color: var(--green-800); font-size: .85rem; font-weight: 600; text-align: center;
}
.ph::before { content: ""; width: 44px; height: 44px; margin-bottom: 40px; position: absolute; opacity: .55;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314532d' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E"); }
.ph span { margin-top: 44px; padding: 0 14px; opacity: .8; }
.ph.wide { aspect-ratio: 16 / 9; }
.ph.square { aspect-ratio: 1; }
.ph.tall { aspect-ratio: 3 / 4; }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s ease; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card .ph, .card > img { border-radius: 0; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-soft); font-size: .95rem; }
.card-body .more { margin-top: auto; font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.card-body .more svg { width: 16px; height: 16px; transition: .2s; }
.card:hover .more svg { transform: translateX(3px); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-800); margin-bottom: 12px; align-self: flex-start; }
.tag.gold { background: var(--gold-50); color: #8a6508; }
.tag.red { background: #fbeceb; color: var(--red-700); }
.tag.blue { background: #e8eefb; color: var(--blue-800); }
.meta { font-size: .82rem; color: var(--ink-soft); margin-bottom: 8px; }

.icon-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.icon-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green-800); margin-bottom: 18px; }
.icon-card .ic svg { width: 26px; height: 26px; }
.icon-card p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

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

/* ---------- Guru band ---------- */
.guru-band { background: linear-gradient(120deg, #fff8e6, #fdf1cf); border-top: 1px solid #f0e2b4; border-bottom: 1px solid #f0e2b4; }
.guru-portrait { aspect-ratio: 3/4; max-width: 380px; }
.quote { font-family: var(--font-head); font-size: 1.45rem; line-height: 1.45; color: var(--green-900); border-left: 4px solid var(--gold-500); padding-left: 20px; margin: 22px 0; }
.quote small { display: block; font-family: var(--font-body); font-size: .85rem; color: var(--ink-soft); margin-top: 8px; }
.text-links { display: grid; gap: 14px; margin-top: 26px; }
.text-link { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #ecdcaa; border-radius: 12px; padding: 16px 18px; color: var(--ink); }
.text-link:hover { border-color: var(--gold-500); color: var(--ink); box-shadow: var(--shadow); }
.text-link .num { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-500); min-width: 44px; }
.text-link b { display: block; color: var(--green-900); }
.text-link small { color: var(--ink-soft); }

/* ---------- Competition highlight ---------- */
.comp { display: grid; grid-template-columns: 280px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.comp .poster { background: linear-gradient(160deg, var(--gold-400), #f08a24); display: grid; place-items: center; padding: 24px; color: var(--green-900); text-align: center; }
.comp .poster.blue { background: linear-gradient(160deg, #3b5fc4, var(--blue-800)); color: #fff; }
.comp .poster b { font-family: var(--font-head); font-size: 1.6rem; display: block; line-height: 1.15; }
.comp .poster .prize { font-family: var(--font-head); font-size: 2.6rem; margin-top: 10px; }
.comp .body { padding: 28px; }
.comp ul.facts { list-style: none; padding: 0; margin: 14px 0 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--ink-soft); }
.comp ul.facts b { color: var(--ink); }
@media (max-width: 760px) { .comp { grid-template-columns: 1fr; } }

/* ---------- Action band ---------- */
.action-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.action { border-radius: var(--radius); padding: 30px; color: #fff; display: flex; flex-direction: column; gap: 8px; }
.action h3 { color: #fff; margin: 0; }
.action p { color: rgba(255,255,255,.86); margin: 0 0 14px; font-size: .95rem; }
.action .btn { align-self: flex-start; margin-top: auto; }
.action.a1 { background: var(--green-800); }
.action.a2 { background: var(--red-700); }
.action.a3 { background: var(--blue-800); }
@media (max-width: 860px) { .action-band { grid-template-columns: 1fr; } }

/* ---------- Lists / content ---------- */
.prose { font-size: 1.04rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { padding-left: 30px; position: relative; margin: 10px 0; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item::before { content: ""; position: absolute; left: -27px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-500); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--gold-500); }
.tl-item b { color: var(--green-900); }
.tl-item p { margin: 4px 0 0; color: var(--ink-soft); font-size: .95rem; }

.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.person { text-align: center; }
.person .ph { border-radius: 50%; aspect-ratio: 1; width: 140px; margin: 0 auto 14px; }
.person .ph::before { margin-bottom: 0; }
.person .ph span { display: none; }
.person b { display: block; color: var(--green-900); }
.person small { color: var(--ink-soft); }
@media (max-width: 760px) { .people { grid-template-columns: repeat(2, 1fr); } }

.founder { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } }

/* ---------- Verses ---------- */
.verse-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.verse-nav a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .88rem; color: var(--ink); }
.verse-nav a:hover, .verse-nav a.active { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.verse { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 20px; }
.verse .vno { font-family: var(--font-head); color: var(--gold-500); font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.verse .original { font-family: var(--font-ml); font-size: 1.12rem; line-height: 1.9; color: var(--green-900); background: var(--gold-50); border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.verse .translit { font-style: italic; color: var(--ink-soft); font-size: .95rem; margin-bottom: 12px; }
.verse h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 14px 0 4px; }
.verse p { margin: 0; }
.placeholder-note { border: 1px dashed var(--gold-500); background: var(--gold-50); color: #7a5a06; padding: 12px 16px; border-radius: 10px; font-size: .9rem; margin-bottom: 26px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 24px; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field label .req { color: var(--red-700); }
.field .hint { font-size: .8rem; color: var(--ink-soft); margin-top: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd6d0; border-radius: 10px;
  font: inherit; font-size: .96rem; background: #fcfdfc; color: var(--ink); transition: .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(27,107,58,.15); background: #fff; }
.field input[type=file] { padding: 10px; background: var(--green-50); border-style: dashed; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.checkbox input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--green-800); }
.form-actions { margin-top: 26px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form-success { display: none; background: var(--green-50); border: 1px solid #bfdcc8; color: var(--green-900); padding: 16px 18px; border-radius: 10px; margin-top: 18px; }
.form-success.show { display: block; }

.choice-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice label { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 18px; cursor: pointer; background: #fcfdfc; transition: .15s; }
.choice label b { display: block; color: var(--green-900); margin-bottom: 4px; }
.choice label small { color: var(--ink-soft); }
.choice input:checked + label { border-color: var(--green-800); background: var(--green-50); box-shadow: 0 0 0 3px rgba(27,107,58,.12); }
.choice input:focus-visible + label { outline: 2px solid var(--blue-600); }
@media (max-width: 560px) { .choice-toggle { grid-template-columns: 1fr; } }
.identity-fields[hidden] { display: none; }

.info-box { background: var(--green-50); border-radius: var(--radius); padding: 26px; }
.info-box h3 { font-size: 1.1rem; }
.info-box ol, .info-box ul { padding-left: 1.2em; margin: 0; color: var(--ink-soft); font-size: .95rem; }
.info-box li { margin: 6px 0; }
.sidebar { display: grid; gap: 20px; align-content: start; }
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .ic { width: 44px; height: 44px; min-width: 44px; border-radius: 12px; background: var(--green-50); color: var(--green-800); display: grid; place-items: center; }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list b { display: block; }
.contact-list span, .contact-list a { color: var(--ink-soft); font-size: .95rem; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; background: #e6ece6; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Filters & gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filters button { padding: 8px 16px; border: 1px solid var(--line); background: #fff; border-radius: 999px; cursor: pointer; font: 500 .9rem var(--font-body); color: var(--ink); }
.filters button.active, .filters button:hover { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery .g-item { cursor: zoom-in; border-radius: 12px; overflow: hidden; position: relative; }
.gallery .g-item img, .gallery .g-item .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0; transition: transform .3s; }
.gallery .g-item:hover img, .gallery .g-item:hover .ph { transform: scale(1.04); }
.gallery .g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: .82rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transition: .2s; }
.gallery .g-item:hover figcaption { opacity: 1; }
.gallery .g-item.hide { display: none; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.lightbox { position: fixed; inset: 0; background: rgba(8,20,14,.92); display: none; place-items: center; z-index: 100; padding: 30px; }
.lightbox.open { display: grid; }
.lightbox img, .lightbox .ph { max-width: min(1000px, 92vw); max-height: 80vh; width: auto; border-radius: 10px; }
.lightbox .ph { width: min(800px, 90vw); }
.lightbox p { color: #fff; text-align: center; margin-top: 12px; }
.lightbox button { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }

.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.insta-grid .ph { aspect-ratio: 1; border-radius: 10px; }
@media (max-width: 760px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Winners table ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th { background: var(--green-800); color: #fff; text-align: left; padding: 13px 16px; font-weight: 600; }
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- Article ---------- */
.article-head .meta { font-size: .9rem; }
.article-body { font-size: 1.07rem; }
.article-body p { margin-bottom: 1.2em; }
.share { display: flex; gap: 10px; align-items: center; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.pagination a.active, .pagination a:hover { background: var(--green-800); color: #fff; border-color: var(--green-800); }

/* ---------- Footer ---------- */
.site-footer { background: #0b2c1a; color: #b9cbbf; padding: 70px 0 0; font-size: .93rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #d6e3da; }
.site-footer a:hover { color: var(--gold-400); }
.footer-brand img { width: 74px; margin-bottom: 14px; }
.footer-brand .motto { font-family: var(--font-ml); color: var(--gold-400); font-size: 1.1rem; margin: 6px 0 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.footer-social a:hover { background: var(--gold-500); color: var(--green-900); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom { margin-top: 56px; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.25); transition: .2s; }
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- 404 ---------- */
.notfound { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.notfound .big { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); color: var(--green-800); line-height: 1; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ==========================================================
   Mobile optimisation
   ========================================================== */
@media (max-width: 640px) {
  :root { --header-h: 62px; --radius: 12px; }
  body { font-size: 15px; line-height: 1.6; }
  .container, .narrow { width: calc(100% - 32px); }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.12rem; }
  .eyebrow { font-size: .7rem; margin-bottom: 6px; }

  .topbar { display: none; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 1.02rem; }
  .brand span { font-size: .62rem; }

  /* banner */
  .hero { padding: 26px 0 20px; }
  .motto-pill { padding: 5px 12px 5px 5px; margin-bottom: 16px; gap: 8px; }
  .motto-pill em, .motto-pill .sep { display: none; }
  .motto-pill .ml { padding-left: 0; font-size: .95rem; }
  .pill-emblem { width: 30px; height: 30px; }
  .hero h1 { font-size: 2.05rem; margin-bottom: .3em; }
  .hero .lead { font-size: .98rem; }
  .hero-actions { margin-top: 18px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; justify-content: center; padding: .75em .8em; font-size: .88rem; }
  .hero-quick { margin-top: 22px; gap: 8px; }
  .hero-quick a { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .hero-quick .qi { width: 32px; height: 32px; min-width: 32px; border-radius: 9px; }
  .hero-quick .qi svg { width: 17px; height: 17px; }
  .hero-quick b { font-size: .86rem; }
  .hero-quick small { font-size: .72rem; }
  .mini-stats { gap: 8px; margin: 16px 0 20px; }
  .mini-stats div { padding: 10px 6px; }
  .mini-stats b { font-size: 1.35rem; }
  .mini-stats span { font-size: .7rem; }

  /* page heroes & sections */
  .page-hero { padding: 30px 0 26px; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero p { font-size: .95rem; }
  .breadcrumb { margin-bottom: 8px; font-size: .78rem; }
  .section { padding: 40px 0; }
  .section-sm { padding: 32px 0; }
  .section-head { margin-bottom: 20px; }
  .section-head p { font-size: .95rem; margin-bottom: 0; }
  .section-foot { margin-top: 20px; }
  .grid { gap: 14px; }
  .split { gap: 22px; }

  /* images: no giant placeholders */
  .ph.tall, .guru-portrait { aspect-ratio: 16 / 9; max-width: none; }
  .ph::before { width: 32px; height: 32px; margin-bottom: 28px; }
  .ph span { margin-top: 32px; font-size: .76rem; }

  /* horizontal swipe rows (home page) */
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 78%; scroll-snap-align: start; }
  .rail .card .ph { aspect-ratio: 16 / 9; }

  /* compact list cards (list pages) */
  .list-m .card { flex-direction: row; }
  .list-m .card .ph { width: 108px; min-width: 108px; aspect-ratio: auto; min-height: 100%; }
  .list-m .card .ph span { display: none; }
  .list-m .card .ph::before { margin: 0; }
  .list-m .card-body { padding: 12px 14px; }
  .list-m .card-body h3 { font-size: 1rem; margin-bottom: .3em; }
  .list-m .card-body p { font-size: .84rem; margin-bottom: .5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .list-m .tag { margin-bottom: 6px; font-size: .62rem; padding: 3px 8px; }
  .list-m .meta { margin-bottom: 2px; font-size: .75rem; }
  .card-body { padding: 16px; }
  .card:hover { transform: none; }

  /* filters & chips scroll sideways */
  .filters, .verse-nav { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 20px; padding: 0 16px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar, .verse-nav::-webkit-scrollbar { display: none; }
  .filters button, .verse-nav a { white-space: nowrap; flex: 0 0 auto; }

  /* guru */
  .quote { font-size: 1.15rem; margin: 16px 0; padding-left: 14px; }
  .text-links { margin-top: 16px; gap: 10px; }
  .text-link { padding: 12px 14px; gap: 12px; }
  .text-link .num { font-size: 1.2rem; min-width: 34px; }

  /* competitions */
  .comp .poster { padding: 16px; display: flex; justify-content: flex-start; text-align: left; }
  .comp .poster > div { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; width: 100%; }
  .comp .poster .tag { grid-column: 1 / -1; justify-self: start; margin-bottom: 6px; }
  .comp .poster b { font-size: 1.2rem; }
  .comp .poster .prize { grid-row: 2 / span 3; grid-column: 2; font-size: 2rem; margin: 0; }
  .comp .poster small { grid-column: 1; }
  .comp .body { padding: 18px; }
  .comp ul.facts { margin: 10px 0 16px; gap: 6px 16px; font-size: .84rem; }
  .comp .btn { width: 100%; justify-content: center; }

  .action { padding: 20px; }
  .action-band { gap: 12px; }
  .icon-card { padding: 18px; }
  .icon-card .ic { width: 42px; height: 42px; margin-bottom: 12px; }
  .grid-4 > .icon-card, .grid-3 > .icon-card { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; }
  .grid-4 > .icon-card .ic, .grid-3 > .icon-card .ic { grid-row: span 2; margin: 0; }
  .grid-4 > .icon-card h3, .grid-3 > .icon-card h3 { margin-bottom: .2em; }
  .icon-card.center { display: block !important; }

  .founder { padding: 20px; gap: 18px; }
  .founder .ph { max-width: 160px; }
  .person .ph { width: 96px; }
  .people { gap: 16px; }

  .form-card { padding: 20px 16px; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .choice label { padding: 14px; }
  .choice-toggle { gap: 10px; margin-bottom: 18px; }
  .info-box { padding: 18px; }
  .two-col { gap: 20px; }

  .verse { padding: 18px; }
  .verse .original { padding: 12px 14px; font-size: 1.02rem; }
  .gallery { gap: 8px; }
  .insta-grid { gap: 6px; }
  .map { aspect-ratio: 4 / 3; }
  table.data th, table.data td { padding: 10px 12px; font-size: .86rem; }
  .share { flex-wrap: wrap; }

  .site-footer { padding-top: 40px; }
  .section-sm h2 { font-size: 1.25rem; word-break: break-word; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 28px; padding-bottom: 80px; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 26px; height: 26px; }
}

body.menu-open .wa-float { display: none; }

/* ---------- Dummy images inside .ph ---------- */
.ph.has-img { background: #e6ece6; }
.ph.has-img::before { display: none; }
.ph.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person .ph.has-img { overflow: hidden; }

/* ---------- Whole card clickable ---------- */
.card { position: relative; cursor: pointer; }
.card .more::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:focus-within { outline: 2px solid var(--green-700); outline-offset: 2px; }
.card:hover h3 { color: var(--green-700); }
.card .ph.has-img img { transition: transform .4s ease; }
.card:hover .ph.has-img img { transform: scale(1.05); }
.lightbox .lb-body img { width: min(900px, 90vw); height: auto; max-height: 80vh; object-fit: contain; }

/* ---------- Mobile sticky CTA: Request Help ---------- */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  .sticky-cta {
    display: flex; gap: 10px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(11, 44, 26, .97); box-shadow: 0 -6px 20px rgba(0,0,0,.18);
    transform: translateY(0); transition: transform .25s ease;
  }
  .sticky-cta .sc-help { flex: 1; justify-content: center; padding: .9em 1em; font-size: .98rem; }
  .sticky-cta .sc-help svg { width: 19px; height: 19px; }
  .sticky-cta .sc-wa { width: 48px; height: 48px; min-width: 48px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; }
  .sticky-cta .sc-wa svg { width: 25px; height: 25px; }
  body:has(.sticky-cta) { padding-bottom: 70px; }
  body:has(.sticky-cta) .wa-float { display: none; }
  body:has(.sticky-cta) .footer-bottom { padding-bottom: 20px; }
  body.menu-open .sticky-cta { transform: translateY(110%); }
}

/* ---------- Home: village pictures ---------- */
.pic-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 180px 180px; gap: 12px; }
.pic-strip > * { border-radius: var(--radius); overflow: hidden; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto !important; }
.pic-strip > :first-child { grid-row: span 2; }
.mini-stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) {
  .pic-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .pic-strip::-webkit-scrollbar { display: none; }
  .pic-strip > * { flex: 0 0 72%; height: 200px; scroll-snap-align: start; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
}

.topbar .social { margin-left: auto; }

/* ---------- Top bar CTAs (desktop) ---------- */
.top-cta { display: flex; gap: 8px; margin-left: 16px; }
.btn-top { padding: .45em 1em; font-size: .8rem; gap: .4em; }
.btn-top svg { width: 15px; height: 15px; }
.btn-top-outline { border-color: rgba(255,255,255,.55); color: #fff !important; background: transparent; }
.btn-top-outline:hover { background: #fff; color: var(--green-900) !important; border-color: #fff; }
.topbar .btn-gold { color: var(--green-900); }
.topbar .btn-gold:hover { color: var(--green-900); }
@media (min-width: 1081px) { .nav-cta { display: none; } .topbar .container { padding: 6px 0; } }
@media (max-width: 1080px) { .top-cta { display: none; } }

/* ---------- Home: About photos ---------- */
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-media img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media .am-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .about-media { gap: 8px; } .about-media img { border-radius: 10px; } }

/* ---------- Filters as links (server-side) ---------- */
.filters a { padding: 8px 16px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font: 500 .9rem var(--font-body); color: var(--ink); white-space: nowrap; }
.filters a.active, .filters a:hover { background: var(--green-800); color: #fff; border-color: var(--green-800); }
@media (max-width: 640px) { .filters a { flex: 0 0 auto; } }
/* ---------- Forms: honeypot + errors ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fbeceb; border: 1px solid #f0c4c0; color: #861d17; padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; }
.form-error ul { margin: 6px 0 0; padding-left: 1.2em; }
.form-success.show { display: block; }

/* ---------- Instagram strip links ---------- */
.insta-item { display: block; border-radius: 10px; overflow: hidden; }
.insta-item .ph img { transition: transform .3s ease; }
.insta-item:hover .ph img { transform: scale(1.05); }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; background: #fff; border: 1px dashed #cfd8d1; border-radius: var(--radius); padding: 48px 24px; max-width: 640px; margin: 0 auto; }
.empty-state.compact { padding: 32px 22px; }
.empty-state .es-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--green-50); color: var(--green-800); display: grid; place-items: center; margin: 0 auto 16px; }
.empty-state .es-ic svg { width: 30px; height: 30px; }
.empty-state h3 { margin-bottom: .35em; }
.empty-state p { color: var(--ink-soft); max-width: 460px; margin: 0 auto; }
.empty-state .es-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
@media (max-width: 640px) { .empty-state { padding: 32px 18px; } .empty-state .es-actions .btn { flex: 1 1 100%; justify-content: center; } }
