/* ═══════════════════════════════════════════════════════════
   Events Page — Joelle's Soul and Savour
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.ev-hero {
  position:        relative;
  min-height:      340px;
  padding-top:     9rem;
  padding-bottom:  3rem;
  display:         flex;
  align-items:     center;
  justify-content: center;
  overflow:        hidden;
  background:      linear-gradient(160deg, #05070e 0%, #080c1c 60%, #05070e 100%);
}
.ev-hero__overlay {
  position:   absolute;
  inset:      0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(13, 108, 255, 0.15) 0%, transparent 70%);
}
.ev-hero__content {
  position:   relative;
  text-align: center;
  padding:    0 1.5rem;
  z-index:    1;
}
.ev-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  color: #fff;
  margin: 0.4rem 0 0.8rem;
  letter-spacing: 0.01em;
}
.ev-hero__sub {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Layout ───────────────────────────────────────────────── */
.ev-section {
  background: var(--color-bg, #05070e);
  padding: 3.5rem 0 2rem;
}
.ev-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ── Reserve strip (OpenTable button widget, under the calendar) ─── */
.ev-reserve-strip {
  background: var(--color-bg, #05070e);
  padding:    0 0 3rem;
}
.ev-reserve-strip__container {
  max-width:       1100px;
  margin:          0 auto;
  padding:         0 1.5rem;
  display:         flex;
  justify-content: center;
}

/* ── Calendar ─────────────────────────────────────────────── */
.ev-cal {
  background: #080b18;
  border: 1px solid rgba(13, 108, 255,0.15);
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: 88px;
}

.ev-cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(13, 108, 255,0.12);
  background: rgba(13, 108, 255,0.04);
}
.ev-cal__month-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.ev-cal__nav {
  background: none;
  border: 1px solid rgba(13, 108, 255,0.25);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s;
}
.ev-cal__nav:hover {
  background: rgba(13, 108, 255,0.12);
  border-color: #ffffff;
}

/* Outer grid: 7 equal columns shared by dow headers and day cells */
.ev-cal__grid {
  padding: 0.8rem 1rem 1.2rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.ev-cal__dow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(13, 108, 255,0.5);
  text-transform: uppercase;
  padding: 0.5rem 0 0.6rem;
}
/* Day cells container spans all 7 columns, then creates its own 7-col grid */
.ev-cal__days {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.ev-cal__day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  transition: background 0.15s, color 0.15s;
  user-select: none;
  gap: 3px;
}
.ev-cal__day:hover:not(.ev-cal__day--empty) {
  background: rgba(13, 108, 255,0.1);
  color: #fff;
}
.ev-cal__day--empty {
  cursor: default;
  opacity: 0;
  pointer-events: none;
}
.ev-cal__day--today {
  background: rgba(13, 108, 255,0.15);
  color: #ffffff;
  font-weight: 600;
}
.ev-cal__day--today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0d6cff;
}
.ev-cal__day--selected {
  background: #0d6cff !important;
  color: #0f0e0d !important;
  font-weight: 700;
}
.ev-cal__day--selected .ev-dot { background: #0f0e0d !important; }
.ev-cal__day--has-events .ev-dot { display: block; }
.ev-dot {
  display: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0d6cff;
  flex-shrink: 0;
}
/* today + selected overrides */
.ev-cal__day--today.ev-cal__day--selected { background: #0d6cff !important; }

/* ── Event Panel ──────────────────────────────────────────── */
.ev-panel {
  min-height: 0;
}
.ev-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(13, 108, 255,0.15);
}
.ev-panel__date-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
}
.ev-panel__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s;
}
.ev-panel__close:hover { color: #fff; }
.ev-panel__close.hidden { display: none; }

.ev-panel__list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.ev-panel__empty {
  color: rgba(255,255,255,0.35);
  font-size: 0.95rem;
  text-align: center;
  padding: 3rem 0;
}
.ev-panel__empty.hidden { display: none; }

/* ── Event Card ───────────────────────────────────────────── */
.ev-card {
  background: #080b18;
  border: 1px solid rgba(13, 108, 255,0.12);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  gap: 0;
  transition: border-color 0.18s, transform 0.18s;
}
.ev-card:hover:not(.ev-card--cancelled) {
  border-color: rgba(13, 108, 255,0.35);
  transform: translateY(-2px);
}
.ev-card--featured {
  border-color: rgba(13, 108, 255,0.4);
}

/* Cancelled state */
.ev-card--cancelled {
  opacity: 0.55;
  border-color: rgba(232,112,96,0.2) !important;
  filter: grayscale(40%);
}
.ev-card__media {
  position: relative;
  flex-shrink: 0;
  width: 130px;
}
.ev-card__cancelled-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,14,13,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
}
.ev-card__cancelled-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e87060;
  text-align: center;
  line-height: 1.3;
}
.ev-card__cancelled-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e87060;
  margin-bottom: 0.15rem;
}
.ev-card__img {
  width: 130px;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
  height: 100%;
}
.ev-card__img-placeholder {
  width: 130px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0d1024, #080b18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.4;
  min-height: 90px;
}
.ev-card__body {
  padding: 1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ev-card__featured-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.1rem;
}
.ev-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.ev-card__time {
  font-size: 0.82rem;
  color: #ffffff;
  font-weight: 500;
}
.ev-card__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  margin-top: 0.2rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .ev-container {
    grid-template-columns: 1fr;
  }
  .ev-cal {
    position: static;
  }
}
@media (max-width: 480px) {
  .ev-cal__day { font-size: 0.78rem; }
  .ev-card__img,
  .ev-card__img-placeholder { width: 90px; }
}

/* ── Nav active link ──────────────────────────────────────── */
.nav__active {
  color: #ffffff !important;
}

/* ── Private Dining CTA strip ────────────────────────────── */
.priv-cta-strip {
  background:  linear-gradient(135deg, #07090f 0%, #0b0e22 50%, #07090f 100%);
  border-top:  1px solid rgba(13, 108, 255, 0.18);
  padding:     4rem 0;
  position:    relative;
  overflow:    hidden;
}
.priv-cta-strip::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0; right: 0;
  height:     1px;
  background: linear-gradient(90deg, transparent, rgba(13,108,255,0.5) 50%, transparent);
}
.priv-cta-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             2rem;
  flex-wrap:       wrap;
}
.priv-cta-title {
  font-family:   'Playfair Display', serif;
  font-size:     clamp(1.4rem, 3vw, 2rem);
  font-weight:   700;
  color:         #fff;
  margin-bottom: 0.4rem;
}
.priv-cta-sub {
  color:     rgba(255,255,255,0.55);
  font-size: 0.95rem;
  max-width: 480px;
}
@media (max-width: 680px) {
  .priv-cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Private Dining & Events ──────────────────────────────── */
.priv-section {
  background:  linear-gradient(180deg, var(--color-bg, #05070e) 0%, #07090f 100%);
  padding:     6rem 0;
  border-top:  1px solid rgba(13, 108, 255, 0.12);
  position:    relative;
}
.priv-section::before {
  content:    '';
  position:   absolute;
  top:        0; left: 0; right: 0;
  height:     1px;
  background: linear-gradient(90deg, transparent, rgba(13,108,255,0.4) 50%, transparent);
}

.priv-inner {
  max-width: 1100px;
  margin:    0 auto;
  padding:   0 1.5rem;
  display:   grid;
  grid-template-columns: 1fr 1.4fr;
  gap:       5rem;
  align-items: start;
}

.priv-copy {
  position: sticky;
  top:      100px;
}

.priv-title {
  font-family:   'Playfair Display', serif;
  font-size:     clamp(2rem, 3.5vw, 2.8rem);
  font-weight:   700;
  color:         #fff;
  line-height:   1.2;
  margin-bottom: 1rem;
}

.priv-sub {
  color:         rgba(255,255,255,0.6);
  font-size:     1rem;
  line-height:   1.8;
  margin-bottom: 2.5rem;
}

.priv-perfect-heading {
  font-family:    'Playfair Display', serif;
  font-size:      1rem;
  font-weight:    600;
  color:          rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom:  1rem;
}

.priv-perks {
  list-style:  none;
  padding:     0;
  margin:      0;
  display:     flex;
  flex-direction: column;
  gap:         0.6rem;
}
.priv-perks li {
  display:     flex;
  align-items: center;
  gap:         0.7rem;
  font-size:   0.95rem;
  color:       rgba(255,255,255,0.72);
}
.priv-perks li::before {
  content:          '';
  width:            18px;
  height:           1px;
  background:       rgba(13,108,255,0.6);
  flex-shrink:      0;
}

/* Form card */
.priv-form-wrap {
  background:    rgba(13, 108, 255, 0.04);
  border:        1px solid rgba(13, 108, 255, 0.18);
  border-radius: 14px;
  padding:       2.5rem 2.25rem;
}

.priv-form-title {
  font-family:   'Playfair Display', serif;
  font-size:     1.5rem;
  font-weight:   700;
  color:         #fff;
  margin-bottom: 0.4rem;
}

.priv-form-sub {
  font-size:     0.88rem;
  color:         rgba(255,255,255,0.45);
  margin-bottom: 1.75rem;
  line-height:   1.6;
}

.priv-optional {
  opacity:     0.45;
  font-weight: 400;
  font-size:   0.82em;
}

/* Reuse form__group / form__row from styles.css; override input bg for dark card */
.priv-form-wrap .form__group input,
.priv-form-wrap .form__group select,
.priv-form-wrap .form__group textarea {
  background: rgba(5, 7, 14, 0.6);
  border-color: rgba(13, 108, 255, 0.2);
}
.priv-form-wrap .form__group input:focus,
.priv-form-wrap .form__group select:focus,
.priv-form-wrap .form__group textarea:focus {
  border-color: rgba(13, 108, 255, 0.6);
  box-shadow:   0 0 0 3px rgba(13,108,255,0.1);
}

@media (max-width: 860px) {
  .priv-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .priv-copy { position: static; }
}
@media (max-width: 500px) {
  .priv-form-wrap { padding: 1.5rem 1.25rem; }
}

/* ── Gift Cards ───────────────────────────────────────────── */
.gift-cards__inner {
  max-width:  640px;
  margin:     0 auto;
  padding:    0 1.5rem;
  text-align: center;
}

.gift-cards__title {
  font-family: var(--font-heading);
  font-size:   clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin:      0.75rem 0 1.25rem;
}

.gift-cards__sub {
  color:       var(--color-muted);
  font-size:   1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.gift-cards__btn {
  display: inline-block;
}

.gift-cards__balance {
  margin-top: 1.5rem;
  color:      var(--color-muted);
  font-size:  0.92rem;
}

.gift-cards__balance-link {
  color:          var(--blue-lt, #0d6cff);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gift-cards__balance-link:hover { opacity: 0.8; }
