/**
 * Home hero banner v4 - template-parts/home/home-banner-v4.php
 * Figma: [CM] California Mobility, node 709:295 (hero-section).
 *
 * Mobile (node 848:8): one column, 20px gutters, 24px rhythm, photo inset at the bottom.
 * From 992px the photo fills the section behind a white-to-transparent gradient (1440 frame).
 */

.hero-v4 {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  overflow: hidden;
}

/* ---------- Media ---------- */
.hero-v4__media {
  position: relative;
  order: 2;
  display: block;
  height: 15.625rem;
  margin: 0 1.25rem;
}
.hero-v4__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* ---------- Layout ---------- */
.hero-v4__container {
  position: relative;
  z-index: 1;
  order: 1;
  padding: 0 1.25rem;
}
.hero-v4__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 0 1.5rem;
}
.hero-v4__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 34rem;
}

/* ---------- Review badge ---------- */
.hero-v4__review {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-v4__review img {
  display: block;
  flex: none;
}
.hero-v4__review-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Noto Sans", "Nunito", sans-serif;
  font-size: 0.875rem;
  line-height: 1;
  color: #1f2b32;
  white-space: nowrap;
}
.hero-v4__review-text strong {
  font-weight: 700;
}
.hero-v4__review-divider {
  width: 1px;
  height: 0.875rem;
  background-color: #1f2b32;
}

/* ---------- Copy ---------- */
.hero-v4__title {
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 2.75rem;
  color: #1f2b32;
  margin: 0;
  max-width: 26rem;
}
.hero-v4__title span {
  color: #147f9c;
}
.hero-v4__description {
  font-family: "Roboto Slab", serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #1f2b32;
  margin: 0;
}

/* ---------- Bullets ---------- */
.hero-v4__bullets {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-v4__bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Noto Sans", "Nunito", sans-serif;
  font-size: 1rem;
  line-height: 1.375rem;
  color: #1f2b32;
}
.hero-v4__bullets img {
  display: block;
  flex: none;
}

/* ---------- CTAs ---------- */
.hero-v4__ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
}
.hero-v4__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.5rem 1.75rem;
  border-radius: 1.875rem;
  color: #1f2b32;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.hero-v4__btn:hover, .hero-v4__btn:focus {
  color: #1f2b32;
  filter: brightness(0.95);
}
.hero-v4__btn-icon {
  display: block;
  flex: none;
}
.hero-v4__btn--call {
  gap: 1rem;
  background-color: #19a5c9;
  font-family: "Inter", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.125rem;
}
.hero-v4__btn--call span {
  text-decoration: underline;
  text-underline-position: from-font;
	/* skip-ink breaks the underline at the "(" descender, leaving a stub that reads as a stray period */
  text-decoration-skip-ink: none;
}
.hero-v4__btn--call:hover, .hero-v4__btn--call:focus {
  text-decoration: none;
}
.hero-v4__btn-icon--phone {
  transform: scaleX(-1);
}
.hero-v4__btn--solutions {
  gap: 0.5rem;
  background-color: #e5b73b;
  font-family: "Poppins", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.125rem;
  white-space: normal;
}
.hero-v4__btn--solutions:hover, .hero-v4__btn--solutions:focus {
  text-decoration: none;
}
.hero-v4__btn-icon--arrow {
  /* the arrow asset points up-right; rotate it to point down (17px box per design) */
  margin: 2.5px;
  transform: rotate(135deg);
}

.hero-v4__microcopy {
  font-family: "Roboto Slab", serif;
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.1875rem;
  color: #1f2b32;
  margin: 0;
}

/* ---------- Tablet ---------- */
@media screen and (min-width: 576px) {
  .hero-v4__ctas {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    width: auto;
  }
  .hero-v4__btn--solutions {
    white-space: nowrap;
  }
}
@media screen and (min-width: 768px) {
  .hero-v4__container {
    padding: 0 2.5rem;
  }
  .hero-v4__media {
    height: 25rem;
    margin: 0 2.5rem;
  }
  .hero-v4__content {
    padding-top: 3rem;
  }
  .hero-v4__microcopy {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  .hero-v4__title {
    font-size: 3rem;
    line-height: 3.25rem;
  }
  .hero-v4__description {
    font-size: 1.125rem;
  }
}

/* ---------- Desktop: photo behind content ---------- */
@media screen and (min-width: 992px) {
  .hero-v4 {
    display: block;
    min-height: 42.5rem;
  }
  .hero-v4__media {
    position: absolute;
    inset: 0;
    height: auto;
    margin: 0;
  }
  .hero-v4__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #ffffff 35.9%, rgba(255, 255, 255, 0) 55.5%);
    pointer-events: none;
  }
  .hero-v4__container {
    max-width: 90rem;
    padding: 0 2.9375rem;
  }
  .hero-v4__content {
    gap: 2.5rem;
    max-width: 37.5rem;
    padding: 3.125rem 0 4rem;
  }
  .hero-v4__copy {
    gap: 1.25rem;
  }
  .hero-v4__title {
    font-size: 3.5rem;
    line-height: 3.5rem;
  }
  .hero-v4__description {
    line-height: 1.5rem;
  }
  .hero-v4__bullets {
    gap: 1.25rem;
  }
  .hero-v4__ctas {
    flex-wrap: nowrap;
  }
  .hero-v4__btn {
    padding: 1.25rem 1.75rem;
  }
  .hero-v4__btn--call {
    font-size: 1.5rem;
  }
  .hero-v4__btn--solutions {
    font-size: 1.125rem;
  }
}