/* ==========================================================================
   Ruby Event Center - Premium single-event layout (includes/components/event_premium.php)
   Mirrors the approved mockup: solid burgundy nav, compact two-region hero
   (copy left | portrait right), booking panel overlapping the hero's lower edge.
   ========================================================================== */

body.ev-premium {
  --evp-night: #2a0610;
  --evp-ruby: #7a1530;
  --evp-gold: #d9b06a;
  --evp-cream: #f7efe8;
  --evp-ink: #2a1a1d;
  --evp-muted: #75666a;
  --evp-line: #e3d4c6;
  --evp-ease: cubic-bezier(.22, .8, .24, 1);
  --evp-serif: 'Cormorant Garamond', Georgia, serif;
  --evp-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --evp-container: 1240px;
  --evp-gutter: 40px;
  --evp-header-h: 75px;
  --evp-overlap: 72px;
  background: var(--evp-cream) !important;
  overflow-x: clip !important;
}

/* ---------- Header: solid burgundy bar (mockup), white type ---------- */
body.ev-premium #site-header {
  color: #fff !important;
  background: linear-gradient(180deg, #4d0d1e 0%, #3b0915 100%) !important;
  border-bottom: 1px solid rgba(217, 176, 106, .22) !important;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .6) !important;
}
body.ev-premium #site-header nav a,
body.ev-premium #site-header > div > div a,
body.ev-premium #site-header button,
body.ev-premium #site-header svg { color: #fff !important; }
body.ev-premium #site-header nav a:hover { color: var(--evp-gold) !important; }
body.ev-premium #site-header .site-header-logo { filter: brightness(0) invert(1); }
body.ev-premium #sticky-cta-bar { display: none !important; }

.evp { font-family: var(--evp-sans); color: var(--evp-ink); -webkit-font-smoothing: antialiased; }
.evp-container { width: min(var(--evp-container), calc(100% - 2 * var(--evp-gutter))); margin: 0 auto; }

/* ---------- Hero: two balanced regions ---------- */
.evp-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--evp-night); color: #fff;
  padding: calc(var(--evp-header-h) + 46px) 0 calc(var(--evp-overlap) + 34px);
}
.evp-hero-media { position: absolute; inset: var(--evp-header-h) 0 0 0; z-index: -2; } /* artwork starts below the solid nav */
.evp-hero-media picture, .evp-hero-media img { display: block; width: 100%; height: 100%; }
.evp-hero-media img {
  object-fit: cover; object-position: 100% 22%;
  animation: evpSettle 1.6s var(--evp-ease) both;
}
/* Left region darkened for the copy; portrait (right) left clear; bottom melts into the panel band. */
.evp-hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(42, 6, 16, .94) 0%, rgba(42, 6, 16, .82) 30%, rgba(42, 6, 16, .35) 50%, rgba(42, 6, 16, 0) 62%),
    linear-gradient(0deg, #2a0610 0%, rgba(42, 6, 16, .85) 10%, rgba(42, 6, 16, 0) 34%);
}
.evp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.evp-hero-copy { padding-left: 28px; } /* aligns with the summary card's inner edge below */
.evp-hero-copy > * { animation: evpUp .8s var(--evp-ease) both; animation-delay: calc(var(--i, 0) * 80ms + 100ms); }

.evp-eyebrow {
  margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase;
  color: var(--evp-gold);
}
.evp-title {
  margin: 0;
  font-family: var(--evp-serif); font-style: italic; font-weight: 600;
  font-size: clamp(38px, 5.1vw, 78px); line-height: 1.02; letter-spacing: -.01em;
  color: #fff; text-shadow: 0 2px 24px rgba(20, 2, 7, .5);
}
.evp-title-line { display: block; white-space: nowrap; } /* art-directed: one line per phrase */
.evp-facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; font-size: 19px; color: #f6e9df; }
.evp-facts li { display: flex; align-items: center; gap: 14px; }
.evp-facts svg { color: var(--evp-gold); flex: 0 0 auto; }
.evp-cta-row { margin-top: 30px; }

.evp-gold-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 32px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 18px; font-weight: 600; text-decoration: none;
  color: #3a0a14;
  background: linear-gradient(180deg, #f7dea2 0%, #e4bc6c 50%, #c79540 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 -1px 0 rgba(120, 70, 10, .25) inset, 0 14px 30px -12px rgba(217, 176, 106, .6);
  transition: transform .2s var(--evp-ease), box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.evp-gold-btn::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--evp-ease);
}
.evp-gold-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 20px 36px -14px rgba(217, 176, 106, .75); }
.evp-gold-btn:hover:not(:disabled)::after { transform: translateX(120%); }
.evp-gold-btn:active:not(:disabled) { transform: scale(.98); }
.evp-gold-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.evp-gold-btn:disabled { cursor: not-allowed; filter: grayscale(.6); opacity: .7; }
.evp-gold-btn svg { transition: transform .25s var(--evp-ease); }
.evp-gold-btn:hover svg { transform: translateX(3px); }

/* ---------- Booking panel band ---------- */
.evp-booking {
  position: relative;
  margin-top: calc(-1 * var(--evp-overlap));
  padding-bottom: 64px;
  background: linear-gradient(180deg, transparent 0, transparent var(--evp-overlap), #2a0610 var(--evp-overlap), #6a2433 200px, #d9bdb4 420px, var(--evp-cream) 620px);
}
.evp-closed { padding: 40px; border-radius: 22px; background: #fffdf9; text-align: center; }
.evp-closed h2 { margin: 0 0 8px; font-family: var(--evp-serif); font-size: 32px; }
.evp-closed a { color: var(--evp-ruby); font-weight: 600; }

.evp-details { margin-top: 32px; }
.evp-details-card {
  padding: 28px 32px; border-radius: 20px; background: #fffdf9;
  border: 1px solid var(--evp-line);
}
.evp-details-heading { margin: 0 0 18px; font-family: var(--evp-serif); font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--evp-ink); }
.evp-details-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.evp-details-row { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--evp-line); }
.evp-details-row dt { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--evp-muted); margin-bottom: 4px; }
.evp-details-row dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--evp-ink); }
.evp-details-row dd a { color: var(--evp-ruby); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.evp-details-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.evp-details-desc { margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: var(--evp-muted); }
@media (max-width: 767.98px) {
  .evp-details-card { padding: 20px; }
  .evp-details-grid { grid-template-columns: 1fr; }
}

.evp-explore { margin-top: 48px; }
.evp-kicker { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--evp-ruby); }
.evp-explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.evp-explore-card {
  display: grid; gap: 6px; padding: 20px 22px; border-radius: 16px; text-decoration: none; color: var(--evp-ink);
  background: #fffdf9; border: 1px solid var(--evp-line); transition: transform .3s var(--evp-ease), box-shadow .3s;
}
.evp-explore-card:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -24px rgba(42, 6, 16, .5); }
.evp-explore-date { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--evp-ruby); }
.evp-explore-title { font-family: var(--evp-serif); font-size: 22px; font-weight: 600; line-height: 1.15; }
.evp-explore-link { font-size: 13px; font-weight: 600; color: var(--evp-ruby); }

.evp-footer {
  margin-top: 36px; padding: 0 28px;
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 13.5px; color: var(--evp-muted);
}
.evp-footer a { color: var(--evp-ruby); font-weight: 600; text-decoration: none; }

@keyframes evpUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes evpSettle { from { opacity: .5; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }

/* ---------- Large desktop ---------- */
@media (min-width: 1700px) {
  body.ev-premium { --evp-container: 1320px; }
}

/* ---------- Laptop ---------- */
@media (max-width: 1279.98px) {
  body.ev-premium { --evp-gutter: 32px; }
  .evp-facts { font-size: 17px; }
}

@media (max-width: 1023.98px) {
  body.ev-premium { --evp-header-h: 89px; } /* site header switches to its mobile bar below 1024px */
}

/* ---------- Tablet ---------- */
@media (max-width: 899.98px) {
  body.ev-premium { --evp-gutter: 24px; --evp-overlap: 40px; }
  .evp-hero { padding: calc(var(--evp-header-h) + 36px) 0 calc(var(--evp-overlap) + 36px); }
  .evp-hero-media img { object-position: 100% 18%; }
  .evp-hero-copy { padding-left: 0; }
  .evp-title { font-size: clamp(34px, 5.6vw, 46px); }
  .evp-facts { font-size: 16px; margin-top: 18px; gap: 8px; }
  .evp-cta-row { margin-top: 22px; }
  .evp-gold-btn { min-height: 52px; font-size: 16.5px; padding: 0 26px; }
  .evp-footer { padding: 0 4px; }
}

/* ---------- Phone (mobile mockup: compact hero, no hero CTA, booking card directly below) ---------- */
@media (max-width: 599.98px) {
  body.ev-premium { --evp-gutter: 10px; --evp-overlap: 22px; }
  .evp-hero { padding: calc(var(--evp-header-h) + 20px) 0 calc(var(--evp-overlap) + 24px); }
  /* Enlarge the artwork a little and push the portrait to the right edge, clear of the title (mobile mockup). */
  .evp-hero-media picture { width: 128%; margin-left: -18%; }
  .evp-hero-media img { object-position: 50% 8%; }
  .evp-hero-scrim {
    background:
      linear-gradient(90deg, rgba(42, 6, 16, .92) 0%, rgba(42, 6, 16, .7) 45%, rgba(42, 6, 16, .1) 75%),
      linear-gradient(0deg, rgba(42, 6, 16, .85) 0%, rgba(42, 6, 16, 0) 40%);
  }
  .evp-hero-grid { grid-template-columns: 1fr; padding-left: 10px; }
  .evp-eyebrow { font-size: 10.5px; letter-spacing: .34em; margin-bottom: 8px; }
  .evp-title { font-size: clamp(27px, 7.6vw, 32px); line-height: 1.05; }
  .evp-facts { font-size: 13.5px; margin-top: 12px; gap: 6px; }
  .evp-facts li { gap: 9px; }
  .evp-facts svg { width: 15px; height: 15px; }
  .evp-city { display: none; }
  .evp-cta-row { display: none; } /* the booking card starts right below the hero */
  .evp-booking { padding-bottom: 28px; background: linear-gradient(180deg, transparent 0, transparent var(--evp-overlap), #f1e4dc var(--evp-overlap), var(--evp-cream) 200px); }
  .evp-footer { flex-direction: column; font-size: 12.5px; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .evp-hero-copy > *, .evp-hero-media img { animation: none !important; }
  .evp-gold-btn, .evp-gold-btn::after, .evp-explore-card { transition: none !important; }
}

@media print {
  body.ev-premium #site-header, .evp-hero, .evp-explore, .evp-footer { display: none !important; }
  .evp-booking { margin: 0; background: none; }
}
