/*
 * Shared "panel hero" component used across all secondary-page heroes
 * (About Us family, Products/audience pages, Services/Capabilities/
 * Compliance). NOT used on Home, which keeps its own dark fabric-wave
 * hero (kz-hero-cinematic.css) untouched.
 *
 * Structure: colored green panel, two-column (text + CTAs / circular
 * photo collage), wavy SVG bottom edge cut into the panel's own bottom
 * padding so it never overlaps the next section's content.
 */

.kzp-panel-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #5c9a49 0%, #3a5f2f 100%);
  padding: 64px 0 96px;
  isolation: isolate;
}

/* Second gradient variant -- used on alternating pages so secondary-page
   heroes read as a family without looking identical to one another. */
.kzp-panel-hero--alt {
  background: linear-gradient(135deg, #4d7e3e 0%, #2d4a24 100%);
}

.kzp-panel-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 56px;
}

.kzp-panel-hero--reverse .kzp-panel-hero__inner {
  flex-direction: row-reverse;
}

.kzp-panel-hero__text {
  flex: 1 1 50%;
  min-width: 0;
  color: #fff;
}

.kzp-panel-hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #e7c98a;
  margin: 0 0 14px;
}

.kzp-panel-hero__heading {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 18px;
  color: #fff;
}

.kzp-panel-hero__heading em {
  font-style: normal;
  color: #e7c98a;
}

.kzp-panel-hero__body {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
  max-width: 520px;
  margin: 0 0 30px;
}

.kzp-panel-hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.kzp-panel-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.kzp-panel-hero__btn--primary {
  background: #e7c98a;
  color: #26401d;
  border: 2px solid #e7c98a;
}

.kzp-panel-hero__btn--primary:hover {
  background: #fff;
  border-color: #fff;
  color: #26401d;
}

.kzp-panel-hero__btn--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .6);
}

.kzp-panel-hero__btn--secondary:hover {
  background: rgba(255, 255, 255, .14);
  border-color: #fff;
}

/* ---- photo collage ---- */

.kzp-panel-hero__collage {
  flex: 1 1 46%;
  position: relative;
  min-height: 340px;
  align-self: stretch;
}

.kzp-panel-hero__circle {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, .28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
  background: #274420;
}

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

.kzp-panel-hero__circle--lg {
  width: min(320px, 30vw);
  height: min(320px, 30vw);
  top: 4%;
  left: 8%;
  z-index: 2;
}

.kzp-panel-hero__circle--md {
  width: min(190px, 19vw);
  height: min(190px, 19vw);
  bottom: 2%;
  right: 4%;
  z-index: 3;
}

.kzp-panel-hero__circle--sm {
  width: min(120px, 13vw);
  height: min(120px, 13vw);
  top: 2%;
  right: 14%;
  z-index: 1;
}

.kzp-panel-hero--reverse .kzp-panel-hero__circle--lg { left: auto; right: 8%; }
.kzp-panel-hero--reverse .kzp-panel-hero__circle--md { right: auto; left: 4%; }
.kzp-panel-hero--reverse .kzp-panel-hero__circle--sm { right: auto; left: 14%; }

/* ---- wavy bottom edge ---- */

.kzp-panel-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.kzp-panel-hero__wave svg {
  display: block;
  width: 100%;
  height: 64px;
}

@media (max-width: 900px) {
  .kzp-panel-hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .kzp-panel-hero--reverse .kzp-panel-hero__inner {
    flex-direction: column;
  }
  .kzp-panel-hero__text {
    max-width: 560px;
  }
  .kzp-panel-hero__body {
    margin-left: auto;
    margin-right: auto;
  }
  .kzp-panel-hero__ctas {
    justify-content: center;
  }
  .kzp-panel-hero__collage {
    width: 100%;
    max-width: 320px;
    min-height: 260px;
    margin: 0 auto;
  }
  .kzp-panel-hero--reverse .kzp-panel-hero__circle--lg,
  .kzp-panel-hero__circle--lg {
    left: 4%;
    right: auto;
  }
  .kzp-panel-hero--reverse .kzp-panel-hero__circle--md,
  .kzp-panel-hero__circle--md {
    right: 2%;
    left: auto;
  }
  .kzp-panel-hero--reverse .kzp-panel-hero__circle--sm,
  .kzp-panel-hero__circle--sm {
    right: 10%;
    left: auto;
  }
}

@media (max-width: 480px) {
  .kzp-panel-hero {
    padding: 48px 0 72px;
  }
  .kzp-panel-hero__collage {
    min-height: 210px;
  }
  .kzp-panel-hero__wave svg {
    height: 40px;
  }
}
