/* ==========================================================================
   Services — "View More" button + detail modal
   ========================================================================== */
.service-card { display: flex; flex-direction: column; }
.service-card__desc { flex: 1; }

.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--clr-primary-100);
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-primary-600);
  align-self: flex-start;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.service-card__more svg { width: 14px; height: 14px; transition: transform .25s ease; }
.service-card__more:hover {
  background: var(--grad-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--el-glow-primary);
}
.service-card__more:hover svg { transform: translateX(3px); }

/* ---- Modal overlay + shell ---- */
.service-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 12, 30, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.service-modal-overlay[hidden] { display: flex; }
.service-modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.service-modal {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--el-4);
  padding: 48px;
  transform: translateY(24px) scale(.97);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease;

  /* Scrolling stays fully functional (wheel/trackpad/touch) — just hide the bar itself */
  scrollbar-width: none;
}
.service-modal-overlay.is-open .service-modal { transform: translateY(0) scale(1); opacity: 1; }

.service-modal::-webkit-scrollbar { display: none; }

.service-modal__close {
  position: sticky;
  top: 0;
  float: right;
  margin: -16px -20px 0 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--clr-surface-dim);
  color: var(--clr-ink-600);
  transition: background .2s ease, color .2s ease, transform .2s ease;
  z-index: 1;
}
.service-modal__close svg { width: 16px; height: 16px; }
.service-modal__close:hover { background: var(--clr-primary-100); color: var(--clr-primary-600); transform: rotate(90deg); }

/* ---- Modal content (rendered from includes/services.php templates) ---- */
.service-modal__icon {
  width: 66px; height: 66px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--el-glow-primary);
  margin-bottom: 22px;
}
.service-modal__icon svg { width: 27px; height: 27px; }
.service-modal__icon .service-card__icon-img { width: 48px; height: 48px; }

.service-modal__title { font-size: clamp(21px, 2.6vw, 26px); font-weight: 800; margin-bottom: 12px; }
.service-modal__lead { font-size: 15px; line-height: 1.75; color: var(--clr-ink-400); margin-bottom: 30px; }

.service-modal__section { margin-bottom: 26px; }
.service-modal__section:last-of-type { margin-bottom: 32px; }
.service-modal__section h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--clr-primary-600);
  margin-bottom: 14px;
}

.service-modal__list { display: flex; flex-direction: column; gap: 10px; }
.service-modal__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--clr-ink-800); line-height: 1.6; }
.service-modal__list svg {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  color: #fff;
  background: var(--grad-primary);
  border-radius: 50%;
  padding: 3px;
}

.service-modal__text { font-size: 14.5px; line-height: 1.75; color: var(--clr-ink-400); }

.service-modal__kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.service-modal__kv {
  background: var(--clr-surface-dim);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-sm);
  padding: 16px 18px;
}
.service-modal__kv strong { display: block; font-size: 14px; font-weight: 800; color: var(--clr-ink-900); margin-bottom: 6px; }
.service-modal__kv span { font-size: 13px; line-height: 1.6; color: var(--clr-ink-400); }

.service-modal__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.service-modal__chips span {
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: var(--clr-primary-100);
  color: var(--clr-primary-600);
  font-size: 12.5px;
  font-weight: 700;
}

.service-modal__cta { width: 100%; justify-content: center; }

/* Prevent background scroll while modal is open */
body.modal-open { overflow: hidden; }