.pm-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--desktop-padding);
}

@media (max-width: 900px) {
  .pm-container {
    padding: 0 var(--mobile-padding);
  }
}

/* ---------- Hero ---------- */

.pm-hero {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 90px;
  background-position: center 20%;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--color-white);
}


.pm-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.pm-hero-content .pm-eyebrow {

  letter-spacing: 0.1em;
  color: var(--color-white-70);
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6em;
}

.pm-hero h1 {
  font-family: var(--font-display);
  font-size: var(--banner-big-heading-size);
  font-weight: 400;
  line-height: 1.15em;
  letter-spacing: -0.5px;
  color: var(--color-white);
  margin: 0 auto 24px;
  max-width: 959px;

}

.pm-hero p.pm-lede {
  font-family: var(--font-body-alt);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-white-90);
  max-width: 44ch;
  margin: 0 auto;
}

/* ---------- Counters strip ---------- */

.pm-counters {
  background: var(--color-black);
  color: var(--color-white);
}

.pm-counters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pm-counter-item {
  padding: 48px var(--desktop-padding);
  text-align: center;
  border-left: 1px solid;
  border-image-source: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.01) 100%);
  border-image-slice: 1;
}

.pm-counter-item:first-child {
  border-left: none;
}

.pm-counter-number {
  font-family: var(--font-number);
  font-size: var(--counter-number-size);
  line-height: var(--counter-number-line-height);
  letter-spacing: var(--counter-number-letter-spacing, 0);
  font-weight: 400;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
  font-variant-numeric: tabular-nums;
  -webkit-font-variant-numeric: tabular-nums;
}

.pm-counter-label {
  font-family: var(--font-mono);
  font-size: var(--counter-label-size);
  line-height: var(--counter-label-line-height);
  letter-spacing: var(--counter-label-letter-spacing, 0);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white-70);
}

@media (max-width: 700px) {
  .pm-counters-grid {
    grid-template-columns: 1fr;
  }

  .pm-counter-item {
    border-left: none;
    border-top: 1px solid;
    border-image-source: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.01) 100%);
    border-image-slice: 1;
    padding: 32px 16px;
  }

  .pm-counter-item:first-child {
    border-top: none;
  }
}

/* ---------- About ---------- */

.pm-about {
  padding: 120px 0;
}

@media (max-width: 900px) {
  .pm-about {
    padding: 72px 0;
  }
}

.pm-about-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.pm-about-head h2 {
  font-family: var(--font-display);
  font-size: var(--fluid-section);
  font-weight: 400;
  line-height: 1.4em;
  letter-spacing: -0.8px;
  color: var(--color-black);
  margin-bottom: 20px;
}

.pm-about-head p {
  font-size: var(--fluid-body);
  font-family: 'Inter';
  line-height: var(--paragraph-line-height);
  letter-spacing: var(--paragraph-letter-spacing, 0);
  color: var(--color-text-muted);
}

.pm-about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 96px;
  align-items: center;
}

.pm-about-image {
  aspect-ratio: 4/3.6;
  overflow: hidden;
  border-radius: 2px;
}

.pm-about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-about-copy p {
  margin-bottom: 20px;
  font-size: var(--fluid-body);
  font-family: 'Inter';
  line-height: var(--paragraph-line-height);
  letter-spacing: var(--paragraph-letter-spacing, 0);
  color: var(--color-text-muted);
  max-width: 492px;
}

.pm-about-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .pm-about-grid {
    grid-template-columns: 1fr !important;
      gap: 36px !important;
  }


}

/* ---------- Divider ---------- */

.pm-divider-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 0 0;
}

.pm-divider-row::before,
.pm-divider-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.pm-divider-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-text-faint);
  flex: none;
}

/* ---------- Team ---------- */

.pm-team {
  padding: 120px 0 120px;
}

@media (max-width: 900px) {
  .pm-team {
    padding:64px 0px;
  }    
}

.pm-team-head {
  text-align: center;
  margin-bottom: 56px;
}

.pm-team-head h2 {

  font-family: var(--font-display);
  font-size: var(--fluid-section);
  font-weight: 400;
  line-height: 1.4em;
  letter-spacing: -0.8px;
  color: var(--color-black);
}

.pm-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
}

.pm-team-card {
  position: relative;
  aspect-ratio: 3/4;
  border-right: 1px solid var(--color-border);
  overflow: hidden;
}

.pm-team-card:last-child {
  border-right: none;
}

.pm-team-card--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pm-team-card:hover img {
  transform: scale(1.04);
}

.pm-team-card--photo .pm-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75) 70%);
  color: var(--color-white);
  padding: 20px 16px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.pm-team-card--photo .pm-name-role .pm-name {
  font-family: var(--font-body-alt);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pm-team-card--photo .pm-name-role .pm-role {
  font-family: var(--font-body-alt);
  font-size: 11px;
  color: var(--color-white-70);
}

.pm-team-card--photo .pm-icons {
  display: flex;
  gap: 6px;
  flex: none;
}

.pm-team-card--photo .pm-icons a,
.pm-team-card--photo .pm-icons span {
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-white-70);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--color-white-90);
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.pm-team-card--photo .pm-icons a:hover {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

@media (max-width: 900px) {
  .pm-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pm-team-card {
    border-bottom: 1px solid var(--color-border);
  }

  .pm-team-card:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 560px) {
  .pm-team-grid {
    gap: 4px;
  }

  .pm-team-card {
    border-right: none;
  }
}

.pm-counters .pm-container {
  max-width: 100%;
}

.pm-container p:nth-of-type(3) {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6em;
  color: var(--color-white-70);
  font-weight: 400 !important;
  max-width: 848px;
  margin: 0 auto;
}

.pm-container .pm-about-copy p:nth-of-type(3) {
  font-size: var(--fluid-body);
  font-family: 'Inter';
  line-height: var(--paragraph-line-height);
  letter-spacing: var(--paragraph-letter-spacing, 0);
  color: var(--color-text-muted);
  max-width: 492px;
  margin: 0px;
  margin-bottom: 20px;
}

.pm-section-divider {
  display: flex;
  justify-content: center;
}

@media (max-width: 440px) {

  .pm-counters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Remove top border from second counter */
  .pm-counters-grid .pm-counter-item:nth-child(2) {
    border-top: none !important;
    border-left: 2px solid;
    border-image-source: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.01) 100%);
    border-image-slice: 1;
  }

  /* Third counter full width + center */
  .pm-counters-grid .pm-counter-item:nth-child(3) {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    justify-self: stretch;
    border-top: none !important;

  }

}

.pm-section-divider img {
  height: 40px;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0px 15px !important;
}

.contact-git_main {
  max-width: var(--container-width);
  align-items: center;
  justify-content: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  margin: 0 auto 40px;
}

.contact-git_main p.contact-git__subtitle {
  max-width: 100%;
  /* margin-bottom: 30px; */
}

/* Hide the Message textarea field only on single Project pages */
body.single-projects .gfield--type-textarea {
  display: none !important;
}

/* Show only the first 3 related blog cards on single project pages */
.cg-blog-grid--related .cg-blog-card:nth-child(n+4) {
  display: none;
}


.pm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(180deg,
      #000000 0%,
      rgba(0, 0, 0, 0.3) 15%,
      rgba(0, 0, 0, 0.5) 50%,
      #000000 100%),
    radial-gradient(57.94% 57.94% at 50% 40.22%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.16) 100%);

  pointer-events: none;
}

@media (max-width: 980px) {
    .pm-container .pm-about-copy p , .pm-container .pm-about-copy p:nth-of-type(3) {
        max-width: 100%;
    }
}
.pm-team .container {
    max-width: var(--container-width);
}

.page-template-page-property-management  .team-content .team-card__info {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.page-template-page-property-management .team-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 3;
  gap: 4px;
}

@media (max-width: 600px) {

    .page-template-page-property-management .pm-counters-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .page-template-page-property-management .pm-counter-item {
        width: 100%;
    }

    /* 3rd counter = second row + center */
    .page-template-page-property-management .pm-counter-item:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
    }

}

@media (max-width: 600px) {

    .page-template-page-property-management
    .pm-counter-item {
        border: none !important;
        position: relative;
    }

    /* Only divider between 35+ and 300 */
    .page-template-page-property-management
    .pm-counter-item:first-child::after {
        content: "";
        position: absolute;

        top: 15% ;
        right: 0;
        width: 1px;
        height: 70%;

        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.01) 0%,
            rgba(255, 255, 255, 0.16) 50%,
            rgba(255, 255, 255, 0.01) 100%
        );
    }

}

@media (max-width: 767px) {
    .page-template-page-property-management  .team-grid, .team-grid--compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }
}