/* ═══════════════════════════════════════════════════════════════════
   NMS — Service Page
   Global single-service page system.
   All selectors scoped under .nmsh-sp to prevent global leaks.
   Fixed: descendant selectors for HTML elements (ol, ul, table, etc.)
   ═══════════════════════════════════════════════════════════════════ */
.elementor-widget-nmsh_service_page {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow-x: clip !important;
}
.nmsh-sp {
  --sp-primary: var(--nms-accent, #057485);
  --sp-primary-deep: #045a66;
  --sp-ink: var(--nms-ink, #1a2332);
  --sp-muted: var(--nms-muted, #5a6b7d);
  --sp-bg: var(--nms-light, #f4f6f9);
  --sp-card: #ffffff;
  --sp-surface: var(--nms-light, #f4f6f9);
  --sp-border: var(--nms-border, #e2e8f0);
  --sp-accent: rgba(5,116,133,.06);
  --sp-radius: var(--nms-radius, 16px);
  --sp-radius-lg: 24px;
  --sp-shadow: var(--nms-shadow, 0 4px 24px rgba(0,0,0,.06));
  font-family: var(--nms-font-sans, 'Nunito Sans', system-ui, sans-serif);
  color: var(--sp-ink);
  background: var(--sp-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.nmsh-sp *, .nmsh-sp *::before, .nmsh-sp *::after { box-sizing: border-box; }
.nmsh-sp img { max-width: 100%; display: block; }
.nmsh-sp a { color: inherit; text-decoration: none; }
.nmsh-sp h1, .nmsh-sp h2, .nmsh-sp h3 {
  color: var(--sp-ink);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
}
.nmsh-sp p { margin: 0; color: var(--sp-muted); }
.nmsh-sp ul, .nmsh-sp ol { margin: 0; padding: 0; list-style: none; }
.nmsh-sp-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media(min-width:1024px) {
  .nmsh-sp-inner { padding: 0 40px; }
}

/* ── Eyebrow ── */
.nmsh-sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--sp-primary);
}
.nmsh-sp-eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(5,116,133,.6);
}
.nmsh-sp-accent { color: var(--sp-primary); }

/* ── Buttons ── */
.nmsh-sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}
.nmsh-sp-btn--primary {
  background: var(--sp-primary);
  color: #fff;
  box-shadow: 0 6px 20px -10px rgba(5,116,133,.6);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nmsh-sp-btn--primary:hover {
  background: var(--sp-primary-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(5,116,133,.5);
}
.nmsh-sp-btn--secondary {
  background: #fff;
  color: var(--sp-ink);
  border-color: var(--sp-border);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.nmsh-sp-btn--secondary:hover {
  border-color: var(--sp-primary);
  color: var(--sp-primary);
  transform: translateY(-1px);
}

/* ── Breadcrumb — FIXED: descendant selectors ── */
.nmsh-sp-crumb {
  border-bottom: 1px solid var(--sp-border);
  background: var(--sp-bg);
  padding-top: 72px;
}
.nmsh-sp-crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  font-size: 14px;
  color: var(--sp-muted);
  list-style: none;
  margin: 0;
}
.nmsh-sp-crumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nmsh-sp-crumb li[aria-current] { color: var(--sp-ink); }
.nmsh-sp-crumb a {
  color: var(--sp-muted);
  text-decoration: none;
  transition: color .2s ease;
}
.nmsh-sp-crumb a:hover { color: var(--sp-ink); }

/* ── Hero — FIXED: descendant selectors ── */
.nmsh-sp-hero {
  padding: 80px 0;
  background: var(--sp-bg);
}
@media(min-width:1024px) {
  .nmsh-sp-hero { padding: 112px 0; }
}
.nmsh-sp-hero-grid {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr;
}
@media(min-width:1024px) {
  .nmsh-sp-hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
    align-items: center;
  }
}
.nmsh-sp-hero h1 {
  margin-top: 20px;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 600;
  font-family: var(--nms-font-display, 'Spartan', system-ui, sans-serif);
}
.nmsh-sp-hero-lead {
  margin-top: 24px;
  max-width: 640px;
  font-size: 18px;
}
.nmsh-sp-hero-ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* Hero Stats — FIXED: descendant selectors */
.nmsh-sp-hero-stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 560px;
}
@media(min-width:640px) {
  .nmsh-sp-hero-stats { grid-template-columns: repeat(4, 1fr); }
}
.nmsh-sp-hero-stats dt {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.nmsh-sp-hero-stats dd {
  margin: 4px 0 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--sp-muted);
}
/* Hero image — FIXED: descendant selector */
.nmsh-sp-hero-media {
  position: relative;
}
.nmsh-sp-hero-media::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: var(--nms-light, #f4f6f9);
  border-radius: 32px;
  z-index: 0;
}
.nmsh-sp-hero-media img {
  position: relative;
  z-index: 1;
  border-radius: var(--nms-radius-lg, 24px);
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--nms-shadow-hover, 0 12px 40px rgba(0,0,0,.1));
  width: 100%;
}

/* ── Authority Strip — FIXED: descendant selectors + logo support ── */
.nmsh-sp-strip {
  background: var(--sp-surface);
  border-top: 1px solid var(--sp-border);
  border-bottom: 1px solid var(--sp-border);
}
.nmsh-sp-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
  padding: 28px 0;
  align-items: center;
}
.nmsh-sp-strip-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--sp-muted);
  margin: 0;
}
.nmsh-sp-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sp-ink);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nmsh-sp-strip li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nmsh-sp-strip li img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

/* ── Sections ── */
.nmsh-sp-section {
  padding: 96px 0;
  background: var(--sp-bg);
}
.nmsh-sp-section--alt {
  background: rgba(241,243,242,.6);
}
.nmsh-sp-section-head {
  max-width: 620px;
  margin-bottom: 48px;
}
.nmsh-sp-section-head h2 {
  margin-top: 20px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  font-family: var(--nms-font-display, 'Spartan', system-ui, sans-serif);
}
.nmsh-sp-section-head p { margin-top: 16px; }
.nmsh-sp-text-lg { font-size: 18px; }

/* ── Split layout ── */
.nmsh-sp-split {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr;
}
@media(min-width:1024px) {
  .nmsh-sp-split { grid-template-columns: 5fr 7fr; gap: 64px; }
}

/* ── Checklist — FIXED: descendant selector ── */
.nmsh-sp-checklist {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media(min-width:640px) {
  .nmsh-sp-checklist { grid-template-columns: 1fr 1fr; }
}
.nmsh-sp-checklist li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--sp-ink);
}
.nmsh-sp-check {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--sp-primary);
}

/* ── Category Cards ── */
.nmsh-sp-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media(min-width:640px) {
  .nmsh-sp-cards { grid-template-columns: repeat(2, 1fr); }
}
@media(min-width:1024px) {
  .nmsh-sp-cards { grid-template-columns: repeat(4, 1fr); }
}
.nmsh-sp-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.22,.61,.36,1);
  position: relative;
}
.nmsh-sp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,116,133,.03), transparent);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  border-radius: inherit;
}
.nmsh-sp-card:hover {
  border-color: rgba(5,116,133,.4);
  box-shadow: var(--nms-shadow-hover, 0 12px 40px rgba(0,0,0,.1));
  transform: translateY(-6px);
}
.nmsh-sp-card:hover::after { opacity: 1; }
.nmsh-sp-card-img { overflow: hidden; }
.nmsh-sp-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .5s ease;
}
.nmsh-sp-card:hover .nmsh-sp-card-img img { transform: scale(1.06); }
.nmsh-sp-card-body { padding: 24px; }
.nmsh-sp-card-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.nmsh-sp-card-body p { font-size: 14px; margin: 0; }
a.nmsh-sp-card { color: inherit; }

/* ── Process Steps — FIXED: descendant selectors ── */
.nmsh-sp-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 56px;
}
@media(min-width:640px) {
  .nmsh-sp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media(min-width:1024px) {
  .nmsh-sp-steps { grid-template-columns: repeat(5, 1fr); }
}
.nmsh-sp-step-num {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--sp-primary);
}
.nmsh-sp-step h3 { margin-top: 12px; font-size: 18px; font-weight: 600; }
.nmsh-sp-step p { margin-top: 8px; font-size: 14px; }
.nmsh-sp-step-rule {
  margin-top: 24px;
  height: 1px;
  background: linear-gradient(to right, rgba(5,116,133,.4), var(--sp-border), transparent);
}

/* ── Document Card — FIXED: descendant selectors ── */
.nmsh-sp-doc-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 40px;
}
.nmsh-sp-doc-card ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media(min-width:640px) {
  .nmsh-sp-doc-card ul { grid-template-columns: 1fr 1fr; }
}
.nmsh-sp-doc-card li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--sp-ink);
}

/* ── Table — FIXED: descendant selectors ── */
.nmsh-sp-table-wrap {
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
}
.nmsh-sp-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.nmsh-sp-table-wrap thead {
  background: var(--sp-surface);
  color: var(--sp-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.nmsh-sp-table-wrap thead th { padding: 16px 24px; font-weight: 500; }
.nmsh-sp-table-wrap tbody tr {
  background: var(--sp-card);
  border-top: 1px solid var(--sp-border);
}
.nmsh-sp-table-wrap tbody th {
  padding: 20px 24px;
  font-weight: 500;
  color: var(--sp-ink);
}
.nmsh-sp-table-wrap tbody td {
  padding: 20px 24px;
  color: var(--sp-muted);
}

/* ── FAQ — FIXED: descendant selectors ── */
.nmsh-sp-faq {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  overflow: hidden;
}
.nmsh-sp-faq details {
  border-top: 1px solid var(--sp-border);
}
.nmsh-sp-faq details:first-child {
  border-top: none;
}
.nmsh-sp-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-weight: 500;
  color: var(--sp-ink);
  transition: background .2s ease, padding-left .2s ease;
}
.nmsh-sp-faq summary::-webkit-details-marker { display: none; }
.nmsh-sp-faq summary:hover {
  background: rgba(5,116,133,.04);
  padding-left: 28px;
}
.nmsh-sp-faq .nmsh-sp-faq-plus {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--sp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-primary);
  transition: transform .25s ease;
  font-size: 18px;
}
.nmsh-sp-faq details[open] .nmsh-sp-faq-plus { transform: rotate(45deg); }
.nmsh-sp-faq .nmsh-sp-faq-answer {
  padding: 0 24px 24px;
  font-size: 14px;
  color: var(--sp-muted);
}

/* ── CTA — FIXED: descendant selectors ── */
.nmsh-sp-cta {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: 28px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media(min-width:640px) {
  .nmsh-sp-cta { padding: 56px; }
}
@media(min-width:1024px) {
  .nmsh-sp-cta { grid-template-columns: 5fr 7fr; gap: 64px; padding: 64px; }
}
.nmsh-sp-cta h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  margin-top: 20px;
  font-family: var(--nms-font-display, 'Spartan', system-ui, sans-serif);
}
.nmsh-sp-cta dl {
  margin-top: 32px;
  display: grid;
  gap: 16px;
  font-size: 14px;
}
.nmsh-sp-cta dt { color: var(--sp-muted); }
.nmsh-sp-cta dd { margin: 0; }
.nmsh-sp-cta dd a {
  font-size: 16px;
  font-weight: 500;
  transition: color .2s ease;
}
.nmsh-sp-cta dd a:hover { color: var(--sp-primary); }

/* ── Form — FIXED: descendant selectors ── */
.nmsh-sp-form-note {
  font-size: 14px;
  color: var(--sp-muted);
  margin-bottom: 24px;
}
.nmsh-sp-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media(min-width:640px) {
  .nmsh-sp-form-grid { grid-template-columns: 1fr 1fr; }
}
.nmsh-sp-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--sp-muted);
}
.nmsh-sp-field input,
.nmsh-sp-field select,
.nmsh-sp-field textarea {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--sp-border);
  background: #fff;
  border-radius: 10px;
  font: inherit;
  color: var(--sp-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nmsh-sp-field textarea {
  height: auto;
  padding: 12px 16px;
  resize: vertical;
}
.nmsh-sp-field input:focus,
.nmsh-sp-field select:focus,
.nmsh-sp-field textarea:focus {
  outline: none;
  border-color: var(--sp-primary);
  box-shadow: 0 0 0 3px rgba(5,116,133,.15);
}
.nmsh-sp-field--full { grid-column: 1/ -1; }
.nmsh-sp-form-foot {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.nmsh-sp-form-privacy {
  font-size: 12px;
  color: var(--sp-muted);
  margin: 0;
}
.nmsh-sp-form select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--sp-border);
  background: #fff;
  border-radius: 10px;
  font: inherit;
  color: var(--sp-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: auto;
}
.nmsh-sp-form select:focus {
  outline: none;
  border-color: var(--sp-primary);
  box-shadow: 0 0 0 3px rgba(5,116,133,.15);
}
.nmsh-sp-form input[type="file"] {
  height: auto;
  padding: 12px 16px;
  border: 2px dashed var(--sp-border);
  background: var(--sp-bg);
  border-radius: 10px;
  font: inherit;
  color: var(--sp-muted);
  cursor: pointer;
  transition: border-color .15s ease;
  width: 100%;
}
.nmsh-sp-form input[type="file"]:hover { border-color: var(--sp-primary); }
.nmsh-sp-form input[type="file"]:focus {
  outline: none;
  border-color: var(--sp-primary);
  box-shadow: 0 0 0 3px rgba(5,116,133,.15);
}

/* ── Scroll-reveal ── */
.nmsh-sp[data-sg-stagger] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.nmsh-sp[data-sg-stagger].is-in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--sg-i, 0) * 100ms);
}
.no-js.nmsh-sp[data-sg-stagger] {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ── Reduced motion ── */
@media(prefers-reduced-motion:reduce) {
  .nmsh-sp * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .nmsh-sp [data-sg-stagger] {
    opacity: 1 !important;
    transform: none !important;
  }
  .nmsh-sp-card:hover { transform: none; }
}

/* ── Responsive ── */
@media(max-width:600px) {
  .nmsh-sp-crumb { padding-top: 60px; }
  .nmsh-sp-hero { padding: 48px 0; }
  .nmsh-sp-hero h1 { font-size: 32px; }
  .nmsh-sp-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .nmsh-sp-section { padding: 56px 0; }
  .nmsh-sp-cta { padding: 28px; }
  .nmsh-sp-cta-grid { grid-template-columns: 1fr; }
  .nmsh-sp-doc-card { padding: 24px; }
  .nmsh-sp-table-wrap { overflow-x: auto; }
  .nmsh-sp-table-wrap table { min-width: 500px; }
  .nmsh-sp-form-foot { flex-direction: column; align-items: flex-start; }
  .nmsh-sp-strip-inner { flex-direction: column; align-items: flex-start; }
  .nmsh-sp-strip ul { gap: 8px 16px; }
  .nmsh-sp-cards { grid-template-columns: 1fr; }
  .nmsh-sp-steps { grid-template-columns: 1fr; }
  .nmsh-sp-split { gap: 32px; }
  .nmsh-sp-faq summary { padding: 16px 18px; font-size: 14px; }
  .nmsh-sp-faq .nmsh-sp-faq-answer { padding: 0 18px 18px; }
}
