/* =============================================================================
   SANCTUARY EVENTS — the event page
   Uses the Sanctuary theme's colours and typefaces when it is active, and
   falls back to the same values when it isn't.
   ========================================================================== */
.spev {
  --ev-cream: var(--sp-cream, #efe0d1);
  --ev-cream-2: var(--sp-cream-2, #e6d5c4);
  --ev-dark: var(--sp-dark, #393534);
  --ev-brown: var(--sp-brown, #a06a4a);
  --ev-brown-dk: #7f5338;
  --ev-line: var(--sp-line, rgba(57, 53, 52, 0.18));
  --ev-display: var(--sp-display, 'Cinzel', serif);
  --ev-editorial: var(--sp-editorial, 'Cormorant Garamond', serif);
  --ev-ui: var(--sp-ui, 'Jost', sans-serif);
  --ev-ease: var(--sp-ease, cubic-bezier(0.16, 1, 0.3, 1));

  background: var(--ev-cream);
  color: var(--ev-dark);
  font-family: var(--ev-ui);
  padding: clamp(40px, 7vw, 110px) var(--sp-gutter, clamp(20px, 5vw, 64px));
}
.spev *, .spev *::before, .spev *::after { box-sizing: border-box; }

.spev-grid {
  max-width: var(--sp-max, 1320px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.spev-grid > * { min-width: 0; }

/* Words */
.spev-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ev-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ev-brown-dk);
  margin: 0 0 22px;
}
.spev-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--ev-brown); }
.spev-title {
  font-family: var(--ev-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin: 0 0 30px;
  color: var(--ev-dark);
}

.spev-meta { margin: 0 0 30px; border-top: 1px solid var(--ev-line); }
.spev-meta > div {
  display: flex;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ev-line);
}
.spev-meta dt {
  flex: 0 0 76px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ev-brown-dk);
  padding-top: 3px;
}
.spev-meta dd {
  margin: 0;
  font-family: var(--ev-editorial);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.4;
}

.spev-desc { font-size: 1rem; line-height: 1.75; }
.spev-desc > *:first-child { margin-top: 0; }
.spev-desc p { margin: 0 0 1em; }
.spev-desc a { color: var(--ev-brown-dk); }

/* Booking */
.spev-book { margin-top: clamp(32px, 4vw, 44px); scroll-margin-top: 120px; }
.spev-form {
  background: var(--ev-dark);
  color: var(--ev-cream);
  padding: clamp(26px, 4vw, 40px);
  border-top: 2px solid var(--ev-brown);
}
.spev-form-title {
  font-family: var(--ev-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
  color: var(--ev-cream);
}
.spev-form-intro {
  font-family: var(--ev-editorial);
  font-style: italic;
  font-size: 1.1rem;
  color: #cdbcaa;
  margin: 0 0 22px;
}
.spev-field { margin: 0 0 14px; }
.spev-field label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #cdbcaa;
}
.spev-field input {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 0;
  border-bottom: 1px solid rgba(239, 224, 209, 0.45);
  border-radius: 0;
  color: var(--ev-cream);
  font-family: var(--ev-ui);
  font-size: 16px; /* stops iPhones zooming in */
  padding: 12px 4px 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s;
}
.spev-field input:focus { border-bottom-color: var(--ev-cream); box-shadow: 0 2px 0 0 var(--ev-cream); }
.spev-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ev-cream);
  -webkit-box-shadow: 0 0 0 40px #45403f inset;
}
.spev-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.spev-btn {
  display: block;
  width: 100%;
  min-height: 56px;
  margin-top: 22px;
  background: var(--ev-cream);
  color: var(--ev-dark);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--ev-ui);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.3s var(--ev-ease), color 0.3s var(--ev-ease);
}
.spev-btn:hover, .spev-btn:focus-visible { background: var(--ev-brown); color: var(--ev-cream); }
.spev-btn:focus-visible { outline: 2px solid var(--ev-cream); outline-offset: 3px; }
.spev-keep {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: #cdbcaa;
  font-size: 0.85rem;
}

.spev-note {
  padding: 20px 22px;
  margin-bottom: 18px;
  border-left: 2px solid var(--ev-brown);
  background: var(--ev-cream-2);
}
.spev-note--err { border-left-color: #a23b2a; }
.spev-note p { margin: 0; }
.spev-note-title {
  font-family: var(--ev-display);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  margin-bottom: 4px !important;
}
.spev-closed {
  font-family: var(--ev-editorial);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ev-brown-dk);
}

/* Image */
.spev-media { margin: 0; position: sticky; top: 120px; }
.spev-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Phones and small tablets: image first, then the words */
@media (max-width: 880px) {
  .spev-grid { grid-template-columns: minmax(0, 1fr); }
  .spev-media { order: -1; position: static; }
  .spev-img { aspect-ratio: 4 / 3; }
}
