/* ============================================================
   JSD PETA, base layer.

   Everything the map needs that normally comes from the main
   site's style.css: the fonts, the design tokens, a small reset,
   the animated gradient background, and the header bar.

   If you are dropping the map into a site that already has the
   JSD design system loaded, you can delete this file and keep
   only peta.css.
   ============================================================ */

@font-face {
  font-family: "Neue Haas";
  src: url("/assets/fonts/NeueHaas-Roman.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas";
  src: url("/assets/fonts/NeueHaas-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas";
  src: url("/assets/fonts/NeueHaas-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Momo Trust";
  src: url("/assets/fonts/MomoTrustDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --offwhite: #f6f2e3;
  --card: #101010;

  --font-sans: "Neue Haas", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Momo Trust", "Neue Haas", sans-serif;

  --ease-bounce: cubic-bezier(0.8, 1.2, 0.6, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-xl: 36px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: #fb8a35; }
body {
  font-family: var(--font-sans);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
img { display: block; }

/* ============================================================
   ANIMATED GRADIENT BACKGROUND
   Seamless loop: gradient, flipped, gradient, flipped. The strip
   slides one full period (two images) and repeats.
   ============================================================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #fb8a35;
}
.bg__strip {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 400lvh;
  display: flex;
  flex-direction: column;
  animation: bg-drift 46s linear infinite;
  will-change: transform;
}
.bg__strip img {
  width: 100%;
  height: 25%;
  object-fit: cover;
  flex: none;
}
.bg__flip { transform: scaleY(-1); }
@keyframes bg-drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 14px; left: 16px; right: 16px;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.header-logo img { height: clamp(26px, 3vw, 36px); width: auto; }
.header-logo { transition: opacity 0.3s; }
.header-logo:hover { opacity: 0.8; }

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* pill nav: white bar, black active pill */
.pill-nav {
  position: relative;
  background: var(--white);
  border-radius: 999px;
  padding: 5px 9px;
}
.pill-nav ul {
  position: relative;
  display: flex;
  /* matches the main site: without wrapping the row cannot break, so any nav
     longer than the header forces the whole page to scroll sideways */
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  z-index: 2;
}
.pill-nav li {
  position: relative;
  border-radius: 999px;
  color: rgba(10, 10, 10, 0.55);
  transition: color 0.3s;
}
.pill-nav li.is-active { color: var(--white); }
.pill-nav li:not(.is-active):hover { color: var(--black); }
.pill-nav a {
  display: block;
  padding: 6px 18px;
  font-size: 14.5px;
  font-weight: 500;
}

/* language toggle */
.lang-toggle {
  display: flex;
  gap: 2px;
  background: var(--white);
  border-radius: 999px;
  padding: 4px;
  cursor: pointer;
}
.lang-toggle button {
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(10, 10, 10, 0.5);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.lang-toggle button.is-on {
  background: var(--black);
  color: var(--white);
}

/* mobile header: single Tickets button, language moves into the page */
.header-ticket-btn {
  display: none;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 9px 20px;
  white-space: nowrap;
}
/* mobile nav burger, injected by peta-app.js */
.nav-burger {
  display: none;
  place-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--black);
  transition: transform 0.25s, opacity 0.2s;
}
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 719px) {
  .site-header { align-items: center; }
  .header-right { flex-direction: row; align-items: center; }
  .header-top-row { position: static; }
  .header-top-row .lang-toggle { display: none; }
  /* logo lockup is wide; trim it so logo + Tickets + burger fit one row */
  .header-logo img { height: 20px; }
  .header-ticket-btn { display: inline-flex; align-items: center; padding: 8px 14px; font-size: 13px; }
  .header-right { gap: 8px; }
  .nav-burger { display: grid; width: 38px; height: 38px; }

  /* nav becomes a dropdown panel instead of being hidden outright */
  .site-header .pill-nav {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(230px, calc(100vw - 24px));
    padding: 8px;
    border-radius: var(--radius-md);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .22s, transform .22s, visibility .22s;
    z-index: 60;
  }
  body.nav-open .site-header .pill-nav { opacity: 1; visibility: visible; transform: none; }
  .site-header .pill-nav ul { flex-direction: column; gap: 1px; }
  .site-header .pill-nav a { padding: 10px 14px; font-size: 15px; }
  body.peta-page .site-header .pill-nav li.is-active { background: var(--black); color: var(--white); }

  /* language switch, parked at the foot of the open menu.
     Overrides the blanket .header-top-row .lang-toggle hide above. */
  .site-header .pill-nav .lang-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 6px 4px 2px;
    padding: 8px 0 2px;
    background: none;
    border-radius: 0;
    border-top: 1px solid rgba(10, 10, 10, 0.12);
  }
  .site-header .pill-nav .lang-toggle button { padding: 7px 18px; font-size: 13px; }
}

/* very narrow phones: Tickets is one tap away inside the menu, so drop the
   separate pill rather than pushing the burger off the edge */
@media (max-width: 359px) {
  .header-ticket-btn { display: none; }
}
