/* Shared key-visual hero — used via Pages/Shared/_KeyVisualHero.cshtml.
   Same composition as zibadis.com's home hero (its assets/css/zibadis-home.css .zh-* rules): gridded
   canvas, key visual anchored right, drifting glass lenses (shared/hero-lens.js), frosted copy card.
   The only per-site input is --zkh-accent, set inline from the site manifest's Accent. */

.zkh-hero {
  --zkh-ink: #1c1a16;
  --zkh-muted: #8a8478;
  --zkh-border: #e8e1d2;
  --zkh-bg: #faf7f0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 88px 28px 64px;
  background:
    linear-gradient(rgba(28, 26, 22, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 26, 22, .04) 1px, transparent 1px),
    var(--zkh-bg);
  background-size: 44px 44px;
  color: var(--zkh-ink);
  font-family: "Montserrat", -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.zkh-hero *,
.zkh-hero *::before {
  box-sizing: border-box;
}

.zkh-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  /* below the lenses (z-index 50) on purpose: they drift over the copy card, whose own frosted
     background is what keeps the text legible */
  z-index: 2;
}

/* key visual sits in the right-hand slot, behind the copy */
.zkh-keyvisual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 45%;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  z-index: 1;
}

.zkh-hero-copy {
  position: relative;
  z-index: 60;
  max-width: 640px;
  background: rgba(250, 247, 240, .82);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 28px;
  padding: 32px 36px;
  box-shadow: 0 24px 60px -32px rgba(28, 26, 22, .28);
}

.zkh-eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--zkh-accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.zkh-eyebrow::before {
  content: "";
  flex: none;
  width: 30px;
  height: 2px;
  background: var(--zkh-accent);
}

.zkh-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.01em;
}

.zkh-hero h1 em {
  font-style: normal;
  color: var(--zkh-accent);
}

.zkh-hero-lead {
  margin: 22px 0 0;
  color: var(--zkh-muted);
  font-size: 15.5px;
  line-height: 1.7;
}

/* glass lenses — the same liquid-glass distortion as the navbar strip, via the #zbs-glass-distort
   SVG filter the static header component injects once per page */
.zkh-lens {
  position: absolute;
  border-radius: 100%;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -4px 10px -6px rgba(20, 16, 8, .1);
  backdrop-filter: blur(6px) saturate(160%);
  -webkit-backdrop-filter: blur(6px) saturate(160%);
  transform: translate(var(--lens-drift-x, 0px), var(--lens-drift-y, 0px));
  z-index: 50;
  pointer-events: none;
}

@supports (backdrop-filter: url(#a)) or (-webkit-backdrop-filter: url(#a)) {
  .zkh-lens {
    backdrop-filter: url(#zbs-glass-distort) blur(2px) saturate(180%);
  }
}

.zkh-lens-1 { width: 170px; height: 170px; left: 6%;  top: 14%; }
.zkh-lens-2 { width: 90px;  height: 90px;  left: 30%; top: 64%; }
.zkh-lens-3 { width: 220px; height: 220px; left: 46%; top: 8%; }
.zkh-lens-4 { width: 70px;  height: 70px;  left: 62%; top: 72%; }
.zkh-lens-5 { width: 130px; height: 130px; left: 18%; top: 38%; }

.zkh-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.zkh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.zkh-btn.solid {
  background: var(--zkh-ink);
  color: #fff;
}

.zkh-btn.solid:hover,
.zkh-btn.solid:focus-visible {
  background: var(--zkh-accent);
}

.zkh-btn.ghost {
  border: 1px solid var(--zkh-border);
  color: var(--zkh-ink);
}

.zkh-btn.ghost:hover,
.zkh-btn.ghost:focus-visible {
  border-color: var(--zkh-accent);
  color: var(--zkh-accent);
}

.zkh-hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.zkh-hero-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
}

.zkh-hero-stat span {
  font-size: 12px;
  color: var(--zkh-muted);
}

@media (max-width: 900px) {
  /* the copy stacks tall on mobile, so a full-height key visual would land below the fold:
     pin it to a fixed band at the top and push the copy card down beneath it */
  .zkh-keyvisual {
    bottom: auto;
    height: 380px;
    left: 8%;
  }

  .zkh-hero-copy {
    max-width: 100%;
    margin-top: 260px;
    padding: 22px 20px;
    border-radius: 20px;
  }

  .zkh-lens-1 { width: 100px; height: 100px; }
  .zkh-lens-2 { width: 56px;  height: 56px; }
  .zkh-lens-3 { width: 130px; height: 130px; }
  .zkh-lens-4 { width: 44px;  height: 44px; }
  .zkh-lens-5 { width: 80px;  height: 80px; }
}

@media (max-width: 560px) {
  .zkh-lens-3,
  .zkh-lens-4 {
    display: none;
  }
}
