:root {
  --sage: #647c6e;
  --sage-hover: #586e62;
  --deep: #3d4f45;
  --cream: #f7f5ee;
  --white: #ffffff;
  --tan: #e1a982;
  --muted: #8a9c8f;
  --line: rgba(100, 124, 110, 0.18);
  --ink: #33413a;
  --light-sage: #dddfbe;
  --font-display: "Jost", system-ui, sans-serif;
  --font-body: "Tenor Sans", Georgia, serif;
  --pad: clamp(20px, 5vw, 64px);
  --pad-x: 64px;
  --header-h: 76px;
  --shadow-lift: 0 14px 40px rgba(61, 79, 69, 0.18);
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
}

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

button, input, select, textarea { font: inherit; }

.events-wrap {
  width: min(1120px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 420px);
  grid-template-rows: minmax(0, 1fr);
  gap: 20px 48px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px var(--pad-x);
  height: calc(100dvh - var(--site-header-h, var(--header-h)));
  max-height: calc(100dvh - var(--site-header-h, var(--header-h)));
  background: var(--cream);
  overflow: hidden;
  box-sizing: border-box;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -40px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(196, 168, 220, 0.35) 0%, rgba(244, 180, 198, 0.15) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__copy {
  position: relative;
  z-index: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--deep);
  text-wrap: pretty;
  max-width: 11ch;
}

.hero__sub {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(51, 65, 58, 0.75);
  max-width: 460px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
}

.hero .btn {
  width: auto;
  background: var(--deep);
  padding: 19px 34px;
  font-size: 16px;
}

.hero .btn:hover { background: #2f3d36; }

.hero__media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  min-height: 0;
  height: 100%;
  background: transparent;
  overflow: hidden;
  container-type: size;
}

.hero__video-card {
  position: relative;
  width: min(100cqw, calc(100cqh * 9 / 16));
  height: min(100cqh, calc(100cqw * 16 / 9));
  max-width: 100%;
  max-height: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--light-sage);
}

.hero__video-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hero__video-logo {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: auto;
  opacity: 0.95;
  pointer-events: none;
}

.hero__video-mobile-wrap { display: none; }

.hero__video-mobile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--light-sage);
  border-radius: 20px;
}

#upcoming-events {
  scroll-margin-top: calc(var(--site-header-h, var(--header-h)) + 12px);
}

.events-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  color: #fff;
  background: #3d4f45 center/cover no-repeat;
}

.events-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40, 32, 24, 0.15), rgba(40, 32, 24, 0.62));
}

.events-hero__copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - var(--pad) * 2));
  margin: 0 auto 48px;
}

.events-hero h1,
.event-banner h1,
.section-title,
.guest-card h1 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0;
}

.events-hero h1 {
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.95;
}

.events-hero p,
.intro {
  font-size: 18px;
  line-height: 1.6;
}

.events-hero p { max-width: 36rem; margin: 12px 0 0; }

.intro {
  color: rgba(51, 65, 58, 0.82);
  max-width: 40rem;
}

.section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 20px;
}

.section-title { font-size: 32px; color: var(--sage); }

.upcoming {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.event-card img,
.event-card__fallback {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: #e7efe8;
}

.event-card strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}

.event-card span { color: var(--muted); font-size: 14px; }

.event-card__times { display: block; line-height: 1.45; }

.event-card__price {
  color: var(--deep);
  font-weight: 600;
  font-size: 15px;
}

.event-card__spots,
.event-spots,
.ticket__spots {
  color: var(--sage);
  font-weight: 600;
}

.event-card__spots {
  display: block;
  font-size: 14px;
}

.ticket__spots {
  margin: 0 0 8px;
  font-size: 16px;
}

.event-card__meta {
  display: block;
}

.event-facts {
  margin: 0 0 18px;
  color: var(--body, rgba(51, 65, 58, 0.75));
  line-height: 1.5;
}

.promo-reveal {
  display: inline-flex;
  margin: 4px 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sage);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.calendar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
}

.calendar__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calendar__bar h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--deep);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: rgba(100, 124, 110, 0.14);
  border: 1px solid rgba(100, 124, 110, 0.14);
  border-radius: 12px;
  overflow: hidden;
}

.cal-cell {
  min-height: 118px;
  background: #fff;
  padding: 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.cal-cell.is-head {
  min-height: 0;
  background: #f7f5ee;
  font-size: 12px;
  font-weight: 700;
  color: var(--sage);
  text-align: left;
}

.cal-cell.is-muted { color: #b7c0ba; }
.cal-cell.is-today { background: #f8eee4; }

.cal-daynum {
  align-self: flex-start;
  border: 0;
  background: transparent;
  font: 700 14px Jost, system-ui, sans-serif;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.cal-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cal-event,
.cal-more {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 2px 6px;
  font: 600 11px/1.3 Jost, system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event { background: #6941c6; }

.cal-more {
  background: transparent;
  color: var(--sage);
  padding: 0 6px;
}

.event-page {
  width: min(760px, calc(100% - var(--pad) * 2));
  margin: 12px auto 72px;
}

.event-back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sage);
  font-family: var(--font-display);
  font-size: 16px;
  cursor: pointer;
}

.event-media,
.event-slider {
  width: 100%;
  margin: 0;
  background: #f4f1ea;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.event-slider {
  position: relative;
}

.event-slider__viewport {
  overflow: hidden;
  width: 100%;
}

.event-slider__track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.event-slider__slide {
  flex: 0 0 100%;
  margin: 0;
  background: #f4f1ea;
}

.event-photo {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #f4f1ea;
  cursor: zoom-in;
}

.event-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  object-position: center;
  background: #f4f1ea;
}

.event-lightbox {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 24px;
}

.event-lightbox[hidden] {
  display: none;
}

.event-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(34, 44, 38, 0.72);
  cursor: pointer;
}

.event-lightbox__img {
  position: relative;
  z-index: 1;
  max-width: min(960px, calc(100vw - 96px));
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #f7f5ee;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.event-lightbox__close,
.event-lightbox__nav {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f1f1f;
  cursor: pointer;
}

.event-lightbox__close {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
}

.event-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  font-size: 26px;
  line-height: 1;
}

.event-lightbox__nav--prev { left: 16px; }
.event-lightbox__nav--next { right: 16px; }

.event-lightbox__nav[hidden] {
  display: none;
}

.event-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1f1f1f;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.event-slider__nav--prev { left: 10px; }
.event-slider__nav--next { right: 10px; }

.event-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.event-slider__dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(31, 45, 38, 0.35);
  cursor: pointer;
}

.event-slider__dot.is-active { background: #fff; }

.event-title {
  margin: 20px 0 16px;
  color: var(--sage);
  font-size: clamp(32px, 5vw, 52px);
}

.ticket { margin-bottom: 28px; }

.about h2,
.ticket h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--sage);
  margin: 0 0 12px;
}

.about p { white-space: pre-wrap; line-height: 1.7; font-size: 17px; }

.map-frame {
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.map-frame iframe { width: 100%; height: 280px; border: 0; }

.map-frame p { margin: 0; padding: 14px 16px; }

.ticket {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 8px 30px rgba(61, 79, 69, 0.07);
}

.ticket__when { margin: 0 0 8px; color: var(--deep); }

.ticket__price {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 8px;
}

.ticket__pay,
.ticket__due {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.field { display: grid; gap: 6px; margin-bottom: 12px; }

.field span { font-family: var(--font-display); font-size: 13px; color: var(--deep); }

.promo-row {
  display: flex;
  gap: 8px;
}

.promo-row input { flex: 1; min-width: 0; }

.promo-row .btn {
  width: auto;
  padding: 12px 16px;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
}

.field textarea { width: 100%; resize: vertical; }

.phone-split {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.phone-split .dial-combobox__input,
.phone-split input[name="phone"] {
  width: 100%;
}

.dial-combobox {
  position: relative;
  z-index: 5;
}

.dial-combobox__input {
  width: 100%;
}

.dial-combobox__list {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 50;
  width: min(300px, 80vw);
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  color: var(--deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.dial-combobox__list li {
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}

.dial-combobox__list li.is-active,
.dial-combobox__list li:hover {
  background: rgba(61, 79, 69, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--sage);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: var(--sage-hover); }

.btn:disabled { opacity: 0.6; cursor: wait; }

.btn[hidden] { display: none; }

.status { min-height: 1.2em; color: #9a4a3a; }

.status.is-ok { color: var(--sage); }

.day-modal[hidden],
.wa-modal[hidden] { display: none; }

.day-modal,
.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(40, 48, 44, 0.45);
  display: grid;
  place-items: center;
  padding: 20px;
}

.day-modal__card,
.wa-modal__card {
  width: min(480px, 100%);
  background: var(--cream);
  border-radius: 20px;
  padding: 22px;
}

.day-list { display: grid; gap: 8px; margin-top: 12px; }

.day-list button {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}

.guest-card {
  width: min(640px, calc(100% - var(--pad) * 2));
  margin: 48px auto 80px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}

.guest-card h1 { font-size: 36px; color: var(--sage); }

.muted { color: var(--muted); }

.honeypot { position: absolute; left: -9999px; }

@media (max-width: 900px) {
  :root { --pad-x: 24px; }

  .hero {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--site-header-h, var(--header-h)));
    max-height: calc(100dvh - var(--site-header-h, var(--header-h)));
    min-height: 0;
    max-width: none;
    padding: 16px var(--pad-x) 12px;
    gap: 10px;
  }

  .hero__copy {
    flex: 0 1 auto;
    gap: 8px;
  }

  .hero h1 {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.05;
    max-width: none;
  }

  .hero__sub {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(51, 65, 58, 0.72);
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hero .btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  .hero__media { display: none; }

  .hero__video-mobile-wrap {
    display: flex;
    flex: 1 1 0;
    min-height: 180px;
  }
}

.count-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--deep);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.count-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
}

.count-modal[hidden] { display: none; }

.count-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(28, 36, 32, 0.45);
}

.count-modal__panel {
  position: relative;
  width: min(560px, 100%);
  padding: 28px 24px 22px;
  border-radius: 28px 28px 0 0;
  background: #fff;
  color: var(--deep);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.16);
}

.count-modal__panel h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
}

.count-modal__note { margin: 0 0 18px; color: var(--muted, #8a8a8a); }

.count-modal__value {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.count-modal__unit {
  margin-top: 4px;
  text-align: center;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted, #8a8a8a);
}

.count-modal__panel input[type="range"] {
  width: 100%;
  margin: 22px 0 6px;
  accent-color: #647c6e;
}

.count-modal__scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted, #8a8a8a);
  font-size: 14px;
}

.count-modal__confirm {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(100, 124, 110, 0.12);
  font-weight: 600;
}

.count-modal__done {
  margin-left: auto;
  display: block;
  width: auto;
  border-radius: 999px;
}

@media (max-width: 800px) {
  .cal-cell { min-height: 88px; }
  .cal-cell.is-head { font-size: 10px; }
  .cal-event, .cal-more { font-size: 10px; }
}
