/* All Star Sports Travel - landing + holding pages.
   Tokens, fonts and easing are taken from the existing site (assets/cookieSettings-*.css).
   Independent of the React bundle. */

:root {
  --ocean-ink: #02080d;
  --ocean-deep: #07131d;
  --foam: #f4f4ef;
  --mist: #c6d0d0;
  --aqua: #2ed6e0;
  --aqua-line: #2ed6e08c;
  --font-display: "Bebas Neue", "Impact", "Arial Narrow", sans-serif;
  --font-ui: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 4.5vw, 64px);
  --header-h: 96px;
  --footer-h: 52px;
  --pill-w: 252px; /* both event buttons share this width */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ocean-ink);
  color: var(--foam);
  font-family: var(--font-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 4px; }

/* ---------- Header ---------- */
.lp-header {
  position: absolute; z-index: 20; inset: 0 0 auto 0;
  height: var(--header-h); padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  pointer-events: none;
}
.lp-header a { pointer-events: auto; }
.lp-logo img { height: 74px; width: auto; }
.lp-header__label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--mist);
}

/* ---------- Footer ---------- */
.lp-footer {
  height: var(--footer-h); padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--ocean-ink); border-top: 1px solid rgba(198, 208, 208, 0.14);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mist);
}
.lp-footer a { transition: color 0.24s; }
.lp-footer a:hover { color: var(--aqua); }

/* ---------- Landing: two event panels ---------- */
.lp-panels {
  display: flex; height: calc(100svh - var(--footer-h)); min-height: 560px;
  background: var(--ocean-ink);
}
.panel {
  position: relative; flex: 1 1 50%; min-width: 0; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end;
  transition: flex-grow 0.8s var(--ease);
  animation: rise 1s var(--ease) both;
}
.panel + .panel { border-left: 1px solid var(--aqua-line); animation-delay: 0.12s; }
.panel__img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.001);
  transition: transform 1.4s var(--ease);
  will-change: transform;
}
.panel--hayman .panel__img { object-position: 74% 50%; }
.panel--bali7 .panel__img { object-position: 47% 50%; }
.panel__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(2, 8, 13, 0.74) 0%, rgba(2, 8, 13, 0.54) 24%, rgba(2, 8, 13, 0.28) 44%, rgba(2, 8, 13, 0.07) 62%, rgba(2, 8, 13, 0) 76%),
    linear-gradient(to bottom, rgba(2, 8, 13, 0.32) 0%, rgba(2, 8, 13, 0) 18%);
  transition: opacity 0.6s;
}
/* Busier photo: a touch more overlay so the type stays crisp */
.panel--bali7 .panel__shade {
  background:
    linear-gradient(to top, rgba(2, 8, 13, 0.86) 0%, rgba(2, 8, 13, 0.68) 26%, rgba(2, 8, 13, 0.46) 50%, rgba(2, 8, 13, 0.2) 76%, rgba(2, 8, 13, 0.1) 100%),
    linear-gradient(to bottom, rgba(2, 8, 13, 0.34) 0%, rgba(2, 8, 13, 0) 18%);
}
.panel__content {
  width: 100%; padding: 0 var(--pad) clamp(36px, 6vh, 72px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem;
}
.kicker {
  margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--aqua);
  text-shadow: 0 1px 12px rgba(2, 8, 13, 0.9), 0 0 3px rgba(2, 8, 13, 0.8);
}
.title {
  margin: 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(54px, 7.4vw, 132px); line-height: 0.9; letter-spacing: 0.005em;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(2, 8, 13, 0.6), 0 1px 3px rgba(2, 8, 13, 0.45);
}
.support {
  margin: 0; max-width: 34ch; font-size: clamp(15px, 1.15vw, 17px);
  color: var(--foam); text-shadow: 0 1px 14px rgba(2, 8, 13, 0.85), 0 0 3px rgba(2, 8, 13, 0.6);
}
.cta {
  margin: 0.6rem 0 0; display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
}
.panel--hayman { --btn: #2ed6e0; }
.panel--bali7 { --btn: #dcf85f; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  width: var(--pill-w); flex: none; white-space: nowrap; padding: 0.85em 0;
  border: 2px solid var(--btn); color: var(--btn); font-weight: 700;
  background: rgb(0 0 0 / 15%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--btn) 45%, transparent);
  transition: background 0.24s, color 0.24s, box-shadow 0.24s;
}
.arrow {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--btn); border: 0; color: #000; font-size: 20px; font-weight: 700; letter-spacing: 0;
  box-shadow: 0 0 14px color-mix(in srgb, var(--btn) 55%, transparent);
  transition: transform 0.5s var(--ease), box-shadow 0.24s;
}
.panel:hover .pill, .panel:focus-visible .pill { background: var(--btn); color: #000; }
.panel:hover .arrow, .panel:focus-visible .arrow {
  transform: translate(4px, -4px); box-shadow: 0 0 22px color-mix(in srgb, var(--btn) 75%, transparent);
}
.panel:focus-visible { outline-offset: -4px; }

@media (hover: hover) and (min-width: 900px) {
  .panel:hover, .panel:focus-visible { flex-grow: 1.22; }
  .panel:hover .panel__img, .panel:focus-visible .panel__img { transform: scale(1.05); }
  .panel:hover .panel__shade, .panel:focus-visible .panel__shade { opacity: 0.85; }
}

/* Staggered content entrance */
.panel__content > * { animation: rise 1s var(--ease) both; }
.panel__content > :nth-child(1) { animation-delay: 0.25s; }
.panel__content > :nth-child(2) { animation-delay: 0.35s; }
.panel__content > :nth-child(3) { animation-delay: 0.45s; }
.panel__content > :nth-child(4) { animation-delay: 0.55s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Hayman holding page ---------- */
.hold {
  position: relative; min-height: calc(100svh - var(--footer-h)); isolation: isolate; overflow: hidden;
  display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 24px) var(--pad) 72px;
}
.hold__img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  object-position: 62% 50%; will-change: transform;
  animation: drift 40s ease-in-out infinite alternate;
}
.hold__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(2, 8, 13, 0.68) 0%, rgba(2, 8, 13, 0.34) 55%, rgba(2, 8, 13, 0.6) 100%),
    linear-gradient(to top, rgba(2, 8, 13, 0.85) 0%, rgba(2, 8, 13, 0) 40%),
    linear-gradient(to bottom, rgba(2, 8, 13, 0.6) 0%, rgba(2, 8, 13, 0) 24%);
}
.hold__inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; max-width: 1100px; }
.hold__inner > * { animation: rise 1.1s var(--ease) both; }
.hold__inner > :nth-child(1) { animation-delay: 0.15s; }
.hold__inner > :nth-child(2) { animation-delay: 0.28s; }
.hold__inner > :nth-child(3) { animation-delay: 0.42s; }
.hold__inner > :nth-child(4) { animation-delay: 0.58s; }
.hold__rule { width: 72px; height: 1px; background: var(--aqua); border: 0; margin: 0.4rem 0; }
.hold__title {
  margin: 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(60px, 11vw, 190px); line-height: 0.88; text-wrap: balance;
  text-shadow: 0 2px 40px rgba(2, 8, 13, 0.55);
}
.hold__soon {
  margin: 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 4.2vw, 64px); letter-spacing: 0.06em; color: var(--aqua);
}
.hold__back {
  margin-top: 1.4rem; display: inline-flex; align-items: center; gap: 0.8rem; padding: 0.85em 1.4em;
  border: 1px solid var(--aqua-line); font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--foam);
  background: rgba(2, 8, 13, 0.5);
  transition: background 0.24s, color 0.24s, border-color 0.24s;
}
.hold__back:hover { background: var(--aqua); color: var(--ocean-ink); border-color: var(--aqua); }
@keyframes drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.09) translate3d(-1.2%, -0.8%, 0); } }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 899px) {
  :root { --header-h: 88px; }
  .lp-logo img { height: 60px; }
  .lp-panels { flex-direction: column; height: auto; min-height: 0; }
  .panel { flex: none; min-height: max(62svh, 540px); }
  .panel + .panel { border-left: 0; border-top: 1px solid var(--aqua-line); }
  .panel__content { padding-bottom: 32px; gap: 0.75rem; }
  .title { font-size: clamp(52px, 15vw, 96px); }
  .lp-header { background: linear-gradient(to bottom, rgba(2, 8, 13, 0.7), rgba(2, 8, 13, 0)); }
  .lp-header__label { display: none; }
}
@media (max-width: 480px) {
  .cta { gap: 0.75rem; font-size: 12px; }
  :root { --pill-w: 212px; }
  .pill { padding: 0.8em 0; }
  .arrow { width: 42px; height: 42px; }
  .lp-footer { flex-direction: column; justify-content: center; gap: 2px; height: auto; min-height: var(--footer-h); padding-block: 10px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .panel:hover .panel__img { transform: none; }
}
