/* ===============================================================
   VERDE EVENTS PAGE — Premium Redesign
   Scoped to .ev-* classes. Does not touch other pages.
   =============================================================== */

/* ---------------------------------------------------------------
   Custom properties — events-specific palette
   --------------------------------------------------------------- */
:root {
  --ev-espresso:  #1A1A1A;
  --ev-rosso:     #6B1F1F;
  --ev-cream:     #E7E0CB;
  --ev-gold:      #B8924A;
  --ev-charcoal:  #1A1A1A;
}


/* ---------------------------------------------------------------
   Typography line-breaking — events scope
   Mirror the global rule: headings balance, body copy pretty.
   --------------------------------------------------------------- */
.ev-hero__display-heading,
.ev-hero__display-sub,
.ev-enquire-intro__heading,
.ev-venue__title,
.ev-form-section__heading,
.ev-form-section__sub,
.ev-form__group-heading,
.ev-form__radio-label {
  text-wrap: balance;
}

.ev-enquire-intro__body,
.ev-venue__body p,
.ev-venue__specs li,
.ev-form__urgent {
  text-wrap: pretty;
}


/* ---------------------------------------------------------------
   1. Hero — dark display heading
   --------------------------------------------------------------- */
.ev-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--ev-espresso);
  color: var(--ev-cream);
}

.ev-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.ev-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 24, 18, 0.55);
  z-index: 1;
}

@media (max-width: 768px) {
  .ev-hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

.ev-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: clamp(96px, 12vh, 160px) 24px clamp(64px, 10vh, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

.ev-hero__content .hero--venue__badge {
  margin: 0;
}

.ev-hero__content .ev-hero__display-heading,
.ev-hero__content .ev-hero__display-sub {
  margin-top: auto;
}

.ev-hero__content .ev-hero__display-sub {
  margin-top: clamp(20px, 3vw, 40px);
  margin-bottom: auto;
}

.ev-hero__display-heading {
  margin: 0;
  font-family: var(--font-heading);
  /* Match the venue page hero headings (.hero--venue__heading):
     same fluid size, and clear the global h1 { max-width: 660px }
     so each <br> line stays on one line instead of wrapping. */
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 400;
  line-height: calc(1em + 8px);
  max-width: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ev-cream);
}

.ev-hero__display-sub {
  margin: clamp(20px, 3vw, 40px) 0 0;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.4vw, 20px);
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(239, 231, 216, 0.6);
}


/* ---------------------------------------------------------------
   3. Venue cards
   --------------------------------------------------------------- */
/* Venues section — centered single-column panel */
.ev-venues {
  padding: clamp(80px, 10vw, 160px) clamp(24px, 5vw, 80px);
  background: #fff;
}

.ev-venues__inner {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 6vw, 80px);
}

/* Each venue — stacked: image → title → body */
.ev-venue {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Seal stamped on the image's top-right corner (overhangs the edge). */
.ev-venue__badge {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(72px, 11vw, 112px);
  height: auto;
  transform: translate(28%, -28%);
  z-index: 2;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

/* Media */
.ev-venue__media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.ev-venue__image {
  aspect-ratio: 672 / 400;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Title */
.ev-venue__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: calc(1em + 8px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ev-gold);
}

/* Body */
.ev-venue__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ev-venue__body > p {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 400;
  line-height: calc(1em + 8px);
  color: var(--ev-charcoal);
}

/* Specs bullet list */
.ev-venue__specs {
  list-style: disc;
  margin: 0;
  padding: 0 0 0 20px;
}

.ev-venue__specs li {
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: calc(1em + 8px);
  color: var(--ev-charcoal);
}

.ev-venue__specs li::marker {
  color: var(--ev-charcoal);
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .ev-venue__image {
    aspect-ratio: 3 / 2;
  }
}


/* ---------------------------------------------------------------
   Private events menu — one centred button below the venue cards.
   Reuses the venue "What's Cooking" button component (.dh-cooking__
   menu-btn); only the wrapper is styled here.
   --------------------------------------------------------------- */
.ev-menu-cta {
  display: flex;
  justify-content: center;
  background: #fff;
  padding: 0 clamp(24px, 5vw, 80px) clamp(72px, 10vw, 120px);
}

/* ---------------------------------------------------------------
   4. Recent events — ticker
   --------------------------------------------------------------- */
.ev-ticker {
  overflow: hidden;
  padding: clamp(32px, 4vw, 48px) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ev-ticker__track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
}

.ev-ticker__item {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ev-charcoal);
  flex-shrink: 0;
}

.ev-ticker__dot {
  flex-shrink: 0;
  margin: 0 clamp(16px, 2vw, 28px);
  color: var(--muted);
  font-size: var(--text-sm);
}

@media (prefers-reduced-motion: reduce) {
  .ev-ticker__track {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    gap: 4px;
  }
}


/* ---------------------------------------------------------------
   5. Enquiry form
   --------------------------------------------------------------- */
/* ---------------------------------------------------------------
   5. Enquiry intro panel
   --------------------------------------------------------------- */
.ev-enquire-intro {
  padding: clamp(80px, 10vw, 128px) clamp(24px, 5vw, 169px);
  background: var(--ev-cream);
}

.ev-enquire-intro__inner {
  max-width: 746px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.ev-enquire-intro__illustration {
  width: clamp(200px, 22vw, 320px);
  height: auto;
  transform: rotate(-1deg);
  margin-bottom: -24px;
}

.ev-enquire-intro__heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: calc(1em + 8px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ev-gold);
}

.ev-enquire-intro__body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 400;
  line-height: calc(1em + 8px);
  color: var(--ev-charcoal);
}

.ev-enquire-intro__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ev-charcoal);
  border: 1px solid var(--ev-charcoal);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.ev-enquire-intro__btn:hover {
  background: var(--ev-charcoal);
  color: var(--ev-cream);
}

.ev-enquire-intro__btn:focus-visible {
  outline: 2px solid var(--ev-charcoal);
  outline-offset: 4px;
}

/* ---------------------------------------------------------------
   6. Enquiry form
   --------------------------------------------------------------- */
.ev-form-section {
  padding: clamp(64px, 8vw, 120px) 24px clamp(96px, 10vw, 160px);
  background: var(--ev-cream);
}

.ev-form-section__header {
  max-width: 780px;
  margin: 0 auto clamp(32px, 4vw, 48px);
  text-align: center;
}

.ev-form-section__inner {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-radius: 6px;
  padding: clamp(32px, 5vw, 56px) clamp(28px, 5vw, 56px);
}

.ev-form-section__heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 400;
  line-height: calc(1em + 8px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ev-gold);
}

.ev-form-section__sub {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: calc(1em + 8px);
  color: var(--muted);
}

/* Form */
.ev-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Fieldset groups */
.ev-form__group {
  border: 0;
  margin: 0;
  padding: 0;
  margin-top: clamp(40px, 5vw, 56px);
}

.ev-form__group:first-of-type {
  margin-top: 0;
}

.ev-form__group-heading {
  font-family: var(--font-body);
  font-size: var(--type-titles);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: var(--lh-titles);
  text-transform: uppercase;
  color: var(--ev-charcoal);
  margin: 0 0 0;
  padding: 0;
  width: 100%;
}

.ev-form__rule {
  height: 1px;
  background: rgba(42, 38, 35, 0.12);
  margin: 10px 0 20px;
  border: 0;
}

/* Two-column row */
.ev-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px clamp(20px, 2.5vw, 28px);
  margin-bottom: 20px;
}

.ev-form__row:last-child {
  margin-bottom: 0;
}

/* Fields */
.ev-form__field {
  position: relative;
}

.ev-form__field > label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 400;
  line-height: var(--lh-caption);
  color: var(--ev-charcoal);
  margin-bottom: 8px;
}

.ev-form__field input[type="text"],
.ev-form__field input[type="email"],
.ev-form__field input[type="tel"],
.ev-form__field input[type="date"],
.ev-form__field input[type="time"],
.ev-form__field select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: var(--type-caption);
  color: var(--ev-charcoal);
  background: #f5f4f2;
  border: 1px solid #e8e6e3;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.ev-form__field input::placeholder,
.ev-form__field textarea::placeholder {
  color: #b0aca6;
}

.ev-form__field input:focus,
.ev-form__field select:focus,
.ev-form__field textarea:focus {
  border-color: var(--ev-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.12);
}

.ev-form__field input:focus-visible,
.ev-form__field select:focus-visible,
.ev-form__field textarea:focus-visible {
  outline: 2px solid var(--ev-gold);
  outline-offset: 1px;
}

.ev-form__field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: var(--type-caption);
  color: var(--ev-charcoal);
  background: #f5f4f2;
  border: 1px solid #e8e6e3;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.ev-form__field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232A2623' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Checkbox wrapper — aligns with input field beside it */
.ev-form__field--checkbox-wrap {
  display: flex;
  align-items: center;
  align-self: end;
  min-height: 48px;
}

/* Checkbox */
.ev-form__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--type-caption);
  line-height: var(--lh-caption);
  color: var(--ev-charcoal);
  cursor: pointer;
}

.ev-form__checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  background: #f5f4f2;
  border: 1px solid #e8e6e3;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ev-form__checkbox input[type="checkbox"]:checked {
  background: var(--ev-charcoal);
  border-color: var(--ev-charcoal);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 6l2 2 4-4' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.ev-form__checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--ev-gold);
  outline-offset: 2px;
}

/* Radio buttons — stacked vertically */
.ev-form__radio-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 400;
  line-height: var(--lh-caption);
  color: var(--ev-charcoal);
  margin: 0 0 12px;
}

.ev-form__radios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ev-form__radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--type-caption);
  line-height: var(--lh-caption);
  color: var(--ev-charcoal);
  cursor: pointer;
}

.ev-form__radio input[type="radio"] {
  width: 20px;
  height: 20px;
  background: #f5f4f2;
  border: 1px solid #e8e6e3;
  border-radius: 50%;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
  position: relative;
}

.ev-form__radio input[type="radio"]:checked {
  border-color: #5b98d0;
  background: #fff;
}

.ev-form__radio input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5b98d0;
}

.ev-form__radio input[type="radio"]:focus-visible {
  outline: 2px solid var(--ev-gold);
  outline-offset: 2px;
}

/* Standalone fields within a group (no row wrapper) */
.ev-form__group > .ev-form__field {
  margin-bottom: 20px;
}

.ev-form__group > .ev-form__field:last-child {
  margin-bottom: 0;
}

/* Inline error messages */
.ev-form__error {
  display: block;
  min-height: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 400;
  line-height: var(--lh-caption);
  color: var(--ev-rosso);
  margin-top: 6px;
}

.ev-form__error:empty {
  margin-top: 0;
}

/* Error state on inputs */
.ev-form__field--error input,
.ev-form__field--error select,
.ev-form__field--error textarea {
  border-color: var(--ev-rosso);
}

.ev-form__field--error > label {
  color: var(--ev-rosso);
}

.ev-form__field--error .ev-form__radio-label {
  color: var(--ev-rosso);
}

/* Submit button */
.ev-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 32px;
  margin-top: clamp(36px, 4.5vw, 48px);
  font-family: var(--font-body);
  font-size: var(--type-button);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: var(--lh-button);
  text-transform: uppercase;
  border: 0;
  border-radius: 4px;
  background: var(--ev-charcoal);
  color: #fff;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 200ms ease;
}

.ev-form__submit:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 20px rgba(42, 38, 35, 0.2);
}

.ev-form__submit:active {
  transform: scale(0.98);
}

.ev-form__submit:focus-visible {
  outline: 2px solid var(--ev-charcoal);
  outline-offset: 4px;
}

/* Urgent enquiries — under submit */
.ev-form__urgent {
  margin: 16px 0 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--type-caption);
  line-height: var(--lh-caption);
  color: var(--muted);
}

.ev-form__urgent a {
  color: var(--ev-charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(42, 38, 35, 0.3);
  transition: text-decoration-color 0.2s ease;
}

.ev-form__urgent a:hover {
  text-decoration-color: var(--ev-charcoal);
}

/* Mobile: stack to single column */
@media (max-width: 768px) {
  .ev-form__row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ev-form__field--checkbox-wrap {
    padding-top: 0;
  }
}


/* ---------------------------------------------------------------
   6. Contact strip (moved inline under submit button)
   --------------------------------------------------------------- */


/* Nav hero overrides handled by verde-style.css — no duplicates needed here */

/* ---------------------------------------------------------------
   Turnstile + form security elements (events form context)
   --------------------------------------------------------------- */

/* The Turnstile widget sits between the last fieldset and the submit
   button. Reduce the submit button's top margin since the widget itself
   provides visual separation. */
.ev-form .ev-form__submit {
  margin-top: 20px;
}

/* Error banner — inherit the form's colour language */
.ev-form__error-banner {
  font-family: var(--font-body);
  font-size: var(--type-caption, 0.8125rem);
}

/* Disabled state while form is submitting */
.ev-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* ---------------------------------------------------------------
   Reduced-motion defaults — set final states immediately
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ev-hero__scroll-line {
    transform: scaleY(1);
  }
  [data-ev-reveal],
  [data-ev-venue],
  [data-ev-clients] span {
    opacity: 1 !important;
    transform: none !important;
  }
}
