/* ---------------- FF Unit Pro ---------------- */
@font-face {
  font-family: 'FF Unit Pro';
  src: url('fonts/FFUnitPro-Light.woff2') format('woff2'),
       url('fonts/FFUnitPro-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FF Unit Pro';
  src: url('fonts/FFUnitPro-Regular.woff2') format('woff2'),
       url('fonts/FFUnitPro-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FF Unit Pro';
  src: url('fonts/FFUnitPro-Medium.woff2') format('woff2'),
       url('fonts/FFUnitPro-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FF Unit Pro';
  src: url('fonts/FFUnitPro-Bold.woff2') format('woff2'),
       url('fonts/FFUnitPro-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------- Refrigerator Deluxe ---------------- */
@font-face {
  font-family: 'Refrigerator Deluxe';
  src: url('fonts/RefrigeratorDeluxe-Light.woff2') format('woff2'),
       url('fonts/RefrigeratorDeluxe-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Refrigerator Deluxe';
  src: url('fonts/RefrigeratorDeluxe.woff2') format('woff2'),
       url('fonts/RefrigeratorDeluxe.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Refrigerator Deluxe';
  src: url('fonts/RefrigeratorDeluxe-Bold.woff2') format('woff2'),
       url('fonts/RefrigeratorDeluxe-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Refrigerator Deluxe';
  src: url('fonts/RefrigeratorDeluxe-ExtraBold.woff2') format('woff2'),
       url('fonts/RefrigeratorDeluxe-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Refrigerator Deluxe';
  src: url('fonts/RefrigeratorDeluxe-Heavy.woff2') format('woff2'),
       url('fonts/RefrigeratorDeluxe-Heavy.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------- Colours ---------------- */
:root {
  --red: #FF2D4F;
  --white: #FFF;
  --black: #151515;
  --grey: #818181;
  --red-rgb: 255, 45, 79;
  --white-rgb: 255, 255, 255;
  --black-rgb: 21, 21, 21;
  --grey-rgb: 129, 129, 129;
}

/* ---------------- Wrappers ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'FF Unit Pro', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.4;
}
body.menu-open {
  overflow: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ---------------- Layout ---------------- */
.bodyWrapper {
  position: relative;
  width: 100%;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/noise.png') repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

.pageWrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Make anchor links align correctly below fixed navbar */
#competitions {
  scroll-margin-top: 100px;
}

#competitions {
  scroll-margin-top: 90px;
}

@media (max-width: 768px) {
  #competitions {
    scroll-margin-top: 70px;
  }
}

/* ---------------- Navbar ---------------- */
.navbar {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--black);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
}
.nav-wrapper {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  display: inline-block;
  line-height: 0;
  display: flex;
  align-items: center;
}
.links {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.navbar-link a {
  position: relative;
  font-size: 1.25rem;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--white);
  transition: opacity 0.3s ease;
}
.navbar-link a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background-color: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.navbar-link a:hover {
  opacity: 1;
}
.navbar-link a:hover::after,
.navbar-link a.active::after {
  transform: scaleX(1);
}
.navbar-cta {
  display: flex;
  align-items: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.hamburger div {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: background 0.3s ease;
}
@media (max-width: 1200px) {
  .links,
  .navbar-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0rem 2rem 2rem;
  z-index: 2000;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 2rem;
}
.mobile-menu-header .logo svg {
  height: 50px;
  width: auto;
}
.close-menu {
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.close-menu svg {
  width: 36px;
  height: 36px;
  stroke: var(--white);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.close-menu:hover {
  transform: rotate(90deg);
  opacity: 0.7;
}

.mobile-menu-links ul {
  list-style: none;
  width: 100%;
}
.mobile-menu-links li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 2px dashed rgba(var(--white-rgb), 0.2);
  border-image: repeating-linear-gradient(
    to right,
    rgba(var(--white-rgb), 0.6) 0,
    rgba(var(--white-rgb), 0.6) 16px,
    transparent 16px,
    transparent 28px
  ) 1;
}
.mobile-menu-links a {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 300;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s ease;
}
.mobile-menu-links a:hover {
  color: var(--red);
}
.mobile-menu-links .svg {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  margin-left: 10px;
  margin-right: 12px;
}
.mobile-menu-links .svg svg path {
  stroke: var(--red);
  transition: transform 0.3s ease;
}
.mobile-menu-links li:hover .svg svg path {
  transform: translateX(6px);
}

.mobile-menu-cta-fixed {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 2100;
  display: none;
  max-width: calc(100% - 40px);
}
.mobile-menu-cta-fixed .btn-icon.btn-wrapper {
  width: auto;
  max-width: 260px;
}

.mobile-menu-socials {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  gap: 1.5rem;
  font-size: 1.8rem;
}
.mobile-menu-socials a {
  color: var(--white);
  transition: color 0.3s ease;
}
.mobile-menu-socials a:hover {
  color: var(--red);
}

/* Tablet vertical (portrait) */
@media (max-width: 1024px) and (min-width: 769px) {
  .mobile-menu-cta-fixed,
  .mobile-menu-socials {
    bottom: 60px;
  }
}

@media (max-height: 820px) {
  .mobile-menu-cta-fixed,
  .mobile-menu-socials {
    bottom: 60px;
  }
}

@media (max-width: 480px) {
  .mobile-menu-cta-fixed {
    position: static;
    margin: 1rem 0 0;
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }
  .mobile-menu-socials {
    position: static;
    margin: 1rem 0;
    justify-content: center;
  }
  .mobile-menu {
    padding-bottom: 6rem;
  }
  .mobile-menu-links {
    flex: 1;
  }
  .mobile-menu-cta-fixed .btn-icon.btn-wrapper {
    max-width: 100%;
  }
}

.btn-primary.btn-wrapper,
.btn-secondary.btn-wrapper,
.btn-icon.btn-wrapper {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary.btn-wrapper button,
.btn-primary.btn-wrapper a,
.btn-secondary.btn-wrapper button,
.btn-secondary.btn-wrapper a {
  font-family: 'FF Unit Pro', sans-serif;
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(0.8em + 1px) 1.6em;
  background: transparent;
  border: none;
  color: var(--white);
  z-index: 2;
  cursor: pointer;
  transition: color 0.5s ease;
  text-decoration: none;
}

/* Primary */
.btn-primary.btn-wrapper {
  background: var(--red);
}
.btn-primary .fillElement {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: 1;
}
.btn-primary.btn-wrapper:hover .fillElement {
  transform: translateX(0);
}
.btn-primary.btn-wrapper:hover button,
.btn-primary.btn-wrapper:hover a {
  color: var(--black);
}

/* Secondary */
.btn-secondary.btn-wrapper {
  background: transparent;
  border: 1px solid var(--white);
}
.btn-secondary .fillElement {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: 1;
}
.btn-secondary.btn-wrapper:hover .fillElement {
  transform: translateX(0);
}
.btn-secondary.btn-wrapper:hover button,
.btn-secondary.btn-wrapper:hover a {
  color: var(--black);
}

.btn-primary-icon.btn-wrapper {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
}

.btn-primary-icon .fillElement {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: 1;
}

.btn-primary-icon a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.6em 1.2em;
  font-family: 'FF Unit Pro', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1;
  background: transparent;
  color: var(--white);
  z-index: 2;
  transition: color 0.5s ease;
  text-decoration: none;
  user-select: auto;
  pointer-events: auto;
}

.btn-primary-icon.btn-wrapper:hover .fillElement {
  transform: translateX(0);
}

.btn-primary-icon.btn-wrapper:hover a {
  color: var(--black);
}

.btn-primary-icon .iconArea {
  position: relative;
  width: 0.9em;
  height: 0.9em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.btn-primary-icon .icon,
.btn-primary-icon .icon__hidden {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.btn-primary-icon .icon {
  transform: translate(-50%, -50%) translate(0, 0);
}

.btn-primary-icon .icon__hidden {
  transform: translate(-50%, -50%) translate(-20px, 20px);
}

.btn-primary-icon.btn-wrapper:hover .icon {
  transform: translate(-50%, -50%) translate(20px, -20px);
}

.btn-primary-icon.btn-wrapper:hover .icon__hidden {
  transform: translate(-50%, -50%) translate(0, 0);
}

/* Icon color swap on hover */
.btn-primary-icon .icon svg path,
.btn-primary-icon .icon__hidden svg path {
  fill: var(--white);
  transition: fill 0.3s ease;
}

.btn-primary-icon.btn-wrapper:hover .icon svg path,
.btn-primary-icon.btn-wrapper:hover .icon__hidden svg path {
  fill: var(--black);
}


/* Secondary Icon */
.btn-secondary-icon.btn-wrapper {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--white);
}

.btn-secondary-icon .fillElement {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: 1;
}

.btn-secondary-icon a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.6em 1.4em;
  font-family: 'FF Unit Pro', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--white);
  z-index: 2;
  transition: color 0.5s ease;
}

.btn-secondary-icon.btn-wrapper:hover .fillElement {
  transform: translateX(0);
}

.btn-secondary-icon.btn-wrapper:hover a {
  color: var(--black);
}

.btn-secondary-icon .iconArea {
  position: relative;
  width: 0.9em;
  height: 0.9em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.btn-secondary-icon .icon,
.btn-secondary-icon .icon__hidden {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.btn-secondary-icon .icon {
  transform: translate(-50%, -50%) translate(0, 0);
}
.btn-secondary-icon .icon__hidden {
  transform: translate(-50%, -50%) translate(-20px, 20px);
}

.btn-secondary-icon.btn-wrapper:hover .icon {
  transform: translate(-50%, -50%) translate(20px, -20px);
}
.btn-secondary-icon.btn-wrapper:hover .icon__hidden {
  transform: translate(-50%, -50%) translate(0, 0);
}

.btn-secondary-icon .icon svg path,
.btn-secondary-icon .icon__hidden svg path {
  fill: var(--white);
  transition: fill 0.3s ease;
}
.btn-secondary-icon.btn-wrapper:hover .icon svg path,
.btn-secondary-icon.btn-wrapper:hover .icon__hidden svg path {
  fill: var(--black);
}

/* NavBar */
.btn-icon.btn-wrapper {
  background: var(--red);
  border: none;
}
.btn-icon.btn-wrapper a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4em 1em;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 300;
  text-transform: uppercase;
  transition: color 0.5s ease;
  z-index: 2;
}
.btn-icon .fillElement {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: 1;
}
.btn-icon.btn-wrapper:hover .fillElement {
  transform: translateX(0);
}
.btn-icon.btn-wrapper:hover a {
  color: var(--black);
}
.btn-icon .iconArea {
  position: relative;
  width: 0.9em;
  height: 0.9em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.btn-icon .icon,
.btn-icon .icon__hidden {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}
.btn-icon .icon {
  transform: translate(-50%, -50%) translate(0, 0);
}
.btn-icon .icon__hidden {
  transform: translate(-50%, -50%) translate(-20px, 20px);
}
.btn-icon.btn-wrapper:hover .icon {
  transform: translate(-50%, -50%) translate(20px, -20px);
}
.btn-icon.btn-wrapper:hover .icon__hidden {
  transform: translate(-50%, -50%) translate(0, 0);
}
.btn-icon .icon svg,
.btn-icon .icon__hidden svg {
  width: 100%;
  height: 100%;
  display: block;
}
.btn-icon .icon svg path,
.btn-icon .icon__hidden svg path {
  fill: var(--white);
  transition: fill 0.3s ease;
}
.btn-icon.btn-wrapper:hover .icon svg path,
.btn-icon.btn-wrapper:hover .icon__hidden svg path {
  fill: var(--black);
}

/* ---------------- Hero ---------------- */

#home {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--black);
  padding-inline: 5vw;
  padding-block: clamp(4.5rem, 7.5vh, 7.5rem);
  overflow: hidden;
}

.hero-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  width: 100%;
  max-width: min(1120px, 92vw);
  margin-inline: auto;
}

.hero-title {
  font-family: 'FF Unit Pro', sans-serif;
  font-size: clamp(3rem, 7.2vw, 8.5rem);
  font-weight: 700;
  line-height: 1.06;
  color: #fff;
  max-width: 20ch;
  text-wrap: balance;
  word-break: keep-all;
  margin: 0 0 0.25em 0;
}

.hero-subtitle {
  font-family: 'FF Unit Pro', sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.4rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 58ch;
  margin: 0 0 0.75rem 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  margin-top: 0.25rem;
}

@media (min-width: 992px) and (max-width: 1360px) {
  .hero-wrapper { max-width: 1000px; }

  .hero-title {
    font-size: clamp(3.25rem, 6.2vw, 6.9rem);
    max-width: 18ch;
  }

  .hero-subtitle {
    font-size: clamp(1.05rem, 1.25vw, 1.3rem);
    max-width: 52ch;
  }
}

@media (min-width: 1361px) and (max-width: 1600px) {
  .hero-title {
    font-size: clamp(3rem, 5.8vw, 7.5rem);
    max-width: 19ch;
  }
  .hero-subtitle {
    font-size: clamp(1.05rem, 1.2vw, 1.35rem);
  }
}

@media (max-width: 991px) {
  #home { padding-block: clamp(4rem, 9vh, 6rem); }

  .hero-wrapper {
    align-items: center;
    text-align: center;
    max-width: min(760px, 94vw);
    gap: 1rem;
  }

  .hero-title {
    font-size: clamp(2.6rem, 8.5vw, 4.5rem);
    max-width: 15ch;
    margin-bottom: 0.25em;
    line-height: 1.08;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    max-width: 48ch;
    margin-bottom: 0.9rem;
    line-height: 1.5;
  }

  .hero-buttons { justify-content: center; }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    line-height: 1.12;
    max-width: 14ch;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 3.4vw, 1.15rem);
    max-width: 40ch;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .hero-buttons .btn-wrapper { width: 100%; }
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 2rem 4vw;
  border-top: 2px dashed rgba(255, 255, 255, 0.25);
  border-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.25) 0 12px,
    transparent 12px 24px
  ) 1;
}
.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer-left .footer-logo {
  height: 40px;
  width: auto;
  opacity: 0.9;
}
.footer-right {
  flex: 2;
  display: flex;
  justify-content: flex-end;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1rem 3rem;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  color: var(--red);
}
.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}
.footer-bottom p {
  margin: 0;
}
@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-right {
    justify-content: center;
  }
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
