.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.section {
  padding: var(--section-pad-y) 0;
  position: relative;
  overflow: hidden;
}

/* Ambient gradient orbs behind sections */
.section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 160, 48, 0.06) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
  z-index: 0;
}

.section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 160, 48, 0.04) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  pointer-events: none;
  z-index: 0;
}

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

.section--alt {
  background-color: var(--bg-alt);
}

.section--sky {
  background-color: var(--bg-primary);
}

/* Sections with background image */
.section__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  transition: none;
}

.section__header {
  text-align: center;
  margin-bottom: var(--gap-md);
}

.section__subtitle {
  color: var(--accent-secondary);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: var(--gap-sm);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: var(--gap-lg);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-2xl);
  align-items: center;
}

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

/* ─── SVG Wave Dividers ─── */
.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  position: relative;
  z-index: 2;
}

.wave-divider--top {
  margin-bottom: -2px;
}

.wave-divider--bottom {
  margin-top: -2px;
}

/* ─── Gradient line divider (fallback) ─── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(240, 160, 48, 0.08) 15%,
    rgba(240, 160, 48, 0.2) 50%,
    rgba(240, 160, 48, 0.08) 85%,
    transparent 100%
  );
  border: none;
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(240, 160, 48, 0.5);
}

/* ─── Floating particles ─── */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 8px rgba(240, 160, 48, 0.6);
  animation: particleFloat 8s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 25%; animation-delay: 1.5s; animation-duration: 9s; }
.particle:nth-child(3) { left: 40%; animation-delay: 3s; animation-duration: 6s; }
.particle:nth-child(4) { left: 55%; animation-delay: 0.5s; animation-duration: 10s; }
.particle:nth-child(5) { left: 70%; animation-delay: 2s; animation-duration: 8s; }
.particle:nth-child(6) { left: 85%; animation-delay: 4s; animation-duration: 7.5s; }
.particle:nth-child(7) { left: 15%; animation-delay: 1s; animation-duration: 11s; }
.particle:nth-child(8) { left: 60%; animation-delay: 3.5s; animation-duration: 6.5s; }
.particle:nth-child(9) { left: 35%; animation-delay: 2.5s; animation-duration: 8.5s; }
.particle:nth-child(10) { left: 78%; animation-delay: 0.8s; animation-duration: 7.2s; }
.particle:nth-child(11) { left: 5%; animation-delay: 4.5s; animation-duration: 9.5s; }
.particle:nth-child(12) { left: 92%; animation-delay: 1.8s; animation-duration: 6.8s; }

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100px) scale(1.2);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .particle {
    animation: none;
    display: none;
  }
}
