/* =========================================================
   noobs.gg - styles.css
   Mobile-first. League Spartan. No framework.
   ========================================================= */

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --pink:   #FF4F98;
  --navy:   #252A5C;
  --plum:   #2B1638;
  --cream:  #FFF4E8;
  --green:  #5DBB63;
  --font:   'League Spartan', sans-serif;
  --max-w:  1100px;
  --px:     clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Base ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

/* ── Type helpers ───────────────────────────────────────── */

/* Section label: SemiBold 600, caps, wide tracking */
.label {
  display: inline-block;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.6rem;
}

.label--light { color: rgba(255, 255, 255, 0.5); }

/* Section headline: ExtraBold 800 */
.section-title {
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 2.25rem;
}

.section-title--light { color: var(--cream); }

/* ── Logo ───────────────────────────────────────────────── */
.logo {
  display: inline-block;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  color: var(--navy);
}

/* Light variant (dark backgrounds) */
.logo--light { color: var(--cream); }

/* Hero variant: dominant wordmark */
.logo--hero {
  font-size: clamp(3.5rem, 10vw, 6rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: calc(0.9rem + 2px) 1.875rem calc(0.9rem - 2px) calc(1.875rem + 0.06em);
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, color 0.14s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0);    }

.btn--primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 4px 22px rgba(255, 79, 152, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 8px 30px rgba(255, 79, 152, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--pink);
  border-color: var(--pink);
  font-size: 0.775rem;
  padding: calc(0.6rem + 2px) 1.25rem calc(0.6rem - 2px) calc(1.25rem + 0.06em);
}

.btn--outline:hover {
  background: var(--pink);
  color: #fff;
}

.btn__icon {
  flex-shrink: 0;
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem var(--px) 4.5rem;
  position: relative;
  overflow: hidden;
}

/* Soft pink bloom behind Nubi */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 55% at 50% 90%,
    rgba(255, 79, 152, 0.1) 0%,
    transparent 68%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 440px;
}

.hero__mascot {
  width: clamp(260px, 55vw, 360px);
  margin: 0.25rem auto;
  animation: nubi-float 3s ease-in-out infinite;
}

@keyframes nubi-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── Nubi interactive layers ─────────────────────────────── */
.nubi__layers {
  position: relative;
  width: 100%;
}

.nubi-body {
  display: block;
  width: 100%;
  height: auto;
}

.nubi__eye-tracker {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nubi-eye,
.nubi-eyes-happy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Transform-origin at each eye centre (% of full image) */
.nubi-eye--left  { transform-origin: 34.8% 55.1%; }
.nubi-eye--right { transform-origin: 62.1% 55.1%; }

.nubi-eyes-happy { opacity: 0; }

@keyframes nubi-bounce {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(-14px); }
  42%  { transform: translateY(0); }
  58%  { transform: translateY(-6px); }
  74%  { transform: translateY(0); }
  88%  { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

.nubi--bouncing { animation: nubi-bounce 1.2s ease forwards !important; }

.hero__tagline {
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
  max-width: 100%;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: stretch;
}

.hero__actions .btn {
  flex: 1;
  justify-content: center;
}

/* ── VIDEOS ─────────────────────────────────────────────── */
.videos {
  background: var(--cream);
  padding: 5rem 0;
}

/* Carousel: horizontal scroll, snapping, no scrollbar */
.videos__carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  /* align with container padding */
  padding-inline: var(--px);
  margin-inline: calc(-1 * var(--px));
}

.videos__carousel::-webkit-scrollbar { display: none; }

/* ── Video card ─────────────────────────────────────────── */
.video-card {
  flex: 0 0 70vw;          /* mobile: 70% width so next card peeks */
  max-width: 70vw;         /* prevent stretching on narrow viewports */
  scroll-snap-align: start;
  background: var(--cream);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(37, 42, 92, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(37, 42, 92, 0.18);
}

/* 9:16 cover frame */
.video-card__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: var(--plum);
}

.video-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Plum fallback shown when image is missing */
.video-card__cover--missing {
  background: var(--plum);
}

.video-card__cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem 1rem 1.25rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  text-align: left;
  line-height: 1.3;
}

/* Round pink play button */
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-card__play svg {
  background: var(--pink);
  color: #fff;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  padding: 10px;
  box-shadow: 0 4px 18px rgba(255, 79, 152, 0.45);
}

/* Card body */
.video-card__body {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.video-card__label {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.video-card__headline {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.video-card__cta {
  display: inline-block;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pink);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  align-self: flex-start;
  transition: box-shadow 0.14s ease, transform 0.14s ease;
}

.video-card:hover .video-card__cta {
  box-shadow: 0 4px 16px rgba(255, 79, 152, 0.4);
}

/* Desktop: one row, equal-width cards filling the section width */
@media (min-width: 700px) {
  .videos__carousel {
    overflow-x: visible;
    flex-wrap: nowrap;
    scroll-snap-type: none;
    padding-inline: 0;
    margin-inline: 0;
  }

  .video-card {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
    scroll-snap-align: none;
  }
}

/* ── ABOUT ──────────────────────────────────────────────── */
.about {
  background: var(--plum);
  padding: 5.5rem 0 280px; /* bottom padding for mobile crowd */
  position: relative;
  overflow: hidden;
  z-index: 0; /* own stacking context so crowd sits behind text */
}

/* Mobile: crowd 130vw wide, anchored at bottom, fades to transparent upward */
.about::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 130vw;
  height: 320px;
  background-image: url('nubi-alts/nubi-crowd.png');
  background-size: cover;
  background-position: center center;
  opacity: 0.9;
  mask-image: linear-gradient(to bottom, transparent 0%, black 60%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 60%);
  pointer-events: none;
  z-index: 0;
}

/* Keep text above the crowd background */
.about .container {
  position: relative;
  z-index: 1;
}

.about__layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about__text {
  max-width: 620px;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.about__body p {
  font-weight: 500;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  line-height: 1.7;
  color: rgba(255, 244, 232, 0.82);
}

.about__cta-link {
  color: var(--pink);
  text-decoration: none;
  transition: opacity 0.14s ease;
}

.about__cta-link:hover { opacity: 0.75; }

.about__nubi {
  width: clamp(180px, 40vw, 280px);
  height: auto;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about { padding-bottom: 5.5rem; }

  /* Desktop: crowd fills right half, fades towards centre */
  .about::after {
    top: 50%;
    left: auto;
    bottom: auto;
    right: 0;
    transform: translateY(-50%);
    width: 55%;
    height: 120%;
    background-position: center center;
    mask-image: linear-gradient(to right, transparent 0%, black 45%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 45%);
  }

  .about__layout {
    flex-direction: row;
    align-items: flex-end;
    gap: 4rem;
  }

  .about__text { flex: 1; }

  .about__mascot { flex-shrink: 0; }

  .about__nubi {
    width: clamp(200px, 20vw, 300px);
    margin: 0;
  }
}

/* ── CONTACT ────────────────────────────────────────────── */
.contact {
  background: var(--cream);
  padding: 5.5rem 0;
  scroll-margin-top: 3rem;
}

.contact__layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 420px;
}

.contact__item {
  position: relative;
  padding: 1.5rem 1.375rem;
  background: rgba(37, 42, 92, 0.05);
  border-radius: 12px;
  border-left: 3px solid var(--pink);
}

@keyframes pixel-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.contact__nubi {
  position: absolute;
  top: -18px;
  right: -10px;
  width: 48px;
  height: auto;
  image-rendering: pixelated;
  animation: pixel-bob 3s ease-in-out infinite;
  will-change: transform;
}

@media (min-width: 700px) {
  .contact__nubi { width: 64px; }
}

@media (min-width: 900px) {
  .contact__nubi { right: -20px; }
}

.contact__email {
  display: inline-block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  word-break: break-all;
  transition: color 0.14s ease;
  margin-bottom: 0.5rem;
}

.contact__email:hover { color: var(--pink); }

.contact__desc {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
  opacity: 0.6;
  line-height: 1.5;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background-color: var(--plum);
  padding: 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background-color 0.14s ease, transform 0.14s ease;
}

.social-link:hover {
  background: var(--pink);
  transform: translateY(-2px);
}

.footer__landscape {
  width: 100%;
  font-size: 0;
  line-height: 0;
}

.footer__landscape-img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: 50% bottom;
  image-rendering: pixelated;
}


/* Desktop footer: plum strip above landscape */
@media (min-width: 700px) {
  .footer {
    padding-top: 28px;
  }

  .footer__inner {
    padding-top: 0;
    padding-bottom: 20px;
  }

  .footer__landscape-img {
    height: auto;
    object-fit: unset;
    object-position: unset;
  }
}

/* ── Accessibility ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .social-link { transition: none; }
  .hero__mascot { animation: none; }
  .nubi--bouncing { animation: none !important; }
  .contact__nubi { animation: none; }
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Mobile fixes (< 768px) ─────────────────────────────── */
@media (max-width: 767px) {
  /* Footer row: keep logo and TikTok icon inside the page edges */
  .footer__inner {
    padding-inline: 24px;
  }

  /* Contact card: perch badge on top-right corner, matching desktop */
  .contact__nubi {
    top: -18px;
    right: -10px;
    width: 56px;
  }

  /* Give the card a right margin so the -10px badge overhang stays on-screen */
  /* and keep right padding so text doesn't run under the badge */
  .contact__item {
    margin-right: 14px;
    padding-right: 80px;
  }
}
