:root {
  --color1: #bddf00;
  --color2: #fac543;
  --text: #5f5f5f;
}
html {
  scroll-behavior: smooth;
}
.mobile-only {
  display: none;
}
header {
  z-index: -1;
  opacity: 0;
  top: -999px !important;
}
.hero-container {
  overflow-x: clip;
  position: relative;

  .hero {
    /* background-color: lime; */
    position: absolute;
    width: 100%;
    /* min-height: 1650px; */

    inset: 0;
    z-index: -1;
    img {
      width: 100vw;
      opacity: 1;
      object-fit: cover;
      object-position: center;
    }
  }

  .wrapper {
    width: min(100%, 75%);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
    color: #fff;
    height: 100%;
    text-align: center;
    margin-inline: auto;

    @media (min-width: 992px) and (max-width: 1200px) {
      width: min(100%, 100%);
    }
  }
}
.welcome {
  margin-top: 31.5vw;
  width: min(100%, 1024px);
  line-height: 1.2;
  color: #fff;
  text-align: center;
  @media (min-width: 992px) and (max-width: 1200px) {
    width: min(100%, 75%);
  }
  p {
    font-size: calc(3vw + 16px);
    font-weight: 300;
    margin: 0;
  }
  h1 {
    font-size: calc(6vw + 16px);
    font-weight: 700;
    position: relative;
    p {
      margin: 0;
      line-height: 1;
    }

    &::after {
      margin-top: 1.52rem;
      margin-bottom: 3rem;
      content: "";
      position: relative;
      display: block;
      bottom: 0;
      width: 185px;
      height: 3px;
      background-color: var(--color1);
      margin-inline: auto;
    }
  }
  span {
    font-size: calc(1.1vw + 16px);
    font-weight: 400;
  }
}

.nav {
  padding-block: 9vw;
  display: flex;
  justify-content: center;
  width: 75%;
  gap: 0.5rem 1.5rem;

  a {
    padding: 0.5rem 1.4rem;
    border: 1px solid var(--color1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color1);
    font-size: calc(0.45vw + 16px);
    margin: 0.5rem 0;
    &:hover {
      transform: scale(1.1);
      color: #fff;
      border-color: #fff;
      text-decoration: none;
    }
  }
}

.main {
  overflow-x: clip;
  margin-block: 5rem;
}
section {
  display: flex;
  position: relative;

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 75%;
    margin: auto;
    height: 2px;
    bottom: -98%;
    background-color: #efefef;
  }

  h2 {
    font-size: calc(2.52vw + 16px);
    font-weight: 700;
    line-height: 1;
    color: var(--prime1);
    position: relative;
    width: min-content;
    background-color: #fff;
    padding: 0.5rem 2rem;
    position: relative;
  }
  h2::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: 350px;
    background-position: center;
    background-size: cover;
    background-image: url(./images/deco.png);
    z-index: -1;
  }

  .lined {
    display: flex;
    justify-content: center;
    width: 82%;
    margin-inline: auto;
  }

  &:nth-child(even) {
    h2::after {
      right: -100px;
    }
  }
  &:nth-child(odd) {
    flex-direction: row-reverse;
    h2 {
      text-align: left;
    }
    h2::after {
      left: -110px;
    }
  }
}

.lined {
  a {
    margin-inline: 1rem;
    border: 2px solid var(--color2);
    padding: 2.5rem 1.5rem 1rem;
    position: relative;
    color: var(--text);
    font-size: calc(0.25vw + 16px);
    flex: 1 1 280px;
    max-width: 280px;
    height: 120px;
    &:hover {
      transform: scale(1.2);
      color: var(--prime1);
      border-color: var(--color1);
    }

    @media (max-width: 1500px) {
      height: auto;
    }
  }
  .icon {
    width: 65px;
    height: 65px;
    position: absolute;
    right: 1rem;
    top: -1.95rem;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  img {
    margin: auto;
    width: 79%;
    object-fit: cover;
    object-position: center;
  }
  span {
    display: inline-block;
  }
  .linebreak {
    width: 82%;
    @media (max-width: 1599px) {
      width: 99%;
    }
  }
}

.backbtn {
  position: absolute;
  left: 100px;
  top: 30px;
  z-index: 1;
  a {
    color: #fff;
    border-radius: 50px;
    border: 2px solid #fff;
    text-align: center;
    font-size: calc(0.125vw + 16px);
    padding: 5px 1.25rem;
    background-color: rgba(10, 92, 136, 0.57);
  }
  a:hover {
    transform: scale(1.2);
  }
  i {
    display: none;
  }

  @media (max-width: 991px) {
    top: 40px;
    left: 70px;
    a {
      padding: 10px;
    }
    span {
      display: none;
    }
    i {
      display: inline-block;
    }
  }
}

@media (min-width: 992px) {
  section {
    padding-block: 8.2rem;
    &:nth-child(odd) {
      h2 {
        padding-left: 6rem;
      }
    }
    &:nth-child(even) {
      h2 {
        padding-right: 6rem;
      }
    }
  }
}

@media (max-width: 991px) {
  .main {
    margin-block: 2.5rem;
  }
  .hero-container {
    height: auto;
    background-position: center;
  }
  .welcome {
    margin-top: 36vw;
    p {
      font-size: calc(5vw + 16px);
    }
    h1 {
      font-size: calc(8vw + 16px);
    }
    span {
      font-size: calc(1.8vw + 16px);
    }
  }
  .nav {
    padding-block: 15.5vw;
    a {
      text-align: right;
      justify-content: flex-start;
      color: var(--prime1);
      flex: 1 0 48%;
      font-size: calc(1.75vw + 16px);
      border: none;
      border-bottom: 1px solid #e9e9e9;
      background-color: rgba(255, 255, 255, 0.75);

      &:hover {
        transform: none;
        color: var(--prime1);
      }
    }
  }
  section {
    padding-block: 9.75rem;
    h2 {
      font-size: calc(6.5vw + 16px);
      position: absolute;
      top: -3rem;
      padding-right: 3rem;
      padding-left: 3rem;
      &::after {
        width: 240px;
        height: 240px;
      }
    }
    .lined {
      width: 98%;
      flex-wrap: wrap;
      gap: 3rem 0rem;
      a {
        padding: 2.5rem 1.2rem 1rem;
        max-width: 41%;
        &:hover {
          transform: none;
        }
      }
    }
  }
}

@media (max-width: 700px) {
  .desktop,
  .hero-container .desktop {
    display: none;
  }
  /* .hero-container .hero {
    position: relative;
  } */

  .wrapper.mobile-only {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5rem;
  }
  .main {
    margin-top: 0;
    .welcome {
      margin-top: 25vw;
      color: var(--prime1);
      padding-inline: 1.5rem;
    }
  }

  .nav {
    padding-block: 50px;
    padding-inline: 2rem;
  }
}

@media (max-width: 390px) {
  section {
    .lined {
      a {
        max-width: 100%;
      }
    }
  }
}
