/**
 * Subpage hero: two columns – left (title, 150px line, subtitle, 2 buttons), right (circular image + floating stats).
 * Uses same orbs as hero--page; layout and subpage-specific elements here.
 */
.hero--subpage {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-hero);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: calc(-1 * var(--space-xl));
  padding: calc(var(--space-3xl) + var(--space-2xl)) var(--container-padding);
}

.hero--subpage .hero__page-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero--subpage .hero__page-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: hero-page-orb-float 14s ease-in-out infinite;
}

.hero--subpage .hero__page-orb--1 {
  width: 20rem;
  height: 20rem;
  left: var(--orb-1-left, 0%);
  top: var(--orb-1-top, 10%);
  background: var(--color-primary);
  animation-delay: 0s;
}

.hero--subpage .hero__page-orb--2 {
  width: 16rem;
  height: 16rem;
  right: var(--orb-2-right, 5%);
  top: var(--orb-2-top, 20%);
  background: var(--color-secondary);
  animation-delay: -3s;
}

.hero--subpage .hero__page-orb--3 {
  width: 18rem;
  height: 18rem;
  left: var(--orb-3-left, 15%);
  bottom: var(--orb-3-bottom, 15%);
  background: var(--color-secondary-light);
  animation-delay: -6s;
}

.hero--subpage .hero__page-orb--4 {
  width: 14rem;
  height: 14rem;
  right: var(--orb-4-right, 20%);
  bottom: var(--orb-4-bottom, 25%);
  background: var(--color-primary-light);
  animation-delay: -9s;
}

@keyframes hero-page-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(3%, -4%) scale(1.08); }
  50% { transform: translate(-3%, 3%) scale(0.95); }
  75% { transform: translate(4%, 2%) scale(1.05); }
}

/* Pink/purple blobs and #fdf9f4 background – IT-beheer subpage only */
.hero--subpage-featured {
  background-color: #fdf9f4;
}

.hero--subpage-featured .hero__subpage-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero--subpage-featured .hero__subpage-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.38;
  animation: hero-subpage-blob-float 16s ease-in-out infinite;
}

.hero--subpage-featured .hero__subpage-blob--pink {
  background: #e879a3;
}

.hero--subpage-featured .hero__subpage-blob--purple {
  background: #b07dd9;
}

.hero--subpage-featured .hero__subpage-blob--1 {
  width: 22rem;
  height: 22rem;
  left: var(--blob-1-left, 60%);
  top: var(--blob-1-top, 5%);
  animation-delay: 0s;
}

.hero--subpage-featured .hero__subpage-blob--2 {
  width: 18rem;
  height: 18rem;
  right: var(--blob-2-right, 10%);
  bottom: var(--blob-2-bottom, 30%);
  animation-delay: -4s;
}

.hero--subpage-featured .hero__subpage-blob--3 {
  width: 16rem;
  height: 16rem;
  left: var(--blob-3-left, 5%);
  bottom: var(--blob-3-bottom, 10%);
  animation-delay: -8s;
}

.hero--subpage-featured .hero__subpage-blob--4 {
  width: 20rem;
  height: 20rem;
  right: var(--blob-4-right, 40%);
  top: var(--blob-4-top, 40%);
  animation-delay: -12s;
}

@keyframes hero-subpage-blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-4%, 5%) scale(1.1); }
  66% { transform: translate(5%, -3%) scale(0.92); }
}

.hero__subpage-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero__subpage-content {
  flex: 1 1 50%;
  min-width: 0;
}

.hero__subpage-title {
  margin: 0 0 var(--space-md);
  font-size: 4rem;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: #020817;
}

.hero__subpage-line {
  width: 150px;
  height: 4px;
  margin: 0 0 var(--space-md);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 50%, #a855f7 100%);
}

.hero__subpage-subtitle {
  margin: 0 0 var(--space-xl);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
}

.hero__subpage-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: stretch;
}

.hero__subpage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  padding: var(--space-md) var(--space-xl);
  min-height: 3.25rem;
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.hero__subpage-btn--primary {
  background: #fff;
  color: var(--color-title);
}

.hero__subpage-btn--primary:hover {
  background: #f5f5f5;
  color: var(--color-title);
  box-shadow: var(--shadow-md);
}

.hero__subpage-btn-arrow {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.hero__subpage-btn--secondary {
  background: var(--color-secondary);
  color: #fff;
  border: 2px solid var(--color-secondary);
}

.hero__subpage-btn--secondary:hover {
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: #fff;
}

/* Right column: circular image + floating stats */
.hero__subpage-media {
  flex: 1 1 50%;
  min-width: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.hero__subpage-image-wrap {
  width: min(100%, 680px);
  aspect-ratio: 1;
  border-radius: var(--radius-5xl);
  overflow: hidden;
}

.hero__subpage-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__subpage-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-primary-light) 100%);
  opacity: 0.6;
}

/* Floating stat boxes */
.hero__subpage-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__subpage-stat {
  position: absolute;
}

.hero__subpage-stat-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: hero-stat-float 4s ease-in-out infinite;
}

.hero__subpage-stat:nth-child(1) .hero__subpage-stat-inner { animation-delay: 0s; }
.hero__subpage-stat:nth-child(2) .hero__subpage-stat-inner { animation-delay: -0.8s; }
.hero__subpage-stat:nth-child(3) .hero__subpage-stat-inner { animation-delay: -1.6s; }

@keyframes hero-stat-float {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-8px);
    opacity: 0.78;
  }
}

.hero__subpage-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #fef0e0;
  color: var(--color-primary);
  font-size: 1.1rem;
}

/* Stat 1: blue; Stat 2: purple; Stat 3: orange (default) */
.hero__subpage-stat:nth-child(1) .hero__subpage-stat-icon {
  background: #dbeafe;
  color: var(--color-secondary);
}

.hero__subpage-stat:nth-child(2) .hero__subpage-stat-icon {
  background: #ede9fe;
  color: #7c3aed;
}

.hero__subpage-stat-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.hero__subpage-stat-value {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-text);
}

.hero__subpage-stat-label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-transform: lowercase;
}

/* Position stats at clock: 1:30, 3:00, 7:00 (around the larger circle) */
.hero__subpage-stat:nth-child(1) {
  top: 0;
  right: -4%;
}

.hero__subpage-stat:nth-child(2) {
  top: 50%;
  right: -14%;
  transform: translateY(-50%);
}

.hero__subpage-stat:nth-child(3) {
  bottom: 0;
  left: -4%;
}

@media (max-width: 64rem) {
  .hero__subpage-inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xl);
  }

  .hero__subpage-media {
    order: -1;
    flex: none;
    min-height: 420px;
  }

  .hero__subpage-image-wrap {
    margin: 0 auto;
    max-width: 420px;
  }

  /* Floaters closer to center on tablet */
  .hero__subpage-stat:nth-child(1) {
    top: 2%;
    right: 5%;
  }

  .hero__subpage-stat:nth-child(2) {
    top: 50%;
    right: 2%;
    transform: translateY(-50%);
  }

  .hero__subpage-stat:nth-child(3) {
    bottom: 2%;
    left: 5%;
  }
}

@media (max-width: 48rem) {
  .hero--subpage {
    padding: var(--space-2xl) var(--container-padding);
  }

  .hero__subpage-content {
    text-align: center;
  }

  .hero__subpage-line {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__subpage-title {
    font-size: 2.5rem;
  }

  .hero__subpage-subtitle {
    font-size: var(--font-size-lg);
  }

  .hero__subpage-buttons {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  .hero__subpage-btn--primary {
    flex-direction: row;
    justify-content: center;
  }

  .hero__subpage-image-wrap {
    max-width: 380px;
  }

  /* Floaters closer to center on mobile */
  .hero__subpage-stat:nth-child(1) {
    top: 2%;
    right: 8%;
  }

  .hero__subpage-stat:nth-child(2) {
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
  }

  .hero__subpage-stat:nth-child(3) {
    bottom: 2%;
    left: 8%;
  }

  .hero__subpage-stat-inner {
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
  }

  .hero__subpage-stat-icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }

  .hero__subpage-stat-value {
    font-size: 1.2rem;
  }

  .hero__subpage-stat-label {
    font-size: 0.65rem;
  }
}
