/* template-parts/page-shell-open.php */

.wnb-page-hero--gradient {
  position: relative;
  display: flex;
  min-height: 14rem;
  align-items: flex-end;
  padding: 2.25rem 1rem 1.75rem;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75)),
    radial-gradient(ellipse 80% 60% at 20% 40%, #e8e6e1 0%, transparent 55%),
    linear-gradient(145deg, #d4d2cd, #f7f6f4);
}

.wnb-page-hero--image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #171717;
}

.wnb-page-hero--image h1 {
  margin: 0;
  width: 100%;
  line-height: 0;
}

.wnb-page-hero--image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.wnb-page-hero__title {
  max-width: var(--wnb-max-content);
  margin: 0 auto;
  width: 100%;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wnb-page-content {
  max-width: var(--wnb-max-content);
  margin: 0 auto;
  padding: 2.25rem 1rem 3.5rem;
}

.wnb-page-content--tight-bottom {
  padding-bottom: 0;
}

.wnb-page-content--flush-top {
  padding-top: 0;
}

@media (max-width: 480px) {
  .wnb-page-hero--image img {
    /* Let the image scale to its natural aspect ratio so embedded text stays fully visible.
       object-fit with a fixed min-height crops the sides and cuts off text on wide images. */
    height: auto;
    min-height: unset;
    object-fit: fill;
  }
}

/* ── Photo hero with text overlay (doors, wardrobe, etc.) ── */
.wnb-page-hero--overlay {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #171717;
}

.wnb-page-hero--overlay > img {
  display: block;
  width: 100%;
  height: clamp(16rem, 44vw, 32rem);
  object-fit: cover;
  object-position: center bottom;
}

.wnb-page-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25) 50%, transparent);
  pointer-events: none;
}

.wnb-page-hero__overlay-wrap {
  position: absolute;
  inset-block: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  z-index: 1;
}

.wnb-page-hero__overlay-title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.75rem, 5.5vw, 5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
}

/* ── Hero "Why [X] Wrapping" checklist card ── */
.wnb-hero-wrap {
  position: relative;
}

.wnb-hero-checklist {
  position: relative;
  z-index: 2;
  margin: -2.5rem 1rem 0;
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.12);
  box-shadow: 0 20px 44px rgba(10, 10, 10, 0.16);
  padding: 1.5rem 1.5rem 1.75rem;
}

.wnb-hero-checklist__title {
  margin: 0 0 1rem;
  font-family: var(--wnb-font-nav);
  font-size: 1.0625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--wnb-text);
}

@media (min-width: 768px) {
  .wnb-hero-checklist {
    position: absolute;
    top: 50%;
    right: clamp(1rem, 4vw, 3rem);
    transform: translateY(-50%);
    width: min(23rem, 38%);
    margin: 0;
    padding: 2rem 2.25rem 2.25rem;
  }

  .wnb-hero-checklist__title {
    font-size: 1.1875rem;
  }
}
