/* ==========================================================================
   Nordjouren — Modern Web Baseline & Kameleont Components (2026)
   Inherits 100% of Nordjouren's existing palette, Georgia/Montserrat scale,
   1px borders (#dde2dc / #cad8d2), warm surfaces (#fffefa / #f7f5ef),
   forest green ink (#173b34 / #24574b), and brass focus ring (#b88716).
   ========================================================================== */

@layer nj-modern {
  :root {
    interpolate-size: allow-keywords;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

/* CLS = 0 fallback font metric alignment & tabular numbers */
body,
p,
li,
td,
th,
dd,
dt,
summary,
blockquote {
  font-size-adjust: from-font;
}

table,
output,
.nj-tabular {
  font-variant-numeric: tabular-nums;
}

/* Dynamic viewport & iOS safe-area ergonomics */
.nj-site-header .nj-nav-panel {
  max-height: 100dvh;
}

.nj-mbar {
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

/* Accessible :user-invalid + aria-invalid (never raw :invalid before interaction) */
.nj-field:user-invalid,
.nj-select:user-invalid,
.nj-field[aria-invalid="true"],
.nj-select[aria-invalid="true"] {
  border-color: #a12c2c !important;
  background-color: #fffafa;
}

.nj-field:user-invalid:focus-visible,
.nj-select:user-invalid:focus-visible,
.nj-field[aria-invalid="true"]:focus-visible,
.nj-select[aria-invalid="true"]:focus-visible {
  outline: 3px solid #a12c2c !important;
  outline-offset: 2px;
}

/* Smooth indexed <details> accordions */
details::details-content {
  transition: block-size 180ms cubic-bezier(0.22, 1, 0.36, 1), content-visibility 180ms allow-discrete;
  overflow: clip;
}

@media (prefers-reduced-motion: reduce) {
  details::details-content {
    transition: none;
  }
}

/* Header, Footer & Decorative UI typography preserved 1:1 without polluting H2/H3 outline */
.nj-mega-heading .nj-mega-title {
  font-family: Georgia, serif !important;
  font-weight: 400;
  font-size: 27px;
  line-height: 1.15;
  margin: 0;
  color: #183d33;
}

.nj-service-category .nj-cat-trigger {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

p.foot-h,
div.foot-h {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.nh-home .nj-ui-h2,
.nj-ui-h2 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--nh-ink, #173b34);
  font-size: clamp(32px, 3.4vw, 48px) !important;
  margin: 0 0 20px;
}

.nh-home .nh-booking__intro .nj-ui-h2 {
  font-size: 26px !important;
  line-height: 1.15;
  margin: 0;
}

@media (max-width: 767px) {
  .nh-home .nh-booking__intro .nj-ui-h2 {
    font-size: 23px !important;
  }
}

.nh-home .nh-why__copy .nj-ui-h2 {
  font-size: clamp(30px, 3vw, 42px) !important;
}

.nh-home .nh-coverage__intro .nj-ui-h2 {
  font-size: clamp(30px, 2.7vw, 38px) !important;
  margin-bottom: 16px;
}

.nh-home .nh-experience .nh-process .nj-ui-h2 {
  margin: 0 0 14px;
  font-family: Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase;
  color: #586457;
}

.nh-page .nh-home .nh-reviews .nj-ui-h2,
.nh-page .nh-home .nh-experience .nh-reviews .nj-ui-h2 {
  font-size: clamp(28px, 2.65vw, 38px) !important;
  margin: 0 0 10px;
}

.nh-home .nh-final .nj-ui-h2,
.ng-end .nj-ui-h2 {
  color: #fffdf3 !important;
  font-size: clamp(32px, 3.2vw, 42px) !important;
  margin-bottom: 15px;
}

.kb-toc .nj-ui-h2 {
  font-family: inherit !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: #3f5148;
}

.kb-related .nj-ui-h2 {
  font-family: Georgia, serif !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  line-height: 1.2;
  margin: 10px 0 24px;
}

.kb-cta .nj-ui-h2 {
  font-family: Georgia, serif !important;
  font-size: clamp(26px, 2.8vw, 34px) !important;
  font-weight: 400 !important;
  line-height: 1.16;
  margin: 6px 0 12px;
}

.nj-ui-h3 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--nh-ink, #173b34);
  font-size: 1.08rem;
  margin: 0 0 0.45rem;
}

.nh-home .nh-benefits .nj-ui-h3 {
  font-size: 13px;
  margin: 0 0 5px;
}

.nh-home .nh-coverage__benefits .nj-ui-h3 {
  font-size: 12px;
  margin: 0 0 3px;
}

.nh-home .nh-process .nj-ui-h3,
.nh-home .nh-experience .nh-process .nj-ui-h3 {
  font-size: 13px;
  margin: 0 0 4px;
}

.hz-review__name.nj-ui-h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--nj-ink, #102529);
}

.ns-form-card .nj-ui-h3,
.nq-success .nj-ui-h3 {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.4rem;
}

/* ==========================================================================
   Kameleont Navboost Price & Tax Calculator (.nj-calc-band)
   Matches .nh-booking / .ns-form-card / #173b34 & #fffefa 1:1
   ========================================================================== */
.nj-calc-band {
  padding: 36px 0;
  background: #f7f5ef;
  border-block: 1px solid #e2e6df;
  color: #173b34;
}

.nj-calc-card {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  background: #fffefa;
  border: 1px solid #d7ded8;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 8px 28px rgba(16, 45, 52, 0.05);
}

.nj-calc-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 24px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6eae3;
}

.nj-calc-header h2,
.nj-calc-header .nj-calc-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 4px 0 0;
  color: #173b34;
}

.nj-calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eaf1ee;
  border: 1px solid #cad8d2;
  color: #174a3e;
  font-size: 12px;
  font-weight: 600;
}

.nj-calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.nj-calc-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  min-width: 0;
}

.nj-calc-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nj-calc-field--full {
  grid-column: 1 / -1;
}

.nj-calc-field label {
  font-size: 13px;
  font-weight: 600;
  color: #24453d;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.nj-calc-input,
.nj-calc-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.4;
  color: #173b34;
  background: #ffffff;
  border: 1px solid #c6d3cd;
  border-radius: 10px;
  transition: border-color 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nj-calc-input:focus-visible,
.nj-calc-select:focus-visible,
.nj-calc-range:focus-visible {
  outline: 3px solid #b88716;
  outline-offset: 2px;
  border-color: #173b34;
}

.nj-calc-range {
  width: 100%;
  height: 44px;
  accent-color: #24574b;
  cursor: pointer;
}

.nj-calc-summary {
  background: #f4f7f4;
  border: 1px solid #d2ddd7;
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.nj-calc-price-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #425a52;
  margin: 0;
}

.nj-calc-price-output {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  color: #173b34;
  margin: 4px 0 6px;
}

.nj-calc-tax-note {
  font-size: 13px;
  line-height: 1.55;
  color: #355048;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #dce5e0;
}

.nj-calc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid #173b34;
  background: #173b34;
  color: #fffefa !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 170ms cubic-bezier(0.22, 1, 0.36, 1), transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .nj-calc-cta:hover {
    background: #24574b;
    border-color: #24574b;
  }
}

.nj-calc-cta:active {
  transform: scale(0.985);
}

.nj-calc-cta:focus-visible {
  outline: 3px solid #b88716;
  outline-offset: 3px;
}

/* ==========================================================================
   Kameleont Data Tables, E-E-A-T Protocol Cards & Local Area Anchors
   ========================================================================== */
.nj-practitioner-section {
  padding: 48px 0;
  background: #fffefa;
  border-top: 1px solid #e7ebe4;
  color: #173b34;
}

.nj-practitioner-section--tint {
  background: #f7f5ef;
}

.nj-practitioner-wrap {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.nj-practitioner-wrap p {
  max-width: 68ch;
  line-height: 1.65;
  text-wrap: pretty;
}

.nj-answer-capsule {
  margin: 14px 0 0;
  padding: 14px 18px;
  border-left: 3px solid #24574b;
  background: rgba(255, 254, 250, 0.92);
  color: #173b34;
  border-radius: 0 10px 10px 0;
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 66ch;
}

.nh-hero .nj-answer-capsule,
.ng-hero .nj-answer-capsule {
  background: rgba(18, 53, 45, 0.72);
  border-left-color: #d9ac31;
  color: #f6f8f5;
}

.nh-hero .nj-answer-capsule a,
.ng-hero .nj-answer-capsule a {
  color: #fffdf3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nj-table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin: 20px 0 18px;
  border: 1px solid #d7ded8;
  border-radius: 12px;
  background: #ffffff;
}

.nj-price-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  color: #173b34;
}

.nj-price-table caption {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 13px;
  color: #2f4b43;
  background: #f4f7f4;
  border-bottom: 1px solid #d7ded8;
}

.nj-price-table th,
.nj-price-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e8ece7;
  vertical-align: top;
}

.nj-price-table thead th {
  background: #f7f5ef;
  font-weight: 700;
  color: #173b34;
}

.nj-price-table tbody tr:last-child td {
  border-bottom: 0;
}

.nj-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.nj-area-card {
  padding: 18px 20px;
  border: 1px solid #dbe2dc;
  border-radius: 12px;
  background: #ffffff;
  min-width: 0;
}

.nj-area-card h3 {
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #173b34;
}

.nj-area-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: #2f4740;
}

.nj-meta-review-stamp {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 16px;
  font-size: 13px;
  color: #445a52;
}

@media (max-width: 860px) {
  .nj-calc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nj-calc-card {
    width: calc(100% - 28px);
    padding: 20px 18px;
  }
  .nj-calc-controls {
    grid-template-columns: 1fr;
  }
  .nj-practitioner-section {
    padding: 34px 0;
  }
  .nj-practitioner-wrap {
    width: calc(100% - 32px);
  }
}

/* ==========================================================================
   Shared Reference Marquee & Hero Photo Background (Moved from inline <style>)
   ========================================================================== */
[data-nj-reference-strip] {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  padding: 18px 0 20px;
  overflow: hidden;
  border-block: 1px solid #e5e8e1;
  background: #fffefa;
  color: #173b34;
}
[data-nj-reference-strip] .hz-wrap {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}
[data-nj-reference-strip] .hz-refs__label {
  margin: 0 0 13px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4d5e56;
  min-height: 1.4em;
}
[data-nj-reference-strip] .hz-marquee {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
[data-nj-reference-strip] .hz-marquee__track {
  display: grid;
  grid-template-columns: repeat(10, minmax(5rem, 1fr));
  align-items: center;
  min-width: 58.75rem;
  gap: 24px;
}
[data-nj-reference-strip] .hz-marquee__item {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 58px;
  scroll-snap-align: start;
}
[data-nj-reference-strip] img {
  display: block;
  max-width: 100%;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
@media (max-width: 600px) {
  [data-nj-reference-strip] {
    padding: 14px 0 16px;
  }
  [data-nj-reference-strip] .hz-wrap,
  [data-nj-reference-strip] .hz-marquee {
    width: calc(100% - 32px);
  }
  [data-nj-reference-strip] .hz-refs__label {
    font-size: 9px;
    margin-bottom: 10px;
  }
  [data-nj-reference-strip] .hz-marquee__track {
    display: flex;
    min-width: 0;
    width: max-content;
    gap: 22px;
  }
  [data-nj-reference-strip] .hz-marquee__item {
    flex: 0 0 7.375rem;
    height: 48px;
  }
  [data-nj-reference-strip] img {
    max-width: 7.375rem;
    max-height: 44px;
  }
}

/* Identical hero background photo rendering when <img> is reserved for unique page SVG */
.nh-hero__photo.nj-hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.nj-fig-bg {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.nj-infographic-card {
  margin: 22px 0 12px;
  border: 1px solid #d7ded8;
  border-radius: 12px;
  overflow: hidden;
  background: #fffefa;
  max-width: 760px;
}
.nj-infographic-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Homepage Service Catalogue Grid (Moved from inline <style> on index.html)
   ========================================================================== */
.nj-service-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:34px}
.nj-service-group{min-width:0;overflow:hidden;border:1px solid #dde2dc;border-radius:16px;background:#f7f5ef;color:#173b34}
.nj-service-group__main{display:grid;grid-template-columns:minmax(160px,.72fr) minmax(0,1fr);color:inherit;text-decoration:none}
.nj-service-group__image{position:relative;display:block;min-height:220px;overflow:hidden;background:#e9eee8}
.nj-service-group__image img,.nj-service-group__image .nj-fig-bg{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:cover;border-radius:0}
.nj-service-group__image>span:not(.nj-fig-bg){position:absolute;right:16px;bottom:16px;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#fffefa;color:#174a3e;font-size:24px}
.nj-service-group__copy{display:flex;flex-direction:column;justify-content:center;padding:28px}
.nj-service-group__copy strong{font-size:clamp(20px,2vw,27px);line-height:1.25}
.nj-service-group__copy small{font-size:14px;line-height:1.65;color:#56665f;margin-top:12px}
.nj-service-group details{border-top:1px solid #dde2dc;background:#fffefa}
.nj-service-group summary{display:flex;align-items:center;min-height:56px;padding:13px 20px;list-style:none;cursor:pointer;color:#425a52;font-size:14px;font-weight:650}
.nj-service-group summary::-webkit-details-marker{display:none}
.nj-service-group summary span{margin-left:auto;font-size:22px;transition:transform .18s ease}
.nj-service-group details[open] summary span{transform:rotate(180deg)}
.nj-service-group ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;margin:0;padding:4px 20px 20px;list-style:none}
.nj-service-group li{margin:0;padding:0;list-style:none;border-bottom:1px solid #edf0eb}
.nj-service-group li a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 0;color:#35564d;text-decoration:none;font-size:14px;line-height:1.45}
.nj-service-group li a:hover,.nj-service-group__main:hover strong{text-decoration:underline;text-underline-offset:4px}
.nj-service-group :focus-visible{outline:3px solid #b88716;outline-offset:3px}
.nj-service-group__main:focus-visible{outline-offset:-5px}
@media(max-width:900px){.nj-service-categories{grid-template-columns:1fr}.nj-service-group__main{grid-template-columns:minmax(145px,.62fr) minmax(0,1fr)}}
@media(max-width:560px){.nj-service-categories{gap:16px;margin-top:25px}.nj-service-group__main{grid-template-columns:1fr}.nj-service-group__image{min-height:190px}.nj-service-group__copy{padding:22px}.nj-service-group ul{grid-template-columns:1fr}.nj-service-group summary{min-height:54px}}
@media(prefers-reduced-motion:reduce){.nj-service-group summary span{transition:none}}
