/* =========================================================
   Nuni — Process Page widgets
   Shared stylesheet for the Process Hero, Process Chapter,
   and Process Closing widgets. Ports Processen.html design.
   BEM scope: .nuni-pp-hero / .nuni-pp-ch / .nuni-pp-close
   ========================================================= */

/* Common tokens — each widget element inherits these. */
.nuni-pp-hero,
.nuni-pp-ch,
.nuni-pp-close {
  --nuni-pp-bg:        var(--e-global-color-7,        #E8DFCE);
  --nuni-pp-card-bg:   #F4ECDD;
  --nuni-pp-ink:       var(--e-global-color-text,     #2A1F14);
  --nuni-pp-ink-2:     #4A3C2C;
  --nuni-pp-muted:     var(--e-global-color-accent,   #6B5B47);
  --nuni-pp-sand:      var(--e-global-color-primary,  #BAA890);
  --nuni-pp-sand-deep: var(--e-global-color-secondary,#8A765C);
  --nuni-pp-line:      rgba(28, 20, 12, 0.12);
  --nuni-pp-r-sm:      6px;
  color: var(--nuni-pp-ink);
}

/* Shared parent-padding-kill + section flush rules. The Process widgets
   live inside normal Elementor sections; the flush rules just defeat
   any stray padding/margin so the chapters stack edge-to-edge. */
.elementor-widget-nuni-process-hero,
.elementor-widget-nuni-process-chapter,
.elementor-widget-nuni-process-closing {
  margin: 0 !important;
  padding: 0 !important;
}
.elementor-widget-nuni-process-hero > .elementor-widget-container,
.elementor-widget-nuni-process-chapter > .elementor-widget-container,
.elementor-widget-nuni-process-closing > .elementor-widget-container {
  padding: 0;
}

/* ===========================================================
   HERO — split-screen: text-side + full-bleed image
=========================================================== */
/* Full-bleed: break out of Elementor's content width. */
.elementor-widget-nuni-process-hero,
.elementor-widget-nuni-process-hero > .elementor-widget-container {
  width: 100%;
  max-width: none;
}
.elementor-widget-nuni-process-hero > .elementor-widget-container > .nuni-pp-hero {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
}
.elementor-editor-active .elementor-widget-nuni-process-hero > .elementor-widget-container > .nuni-pp-hero {
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
}
html:has(.nuni-pp-hero),
body:has(.nuni-pp-hero) { overflow-x: clip; }

.nuni-pp-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 85vh;
  width: 100%;
  align-items: stretch;
  background: var(--nuni-pp-card-bg);
}
.nuni-pp-hero--image-left { grid-template-columns: 0.85fr 1.15fr; }
.nuni-pp-hero--image-left .nuni-pp-hero__content { grid-column: 2; }
.nuni-pp-hero--image-left .nuni-pp-hero__media   { grid-column: 1; grid-row: 1; }

.nuni-pp-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(100px, 12vw, 160px) clamp(28px, 10vw, 12%) clamp(60px, 8vw, 100px) clamp(28px, 12vw, 12%);
  background: var(--nuni-pp-card-bg);
  max-width: 100%;
}

.nuni-pp-hero__eyebrow {
  font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--nuni-pp-accent, var(--nuni-pp-sand-deep));
  margin: 0 0 16px;
  display: block;
}

.nuni-pp-hero__title {
  font-family: 'Camello Rough', 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  color: var(--nuni-pp-ink);
  text-wrap: balance;
}

.nuni-pp-hero__lede {
  font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--nuni-pp-ink-2);
  margin: 0 0 36px;
  text-wrap: pretty;
}

.nuni-pp-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nuni-pp-hero__media {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100%;
}
.nuni-pp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 75%, rgba(28, 20, 12, 0.08));
  pointer-events: none;
}

/* Shared Nuni primary + ghost button — same shape as the Om Produkt /
   About / Campaign Cards buttons so the system reads consistent. */
.nuni-pp-btn,
.nuni-pp-btn:link,
.nuni-pp-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, color .22s ease, transform .15s ease;
}
.nuni-pp-btn--primary,
.nuni-pp-btn--primary:link,
.nuni-pp-btn--primary:visited {
  background: var(--nuni-pp-ink);
  border-color: var(--nuni-pp-ink);
  color: var(--nuni-pp-card-bg);
}
.nuni-pp-btn--primary:hover,
.nuni-pp-btn--primary:focus,
.nuni-pp-btn--primary:focus-visible,
.nuni-pp-btn--primary:active {
  background: var(--nuni-pp-sand-deep) !important;
  border-color: var(--nuni-pp-sand-deep) !important;
  color: var(--nuni-pp-card-bg) !important;
  outline: 0 !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}
.nuni-pp-btn--ghost,
.nuni-pp-btn--ghost:link,
.nuni-pp-btn--ghost:visited {
  background: transparent;
  border-color: var(--nuni-pp-ink);
  color: var(--nuni-pp-ink);
}
.nuni-pp-btn--ghost:hover,
.nuni-pp-btn--ghost:focus,
.nuni-pp-btn--ghost:focus-visible,
.nuni-pp-btn--ghost:active {
  background: var(--nuni-pp-ink) !important;
  border-color: var(--nuni-pp-ink) !important;
  color: var(--nuni-pp-card-bg) !important;
  outline: 0 !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* Parent padding/margin reset so the hero sits flush. */
.e-con:has(.elementor-widget-nuni-process-hero),
.e-con-inner:has(.elementor-widget-nuni-process-hero),
.elementor-section:has(.elementor-widget-nuni-process-hero),
.elementor-container:has(.elementor-widget-nuni-process-hero),
.elementor-row:has(.elementor-widget-nuni-process-hero),
.elementor-column:has(.elementor-widget-nuni-process-hero),
.elementor-widget-wrap:has(.elementor-widget-nuni-process-hero) {
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  max-width: none !important;
  min-height: 0 !important;
}

@media (max-width: 1024px) {
  .nuni-pp-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .nuni-pp-hero__media {
    min-height: 460px;
    order: -1;
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  .nuni-pp-hero__content {
    padding: clamp(80px, 14vw, 120px) clamp(24px, 5vw, 40px) clamp(56px, 8vw, 80px);
    text-align: center;
    align-items: center;
    grid-column: 1 !important;
  }
  .nuni-pp-hero__actions { justify-content: center; }
}
@media (max-width: 700px) {
  .nuni-pp-hero__media { min-height: 320px; }
  .nuni-pp-hero__content { padding: 80px 22px 56px; }
  .nuni-pp-hero__title { font-size: clamp(38px, 9vw, 56px); }
  .nuni-pp-hero__lede { font-size: 16px; }
  .nuni-pp-hero__actions { width: 100%; }
  .nuni-pp-btn { flex: 1 1 100%; }
}

/* ===========================================================
   CHAPTER — full-bleed section, no border between chapters
=========================================================== */
/* Break out of Elementor's content width so each chapter section
   spans the viewport edge-to-edge, matching Hero / Closing. */
.elementor-widget-nuni-process-chapter,
.elementor-widget-nuni-process-chapter > .elementor-widget-container {
  width: 100%;
  max-width: none;
}
.elementor-widget-nuni-process-chapter > .elementor-widget-container > .nuni-pp-ch {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
}
.elementor-editor-active .elementor-widget-nuni-process-chapter > .elementor-widget-container > .nuni-pp-ch {
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
}
html:has(.nuni-pp-ch),
body:has(.nuni-pp-ch) { overflow-x: clip; }

/* Parent padding/margin reset so consecutive chapters sit flush. */
.e-con:has(.elementor-widget-nuni-process-chapter),
.e-con-inner:has(.elementor-widget-nuni-process-chapter),
.elementor-section:has(.elementor-widget-nuni-process-chapter),
.elementor-container:has(.elementor-widget-nuni-process-chapter),
.elementor-row:has(.elementor-widget-nuni-process-chapter),
.elementor-column:has(.elementor-widget-nuni-process-chapter),
.elementor-widget-wrap:has(.elementor-widget-nuni-process-chapter) {
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  max-width: none !important;
  min-height: 0 !important;
}
.elementor-widget.elementor-widget-nuni-process-chapter {
  margin: 0 !important;
  padding: 0 !important;
}

.nuni-pp-ch {
  padding: clamp(72px, 9vw, 110px) 0;
  /* No border between chapters — the section background color (which
     can alternate per chapter) provides the visual rhythm. */
}

.nuni-pp-ch__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 40px);
}

.nuni-pp-ch__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  margin-bottom: clamp(56px, 7vw, 88px);
}
.nuni-pp-ch__title {
  font-family: 'Camello Rough', 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(56px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--nuni-pp-ink);
  text-wrap: balance;
}
.nuni-pp-ch__lede {
  font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.85;
  color: #23190E;
  margin: 0;
}
.nuni-pp-ch__lede p { margin: 0 0 16px; }
.nuni-pp-ch__lede p:last-child { margin: 0; }

.nuni-pp-ch__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.nuni-pp-ch__visual {
  aspect-ratio: 4 / 5;
  border-radius: 18px; /* matches the larger premium image radius */
  overflow: hidden;
  background: var(--nuni-pp-sand);
  position: relative;
}
.nuni-pp-ch__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Placeholder: subtle diagonal hatch over a sand tone, used when no
   image has been uploaded yet so the chapter rhythm stays intact. */
.nuni-pp-ch__visual--placeholder {
  background:
    repeating-linear-gradient(45deg, transparent 0 13px, rgba(28, 20, 12, 0.05) 13px 14px),
    var(--nuni-pp-sand);
}

/* ===== Steps — numbered list ===== */
.nuni-pp-ch__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: nuni-pp-stepnum;
}
.nuni-pp-ch__step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--nuni-pp-line);
  counter-increment: nuni-pp-stepnum;
}
.nuni-pp-ch__step:first-child { padding-top: 0; }
.nuni-pp-ch__step:last-child { border-bottom: 0; }
.nuni-pp-ch__step::before {
  content: counter(nuni-pp-stepnum, decimal-leading-zero);
  font-family: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--nuni-pp-step-num, var(--nuni-pp-sand-deep));
  padding-top: 6px;
}
.nuni-pp-ch__step h3 {
  font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  color: var(--nuni-pp-ink);
}
.nuni-pp-ch__step p {
  font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--nuni-pp-ink-2);
  margin: 0;
}

/* ===== Result line ===== */
.nuni-pp-ch__result {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--nuni-pp-line);
  font-family: 'Camello Rough', 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 22px;
  line-height: 1.4;
  color: var(--nuni-pp-ink);
  max-width: 60ch;
}

@media (max-width: 820px) {
  .nuni-pp-ch { padding: clamp(56px, 12vw, 72px) 0; }
  .nuni-pp-ch__head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .nuni-pp-ch__body { grid-template-columns: 1fr; gap: 40px; }
  /* On mobile every chapter shows the image first, regardless of the
     desktop image_position choice — keeps the reading rhythm consistent. */
  .nuni-pp-ch--image-right .nuni-pp-ch__visual { order: -1; }
}
@media (max-width: 700px) {
  .nuni-pp-ch__result {
    font-size: 19px;
    margin-top: 40px;
    padding-top: 20px;
  }
}

/* ===========================================================
   CLOSING — full-bleed centered finale
=========================================================== */
.elementor-widget-nuni-process-closing,
.elementor-widget-nuni-process-closing > .elementor-widget-container {
  width: 100%;
  max-width: none;
}
.elementor-widget-nuni-process-closing > .elementor-widget-container > .nuni-pp-close {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
}
.elementor-editor-active .elementor-widget-nuni-process-closing > .elementor-widget-container > .nuni-pp-close {
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
}
html:has(.nuni-pp-close),
body:has(.nuni-pp-close) { overflow-x: clip; }

/* Parent padding/margin reset so the closing sits flush against
   the last chapter. */
.e-con:has(.elementor-widget-nuni-process-closing),
.e-con-inner:has(.elementor-widget-nuni-process-closing),
.elementor-section:has(.elementor-widget-nuni-process-closing),
.elementor-container:has(.elementor-widget-nuni-process-closing),
.elementor-row:has(.elementor-widget-nuni-process-closing),
.elementor-column:has(.elementor-widget-nuni-process-closing),
.elementor-widget-wrap:has(.elementor-widget-nuni-process-closing) {
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  max-width: none !important;
  min-height: 0 !important;
}
.elementor-widget.elementor-widget-nuni-process-closing {
  margin: 0 !important;
  padding: 0 !important;
}

.nuni-pp-close {
  padding: clamp(80px, 12vw, 140px) 0;
  text-align: center;
  background: var(--nuni-pp-card-bg);
}
.nuni-pp-close__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 40px);
}
.nuni-pp-close__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 32px;
  color: var(--nuni-pp-ink);
}
.nuni-pp-close__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.nuni-pp-close__mark--emoji {
  font-size: 38px;
  line-height: 1;
  background: transparent !important;
}
.nuni-pp-close__title {
  font-family: 'Camello Rough', 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  color: var(--nuni-pp-ink);
  text-wrap: balance;
}
.nuni-pp-close__body {
  font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
  max-width: 56ch;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--nuni-pp-ink-2);
}
