/* Parallax dark hero / band base */
.parallax-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-black), var(--color-charcoal-light));
  color: #fff;
}

.parallax-hero p,
.parallax-hero .text-muted {
  color: var(--color-text-on-dark-muted);
}

.parallax-hero h1,
.parallax-hero h2 {
  color: #fff;
}

.parallax-hero > .container {
  position: relative;
  z-index: 1;
}

/* Light-section subtle pattern host */
.section-shapes-host {
  position: relative;
  overflow: hidden;
}

.section-shapes-host > .container {
  position: relative;
  z-index: 1;
}

/* Hex-grid pattern layer, shared by dark heroes and light sections. Static
   tiled texture — no continuous animation. */
.parallax-hero::before,
.section-shapes-host::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../images/pattern.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.parallax-hero::before {
  display: none;
}

/* Mirrored copy of the same pattern, flipped, right side only. */
.parallax-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../images/pattern.svg');
  background-repeat: no-repeat;
  background-position: calc(50% - 400px) center;
  background-size: cover;
  opacity: 0.1;
  transform: scaleX(-1) scaleY(-1);
}

.section-shapes-host::before {
  opacity: 0.08;
}

/* Dark sections (solid black background) need the same visible tier as
   .parallax-hero — opacity here is about background luminance, not which
   structural class the section happens to carry. */
.section-dark.section-shapes-host::before {
  opacity: 0.1;
  background-position: calc(50% - 700px) center;
}

/* Mirrored copy of the same pattern, flipped to balance the right side
   since the left-shifted copy above leaves it empty. */
.section-dark.section-shapes-host::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../images/pattern.svg');
  background-repeat: no-repeat;
  background-position: calc(50% - 700px) center;
  background-size: cover;
  opacity: 0.1;
  transform: scaleX(-1) scaleY(-1);
}
