/* ==========================================================================
   NORTHLIGHTFRAME — WEBDESIGN ACT
   Loaded only by northlightframe.html, AFTER northcore.css.
   Self-contained .nlw-* classes — additive, cannot affect the Northcore page.
   The reference mockups intentionally use the CLIENT's CI (orange),
   not the page's gold, to show "we design inside your brand".
   ========================================================================== */

.nlw,
.nlw-site,
.nlw-dash {
  --gk:      #ff7a00;
  --gk-hi:   #ffa040;
  --gk-lo:   #d35f00;
  --gk-soft: rgba(255, 122, 0, 0.12);
}

/* reversed showcase: wide window left, narrow copy right */
.nlw-rev { grid-template-columns: 1.18fr 0.82fr; }
.nlw-rev > .nc-showcase__copy { order: 2; }
.nlw-rev > .nc-window { order: 1; }

/* spacing between stacked showcase blocks */
.nlw-stack > .nc-showcase + .nc-showcase { margin-top: clamp(46px, 7vw, 92px); }

/* small ghost CTA used inside copy */
.nlw-copy-cta { margin-top: 26px; }

/* ----------------------------------------------------------------------
   MOCKUP 1 — public website frontend (client orange)
   ---------------------------------------------------------------------- */
.nlw-site {
  position: relative;
  padding: 16px 20px 22px;
  min-height: 378px;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(80% 60% at 80% -12%, rgba(255, 122, 0, 0.18), transparent 60%),
    linear-gradient(180deg, #0c0d10, #08090b);
}
.nlw-site__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nlw-site__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}
.nlw-site__brand i {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gk), var(--gk-lo));
  box-shadow: 0 0 16px rgba(255, 122, 0, 0.45);
}
.nlw-site__brand span { color: var(--gk-hi); }
.nlw-site__links {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.72rem;
  color: rgba(190, 196, 210, 0.66);
}
.nlw-site__links u {
  text-decoration: none;
  color: #0a0c10;
  background: var(--gk);
  padding: 6px 13px;
  border-radius: 999px;
  font-weight: 600;
}
.nlw-site__hero { padding: 28px 2px 4px; }
.nlw-site__eyebrow {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gk-hi);
  font-weight: 600;
}
.nlw-site__h {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.08;
  font-size: clamp(1.4rem, 2.6vw, 2.05rem);
  margin: 11px 0 12px;
  color: #f3f5fa;
  max-width: 17ch;
}
.nlw-site__h em { font-style: normal; color: var(--gk); }
.nlw-site__p {
  color: rgba(182, 188, 202, 0.82);
  font-size: 0.78rem;
  max-width: 36ch;
  line-height: 1.6;
}
.nlw-site__cta { display: flex; gap: 10px; margin-top: 18px; }
.nlw-site__cta b,
.nlw-site__cta i {
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 9px;
}
.nlw-site__cta b { color: #0a0c10; background: linear-gradient(135deg, var(--gk-hi), var(--gk-lo)); }
.nlw-site__cta i { color: #e7e9f0; border: 1px solid rgba(255, 255, 255, 0.16); }
.nlw-site__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.nlw-site__chips span {
  font-size: 0.68rem;
  color: rgba(204, 210, 224, 0.85);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 0, 0.24);
  background: var(--gk-soft);
}
/* floating responsive phone — sells mobile-first */
.nlw-site__phone {
  position: absolute;
  right: 20px; bottom: 18px;
  width: 86px; height: 176px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #111317, #0a0b0e);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.52);
  padding: 12px 9px;
  overflow: hidden;
}
.nlw-site__phone::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
}
.nlw-site__phone i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); margin-top: 9px; }
.nlw-site__phone i:first-of-type { margin-top: 20px; }
.nlw-site__phone i.lg { height: 30px; background: linear-gradient(135deg, var(--gk), var(--gk-lo)); margin-top: 14px; }
.nlw-site__phone i.sm { width: 58%; }

/* ----------------------------------------------------------------------
   MOCKUP 2 — portal dashboard (client orange)
   ---------------------------------------------------------------------- */
.nlw-dash {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 378px;
  font-family: "Inter", system-ui, sans-serif;
  background: linear-gradient(180deg, #0b0c0f, #08090b);
}
.nlw-dash__side {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0, 0, 0, 0.25);
}
.nlw-dash__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: #eef1f6;
  margin-bottom: 12px;
}
.nlw-dash__brand b {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 6px;
  font-size: 0.7rem;
  color: #0a0c10;
  background: linear-gradient(135deg, var(--gk-hi), var(--gk-lo));
}
.nlw-dash__nav {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  color: rgba(170, 178, 196, 0.78);
}
.nlw-dash__nav i {
  width: 6px; height: 6px;
  border-radius: 2px;
  background: currentColor;
  flex-shrink: 0;
}
.nlw-dash__nav.is-active {
  background: var(--gk-soft);
  color: var(--gk-hi);
}
.nlw-dash__main { padding: 16px; display: grid; gap: 13px; align-content: start; }
.nlw-dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nlw-kpi {
  padding: 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}
.nlw-kpi span { font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(150, 158, 178, 0.85); }
.nlw-kpi strong { display: block; margin-top: 5px; font-family: "Sora", "Inter", sans-serif; font-size: 1.25rem; }
.nlw-kpi strong small { font-size: 0.55em; font-weight: 600; }
.nlw-kpi--gk strong { color: var(--gk-hi); }
.nlw-kpi--blue strong { color: #9fb2cc; }
.nlw-kpi--green strong { color: #5bd089; }
.nlw-chart {
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  padding: 15px;
}
.nlw-chart__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.nlw-chart__head b {
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gk-hi); font-weight: 600;
}
.nlw-chart__head em { font-style: normal; font-size: 0.58rem; color: rgba(150, 158, 178, 0.7); }
.nlw-bars { display: flex; align-items: flex-end; gap: 9px; height: 96px; }
.nlw-bars span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--gk-hi), var(--gk-lo));
  transform-origin: bottom;
  animation: nlw-bar-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.nlw-bars span:nth-child(odd) { background: linear-gradient(180deg, #59606f, #2b2f3c); }
@keyframes nlw-bar-rise { from { transform: scaleY(0); } }

/* ----------------------------------------------------------------------
   CASE FACTS BAND
   ---------------------------------------------------------------------- */
.nlw-casebar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  margin-top: clamp(34px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid rgba(216, 180, 90, 0.14);
}
.nlw-casebar div { display: flex; flex-direction: column; gap: 3px; }
.nlw-casebar b {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.2rem;
  color: var(--gold-bright, #f6e2a6);
}
.nlw-casebar span { font-size: 0.76rem; color: rgba(150, 158, 178, 0.85); }

/* ----------------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nlw-rev { grid-template-columns: 1fr; }
  .nlw-rev > .nc-showcase__copy { order: 0; }
  .nlw-rev > .nc-window { order: 1; }
}
@media (max-width: 680px) {
  .nlw-site__phone { display: none; }
  .nlw-dash { grid-template-columns: 1fr; }
  .nlw-dash__side { display: none; }
  .nlw-dash__kpis { grid-template-columns: 1fr; }
}
/* narrow frames: collapse the mock site nav like a real responsive site
   (keep brand + login pill, drop the inline text links to avoid clipping) */
@media (max-width: 560px) {
  .nlw-site__links { gap: 0; }
  .nlw-site__links span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nlw-bars span { animation: none; }
}
