/* ==========================================================================
   Events page (page-events.php)
   All rules scoped under the page root class .cb-events-page so they never
   collide with the homepage's pre-existing .cb-events promo panel in main.css.
   Warm cream surfaces, cocoa text/buttons, caramel accents. Flat, no shadows.
   Imagery stays restrained and contained: capped heights, framed aspect-ratio
   figures with generous radii. No full-bleed dominant photography.
   ========================================================================== */

/* --- 1. Hero ------------------------------------------------------------- */
.cb-events-page .cb-evt-hero { padding-block: clamp(1.5rem, 4vw, 3rem); }

.cb-events-page .cb-evt-hero__inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .cb-events-page .cb-evt-hero__inner { grid-template-columns: 1.05fr 0.95fr; }
}

.cb-events-page .cb-evt-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 40rem;
}
.cb-events-page .cb-evt-hero__eyebrow { margin-bottom: 1rem; }
.cb-events-page .cb-evt-hero__title { font-size: var(--cb-text-5xl); margin: 0; max-width: 15ch; }
.cb-events-page .cb-evt-hero__copy {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: var(--cb-text-lg);
  line-height: 1.6;
  color: var(--cb-text-muted);
}
.cb-events-page .cb-evt-hero__copy + .cb-evt-hero__copy { margin-top: 0; }
.cb-events-page .cb-evt-hero__copy:not(:last-of-type) { margin-bottom: 1.05rem; }
.cb-events-page .cb-evt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* Contained, capped hero figure (never full-bleed). */
.cb-events-page .cb-evt-hero__media {
  align-self: start; /* matches .cb-hero__media on the home page */
  margin: 0;
  overflow: hidden;
  border-radius: var(--cb-radius-xl);
  background: var(--cb-surface-alt);
}
.cb-events-page .cb-evt-hero__image {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2; /* matches the 1536x1024 event-scene photos, no crop */
  max-height: 28rem;
  object-fit: cover;
  object-position: center;
}

/* --- 2. Inquiry ---------------------------------------------------------- */
.cb-events-page .cb-evt-inquiry { padding-block: var(--cb-section-y); }

.cb-events-page .cb-evt-inquiry__layout {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .cb-events-page .cb-evt-inquiry__layout { grid-template-columns: 1.05fr 0.95fr; }
}

.cb-events-page .cb-evt-inquiry__title { font-size: var(--cb-text-4xl); margin: 0.5rem 0 0; }
.cb-events-page .cb-evt-inquiry__body {
  margin-top: 1.5rem;
  font-size: var(--cb-text-lg);
  line-height: 1.7;
  color: var(--cb-text-muted);
}
.cb-events-page .cb-evt-inquiry__note {
  margin-top: 1.25rem;
  font-family: var(--cb-font-serif);
  font-style: italic;
  font-size: var(--cb-text-2xl);
  line-height: 1.4;
  color: var(--cb-accent-text);
}

/* Occasion tags */
.cb-events-page .cb-evt-inquiry__types {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
  padding: 0;
}
.cb-events-page .cb-evt-inquiry__type {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: var(--cb-radius-pill);
  border: var(--cb-border-width) solid var(--cb-border);
  background: var(--cb-surface);
  font-size: var(--cb-text-sm);
  font-weight: var(--cb-weight-medium);
  color: var(--cb-text);
}

/* Restrained, contained gallery: three square framed figures. */
.cb-events-page .cb-evt-inquiry__gallery {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.cb-events-page .cb-evt-inquiry__figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--cb-radius-md);
  border: var(--cb-border-width) solid var(--cb-border);
  background: var(--cb-surface-alt);
}
.cb-events-page .cb-evt-inquiry__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 14rem;
  object-fit: cover;
  object-position: center;
}

/* --- Inquiry form -------------------------------------------------------- */
.cb-events-page .cb-evt-form-wrap {
  position: relative;
}
.cb-events-page .cb-evt-form {
  background: var(--cb-surface);
  border: var(--cb-border-width) solid var(--cb-border);
  border-radius: var(--cb-radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.cb-events-page .cb-evt-form__intro {
  margin: 0 0 1.5rem;
  font-size: var(--cb-text-base);
  color: var(--cb-text-muted);
}

.cb-events-page .cb-evt-field { margin-bottom: 1.25rem; }
.cb-events-page .cb-evt-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 480px) {
  .cb-events-page .cb-evt-field-row { grid-template-columns: 1fr 1fr; }
}
/* Row children already carry their own bottom margin; keep the grid tidy. */
.cb-events-page .cb-evt-field-row .cb-evt-field { margin-bottom: 1.25rem; }

.cb-events-page .cb-evt-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--cb-text-xs);
  font-weight: var(--cb-weight-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cb-text);
}
.cb-events-page .cb-evt-req { color: var(--cb-accent-2); }

.cb-events-page .cb-evt-input,
.cb-events-page .cb-evt-select,
.cb-events-page .cb-evt-textarea {
  width: 100%;
  display: block;
  padding: 0.8rem 1rem;
  border-radius: var(--cb-radius-md);
  border: var(--cb-border-width) solid var(--cb-border);
  background: var(--cb-surface);
  color: var(--cb-text);
  font-family: var(--cb-font-body);
  font-size: var(--cb-text-base);
  line-height: 1.5;
  transition: border-color var(--cb-transition), background var(--cb-transition), box-shadow var(--cb-transition);
}
.cb-events-page .cb-evt-input::placeholder,
.cb-events-page .cb-evt-textarea::placeholder { color: var(--cb-text-muted); }

.cb-events-page .cb-evt-textarea {
  min-height: 8rem;
  resize: vertical;
}

/* Native select chevron drawn as a caramel-toned inline SVG. */
.cb-events-page .cb-evt-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b58a5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

/* Cocoa focus ring on cream fields. */
.cb-events-page .cb-evt-input:focus,
.cb-events-page .cb-evt-select:focus,
.cb-events-page .cb-evt-textarea:focus {
  outline: none;
  border-color: var(--cb-cocoa);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cb-cocoa) 22%, transparent);
}

.cb-events-page .cb-evt-form__submit {
  width: 100%;
  margin-top: 0.5rem;
}
.cb-events-page .cb-evt-form__fineprint {
  margin: 1rem 0 0;
  font-size: var(--cb-text-sm);
  color: var(--cb-text-muted);
}

/* --- Success panel ------------------------------------------------------- */
.cb-events-page .cb-evt-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--cb-surface);
  border: var(--cb-border-width) solid var(--cb-border-strong);
  border-radius: var(--cb-radius-lg);
  padding: clamp(1.75rem, 3vw, 2.75rem);
}
.cb-events-page .cb-evt-success__icon {
  color: var(--cb-accent);
  margin-bottom: 0.5rem;
}
.cb-events-page .cb-evt-success__title {
  font-size: var(--cb-text-2xl);
  margin: 0;
}
.cb-events-page .cb-evt-success__copy {
  margin: 0.5rem 0 1.25rem;
  font-size: var(--cb-text-base);
  line-height: 1.7;
  color: var(--cb-text-muted);
}
