:root {
  --ink: #16231d;
  --muted: #5d675f;
  --paper: #fbfaf4;
  --panel: #ffffff;
  --line: #ded9c8;
  --leaf: #1f6b4a;
  --marigold: #e3a225;
  --brick: #a33e2b;
  --sky: #d8eef0;
  --shadow: 0 24px 70px rgba(22, 35, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: var(--leaf);
  border-radius: 50%;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--leaf);
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px;
  background: #ece7d8;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-button {
  min-height: 34px;
  padding: 7px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.language-button.is-active {
  color: #fff;
  background: var(--leaf);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 36px));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 21, 16, 0.78), rgba(10, 21, 16, 0.44), rgba(10, 21, 16, 0.1)),
    linear-gradient(0deg, rgba(10, 21, 16, 0.68), rgba(10, 21, 16, 0.03) 45%);
}

.hero-content {
  max-width: 820px;
  padding: 0 clamp(20px, 6vw, 72px) clamp(56px, 9vw, 110px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd47c;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.hero p {
  max-width: 660px;
  font-size: clamp(1.04rem, 1.7vw, 1.32rem);
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--leaf);
}

.button.light {
  color: #102019;
  background: #fff6df;
}

.button.secondary {
  color: var(--leaf);
  background: var(--sky);
  border-color: rgba(31, 107, 74, 0.18);
}

.section,
.photo-strip {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  background: #fff;
}

.photo-strip article {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-strip img {
  height: 100%;
  object-fit: cover;
}

.photo-strip span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 8px 12px;
  color: #fff;
  background: rgba(22, 35, 29, 0.76);
  border-radius: 6px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.split > div:first-child p:not(.eyebrow),
.form-copy p,
.sponsor-band p {
  color: var(--muted);
  font-size: 1.06rem;
}

.program-grid,
.contribution-options,
.timeline,
.sponsor-levels,
.contacts-grid {
  display: grid;
  gap: 16px;
}

.program-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-card,
.contribution-options article,
.timeline article,
.sponsor-levels article,
.contacts-grid article,
.bank-card {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(22, 35, 29, 0.07);
}

.program-card p,
.contribution-options p,
.timeline p {
  color: var(--muted);
  margin-bottom: 0;
}

.impact-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.impact-band div {
  padding: clamp(28px, 5vw, 54px);
  background: #24362b;
  color: #fff;
}

.metric {
  display: block;
  margin-bottom: 6px;
  color: var(--marigold);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 80px);
  background: #f2efe3;
}

.smart-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfaf4;
  border: 1px solid #cec8b6;
  border-radius: 6px;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--leaf);
  font-weight: 800;
}

.contribute {
  background: #fff;
}

.contribute > div:first-child {
  max-width: 850px;
}

.contribution-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contribution-options article {
  display: grid;
  align-content: start;
  gap: 8px;
}

.contribution-options .button {
  margin-top: 8px;
  justify-self: start;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: #fff;
  background: #16231d;
}

.site-footer p {
  margin: 6px 0 0;
  color: #c4cfc7;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.mela-hero::after {
  background:
    linear-gradient(90deg, rgba(79, 30, 20, 0.82), rgba(79, 30, 20, 0.42), rgba(79, 30, 20, 0.08)),
    linear-gradient(0deg, rgba(10, 21, 16, 0.68), rgba(10, 21, 16, 0.03) 45%);
}

.event-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(32px, 6vw, 84px);
}

.event-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: #fff;
}

.invitation-card {
  padding: clamp(10px, 2vw, 16px);
  background: #fff7d1;
  border: 1px solid #d9bd64;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.invitation-card img {
  border-radius: 6px;
}

.event-summary p:not(.eyebrow) {
  color: var(--muted);
}

.sahajanand-portrait {
  display: grid;
  grid-template-columns: minmax(130px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 26px 0 4px;
  padding: 18px;
  background: #fff8dc;
  border: 1px solid #d9bd64;
  border-radius: 8px;
}

.sahajanand-portrait img {
  max-width: 180px;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(22, 35, 29, 0.16);
}

.sahajanand-portrait figcaption {
  color: var(--muted);
  font-weight: 800;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: minmax(110px, 0.36fr) minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
  font-weight: 800;
}

.detail-list.compact {
  margin-top: 14px;
}

.bank-card {
  align-self: stretch;
}

.bank-card h3 {
  color: var(--leaf);
}

.qr-display {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
  padding: 16px;
  background: #fff8dc;
  border: 1px solid #d9bd64;
  border-radius: 8px;
}

.qr-display img {
  max-width: 360px;
  margin: 0 auto;
  background: #fff8dc;
  border: 10px solid #fffaf0;
  border-radius: 6px;
}

.qr-display figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

.payment-note {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  background: #f4f9ea;
  border: 1px solid rgba(31, 107, 74, 0.24);
  border-left: 5px solid var(--leaf);
  border-radius: 8px;
}

.payment-note strong {
  color: var(--leaf);
  font-size: 1.08rem;
}

.payment-note p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline article span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  color: #fff;
  background: var(--brick);
  border-radius: 50%;
  font-weight: 900;
}

.mela-gallery {
  background: #f2efe3;
}

.sponsor-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  background: #fff;
}

.sponsor-levels article {
  display: grid;
  gap: 6px;
}

.sponsor-levels strong {
  color: var(--leaf);
  font-size: 1.08rem;
}

.sponsor-levels span {
  color: var(--muted);
}

.contacts-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 1.3fr);
  gap: clamp(28px, 5vw, 68px);
  background: #f2efe3;
}

.contacts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contacts-grid article {
  display: grid;
  gap: 7px;
}

.contacts-grid strong {
  color: var(--leaf);
  font-size: 1.08rem;
}

.contacts-grid span {
  color: var(--muted);
  font-weight: 800;
}

.contacts-grid a {
  color: var(--brick);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 680px;
  }

  .photo-strip,
  .split,
  .event-detail-grid,
  .form-section,
  .contribution-options,
  .event-overview,
  .sponsor-band,
  .contacts-section,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .impact-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .brand {
    min-width: 0;
  }

  .nav-links {
    font-size: 0.88rem;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-bottom: 44px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .sahajanand-portrait {
    grid-template-columns: 1fr;
  }

  .sahajanand-portrait img {
    max-width: 210px;
  }

  .photo-strip article {
    min-height: 230px;
  }
}
