

:root {
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --maroon: #702c32;
  --red: #a84435;
  --terracotta: #bb6546;
  --saffron: #e8a044;
  --green: #667b53;
  --ink: #30251f;
  --muted: #81766b;
  --line: #eadfd0;
  --shadow: 0 12px 35px rgba(75, 42, 28, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans Devanagari", sans-serif;
  line-height: 1.7;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

.announcement {
  background: var(--maroon);
  color: #fff6e9;
  text-align: center;
  padding: 7px 12px;
  font-size: 12px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251,246,236,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 45% 45%;
  background: var(--maroon);
  color: #fff1d6;
  font-size: 25px;
  border: 3px double var(--saffron);
}

.brand-name {
  color: var(--maroon);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
}

.brand-sub {
  font-family: "DM Sans", sans-serif;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 600;
}

.nav-links a:hover { color: var(--terracotta); }

.btn {
  border: 0;
  border-radius: 7px;
  padding: 12px 19px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  transition: .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--maroon);
  color: white;
  box-shadow: 0 5px 15px #702c3220;
}

.btn-primary:hover { background: #542027; }

.btn-outline {
  background: transparent;
  color: var(--maroon);
  border: 1px solid #b98778;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 12px;
  color: var(--maroon);
  font-size: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 76px;
  background:
    radial-gradient(ellipse at 0% 0%, #e8a04420, transparent 38%),
    var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 58px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--saffron);
}

.hero h1 {
  font-size: clamp(43px, 6vw, 74px);
  line-height: 1.23;
  letter-spacing: -2px;
  color: var(--maroon);
  margin: 18px 0 16px;
}

.hero h1 span { color: var(--terracotta); }

.hero-copy {
  color: #706257;
  max-width: 510px;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 12px;
  color: var(--muted);
}

.note-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.portrait-wrap {
  position: relative;
  max-width: 440px;
  margin-left: auto;
  width: 100%;
  padding: 12px;
  border: 1px solid #c68c68;
  border-radius: 48% 48% 10px 10px;
  background: #e8a04420;
}

.portrait {
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: center;
  border-radius: 48% 48% 7px 7px;
  background: #e5d6c0;
}

.portrait-label {
  position: absolute;
  bottom: 28px;
  left: -25px;
  right: 25px;
  padding: 16px 20px;
  border: 1px solid #ffffff90;
  background: rgba(255,253,248,.96);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.portrait-label strong {
  color: var(--maroon);
  display: block;
  font-size: 18px;
}

.portrait-label span {
  color: var(--muted);
  font-size: 12px;
}

.ornament {
  position: absolute;
  top: 35px;
  right: -20px;
  color: var(--terracotta);
  font-size: 30px;
}

.section { padding: 76px 0; }
.section-white { background: var(--paper); }

.section-heading {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 35px;
}

.section-heading .eyebrow { justify-content: center; }

.section-heading h2 {
  font-size: clamp(27px, 4vw, 39px);
  line-height: 1.35;
  color: var(--maroon);
  margin: 12px 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  margin-top: 44px;
}

.stat {
  padding: 20px;
  text-align: center;
}

.stat + .stat { border-left: 1px solid var(--line); }

.stat strong {
  display: block;
  font-size: 23px;
  color: var(--maroon);
}

.stat span { font-size: 12px; color: var(--muted); }

.issue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 17px;
}

.issue-card {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 18px;
  color: var(--ink);
  min-height: 190px;
  transition: .25s ease;
  position: relative;
}

.issue-card:hover {
  transform: translateY(-5px);
  border-color: #c28b6e;
  box-shadow: var(--shadow);
}

.issue-icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  background: #f5e7d5;
  border-radius: 9px;
  font-size: 25px;
  margin-bottom: 16px;
}

.issue-card h3 { font-size: 16px; color: var(--maroon); margin: 0 0 7px; }
.issue-card p { font-size: 12px; color: var(--muted); margin: 0 0 15px; }

.card-link {
  font-size: 12px;
  font-weight: 800;
  color: var(--terracotta);
}

.issue-card .arrow {
  position: absolute;
  right: 17px;
  bottom: 15px;
  font-size: 18px;
  color: var(--terracotta);
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.split h2 {
  color: var(--maroon);
  font-size: 34px;
  line-height: 1.4;
  margin: 12px 0;
}

.split p { color: var(--muted); font-size: 14px; }

.feature-list {
  padding: 0;
  list-style: none;
  margin: 20px 0;
}

.feature-list li { margin: 10px 0; font-size: 13px; }

.feature-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  margin-right: 10px;
}

.complaint-preview {
  padding: 30px;
  background: #f5ead9;
  border: 1px solid #e6d3bc;
  border-radius: 13px;
}

.complaint-preview h3 { color: var(--maroon); margin-top: 0; }

.field { margin-bottom: 15px; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #ddcdbb;
  border-radius: 7px;
  background: #fffdf8;
  outline: none;
  font-size: 13px;
  color: var(--ink);
}

.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px #bb654418;
}

.field textarea { min-height: 100px; resize: vertical; }

.projects-grid, .news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

.project-card, .news-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.project-image, .news-image {
  height: 195px;
  width: 100%;
  object-fit: cover;
  background: #e7d7c2;
}

.project-body, .news-body { padding: 19px; }

.pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 4px;
  background: #f3e6d4;
  color: var(--maroon);
  font-size: 10px;
  font-weight: 800;
}

.project-body h3, .news-body h3 {
  font-size: 17px;
  color: var(--maroon);
  margin: 10px 0 7px;
}

.project-body p, .news-body p {
  font-size: 12px;
  color: var(--muted);
}

.progress {
  height: 5px;
  background: #e8ded1;
  border-radius: 9px;
  overflow: hidden;
  margin-top: 15px;
}

.progress span { height: 100%; display: block; background: var(--green); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #eee0cd;
  cursor: pointer;
}

.gallery-item:first-child { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.gallery-item:hover img { transform: scale(1.05); }

.cta {
  background: var(--maroon);
  color: #fff7e9;
  padding: 42px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.cta h2 { margin: 0 0 8px; font-size: 29px; }
.cta p { color: #f0dcd0; margin: 0; font-size: 13px; }
.cta .btn { background: var(--saffron); color: #3d2118; flex-shrink: 0; }

.footer {
  background: #2f211d;
  color: #f8eddd;
  padding: 48px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 35px;
}

.footer h3 { font-size: 17px; }
.footer p, .footer a { font-size: 12px; color: #d4c3b1; }
.footer a { display: block; margin: 8px 0; }
.footer a:hover { color: var(--saffron); }

.copyright {
  margin-top: 35px;
  padding-top: 17px;
  border-top: 1px solid #ffffff20;
  font-size: 11px;
  color: #c6b5a7;
}

/* Detail page and interactive views */
#detailView { display: none; min-height: 65vh; padding: 45px 0 75px; }
.detail-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(22px, 5vw, 45px);
  box-shadow: var(--shadow);
}
.detail-panel h1 { color: var(--maroon); font-size: 34px; line-height: 1.4; }
.detail-panel p { color: var(--muted); }
.detail-panel .back { margin-bottom: 20px; }
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.detail-list > div { background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.notice { background: #f5ead9; border-radius: 7px; padding: 13px; font-size: 12px; margin: 16px 0; }
.success { background: #e8f0e2; border: 1px solid #c9d9bd; padding: 17px; border-radius: 8px; margin-top: 15px; overflow-wrap: anywhere; }
.hidden { display: none !important; }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  max-width: calc(100% - 40px);
  padding: 13px 18px;
  background: #2f211d;
  color: white;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: var(--shadow);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #160e0deF;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.lightbox.open { display: flex; }
.lightbox img { max-height: 85vh; max-width: 90vw; border-radius: 6px; }
.lightbox button { position: absolute; top: 15px; right: 20px; color: white; background: none; border: 0; font-size: 35px; }

@media (max-width: 980px) {
  .nav-links { gap: 12px; font-size: 12px; }
  .nav-cta { display: none; }
  .hero-grid { gap: 35px; }
  .portrait { height: 390px; }
  .issue-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .container { width: min(100% - 30px, 540px); }
  .nav { min-height: 68px; }
  .brand-mark { width: 41px; height: 41px; }
  .brand-name { font-size: 16px; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 15px 22px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero h1 { font-size: 45px; }
  .hero-copy { font-size: 14px; }
  .portrait-wrap { max-width: 350px; margin: auto; }
  .portrait { height: 355px; }
  .portrait-label { left: -7px; right: 7px; }
  .section { padding: 55px 0; }
  .stats { margin-top: 28px; }
  .stat { padding: 14px 6px; }
  .stat strong { font-size: 19px; }
  .stat span { font-size: 10px; }
  .issue-grid { gap: 11px; }
  .issue-card { padding: 16px 13px; min-height: 182px; }
  .issue-card h3 { font-size: 14px; }
  .issue-card p { font-size: 11px; }
  .split { grid-template-columns: 1fr; gap: 25px; }
  .split h2 { font-size: 29px; }
  .complaint-preview { padding: 20px; }
  .projects-grid, .news-grid { grid-template-columns: 1fr; }
  .project-image, .news-image { height: 220px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 135px 135px; }
  .gallery-item:first-child { grid-row: auto; grid-column: span 2; }
  .cta { padding: 27px 22px; align-items: flex-start; flex-direction: column; }
  .cta h2 { font-size: 25px; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .detail-list { grid-template-columns: 1fr; }
  .detail-panel h1 { font-size: 27px; }
}
