/* =============================================================================
   CINESTAR EVENTS — Homepage Styles
   theme/cinestar-child/assets/css/home.css
   Depends on: assets/css/main.css (design tokens + layout utilities + components)
   Sections:
     1. Hero
     3. Featured Event & Countdown
     4. Past Events Reel
     5. Stats (scroll animation)
     6. Testimonials Slider
     7. Newsletter
     8. Sponsor Marquee
     9. Scroll Fade-up Animation
    10. Shared Section Headings
    11. Reduced Motion
   ============================================================================= */


/* .ce-skip-link — defined globally in main.css */


/* =============================================================================
   LAYOUT: Main content full-width guard
   Prevents Astra flex container from narrowing <main> below viewport width.
   overflow-x: hidden catches reel bleed before it causes page-level scroll.
   ============================================================================= */

#main-content {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}


/* =============================================================================
   2. HERO
   ============================================================================= */

.ce-hero {
  position: relative;
  min-height: calc(100svh - var(--ce-header-h)); /* subtract sticky header so content centres in visible area */
  min-height: calc(100dvh - var(--ce-header-h)); /* dvh for mobile browsers that hide/show URL bar */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  /* padding-top = breathing room; padding-bottom = space for CTA buttons above fold */
  padding-block: 3rem 5rem;
}

/* Hero crossfade slider — 9 images, pure CSS animation */
.ce-hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ce-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: ce-hero-fade 54s linear infinite;
}

.ce-hero__slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Hero 2 (Salman Khan): pull image down so face is fully visible */
.ce-hero__slide:nth-child(2) .ce-hero__slide-img {
  object-position: center 15%;
}

/* Dark overlay for text readability */
.ce-hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* 9 slides × 6s each = 54s total cycle
   Each slide: fade in 1.5s → hold 4.5s → fade out 1.5s → wait 46.5s
   Keyframe percentages for 54s cycle:
   visible window = 6s/54s ≈ 11.11%
   fade-in  = 1.5s/54s ≈ 2.78%
   fade-out = 1.5s/54s ≈ 2.78%  */
@keyframes ce-hero-fade {
  0%      { opacity: 0; }
  2.78%   { opacity: 1; }
  11.11%  { opacity: 1; }
  13.89%  { opacity: 0; }
  100%    { opacity: 0; }
}

/* Stagger each slide's animation start */
.ce-hero__slide:nth-child(1) { animation-delay: 0s; }
.ce-hero__slide:nth-child(2) { animation-delay: 6s; }
.ce-hero__slide:nth-child(3) { animation-delay: 12s; }
.ce-hero__slide:nth-child(4) { animation-delay: 18s; }
.ce-hero__slide:nth-child(5) { animation-delay: 24s; }
.ce-hero__slide:nth-child(6) { animation-delay: 30s; }
.ce-hero__slide:nth-child(7) { animation-delay: 36s; }
.ce-hero__slide:nth-child(8) { animation-delay: 42s; }
.ce-hero__slide:nth-child(9) { animation-delay: 48s; }

/* First slide visible immediately (no blank start) */
.ce-hero__slide:nth-child(1) {
  opacity: 1;
  animation: ce-hero-fade-first 54s linear infinite;
}

@keyframes ce-hero-fade-first {
  0%      { opacity: 1; }
  11.11%  { opacity: 1; }
  13.89%  { opacity: 0; }
  97.22%  { opacity: 0; }
  100%    { opacity: 1; }
}

.ce-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.ce-hero__eyebrow {
  font-family: var(--ce-font-body);
  font-size: var(--ce-text-sm);
  font-weight: 600;
  color: var(--ce-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0;
}

.ce-hero__eyebrow::before {
  content: '◆ ';
}

.ce-hero__headline {
  font-family: var(--ce-font-heading);
  /* clamp: 32px floor at 375px (down from 48px), scales to 96px at 1370px+ */
  font-size: clamp(2rem, 7vw, 6rem);
  font-weight: 900;
  color: var(--ce-text);
  line-height: 1.05;
  margin: 0;
  /* Stage-light text glow */
  text-shadow: 0 0 80px rgba(255, 215, 0, 0.25), 0 0 120px rgba(255, 20, 147, 0.1);
}

.ce-hero__sub {
  font-family: var(--ce-font-body);
  font-size: clamp(var(--ce-text-base), 2vw, var(--ce-text-lg));
  color: var(--ce-text-muted);
  max-width: 42ch;
  margin: 0 auto;
}

.ce-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Scroll indicator */
.ce-hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--ce-text-faint);
}

/* Hide on mobile — at 375px the chevron sits too close to CTA buttons */
@media (max-width: 639px) {
  .ce-hero__scroll-indicator {
    display: none;
  }
}

.ce-hero__chevron {
  animation: ce-bounce 2s ease-in-out infinite;
}

@keyframes ce-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* Tablet+ */
@media (min-width: 768px) {
  .ce-hero {
    padding-block: calc(var(--ce-header-h) + 4rem) 5rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .ce-hero {
    padding-block: calc(var(--ce-header-h) + 6rem) 6rem;
  }

  .ce-hero__headline {
    line-height: 1;
  }
}

/* Admin-bar offset: WP adds html { margin-top: 32px / 46px } when logged in */
body.admin-bar .ce-hero {
  min-height: calc(100svh - var(--ce-header-h) - 32px);
}

@media (max-width: 782px) {
  body.admin-bar .ce-hero {
    min-height: calc(100svh - 80px - 46px);
  }
}

/* Scanline texture overlay — adds cinematic depth without an image */
.ce-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    transparent 0px, transparent 3px,
    rgba(0, 0, 0, 0.04) 3px, rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
  z-index: 0;
}


/* =============================================================================
   3. FEATURED EVENT & COUNTDOWN
   ============================================================================= */

/* ── Section padding ── */
.ce-featured-event {
  padding-block: 5rem;
  position: relative;
  overflow: hidden;
}

/* Spotlight radial gradient behind poster area */
.ce-featured-event::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(
    ellipse 100% 80% at 50% 30%,
    rgba(255, 215, 0, 0.06) 0%,
    rgba(255, 20, 147, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── ROW 1: Hero moment — centred stack ── */
.ce-featured-event__hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

/* Poster */
.ce-featured-event__poster {
  width: 100%;
  max-width: 340px;
  margin-bottom: 0.75rem;
}

.ce-featured-event__poster-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--ce-radius-lg);
  animation: ce-poster-glow 3.5s ease-in-out infinite;
}

@keyframes ce-poster-glow {
  0%, 100% {
    box-shadow:
      0 0 30px rgba(255, 215, 0, 0.12),
      0 8px 32px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow:
      0 0 50px rgba(255, 215, 0, 0.22),
      0 0 80px rgba(255, 20, 147, 0.08),
      0 8px 32px rgba(0, 0, 0, 0.5);
  }
}

/* Eyebrow */
.ce-featured-event__eyebrow {
  font-family: var(--ce-font-body);
  font-size: var(--ce-text-sm);
  font-weight: 600;
  color: var(--ce-magenta);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0;
}

/* Heading — centred, no left border */
.ce-featured-event__headline {
  font-size: clamp(var(--ce-text-3xl), 5vw, var(--ce-text-5xl));
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
}

.ce-featured-event__artist {
  display: block;
  font-size: 0.8em;
  background: linear-gradient(90deg, var(--ce-gold) 0%, var(--ce-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description */
.ce-featured-event__desc {
  font-size: var(--ce-text-base);
  color: var(--ce-text-muted);
  max-width: 700px;
  line-height: 1.7;
  margin: 0;
}

/* CTA */
.ce-featured-event__cta {
  margin-top: 0.5rem;
}

/* "Book Tickets" button pulse */
@keyframes ce-pulse {
  0%, 100% { box-shadow: var(--ce-glow-magenta); }
  50%       { box-shadow: 0 0 40px rgba(255, 20, 147, 0.6); }
}

.ce-featured-event .ce-btn--magenta {
  animation: ce-pulse 2.5s ease-in-out infinite;
}

/* ── ROW 2: Supporting details — tour dates + countdown ── */
.ce-featured-event__details {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3.5rem;
}

/* Tour dates list */
.ce-featured-event__tour-dates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ce-tour-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--ce-border);
  font-family: var(--ce-font-body);
  font-size: var(--ce-text-sm);
}

.ce-tour-date:first-child {
  border-top: 1px solid var(--ce-border);
}

.ce-tour-date__city {
  color: var(--ce-text);
  font-weight: 600;
}

.ce-tour-date__date {
  color: var(--ce-gold);
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Countdown */
.ce-countdown {
  background-color: var(--ce-bg-card);
  border: 1px solid var(--ce-border-gold);
  border-radius: var(--ce-radius-lg);
  padding: 25px 30px;
  text-align: center;
  box-shadow: var(--ce-glow-gold);
}

.ce-countdown__label {
  font-family: var(--ce-font-body);
  font-size: var(--ce-text-sm);
  color: var(--ce-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1.25rem;
}

.ce-countdown__grid {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.ce-countdown__box {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background-color: var(--ce-bg-raised);
  border-top: 2px solid var(--ce-gold);
  border-radius: var(--ce-radius);
  padding: 0.875rem 0.5rem;
  text-align: center;
}

.ce-countdown__num {
  font-family: var(--ce-font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--ce-gold);
  line-height: 1;
  min-width: 2ch;
  display: block;
}

.ce-countdown__unit {
  font-family: var(--ce-font-body);
  font-size: var(--ce-text-xs);
  color: var(--ce-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ce-countdown__tour-note {
  margin: 1.25rem 0 0;
  font-size: var(--ce-text-sm);
  color: var(--ce-text-muted);
}

/* Mobile: countdown boxes wrap into 2×2 for readability at 375px */
@media (max-width: 479px) {
  .ce-countdown__grid {
    flex-wrap: wrap;
  }

  .ce-countdown__box {
    width: calc(50% - 6px);
  }

  .ce-featured-event__cta {
    width: 100%;
    text-align: center;
  }
}

/* Tablet+: tour dates and countdown side by side */
@media (min-width: 768px) {
  .ce-featured-event {
    padding-block: 5.5rem;
  }

  .ce-featured-event__poster {
    max-width: 680px;
  }

  .ce-featured-event__details {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    margin-top: 4rem;
  }

  .ce-featured-event__tour-dates {
    flex: 1 1 50%;
  }

  .ce-countdown {
    flex: 1 1 50%;
    max-width: 380px;
  }
}

/* Desktop: larger poster, more breathing room */
@media (min-width: 1024px) {
  .ce-featured-event {
    padding-block: 6rem;
  }

  .ce-featured-event__poster {
    max-width: 880px;
  }

  .ce-featured-event__hero {
    gap: 1.5rem;
  }

  .ce-featured-event__details {
    max-width: 900px;
    margin-inline: auto;
    gap: 4rem;
  }

}


/* =============================================================================
   4. PAST EVENTS REEL
   ============================================================================= */

.ce-reel-header {
  text-align: center;
  margin-block-end: 3rem;
}

.ce-reel-header__heading {
  font-size: clamp(var(--ce-text-2xl), 4vw, var(--ce-text-4xl));
  margin-bottom: 0.75rem;
}

.ce-reel-header__sub {
  font-size: var(--ce-text-base);
  color: var(--ce-text-muted);
  max-width: 52ch;
  margin-inline: auto;
}

/* Horizontal scroll reel */
.ce-reel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 1.25rem;        /* space for hover lift + scrollbar */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  /* Negative margins break out of .ce-container padding so cards reach the edge */
  margin-inline: -1.5rem;
  padding-inline: 1.5rem;
  padding-right: 1.5rem;          /* "peek" — increased at tablet+ below */

  /* Hide scrollbar visually but keep functional */
  scrollbar-width: thin;
  scrollbar-color: var(--ce-border-gold) transparent;
}

.ce-reel::-webkit-scrollbar {
  height: 4px;
}

.ce-reel::-webkit-scrollbar-track {
  background: transparent;
}

.ce-reel::-webkit-scrollbar-thumb {
  background-color: var(--ce-border-gold);
  border-radius: 2px;
}

.ce-reel__item {
  flex: 0 0 280px;               /* fixed width, no shrink */
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .ce-reel__item {
    flex-basis: 300px;
  }

  .ce-reel {
    margin-inline: -2rem;
    padding-inline: 2rem;
    padding-right: 3rem; /* restore right peek at tablet+ */
  }
}

@media (min-width: 1024px) {
  .ce-reel__item {
    flex-basis: 280px;
  }
}

@media (min-width: 1440px) {
  .ce-reel {
    margin-inline: -3rem;
    padding-inline: 3rem;
  }
}

/* Right-edge fade signals to users that more cards exist off-screen */
#past-events-reel {
  position: relative;
}

#past-events-reel::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 6rem;
  background: linear-gradient(to right, transparent, var(--ce-bg) 80%);
  pointer-events: none;
  z-index: 2;
}


/* ── Artist card images ──
   Real concert photos with dark gradient overlay for text readability.
   aspect-ratio 3/4 is inherited from .ce-card__image in main.css */

.ce-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  overflow: hidden;
  background: var(--ce-dark);
}

.ce-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Dark gradient overlay at bottom for text readability */
.ce-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

/* Tour name subtitle */
.ce-card__tour {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  margin: 0.15rem 0 0.5rem;
}


/* =============================================================================
   5. STATS (scroll animation hook)
   ============================================================================= */

/* The .ce-stats component is defined in main.css.
   We add fade-in animation here — JS adds .is-visible when in viewport. */

.ce-stats {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.ce-stats.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: 2×2 grid prevents all 4 stats cramming into one row at 375px */
@media (max-width: 639px) {
  .ce-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
}

/* Desktop: vertical gold dividers between stat items */
@media (min-width: 640px) {
  .ce-stat + .ce-stat {
    border-left: 1px solid rgba(255, 215, 0, 0.15);
    padding-left: 3rem;
  }
}


/* =============================================================================
   6. TESTIMONIALS SLIDER
   ============================================================================= */

.ce-section-heading {
  font-size: clamp(var(--ce-text-2xl), 4vw, var(--ce-text-4xl));
  margin-block-end: 2.5rem;
}

.ce-testimonials .ce-section-heading {
  margin-block-end: 2rem;
}

/* Slider container — clips to one slide at a time */
.ce-testimonial-slider {
  position: relative;
  overflow: hidden;
  min-height: 260px; /* taller to accommodate decorative quote mark */
}

.ce-testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  pointer-events: none;
}

.ce-testimonial-slide[aria-hidden="false"] {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.ce-testimonial__quote {
  position: relative;
  margin: 0;
  padding: 2rem 2rem 1.5rem;
  background-color: var(--ce-bg-card);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius-lg);
  border-left: 4px solid var(--ce-gold);
}

/* Large decorative opening quote — sits behind the text as a watermark */
.ce-testimonial__quote::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--ce-gold);
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}

.ce-testimonial__quote p {
  font-size: clamp(var(--ce-text-base), 2vw, var(--ce-text-lg));
  font-style: italic;
  color: var(--ce-text-muted);
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.ce-testimonial__attribution {
  display: block;
}

.ce-testimonial__attribution cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.ce-testimonial__attribution strong {
  color: var(--ce-gold);
  font-family: var(--ce-font-heading);
  font-size: var(--ce-text-sm);
}

.ce-testimonial__attribution span {
  color: var(--ce-text-faint);
  font-size: var(--ce-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Dot navigation */
.ce-testimonial-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0; /* buttons are 44px wide — no extra gap needed */
  margin-top: 1.75rem;
}

/* WCAG 2.5.5: 44×44px transparent button; visual indicator via ::after */
.ce-testimonial-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 10px visual dot — styled separately from the touch target */
.ce-testimonial-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ce-border);
  background-color: transparent;
  display: block;
  flex-shrink: 0;
  transition:
    background-color var(--ce-transition),
    border-color var(--ce-transition),
    transform var(--ce-transition);
}

.ce-testimonial-dot:hover::after,
.ce-testimonial-dot:focus-visible::after {
  border-color: var(--ce-gold);
}

.ce-testimonial-dot:focus-visible {
  outline: 2px solid var(--ce-gold);
  outline-offset: 2px;
}

.ce-testimonial-dot.is-active::after {
  background-color: var(--ce-gold);
  border-color: var(--ce-gold);
  transform: scale(1.25);
}


/* =============================================================================
   7. NEWSLETTER
   ============================================================================= */

.ce-newsletter__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  border: 1px solid var(--ce-border-gold);
  border-radius: var(--ce-radius-lg);
  padding: 2.5rem 1.5rem;
  background-color: var(--ce-bg-card);
}

.ce-newsletter__heading {
  font-size: clamp(var(--ce-text-2xl), 4vw, var(--ce-text-3xl));
  margin-bottom: 0.5rem;
}

.ce-newsletter__sub {
  color: var(--ce-text-muted);
  font-size: var(--ce-text-base);
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: 0;
}

.ce-newsletter__label {
  /* Visually hidden but accessible */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ce-newsletter__field-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

.ce-newsletter__input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0.75rem 1rem;
  background-color: var(--ce-bg-raised);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
  color: var(--ce-text);
  font-family: var(--ce-font-body);
  font-size: var(--ce-text-base);
  transition: border-color var(--ce-transition);
}

.ce-newsletter__input::placeholder {
  color: var(--ce-text-faint);
}

.ce-newsletter__input:focus {
  outline: 2px solid var(--ce-gold);
  outline-offset: 2px;
  border-color: var(--ce-gold);
}

.ce-newsletter__btn {
  white-space: nowrap;
}

.ce-newsletter__disclaimer {
  font-size: var(--ce-text-xs);
  color: var(--ce-text-faint);
  margin: 0;
}

@media (min-width: 768px) {
  .ce-newsletter__inner {
    padding: 3rem 2.5rem;
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    max-width: 900px;
  }

  .ce-newsletter__text {
    flex: 1;
  }

  .ce-newsletter__field-group {
    margin-inline: 0;
  }

  .ce-newsletter__sub {
    margin-inline: 0;
  }
}


/* =============================================================================
   8. SPONSOR MARQUEE
   ============================================================================= */

.ce-sponsors .ce-section-heading {
  margin-block-end: 0.75rem;
}

.ce-sponsors__sub {
  color: var(--ce-text-muted);
  font-size: var(--ce-text-base);
  max-width: 52ch;
  margin-inline: auto;
  margin-block-end: 2.5rem;
}

.ce-sponsors__cta-wrap {
  margin-top: 2.5rem;
}

/* Marquee overflow container */
.ce-marquee {
  overflow: hidden;
  width: 100%;
  margin-block: 1rem;
  /* Fade edges to transparent so logos appear to scroll in from nowhere */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}

.ce-marquee__track {
  display: flex;
  align-items: center;
  gap: 3.25rem; /* ~52px */
  width: max-content;
  animation: ce-marquee 50s linear infinite;
}

/* Only pause on actual hover devices — prevents accidental pause on touch scroll */
@media (hover: hover) {
  .ce-marquee:hover .ce-marquee__track {
    animation-play-state: paused;
  }
}

@keyframes ce-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* -50% because track is doubled */
}

/* Sponsor logo badge */
.ce-sponsor-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease;
}

.ce-sponsor-badge img {
  max-width: 120px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.ce-sponsor-badge:hover {
  background: rgba(255, 255, 255, 0.95);
}

.ce-sponsor-badge:hover img {
  filter: none;
  opacity: 1;
}

/* Small logos: Eagle Homes, Qantas */
.ce-sponsor--sm img {
  max-width: 100px;
}

/* Large logos: Aussizz Group, Victory Group */
.ce-sponsor--lg img {
  max-width: 122px;
}

/* Wide logos: ECA, Castle Group, Bathla */
.ce-sponsor--wide img {
  max-width: 160px;
}

/* Extra-large logos: Air Pacific */
.ce-sponsor--xl img {
  max-width: 180px;
}

/* Extra-extra-large logos: CommBank */
.ce-sponsor--xxl img {
  max-width: 270px;
}

/* Round logos — preserve aspect with contain */
.ce-sponsor--round img {
  max-width: none;
  object-fit: contain;
}

/* Light/gold logos: boost to white in default state; darken on hover for
   visibility against the white pill background */
.ce-sponsor--light img {
  filter: brightness(2) grayscale(1);
}

.ce-sponsor--light:hover img {
  filter: brightness(0.7) saturate(1.4);
}

/* Mobile: proportionally smaller logos */
@media (max-width: 767px) {
  .ce-sponsor-badge {
    padding: 8px 12px;
  }

  .ce-sponsor-badge img {
    max-width: 90px;
  }

  .ce-sponsor--sm img {
    max-width: 75px;
  }

  .ce-sponsor--lg img {
    max-width: 92px;
  }

  .ce-sponsor--wide img {
    max-width: 120px;
  }

  .ce-sponsor--xl img {
    max-width: 135px;
  }

  .ce-sponsor--xxl img {
    max-width: 200px;
  }

  .ce-sponsor--round img {
    max-width: none;
    object-fit: contain;
  }
}


/* =============================================================================
   9. SCROLL FADE-UP ANIMATIONS
   ============================================================================= */

.ce-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.ce-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays via data-delay attribute (set inline in HTML) */
.ce-fade-up[data-delay="100"] { transition-delay: 100ms; }
.ce-fade-up[data-delay="200"] { transition-delay: 200ms; }
.ce-fade-up[data-delay="300"] { transition-delay: 300ms; }
.ce-fade-up[data-delay="400"] { transition-delay: 400ms; }


/* =============================================================================
   10. SHARED SECTION HEADINGS
   ============================================================================= */

/* Section eyebrow — gold uppercase label above section headings */
.ce-section-eyebrow {
  font-family: var(--ce-font-body);
  font-size: var(--ce-text-sm);
  font-weight: 600;
  color: var(--ce-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 0.75rem;
}

/* Generic section sub-heading */
.ce-section-sub {
  font-size: var(--ce-text-base);
  color: var(--ce-text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-block-start: 0.75rem;
}


/* =============================================================================
   11. REDUCED MOTION
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {

  /* Disable all animations and transitions */
  .ce-hero__chevron {
    animation: none;
  }

  .ce-marquee__track {
    animation: none;
  }

  /* Show only first hero slide, no animation */
  .ce-hero__slide {
    animation: none;
    opacity: 0;
  }

  .ce-hero__slide:nth-child(1) {
    animation: none;
    opacity: 1;
  }

  .ce-fade-up,
  .ce-stats {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ce-testimonial-slide {
    transition: none;
  }

  .ce-testimonial-dot::after {
    transition: none;
  }

  .ce-btn,
  .ce-card {
    transition: none;
  }

  .ce-btn--magenta,
  .ce-featured-event .ce-btn--magenta {
    animation: none;
  }

  .ce-featured-event__poster-img {
    animation: none;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.12), 0 8px 32px rgba(0, 0, 0, 0.5);
  }
}
