/* =====================================================
   OMSAG Scroll Services Block — Frontend Styles
   BEM: .omsag-ss__*
   ===================================================== */

/* ===== SECTION ===== */
.omsag-ss {
  position: relative;
  z-index: 5;
  background: transparent;
}

.omsag-ss__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 clamp(24px, 3vw, 60px);
  padding: 0 clamp(32px, 6vw, 96px);
}

/* ===== LEFT: Sticky headline stack ===== */
.omsag-ss__left {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}

.omsag-ss__headlines {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  position: relative;
  padding-left: 56px;
  will-change: transform;
}

/* ===== Timeline track ===== */
.omsag-ss__track-line {
  position: absolute;
  left: 18px;
  width: 2px;
  background: #eaecf0;
}

.omsag-ss__track-progress {
  display: none;
}

/* ===== Dot ===== */
.omsag-ss__dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px #dfe2e7;
  z-index: 2;
  transition: background 0.45s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.45s cubic-bezier(0.16,1,0.3,1),
              width 0.45s cubic-bezier(0.16,1,0.3,1),
              height 0.45s cubic-bezier(0.16,1,0.3,1);
}

.omsag-ss__dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #232730;
  transition: background 0.45s cubic-bezier(0.16,1,0.3,1),
              width 0.45s cubic-bezier(0.16,1,0.3,1),
              height 0.45s cubic-bezier(0.16,1,0.3,1);
}

.omsag-ss__dot.active {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #50AA3C, #A1D337);
  box-shadow: 0 0 0 2px transparent, 0 3px 14px rgba(80,170,60,0.35);
}

.omsag-ss__dot.active::after {
  background: #fff;
  width: 11px;
  height: 11px;
}

/* ===== Headline items ===== */
.omsag-ss__item {
  padding: 10px 0;
  cursor: pointer;
  position: relative;
}

.omsag-ss__item:not(.active):hover .omsag-ss__headline {
  color: rgba(35,39,48,0.45);
}

.omsag-ss__headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 600;
  color: rgba(35,39,48,0.22);
  line-height: 1.2;
  transition: color 0.45s cubic-bezier(0.16,1,0.3,1),
              font-size 0.45s cubic-bezier(0.16,1,0.3,1),
              font-weight 0.45s cubic-bezier(0.16,1,0.3,1),
              line-height 0.45s cubic-bezier(0.16,1,0.3,1);
}

.omsag-ss__item.active .omsag-ss__headline {
  font-size: clamp(42px, 4.6vw, 58px);
  font-weight: 800;
  color: #232730;
  line-height: 1.05;
}

/* ===== RIGHT: Content panels ===== */
.omsag-ss__right {
  padding: 0;
}

.omsag-ss__panel {
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.omsag-ss__panel:first-child {
  padding-top: 12vh;
}

.omsag-ss__panel:last-child {
  padding-bottom: 25vh;
}

.omsag-ss__panel-content {
  opacity: 0.12;
  transform: translateY(24px);
  filter: blur(4px);
  will-change: transform, opacity, filter;
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1),
              filter 0.6s cubic-bezier(0.16,1,0.3,1);
}

.omsag-ss__panel.active .omsag-ss__panel-content {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

.omsag-ss__panel-eyebrow {
  display: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(80,170,60,0.1);
  color: #50AA3C;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.omsag-ss__panel-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  color: #232730;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 600px;
}

.omsag-ss__panel-body {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(35,39,48,0.6);
  max-width: 600px;
}

.omsag-ss__panel-body p + p {
  margin-top: 16px;
}

/* ===== RESPONSIVE: Mobile (≤960px) ===== */
@media (max-width: 960px) {
  .omsag-ss__inner {
    grid-template-columns: 1fr;
  }

  /* Kill font-size animation on mobile — accordion doesn't need it */
  .omsag-ss__headline {
    transition: color 0.45s cubic-bezier(0.16,1,0.3,1) !important;
  }

  /* Hide sticky left on mobile */
  .omsag-ss__left {
    display: none !important;
  }

  /* Right panels become vertical list */
  .omsag-ss__right {
    padding: 1rem 0 60px;
    padding-left: 0;
    position: relative;
  }

  .omsag-ss__right::before {
    display: none;
  }

  /* Mobile timeline line — JS positioned */
  .omsag-ss__mob-line {
    position: absolute;
    width: 2px;
    background: #eaecf0;
    z-index: 1;
  }

  .omsag-ss__panel {
    min-height: auto;
    padding: 0 0 26px 0;
    position: relative;
    align-items: flex-start;
    margin-left: 48px;
  }

  .omsag-ss__panel:first-child { padding-top: 0; }
  .omsag-ss__panel:last-child { padding-bottom: 0; }

  /* Mobile dot */
  .omsag-ss__panel-mob-dot {
    position: absolute;
    left: -32px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #232730 4px, transparent 4px), #fff;
    box-shadow: 0 0 0 2px #dfe2e7;
    z-index: 2;
    transition: width 0.4s, height 0.4s, left 0.4s, background 0.4s, box-shadow 0.4s;
  }

  .omsag-ss__panel.active .omsag-ss__panel-mob-dot {
    width: 28px;
    height: 28px;
    left: -36px;
    background: radial-gradient(circle, #fff 5.5px, transparent 5.5px), linear-gradient(135deg, #50AA3C, #A1D337);
    box-shadow: 0 0 0 2px transparent, 0 3px 14px rgba(80,170,60,0.35);
  }

  /* Hide CSS pseudo dots on mobile */
  .omsag-ss__panel::after { display: none !important; }

  /* All panel content visible, clickable */
  .omsag-ss__panel-content {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    cursor: pointer;
  }

  /* Pill: show on mobile for accordion toggle */
  .omsag-ss__panel-eyebrow {
    display: inline-block;
    margin-bottom: 0;
  }

  /* Inactive: only pill visible */
  .omsag-ss__panel:not(.active) .omsag-ss__panel-title {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .omsag-ss__panel:not(.active) .omsag-ss__panel-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Active: title + body expand */
  .omsag-ss__panel-title {
    font-size: clamp(22px, 5.5vw, 32px);
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
                margin 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 300px;
    opacity: 1;
    margin-top: 10px;
  }

  .omsag-ss__panel-body {
    font-size: 15px;
    max-height: 600px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
                margin 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 10px;
  }
}

/* ===== NEXT SECTION OVERLAP (applied via JS) ===== */
/* The following section is pulled up via JS because
   .omsag-ss is nested inside GreenShift wrappers and
   CSS adjacent-sibling selectors can't reach the
   next top-level section from here. */
