@font-face {
  font-family: 'AIK Display';
  src:
    url("../fonts/aik-display-40.f3794590c41b.woff2") format('woff2'),
    url("../fonts/aik-display-40.7a565b2b7c0f.woff") format('woff');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'AIK Display';
  src:
    url("../fonts/aik-display-200.6d4627ded48b.woff2") format('woff2'),
    url("../fonts/aik-display-200.fd654aebcec4.woff") format('woff');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --side-padding: 2rem;
}

@media only screen and (max-width: 1024px) {
  :root {
    --side-padding: 1rem;
  }
}

.signature {
  font-family: 'AIK Display', sans-serif;
  font-weight: 300;

  &.bold,
  b,
  strong {
    font-weight: 700;
  }
}

a {
  color: var(--color-dark);
}

h2 {
  font-family: 'AIK Display', sans-serif;
}

html,
body {
  height: 100%;
}

body {
  font-family: Inter, sans-serif;
  color: var(--color-light);
  background: var(--color-dark);
}

.main-content {
  background: var(--color-tertiary);
  color: var(--color-dark);
}

.main-header {
  height: 5.5rem;
  position: relative;
  background: var(--color-dark);
  color: var(--color-light);

  &.with-border:after {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0;
    height: 1px;
    content: '';
    display: block;
    background: rgba(255, 255, 255, 0.1);
  }

  &.floating {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0);
  }

  .wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--side-padding);
    box-sizing: border-box;
    display: flex;
    height: 100%;
    z-index: 2;
    position: relative;

    .branding {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      gap: 0.75rem;

      .logo {
        img {
          width: auto;
          height: 4.5rem;
        }
      }

      .academy {
        color: var(--color-light);
        font-family: 'AIK Display', sans-serif;
        font-size: 1.4rem;
        font-weight: 700;
        text-decoration: none;
        text-transform: uppercase;
        line-height: 1;

        span {
          color: var(--color-primary);
        }
      }
    }

    .main-nav {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1rem;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      transition: opacity 0.25s ease-in-out;
    }

    .aux-nav {
      margin-left: auto;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1.5rem;
    }
  }
}

.gold-bar {
  background: var(--color-secondary);
  height: 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;

  .breadcrumbs {
    width: 100%;
    max-width: 1400px;
    box-sizing: border-box;
    margin: 0 auto;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 0 var(--side-padding);

    a {
      color: inherit;
      font-weight: 400;
    }

    span {
      font-weight: 600;
    }
  }
}

@media only screen and (max-width: 1024px) {
  .main-header {
    .wrapper {
      .branding {
        .academy {
          font-size: 1.3rem;
        }
      }

      .main-nav {
        display: none;
      }

      .aux-nav {
        gap: 1rem;
      }
    }
  }
}

.main-footer {
  .content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem var(--side-padding);
    display: flex;
    flex-direction: column;
    gap: 2rem;

    .nav-groups {
      gap: 2rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

      .social-nav,
      .aik-nav,
      .account-nav,
      .main-nav {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 1rem;

        .title {
          font-family: 'AIK Display', sans-serif;
          font-size: 1.6rem;
          font-weight: 700;
          text-transform: uppercase;
        }
      }
    }
  }

  .legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    color: var(--color-light);
    font-size: 0.85rem;

    .links {
      display: flex;
      align-items: center;
      gap: 0.5rem;

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

@media only screen and (max-width: 800px) {
  .main-footer {
    .legal {
      flex-direction: column;
      justify-content: start;
      align-items: start;
      gap: 1rem;
    }
  }
}

/* Various links and buttons */

.icon-button {
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  position: relative;

  @media (hover: hover) {
    &:hover {
      color: var(--color-primary);
    }
  }

  span {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
  }

  svg {
    height: 1.6rem;
    width: auto;
  }
}

.button {
  border: 2px solid var(--color-light);
  color: var(--color-light);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  justify-content: center;
  height: 2.8rem;
  padding: 0 1.4rem;
  border-radius: 1.4rem;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;

  &.big {
    height: 3rem;
    border-radius: 1.5rem;
    padding: 0 1.5rem;
  }

  @media (hover: hover) {
    &:hover {
      background: var(--color-light);
      color: var(--color-dark);
    }
  }

  &.brand {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-dark);

    @media (hover: hover) {
      &:hover {
        color: var(--color-primary);
        background: transparent;
      }
    }
  }

  &.dark {
    border-color: var(--color-dark);
    background: var(--color-dark);
    color: var(--color-light);

    @media (hover: hover) {
      &:hover {
        color: var(--color-dark);
        background: transparent;
      }
    }
  }
}

@media only screen and (max-width: 800px) {
  .button.mobile-shrink {
    height: 2.4rem;
    padding: 0 1.2rem;
    border-radius: 1.2rem;
  }
}

.icon-link {
  color: inherit;
  display: flex;
  gap: 0.25rem;
  align-items: center;
  transition:
    color 0.2s ease-in-out,
    text-decoration-color 0.2s ease-in-out;
  text-underline-offset: 2px;
  text-decoration: underline;
  text-decoration-color: transparent;

  span {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  @media (hover: hover) {
    &:hover {
      color: var(--color-primary);
      text-decoration-color: var(--color-primary);
    }
  }

  svg {
    height: 1.2rem;
    width: auto;
    flex-shrink: 0;
  }

  &.external {
    svg {
      height: 1rem;
    }
  }
}

.text-link {
  color: inherit;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition:
    color 0.2s ease-in-out,
    text-decoration-color 0.2s ease-in-out;
  text-underline-offset: 2px;
  text-decoration: underline;
  text-decoration-color: transparent;

  @media (hover: hover) {
    &:hover {
      color: var(--color-primary);
      text-decoration-color: var(--color-primary);
    }
  }
}

/* Hero */

.hero {
  width: 100%;
  height: calc(100dvh - 5.5rem - 2.4rem);
  position: relative;
  z-index: 0;

  &.semi {
    height: calc(100dvh - 5.5rem);
  }

  &.full {
    height: 100dvh;
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    &.video {
      background: linear-gradient(
          175deg,
          rgba(0, 0, 0, 0.8) 0%,
          rgba(0, 0, 0, 0.35) 55%,
          transparent 85%
        ),
        linear-gradient(185deg, rgba(0, 0, 0, 0.25) 0%, transparent 50%),
        linear-gradient(3deg, rgba(0, 0, 0, 0.35) 0%, transparent 25%);
    }

    &.image {
      background: linear-gradient(
          to bottom,
          rgba(0, 0, 0, 0.8) 0%,
          rgba(0, 0, 0, 0.35) 65%,
          transparent 90%
        ),
        linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 40%);
    }
  }

  > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  > picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .content {
    position: absolute;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
    max-width: 50rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-light);
    padding: 0 var(--side-padding);

    &.top {
      top: 25%;
    }

    &.bottom {
      top: 75%;
    }

    .academy {
      text-transform: uppercase;
      text-align: center;
      font-family: 'AIK Display', sans-serif;
      font-size: 4.5rem;
      font-weight: 700;
      text-shadow: rgba(0, 0, 0, 0.6) 0px 0px 35px;

      span {
        color: var(--color-primary);
      }
    }

    .tagline {
      text-shadow: rgba(0, 0, 0, 0.6) 0px 0px 25px;
      font-size: 1.4rem;
      font-weight: 500;
      text-align: center;
      line-height: 130%;
      margin-top: 0.5rem;

      svg {
        height: 2rem;
        width: auto;
      }
    }

    .actions {
      margin-top: 1.5rem;
      display: flex;
      gap: 0.75rem;
      align-items: center;
      justify-content: center;
    }
  }

  .sponsors {
    width: 100%;
    max-width: 1400px;
    box-sizing: border-box;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 1rem;
    z-index: 3;
    flex-wrap: wrap;

    img {
      height: 2.2rem;
      width: auto;
      opacity: 0.5;
    }
  }
}

@media only screen and (max-width: 1024px) {
  .hero {
    .content {
      .academy {
        font-size: 3rem;
      }

      .tagline {
        font-size: 1.2rem;
      }

      .actions {
        /* display: none; */
        flex-direction: column;
      }
    }
  }
}

@media only screen and (max-width: 800px) {
  .hero {
    .content {
      .academy {
        font-size: 2.8rem;
      }

      .tagline {
        font-size: 1.1rem;
      }
    }

    .sponsors {
      justify-content: center;

      img {
        height: 1.8rem;
      }
    }
  }
}

/* Sections */

.sections {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding: 4rem 0 5rem;

  .section {
    width: 100%;
    box-sizing: border-box;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--side-padding);

    .heading {
      margin-bottom: 2rem;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;

      .title {
        font-family: 'AIK Display', sans-serif;
        font-size: 2.4rem;
        font-weight: 700;
        text-transform: uppercase;
        max-width: 40rem;
        line-height: 1.2;

        &.l {
          font-size: 3rem;
        }

        &.xl {
          font-size: 4rem;
        }
      }

      .sub-title {
        max-width: 40rem;
        font-size: 1.1rem;
        line-height: 1.4;
        font-weight: 500;

        &.l {
          font-size: 1.2rem;
        }
      }

      &.center {
        text-align: center;

        .title,
        .sub-title {
          margin: 0 auto;
        }
      }
    }

    .text-box {
      max-width: 40rem;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;

      strong,
      b {
        font-weight: 600;
      }

      ul {
        li {
          line-height: 1.4;
          font-size: 1.1rem;
        }
      }

      p {
        line-height: 1.4;
        font-size: 1.1rem;
      }
    }
  }
}

@media only screen and (max-width: 800px) {
  .sections {
    gap: 4rem;

    .section {
      .heading {
        .title {
          font-size: 2rem;

          &.l {
            font-size: 2.2rem;
          }

          &.xl {
            font-size: 3rem;
          }
        }

        .sub-title {
          font-size: 1rem;

          &.l {
            font-size: 1.1rem;
          }
        }
      }
    }
  }
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;

  &.align-center {
    align-items: center;
  }

  .first,
  .last {
    img {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 1rem;
      border: 2px solid var(--color-dark);
    }
  }
}

@media only screen and (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;

    .first {
      order: -1;
    }

    .last {
      order: 1;
    }
  }
}

.boxes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;

  .box {
    .title {
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;

      .number {
        width: 2rem;
        height: 2rem;
        border-radius: 1rem;
        display: block;
        background: var(--color-dark);
        color: var(--color-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        font-family: 'AIK Display', sans-serif;
        font-weight: 700;
      }
    }
  }
}

@media only screen and (max-width: 1024px) {
  .boxes {
    grid-template-columns: 1fr 1fr;
  }
}

@media only screen and (max-width: 800px) {
  .boxes {
    grid-template-columns: 1fr;
  }
}

.sticky-container {
  height: 100%;
  position: relative;

  .sticky-box {
    position: sticky;
    top: 1rem;
  }
}

/* Mobile nav */

.toggle-mobile-menu {
  svg {
    display: block;

    .line {
      fill: none;
      stroke: currentColor;
      stroke-width: 6;
      stroke-linecap: round;
      transform-origin: 50%;
      transition: transform 400ms 100ms;
    }
  }
}

body.menu-open {
  overflow: hidden;

  /* .main-header { */
  /*   .wrapper { */
  /*     .portal-dropdown, */
  /*     .main-nav { */
  /*       opacity: 0; */
  /*     } */
  /*   } */
  /* } */

  .toggle-mobile-menu {
    .line {
      transition: transform 400ms;
    }

    .line1 {
      transform: translateX(18px) translateY(-3px) rotate(-45deg) scale(0.7);
    }

    .line2 {
      transform: translateX(-18px) translateY(-3px) rotate(45deg) scale(0.7);
    }

    .line3 {
      transform: translateY(0) rotate(45deg) scale(0.7);
    }

    .line4 {
      transform: translateY(0) rotate(-45deg) scale(0.7);
    }

    .line5 {
      transform: translateX(18px) translateY(3px) rotate(45deg) scale(0.7);
    }

    .line6 {
      transform: translateX(-18px) translateY(3px) rotate(-45deg) scale(0.7);
    }
  }

  .mobile-navigation {
    clip-path: inset(0 0 0 0);
  }
}

.mobile-navigation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 1;
  background: var(--color-dark);
  color: var(--color-light);
  box-sizing: border-box;
  transition: clip-path 600ms ease;
  clip-path: inset(0 0 100% 0);
  padding-top: 5rem;
  overflow: auto;

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;

    a {
      font-family: 'AIK Display', sans-serif;
      font-size: 1.8rem;
      font-weight: 700;
      padding: 0.25 0;
    }
  }

  .social-nav,
  .account-nav {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;

    .icon-link {
      padding: 0.25rem 0;

      span {
        font-weight: 500;
        font-size: 1.1rem;
      }

      svg {
        height: 1.2rem;
        width: auto;
      }
    }
  }

  .account-nav {
    margin-bottom: 1.5rem;
  }
}

/* Dropdown */

.portal-dropdown {
  position: relative;
  transition: opacity 0.25s ease-in-out;

  .portal-dropdown-menu {
    display: none;
    position: absolute;
    margin-top: 0.6rem;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    gap: 0.5rem;
    background: var(--color-light);
    padding: 1rem 1.5rem;
    border-radius: 0.25rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 10px;
    color: var(--color-dark);

    &::before {
      content: '';
      position: absolute;
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 0.4rem solid transparent;
      border-bottom-color: var(--color-light);
    }

    a {
      padding: 0.25rem 0;

      @media (hover: hover) {
        &:hover {
          color: var(--color-secondary);
          text-decoration-color: var(--color-secondary);
        }
      }
    }
  }

  &.is-open {
    .icon-button {
      color: var(--color-primary);
    }

    .portal-dropdown-menu {
      display: flex;
    }
  }
}
