/* ==========================================================================
   JNP Small Business — shared design kit
   Source: Figma "Portfolio site (launch phase) — v2" (4OyzCvMaKypDvtgngFc9F1)
   Desktop canvas 1728px, content column 1408px (160px gutters).
   ========================================================================== */

:root {
  /* Colour */
  --jnp-ink: #131A38;
  --jnp-grad-1: #2B2350;
  --jnp-grad-2: #4B3A7A;
  --jnp-grad-3: #6B3A5E;
  --jnp-rust: #C0451E;
  --jnp-rust-hover: #A83A18;
  --jnp-orange: #E8642F;
  --jnp-paper: #FFFFFF;
  --jnp-tint: #F7F7FA;
  --jnp-line: #E5E4EE;
  --jnp-slate: #56556B;
  --jnp-body: #2E2F45;

  /* Type */
  --jnp-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --jnp-ui: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --jnp-max: 1408px;
  --jnp-gutter: 160px;
  --jnp-sec-y: 110px;
  --jnp-radius: 18px;
  --jnp-gradient: linear-gradient(48deg, #131A38 11%, #2B2350 41%, #4B3A7A 63%, #6B3A5E 89%);
}

/* --- Reset-ish ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--jnp-ui);
  font-size: 18px;
  line-height: 1.65;
  color: var(--jnp-body);
  background: var(--jnp-paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* --- Layout -------------------------------------------------------------- */
.jnp-wrap { width: 100%; max-width: var(--jnp-max); margin: 0 auto; padding: 0 var(--jnp-gutter); }
@media (min-width: 1729px) { .jnp-wrap { padding: 0; } }

.jnp-sec { padding: var(--jnp-sec-y) 0; position: relative; }
.jnp-sec-paper { background: var(--jnp-paper); color: var(--jnp-body); }
.jnp-sec-tint  { background: var(--jnp-tint);  color: var(--jnp-body); }
.jnp-sec-ink   { background: var(--jnp-ink);   color: #fff; }
.jnp-sec-grad  { background: var(--jnp-gradient); color: #fff; }

.jnp-split { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 100px; align-items: start; }
.jnp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.jnp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.jnp-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }

/* --- Type ---------------------------------------------------------------- */
.jnp-eyebrow {
  font-family: var(--jnp-ui); font-weight: 600; font-size: 12px; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--jnp-orange); line-height: 1.2;
}
.jnp-h1 {
  font-family: var(--jnp-display); font-weight: 700; font-size: 88px; line-height: 1;
  letter-spacing: -0.035em; color: #fff;
}
.jnp-h2 {
  font-family: var(--jnp-display); font-weight: 700; font-size: 46px; line-height: 52px;
  letter-spacing: -0.025em; color: var(--jnp-ink);
}
.jnp-h3 {
  font-family: var(--jnp-display); font-weight: 700; font-size: 28px; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--jnp-ink);
}
.jnp-h4 { font-family: var(--jnp-display); font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--jnp-ink); }
.jnp-lede { font-size: 19.5px; line-height: 33px; color: var(--jnp-slate); }
.jnp-body { font-size: 18px; line-height: 30px; color: var(--jnp-body); }
.jnp-note { font-size: 14px; line-height: 24px; color: var(--jnp-slate); }
.jnp-sec-ink .jnp-h2, .jnp-sec-grad .jnp-h2,
.jnp-sec-ink .jnp-h3, .jnp-sec-grad .jnp-h3,
.jnp-sec-ink .jnp-h4, .jnp-sec-grad .jnp-h4 { color: #fff; }
.jnp-sec-ink .jnp-lede, .jnp-sec-grad .jnp-lede { color: rgba(255,255,255,.82); }
.jnp-sec-ink .jnp-body, .jnp-sec-grad .jnp-body { color: rgba(255,255,255,.8); }
.jnp-sec-ink .jnp-note, .jnp-sec-grad .jnp-note { color: rgba(255,255,255,.5); }
.jnp-stack { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.jnp-measure { max-width: 720px; }

/* --- Buttons ------------------------------------------------------------- */
.jnp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 34px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--jnp-ui); font-weight: 600; font-size: 13px; letter-spacing: 0.13em;
  text-transform: uppercase; line-height: 1.2; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.jnp-btn-solid { background: var(--jnp-rust); color: #fff; border-color: var(--jnp-rust); }
.jnp-btn-solid:hover { background: var(--jnp-rust-hover); border-color: var(--jnp-rust-hover); }
.jnp-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.jnp-btn-ghost:hover { border-color: #fff; }
.jnp-sec-paper .jnp-btn-ghost, .jnp-sec-tint .jnp-btn-ghost { color: var(--jnp-ink); border-color: rgba(19,26,56,.35); }
.jnp-sec-paper .jnp-btn-ghost:hover, .jnp-sec-tint .jnp-btn-ghost:hover { border-color: var(--jnp-ink); }
.jnp-btn-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.jnp-textlink { font-weight: 600; font-size: 13px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--jnp-rust); border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.jnp-sec-ink .jnp-textlink, .jnp-sec-grad .jnp-textlink { color: #fff; }

/* --- Nav ----------------------------------------------------------------- */
.jnp-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; padding-top: 52px; }
.jnp-header .jnp-wrap { display: flex; flex-direction: column; }
.jnp-nav { display: flex; align-items: center; justify-content: space-between; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.18); }
.jnp-wordmark { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.jnp-wordmark img { width: 283px; height: auto; }
.jnp-wordmark-sub { font-weight: 600; font-size: 10.22px; line-height: 1.7; letter-spacing: 0.116em; color: #fff; white-space: nowrap; text-transform: uppercase; }
.jnp-nav-items { display: flex; align-items: center; gap: 38px; }
.jnp-navlink { font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.8); transition: color .18s; }
.jnp-navlink:hover, .jnp-navlink.is-current { color: #fff; }
.jnp-nav .jnp-btn { padding: 18px 34px; }
.jnp-nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; }
.jnp-nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }
/* Pages whose hero is light get a dark header */
.jnp-header.is-dark .jnp-nav { border-bottom-color: rgba(19,26,56,.14); }
.jnp-header.is-dark .jnp-wordmark-sub, .jnp-header.is-dark .jnp-navlink { color: var(--jnp-ink); }
.jnp-header.is-dark .jnp-navlink { color: rgba(19,26,56,.75); }
.jnp-header.is-dark .jnp-nav-toggle span { background: var(--jnp-ink); }

/* Hero sections make room for the absolute header */
.jnp-hero { padding-top: 268px; }

/* --- Forms --------------------------------------------------------------- */
.jnp-form { display: flex; flex-direction: column; gap: 34px; width: 100%; }
.jnp-form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 36px; }
.jnp-field { display: flex; flex-direction: column; gap: 10px; }
.jnp-field label { font-weight: 600; font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--jnp-slate); }
.jnp-field input, .jnp-field select, .jnp-field textarea {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--jnp-line); border-radius: 0; background: transparent;
  font-family: var(--jnp-ui); font-size: 16px; line-height: 1.4; color: var(--jnp-ink); padding: 0 0 10px; outline: none;
  transition: border-color .18s;
}
.jnp-field textarea { resize: vertical; min-height: 44px; }
.jnp-field input::placeholder, .jnp-field textarea::placeholder { color: rgba(19,26,56,.4); }
.jnp-field input:focus, .jnp-field select:focus, .jnp-field textarea:focus { border-bottom-color: var(--jnp-rust); }
.jnp-field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.jnp-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.jnp-checks { display: flex; flex-wrap: wrap; gap: 24px; }
.jnp-check { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--jnp-slate); cursor: pointer; }
.jnp-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--jnp-rust); }
/* Dark surfaces */
.jnp-sec-grad .jnp-field label, .jnp-sec-ink .jnp-field label, .jnp-panel .jnp-field label { color: rgba(255,255,255,.62); }
.jnp-sec-grad .jnp-field input, .jnp-sec-ink .jnp-field input, .jnp-panel .jnp-field input,
.jnp-sec-grad .jnp-field select, .jnp-sec-ink .jnp-field select, .jnp-panel .jnp-field select,
.jnp-sec-grad .jnp-field textarea, .jnp-sec-ink .jnp-field textarea, .jnp-panel .jnp-field textarea { color: #fff; border-bottom-color: rgba(255,255,255,.3); }
.jnp-sec-grad .jnp-field input::placeholder, .jnp-sec-ink .jnp-field input::placeholder, .jnp-panel .jnp-field input::placeholder,
.jnp-sec-grad .jnp-field textarea::placeholder, .jnp-sec-ink .jnp-field textarea::placeholder, .jnp-panel .jnp-field textarea::placeholder { color: rgba(255,255,255,.4); }
.jnp-sec-grad .jnp-field input:focus, .jnp-sec-ink .jnp-field input:focus, .jnp-panel .jnp-field input:focus { border-bottom-color: #fff; }
.jnp-sec-grad .jnp-check, .jnp-sec-ink .jnp-check, .jnp-panel .jnp-check { color: rgba(255,255,255,.6); }
.jnp-sec-grad select option, .jnp-sec-ink select option { color: var(--jnp-ink); }
/* Light card inside a dark section (see NB bug note) */
.jnp-form-light.jnp-form-light .jnp-field label { color: var(--jnp-slate); }
.jnp-form-light.jnp-form-light .jnp-field input, .jnp-form-light.jnp-form-light .jnp-field select, .jnp-form-light.jnp-form-light .jnp-field textarea { color: var(--jnp-ink); border-bottom-color: var(--jnp-line); }
.jnp-form-light.jnp-form-light .jnp-field input::placeholder, .jnp-form-light.jnp-form-light .jnp-field textarea::placeholder { color: rgba(19,26,56,.4); }
.jnp-form-light.jnp-form-light .jnp-check { color: var(--jnp-slate); }
.jnp-form-light.jnp-form-light .jnp-field input:focus { border-bottom-color: var(--jnp-rust); }
.jnp-form-msg { padding: 14px 18px; border-radius: 10px; font-size: 14px; }
.jnp-form-msg.is-error { background: #FDECE6; color: #8A2E12; }
.jnp-form-msg.is-ok { background: #E8F5EC; color: #1F5A32; }
.jnp-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* --- Cards / panels ------------------------------------------------------ */
.jnp-panel { background: var(--jnp-ink); color: #fff; border-radius: var(--jnp-radius); padding: 48px; }
.jnp-card { background: #fff; border-radius: var(--jnp-radius); padding: 40px; border: 1px solid var(--jnp-line); }
.jnp-card-tint { background: var(--jnp-tint); border-radius: var(--jnp-radius); padding: 40px; }
.jnp-rule { height: 1px; background: rgba(19,26,56,.12); width: 100%; }
.jnp-sec-ink .jnp-rule, .jnp-sec-grad .jnp-rule { background: rgba(255,255,255,.14); }
.jnp-accent-rule { width: 56px; height: 3px; background: var(--jnp-orange); }

/* --- Stats --------------------------------------------------------------- */
.jnp-stat { display: flex; flex-direction: column; gap: 10px; }
.jnp-stat-fig { font-family: var(--jnp-display); font-weight: 700; font-size: 72px; line-height: 1; letter-spacing: -0.03em; color: var(--jnp-ink); }
.jnp-stat-label { font-size: 16px; line-height: 24px; color: var(--jnp-slate); }
.jnp-stat-src { font-size: 12.5px; line-height: 18px; color: var(--jnp-slate); opacity: .8; }
.jnp-sec-ink .jnp-stat-fig, .jnp-sec-grad .jnp-stat-fig { color: #fff; }
.jnp-sec-ink .jnp-stat-label, .jnp-sec-grad .jnp-stat-label { color: rgba(255,255,255,.75); }
.jnp-sec-ink .jnp-stat-src, .jnp-sec-grad .jnp-stat-src { color: rgba(255,255,255,.5); }

/* --- Media placeholders -------------------------------------------------- */
.jnp-media { position: relative; overflow: hidden; border-radius: var(--jnp-radius); background: linear-gradient(160deg, #2B2350, #131A38); }
.jnp-media img { width: 100%; height: 100%; object-fit: cover; }
.jnp-media-cap { position: absolute; left: 24px; bottom: 20px; font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.92); }

/* --- Footer -------------------------------------------------------------- */
.jnp-footer { background: var(--jnp-ink); color: #fff; padding: 88px 0 64px; }
.jnp-footer .jnp-wrap { display: flex; flex-direction: column; gap: 54px; }
.jnp-footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; }
.jnp-footer-brand { display: flex; flex-direction: column; gap: 26px; }
.jnp-footer-brand .jnp-wordmark img { width: 270px; }
.jnp-footer-brand .jnp-wordmark-sub { font-size: 9.75px; }
.jnp-footer-blurb { font-size: 16px; line-height: 26px; color: rgba(255,255,255,.72); max-width: 360px; }
.jnp-footer-cols { display: flex; gap: 70px; }
.jnp-footer-col { display: flex; flex-direction: column; gap: 14px; min-width: 220px; }
.jnp-footer-col h4 { font-family: var(--jnp-ui); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.jnp-footer-col a, .jnp-footer-col p { font-size: 14px; line-height: 22px; color: rgba(255,255,255,.75); }
.jnp-footer-col a:hover { color: #fff; }
.jnp-footer-auth { font-size: 12.5px; line-height: 20px; color: rgba(255,255,255,.5); }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1200px) {
  :root { --jnp-gutter: 64px; }
  .jnp-h1 { font-size: 68px; }
  .jnp-split { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 60px; }
  .jnp-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 991px) {
  :root { --jnp-gutter: 40px; --jnp-sec-y: 80px; }
  .jnp-header { padding-top: 28px; }
  .jnp-hero { padding-top: 190px; }
  .jnp-nav { padding-bottom: 22px; }
  .jnp-wordmark img { width: 220px; }
  .jnp-header .jnp-wordmark-sub { font-size: 8.6px; letter-spacing: 0.06em; }
  .jnp-nav-toggle { display: block; }
  .jnp-nav-items { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--jnp-ink); padding: 12px var(--jnp-gutter) 24px; }
  .jnp-nav-items.is-open { display: flex; }
  .jnp-nav-items .jnp-navlink { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; }
  .jnp-nav-items .jnp-btn { margin-top: 20px; }
  .jnp-header.is-dark .jnp-nav-items .jnp-navlink { color: #fff; }
  .jnp-split { grid-template-columns: 1fr; gap: 48px; }
  .jnp-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .jnp-h1 { font-size: 56px; }
  .jnp-h2 { font-size: 38px; line-height: 44px; }
  .jnp-stat-fig { font-size: 56px; }
  .jnp-footer-top { flex-direction: column; }
  .jnp-footer-cols { flex-wrap: wrap; gap: 40px; }
}
@media (max-width: 767px) {
  :root { --jnp-gutter: 24px; --jnp-sec-y: 64px; }
  body { font-size: 17px; }
  .jnp-hero { padding-top: 150px; }
  .jnp-wordmark img { width: 190px; }
  .jnp-header .jnp-wordmark-sub { font-size: 7.6px; letter-spacing: 0.04em; }
  .jnp-h1 { font-size: 44px; letter-spacing: -0.03em; }
  .jnp-h2 { font-size: 32px; line-height: 38px; }
  .jnp-h3 { font-size: 24px; }
  .jnp-lede { font-size: 18px; line-height: 29px; }
  .jnp-grid-2, .jnp-grid-3, .jnp-grid-4 { grid-template-columns: 1fr; }
  .jnp-form-row { grid-template-columns: 1fr; }
  .jnp-btn { padding: 16px 26px; font-size: 12px; }
  .jnp-btn-row .jnp-btn { width: 100%; }
  .jnp-panel, .jnp-card, .jnp-card-tint { padding: 28px; }
  .jnp-stat-fig { font-size: 48px; }
}

/* --- Placeholders (before photos are uploaded) --------------------------- */
.jnp-placeholder { width: 100%; height: 100%; min-height: 100%; display: flex; align-items: flex-end; padding: 20px; background: linear-gradient(160deg, #2B2350 0%, #131A38 100%); color: rgba(255,255,255,.55); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.jnp-media .jnp-placeholder, figure .jnp-placeholder { position: absolute; inset: 0; }
.jnp-media { min-height: 200px; }

/* --- Video modal --------------------------------------------------------- */
.jnp-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.jnp-modal[hidden] { display: none; }
.jnp-modal-backdrop { position: absolute; inset: 0; background: rgba(19,26,56,.9); }
.jnp-modal-box { position: relative; width: min(1100px, 100%); }
.jnp-modal-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.jnp-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jnp-modal-close { position: absolute; right: 0; top: -48px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--jnp-ink); font-size: 26px; line-height: 1; }
body.jnp-modal-open, body.jnp-nav-open { overflow: hidden; }

/* --- Pagination ---------------------------------------------------------- */
.news-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.news-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--jnp-line); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--jnp-slate); }
.news-pagination .page-numbers.current { background: var(--jnp-grad-1); border-color: var(--jnp-grad-1); color: #fff; }
.news-pagination a.page-numbers:hover { border-color: var(--jnp-ink); color: var(--jnp-ink); }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; }
.jnp-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.jnp-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.jnp-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
