/* ==========================================================================
   Events Page — Vision Court
   Modern blue-luxury template wrapping WP Event Manager shortcodes
   ========================================================================== */

/* ── Variables ─────────────────────────────────────────────────────────── */
.vc-events-page {
  --evp-accent: #2563eb;
  --evp-accent-dk: #1d4ed8;
  --evp-accent-lt: #60a5fa;
  --evp-navy: #0f172a;
  --evp-navy-mid: #1e293b;
  --evp-cream: #faf9f7;
  --evp-forest-dk: #04091e;
  --evp-forest: #0b1f40;
  --evp-sky: #f0f7ff;
  --evp-sky-mid: #dbeafe;
  --evp-white: #ffffff;
  --evp-text: #334155;
  --evp-heading: #0f172a;
  --evp-muted: #64748b;
  --evp-border: #e2e8f0;
  --evp-radius: 18px;
  --evp-radius-sm: 10px;
  --evp-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --evp-shadow-blue: 0 10px 40px rgba(37, 99, 235, 0.18);
  --evp-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --evp-dur: 0.3s;
  scroll-behavior: smooth;
}

/* ── Shared label ──────────────────────────────────────────────────────── */
.vc-evp-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--evp-accent);
  margin-bottom: 12px;
}
.vc-evp-label--light {
  color: var(--evp-accent-lt);
}

.vc-evp-highlight {
  background: linear-gradient(135deg, var(--evp-accent), var(--evp-accent-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vc-evp-highlight--light {
  background: linear-gradient(135deg, #93c5fd, #dbeafe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section head ──────────────────────────────────────────────────────── */
.vc-evp-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.vc-evp-section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--evp-heading);
  margin: 8px 0 16px;
  line-height: 1.2;
}
.vc-evp-section-head p {
  color: var(--evp-text);
  font-size: 1.05rem;
  line-height: 1.7;
}
.vc-evp-section-head--light h2 {
  color: #fff;
}
.vc-evp-section-head--light p {
  color: rgba(255, 255, 255, 0.72);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.vc-evp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all var(--evp-dur) var(--evp-ease);
  white-space: nowrap;
  cursor: pointer;
}
.vc-evp-btn--solid {
  background: var(--evp-accent);
  color: #fff;
  border-color: var(--evp-accent);
}
.vc-evp-btn--solid:hover {
  background: var(--evp-accent-dk);
  border-color: var(--evp-accent-dk);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.vc-evp-btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.vc-evp-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* ── Pill ──────────────────────────────────────────────────────────────── */
.vc-evp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.vc-evp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

/* Left panel — dark navy + topographic texture */
.vc-evp-hero__left {
  flex: 0 0 52%;
  min-height: 100vh;
  background: var(--evp-forest-dk);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}
.vc-evp-hero__left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Ccircle cx='45' cy='45' r='42' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3Ccircle cx='45' cy='45' r='28' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='0.8'/%3E%3Ccircle cx='45' cy='45' r='14' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3C/svg%3E"),
    radial-gradient(
      ellipse 70% 60% at 110% 50%,
      rgba(37, 99, 235, 0.22) 0%,
      transparent 65%
    );
  background-size:
    90px 90px,
    cover;
  pointer-events: none;
}
.vc-evp-hero__left-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 160px 64px 120px 8vw;
  max-width: 680px;
}

/* Right panel — full-bleed featured image */
.vc-evp-hero__right {
  flex: 0 0 48%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--evp-navy);
}
.vc-evp-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: evpImgZoom 14s ease-out both;
  will-change: transform;
}
@keyframes evpImgZoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}
/* Multi-layer overlay — left blend + bottom vignette + blue color grade */
.vc-evp-hero__right-fade {
  position: absolute;
  inset: 0;
  background:
    /* left-edge blend — hard join into dark text panel */
    linear-gradient(
      to right,
      rgba(6, 14, 28, 0.82) 0%,
      rgba(6, 14, 28, 0.22) 30%,
      rgba(6, 14, 28, 0) 52%
    ),
    /* bottom vignette — grounds and anchors the image */
    linear-gradient(
        to top,
        rgba(6, 14, 28, 0.68) 0%,
        rgba(6, 14, 28, 0.22) 25%,
        rgba(6, 14, 28, 0) 50%
      ),
    /* blue color grade — top-right glow */
    radial-gradient(
        ellipse at 78% 12%,
        rgba(37, 99, 235, 0.26) 0%,
        transparent 55%
      );
  z-index: 1;
  pointer-events: none;
}

.vc-evp-hero__title {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.vc-evp-hero__accent {
  background: linear-gradient(135deg, var(--evp-accent-lt) 0%, #bfdbfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vc-evp-hero__lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin: 0 0 40px;
  max-width: 520px;
}
.vc-evp-hero__ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   WHY ATTEND — 4-card strip
   ========================================================================== */
.vc-evp-why {
  padding: 0;
  background: var(--evp-white);
  position: relative;
  margin-top: -48px;
  z-index: 3;
}
.vc-evp-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.vc-evp-why__card {
  padding: 36px 28px 32px;
  background: var(--evp-white);
  border: 1px solid var(--evp-border);
  text-align: center;
  transition:
    transform var(--evp-dur) var(--evp-ease),
    box-shadow var(--evp-dur) var(--evp-ease);
}
.vc-evp-why__card:first-child {
  border-radius: var(--evp-radius) 0 0 var(--evp-radius);
}
.vc-evp-why__card:last-child {
  border-radius: 0 var(--evp-radius) var(--evp-radius) 0;
}
.vc-evp-why__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--evp-shadow-blue);
  z-index: 2;
  position: relative;
}
.vc-evp-why__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1),
    rgba(96, 165, 250, 0.1)
  );
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--evp-accent);
  margin-bottom: 18px;
}
.vc-evp-why__card h4 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--evp-heading);
  margin: 0 0 8px;
}
.vc-evp-why__card p {
  color: var(--evp-text);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   UPCOMING EVENTS (shortcode wrapper)
   ========================================================================== */
.vc-evp-upcoming {
  padding: 100px 0;
}

.vc-evp-listing {
  padding: 100px 0;
  background: var(--evp-cream);
}

/* ==========================================================================
   ALL EVENTS
   ========================================================================== */
.vc-evp-all {
  padding: 100px 0;
  background: var(--evp-white);
}

/* ==========================================================================
   PAST EVENTS
   ========================================================================== */
.vc-evp-past {
  padding: 100px 0;
  background: var(--evp-navy);
  position: relative;
  overflow: hidden;
}
.vc-evp-past::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      600px circle at 15% 30%,
      rgba(37, 99, 235, 0.22),
      transparent 60%
    ),
    radial-gradient(
      500px circle at 85% 70%,
      rgba(96, 165, 250, 0.12),
      transparent 50%
    );
  pointer-events: none;
}
.vc-evp-past > .container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   EVENT TYPES — Cards
   ========================================================================== */
.vc-evp-types {
  padding: 100px 0;
  background: var(--evp-sky);
}
.vc-evp-types__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.vc-evp-types__card {
  background: var(--evp-white);
  border-radius: var(--evp-radius);
  padding: 36px 30px 32px;
  border: 1px solid rgba(37, 99, 235, 0.05);
  transition:
    transform var(--evp-dur) var(--evp-ease),
    box-shadow var(--evp-dur) var(--evp-ease);
}
.vc-evp-types__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--evp-shadow-blue);
}
/* ── Event Type Animated Mockups ──────────────────────────────────────── */
.vc-evp-types__mockup {
  position: relative;
  height: 130px;
  border-radius: 14px;
  margin-bottom: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 1. Site Inspections */
.evp-mock--site {
  background: linear-gradient(135deg, #e8f4fd 0%, #dbeafe 100%);
}
.evp-mock__map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
}
.evp-mock__map-road {
  position: absolute;
  background: rgba(37, 99, 235, 0.12);
}
.evp-mock__map-road--h {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}
.evp-mock__map-road--v {
  height: 100%;
  width: 2px;
  left: 40%;
}
.evp-mock__pin-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: evpPinBob 2.4s ease-in-out infinite;
}
.evp-mock__pin-svg {
  filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.4));
}
.evp-mock__pin-pulse {
  position: absolute;
  bottom: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.25);
  animation: evpPinPulse 2.4s ease-out infinite;
}
@keyframes evpPinBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes evpPinPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* 2. Webinars */
.evp-mock--webinar {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  align-items: flex-start;
  padding: 14px 18px;
}
.evp-mock__screen {
  width: 100%;
}
.evp-mock__screen-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.evp-mock__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.evp-mock__dot--r {
  background: #ef4444;
}
.evp-mock__dot--y {
  background: #f59e0b;
}
.evp-mock__dot--g {
  background: #22c55e;
}
.evp-mock__screen-body {
  position: relative;
}
.evp-mock__text-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  margin-bottom: 7px;
  animation: evpFadeText 3s ease-in-out infinite;
}
.evp-mock__text-line--full {
  width: 100%;
  animation-delay: 0s;
}
.evp-mock__text-line--med {
  width: 62%;
  animation-delay: 0.5s;
}
@keyframes evpFadeText {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.9;
  }
}
.evp-mock__progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.evp-mock__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 2px;
  animation: evpWebinarBar 3s ease-in-out infinite;
}
@keyframes evpWebinarBar {
  0% {
    width: 10%;
  }
  60% {
    width: 80%;
  }
  100% {
    width: 10%;
  }
}
.evp-mock__live-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.6rem;
  font-weight: 700;
  color: #f87171;
  letter-spacing: 0.06em;
  animation: evpLivePulse 1.5s ease-in-out infinite;
}
@keyframes evpLivePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

/* 3. Community Meet-ups */
.evp-mock--community {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}
.evp-mock__avatars {
  display: flex;
  position: relative;
  z-index: 2;
}
.evp-mock__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  margin-left: -10px;
}
.evp-mock__avatar:first-child {
  margin-left: 0;
}
.evp-mock__avatar--1 {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  animation: evpAvatarBob 3s ease-in-out 0s infinite;
}
.evp-mock__avatar--2 {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  animation: evpAvatarBob 3s ease-in-out 0.3s infinite;
}
.evp-mock__avatar--3 {
  background: linear-gradient(135deg, #0891b2, #38bdf8);
  animation: evpAvatarBob 3s ease-in-out 0.6s infinite;
}
.evp-mock__avatar--4 {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  animation: evpAvatarBob 3s ease-in-out 0.9s infinite;
}
@keyframes evpAvatarBob {
  0%,
  80%,
  100% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-6px) scale(1.1);
  }
}
.evp-mock__wave-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.evp-mock__ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 99, 235, 0.18);
}
.evp-mock__ring--1 {
  width: 72px;
  height: 72px;
  animation: evpRingExpand 3s ease-out 0s infinite;
}
.evp-mock__ring--2 {
  width: 72px;
  height: 72px;
  animation: evpRingExpand 3s ease-out 1.5s infinite;
}
@keyframes evpRingExpand {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* 4. Property Expos */
.evp-mock--expo {
  background: linear-gradient(135deg, #eff6ff 0%, #e0edff 100%);
  align-items: flex-end;
  padding-bottom: 16px;
}
.evp-mock__bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 80px;
}
.evp-mock__bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.evp-mock__bar-col span {
  font-size: 0.58rem;
  color: #3b82f6;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.evp-mock__bar-fill {
  width: 30px;
  border-radius: 6px 6px 0 0;
  animation: evpBarPulse 2.8s ease-in-out infinite;
}
.evp-mock__bar-fill--60 {
  height: 46px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  animation-delay: 0.1s;
}
.evp-mock__bar-fill--80 {
  height: 62px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  animation-delay: 0.3s;
}
.evp-mock__bar-fill--100 {
  height: 78px;
  background: linear-gradient(180deg, #93c5fd, #1d4ed8);
  animation-delay: 0.5s;
}
@keyframes evpBarPulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scaleY(0.93);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}
.evp-mock__sparkle {
  position: absolute;
  color: #60a5fa;
  animation: evpSparkle 2.8s ease-in-out infinite;
  line-height: 1;
}
.evp-mock__sparkle--1 {
  top: 12px;
  right: 20px;
  font-size: 1.1rem;
  animation-delay: 0s;
}
.evp-mock__sparkle--2 {
  top: 22px;
  right: 40px;
  font-size: 0.7rem;
  animation-delay: 1.4s;
}
@keyframes evpSparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(18deg);
  }
}

/* 5. Documentation Clinics */
.evp-mock--docs {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}
.evp-mock__doc {
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  width: 148px;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.13);
}
.evp-mock__doc-header {
  height: 7px;
  width: 55%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 4px;
  margin-bottom: 10px;
}
.evp-mock__doc-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.evp-mock__check {
  font-size: 0.72rem;
  font-weight: 700;
  color: #22c55e;
  width: 14px;
  text-align: center;
  opacity: 0;
  animation: evpCheckIn 3.6s ease-in-out infinite;
}
.evp-mock__check--1 {
  animation-delay: 0.4s;
}
.evp-mock__check--2 {
  animation-delay: 0.9s;
}
.evp-mock__check--3 {
  animation-delay: 1.4s;
}
@keyframes evpCheckIn {
  0%,
  25% {
    opacity: 0;
    transform: scale(0.3);
  }
  50%,
  80% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.3);
  }
}
.evp-mock__doc-line {
  flex: 1;
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
}
.evp-mock__doc-line--short {
  flex: none;
  width: 40%;
}
.evp-mock__doc-line--med {
  flex: none;
  width: 65%;
}

/* 6. Payment Plan Workshops */
.evp-mock--payment {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 14px 18px;
  align-items: flex-start;
}
.evp-mock__payment-rows {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 6px;
}
.evp-mock__pay-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.evp-mock__pay-label {
  font-size: 0.58rem;
  font-weight: 600;
  color: #1d4ed8;
  white-space: nowrap;
  width: 44px;
}
.evp-mock__pay-track {
  flex: 1;
  height: 6px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.evp-mock__pay-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 3px;
  animation: evpPayPulse 3s ease-in-out infinite;
}
.evp-mock__pay-fill--100 {
  width: 100%;
  animation-delay: 0s;
}
.evp-mock__pay-fill--70 {
  width: 70%;
  animation-delay: 0.4s;
}
.evp-mock__pay-fill--40 {
  width: 40%;
  animation-delay: 0.8s;
}
@keyframes evpPayPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
.evp-mock__pay-tick {
  font-size: 0.68rem;
  font-weight: 700;
  color: #22c55e;
  animation: evpTickPop 3s ease-in-out infinite;
}
.evp-mock__pay-row:nth-child(1) .evp-mock__pay-tick {
  animation-delay: 0.2s;
}
.evp-mock__pay-row:nth-child(2) .evp-mock__pay-tick {
  animation-delay: 0.6s;
}
@keyframes evpTickPop {
  0%,
  35% {
    opacity: 0;
    transform: scale(0.4);
  }
  55%,
  90% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.4);
  }
}
.vc-evp-types__card h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--evp-heading);
  margin: 0 0 10px;
}
.vc-evp-types__card p {
  color: var(--evp-text);
  font-size: 0.94rem;
  line-height: 1.68;
  margin: 0;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.vc-evp-cta {
  padding: 100px 0;
  background: linear-gradient(
    160deg,
    var(--evp-accent),
    var(--evp-accent-dk) 50%,
    var(--evp-navy) 100%
  );
  position: relative;
  overflow: hidden;
}
.vc-evp-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      500px circle at 20% 50%,
      rgba(255, 255, 255, 0.08),
      transparent 50%
    ),
    radial-gradient(
      400px circle at 80% 80%,
      rgba(96, 165, 250, 0.12),
      transparent 40%
    );
  pointer-events: none;
}
.vc-evp-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.vc-evp-cta__inner h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 20px;
}
.vc-evp-cta__inner p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin: 0 0 40px;
}
.vc-evp-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   CHAPTER MARKERS
   — Editorial section labels (matching estate page design language)
   ========================================================================== */
.vc-evp-chapter {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--evp-accent);
  margin-bottom: 14px;
}
.vc-evp-chapter__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 22px;
  border: 1.5px solid var(--evp-accent);
  border-radius: 5px;
  color: var(--evp-accent);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  flex-shrink: 0;
}
.vc-evp-chapter__divider {
  width: 36px;
  height: 1px;
  background: linear-gradient(to right, var(--evp-accent), transparent);
  display: inline-block;
  flex-shrink: 0;
  opacity: 0.7;
}
.vc-evp-chapter--light {
  color: rgba(255, 255, 255, 0.6);
}
.vc-evp-chapter--light .vc-evp-chapter__num {
  border-color: var(--evp-accent-lt);
  color: var(--evp-accent-lt);
}
.vc-evp-chapter--light .vc-evp-chapter__divider {
  background: linear-gradient(to right, var(--evp-accent-lt), transparent);
  opacity: 0.6;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .vc-evp-types__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  /* Narrow the split slightly on tablets */
  .vc-evp-hero__left {
    flex: 0 0 56%;
  }
  .vc-evp-hero__right {
    flex: 0 0 44%;
  }
  .vc-evp-hero__left-inner {
    padding: 140px 40px 72px 6vw;
  }
  .vc-evp-why__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .vc-evp-why__card:first-child {
    border-radius: var(--evp-radius) 0 0 0;
  }
  .vc-evp-why__card:nth-child(2) {
    border-radius: 0 var(--evp-radius) 0 0;
  }
  .vc-evp-why__card:nth-child(3) {
    border-radius: 0 0 0 var(--evp-radius);
  }
  .vc-evp-why__card:last-child {
    border-radius: 0 0 var(--evp-radius) 0;
  }

  .vc-evp-shortcode-wrap .event_listings,
  .vc-evp-shortcode-wrap .wpem-event-listings {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  /* Full-bleed hero: image fills background, title/text overlaid */
  .vc-evp-hero {
    flex-direction: column;
    min-height: 600px;
  }
  /* Image panel becomes absolute background layer */
  .vc-evp-hero__right {
    position: absolute;
    inset: 0;
    order: 0;
    flex: none;
    width: 100%;
    height: 100%;
    min-height: auto;
    max-height: none;
    z-index: 1;
  }
  /* Update overlay to a strong bottom + left dark fade for text readability */
  .vc-evp-hero__right-fade {
    background:
      linear-gradient(
        to bottom,
        rgba(6, 14, 28, 0.32) 0%,
        rgba(6, 14, 28, 0.82) 100%
      ),
      linear-gradient(
        to right,
        rgba(6, 14, 28, 0.72) 0%,
        rgba(6, 14, 28, 0.12) 60%,
        rgba(6, 14, 28, 0) 100%
      );
  }
  /* Text panel: transparent, floats on top of image */
  .vc-evp-hero__left {
    position: relative;
    z-index: 2;
    flex: 1;
    width: 100%;
    background: transparent;
    min-height: auto;
  }
  .vc-evp-hero__left-inner {
    padding: 160px 32px 72px 8vw;
    max-width: 100%;
  }
  .vc-evp-hero__lead {
    max-width: 520px;
    font-size: 1rem;
  }

  .vc-evp-listing,
  .vc-evp-all,
  .vc-evp-past,
  .vc-evp-types,
  .vc-evp-cta {
    padding: 72px 0;
  }

  .vc-evp-why {
    margin-top: 0;
  }

  .vc-evp-types__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .vc-evp-shortcode-wrap .event_listings,
  .vc-evp-shortcode-wrap .wpem-event-listings {
    grid-template-columns: 1fr;
  }

  .vc-evp-shortcode-wrap table.event_listings,
  .vc-evp-shortcode-wrap table.wpem-event-listings {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 576px) {
  /* Reduce hero height and text padding on small screens */
  .vc-evp-hero {
    min-height: 520px;
  }
  .vc-evp-hero__left-inner {
    padding: 130px 20px 60px 6vw;
  }
  .vc-evp-hero__title {
    font-size: clamp(2rem, 10vw, 2.8rem);
    margin-bottom: 16px;
  }
  .vc-evp-hero__lead {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }
  .vc-evp-hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .vc-evp-why__grid {
    grid-template-columns: 1fr;
  }
  .vc-evp-why__card {
    border-radius: 0 !important;
  }
  .vc-evp-why__card:first-child {
    border-radius: var(--evp-radius) var(--evp-radius) 0 0 !important;
  }
  .vc-evp-why__card:last-child {
    border-radius: 0 0 var(--evp-radius) var(--evp-radius) !important;
  }

  .vc-evp-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   ANIMATIONS — Hero entrance + scroll-reveal
   ========================================================================== */

/* Hero text elements — staggered fade-up on page load */
@keyframes evpFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vc-evp-hero__left-inner .vc-evp-pill {
  animation: evpFadeUp 0.7s var(--evp-ease) 0.15s both;
}
.vc-evp-hero__title {
  animation: evpFadeUp 0.7s var(--evp-ease) 0.3s both;
}
.vc-evp-hero__lead {
  animation: evpFadeUp 0.7s var(--evp-ease) 0.48s both;
}
.vc-evp-hero__ctas {
  animation: evpFadeUp 0.7s var(--evp-ease) 0.64s both;
}

/* Scroll-reveal — base state (hidden) */
.evp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s var(--evp-ease),
    transform 0.65s var(--evp-ease);
}
.evp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.evp-reveal--delay-1 {
  transition-delay: 0.08s;
}
.evp-reveal--delay-2 {
  transition-delay: 0.18s;
}
.evp-reveal--delay-3 {
  transition-delay: 0.28s;
}
.evp-reveal--delay-4 {
  transition-delay: 0.38s;
}
.evp-reveal--delay-5 {
  transition-delay: 0.48s;
}
.evp-reveal--delay-6 {
  transition-delay: 0.58s;
}

/* Honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .vc-evp-hero__left-inner .vc-evp-pill,
  .vc-evp-hero__title,
  .vc-evp-hero__lead,
  .vc-evp-hero__ctas {
    animation: none;
  }
  .vc-evp-hero__img {
    animation: none;
  }
  .evp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .vc-evp-types__mockup * {
    animation: none !important;
    transition: none !important;
  }
}
