/* Lightflow v0.6.4 - navigation, new editorial templates, and annotated copy polish. */

/* A roomier service menu: icon at left, service name over its plain-language scope. */
.nav-services-panel {
  width: min(610px, calc(100vw - 32px));
  padding: 12px;
}

.primary-nav .nav-services-panel a {
  display: grid;
  min-height: 72px;
  padding: 12px;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.primary-nav .nav-services-overview {
  min-height: 78px;
  margin-bottom: 8px;
  padding: 14px;
  grid-template-columns: 46px minmax(0, 1fr);
}

.nav-services-grid { gap: 8px; }

.nav-services-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 4px;
}

.nav-services-panel .nav-services-copy strong,
.nav-services-panel .nav-services-copy small { margin: 0; }

.nav-services-panel .nav-services-copy strong {
  font-size: 14px;
  line-height: 1.2;
}

.nav-services-panel .nav-services-copy small {
  font-size: 11px;
  line-height: 1.35;
}

.nav-services-symbol,
.nav-services-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--blue);
  background: #e9f7ff;
  border: 1px solid #d6eaf7;
  border-radius: 13px;
  font-size: 18px;
  font-weight: 900;
}

.nav-services-symbol {
  color: var(--navy);
  background: var(--yellow);
  border-color: var(--yellow);
}

.nav-services-icon--logo img {
  display: block;
  width: 34px;
  height: 28px;
  object-fit: contain;
}

/* Keep the InaLite URL directly under the service scope without dropping its description. */
.service-card-featured h4 {
  min-height: auto;
  margin-bottom: 0;
}

.service-card-featured .service-card-external {
  margin: 3px 0 12px;
  line-height: 1.25;
}

/* Worksuite keeps its approved layout and gains the Lightflow wave + triangle layers. */
.workspace-shell::after {
  position: absolute;
  z-index: 1;
  right: -52px;
  bottom: -44px;
  width: 720px;
  height: 320px;
  content: "";
  background: url("assets/signature/wave.svg") center / 100% 100% no-repeat;
  opacity: .24;
  pointer-events: none;
  transform: rotate(-7deg);
}

.workspace-pattern {
  width: 300px;
  height: 220px;
  background-size: 470px;
  opacity: .2;
}

/* Keep the Worksuite triangle artwork anchored to its own homepage section. */
.workspace-section { position: relative; }

/* Only the v0.6 editorial page family changes here; the locked original heroes stay untouched. */
.editorial-hero::after {
  z-index: 0;
  bottom: -340px;
}

.editorial-hero-wave {
  z-index: 1;
  top: auto;
  right: -35px;
  bottom: -86px;
  left: auto;
  width: 760px;
  height: 330px;
  opacity: .34;
  transform: rotate(-7deg);
}

@media (min-width: 901px) {
  .editorial-hero {
    min-height: 760px;
    padding: 72px 0 88px;
  }

  .editorial-hero-shell {
    min-height: 640px;
    grid-template-columns: minmax(0, .78fr) minmax(560px, 1.22fr);
    gap: clamp(46px, 5vw, 78px);
  }

  .editorial-hero-visual { min-height: 650px; }

  .editorial-photo { inset: 0 -8px 38px 0; }

  .editorial-hero-badge { right: -12px; bottom: 66px; }
}

@media (max-width: 900px) {
  .primary-nav .nav-services-panel a { min-height: 66px; }
  .nav-services-panel { width: 100%; }
  .editorial-hero::after { bottom: -340px; }
  .editorial-hero-wave { right: -210px; bottom: -74px; }
}

@media (max-width: 620px) {
  .primary-nav .nav-services-panel a {
    min-height: 64px;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .nav-services-icon,
  .nav-services-symbol { width: 38px; height: 38px; }

  .workspace-shell::after {
    right: -230px;
    bottom: -20px;
    width: 590px;
    height: 275px;
  }

  /* The former negative right offset extended the mobile document past the viewport. */
  .workspace-pattern { top: 8px; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-services-panel a { transition: none; }
}
