/* ==========================================================================
   customer.css — JJ Jenkins specific styling
   Everything here is expected to change independently of the framework:
   artwork / photography URLs, the event campaign pill, brand-logo treatment.
   Loaded last so it can override main.css and components.css.
   Image paths are relative to this file (css/ → ../images/).
   ========================================================================== */

/* 1. Artwork & photography ------------------------------------------------ */
.hero__bg {
  background-position: center 50%;
  background-size: cover;
  background-repeat: no-repeat;
}

.exhibition__background {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.process__grid::before,
.process__grid::after {
  background: url("../images/decor/process-orbit-art.svg") center / 100% 100%
    no-repeat;
}

.stat-card--1 {
  background-image: url("../images/decor/stat-frame-1.svg");
}

.stat-card--2 {
  background-image: url("../images/decor/stat-frame-2.svg");
}

.stat-card--3 {
  background-image: url("../images/decor/stat-frame-3.svg");
}

.stat-card--4 {
  background-image: url("../images/decor/stat-frame-4.svg");
}

/* 2. Brand marks ---------------------------------------------------------- */
/* Footer uses the dark-on-transparent logo recoloured to white */
.site-footer__logo {
  filter: brightness(0) invert(1);
}

/* 3. Campaign: COMPAMED event pill (hero) --------------------------------- */
.event-pill {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 1280px;
  max-width: 100%;
  min-height: 58px;
  height: 58px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 90px;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.14),
    rgba(166, 193, 228, 0.1)
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 5px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s,
    border-color 0.25s;
}

.event-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
}

.event-pill:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.event-pill__marquee {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
}

.event-pill__track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: event-pill-scroll 28s linear infinite;
  will-change: transform;
}

.event-pill:hover .event-pill__track,
.event-pill:focus-within .event-pill__track {
  animation-play-state: paused;
}

.event-pill__group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.event-pill__item,
.event-pill__group > span,
.event-pill > span {
  display: inline-flex;
  align-items: center;
  font: 400 18px/1.4 var(--font-mono);
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Orange separator dot between items */
.event-pill__group > span + span::before,
.event-pill > span + span::before,
.event-pill__dot {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  min-width: 6px;
  margin: 0 16px;
  border-radius: 50%;
  background: #ff783d;
  vertical-align: middle;
}

/* Orange separator dot after the last item of a group for seamless looping */
.event-pill__group::after {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  min-width: 6px;
  margin: 0 16px;
  border-radius: 50%;
  background: #ff783d;
  vertical-align: middle;
}

@keyframes event-pill-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-pill__track {
    animation: none;
  }
}

/* 1440px reference frame: 80px side inset, 646px local hero top.
   Shorter screens keep the pill inside the hero instead of clipping it. */
@media (min-width: 1001px) {
  .hero__ticker {
    position: absolute;
    top: min(646px, calc(100% - 108px));
    left: 50%;
    width: min(1280px, 100%);
    transform: translateX(-50%);
    margin-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 1000px) {
  .event-pill {
    min-height: 52px;
    height: 52px;
    padding: 0 16px;
    border-radius: 90px;
    overflow: hidden;
  }

  .event-pill__item,
  .event-pill__group > span,
  .event-pill > span {
    font-size: 16px;
  }

  .event-pill__dot,
  .event-pill__group > span + span::before,
  .event-pill__group::after,
  .event-pill > span + span::before {
    margin: 0 12px;
    width: 5px;
    height: 5px;
    min-width: 5px;
  }
}

@media (max-width: 640px) {
  .event-pill {
    min-height: 48px;
    height: 48px;
    padding: 0 14px;
    border-radius: 90px;
    overflow: hidden;
  }

  .event-pill__item,
  .event-pill__group > span,
  .event-pill > span {
    font-size: 14px;
  }

  .event-pill__dot,
  .event-pill__group > span + span::before,
  .event-pill__group::after,
  .event-pill > span + span::before {
    margin: 0 10px;
    width: 4px;
    height: 4px;
    min-width: 4px;
  }
}

/* Shared section spacing, including responsive layouts. */
:root { --section-padding-block: 40px; }
.jj-section,
.hero__inner,
.exhibition__inner,
.site-footer {
  padding-top: var(--section-padding-block);
  padding-bottom: var(--section-padding-block);
}
