/*********************
Layout pass (2026-11-03): hero heading, work-with-us collage, four
neighborhoods, shorter inner heroes and phone archives.
Loaded after every page stylesheet (includes/class.php, priority 20).
*********************/

/* hero: H1 + line over the video, search under it */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 26, 26, 0.15) 0%, rgba(13, 26, 26, 0.45) 100%);
  pointer-events: none;
}

.hero .search-header {
  z-index: 1;
}

.hero--intro {
  margin-block-end: 1.75rem;
  text-align: center;
  color: #fff;
}

.hero--title {
  margin: 0;
  font-family: var(--font-family);
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero--sub {
  margin: 0.875rem auto 0;
  max-width: 40rem;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

/* work with us: a clean collage (tall photo right, two stacked left) instead of
   absolutely placed photos that overlapped each other and the text */
.workUs {
  padding-block: 120px;
}

.workUs--img {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  height: 620px;
}

.workUs--img img,
.workUs--img .workUs-img-1,
.workUs--img .workUs-img-2,
.workUs--img .workUs-img-3 {
  position: static;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  border-radius: var(--border-radius30);
}

.workUs--img .workUs-img-1 {
  grid-column: 2;
  grid-row: 1 / 3;
}

.workUs--img .workUs-img-2 {
  grid-column: 1;
  grid-row: 1;
}

.workUs--img .workUs-img-3 {
  grid-column: 1;
  grid-row: 2;
}

/* neighborhoods: four arches in one row */
.neighborhoods--content ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.neighborhoods--content ul li {
  margin: 0;
  flex-basis: auto;
}

/* inner heroes: a band, not a full screen (single.css pins the post hero to 100vh) */
.heroInner--content,
.heroInner--singleBlog .heroInner--content {
  min-height: clamp(420px, 62vh, 640px);
  padding-block: 9rem 3.5rem;
}

@media screen and (max-width: 992px) {
  .workUs--content {
    flex-direction: column;
    row-gap: 2.5rem;
  }

  .workUs--text,
  .workUs--img {
    width: 100%;
  }

  .neighborhoods--content ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .hero--title {
    font-size: clamp(1.875rem, 8.5vw, 2.5rem);
  }

  .hero--sub {
    font-size: var(--text-base);
  }

  .hero--intro {
    margin-block-end: 1.25rem;
  }

  /* collage on phones: wide photo on top, the other two side by side */
  .workUs {
    padding-block: 4rem;
  }

  .workUs--img {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    height: auto;
    gap: 0.625rem;
  }

  .workUs--img .workUs-img-1 {
    grid-column: 1 / 3;
    grid-row: 1;
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .workUs--img .workUs-img-2,
  .workUs--img .workUs-img-3 {
    grid-row: 2;
    aspect-ratio: 1;
    height: auto;
    border-radius: 20px;
  }

  .workUs--img .workUs-img-2 {
    grid-column: 1;
  }

  .workUs--img .workUs-img-3 {
    grid-column: 2;
  }

  .workUs--text p {
    padding-inline-end: 0;
  }

  .workUs--text .workUs--text__btn {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  /* neighborhoods 2 x 2 */
  .neighborhoods--content ul {
    gap: 0.75rem;
  }

  .neighborhoods--content ul li a > p {
    margin-block-start: 0.625rem;
    font-size: var(--text-base);
  }

  /* inner heroes as tall as their title */
  .heroInner--content,
  .heroInner--singleBlog .heroInner--content {
    min-height: 0;
    padding-block: 8.5rem 2.5rem;
  }

  .heroInner--singleBlog {
    margin-block-end: 2.5rem !important;
  }

  .heroInner--content > h1,
  .heroInner--content h1 {
    width: 100%;
    font-size: clamp(1.875rem, 8.5vw, 2.5rem);
    line-height: 1.15;
  }

  .heroInner--content .description p,
  .heroInner--content > p {
    width: 100%;
    margin-block-start: 0.75rem;
  }

  .heroInner--content .breadcrumb--content {
    margin-block-end: 1rem;
  }

  /* blog archive + search: two per row */
  .blogs--content ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 0.75rem;
  }

  .blogs--content ul li {
    margin: 0;
    flex-basis: auto;
    min-width: 0;
    padding-bottom: 1.75rem;
  }

  .blogs--content ul li a.under--blogs--img > img {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    margin-block-end: 0.625rem;
  }

  .blogs--content ul li h2 {
    font-size: var(--text-base);
    line-height: 1.3;
  }

  .blogs--content ul li p {
    font-size: var(--text-sm);
    line-height: 1.45;
    margin-block: 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blogs--content ul li a.btn {
    font-size: var(--text-sm);
  }
}
