:root {
  --color-pulse: #5CB85C;
}

/* ========== BASE ========== */
body {
  color: #fff;
  background: #1C9DF5;
  font-family: 'Poppins', sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  transition: 0.3s ease-in-out;

  &:hover {
    opacity: 0.8;
  }
}

/* ========== CONTAINER ========== */
.container {
  width: 100%;
  max-width: 1675px;
  padding: 0;
  margin: 0 auto;
}

.cta {
  width: 270px;
  max-width: 270px;
  height: 60px;
  max-height: clamp(2.5rem, 1.0714rem + 2.2321vw, 3.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1D9CF6;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;

  p {
    color: #000F15;
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: Poppins;
    font-size: clamp(0.9375rem, 0.5804rem + 0.558vw, 1.25rem);
    font-style: italic;
    font-weight: 900;
    line-height: 90%;
    letter-spacing: -0.4px;
    margin: 0;
  }
}

.horizontal-divider {
  width: 100%;
  height: 1px;
  background: #073450;
  margin: 0 auto;
}

.belicia-regular {
  font-family: 'Belicia', sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-regular {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-style: normal;
}

.pulse {
  display: inline-block;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: var(--color-pulse);
  -webkit-animation: pulse 2s infinite;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    -webkit-box-shadow: 0 0 0 0 var(--color-pulse);
    box-shadow: 0 0 0 0 var(--color-pulse);
  }
  70% {
    -webkit-box-shadow: 0 0 0 10px hsla(0, 0%, 100%, 0);
    box-shadow: 0 0 0 10px hsla(0, 0%, 100%, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 0 hsla(0, 0%, 100%, 0);
    box-shadow: 0 0 0 0 hsla(0, 0%, 100%, 0);
  }
}

/* ========== MIXINS ========== */
@mixin phone-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  p {
    color: #F5F5F5;
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: Poppins;
    font-size: 20px;
    font-style: italic;
    font-weight: 900;
    line-height: 90%;
    letter-spacing: -0.4px;
  }
}

@mixin form-input-base {
  border-radius: 10px;
  background: #001F2B;
  color: #F5F5F5;
  font-family: Poppins;
  font-size: clamp(0.75rem, 0.4643rem + 0.4464vw, 1rem);
  border: none;
  outline: none;
}

/* ========== HEADER ========== */
header {
  width: 100%;
  background: #000F15;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  .desktop-menu {
    height: 110px;
    max-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2%;

    @media (max-width: 1439.98px) {
      height: clamp(5.9375rem, 3.6298rem + 3.6058vw, 6.875rem);
      max-height: clamp(5.9375rem, 3.6298rem + 3.6058vw, 6.875rem);
    }

    @media (max-width: 1023.98px) {
      display: none;
    }

    .left-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 420px;
      width: 100%;

      @media (max-width: 1439.98px) {
        max-width: clamp(19.375rem, 2.4519rem + 26.4423vw, 26.25rem);
      }

      .left-content {
        p {
          color: #F6361D;
          leading-trim: both;
          text-edge: cap;
          font-family: Poppins;
          font-size: 23.214px;
          font-style: italic;
          font-weight: 900;
          line-height: 100%;
          letter-spacing: -0.464px;

          @media (max-width: 1439.98px) {
            font-size: clamp(1.125rem, 0.3228rem + 1.2534vw, 1.450875rem);
          }

          span {
            color: #F6361D;
            leading-trim: both;
            text-edge: cap;
            font-family: Poppins;
            font-size: 18.571px;
            font-style: italic;
            font-weight: 900;
            line-height: 100%;
            letter-spacing: -0.371px;

            @media (max-width: 1439.98px) {
              font-size: clamp(0.875rem, 0.1718rem + 1.0988vw, 1.1606875rem);
            }
          }
        }
      }

      .right-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;

        @media (max-width: 1439.98px) {
          gap: clamp(0.3125rem, -0.4567rem + 1.2019vw, 0.625rem);
        }

        p {
          color: #F5F5F5;
          leading-trim: both;
          text-edge: cap;
          font-family: Poppins;
          font-size: 25px;
          font-style: italic;
          font-weight: 900;
          line-height: 100%;
          letter-spacing: -0.5px;

          @media (max-width: 1439.98px) {
            font-size: clamp(1.125rem, 0.0481rem + 1.6827vw, 1.5625rem);
          }
        }
      }
    }

    .middle-container {
      background: #000F15;
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 320px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 20px;
      padding: 30px;
      box-shadow: 0 12px 24px -14px rgba(255, 255, 255, 0.5);

      &:hover {
        opacity: 1;
      }

      @media (max-width: 1439.98px) {
        width: clamp(13.75rem, -1.6346rem + 24.0385vw, 20rem);
        padding: clamp(1.25rem, -0.2885rem + 2.4038vw, 1.875rem);
      }
    }

    .right-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 30px;
      max-width: 470px;
      width: 100%;

      @media (max-width: 1439.98px) {
        max-width: clamp(22.1875rem, 6.0337rem + 25.2404vw, 28.75rem);
        gap: clamp(0.625rem, -2.4519rem + 4.8077vw, 1.875rem);
      }

      .phone {
        @include phone-link;

        @media (max-width: 1439.98px) {
          gap: clamp(0.3125rem, -0.4567rem + 1.2019vw, 0.625rem);

          p {
            font-size: clamp(1rem, 0.3846rem + 0.9615vw, 1.25rem);
          }
        }
      }

      .free-quote {
        @media (max-width: 1439.98px) {
          width: clamp(12.5rem, 1.7308rem + 16.8269vw, 16.875rem);
          max-width: clamp(12.5rem, 1.7308rem + 16.8269vw, 16.875rem);
          height: clamp(2.8125rem, 0.5048rem + 3.6058vw, 3.75rem);
          max-height: clamp(2.8125rem, 0.5048rem + 3.6058vw, 3.75rem);

          p {
            font-size: clamp(0.9375rem, 0.1683rem + 1.2019vw, 1.25rem);
          }
        }
      }
    }
  }

  .mobile-menu {
    display: none;
    height: 150px;
    max-height: 150px;

    @media (max-width: 1023.98px) {
      display: block;
    }

    @media (max-width: 767.98px) {
      max-height: 130px;
    }

    .top-container {
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 5px 2%;

      .left-content {
        p {
          color: #F6361D;
          leading-trim: both;
          text-edge: cap;
          font-family: Poppins;
          font-size: 14px;
          font-style: italic;
          font-weight: 900;
          line-height: 100%;
          letter-spacing: -0.464px;

          span {
            color: #F6361D;
            leading-trim: both;
            text-edge: cap;
            font-family: Poppins;
            font-size: 11px;
            font-style: italic;
            font-weight: 900;
            line-height: 100%;
            letter-spacing: -0.371px;
          }
        }
      }

      .right-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 5px;

        img {
          width: 15px;
          height: 15px;
        }

        p {
          color: #F5F5F5;
          leading-trim: both;
          text-edge: cap;
          font-family: Poppins;
          font-size: 14px;
          font-style: italic;
          font-weight: 900;
          line-height: 100%;
          letter-spacing: -0.5px;
        }
      }
    }

    .bottom-container {
      height: 72%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2%;

      @media (max-width: 767.98px) {
        height: 68%;
      }

      .left-container {
        height: 100%;
        display: flex;
        align-items: start;
        padding-top: 5px;

        picture {
          width: 75%;

          @media (max-width: 767.98px) {
            width: 60%;
          }
          
          @media (max-width: 534.98px) {
            width: clamp(9.375rem, 6.4453rem + 12.5vw, 10.625rem);
            height: 70px;

            img {
              width: 100%;
              height: 100%;
            }
          }
        }

        @media (max-width: 767.98px) {
          padding-top: 7px;
        }
      }

      .right-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 390px;
        width: 100%;

        @media (max-width: 767.98px) {
          max-width: 230px;
        }

        @media (max-width: 479.98px) {
          max-width: 185px;
        }

        .phone {
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 15px;

          img {
            width: 20px;
            height: 20px;
          }

          p {
            color: #F5F5F5;
            text-align: center;
            leading-trim: both;
            text-edge: cap;
            font-family: Poppins;
            font-size: 16px;
            font-style: italic;
            font-weight: 900;
            line-height: 90%;
            letter-spacing: -0.4px;

            @media (max-width: 767.98px) {
              display: none;
            }
          }
        }

        .free-quote {
          max-width: 220px;
          max-height: 50px;

          @media (max-width: 767.98px) {
            max-width: 180px;
            max-height: 40px;
          }

          @media (max-width: 479.98px) {
            max-width: 150px;
            max-height: 35px;
          }

          p {
            font-size: 16px;

            @media (max-width: 767.98px) {
              font-size: 14px;
            }

            @media (max-width: 479.98px) {
              font-size: 12px;
            }
          }
        }
      }
    }
  }
}

/* ========== BANNER SECTION ========== */
section.banner-section {
  width: 100%;
  height: 100%;
  max-height: 100%;
  background: #1C9DF5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(11.25rem, 9.8214rem + 2.2321vw, 12.5rem) 2% 20px 2%;

  @media (max-width: 767.98px) {
    padding: 160px 2% 20px 2%;
  }

  .banner-wrapper {
    position: relative;
    height: 820px;
    max-height: clamp(35.625rem, 17.7679rem + 27.9018vw, 51.25rem);
    width: 1840px;
    max-width: 1840px;
    background: #000F15;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    border: 2px solid #F5F5F5;
    box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.40);

    @media (max-width: 1023.98px) {
      max-height: 620px;
      height: 100%;
      width: 100%;
      max-width: 100%;
    }

    @media (max-width: 479.98px) {
      max-height: 650px;
      height: 100%;
    }

    .background-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 37px;
      background: url('/assets/images/banner/container-bg.png') no-repeat center center;
      background-size: cover;
      z-index: 0;
    }

    .banner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2%;
      z-index: 1;

      @media (max-width: 1023.98px) {
        flex-direction: column;
        padding: 4% 2%;
        gap: 30px;
      }

      @media (max-width: 479.98px) {
        gap: 15px;
      }

      .left-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 40px;

        @media (max-width: 1023.98px) {
          align-items: center;
          flex: unset;
        }

        .banner-logo {
          max-width: clamp(24.375rem, 8.8036rem + 24.3304vw, 38rem);
          object-fit: contain;
          object-position: center;
        }

        picture:has(> .banner-logo) {
          @media (max-width: 1023.98px) {
            display: none;
          }
          @media (min-width: 1024px) {
            display: block;
          }
        }

        .cta-rating-container {
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          justify-content: space-between;
          gap: 40px;

          @media (max-width: 1023.98px) {
            flex-direction: row;
            align-items: center;
          }

          .contact-plumber {
            max-width: clamp(12.5rem, 7.5rem + 7.8125vw, 16.875rem);
            margin-top: clamp(0.625rem, -2.6607rem + 5.1339vw, 3.5rem);

            p {
              font-size: clamp(0.9375rem, 0.5804rem + 0.558vw, 1.25rem);

              @media (max-width: 767.98px) {
                font-size: 14px;
              }

              @media (max-width: 479.98px) {
                font-size: 12px;
              }
            }

            @media (max-width: 1023.98px) {
              margin-top: 0;
            }

            @media (max-width: 767.98px) {
              max-width: 180px;
              max-height: 40px;
            }

            @media (max-width: 479.98px) {
              max-width: 150px;
              max-height: 35px;
            }
          }

          .google-rating {
            max-width: clamp(10.3125rem, 6.5982rem + 5.8036vw, 13.5625rem);

            @media (max-width: 479.98px) {
              max-width: 140px;
            }
          }
        }
      }

      .right-content {
        flex: 1;
        max-width: clamp(28.125rem, 4.5536rem + 36.8304vw, 48.75rem);
        max-height: clamp(35rem, 25.3571rem + 15.067vw, 43.4375rem);
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000F15;
        border-radius: 40px;
        border: 2px solid #F5F5F5;
        box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.40);
        padding: clamp(2.1875rem, 0.5446rem + 2.567vw, 3.625rem) clamp(1.75rem, -1.25rem + 4.6875vw, 4.375rem);

        @media (max-width: 1023.98px) {
          flex: unset;
        }

        @media (max-width: 479.98px) {
          font-size: 50px;
          max-width: 440px;
          width: 100%;
        }

        .form-container {
          display: flex;
          align-items: center;
          justify-content: space-between;
          flex-direction: column;
          gap: 20px;
          width: 100%;

          h2 {
            color: #1D9CF6;
            leading-trim: both;
            text-edge: cap;
            font-feature-settings: 'ss02' on;
            font-family: Belicia;
            font-size: clamp(3.75rem, 0.6888rem + 4.7831vw, 6.4285625rem);
            font-style: normal;
            font-weight: 400;
            line-height: .8;

            @media (max-width: 479.98px) {
              font-size: 50px;
            }
          }

          p {
            color: #F5F5F5;
            leading-trim: both;
            text-edge: cap;
            font-family: Poppins;
            font-size: clamp(1.875rem, 0.5893rem + 2.0089vw, 3rem);
            font-style: normal;
            font-weight: 700;
            line-height: 90%;
            letter-spacing: -0.96px;
            margin-bottom: clamp(1.25rem, -0.1786rem + 2.2321vw, 2.5rem);

            @media (max-width: 479.98px) {
              font-size: 25px;
            }
          }

          form {
            width: 100%;
          }

          .form-group {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            gap: clamp(0.9375rem, 0.5804rem + 0.558vw, 1.25rem) clamp(0.9375rem, 0.2946rem + 1.0045vw, 1.5rem);
            max-width: 642px;
            height: 100%;

            input {
              height: clamp(2.5rem, 1.4286rem + 1.6741vw, 3.4375rem);
              @include form-input-base;
              padding: 0 20px;
            }

            select {
              height: clamp(2.5rem, 1.4286rem + 1.6741vw, 3.4375rem);
              @include form-input-base;
              padding: 0 45px 0 20px;
              cursor: pointer;
              position: relative;
              background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F5F5F5' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
              background-repeat: no-repeat;
              background-position: right 20px center;
              background-size: 12px;

              option {
                background: #001F2B;
                color: #F5F5F5;
              }

              option:disabled {
                color: rgba(245, 245, 245, 0.5);
              }
            }

            textarea {
              height: clamp(2.5rem, 1.4286rem + 1.6741vw, 3.4375rem);
              @include form-input-base;
              padding: 15px 20px;
              line-height: 1.2;
              resize: vertical;
            }

            #name { grid-column: span 6; }
            #phone { grid-column: span 6; }
            #email { grid-column: span 8; }
            #postcode { grid-column: span 4; }
            #services,
            #info,
            .send-request {
              grid-column: span 12;
            }

            @media (max-width: 479.98px) {
              #name,
              #phone,
              #email,
              #postcode,
              #services,
              #info,
              .send-request {
                grid-column: span 12;
              }
            }
          }

          a,
          button {
            width: 100%;
            max-width: inherit;
            margin-top: 20px;
            transition: 0.3s ease-in-out;

            p {
              color: #000F15;
              text-align: center;
              leading-trim: both;
              text-edge: cap;
              font-family: Poppins;
              font-size: clamp(0.9375rem, 0.5804rem + 0.558vw, 1.25rem);
              font-style: italic;
              font-weight: 900;
              line-height: 90%;
              letter-spacing: -0.4px;
              margin-bottom: 0;
            }

            &:hover {
              opacity: 0.8;
            }
          }
        }
      }
    }
  }
}
