/* Google Search Ads and Local Services Ads service page. */
.reference-google-ads {
  & .service-hero {
    padding-block: clamp(17px, 2.2vw, 32px);
    background: var(--service-dark) url("/work/custom-website/graphite-contours.webp") center / cover no-repeat;
  }

  & .service-hero-layout {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  }

  & .service-hero h1 {
    max-width: 21ch;
    font-size: clamp(30px, 4.05vw, 54px);
  }

  & .service-hero h1 strong {
    display: block;
  }

  & .ads-flow {
    display: grid;
    gap: clamp(9px, 1.2vw, 14px);
    min-width: 0;
  }

  & .ads-flow-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(6px, 1.4vw, 17px);
    min-height: clamp(95px, 12vw, 146px);
    padding: clamp(10px, 1.55vw, 21px);
    border: 1px solid #b8b8b8;
    border-radius: 17px;
    background: rgb(16 20 22 / 80%);
  }

  & .ads-flow-featured {
    border: 2px solid var(--service-orange);
    box-shadow: 0 0 17px rgb(255 88 0 / 34%), inset 0 0 12px rgb(255 88 0 / 18%);
  }

  & .ads-flow-step {
    display: grid;
    gap: 6px;
    min-width: 0;
    justify-items: start;
    padding-inline: clamp(1px, 1.6vw, 22px);
  }

  & .ads-flow-step:last-child {
    border-inline-start: 1px solid #85888a;
  }

  & .ads-flow-step strong {
    max-width: 15ch;
    font-size: clamp(14px, 2vw, 24px);
    font-weight: 820;
    letter-spacing: -0.033em;
    line-height: 1.06;
  }

  & .ads-flow-step .reference-icon {
    color: var(--service-orange);
    font-size: clamp(29px, 5vw, 58px);
  }

  & .ads-flow-step:last-child .reference-icon {
    color: var(--service-white);
  }

  & .ads-flow-icon {
    display: inline-grid;
    position: relative;
  }

  & .ads-flow-icon .reference-icon:last-child {
    position: absolute;
    color: var(--service-orange);
    font-size: clamp(16px, 3vw, 34px);
  }

  & .ads-flow-icon-browser .reference-icon:last-child {
    inset: 36% 0 auto;
    margin-inline: auto;
    clip-path: inset(18%);
  }

  & .ads-flow-icon-calendar::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: auto 0 0 auto;
    width: 54%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--service-dark);
  }

  & .ads-flow-icon-calendar .reference-icon:last-child {
    inset: auto 0 0 auto;
    z-index: 2;
  }

  & .ads-flow-row > .reference-icon {
    color: var(--service-orange);
    font-size: clamp(21px, 3vw, 37px);
  }

  & .ads-verified-label {
    display: inline-block;
  }

  & .ads-verified-label .reference-icon {
    font-size: 1.2em;
    vertical-align: -0.24em;
  }

  & .service-closing::before {
    background: url("/work/google-ads/twilight-ridges.webp") center 17% / cover no-repeat;
    filter: none;
    opacity: 0.67;
  }

  & .service-closing h2 strong {
    display: block;
    color: var(--service-orange);
    font-weight: inherit;
  }

  & .service-closing p {
    max-width: min(65ch, 640px);
  }
}

@media (width >= 761px) {
  .reference-google-ads {
    & .service-band {
      padding-top: clamp(11px, 1.4vw, 21px);
    }

    & .ads-channel-comparison :is(th, td) {
      padding-block: 7px;
    }

    & :is(.service-gaps, .service-steps) li {
      padding: clamp(10px, 1.15vw, 17px);
    }

    & .service-faq {
      padding-bottom: clamp(16px, 1.8vw, 25px);
    }

    & .service-closing {
      padding-block: clamp(14px, 1.65vw, 23px);
    }
  }
}

@media (width >= 1024px) {
  .reference-google-ads .service-audit {
    background: var(--service-orange);
    font-size: 19px;
  }
}

@media (max-width: 640px) {
  .reference-google-ads {
    & .service-hero-layout {
      grid-template-columns: minmax(0, 1fr);
    }

    & .service-hero h1 {
      font-size: clamp(32px, 8.3vw, 46px);
    }

    & .ads-flow {
      width: min(100%, 460px);
      margin-inline: auto;
    }
  }
}
