/* ── WHAT WE BUILD (STACKED PANELS) ──────────────────────── */

.wwb-wrap {
  background: var(--color-bg);
  padding-bottom: 0;
  isolation: isolate;
}

.wwb-header-section {
  position: sticky;
  top: 0;
  z-index: 0;
  padding: 40px 0 32px;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.wwb-header {
  padding: clamp(60px, 7vw, 110px) var(--grid-padding) clamp(24px, 3vw, 48px);
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.wwb-title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: var(--weight-medium);
  color: #FFFFFF;
  margin-top: 10px;
  text-transform: uppercase;
}

.wwb-panel {
  position: relative;
  min-height: 108vh;
  display: grid;
  align-items: center;
  justify-items: stretch;
  overflow: hidden;
}

.wwb-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wwb-overlay {
  position: absolute;
  inset: 0;
}

.wwb-panel--kitchen .wwb-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 11, 16, 0.88) 0%,
    rgba(10, 11, 16, 0.78) 45%,
    rgba(10, 11, 16, 0.9) 100%
  );
}

.wwb-panel--bathroom .wwb-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.70) 0%,
    rgba(0, 0, 0, 0.65) 45%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.wwb-content {
  position: relative;
  z-index: 2;
  max-width: 64rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 var(--grid-padding);
  text-align: left;
  color: #FFFFFF;
}

.wwb-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 14px;
}

.wwb-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 36px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

@media (min-width: 900px) {
  .wwb-heading {
    white-space: nowrap;
  }
}

.wwb-body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
}

.wwb-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.wwb-features li {
  position: relative;
  padding-left: 14px;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.wwb-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #C9A063;
}

.wwb-cta {
  display: none;
}

.wwb-cta:hover {
  /* no-op: now using global .btn styles */
}

.wwb-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: flex-start;
  margin: 0 0 72px;
  text-align: left;
}

.wwb-grid .wwb-features {
  justify-self: flex-start;
}

.wwb-grid .wwb-body {
  max-width: 32rem;
}

/* CTA: narrow width, anchored to left (same edge as .wwb-grid) */
.wwb-content > button.hero-btn.btn-glasi {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
}

/* Kitchen panel: stick to viewport while bathroom section scrolls over (same idea as Services hero sticky) */
.wwb-panel--kitchen {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  align-self: flex-start;
  z-index: 1;
  /* .wwb-panel overflow:hidden breaks position:sticky — clip content via children instead */
  overflow: visible;
}

.wwb-panel--bathroom {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .wwb-panel {
    align-items: start;
    justify-items: stretch;
    align-content: start;
    min-height: 100svh;
    padding-top: clamp(20px, 5svh, 40px);
    padding-bottom: clamp(24px, 6svh, 48px);
    overflow-x: hidden;
  }

  .wwb-content {
    max-width: 100%;
  }

  .wwb-eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .wwb-heading {
    font-size: clamp(26px, 6.5vw, 34px);
    margin-bottom: 20px;
    line-height: 1.12;
  }

  .wwb-body {
    font-size: 15px;
    line-height: 1.55;
  }

  .wwb-features {
    gap: 8px;
  }

  .wwb-features li {
    font-size: 14px;
    line-height: 1.35;
  }

  .wwb-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0 0 48px;
  }

  .wwb-content > button.hero-btn.btn-glasi {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px clamp(10px, 3vw, 18px);
    font-size: clamp(9px, 2.65vw, 11px);
    letter-spacing: 0.1em;
    white-space: nowrap;
    text-align: center;
  }

  .wwb-content > button.hero-btn.btn-glasi .clip {
    max-width: 100%;
  }

  /* Sticky kitchen must not use overflow-x:hidden from .wwb-panel above */
  .wwb-panel--kitchen {
    overflow: visible;
  }
}

