/* =============================================
   Mara Events — event-services.css
   "All event services" hub page (/event-services).
   Builds on styles.css + service.css (nav, footer,
   FAQ, enquiry form). Everything here is prefixed es-.
   ============================================= */

.es-page {
  --es-ink: #0b1430;
  --es-navy: #0d2257;
  --es-blue: #2174e9;
  --es-sky: #7cb6ff;
  --es-gold: #c9a45c;
  --es-mute: #5b6680;
  --es-line: rgba(11, 20, 48, 0.1);
  --es-soft: #f5f7fb;
  background: #fff;
  color: var(--es-ink);
}

.es-page :is(h1, h2, h3) {
  letter-spacing: -0.025em;
}

.es-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--es-blue);
}

.es-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.es-section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.es-head {
  max-width: 680px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.es-head h2 {
  margin: 16px 0 14px;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.1;
}

.es-head p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--es-mute);
}

/* ─── BUTTONS ─────────────────────────────── */
.es-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.es-btn--primary {
  background: var(--es-blue);
  color: #fff;
  box-shadow: 0 10px 30px rgba(33, 116, 233, 0.35);
}

.es-btn--primary:hover {
  background: #1a5bc4;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(33, 116, 233, 0.45);
}

.es-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.es-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.es-btn--ghost .fa-whatsapp {
  color: #25d366;
  font-size: 18px;
}

.es-btn i.fa-arrow-right {
  transition: transform 0.25s ease;
}

.es-btn:hover i.fa-arrow-right {
  transform: translateX(4px);
}

/* ─── HERO (cinematic slideshow) ──────────── */
.es-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 136px 0 0;
  background: #050c24;
  color: #fff;
}

/* Photos */
.es-hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.es-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.8s ease, transform 0s linear 1.8s;
  will-change: opacity, transform;
}

.es-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.8s ease, transform 9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Veil: deep navy on the reading side, a vignette, and a soft floor */
.es-hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 10, 32, 0.94) 0%, rgba(5, 14, 44, 0.78) 38%, rgba(6, 16, 50, 0.25) 72%, rgba(6, 16, 50, 0.15) 100%),
    linear-gradient(0deg, rgba(3, 8, 26, 0.95) 0%, rgba(3, 8, 26, 0) 38%),
    radial-gradient(120% 90% at 70% 40%, transparent 55%, rgba(2, 6, 20, 0.55) 100%);
}

/* Fine film grain for a printed, editorial finish */
.es-hero-grain {
  position: absolute;
  inset: -50%;
  z-index: -1;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.es-hero-inner {
  position: relative;
  width: 100%;
  padding-bottom: clamp(36px, 6vh, 80px);
}

.es-hero-copy {
  max-width: 760px;
}

.es-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.es-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.es-breadcrumb a:hover {
  color: #fff;
}

.es-hero .es-eyebrow {
  color: #e6cf9c;
}

.es-hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(44px, min(6.4vw, 9vh), 88px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.es-hero h1 .es-serif {
  display: block;
  margin-top: 6px;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.08em;
  line-height: 1;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #f4e3b8 0%, #d9b46a 35%, #fff2cf 55%, #c9a45c 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: es-sheen 7s ease-in-out 1.6s infinite alternate;
  padding-bottom: 0.08em; /* keep italic descenders inside the clip */
}

@keyframes es-sheen {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.es-hero-lede {
  max-width: 560px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.es-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.es-hero .es-btn--primary {
  background: linear-gradient(135deg, #f1dcaa 0%, #c9a45c 100%);
  color: #0b1430;
  box-shadow: 0 14px 40px rgba(201, 164, 92, 0.35);
}

.es-hero .es-btn--primary:hover {
  background: linear-gradient(135deg, #f7e6bd 0%, #d4b06a 100%);
  box-shadow: 0 18px 48px rgba(201, 164, 92, 0.5);
}

.es-hero .es-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Bottom bar: proof points + slide caption and progress */
.es-hero-bar {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 10, 32, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.es-hero-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.es-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.es-hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.es-hero-proof i {
  color: #d9b46a;
}

.es-hero-now {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.es-hero-caption {
  min-width: 190px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: right;
  color: rgba(255, 255, 255, 0.7);
  transition: opacity 0.6s ease;
}

.es-hero-caption strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e6cf9c;
}

.es-hero-dots {
  display: flex;
  gap: 8px;
}

.es-hero-dot {
  position: relative;
  width: 42px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.es-hero-dot::before,
.es-hero-dot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
}

.es-hero-dot::before {
  right: 0;
  background: rgba(255, 255, 255, 0.25);
}

.es-hero-dot::after {
  width: 0;
  background: #e6cf9c;
}

.es-hero-dot.is-active::after {
  animation: es-progress var(--es-slide-ms, 6500ms) linear forwards;
}

.es-hero.is-paused .es-hero-dot.is-active::after {
  animation-play-state: paused;
}

.es-hero-dot:focus-visible {
  outline: 2px solid #e6cf9c;
  outline-offset: 2px;
}

@keyframes es-progress {
  from { width: 0; }
  to   { width: 100%; }
}

/* Entrance: lines rise in one after another */
.es-rise {
  animation: es-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.es-rise:nth-child(1) { animation-delay: 0.1s; }
.es-rise:nth-child(2) { animation-delay: 0.2s; }
.es-rise:nth-child(3) { animation-delay: 0.32s; }
.es-rise:nth-child(4) { animation-delay: 0.48s; }
.es-rise:nth-child(5) { animation-delay: 0.62s; }

@keyframes es-rise {
  from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.es-hero-scroll {
  position: absolute;
  right: max(var(--gutter, 28px), calc((100vw - var(--content-max, 1240px)) / 2 + var(--gutter, 28px)));
  bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(255, 255, 255, 0.6);
}

.es-hero-scroll::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(rgba(255, 255, 255, 0.7), transparent);
  animation: es-scroll 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes es-scroll {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(20px); opacity: 0; }
}

/* ─── POSITIONING / STATS ─────────────────── */
.es-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.es-intro h2 {
  margin: 16px 0 0;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.1;
}

.es-intro-copy p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--es-mute);
}

.es-intro-copy p + p {
  margin-top: 18px;
}

.es-intro-copy strong {
  color: var(--es-ink);
}

/* ─── EVENTS WE PLAN ──────────────────────── */
.es-events {
  background: var(--es-soft);
}

.es-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.es-event {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 0 var(--es-line);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.es-event:hover,
.es-event:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(11, 20, 48, 0.12);
}

.es-event:focus-visible {
  outline: 3px solid var(--es-blue);
  outline-offset: 3px;
}

.es-event-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e7ecf5;
}

.es-event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.es-event:hover .es-event-media img {
  transform: scale(1.06);
}

.es-event-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 26px 28px;
}

.es-event-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--es-blue);
}

.es-event h3 {
  margin: 10px 0 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.es-event p {
  flex: 1;
  font-size: 15px;
  line-height: 1.65;
  color: var(--es-mute);
}

.es-event-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--es-navy);
}

.es-event-link i {
  transition: transform 0.25s ease;
}

.es-event:hover .es-event-link i {
  transform: translateX(4px);
}

.es-events-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding: 22px 28px;
  border: 1px solid var(--es-line);
  border-radius: 18px;
  background: #fff;
  font-size: 15px;
  color: var(--es-mute);
}

.es-events-foot strong {
  color: var(--es-ink);
}

.es-events-foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--es-blue);
}

/* ─── WHY MARA (dark) ─────────────────────── */
.es-why {
  background: linear-gradient(160deg, #050c24 0%, #0d2257 100%);
  color: #fff;
}

.es-why .es-head p {
  color: rgba(255, 255, 255, 0.7);
}

.es-why .es-eyebrow {
  color: var(--es-sky);
}

.es-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.es-pillar {
  padding: 36px 28px 8px 0;
}

.es-pillar + .es-pillar {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.es-pillar-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--es-gold);
}

.es-pillar h3 {
  margin: 18px 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.es-pillar p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}

.es-why-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(56px, 7vw, 88px);
  padding: 36px 40px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.es-why-cta h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  line-height: 1.25;
}

.es-why-cta p {
  margin-top: 6px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.68);
}

/* ─── PROOF ───────────────────────────────── */
.es-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.es-quote {
  margin: 0;
}

.es-quote-mark {
  display: block;
  width: 48px;
  height: 36px;
  margin-bottom: 24px;
  fill: var(--es-blue);
  opacity: 0.9;
}

.es-quote blockquote {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--es-ink);
}

.es-quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.es-quote-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--es-navy);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.es-quote figcaption strong {
  display: block;
  font-size: 16px;
}

.es-quote figcaption span span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--es-mute);
}

.es-mini-quotes {
  display: grid;
  gap: 16px;
}

.es-mini-quote {
  margin: 0;
  padding: 24px 26px;
  border: 1px solid var(--es-line);
  border-radius: 18px;
  background: var(--es-soft);
}

.es-mini-quote blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--es-ink);
}

.es-mini-quote figcaption {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--es-navy);
}

.es-mini-quote figcaption span {
  font-weight: 500;
  color: var(--es-mute);
}

.es-stars {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--es-gold);
}

/* ─── PROCESS ─────────────────────────────── */
.es-process {
  background: var(--es-soft);
}

.es-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: es-step;
}

.es-step {
  position: relative;
  padding: 32px 28px;
  border-radius: 20px;
  background: #fff;
  counter-increment: es-step;
}

.es-step::before {
  content: "0" counter(es-step);
  display: block;
  margin-bottom: 22px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--es-blue);
}

.es-step h3 {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 700;
}

.es-step p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--es-mute);
}

/* ─── STICKY MOBILE CTA ───────────────────── */
.es-sticky {
  display: none;
}

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 1080px) {
  .es-pillars,
  .es-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .es-pillar:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .es-pillar:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 28px;
  }
}

@media (max-width: 992px) {
  .es-intro,
  .es-proof-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .es-hero-scroll {
    display: none;
  }

  .es-hero-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .es-hero-now {
    width: 100%;
    justify-content: space-between;
  }

  .es-hero-caption {
    min-width: 0;
    text-align: left;
  }

  .es-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .es-hero {
    padding-top: 128px;
  }

  .es-hero h1 {
    font-size: clamp(40px, 11vw, 52px);
  }

  .es-hero-veil {
    background:
      linear-gradient(0deg, rgba(3, 8, 26, 0.97) 0%, rgba(4, 10, 32, 0.82) 45%, rgba(4, 10, 32, 0.45) 100%);
  }

  .es-hero-actions .es-btn {
    width: 100%;
  }

  .es-hero-proof {
    gap: 8px 20px;
    font-size: 13px;
  }

  .es-hero-dot {
    width: 30px;
  }

  .es-event-grid,
  .es-pillars,
  .es-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .es-pillar,
  .es-pillar + .es-pillar {
    padding: 28px 0 0;
    margin-top: 0;
    border-left: 0;
  }

  .es-pillar + .es-pillar {
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .es-why-cta {
    padding: 28px 24px;
  }

  .es-why-cta .es-btn {
    width: 100%;
  }

  .es-events-foot {
    padding: 20px;
  }

  /* Sticky booking bar on phones, shown once the hero has scrolled away */
  .es-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -8px 24px rgba(11, 20, 48, 0.1);
    transform: translateY(110%);
    transition: transform 0.35s ease;
  }

  .es-sticky.is-visible {
    transform: none;
  }

  .es-sticky .es-btn {
    flex: 1;
    min-height: 48px;
    padding: 0 16px;
    font-size: 14px;
  }

  .es-sticky .es-btn--wa {
    flex: 0 0 48px;
    padding: 0;
    background: #25d366;
    color: #fff;
  }

  /* keep the floating WhatsApp bubble clear of the bar */
  .es-page.es-sticky-on .wa-btn {
    bottom: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .es-page *,
  .es-page *::before,
  .es-page *::after {
    transition: none !important;
    animation: none !important;
  }

  .es-hero-slide.is-active {
    transform: none;
  }
}
