/* Kalpavruksha Public Charitable Trust
   Layout concept: a banyan in section form. Canopy-green bands hold the big moments,
   a leaf-tinted ground carries reading text, and thin hanging "roots" (from the logo's
   drooping letters) mark where each section begins. */
:root {
  --leaf: #0e9447;
  --leaf-deep: #0b7a3b;
  --canopy: #123f2a;
  --canopy-2: #18533a;
  --sprout: #a6c41a;
  --trunk: #c4672f;
  --bark: #3d241d;
  --muted: #6b5d55;
  --ground: #f5f8f1;
  --paper: #ffffff;
  --line: #dce4d4;
  --tint: #e8f2e3;
  --on-dark: #f2f6ee;
  --on-dark-muted: #b9cbbd;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-label: "Josefin Sans", "Gill Sans", "Trebuchet MS", sans-serif;

  --wrap: 1180px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--bark);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--leaf-deep); text-underline-offset: 3px; }
a:hover { color: var(--trunk); }
:focus-visible { outline: 3px solid var(--trunk); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--bark); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 650; }
h4 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0; }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.prose { display: grid; gap: 1.1em; max-width: 66ch; }
.prose p { color: var(--bark); }
.tabnum { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: calc(var(--wrap) + 64px);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut-r);
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

/* Labels echo the logo's tall thin capitals */
.eyebrow {
  font-family: var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--leaf-deep);
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 26px; flex: none; margin-top: -2px;
  background:
    linear-gradient(var(--trunk), var(--trunk)) 0 0 / 2px 100% no-repeat,
    linear-gradient(var(--bark), var(--bark)) 7px 0 / 2px 55% no-repeat,
    linear-gradient(var(--leaf), var(--leaf)) 14px 0 / 2px 80% no-repeat,
    linear-gradient(var(--bark), var(--bark)) 20px 0 / 2px 35% no-repeat;
}
.on-dark .eyebrow { color: var(--sprout); }
.on-dark .eyebrow::before {
  background:
    linear-gradient(var(--trunk), var(--trunk)) 0 0 / 2px 100% no-repeat,
    linear-gradient(var(--on-dark-muted), var(--on-dark-muted)) 7px 0 / 2px 55% no-repeat,
    linear-gradient(var(--sprout), var(--sprout)) 14px 0 / 2px 80% no-repeat,
    linear-gradient(var(--on-dark-muted), var(--on-dark-muted)) 20px 0 / 2px 35% no-repeat;
}

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bark); }
.brand img { width: 62px; height: auto; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--f-label); font-size: 1.32rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bark); font-weight: 600; }
.brand-sub { font-family: var(--f-label); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--leaf-deep); font-weight: 600; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.86rem; font-weight: 600; color: var(--bark); text-decoration: none;
  padding: 10px 12px; border-radius: 8px; position: relative;
}
.nav a:hover { color: var(--leaf-deep); background: var(--tint); }
.nav a[aria-current="page"] { color: var(--leaf-deep); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--trunk); border-radius: 2px; }
.nav .nav-cta { background: var(--leaf); color: #fff; margin-left: 8px; }
.nav .nav-cta:hover { background: var(--leaf-deep); color: #fff; }
.nav .nav-cta[aria-current="page"]::after { display: none; }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; color: var(--bark); align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px var(--gut-r) 18px var(--gut);
    box-shadow: 0 18px 30px -18px rgba(18, 63, 42, 0.35);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav a[aria-current="page"]::after { left: 12px; right: auto; width: 26px; bottom: 8px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 420px) {
  .brand img { width: 50px; }
  .brand-name { font-size: 1.1rem; }
  .brand-sub { font-size: 0.6rem; letter-spacing: 0.18em; }
}

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; font-size: 0.9rem;
  padding: 15px 24px 13px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--leaf); color: #fff; }
.btn-primary:hover { background: var(--leaf-deep); color: #fff; }
.btn-ghost { border-color: var(--bark); color: var(--bark); background: transparent; }
.btn-ghost:hover { background: var(--bark); color: #fff; }
.on-dark .btn-ghost { border-color: var(--on-dark); color: var(--on-dark); }
.on-dark .btn-ghost:hover { background: var(--on-dark); color: var(--canopy); }
.btn-sun { background: var(--sprout); color: var(--canopy); }
.btn-sun:hover { background: #b9d62a; color: var(--canopy); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 52px); max-width: 760px; }
.on-dark { background: var(--canopy); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--on-dark); }
.on-dark .lede, .on-dark p { color: var(--on-dark-muted); }
.band-paper { background: var(--paper); border-block: 1px solid var(--line); }

/* ---------- Hero banner (image only, no text on image) ---------- */
.banner { position: relative; background: var(--canopy); overflow: hidden; }
.banner-stage { position: relative; aspect-ratio: 16 / 7; max-height: 640px; width: 100%; }
.banner-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0; transition: opacity 1.4s ease; }
.banner-stage img.is-on { opacity: 1; }
.banner-dots { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); bottom: 18px; display: flex; gap: 8px; }
.banner-dots button { width: 34px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,.5); cursor: pointer; }
.banner-dots button[aria-pressed="true"] { background: #fff; }
@media (max-width: 700px) { .banner-stage { aspect-ratio: 4 / 3; } }

.page-banner { position: relative; background: var(--canopy); }
.page-banner img { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; object-position: center 35%; max-height: 460px; }
@media (max-width: 700px) { .page-banner img { aspect-ratio: 16 / 9; } }

/* Intro under the banner */
.intro { background: var(--paper); border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; padding-block: clamp(48px, 7vw, 88px); }
.intro-grid > * { min-width: 0; }
.intro h1 .accent { color: var(--leaf); }
.intro-side { display: grid; gap: 22px; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; align-items: start; } }

/* Page title (inner pages) */
.page-title { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-title .wrap { padding-block: clamp(44px, 6vw, 76px); display: grid; gap: 16px; }
.crumbs { font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 26px 22px 26px 0; display: grid; gap: 6px; min-width: 0; }
.fact + .fact { padding-left: 22px; border-left: 1px solid var(--line); }
.fact-k { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.fact-v { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: var(--bark); line-height: 1.1; }
.fact-v small { font-family: var(--f-body); font-size: 0.9rem; font-weight: 500; color: var(--muted); display: block; margin-top: 4px; }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Phases: a real sequence, so it is numbered */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.phase { padding: 0 28px 0 0; display: grid; gap: 14px; align-content: start; position: relative; min-width: 0; }
.phase + .phase { padding-left: 28px; border-left: 1px solid rgba(255,255,255,0.14); }
.phase-no { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.78rem; color: var(--sprout); font-weight: 600; }
.phase-ico { width: 56px; height: 56px; border-radius: 50%; background: rgba(166, 196, 26, 0.14); display: grid; place-items: center; color: var(--sprout); }
.phase-ico svg { width: 28px; height: 28px; }
.phase ul { margin: 0; padding-left: 1.1em; color: var(--on-dark-muted); display: grid; gap: 4px; }
@media (max-width: 900px) {
  .phases { grid-template-columns: 1fr; gap: 34px; }
  .phase, .phase + .phase { padding: 0; border-left: 0; }
  .phase + .phase { padding-top: 34px; border-top: 1px solid rgba(255,255,255,0.14); }
}

/* Conditions */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.cond-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cond-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; }
.cond-list .tag { font-family: var(--f-label); font-weight: 600; color: var(--trunk); letter-spacing: 0.16em; font-size: 0.8rem; }
.cond-list strong { font-family: var(--f-display); font-size: 1.15rem; font-weight: 650; line-height: 1.2; }
@media (max-width: 460px) { .cond-list { grid-template-columns: 1fr; } }

.partner {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  background: var(--tint); border-radius: var(--radius); padding: 26px;
}
.partner-ico { width: 52px; height: 52px; border-radius: 12px; background: var(--leaf); color: #fff; display: grid; place-items: center; }
.partner-ico svg { width: 26px; height: 26px; }
.partner > div { min-width: 0; display: grid; gap: 6px; }
@media (max-width: 460px) { .partner { grid-template-columns: 1fr; } }

/* Event feature */
.event-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; background: var(--paper);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.event-feature > * { min-width: 0; }
.event-feature .ef-img { position: relative; min-height: 320px; background: var(--canopy); }
.event-feature .ef-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-feature .ef-body { padding: clamp(26px, 4vw, 44px); display: grid; gap: 18px; align-content: center; }
.status-chip {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; font-weight: 600;
  background: #fbeee5; color: #9a4718; padding: 7px 12px 5px; border-radius: 999px;
}
.status-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--trunk); margin-top: -2px; }
.status-chip.live { background: #e4f4e8; color: var(--leaf-deep); }
.status-chip.live::before { background: var(--leaf); }
.status-chip.past { background: #eeeae7; color: var(--muted); }
.status-chip.past::before { background: var(--muted); }
.meta-list { display: grid; gap: 10px; margin: 0; }
.meta-list div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.meta-list dt { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; font-weight: 600; color: var(--muted); padding-top: 4px; }
.meta-list dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .event-feature { grid-template-columns: 1fr; } .event-feature .ef-img { min-height: 0; aspect-ratio: 16/9; } }

/* Support CTA */
.cta-band { background: var(--leaf); color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-block: clamp(52px, 7vw, 84px); }
.cta-grid > * { min-width: 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e3f4e6; }
.cta-band .btns { justify-content: flex-end; }
.cta-band .btn-ghost { border-color: #fff; color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--leaf-deep); }
.cta-band .btn-light { background: #fff; color: var(--leaf-deep); }
.cta-band .btn-light:hover { background: var(--sprout); color: var(--canopy); }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } .cta-band .btns { justify-content: flex-start; } }

/* Cards & panels */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 > *, .grid-2 > * { min-width: 0; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; }
.panel .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--leaf-deep); display: grid; place-items: center; }
.panel .ico svg { width: 24px; height: 24px; }
.panel p { color: var(--muted); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a3b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.on-dark .checklist li::before { background-color: rgba(166,196,26,.16); }

/* Info table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; font-weight: 600; color: var(--muted); background: var(--tint); white-space: nowrap; }
td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; }
td strong { font-weight: 650; }
.note { font-size: 0.92rem; color: var(--muted); margin-top: 10px; }

/* Timeline (About) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 34px 30px; display: grid; gap: 6px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--leaf); }
.timeline .when { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 600; color: var(--trunk); }
.timeline p { color: var(--muted); max-width: 60ch; }

/* Detail tiles for TT page */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile { background: var(--paper); padding: 22px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.tile .k { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.tile .v { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.tile .s { color: var(--muted); font-size: 0.94rem; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }

.days { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.day { border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.day-a { background: var(--canopy); color: var(--on-dark); }
.day-b { background: var(--canopy-2); color: var(--on-dark); }
.day h3 { color: var(--on-dark); }
.day .when { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; font-weight: 600; color: var(--sprout); }
.day p, .day li { color: var(--on-dark-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-variant-numeric: tabular-nums; font-weight: 650; font-size: 0.92rem; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--on-dark); }
.chips.light .chip { background: var(--tint); color: var(--leaf-deep); }
@media (max-width: 760px) { .days { grid-template-columns: 1fr; } }

.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 78px); z-index: 40; background: var(--ground); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav a { flex: none; font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; color: var(--bark); text-decoration: none; padding: 8px 12px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.subnav a:hover { border-color: var(--leaf); color: var(--leaf-deep); }
.anchor { scroll-margin-top: 150px; }

.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pkg-grid > * { min-width: 0; }
.pkg { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; }
.pkg.top { background: var(--canopy); color: var(--on-dark); border-color: var(--canopy); }
.pkg.top h3, .pkg.top .price { color: var(--on-dark); }
.pkg.top li { color: var(--on-dark-muted); }
.pkg .slots { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; font-weight: 600; color: var(--trunk); }
.pkg.top .slots { color: var(--sprout); }
.pkg .price { font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; color: var(--bark); font-variant-numeric: tabular-nums; line-height: 1; }
.pkg ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 0.96rem; color: var(--muted); }
@media (max-width: 900px) { .pkg-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pkg-grid { grid-template-columns: 1fr; } }

.callout { border-radius: var(--radius); padding: 22px 24px; background: #fdf4ec; border: 1px solid #f1d9c6; display: grid; gap: 6px; }
.callout strong { color: #8d4216; }

/* Events list */
.event-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 28px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.event-row:last-child { border-bottom: 1px solid var(--line); }
.event-row > * { min-width: 0; }
.date-block { font-family: var(--f-display); line-height: 1; display: grid; gap: 6px; }
.date-block .d { font-size: 2.4rem; font-weight: 700; color: var(--leaf-deep); font-variant-numeric: tabular-nums; }
.date-block .m { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.event-row h3 { margin-bottom: 6px; }
.event-row p { color: var(--muted); }
@media (max-width: 760px) { .event-row { grid-template-columns: 1fr; gap: 14px; } }

/* Contact */
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 22px; }
.contact-line { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-line .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--leaf-deep); display: grid; place-items: center; }
.contact-line .ico svg { width: 22px; height: 22px; }
.contact-line > div { min-width: 0; overflow-wrap: anywhere; }
.contact-line .k { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.contact-line .v { font-weight: 650; font-size: 1.05rem; }
form.contact { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--bark); background: var(--paper);
  border: 1px solid #cdd8c4; border-radius: 10px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--leaf); outline-offset: 1px; border-color: var(--leaf); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.form-msg { font-weight: 600; color: var(--leaf-deep); }
button[type="submit"]:disabled { opacity: .6; cursor: wait; }
.bank th { width: 34%; }
.bank td { font-size: 1.02rem; overflow-wrap: anywhere; }
.copy-cell { width: 1%; white-space: nowrap; text-align: right; }
.copy-btn {
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 600;
  border: 1px solid var(--line); background: var(--paper); color: var(--leaf-deep);
  padding: 7px 12px 5px; border-radius: 999px; cursor: pointer;
}
.copy-btn:hover { border-color: var(--leaf); }

/* Footer */
.site-footer { background: var(--canopy); color: var(--on-dark-muted); padding-block: 64px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-grid > * { min-width: 0; }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-brand img { width: 120px; background: #fff; border-radius: 14px; padding: 10px; }
.site-footer h4 { color: var(--on-dark); font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.82rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--sprout); }
.site-footer p { font-size: 0.96rem; overflow-wrap: anywhere; }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.stack { display: grid; gap: 18px; }
.stack-lg { display: grid; gap: 36px; }
.mt-l { margin-top: clamp(40px, 6vw, 64px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .banner-stage img { transition: none; }
  .btn { transition: none; }
}

/* ---------- Photo gallery: masonry ---------- */
.masonry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 8px;
  column-gap: 16px;
  row-gap: 0;
  grid-auto-flow: dense;
}
@media (max-width: 1100px) { .masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; } }
.g-item {
  grid-row-end: span 30; /* replaced by script once the photo's shape is known */
  margin-bottom: 16px;
  display: block; position: relative; overflow: hidden;
  border-radius: 12px; background: linear-gradient(110deg, var(--tint) 30%, #f3f8ef 50%, var(--tint) 70%) 0 0 / 300% 100%;
  animation: g-shimmer 1.6s linear infinite;
  cursor: zoom-in;
}
@media (max-width: 760px) { .g-item { margin-bottom: 10px; border-radius: 10px; } }
.g-item.is-loaded { animation: none; background: var(--canopy); }
.g-item.is-broken { display: none; }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: scale(1.02); transition: opacity .5s ease, transform .6s ease; }
.g-item.is-loaded img { opacity: 1; transform: scale(1); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,63,42,.55), rgba(18,63,42,0) 55%); opacity: 0; transition: opacity .3s; }
.g-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--canopy); display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.g-zoom svg { width: 20px; height: 20px; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }
.g-item:hover .g-zoom, .g-item:focus-visible .g-zoom { opacity: 1; transform: none; }
.g-item:focus-visible { outline: 3px solid var(--trunk); outline-offset: 3px; }
@keyframes g-shimmer { to { background-position: -300% 0; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: #08140e;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  animation: lb-in .25s ease;
  color: #fff;
}
@keyframes lb-in { from { opacity: 0; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px max(16px, env(safe-area-inset-left, 0px)) 6px; }
.lb-count { font-family: var(--f-label); letter-spacing: .14em; font-weight: 600; font-size: .9rem; color: var(--on-dark-muted); }
.lb-actions { display: flex; gap: 8px; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; text-decoration: none; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0 max(16px, env(safe-area-inset-left, 0px)); min-height: 0; }
.lb-frame { position: relative; min-height: 0; min-width: 0; display: grid; place-items: center; touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: calc(100vh - 176px); max-height: calc(100dvh - 176px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: opacity .3s ease, transform .3s ease; }
.lb-img.is-loading { opacity: 0; transform: scale(.985); }
.lb-spin { position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--sprout); animation: lb-spin .8s linear infinite; opacity: 0; transition: opacity .2s; }
.lb-frame.is-loading .lb-spin { opacity: 1; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lb-thumbs { display: flex; justify-content: safe center; gap: 8px; overflow-x: auto; padding: 12px max(16px, env(safe-area-inset-left, 0px)) 16px; scrollbar-width: thin; scroll-behavior: smooth; }
.lb-thumbs button { flex: none; width: 76px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.08); cursor: pointer; opacity: .5; transition: opacity .2s, border-color .2s; }
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumbs button:hover { opacity: .85; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--sprout); }
@media (max-width: 700px) {
  .lb-stage { grid-template-columns: minmax(0, 1fr); padding: 0 8px; }
  .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0,0,0,.35); }
  .lb-prev { left: max(10px, env(safe-area-inset-left, 0px)); }
  .lb-next { right: max(10px, env(safe-area-inset-right, 0px)); }
  .lb-thumbs button { width: 60px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .g-item, .lightbox, .lb-spin { animation: none; }
  .g-item img, .lb-img { transition: none; }
}
