@import "_global.css";
@import "_service-areas.css";

#general-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 320px;
  padding: 64px 20px;
  overflow: hidden;
  background-color: var(--primary-color);
  color: contrast-color(var(--primary-color));

  .background-image,
  .overlay {
    position: absolute;
    inset: 0;
  }

  .background-image {
    z-index: 1;

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .overlay {
    z-index: 2;
    background-color: rgb(0 0 0 / 58%);
  }

  .content-wrap {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
  }

  .content {
    .tagline {
      margin-bottom: 8px;
      color: color-mix(in srgb, contrast-color(var(--primary-color)) 80%, var(--black));
      font-size: 0.82rem;
      font-weight: 800;
      letter-spacing: 0.125em;
      text-transform: uppercase;
    }

    h2 {
      margin-bottom: 16px;
    }
  }

  @media (max-width: 850px) {
    .content-wrap {
      max-width: 650px;
      text-align: center;
    }

    .content .action-buttons {
      justify-content: center;
    }
  }
}

#general-content-1 {
  padding: 80px 20px;

  .content-wrap {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flow-root;
  }

  .image {
    float: right;
    width: min(42%, 450px);
    margin: 0 0 24px 32px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--rounding-medium);

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .tagline {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.125em;
    text-transform: uppercase;
  }

  h1 {
    margin-bottom: 16px;
  }
  h2 {
    margin-bottom: 20px;
  }
  h3 {
        margin-bottom: 10px;
      }

  @media (max-width: 850px) {
    .image {
      float: none;
      width: 100%;
      max-width: 550px;
      margin: 0 auto 24px;
    }
  }
}

#general-content-2 {
  padding: 80px 20px;

  .content-wrap {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flow-root;
  }

  .image {
    float: left;
    width: min(42%, 450px);
    margin: 0 32px 24px 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--rounding-medium);

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .tagline {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.125em;
    text-transform: uppercase;
  }

  h1 {
    margin-bottom: 16px;
  }
  h2 {
    margin-bottom: 20px;
  }
  h3 {
        margin-bottom: 10px;
      }

  @media (max-width: 850px) {
    .image {
      float: none;
      width: 100%;
      max-width: 550px;
      margin: 0 auto 24px;
    }
  }
}

#general-content-3 {
  padding: 80px 20px;

  .content-wrap {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flow-root;
  }

  h1 {
    margin-bottom: 16px;
  }
  h2 {
    margin-bottom: 20px;
  }
  h3 {
    margin-bottom: 10px;
  }
}
