/* ==========================================================================
   BHN Software — News, Blogs & Media Design System
   Scoped exclusively under .bhn-nm-page
   ========================================================================== */

:root {
  --nm-navy: #061E47;
  --nm-navy-deep: #04122E;
  --nm-blue: #0066FF;
  --nm-orange: #FF8C00;
  --nm-orange-dk: #FF6B00;
  --nm-font: 'Poppins', sans-serif;
}

.bhn-nm-page {
  font-family: var(--nm-font);
  color: var(--nm-navy);
  background: #ffffff;
  overflow-x: clip;
  line-height: 1.65;
}

.bhn-nm-page *,
.bhn-nm-page *::before,
.bhn-nm-page *::after {
  box-sizing: border-box;
}

.bhn-nm-page h1,
.bhn-nm-page h2,
.bhn-nm-page h3,
.bhn-nm-page h4 {
  font-family: var(--nm-font);
  letter-spacing: -0.025em;
}

.bhn-nm-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.nm-grad {
  background: linear-gradient(120deg, #ffffff 0%, #38bdf8 50%, #FF8C00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nm-grad-dark {
  background: linear-gradient(120deg, #061E47 0%, #0066FF 55%, #FF6B00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bhn-nm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 102, 255, 0.2);
  border: 1px solid rgba(255, 140, 0, 0.44);
  color: #ffb84d;
  margin-bottom: 18px;
}

.bhn-nm-eyebrow--light {
  background: rgba(0, 102, 255, 0.08);
  border-color: rgba(0, 102, 255, 0.24);
  color: #0052CC;
}

.bhn-nm-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.bhn-nm-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.bhn-nm-head h2 {
  font-size: clamp(1.88rem, 3.2vw, 2.72rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}

.bhn-nm-head p {
  font-size: 1.02rem;
  color: #475569;
  margin: 0;
}

.bhn-nm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
  color: #ffffff !important;
  font-family: var(--nm-font);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 184, 77, 0.45);
  box-shadow: 0 12px 28px rgba(255, 107, 0, 0.34);
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bhn-nm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 107, 0, 0.5);
}

.bhn-nm-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  background: #ffffff;
  color: #061E47 !important;
  font-family: var(--nm-font);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid #cbd5e1;
  text-decoration: none !important;
}

.bhn-nm-btn-outline:hover {
  border-color: #0066FF;
  color: #0066FF !important;
}

.bhn-nm-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  font-family: var(--nm-font);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  text-decoration: none !important;
}

/* 1. HERO */
.nm-hero {
  background:
    radial-gradient(circle at 85% 18%, rgba(0, 102, 255, 0.1) 0%, transparent 44%),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 36px 0 68px;
}

.nm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #64748b;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}

.nm-breadcrumb a { color: #334155; text-decoration: none; }
.nm-breadcrumb a:hover { color: #0066FF; }

.nm-hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 44px;
  align-items: center;
}

.nm-hero h1 {
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.1;
  color: #061E47;
  margin-bottom: 18px;
}

.nm-hero-lead {
  font-size: 1.03rem;
  color: #475569;
  max-width: 580px;
  margin-bottom: 26px;
}

.nm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.nm-vitals-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid #cbd5e1;
}

.nm-vitals-bar strong {
  display: block;
  font-size: 1.42rem;
  color: #061E47;
  line-height: 1.1;
}

.nm-vitals-bar span {
  font-size: 0.76rem;
  color: #64748b;
}

/* Editorial Darkroom Deck */
.nm-deck {
  background: linear-gradient(155deg, #061E47 0%, #04122E 100%);
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 22px;
  padding: 20px;
  color: #ffffff;
  box-shadow: 0 30px 65px rgba(6, 30, 71, 0.28);
}

.nm-deck-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.nm-live-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nm-deck-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nm-dtab {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-family: var(--nm-font);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.nm-dtab.is-active {
  background: #FF8C00;
  border-color: #FF8C00;
  color: #ffffff;
}

.nm-deck-shot {
  border-radius: 14px;
  overflow: hidden;
  height: 220px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  margin-bottom: 14px;
}

.nm-deck-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.nm-deck-copy h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.nm-deck-copy p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.nm-deck-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nm-deck-tags span {
  font-size: 0.74rem;
  color: #dbeafe;
  background: rgba(0, 102, 255, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.26);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nm-deck-tags i { color: #FF8C00; }

/* 2. PILLARS */
.nm-pillars {
  background: linear-gradient(180deg, #061E47 0%, #04122E 100%);
  color: #ffffff;
  padding: 84px 0;
}

.nm-pil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.nm-pil-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 18px;
  padding: 24px;
}

.nm-pil-card i {
  font-size: 1.45rem;
  color: #FF8C00;
  margin-bottom: 12px;
  display: block;
}

.nm-pil-card h3 {
  font-size: 1.08rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.nm-pil-card p {
  font-size: 0.87rem;
  color: #cbd5e1;
  margin: 0;
}

.nm-pil-card code {
  color: #38bdf8;
  font-size: 0.82rem;
}

/* 3. WORKFLOW */
.nm-workflow {
  background: #ffffff;
  padding: 84px 0;
}

.nm-wf-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 46px;
  align-items: center;
}

.nm-wf-grid h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  color: #061E47;
  margin-bottom: 12px;
}

.nm-wf-lead {
  color: #475569;
  margin-bottom: 24px;
}

.nm-wf-steps {
  display: grid;
  gap: 14px;
}

.nm-wf-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 16px;
}

.nm-wf-step span {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #0066FF;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nm-wf-step h4 {
  font-size: 0.98rem;
  color: #061E47;
  margin-bottom: 4px;
}

.nm-wf-step p {
  font-size: 0.85rem;
  color: #475569;
  margin: 0;
}

.nm-wf-visual {
  position: relative;
}

.nm-wf-visual img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid #dbeafe;
  box-shadow: 0 24px 50px rgba(6, 30, 71, 0.12);
  display: block;
}

.nm-wf-badge {
  position: absolute;
  left: 16px;
  bottom: -16px;
  background: linear-gradient(135deg, #061E47 0%, #0052CC 100%);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 140, 0, 0.45);
  box-shadow: 0 18px 36px rgba(6, 30, 71, 0.34);
}

.nm-wf-badge strong {
  display: block;
  font-size: 1rem;
  color: #FF8C00;
}

.nm-wf-badge span {
  font-size: 0.78rem;
  color: #dbeafe;
}

/* 4. PORTFOLIO & TECH */
.nm-pf-sec {
  background: #f8fafc;
  padding: 84px 0;
}

.nm-pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 64px;
}

.nm-pf-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  overflow: hidden;
}

.nm-pf-card img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.nm-pf-body { padding: 20px; }

.nm-pf-body span {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0066FF;
  background: rgba(0, 102, 255, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.nm-pf-body h3 {
  font-size: 1.08rem;
  color: #061E47;
  margin-bottom: 6px;
}

.nm-pf-body p {
  font-size: 0.86rem;
  color: #475569;
  margin: 0;
}

.nm-tech-box {
  background: linear-gradient(135deg, #061E47 0%, #04122E 100%);
  border-radius: 24px;
  padding: 44px 32px;
  color: #ffffff;
}

/* 5. FAQ & CTA */
.nm-faq-cta {
  background: #ffffff;
  padding: 84px 0;
}

.nm-faq-wrap {
  max-width: 860px;
  margin: 0 auto 64px;
}

.nm-faq-list {
  display: grid;
  gap: 12px;
}

.nm-faq-item {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
}

.nm-faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  font-family: var(--nm-font);
  font-size: 1rem;
  font-weight: 700;
  color: #061E47;
  cursor: pointer;
}

.nm-faq-q i {
  color: #FF8C00;
  transition: transform 0.2s ease;
}

.nm-faq-item.is-open .nm-faq-q i { transform: rotate(45deg); }

.nm-faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  transition: max-height 0.25s ease;
}

.nm-faq-item.is-open .nm-faq-a {
  max-height: 220px;
  padding-bottom: 18px;
}

.nm-faq-a p {
  color: #475569;
  font-size: 0.92rem;
  margin: 0;
}

.nm-final-box {
  background: linear-gradient(135deg, #061E47 0%, #0052CC 100%);
  border: 1px solid rgba(255, 140, 0, 0.38);
  border-radius: 24px;
  padding: 44px;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nm-final-box h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  color: #ffffff;
  margin-bottom: 8px;
  max-width: 620px;
}

.nm-final-box p {
  color: #dbeafe;
  margin: 0;
}

.nm-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1100px) {
  .nm-hero-grid,
  .nm-wf-grid {
    grid-template-columns: 1fr;
  }

  .nm-pil-grid,
  .nm-pf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .bhn-nm-container { padding: 0 16px; }
  .nm-hero { padding: 28px 0 52px; }
  .nm-vitals-bar { grid-template-columns: repeat(2, 1fr); }
  .nm-pil-grid,
  .nm-pf-grid {
    grid-template-columns: 1fr;
  }
  .nm-wf-badge {
    position: static;
    margin-top: 12px;
  }
  .nm-tech-box,
  .nm-final-box { padding: 24px 18px; }
}
