/* =====================================================
   PAGE-HERO-RICH — gedeelde rijke hero voor sub-pagina's
   Gebruik:
     <section class="ph-rich" data-theme="diensten|cases|emendis|vacatures|contact">
       ... (zie partials)
   ===================================================== */

/* Container — donker-blauwe navy basis, gelijk aan home.html hero */
.ph-rich {
  position: relative;
  background: linear-gradient(180deg, #0f1729 0%, #131a2e 50%, #0e1426 100%);
  color: #fff;
  padding: 9.5rem 0 6rem;
  overflow: hidden;
  isolation: isolate;
}
.ph-rich-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

/* Grid-overlay met soft mask, identiek aan home */
.ph-rich-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 1100px 700px at 50% 40%, black 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 1100px 700px at 50% 40%, black 10%, transparent 75%);
}

/* Achtergrond-mist: rood + blauw + paars radial-gloed (home-palet) */
.ph-rich-bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 15% 25%, rgba(214, 31, 78, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 1100px 800px at 85% 80%, rgba(88, 101, 242, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 60% 45%, rgba(147, 51, 234, 0.12) 0%, transparent 65%);
}

/* Stardust dots */
.ph-rich-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,107,149,0.5), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(88,101,242,0.6), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.4), transparent);
  background-size: 100% 100%;
  opacity: 0.7;
}

/* Soft blur-orbs (legacy klasse-namen blijven werken voor pagina's die ze gebruiken) */
.ph-rich-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.ph-rich-glow-a {
  width: 600px; height: 600px;
  top: -120px; left: -160px;
  background: radial-gradient(circle, rgba(214,31,78,0.45), transparent 70%);
}
.ph-rich-glow-b {
  width: 700px; height: 700px;
  bottom: -200px; right: -200px;
  background: radial-gradient(circle, rgba(88,101,242,0.40), transparent 70%);
}
.ph-rich-glow-c {
  width: 500px; height: 500px;
  top: 30%; left: 45%;
  background: radial-gradient(circle, rgba(147,51,234,0.18), transparent 70%);
  opacity: 0.45;
}

/* Inner layout */
.ph-rich-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 4rem;
  align-items: center;
}
.ph-rich-text { min-width: 0; }

/* Eyebrow */
.ph-rich-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.ph-rich-eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--red, #D61F4E);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(214,31,78,0.18);
}

/* Headline + lede */
.ph-rich-h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.ph-rich-h1 .red { color: var(--red-glow, #ff3a72); }

.ph-rich-lede {
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin: 0 0 2.25rem;
  text-wrap: pretty;
}

/* CTA row */
.ph-rich-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.75rem;
}
.ph-rich-cta .btn-ghost,
.ph-rich-ghost {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: #fff !important;
}
.ph-rich-cta .btn-ghost:hover,
.ph-rich-ghost:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.32) !important;
}

/* Stats strip */
.ph-rich-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.10);
  align-items: end;
  justify-content: start;
}
.ph-rich-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.ph-rich-stat-num .red { color: var(--red-glow, #ff3a72); }
.ph-rich-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== Visual frame (used by all variants) ===== */
.ph-rich-visual { position: relative; z-index: 2; }
.ph-rich-frame {
  position: relative;
  background: rgba(11,14,18,0.72);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}
.ph-rich-frame-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.ph-rich-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.ph-rich-dot:nth-child(1) { background: rgba(255,95,86,0.8); }
.ph-rich-dot:nth-child(2) { background: rgba(255,189,46,0.8); }
.ph-rich-dot:nth-child(3) { background: rgba(39,201,63,0.8); }
.ph-rich-frame-label {
  margin-left: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.ph-rich-status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(39,201,63,0.85);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ph-rich-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgb(39,201,63);
  box-shadow: 0 0 0 3px rgba(39,201,63,0.18);
  animation: phRichStatusPulse 2s ease-in-out infinite;
}
@keyframes phRichStatusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(39,201,63,0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(39,201,63,0.05); }
}
.ph-rich-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 50%, rgba(214,31,78,0.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 50%);
}
.ph-rich-stage::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ============= DIENSTEN — service stack ============= */
.ph-svc-list {
  position: absolute;
  inset: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 2;
}
.ph-svc-row {
  display: flex; align-items: center; gap: 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  flex: 1;
}
.ph-svc-row.highlight {
  border-color: rgba(214,31,78,0.45);
  background: rgba(214,31,78,0.08);
  box-shadow: 0 6px 22px rgba(214,31,78,0.15);
}
.ph-svc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  width: 28px;
}
.ph-svc-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(214,31,78,0.18);
  color: var(--red-glow, #ff3a72);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ph-svc-icon svg { width: 18px; height: 18px; }
.ph-svc-row.highlight .ph-svc-icon { background: var(--red, #D61F4E); color: #fff; }
.ph-svc-body { flex: 1; min-width: 0; }
.ph-svc-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}
.ph-svc-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.ph-svc-arrow {
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.ph-svc-row.highlight .ph-svc-arrow { color: var(--red-glow, #ff3a72); transform: translateX(3px); }

/* ============= CASES — KPI tiles ============= */
.ph-cases-stage { padding: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.75rem; position: absolute; inset: 0; z-index: 2; }
.ph-case-tile {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 1rem;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.ph-case-tile.feat {
  background: linear-gradient(135deg, rgba(214,31,78,0.18), rgba(214,31,78,0.04));
  border-color: rgba(214,31,78,0.4);
}
.ph-case-sector {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.ph-case-tile.feat .ph-case-sector { color: var(--red-glow, #ff3a72); }
.ph-case-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ph-case-num .red { color: var(--red-glow, #ff3a72); }
.ph-case-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.35rem;
  line-height: 1.35;
}
.ph-case-spark {
  position: absolute; bottom: 0; left: 0; right: 0; height: 28px;
  opacity: 0.55;
}

/* ============= EMENDIS / OVER-ONS — team avatars ============= */
.ph-team-stage { position: absolute; inset: 0; padding: 1.5rem; z-index: 2; display: flex; align-items: center; justify-content: center; }
.ph-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  width: 100%;
}
.ph-avatar {
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  position: relative;
  overflow: hidden;
}
.ph-avatar::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(214,31,78,0.45) 0%, rgba(214,31,78,0.18) 25%, transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 60%);
}
.ph-avatar svg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: auto;
  opacity: 0.55;
}
.ph-avatar.lead {
  background: linear-gradient(135deg, rgba(214,31,78,0.30), rgba(214,31,78,0.08));
  border-color: rgba(214,31,78,0.45);
}
.ph-avatar.lead::before {
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.18) 25%, transparent 45%);
}

/* ============= VACATURES — open jobs list ============= */
.ph-jobs-list {
  position: absolute;
  inset: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 2;
  overflow: hidden;
}
.ph-job-row {
  display: flex; align-items: center; gap: 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 11px;
  padding: 0.7rem 0.9rem;
}
.ph-job-row.highlight {
  border-color: rgba(214,31,78,0.45);
  background: rgba(214,31,78,0.08);
}
.ph-job-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(214,31,78,0.18);
  color: var(--red-glow, #ff3a72);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ph-job-icon svg { width: 16px; height: 16px; }
.ph-job-body { flex: 1; min-width: 0; }
.ph-job-title { font-weight: 700; font-size: 0.92rem; color: #fff; line-height: 1.2; }
.ph-job-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}
.ph-job-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(39,201,63,0.12);
  border: 1px solid rgba(39,201,63,0.3);
  color: rgb(120,220,140);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  flex-shrink: 0;
}
.ph-job-tag.fast {
  background: rgba(214,31,78,0.14);
  border-color: rgba(214,31,78,0.4);
  color: var(--red-glow, #ff3a72);
}

/* ============= CONTACT — chat preview ============= */
.ph-chat-stage { position: absolute; inset: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; justify-content: flex-end; z-index: 2; }
.ph-chat-bubble {
  max-width: 78%;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
}
.ph-chat-bubble.them {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  border-bottom-left-radius: 4px;
}
.ph-chat-bubble.us {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--red, #D61F4E), #b91843);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 8px 24px rgba(214,31,78,0.35);
}
.ph-chat-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  margin-top: -0.25rem;
}
.ph-chat-meta.us { align-self: flex-end; }
.ph-chat-meta.them { align-self: flex-start; }
.ph-chat-typing {
  display: inline-flex; gap: 4px; align-items: center;
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.ph-chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  animation: phTyping 1.2s ease-in-out infinite;
}
.ph-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.ph-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes phTyping {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30%           { opacity: 1; transform: translateY(-3px); }
}

/* Footer bar (shared) */
.ph-rich-foot {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
}
.ph-rich-foot-label { letter-spacing: 0.06em; text-transform: uppercase; }
.ph-rich-foot-val { color: #fff; font-weight: 700; font-size: 0.86rem; }
.ph-rich-foot-tag {
  margin-left: auto;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(39,201,63,0.12);
  border: 1px solid rgba(39,201,63,0.3);
  color: rgb(120,220,140);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.66rem;
}

/* Responsive */
@media (max-width: 1080px) {
  .ph-rich { padding: 8rem 0 4.5rem; }
  .ph-rich-inner { gap: 3rem; }
}
@media (max-width: 900px) {
  .ph-rich-inner { grid-template-columns: 1fr; }
  .ph-rich-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .ph-rich-stats { gap: 1.75rem; }
}
@media (max-width: 540px) {
  .ph-rich { padding: 7rem 0 3.5rem; }
  .ph-rich-stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .ph-cases-stage { padding: 0.75rem; gap: 0.5rem; }
  .ph-case-num { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-rich-status-dot,
  .ph-chat-typing span { animation: none !important; }
}

/* =====================================================
   PH-RICH — SIMPLE variant
   Eenvoudige header zoals dienst-app: alleen tekst-kolom,
   geen visual-frame, geen stats-strip. Single-column gecentreerd.
   ===================================================== */
.ph-rich.ph-rich-simple .ph-rich-inner {
  grid-template-columns: 1fr;
  max-width: 60rem;
  gap: 0;
}
.ph-rich.ph-rich-simple .ph-rich-visual,
.ph-rich.ph-rich-simple .ph-rich-stats {
  display: none;
}
.ph-rich.ph-rich-simple .ph-rich-text {
  max-width: 56rem;
}
.ph-rich.ph-rich-simple .ph-rich-lede {
  max-width: 56rem;
}
