/* Block: cnm-hero-home
 * Extracted from theme CSS by wp-arch-agent.
 * Classes: hero-inner, hero-main, hero-media, hero-img, hero-corner, tl, tr, bl, br, hero-info, park27-wordmark, park27-divider, hero-btns, hollow-light, cnm-hero-home, hero
 */

.hero {
  background: var(--brand);
  color: var(--white);
  padding: 0;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero h1 {
  color: var(--bg);
  margin: 0;
}

.hero address {
  color: var(--bg);
  font-style: normal;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  font-weight: 400;
  line-height: 1.23;
  text-align-last: center;
}

.hero-inner {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  align-items: center;
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 80px;
}

.hero-media {
  position: relative;
  width: clamp(320px, 56vw, 975px);
  aspect-ratio: 975 / 402;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-corner {
  position: absolute;
  width: clamp(95px, 11vw, 185px);
  aspect-ratio: 202 / 179;
  background: url('../img/half-circle.svg') center / contain no-repeat;
  pointer-events: none;
  z-index: 2;
}

.hero-corner.tl {
  top: 0;
  left: 0;
  transform: scaleX(-1);
}

.hero-corner.tr {
  top: 0;
  right: 0;
}

.hero-corner.bl {
  bottom: 0;
  left: 0;
  transform: rotate(180deg);
}

.hero-corner.br {
  bottom: 0;
  right: 0;
  transform: scaleY(-1);
}

.hero-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: right;
  gap: 43px;
  padding-top: 0;
  color: var(--bg);
}

.hero-info .park27-wordmark {
  color: var(--bg);
  width: clamp(220px, 18vw, 320px);
}

.hero-info .park27-divider {
  color: var(--bg);
  width: 240px;
  height: 50px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

@media (max-width: 1399px) {
  .hero-main {
    justify-content: center;
    gap: 48px;
  }
}

@media (max-width: 991px) {
  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    gap: 40px;
  }
  
  .hero-info {
    align-items: center;
    text-align: left;
    padding-top: 0;
    padding-bottom: 40px;
  }
  
  .hero-media {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 450px) {
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }
}

.contact-page-brand .park27-wordmark {
  color: var(--green);
  font-size: clamp(2rem, 3vw, 2.625rem);
  width: clamp(180px, 14vw, 158px);
}

.park27-divider {
  display: inline-block;
  width: 250px;
  height: 57px;
  max-width: 100%;
  background-color: currentColor;
  -webkit-mask: url('../img/divider.svg') center / contain no-repeat;
  mask: url('../img/divider.svg') center / contain no-repeat;
}

.park27-wordmark {
  display: inline-block;
  width: clamp(180px, 14vw, 260px);
  aspect-ratio: 158 / 45;
  background-color: currentColor;
  -webkit-mask: url('../img/logo.svg') center / contain no-repeat;
  mask: url('../img/logo.svg') center / contain no-repeat;
  font-size: 0;
  color: inherit;
  vertical-align: middle;
  white-space: nowrap;
  text-indent: 200%;
  overflow: hidden;
}

.banner-contact-left .park27-wordmark {
  color: var(--banner-fg);
  width: clamp(220px, 16vw, 300px);
}

.banner-contact-left .park27-divider {
  color: var(--banner-fg);
  width: 240px;
  height: 50px;
}

.banner-contact .btn-layout.hollow-light {
  color: var(--banner-fg);
  border-color: var(--banner-fg);
}

.banner-contact .btn-layout.hollow-light:hover,
.banner-contact .btn-layout.hollow-light:focus-visible {
  background: var(--banner-accent);
  border-color: var(--banner-accent);
  color: var(--banner-accent-fg);
}

.property-card .img-wrap > .corner.tl {
  top: 0;
  left: 0;
  transform: scaleX(-1);
}

.property-card .img-wrap > .corner.br {
  bottom: 0;
  right: 0;
  transform: scaleY(-1);
}

.banner-sell-right .park27-divider {
  color: var(--banner-fg);
  width: 220px;
  height: 50px;
}

.media-content-text .park27-wordmark {
  color: var(--bg-blue);
}

.banner-buy-right .park27-divider {
  color: var(--banner-fg);
  width: 220px;
  height: 50px;
}

.banner-buy .btn-layout.hollow-light {
  color: var(--banner-fg);
  border-color: var(--banner-fg);
}

.banner-buy .btn-layout.hollow-light:hover,
.banner-buy .btn-layout.hollow-light:focus-visible {
  background: var(--banner-accent);
  border-color: var(--banner-accent);
  color: var(--banner-accent-fg);
}

.contact-form-header .park27-wordmark {
  color: var(--green);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
}

/* Hero video. The <img> stays underneath as poster and fallback, so the hero
   paints from the preloaded still before the video buffers. z-index 1 puts the
   video over the image but under the frame (2) and star marker (3) ornaments
   that shared.css positions on top of it. */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  pointer-events: none;
}

/* An iframe cannot object-fit, so the Vimeo embed is sized 16:9 off the box's
   width and the overflow cropped. .hero-media is always wider than 16:9
   (aspect-ratio 975/402), so this covers at every breakpoint. */
.hero-video--embed {
  overflow: hidden;
}

.hero-video--embed iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  min-width: 100%;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  video.hero-video {
    display: none;
  }
}
