/* ==========================================================================
   Partizanen — single page site
   ========================================================================== */

:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-brand: #99cc72;
  --color-brand-dark: #82b85d;
  --font-heading: "Roboto Slab", serif;
  --font-body: "Roboto", sans-serif;
  --max-width: 1240px;
  --gutter: clamp(20px, 5vw, 50px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(16px, 1vw + 0.75rem, 19px);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2, .h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-brand);
  line-height: 1.1;
  margin: 0 0 24px;
}

h1 {
  font-size: clamp(32px, 5vw, 50px);
}

h2, .h2 {
  font-size: clamp(28px, 4vw, 42px);
}

p {
  margin: 0 0 20px;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-brand);
  color: var(--color-black);
  padding: 12px 20px;
  z-index: 1000;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-bg: var(--color-brand);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--btn-bg);
  color: var(--color-black);
  border: 5px solid var(--color-white);
  border-radius: 50px;
  /* Scales down in step with the font-size clamp below, so the button
     doesn't feel oversized relative to its label on small screens. */
  padding: clamp(10px, 2.5vw, 18px) clamp(18px, 4.5vw, 31px);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 22px);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.btn:hover .btn__icon,
.btn:focus-visible .btn__icon {
  transform: translateX(4px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid var(--color-brand-dark);
  outline-offset: 3px;
}

/* Pulsating "heartbeat" effect for the hero ticket button */
.btn--pulse {
  animation: heartbeat 2.6s ease-in-out infinite;
}

.btn--pulse:hover,
.btn--pulse:focus-visible {
  animation-play-state: paused;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.06);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.04);
  }
  60% {
    transform: scale(1);
  }
}

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  height: max(60vw, 520px);
  max-height: 1000px;
  overflow: hidden;
  background: var(--color-black);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* Keep the left half of the photo (the main subject) visible at every
     width instead of cropping from the center. */
  background-position: left 30%;
  will-change: transform;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 55%),
    radial-gradient(ellipse 420px 320px at calc(100% - 120px) 110px, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 70%);
}

.hero__cta {
  position: absolute;
  top: clamp(20px, 4vw, 80px);
  right: clamp(20px, 4vw, 80px);
  z-index: 3;
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* Pinned to the viewport (instead of scrolling with the hero) until the
   hero has scrolled roughly a third out of view — see initHeroCtaPin in
   script.js. Offsets match .hero__cta exactly so there's no visual jump
   when toggling between the two. */
.hero__cta--pinned {
  position: fixed;
}

/* Applied just before unpinning (and while still pinned) so the button
   fades out in place instead of abruptly jumping to its scrolled-past
   position; removed a moment after pinning to fade it back in. */
.hero__cta--hidden {
  opacity: 0;
  pointer-events: none;
}

.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  /* Left offset grows with the viewport so the content stays roughly
     aligned with the subject in the photo on large screens, but never
     pushes too far from the edge. */
  padding: 0 var(--gutter) 90px clamp(20px, 9vw, 220px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 640px;
  --logo-width: min(606px, 70vw);
}

/* Sizes to its widest child (the logo, or the tagline if it ever grows
   wider) and centers the other one within that — stays correct at every
   viewport width without needing to hard-code matching widths. */
.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.hero__logo {
  width: var(--logo-width);
  height: auto;
}

.hero__tagline {
  margin: 20px 0 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(14px, 4.2vw, 50px);
  color: var(--color-brand);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

@media (min-width: 1025px) {
  .hero__content {
    max-width: 900px;
    --logo-width: clamp(606px, 42vw, 820px);
  }

  .hero__tagline {
    font-size: clamp(36px, 3.2vw, 50px);
  }
}

@media (max-width: 767px) {
  .hero__content {
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0 20px 50px;
    --logo-width: min(420px, 80vw);
  }

  .hero__tagline {
    font-size: clamp(14px, 6vw, 32px);
  }
}

/* ==========================================================================
   Intro
   ========================================================================== */

.intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(10px, 5vw, 100px) var(--gutter) clamp(40px, 7.5vw, 150px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 7vw, 150px);
}

.intro__media {
  flex: 1 1 420px;
  max-width: 560px;
  overflow: hidden;
  border-radius: 4px;
}

.intro__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  will-change: transform;
}

.intro__content {
  flex: 1 1 420px;
  max-width: 560px;
}

.intro__content .btn,
.feature__content .btn {
  margin-top: 20px;
}

@media (min-width: 1025px) {
  .intro__media {
    flex: 1.4 1 620px;
    max-width: 720px;
  }

  .intro__content {
    flex: 1 1 320px;
    max-width: 420px;
  }
}

/* ==========================================================================
   Action ticker (marquee)
   ========================================================================== */

.ticker {
  background: var(--color-brand);
  color: var(--color-black);
  overflow: hidden;
  padding: 25px 0;
  position: relative;
  transform: rotate(-1deg);
  z-index: 2;
  width: 102%;
}

.ticker__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}

.ticker__item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(20px, 3.5vw, 42px);
  padding-right: 0;
}

/* ==========================================================================
   Feature section
   ========================================================================== */

.feature {
  position: relative;
  overflow: hidden;
  padding: clamp(10px, 7.5vw, 150px) var(--gutter) clamp(40px, 10vw, 250px);
}

.feature__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0.25;
  will-change: transform;
}

.feature__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--color-black) 0%, rgba(0, 0, 0, 0) 50%);
}

.feature__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-black);
  padding: 0 var(--gutter) clamp(20px, 4vw, 60px);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 0 0 60px;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.footer__col {
  flex: 1 1 220px;
}

.footer__col-title {
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}

.footer__col p {
  margin: 0;
  color: var(--color-white);
}

.footer__col--logo {
  flex: 10 10 300px;
}

.footer__col--logo img {
  width: min(380px, 100%);
  height: auto;
}

.footer__col--partners {
  flex: 0 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  margin-left: auto;
}


@media (max-width: 1320px) {
  .footer__col--logo {
    min-width:100%;
  }

  .footer__col--logo img {
    margin-inline: auto;
  }

  .footer__row {
    justify-content: center;
    text-align: center;
  }

  .footer__col--partners {
    align-items: center;
    margin-left: 0;
  }
}
