:root {
  --main-font: "Poppins", sans-serif;
  --box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --light-background: #fff;
  --dark-background: #777777;
}

/* Animations */
.fade-right {
  opacity: 0;
  transform: translate(-64px, 0);
  transition: opacity 750ms ease-out var(--fade-delay, 0ms),
    transform 750ms ease-out var(--fade-delay, 0ms);
}

.fade-left {
  opacity: 0;
  transform: translate(64px, 0);
  transition: opacity 750ms ease-out var(--fade-delay, 0ms),
    transform 750ms ease-out var(--fade-delay, 0ms);
}

.fade-up {
  opacity: 0;
  transform: translate(0, 64px);
  transition: opacity 750ms ease-out var(--fade-delay, 0ms),
    transform 750ms ease-out var(--fade-delay, 0ms), box-shadow 500ms;
}

.delay-100 {
  --fade-delay: 100ms;
}

.delay-200 {
  --fade-delay: 200ms;
}

.delay-300 {
  --fade-delay: 300ms;
}

.fade-in {
  opacity: 1;
  transform: translate(0, 0);
}

html,
body {
  font-family: var(--main-font);
  padding: 0;
  margin: 0;
  overflow-x: hidden;

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

  section {
    padding: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  div {
    display: flex;
    flex-direction: column;
  }

  h1,
  h2,
  h3 {
    font-weight: 500;
  }

  h1,
  h2 {
    font-size: 42px;
  }

  h3 {
    font-size: 24px;
  }

  p {
    font-size: 18px;
  }

  .text-box {
    max-width: 700px;

    p:not(:last-child) {
      margin-bottom: 12px;
    }
  }

  .card-container {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 32px;
  }
  .card {
    min-width: 350px;
    width: 33%;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--box-shadow);

    img {
      width: 100%;
      height: 400px;
      object-fit: cover;
      object-position: center 80%;
    }
    .card-content {
      padding: 24px;
      align-items: start;
    }
  }
}

.banner {
  background-image: url(media/bumpa-heffner.jpg);
  background-position: 10% 30%;
  background-size: 100%;
  height: 600px;
  color: white;
  align-items: start;

  .banner-content {
    padding: 32px;
    background-color: black;
    border-radius: 32px;

    p {
      font-size: 24px;
    }
  }
}

.context-section {
  flex-direction: row;
  gap: 64px;
  .img-container {
    flex-direction: row;
    img {
      width: 350px;
      height: 500px;
      border-radius: 32px;
      object-fit: cover;
      box-shadow: var(--box-shadow);
    }
    img:nth-of-type(2) {
      margin-left: -64px;
      margin-top: 32px;
    }
  }
}

.card-section {
  gap: 64px;
  .text-box {
    align-items: center;
    text-align: center;
  }
}

.end-cta-section {
  .cta-content {
    background-color: white;
    flex-direction: row;
    border-radius: 32px;
    overflow: hidden;
    align-items: center;
    box-shadow: var(--box-shadow);
    img {
      border-radius: 0;
      width: 400px;
      height: 500px;
      object-fit: cover;
    }
    .text-box {
      padding: 32px;
    }
  }
}

.form-section {
  padding-top: 5%;
  flex-direction: row;
  justify-content: center;
  gap: 64px;
  .modern-form {
    padding: 32px;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--box-shadow);
    max-width: 480px;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;

    label {
      font-size: 16px;
      font-weight: 500;
      margin-bottom: 6px;
      color: #222;
    }

    input,
    textarea,
    select {
      padding: 12px 16px;
      border-radius: 12px;
      border: 1px solid #ccc;
      font-size: 16px;
      font-family: var(--main-font);
      transition: border-color 250ms;
      margin-bottom: 10px;
    }

    input:focus,
    textarea:focus,
    select:focus {
      border-color: #028d09;
      outline: none;
    }

    button {
      background: #028d09;
      color: #fff;
      border: none;
      border-radius: 12px;
      padding: 14px 0;
      font-size: 18px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s;
      margin-top: 10px;

      &:hover {
        background: #025e07;
      }
    }
  }
}

.banner--bottom {
  background-image: url(media/john-beer.jpg);
  height: 100vh;
}

@media (max-width: 900px) {
  html,
  body {
    h1 {
      font-size: 32px;
    }

    h2 {
      font-size: 24px;
    }

    h3 {
      font-size: 18px;
    }

    .text-box {
      padding: 24px;
    }

    .card-container {
      flex-direction: column;
      gap: 16px;
      padding: 0 24px 24px 24px;

      .card {
        min-width: 0;
        width: 100%;
        img {
          height: 250px;
        }
        p {
          font-size: 16px;
        }
      }
    }
  }

  .banner {
    background-size: 200%;
    background-position: 65% 50%;
    height: 400px;
    justify-content: end;

    .banner-content {
      p {
        font-size: 18px;
      }
    }
  }

  .context-section {
    padding: 0;
    flex-direction: column;
    gap: 0;

    .img-container {
      width: 100%;
      height: 400px;
      img {
        object-position: center top;
        width: 50%;
        height: 100%;
        border-radius: 0;
      }
      img:nth-of-type(2) {
        margin-left: 0;
        margin-top: 0;
      }
    }
  }

  .card-section {
    gap: 0;
    padding: 0;
  }

  .end-cta-section {
    .cta-content {
      flex-direction: column;
      border-radius: 0;
      box-shadow: none;
      img {
        width: 100%;
        height: 300px;
        object-position: center center;
      }
      .text-box {
        padding: 5%;
      }
    }
  }

  .form-section {
    padding: 0 0 5% 0;
    flex-direction: column;
    gap: 0;
    .modern-form {
      width: 100%;
      border-radius: 0;
      box-shadow: none;

      label {
        font-size: 14px;
      }
    }
    .card {
      width: 90%;
    }
  }

  .banner--bottom {
    background-size: cover;
    background-position: center top;
    justify-content: end;
  }
}
