/* ============================================================
   सतवीर सिंह ख्यालिया — वार्ड 24, लक्ष्मणगढ़ नगरपालिका
   varzishmate.com
   ============================================================ */

:root {
  --paper:        #FDFBF7;
  --paper-warm:   #F7F1E7;
  --ink:          #16130F;
  --ink-soft:     #5A5147;
  --ink-faint:    #8B8177;
  --saffron:      #E8620C;
  --saffron-deep: #B84A05;
  --saffron-wash: #FCEFE3;
  --green:        #138808;
  --line:         #E7DFD2;
  --line-strong:  #D3C7B4;

  --display: "Tiro Devanagari Hindi", Georgia, serif;
  --body:    "Mukta", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1080px;
  --pad: 20px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, iframe { max-width: 100%; display: block; }
a { color: inherit; }

/* Grid/flex children default to min-width:auto and refuse to shrink below their
   min-content width. A failed image's alt text is enough to blow out the track,
   so every grid child opts out explicitly. */
.hero-grid > *,
.parichay-grid > *,
.ward-grid > *,
.cards > *,
.contact-grid > *,
.leaders > *,
.foot-grid > *,
.head-inner > * { min-width: 0; }

p, li, h1, h2, h3, address, .ccard b { overflow-wrap: break-word; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
}

/* ---------------- Header ---------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--saffron);
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.02em;
  border-radius: 2px;
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text span {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.head-nav { display: none; gap: 26px; }
.head-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.head-nav a:hover { color: var(--saffron-deep); border-bottom-color: var(--saffron); }

@media (min-width: 860px) {
  .head-nav { display: flex; }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: 44px 0 52px;
  background:
    linear-gradient(180deg, var(--saffron-wash) 0%, rgba(252,239,227,0) 62%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-grid { display: grid; gap: 32px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--saffron-deep);
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--saffron);
  flex: none;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 11vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.hero-sub {
  margin: 0 0 22px;
  font-size: clamp(1.02rem, 3.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero-sub b { color: var(--ink); font-weight: 700; }

.hero-slogan {
  position: relative;
  margin: 0 0 28px;
  padding-top: 22px;
  font-family: var(--display);
  font-size: clamp(1.08rem, 3.8vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink);
}
.hero-slogan::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px;
  height: 3px;
  background: var(--saffron);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--body);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-solid { background: var(--saffron); color: #fff; }
.btn-solid:hover { background: var(--saffron-deep); }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--saffron); color: var(--saffron-deep); }

.hero-photo { margin: 0; }
.hero-photo figcaption {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
}

@media (min-width: 860px) {
  .hero { padding: 76px 0 84px; }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 56px;
  }
  .hero-copy { order: 1; }
  .hero-photo { order: 2; }
}

/* ---------------- Image placeholders ---------------- */

.ph {
  position: relative;
  background: var(--paper-warm);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.ph img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  object-position: center top;
  /* Only visible while the file is missing: keeps broken-image alt text
     inside the box instead of stretching the layout. */
  overflow: hidden;
  overflow-wrap: break-word;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-faint);
  text-align: center;
  padding: 8px;
}
/* Matches the poster artwork exactly so none of its lettering gets cropped. */
.ph-portrait { aspect-ratio: 1114 / 1500; }
.ph-portrait img { object-position: center; }
.ph-leader   { aspect-ratio: 3 / 4; }

/* ---------------- वीडियो ---------------- */

.video-frame {
  max-width: 340px;
  border: 1px solid var(--line-strong);
  background: #000;
  overflow: hidden;
}
.video-frame video {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 860px) {
  .video-frame { max-width: 380px; }
}

/* ---------------- झलकियाँ ---------------- */

.gallery { display: grid; gap: 20px; }

.gal { margin: 0; }
.gal img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  background: #fff;
}
.gal figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* Both remaining items are landscape artwork, so a single column at a readable
   width beats squeezing them into narrow side-by-side columns. */
@media (min-width: 720px) {
  .gallery { max-width: 820px; gap: 34px; }
}

/* ---------------- फेसबुक फ़ीड ---------------- */

.fb-posts {
  display: grid;
  gap: 22px;
  justify-content: start;
}

.fb-post {
  border: 1px solid var(--line-strong);
  background: #fff;
  overflow: hidden;
  max-width: 100%;
}
.fb-post iframe { display: block; max-width: 100%; }

@media (min-width: 1080px) {
  /* Two posts side by side once there is room for both at full plugin width. */
  .fb-posts { grid-template-columns: repeat(2, auto); gap: 26px; }
}

.fb-fallback {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: var(--ink-faint);
}
.fb-fallback a { color: var(--saffron-deep); }

/* ---------------- नामांकन ---------------- */

.announce { padding: 46px 0; background: var(--paper); }

.announce-card {
  background: #fff;
  border: 1px solid var(--line-strong);
  padding: 30px 24px 26px;
}

.announce-flag { margin: 0 0 8px; font-size: 26px; line-height: 1; }

.announce-card h2 {
  position: relative;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.45rem, 5.6vw, 2rem);
  line-height: 1.28;
  margin: 0 0 16px;
  padding-bottom: 16px;
}
.announce-card h2::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 32px;
  height: 3px;
  background: var(--saffron);
}

.announce-body {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 16.5px;
}

.announce-sign {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink);
}

@media (min-width: 860px) {
  .announce { padding: 72px 0; }
  .announce-card { padding: 44px 48px 38px; }
}

/* ---------------- Section shell ---------------- */

.band { padding: 52px 0; border-top: 1px solid var(--line); }
.band-alt { background: var(--paper-warm); }

.sec-label {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  color: var(--saffron-deep);
}

.sec-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 6.2vw, 2.35rem);
  line-height: 1.24;
  margin: 0 0 14px;
}

.sec-intro {
  margin: 0 0 32px;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 16.5px;
}

@media (min-width: 860px) {
  .band { padding: 84px 0; }
}

/* ---------------- संकल्प cards ---------------- */

.cards { display: grid; gap: 16px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--line-strong); }

.card h3 {
  position: relative;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.28rem;
  line-height: 1.35;
  margin: 0 0 12px;
  padding-top: 16px;
}
.card h3::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px;
  height: 3px;
  background: var(--saffron);
  border-radius: 2px;
}

.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

@media (min-width: 620px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------- परिचय ---------------- */

.parichay-grid { display: grid; gap: 30px; }
.parichay-copy p { margin: 0 0 16px; color: var(--ink-soft); }
.parichay-copy p:last-of-type { margin-bottom: 24px; }

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.facts span { color: var(--ink-faint); letter-spacing: 0.02em; }
.facts b { font-weight: 600; text-align: right; }

@media (min-width: 860px) {
  .parichay-grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 56px;
    align-items: start;
  }
  .parichay-copy p { max-width: 60ch; }
}

/* ---------------- नेतृत्व ---------------- */

.leaders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.leader { margin: 0; }
.leader figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 11px;
}
.leader b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.35;
}
.leader span { font-size: 13px; color: var(--ink-faint); line-height: 1.4; }

@media (min-width: 860px) {
  .leaders { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* ---------------- वार्ड / नक्शा ---------------- */

.ward-grid { display: grid; gap: 30px; }

.addr {
  font-style: normal;
  margin: 22px 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.addr b {
  display: block;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.ward-copy p { margin: 0; color: var(--ink-soft); }

.ward-map {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-warm);
}
.ward-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  filter: saturate(0.85);
}

@media (min-width: 860px) {
  .ward-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
  .ward-map iframe { height: 400px; }
}

/* ---------------- संपर्क ---------------- */

.contact-grid { display: grid; gap: 14px; }

.ccard {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
a.ccard:hover { border-color: var(--saffron); background: #fffdfa; }

.ccard-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--saffron-deep);
}
.ccard b {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}
.ccard-note { font-size: 14px; color: var(--ink-faint); }
.ccard-static { background: var(--paper-warm); }

@media (min-width: 620px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ---------------- Footer ---------------- */

.site-foot {
  background: var(--ink);
  color: #CFC6BA;
  padding: 48px 0 30px;
  font-size: 15px;
}

.foot-grid { display: grid; gap: 30px; padding-bottom: 32px; }

.foot-name {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 8px;
}
.foot-role { margin: 0; color: #A79C8E; line-height: 1.6; font-size: 14.5px; }

.foot-col h3 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  color: var(--saffron);
}
.foot-col address { font-style: normal; line-height: 1.75; color: #CFC6BA; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { color: #CFC6BA; text-decoration: none; border-bottom: 1px solid #4A423A; }
.foot-col a:hover { color: #fff; border-bottom-color: var(--saffron); }

.foot-legal {
  border-top: 1px solid #322C25;
  padding-top: 24px;
}
.foot-legal p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #8D8377;
  max-width: 80ch;
}
.foot-legal b { color: #B8AC9D; font-weight: 600; }

.foot-credit { font-size: 12.5px !important; color: #7D7469 !important; }

.foot-copy {
  margin-top: 18px !important;
  padding-top: 16px;
  border-top: 1px solid #322C25;
  font-size: 12.5px !important;
  color: #6E655B !important;
}

@media (min-width: 860px) {
  .site-foot { padding: 66px 0 34px; }
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 0.7fr;
    gap: 48px;
    padding-bottom: 44px;
  }
}

/* ---------------- Motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
