/* ==========================================================================
   MAINTENANCE PAGE — extras on top of inspection.css
   maintenance/index.html reuses the ins-* section/card/shot/button system from
   inspection.css; this file only adds the pieces unique to this page:
   numbered automation steps, sensor mini-features, aux-machinery check
   lists, the FAQ accordion and small CTA notes. Loaded after inspection.css.
   ========================================================================== */

/* ---------------- sensor mini-features (left column rows) ---------------- */

.mx-feats { display: grid; gap: 16px; margin-top: 24px; }

.mx-feat {
  padding: 2px 0 2px 18px;
  border-left: 3px solid #4a90c2;
}

.mx-feat b {
  display: block;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #16324f;
  margin-bottom: 4px;
}

.mx-feat p { margin: 0; font-size: 14px; line-height: 1.6; color: #47617c; }

/* ---------------- numbered automation steps ---------------- */

.mx-steps {
  display: grid;
  gap: 16px;
  max-width: 880px;
  margin: clamp(30px, 5vh, 46px) auto 0;
  text-align: left;
}

.mx-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(18px, 2vw, 26px);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(22, 50, 79, 0.1);
  box-shadow: 0 14px 36px rgba(22, 50, 79, 0.07);
}

.mx-step__num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b5f8f, #4a90c2);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 19px;
}

.mx-step h3 {
  margin: 2px 0 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 17.5px;
  color: #16324f;
}

.mx-step p { margin: 0; font-size: 14.5px; line-height: 1.65; color: #47617c; }

/* ---------------- aux machinery check lists (inside ins-card) ---------------- */

.mx-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; text-align: left; }

.mx-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.5;
  color: #47617c;
}

.mx-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b5f8f, #4a90c2);
}

.mx-list li::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 7px;
  width: 6px;
  height: 3.5px;
  border-left: 1.8px solid #fff;
  border-bottom: 1.8px solid #fff;
  transform: rotate(-45deg);
}

/* ---------------- two-column card grid variant ---------------- */

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

@media (max-width: 640px) {
  .ins-cards3.mx-grid2 { grid-template-columns: 1fr; }
}

/* ---------------- FAQ accordion ---------------- */

.mx-faq {
  max-width: 840px;
  margin: clamp(30px, 5vh, 46px) auto 0;
  display: grid;
  gap: 12px;
  text-align: left;
}

.mx-faq__item {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(22, 50, 79, 0.1);
  box-shadow: 0 10px 28px rgba(22, 50, 79, 0.06);
  overflow: hidden;
}

.mx-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 17px 20px;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  color: #16324f;
}

.mx-faq__q::after {
  content: '+';
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e1eefb;
  color: #2b5f8f;
  font-weight: 500;
  font-size: 17px;
  transition: transform 0.25s ease;
}

.mx-faq__q::after {
  transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.3, 1),
              background 0.3s ease, color 0.3s ease;
}

.mx-faq__item.is-open .mx-faq__q::after {
  content: '–';
  transform: rotate(180deg);
  background: #2b5f8f;
  color: #ffffff;
}

/* answer: always in the DOM; the script measures it and animates height
   0 → px → auto (and back), while opacity / padding / a small lift ride
   along in CSS. Closed: zero height, no bottom padding. */
.mx-faq__a {
  display: block;
  box-sizing: border-box;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 20px 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #47617c;
  opacity: 0;
  transform: translateY(-6px);
  will-change: height;
  transition: height 0.45s cubic-bezier(0.22, 0.9, 0.3, 1),
              padding 0.45s cubic-bezier(0.22, 0.9, 0.3, 1),
              opacity 0.3s ease,
              transform 0.45s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.mx-faq__item.is-open .mx-faq__a {
  height: auto;
  padding-bottom: 18px;
  opacity: 1;
  transform: none;
  transition: height 0.45s cubic-bezier(0.22, 0.9, 0.3, 1),
              padding 0.45s cubic-bezier(0.22, 0.9, 0.3, 1),
              opacity 0.35s ease 0.08s,
              transform 0.45s cubic-bezier(0.22, 0.9, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .mx-faq__a, .mx-faq__q::after { transition: none; }
}

/* ---------------- CTA extras ---------------- */

.mx-ctanote {
  margin: 20px 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: #b9cfe4;
  text-align: center;
}

/* ==========================================================================
   DARK THEME
   ========================================================================== */

[data-theme="dark"] .mx-feat { border-left-color: #7db8e8; }
[data-theme="dark"] .mx-feat b { color: #dcebf7; }
[data-theme="dark"] .mx-feat p { color: #9db4c9; }

[data-theme="dark"] .mx-step { background: rgba(10, 30, 51, 0.85); border-color: rgba(125, 184, 232, 0.14); }
[data-theme="dark"] .mx-step h3 { color: #dcebf7; }
[data-theme="dark"] .mx-step p { color: #9db4c9; }

[data-theme="dark"] .mx-list li { color: #9db4c9; }

[data-theme="dark"] .mx-faq__item { background: #0a1e33; border-color: rgba(125, 184, 232, 0.14); }
[data-theme="dark"] .mx-faq__q { color: #dcebf7; }
[data-theme="dark"] .mx-faq__q::after { background: #10314f; color: #7db8e8; }
[data-theme="dark"] .mx-faq__a { color: #9db4c9; }
