@import "colors.css";

body {
  padding-inline: 32px;
  padding-block: 40px;
  background-image: url("../assets/images/background_dot.svg");
  background-color: var(--pitcha-white);
  margin: 0px;
}

/* TYPOGRAPHY */
@font-face {
  font-family: "MangoGrotesque";
  src: url("../assets/fonts/MangoGrotesque/MangoGrotesque-Bold.otf");
}

h1 {
  font-family: "MangoGrotesque", sans-serif;
  /* font-size: 500px; */
  font-size: clamp(50vw, 500px, 50vw);
  color: var(--pitcha-black);
  margin: 0px;
  margin-bottom: -80px;
}

h2 {
  font-family: "MangoGrotesque", sans-serif;
  font-size: 128px;
  color: var(--pitcha-black);
  letter-spacing: -1.3px;
  margin: 0px;
}

h3,
.h3 {
  font-family: "ff-more-web-pro-condensed", serif;
  font-size: 48px;
  font-weight: 350;
  line-height: 50px;
  color: var(--pitcha-black);
  margin: 0px;
}

p,
a {
  font-family: "nimbus-sans", sans-serif;
  font-size: 19px;
  color: var(--pitcha-black);
  margin: 0px;
  letter-spacing: -0.5px;
  line-height: 25px;
}

a {
  text-decoration: none;
  display: inline-block;
}

.preamble {
  font-family: "nimbus-sans-condensed", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--pitcha-red);
  margin: 0px;
  line-height: 16.8px;
}

.definedSection {
  font-family: "ff-more-web-pro-wide";
  font-size: 56px;
  font-style: italic;
  letter-spacing: -1px;
}

.tinyText {
  font-family: "nimbus-sans", sans-serif;
  font-size: 17px;
  color: var(--pitcha-black);
  font-weight: 400;
  margin: 0px;
  line-height: 20.4px;
}

/* Layout */
button {
  background-color: var(--pitcha-red);
  color: var(--pitcha-white);
  text-transform: uppercase;
  border: 1px solid var(--pitcha-red);
  border-radius: 3px;
  padding: 13px 16px;
  cursor: pointer;
}

button:hover {
  background-color: #e13549;
}

.redDotBefore::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  -moz-border-radius: 100%;
  -webkit-border-radius: 100%;
  border-radius: 100%;
  background-color: var(--pitcha-red);
  margin: 0 8px 2px 0;
}

.redDotAfter::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  -moz-border-radius: 100%;
  -webkit-border-radius: 100%;
  border-radius: 100%;
  background-color: var(--pitcha-red);
  margin: 8px 0px 0px 8px;
}

/* Animations */

/* Sticky links */
.sticky {
  -webkit-transform-origin: 50% 50%;
  -ms-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
}

.sticky:hover {
  z-index: 999;
}

/* Section animation */
.animationChild,
.animationChildSecond {
  transform: translateY(100px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.62, 0.28, 0.23, 0.99);
  opacity: 0;
}

.visible {
  transform: translateY(0px) scale(1);
  opacity: 1;
}

/* Sections */

.headerWrapper {
  margin-bottom: 88px;
}

.headerAnimation svg {
  height: unset !important;
}

/* Logo */
.logoWrapper {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  top: 16px;
  left: 16px;
}

.logoHand {
  position: absolute;
}

.logoCircle {
  transition: transform 0.6s cubic-bezier(0, 1.5, 1, 1);
}

/* Header */
.mobileArrow {
  display: none;
}

/* Column section */
.columnSection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 600px));
  gap: 100px;
  justify-content: center;
  margin-bottom: 88px;
}

.columnSection h3 {
  margin-bottom: 16px;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 48px;
  background-color: var(--pitcha-white);
  margin-inline: -32px;
  padding-inline: 32px;
  margin-bottom: 88px;
}

.tinyText a {
  color: var(--pitcha-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 2px;
}

form legend {
  padding-bottom: 40px;
}

form .h3 {
  margin-bottom: 32px;
  white-space: nowrap;
}

input[type="text"],
input[type="email"] {
  display: inline;
  background: none;
  border: none;
  border-bottom: 1px solid var(--pitcha-black);
  border-radius: 0px;
  color: var(--pitcha-red);
  font-family: "nimbus-sans", sans-serif;
  font-size: 30px;
  font-weight: 300;
  padding-left: 12px;
  margin-bottom: 32px;
  width: 100%;
}

.checkboxWrapper {
  position: relative;
}

.checkboxWrapper label {
  font-family: "nimbus-sans", sans-serif;
  font-size: 17px;
  color: var(--pitcha-black);
  cursor: pointer;
  line-height: 20.4px;
  display: inline-block;
  padding: 7px 10px;
  border: 0.75px solid var(--pitcha-black);
  border-radius: 20px;
}

.checkboxWrapper input {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

input[type="checkbox"]:checked ~ label {
  color: var(--pitcha-white);
  background-color: var(--pitcha-red);
  border: 0.75px solid var(--pitcha-red);
}

.inputRange {
  position: absolute;
  left: -500px;
}

.mediumSVG {
  display: none;
}

.smallSVG {
  display: none;
}

.miniSVG {
  display: none;
}

.rangeCircle {
  fill: var(--pitcha-red);
}

.speedAnimationContainer {
  display: flex;
  justify-content: space-between;
}

.sweatAnimation {
  display: block;
  height: 25px;
  width: 74px;
}

.sweetAnimation {
  display: block;
  height: 25px;
  width: 79px;
}

textarea {
  background-color: var(--pitcha-gray);
  border-color: var(--pitcha-black);
  border-radius: 3px;
  color: var(--pitcha-black);
  padding: 8px;
  font-size: 19px;
  font-family: "nimbus-sans", sans-serif;
}

.buttonWrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border: none;
  padding: unset;
}

.columnLayout {
  display: flex;
  flex-direction: column;
}

.rowLayout {
  display: flex;
  flex-direction: row;
}

.inputWrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
}

.inputErrorMessage {
  display: none;
  margin-top: -16px;
}

.showErrorMessage {
  display: block;
  color: var(--pitcha-red);
}

/* SubmitModal */
.submitModal {
  display: none;
}

.submitModal p {
  margin-bottom: 20px;
}

.show {
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: var(--pitcha-white);
  position: fixed;
  z-index: 500;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40vw;
  border-radius: 8px;
}

.modalBackdrop {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  transition: all ease 0.3s;
}

/* About */
.aboutSection {
  margin-bottom: 88px;
}

.about {
  text-transform: uppercase;
}

.about a {
  font-family: "MangoGrotesque", sans-serif;
  text-decoration: underline;
  text-decoration-color: var(--pitcha-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.aboutSection h2,
.aboutSection a {
  font-size: min(11vw, 178px);
  font-weight: 100;
  letter-spacing: normal;
  padding-top: 12px;
}

.keepTogether {
  white-space: nowrap;
}

.videoWrapper {
  display: inline-block;
  height: 8vw;
  max-height: 125px;
}

/* Reel */
.reelSection {
  margin-bottom: 88px;
}

.reelVideo {
  height: auto;
  padding: 56.25% 0 0 0;
  position: relative;
  width: 100%;
  margin-block: 16px;
}

/* End section */
.endSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 88px;
}

.endSection div {
  max-width: 300px;
  text-align: center;
}

.endSection h3 {
  margin-bottom: 16px;
}

.catAnimation {
  width: 300px;
  height: 300px;
}

/* Footer */
.footerContainer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
  padding-block: 88px;
}

.squigglyLine {
  --mask: radial-gradient(
        24.72px at 50% calc(100% + 16.2px),
        #0000 calc(99% - 1px),
        var(--pitcha-black) calc(101% - 1px) 99%,
        #0000 101%
      )
      calc(50% - 36px) calc(50% - 9.5px + 0.5px) / 72px 19px repeat-x,
    radial-gradient(
        24.72px at 50% -16.2px,
        #0000 calc(99% - 1px),
        var(--pitcha-black) calc(101% - 1px) 99%,
        #0000 101%
      )
      50% calc(50% + 9.5px) / 72px 19px repeat-x;
  -webkit-mask: var(--mask);
  mask: var(--mask);
  background: linear-gradient(90deg, var(--pitcha-black), var(--pitcha-black));
  width: auto;
  height: 18px;
  margin-inline: -32px;
}

.footerAnimation {
  max-width: 160px;
}

.footerContainer a {
  margin-right: 24px;
}

.footerContainer a:hover {
  text-decoration: underline;
  color: var(--pitcha-red);
}

.footerColumn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footerSection {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Media queries */

/* SVG range input */
@media (max-width: 990px) {
  .largeSVG {
    display: none;
  }
  .mediumSVG {
    display: block;
  }
  .smallSVG {
    display: none;
  }
  .miniSVG {
    display: none;
  }
}
@media (max-width: 767px) {
  .largeSVG {
    display: none;
  }
  .mediumSVG {
    display: none;
  }
  .smallSVG {
    display: block;
  }
  .miniSVG {
    display: none;
  }
}
@media (max-width: 478px) {
  .largeSVG {
    display: none;
  }
  .mediumSVG {
    display: none;
  }
  .smallSVG {
    display: none;
  }
  .miniSVG {
    display: block;
  }
}

/* Small screens */
@media (max-width: 900px) {
  .footerContainer {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 32px;
  }
  .footerColumn,
  .footerSection {
    align-items: center;
  }

  .footerContainer a {
    margin-right: 0px;
  }
  .socials {
    display: flex;
    gap: 24px;
  }
}

@media (max-width: 750px) {
  h3,
  .h3 {
    font-size: 43px;
    line-height: 48px;
  }
  .definedSection {
    font-size: 49px;
  }
  p,
  a {
    font-size: 16px;
  }
  .tinyText {
    font-size: 14px;
  }
  .preamble {
    font-size: 12px;
  }

  .column h3 {
    margin-bottom: 12px;
  }

  .columnSection,
  .aboutSection,
  .reelSection {
    margin-bottom: 46px;
  }

  .speedAnimationContainer .redDotBefore::before,
  .speedAnimationContainer .redDotAfter::after {
    content: unset !important;
  }

  form {
    gap: 32px;
    margin-bottom: 46px;
    margin-inline: -12px;
    padding-inline: 12px;
  }

  legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  form legend {
    padding-bottom: 0px;
  }

  .sweatAnimation,
  .sweetAnimation {
    display: none;
  }

  .tinyText a {
    text-decoration-thickness: 1px;
  }

  body {
    padding-block: 40px;
    padding-inline: 16px;
  }

  .columnSection {
    grid-template-columns: repeat(1, minmax(0, 600px));
    gap: 50px;
  }

  .checkboxWrapper label {
    font-size: 14px;
  }

  .buttonWrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .buttonWrapper .tinyText {
    align-self: center;
  }

  .show {
    padding: 16px;
    width: 70vw;
  }

  .squigglyLine {
    margin-inline: -16px;
  }
}

@media (max-width: 600px) {
  .aboutSection h2,
  .aboutSection a {
    font-size: 55px;
  }
  .videoWrapper {
    height: 45px;
  }
}

@media (max-width: 420px) {
  .logoWrapper {
    transform: scale(0.9);
  }

  .headerWrapper {
    position: relative;
    height: 100svh;
    margin-bottom: 46px;
  }

  .headerAnimation {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    transform: rotate(90deg);
  }

  .headerAnimation svg {
    width: calc(100svh - 100px) !important;
  }

  .mobileArrow {
    display: block;
    position: absolute;
    bottom: 50px;
    left: 50%;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-name: bouncearrow;
  }

  @keyframes bouncearrow {
    0% {
      bottom: 70px;
    }
    50% {
      bottom: 70px;
    }
    55% {
      bottom: 50px;
    }
    60% {
      bottom: 55px;
    }
    65% {
      bottom: 50px;
    }
    70% {
      bottom: 52px;
    }
    75% {
      bottom: 50px;
    }
    100% {
      bottom: 70px;
    }
  }
}
