:root {
  --padding-y-axis: clamp(50px, 6vw, 100px);
  --padding-x-axis: clamp(15px, 5.2vw, 100px);

  --margin-y-axis: clamp(25px, 4vw, 40px);

  --xs3-font: clamp(0.8rem, 3vw, 1rem);
  --xxs-font: clamp(1rem, 4vw, 1.2rem);
  --xs-font: clamp(1.5rem, 3.6vw, 2rem);
  --sm-font: clamp(1.75rem, 4.2vw, 2.5rem);
  --md-font: clamp(2rem, 4.8vw, 3rem);
  --lg-font: clamp(2.25rem, 5.4vw, 3.5rem);
  --xl-font: clamp(2.5rem, 6vw, 5rem);

  --font-family-oxanium: "Oxanium", serif;
  --font-family-ibm: "IBM Plex Mono", serif;

  --tunerfest-primary: #cd5916;
  --tunerfest-secondary: #a84913;

  --modifiedLive-primary: #e63629;
  --modifiedLive-secondary: #c0291e;

  --jdmJam-primary: #f6e15f;
  --jdmJam-secondary: #dbc952;

  --gtBattle-primary: #705090;
  --gtBattle-secondary: #553c6e;

  --goJapan-primary: #e6313a;
}

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

body {
  margin: 0;
  font-family: var(--font-family-oxanium);
  letter-spacing: -0.5px;
  line-height: 140%;

  h1,
  h2,
  h3,
  h4,
  h5 {
    font-weight: 700;
    line-height: 110%;
    margin: 20px 0;

    span {
      font-size: inherit !important;
    }
  }

  p,
  li:not(.menu-item) {
    margin: 15px 0;
  }

  a {
    text-decoration: none;
  }

  hr {
    margin: 30px 0;
  }

  h1,
  .xl-font {
    font-size: var(--xl-font);
  }

  h2,
  .lg-font {
    font-size: var(--lg-font);
  }

  h3,
  .md-font {
    font-size: var(--md-font);
  }

  h4,
  .sm-font {
    font-size: var(--sm-font);
  }

  h5,
  .xs-font {
    font-size: var(--xs-font);
    line-height: 140%;
  }

  p,
  li,
  a,
  span,
  .xxs-font {
    font-size: var(--xxs-font);
  }

  .xs3-font {
    font-size: var(--xs3-font);
  }
}

.holdingContainer {
  padding: var(--padding-y-axis) var(--padding-x-axis);
  color: #f8f8f8;
  min-height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  &,
  .holdingFooter {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
  }

  .holdingHeader {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;

    svg {
      max-width: 1400px;
      max-height: 175px;
    }

    h2 {
      font-size: var(--md-font);
      font-weight: 300;
      max-width: 36ch;
      text-wrap: balance;
      text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.5);

      span {
        font-weight: 600;
      }
    }

    .holdingBtn.contactBtn {
      display: none;
    }
  }

  &.rootHolding {
    background-color: rgba(0, 0, 0, 0.4);
    background-blend-mode: multiply;
    justify-content: center;
    gap: clamp(30px, 4vw, 60px);
    .holdingHeader {
      & > div {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        svg {
          max-width: 800px;
        }

        h2 {
          font-size: var(--lg-font);
          margin-bottom: 0;
        }
      }
    }
  }

  .holdingFooter {
    font-family: var(--font-family-ibm);
    & > div {
      h3,
      a {
        width: fit-content;
        margin-top: 20px;
        padding: 15px 20px;
      }

      h3 {
        font-size: var(--sm-font);
        font-weight: 400;
      }

      a {
        font-size: var(--xl-font);
        line-height: 110%;
        font-weight: 500;
      }
    }

    & > h3 {
      display: flex;
      align-items: flex-start;
      gap: 15px;
      font-weight: 300;
      margin-bottom: 0;
      text-wrap: balance;
    }
  }

  .eventSelector {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(30px, 4vw, 100px);
    a,
    p {
      color: white;
    }

    a {
      box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.2);
      max-width: 600px;
      width: 100%;
      transition-duration: 0.1s;

      &:hover {
        box-shadow: 1px 2px 20px rgba(0, 0, 0, 0.5);
        transform: translateY(-10px);
      }
    }

    p {
      padding: clamp(15px, 3vw, 20px) clamp(15px, 4vw, 30px);
      margin: 0;

      &:first-of-type {
        font-weight: 700;
      }

      &:not(:last-of-type) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      }
    }
  }

  .holdingBtn {
    display: flex;
    transition-duration: 0.1s;
  }

  .holdingBtn.contactBtn {
    padding: 10px 15px;
    svg {
      width: clamp(30px, 4vw, 60px);
      height: clamp(30px, 4vw, 60px);
    }
  }

  @media (min-width: 768px) {
    & {
      .holdingHeader {
        flex-direction: row;

        .holdingBtn.contactBtn {
          display: flex;
        }
      }

      .holdingFooter {
        flex-direction: row;

        & > h3 {
          margin-top: auto;
          text-align: right;

          .holdingBtn.contactBtn {
            display: none;
          }
        }
      }

      .eventSelector {
        flex-direction: row;

        a:last-of-type {
          text-align: right;
        }
      }
    }
  }
}

.holdingTunerfestNorth,
.holdingTunerfestSouth {
  .colorBlock,
  .holdingBtn {
    background-color: var(--tunerfest-primary);
    color: #f8f8f8;
    fill: #f8f8f8;
  }

  .holdingBtn:hover {
    background-color: var(--tunerfest-secondary);
  }

  .eventSelector a {
    background-color: var(--tunerfest-primary);
  }

  .eventSelector p:first-of-type {
    background-color: var(--tunerfest-secondary);
  }
}

.holdingModifiedLiveCadwell,
.holdingModifiedLiveSnetterton {
  .colorBlock,
  .holdingBtn {
    background-color: var(--modifiedLive-primary);
    color: #f8f8f8;
    fill: #f8f8f8;
  }

  .holdingBtn:hover {
    background-color: var(--modifiedLive-secondary);
  }

  .eventSelector a {
    background-color: var(--modifiedLive-primary);
  }

  .eventSelector p:first-of-type {
    background-color: var(--modifiedLive-secondary);
  }
}

.holdingJdmJam {
  .holdingHeader {
    h2 {
      color: var(--jdmJam-primary);
    }
  }

  .holdingFooter {
    & > h3 {
      color: black;
    }
  }

  .colorBlock,
  .holdingBtn {
    background-color: var(--jdmJam-primary);
    color: #242424;
    fill: #242424;
  }

  .holdingBtn:hover {
    background-color: var(--jdmJam-secondary);
  }
}

.holdingGtBattle {
  .holdingHeader {
    svg {
      background: rgba(255, 255, 255, 0.5);
    }
  }

  .colorBlock,
  .holdingBtn {
    background-color: var(--gtBattle-primary);
    color: #f8f8f8;
    fill: #f8f8f8;
  }

  .holdingBtn {
    svg {
      background: unset;
    }
  }

  .holdingBtn:hover {
    background-color: var(--gtBattle-secondary);
  }
}

.holdingGoJapan {
  .holdingHeader {
    svg {
      width: 100%;
      max-height: unset;
      margin-bottom: auto;
    }
  }

  .holdingFooter {
    & > div:first-of-type {
      h3,
      a {
        background-color: white;
        color: var(--goJapan-primary);
      }

      a:hover {
        background-color: var(--goJapan-primary);
        color: white;
      }
    }
  }

  .colorBlock,
  .holdingBtn {
    background-color: white;
    color: var(--goJapan-primary);
    fill: var(--goJapan-primary);
  }

  .holdingBtn:hover {
    background-color: var(--goJapan-primary);
    color: white;
    fill: white;
  }

  @media (min-width: 768px) {
    & {
      .holdingHeader {
        & > div {
          display: grid;
          grid-template-columns: 1fr 1fr;
          align-items: flex-end;
          gap: clamp(30px, 6vw, 60px);
        }
      }
    }
  }
}

.holdingTunerfestNorth {
  background-image: url(/holding-pages/Images/tunerfest-north-hero.jpg);
}

.holdingTunerfestSouth {
  background-image: url(/holding-pages/Images/tunerfest-south-hero.jpg);
}

.holdingModifiedLiveCadwell {
  background-image: url(/holding-pages/Images/modified-live-cadwell-hero.jpg);
}

.holdingModifiedLiveSnetterton {
  background-image: url(/holding-pages/Images/modified-live-snetterton-hero.jpg);
}

.holdingJdmJam {
  background-image: url(/holding-pages/Images/jdm-jam-hero.jpg);
}

.holdingGtBattle {
  background-image: url(/holding-pages/Images/gt-battle-hero.jpg);
}

.holdingGoJapan {
  background-image: url(/holding-pages/Images/go-japan-hero.jpg);
}
