/* Bakrol: cream, terracotta, field green and marigold. Mobile first. */
:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --tint: #f3ece0;
  --text: #2b2420;
  --muted: #6b5f55;
  --line: #e4d9c9;
  --primary: #2f6b3a;
  --primary-dark: #22502b;
  --accent: #b5532a;
  --marigold: #e8a33d;
  --wa: #1f8f4e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 36, 32, .06), 0 6px 18px rgba(43, 36, 32, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Gujarati", "Shruti", "Gujarati Sangam MN", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); }
body.lang-gu { line-height: 1.8; }
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: #1f1a17; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.section { padding-block: 2.5rem; }
.section-tint { background: var(--tint); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.12rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .3em; }
.eyebrow a { color: inherit; text-decoration: none; }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: .5em; }

/* Bars */
.preview-bar { background: #fff4d6; color: #5a4200; font-size: .9rem; text-align: center; padding: .45em 16px; border-bottom: 1px solid #f0dc9e; }
.draft-bar { background: #fff4d6; border: 1px solid #f0dc9e; border-radius: 10px; padding: .7em 1em; margin: 1.2rem 0; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 1.2rem; color: var(--primary-dark); }
.brand small { font-size: .78rem; color: var(--muted); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--text); position: relative; content: ""; }
.bars::before { position: absolute; top: -6px; }
.bars::after { position: absolute; top: 6px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; box-shadow: var(--shadow); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: block; padding: .7em .2em; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.lang-switch { display: inline-block; margin-top: .8rem; padding: .35em .9em; border: 1px solid var(--primary); border-radius: 999px; text-decoration: none; font-weight: 600; }
@media (min-width: 1020px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 1rem; position: static; padding: 0; border: 0; box-shadow: none; background: none; }
  .site-nav ul { display: flex; gap: .2rem; }
  .site-nav li a { border: 0; padding: .5em .65em; border-radius: 8px; font-size: .95rem; }
  .site-nav li a:hover { background: var(--tint); }
  .lang-switch { margin: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .45em; padding: .7em 1.2em; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; min-height: 44px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-light { background: rgba(255, 255, 255, .92); color: var(--text); border-color: var(--line); }
.btn-light:hover { background: #fff; color: var(--accent); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #17733e; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--primary-dark); overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 30, 20, .35), rgba(20, 30, 20, .7)); }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(4rem, 14vw, 9rem) clamp(2.5rem, 8vw, 5rem); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 7vw, 3.8rem); }
.hero .lead { color: #f5efe6; max-width: 40ch; font-size: clamp(1.05rem, 2.6vw, 1.3rem); margin-bottom: 1.6rem; }

/* Home about strip */
.about-strip { display: grid; gap: 1.5rem; }
.fact-chips { list-style: none; margin: 0; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fact-chips li { padding: .35em 0; border-bottom: 1px dashed var(--line); }
.fact-chips li:last-child { border: 0; }
.fact-chips li:first-child { font-weight: 700; color: var(--accent); }
@media (min-width: 800px) { .about-strip { grid-template-columns: 3fr 2fr; align-items: start; } }

/* Section heads and cards */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.2rem; }
.section-head p { margin: 0; }
.cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards-small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card-body p:last-child { margin-bottom: 0; }

/* Photo grid */
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--tint); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-grid a:hover img { transform: scale(1.04); }

/* Page heads, chips, search, pager */
.page-head { padding-block: 2.2rem .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .45em .95em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .93rem; min-height: 40px; }
.chip[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip .count { font-size: .78rem; opacity: .75; }
.search { display: flex; gap: .5rem; max-width: 520px; margin-top: 1rem; }
.search input { flex: 1; min-width: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }
.empty, .placeholder-box { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.4rem; color: var(--muted); }

/* Village facts */
.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.facts { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fact { display: grid; gap: .2rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.fact:last-child { border: 0; }
.fact dt { font-weight: 700; }
.fact dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
@media (min-width: 560px) { .fact { grid-template-columns: 11rem 1fr; } }
.placeholder { color: var(--muted); font-style: italic; }
.badge { font-size: .72rem; font-weight: 700; padding: .15em .6em; border-radius: 999px; white-space: nowrap; }
.badge-verified { background: #e2f1e4; color: #1d5a27; }
.badge-community { background: #e5eef9; color: #234b7a; }
.badge-pending { background: #f6ebd9; color: #7a4a10; }
.map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--tint); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-pending { display: grid; place-items: center; text-align: center; padding: 1.5rem; color: var(--muted); }
.video { width: 100%; border-radius: var(--radius); background: #000; }
.note { margin-top: 1rem; font-size: .95rem; }
.independent-box { border-left: 4px solid var(--marigold); background: var(--surface); padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; color: var(--muted); font-size: .95rem; }

/* Articles */
.article-head { padding-top: 2rem; }
.article-meta { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; color: var(--muted); font-size: .92rem; }
.article-cover { margin: 0 0 1.5rem; }
.article-cover img, .inline-photo img { border-radius: var(--radius); width: 100%; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.inline-photo { margin: 1.5rem 0; }
mark.verify { background: #ffe9a8; padding: 0 .2em; border-radius: 4px; }
.verify-box { background: #fff8e3; border: 1px solid #f0dc9e; border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0; }
.verify-box h2 { font-size: 1.1rem; }

/* Share */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2rem 0 0; }
.share-label { font-weight: 700; margin-right: .2rem; }
.share a, .share button { display: inline-flex; align-items: center; gap: .35em; padding: .4em .85em; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font: inherit; font-size: .9rem; cursor: pointer; min-height: 40px; }
.share a:hover, .share button:hover { border-color: var(--primary); color: var(--primary); }
.icon { flex: none; }

/* CTA */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: var(--radius); padding: 1.6rem 1.6rem; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { margin: 0; color: #e7f0e6; }
.cta-col { flex-direction: column; align-items: flex-start; margin-bottom: 1.5rem; }

/* Profile */
.profile-head { display: grid; gap: 1.5rem; align-items: center; }
.profile-photo img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow); }
@media (min-width: 700px) { .profile-head { grid-template-columns: auto 1fr; } }

/* Forms */
.form label { display: block; font-weight: 600; margin-bottom: .3rem; }
input, textarea, select { width: 100%; font: inherit; padding: .65em .8em; border: 1px solid #cfc2af; border-radius: 10px; background: #fff; color: var(--text); min-height: 44px; }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.flash { padding: .8rem 1rem; border-radius: 10px; }
.flash-ok { background: #e2f1e4; color: #1d5a27; }
.flash-error { background: #fbe4dc; color: #8a2e10; }
.social-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.social-list a { display: inline-flex; align-items: center; gap: .4em; }

/* Footer */
.site-footer { background: #241f1b; color: #e9e1d6; margin-top: 3rem; padding-top: 2.5rem; }
.site-footer a { color: #f3d9a4; }
.site-footer .muted { color: #bfb3a5; }
.footer-grid { display: grid; gap: 1.8rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .5rem; }
.footer-h { font-size: 1rem; color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: .2em 0; }
.footer-links a { text-decoration: none; display: inline-flex; align-items: center; gap: .35em; }
.footer-bottom { border-top: 1px solid #3a332d; margin-top: 2rem; padding-block: 1.2rem 1.6rem; font-size: .9rem; }
.footer-bottom p { margin: .3rem 0; }
.independent { color: #cfc3b4; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); z-index: 40; }
.wa-float:hover { color: #fff; background: #17733e; }
.wa-float .icon { width: 30px; height: 30px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(12, 10, 9, .94); display: grid; grid-template-rows: 1fr auto; color: #fff; }
.lb[hidden] { display: none; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 56px 8px 8px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; }
.lb-bar { padding: .7rem 16px 1rem; text-align: center; font-size: .95rem; }
.lb-bar a { color: #f3d9a4; }
.lb-count { color: #bbb; margin-left: .5rem; }
.lb button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

.notfound { text-align: center; padding-block: 5rem; }
.notfound .lead { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .wa-float, .share, .preview-bar { display: none; } }
