.locations-feature {
  padding: clamp(48px, 7vw, 104px) max(6vw, 24px);
  background: #102936;
  color: #f3f5f7;
}

.locations-feature-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .65fr);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.locations-feature h2,
.contact-feature h2 {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 84px);
  line-height: .98;
  letter-spacing: -.055em;
}

.locations-feature h2 em {
  color: var(--blue);
  font-style: normal;
}

.locations-feature-header p,
.contact-feature-copy p {
  max-width: 44ch;
  margin: 0 0 18px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
}

.locations-feature-link,
.contact-feature-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.locations-feature-link {
  color: #fff;
}

.locations-feature-link:hover {
  color: var(--blue);
}

.locations-feature-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}

.locations-feature-photos figure,
.contact-feature-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.locations-feature-photos figure {
  border: 1px solid #ffffff28;
  border-radius: 8px;
}

.locations-feature-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.locations-feature-photos figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 35px 16px 16px;
  background: linear-gradient(transparent, #07131a);
  color: #fff;
  font: 700 clamp(20px, 2.2vw, 34px)/1.03 var(--title);
}

.locations-feature-photos figcaption span {
  display: block;
  margin-top: 6px;
  font: 500 13px/1.2 var(--body);
}

.locations-feature .texas-photo-credits {
  width: fit-content;
  max-width: 100%;
  margin: 16px 0 0;
  color: #c3d3df;
  font-size: 13px;
}

.locations-feature .texas-photo-credits summary {
  cursor: pointer;
  font-size: inherit;
}

.locations-feature .texas-photo-credits a {
  text-decoration: underline;
}

.contact-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--lime);
  color: #0c2119;
}

.contact-feature-copy {
  align-self: center;
  padding: clamp(48px, 7vw, 105px) clamp(24px, 5vw, 80px) clamp(48px, 7vw, 105px) max(6vw, 24px);
}

.contact-feature h2 {
  font-size: clamp(32px, 3.75vw, 72px);
}

.contact-feature h2 em {
  color: #304c2b;
  font-style: normal;
}

.contact-feature-copy p {
  margin: 24px 0 28px;
}

.contact-feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
}

.contact-feature-button {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid #0c2119;
  border-radius: 5px;
  background: #0c2119;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.contact-feature-button:hover {
  background: #304c2b;
}

.contact-feature-text {
  min-height: 44px;
  color: #0c2119;
}

.contact-feature-photo {
  min-height: 360px;
  background: #263a30;
}

.contact-feature-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#quote-form,
#texas-roots,
#make-it-visible {
  scroll-margin-top: 120px;
}

.locations-feature :where(a, summary):focus-visible,
.contact-feature a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.contact-feature-button:focus-visible {
  outline-color: #0c2119;
}

@media (max-width: 760px) {
  .locations-feature-header,
  .contact-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .locations-feature-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .locations-feature-photos figure:first-child {
    grid-column: span 2;
  }

  .locations-feature-photos figure:first-child img {
    aspect-ratio: 16 / 9;
  }

  .contact-feature-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .contact-feature h2 {
    font-size: clamp(32px, 6vw, 54px);
  }
}
