/* Pressure Washing page polish.
   Targets the scope selector and its adjacent residential results section only. */

/* Scope selector: less configurator-like, more service-led. */
#fences {
  background: #ffffff;
}

#fences > .container > div:first-child {
  margin-bottom: 2rem !important;
}

#fences > .container > div:first-child p:last-child {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem !important;
  line-height: 1.7;
}

#fences > .container > .grid {
  max-width: 74rem !important;
  gap: 1rem !important;
}

#fences > .container > .grid > div {
  border-width: 1px !important;
  border-color: rgba(148, 163, 184, 0.42) !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.055) !important;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease !important;
}

#fences > .container > .grid > div:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(224, 39, 39, 0.26) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09) !important;
}

#fences > .container > .grid > div:first-child {
  border-color: rgba(224, 39, 39, 0.3) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.075) !important;
}

#fences > .container > .grid > div > img {
  height: 11.5rem !important;
}

#fences > .container > .grid > div:first-child > img {
  height: 13rem !important;
}

#fences > .container > .grid > div > div {
  height: auto !important;
  min-height: 15.25rem;
  padding: 1.25rem !important;
}

/* Client type is already obvious from the page toggle, so these badges are duplicate UI. */
#fences > .container > .grid > div > div > span:first-child {
  display: none !important;
}

#fences > .container > .grid h3 {
  font-size: 1.12rem !important;
  line-height: 1.3;
}

#fences > .container > .grid p {
  margin-top: 0.55rem !important;
  line-height: 1.55 !important;
}

#fences > .container > .grid button {
  height: 2.65rem;
  margin-top: 1rem !important;
  border-radius: 0.7rem;
}

/* Every scope is equally selectable, so all card actions share one filled
 * style. Outlining the later cards made them read as unavailable. */

@media (min-width: 1180px) {
  #fences > .container > .grid {
    grid-template-columns: 1.28fr 1fr 1fr 1fr !important;
  }
}

/* Residential results: merge the two proof cards into one comparison frame. */
#fences + section.border-y.bg-slate-50 {
  background: #f8fafc !important;
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

#fences + section.border-y.bg-slate-50 > .container > .grid {
  max-width: 70rem !important;
  gap: 3.5rem !important;
}

#fences + section.border-y.bg-slate-50 > .container > .grid > div:first-child {
  max-width: 31rem;
}

#fences + section.border-y.bg-slate-50 > .container > .grid > div:first-child p:last-of-type {
  font-size: 1rem !important;
  line-height: 1.75 !important;
}

#fences + section.border-y.bg-slate-50 > .container > .grid > div:last-child {
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.1);
}

#fences + section.border-y.bg-slate-50 > .container > .grid > div:last-child > div {
  position: relative;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#fences + section.border-y.bg-slate-50 > .container > .grid > div:last-child > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.7) !important;
}

#fences + section.border-y.bg-slate-50 > .container > .grid > div:last-child > div > div:first-child {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  padding: 0.38rem 0.7rem !important;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff !important;
  font-size: 0.7rem !important;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
}

#fences + section.border-y.bg-slate-50 > .container > .grid > div:last-child img {
  aspect-ratio: 4 / 3 !important;
  min-height: 100%;
}

@media (min-width: 768px) and (max-width: 1179px) {
  #fences > .container > .grid > div:first-child > img,
  #fences > .container > .grid > div > img {
    height: 12rem !important;
  }
}

@media (max-width: 767px) {
  #fences {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  #fences > .container > .grid > div > div {
    min-height: 0;
    padding: 1rem !important;
  }

  /* Keep the phone cards short enough that a second card is always peeking. */
  #fences > .container > .grid > div > img,
  #fences > .container > .grid > div:first-child > img {
    height: 8rem !important;
  }

  #fences > .container > .grid h3 {
    font-size: 1.05rem !important;
  }

  #fences > .container > .grid > div:first-child {
    margin-bottom: 0;
  }

  #fences + section.border-y.bg-slate-50 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  #fences + section.border-y.bg-slate-50 > .container > .grid {
    gap: 1.25rem !important;
  }
}
