/* ==========================================================
   NextStep Consulting — site styles
   ----------------------------------------------------------
   HOW TO EDIT THIS FILE
   1. Brand colours / fonts / spacing: edit :root below.
   2. Each page area has its own clearly labelled section.
   3. Responsive overrides are grouped at the bottom.
   4. Keep horizontal page gutters on .container only.
      Sections use padding-block, so gutters never get erased.
   ========================================================== */

/* 01. DESIGN TOKENS
   ========================================================== */
:root {
  --color-ink: #2c2c2c;
  --color-paper: #ecebe5;
  --color-forest: #2e4b3c;
  --color-forest-dark: #1e3329;
  --color-bone: #f7f6f1;
  --color-line: rgba(44, 44, 44, 0.15);
  --color-line-light: rgba(247, 246, 241, 0.18);

  /* Legacy NextStep brand accents, sampled from the current site/logo. */
  --color-brand-green: #37761d;
  --color-brand-sage: #95a383;
  --color-brand-sage-deep: #848a79;
  --color-brand-mist: #dee2da;
  --color-brand-sage-soft: #e2e6dc;

  /* Privacy-friendly system stacks: no external font request. */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-space: clamp(56px, 7vw, 82px);
  --radius: 3px;
  --header-height: 90px;

  --shadow-menu: 0 16px 36px rgba(30, 51, 41, 0.08);
}

/* 02. RESET + BASE
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
ul,
ol {
  margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(55, 118, 29, 0.34);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-150%);
  background: var(--color-ink);
  color: var(--color-bone);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

/* 03. SHARED LAYOUT + TYPOGRAPHY
   ========================================================== */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.section--bordered {
  border-bottom: 1px solid var(--color-line);
}

.section--forest {
  background: var(--color-forest);
  color: var(--color-bone);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.section-heading h2,
.display-title,
.about__title,
.contact__title {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.018em;
}

.section-heading h2 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1.12;
}

.section-heading p {
  max-width: 38ch;
  margin-bottom: 0;
  opacity: 0.74;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--color-brand-green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.muted {
  opacity: 0.72;
}

/* 04. BUTTONS + LINKS
   ========================================================== */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.25;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--color-forest);
  color: var(--color-bone);
}

.button--primary:hover {
  background: var(--color-brand-green);
}

.button--dark {
  background: var(--color-ink);
  color: var(--color-bone);
}

.button--outline {
  border-color: var(--color-ink);
  background: transparent;
  color: var(--color-ink);
}

.button--outline:hover {
  background: var(--color-ink);
  color: var(--color-bone);
}

.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* 05. HEADER + NAVIGATION
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-line);
  background: rgba(236, 235, 229, 0.94);
  backdrop-filter: blur(10px);
}

.site-nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: 150px;
  align-items: center;
  line-height: 1;
}

.brand__logo {
  width: clamp(118px, 10vw, 148px);
  height: auto;
  border-radius: 2px;
}

/* Kept for backwards compatibility with older preview files. */
.brand__name,
.brand__sub,
.brand__dot {
  display: none;
}

.nav-panel {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 28px);
}

.nav-links,
.nav-actions,
.language-switch {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: clamp(14px, 1.8vw, 26px);
}

.nav-links a {
  font-size: 0.91rem;
  opacity: 0.72;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
}

.nav-actions {
  gap: 16px;
}

.language-switch {
  gap: 7px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.64;
}

.language-switch a[aria-current='page'] {
  font-weight: 700;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-cta {
  min-height: 42px;
  padding: 9px 15px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  width: 23px;
  height: 2px;
  background: var(--color-ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle__icon {
  position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-toggle__icon::before {
  top: -7px;
}

.menu-toggle__icon::after {
  top: 7px;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__icon {
  background: transparent;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-only {
  display: none;
}

/* 06. HERO
   ========================================================== */
.hero {
  padding-block: clamp(54px, 7vw, 82px) clamp(48px, 6vw, 68px);
  border-bottom: 1px solid var(--color-line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.86fr);
  gap: clamp(42px, 6vw, 76px);
  align-items: end;
}

.display-title {
  max-width: 14ch;
  font-size: clamp(2.6rem, 5.2vw, 4.55rem);
  line-height: 1.03;
}

.hero__aside {
  border-left: 1px solid var(--color-line);
  padding-left: clamp(24px, 3vw, 36px);
}

.hero__aside p {
  max-width: 38ch;
  margin-bottom: 0;
  font-size: 1.01rem;
  opacity: 0.84;
}

.hero__aside .button {
  margin-top: 25px;
}

/* 07. TRUST BAR
   ========================================================== */
.trust {
  padding-block: 28px 34px;
  border-bottom: 1px solid var(--color-line);
}

.trust__label {
  margin-bottom: 14px;
  font-size: 0.8rem;
  opacity: 0.58;
}

.trust__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust__list li {
  border-right: 1px solid var(--color-line);
  padding-right: 18px;
  margin-right: 18px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  opacity: 0.76;
}

.trust__list li:last-child {
  border-right: 0;
}

.trust__note {
  margin-top: 15px;
  margin-bottom: 0;
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.54;
}

/* 08. VIDEO
   ========================================================== */
.video-section {
  padding-block: clamp(38px, 5vw, 62px) clamp(50px, 6vw, 72px);
}

.video-shell {
  border-bottom: 4px solid var(--color-brand-sage);
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #202522 0%, var(--color-forest-dark) 100%);
}

.video-launch {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--color-bone);
  cursor: pointer;
}

.video-launch__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px;
}

.video-launch__play {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(247, 246, 241, 0.52);
  border-radius: 50%;
  background: rgba(247, 246, 241, 0.12);
  transition: background-color 160ms ease, transform 160ms ease;
}

.video-launch:hover .video-launch__play {
  transform: scale(1.05);
  background: var(--color-brand-green);
}

.video-launch:disabled {
  cursor: default;
}

.video-launch:disabled:hover .video-launch__play {
  transform: none;
  background: rgba(247, 246, 241, 0.12);
}

.video-launch__play::before {
  content: '';
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--color-bone);
}

.video-launch__caption {
  max-width: 44ch;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.82;
}

.video-launch__caption strong {
  opacity: 1;
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* 09. OUTCOME STEPS
   ========================================================== */
.outcomes {
  padding-block: 8px clamp(54px, 6vw, 72px);
}

.outcomes__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.outcome {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  border-top: 1px solid var(--color-line);
}

.outcome:last-child {
  border-bottom: 1px solid var(--color-line);
}

.outcome__number {
  padding: 30px 0 30px 4px;
  color: var(--color-brand-green);
  font-family: var(--font-display);
  font-size: 0.95rem;
  opacity: 0.78;
}

.outcome__body {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.3fr);
  gap: clamp(24px, 4vw, 48px);
  border-left: 1px solid var(--color-line);
  padding: 30px 0 30px clamp(24px, 3vw, 36px);
}

.outcome__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
}

.outcome__text {
  max-width: 56ch;
  opacity: 0.83;
}

/* Compact homepage rhythm when the optional video is not published.
   The video normally provides a large visual pause after the trust bar; when
   it is hidden we intentionally reduce the following vertical whitespace. */
body.video-hidden .outcomes {
  padding-top: clamp(14px, 2vw, 22px);
  padding-bottom: clamp(26px, 3.5vw, 40px);
}

body.video-hidden .outcomes + .section {
  padding-top: clamp(38px, 4.5vw, 54px);
}

/* Restore the normal spacing automatically when a video is published. */
body.video-visible .outcomes {
  padding-block: 8px clamp(54px, 6vw, 72px);
}

/* 10. SERVICES
   ========================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-line);
}

.card {
  min-width: 0;
  background: var(--color-paper);
  padding: clamp(28px, 3.4vw, 38px) clamp(24px, 3vw, 34px);
}

/* A restrained nod to the previous NextStep palette. */
#ydelser .card:nth-child(2),
#ydelser .card:nth-child(3) {
  background: var(--color-brand-sage-soft);
}

.card__number,
.card__phase {
  display: block;
  margin-bottom: 16px;
  color: var(--color-brand-green);
  font-family: var(--font-display);
  font-size: 0.86rem;
}

.card__phase {
  color: var(--color-ink);
  opacity: 0.54;
}

.card h3 {
  margin-bottom: 11px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.28;
}

.card p {
  margin-bottom: 0;
  font-size: 0.94rem;
  opacity: 0.81;
}

.section-note {
  max-width: 72ch;
  margin-top: 24px;
  margin-bottom: 0;
  font-size: 0.86rem;
  opacity: 0.6;
}

/* 11. WHEN TO CONTACT / FOREST SECTION
   ========================================================== */
.section--forest .section-heading {
  margin-bottom: 22px;
}

.section--forest .section-heading p {
  opacity: 0.75;
}

.trigger-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(34px, 5vw, 64px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trigger-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  border-bottom: 1px solid var(--color-line-light);
  padding: 17px 0;
}

.trigger-item::before {
  content: '';
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--color-brand-sage);
  opacity: 0.95;
}

.trigger-item p {
  margin: 0;
  opacity: 0.87;
}

/* 12. APPROACH
   ========================================================== */
.approach-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 13. WHY NEXTSTEP
   ========================================================== */
.pitch {
  max-width: 58ch;
  margin-bottom: clamp(34px, 5vw, 48px);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.78rem);
  font-weight: 500;
  line-height: 1.4;
}

.feature-list {
  max-width: 76ch;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.feature-item::before {
  content: '';
  width: 10px;
  height: 10px;
  margin-top: 8px;
  background: var(--color-brand-green);
}

.feature-item p {
  margin: 0;
  opacity: 0.84;
}

.feature-item strong {
  font-weight: 700;
  opacity: 1;
}

/* 14. ABOUT
   ========================================================== */
.about {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 7vw, 84px);
}

.about__title {
  max-width: 10ch;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.about__body p {
  max-width: 65ch;
  margin-bottom: 16px;
  opacity: 0.84;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  margin-top: 28px;
}

.stat {
  min-width: 120px;
  border-top: 1px solid var(--color-line);
  padding-top: 12px;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--color-brand-green);
}

.stat__label {
  max-width: 17ch;
  font-size: 0.78rem;
  opacity: 0.66;
}

/* 15. CONTACT + FORM
   ========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(44px, 8vw, 96px);
}

.contact__title {
  max-width: 12ch;
  font-size: clamp(2rem, 3.7vw, 2.85rem);
  line-height: 1.08;
}

.contact__details {
  display: grid;
  gap: 7px;
  margin-top: 24px;
}

.contact__details a,
.social-links a {
  width: fit-content;
  border-bottom: 1px solid var(--color-line);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 18px;
  font-size: 0.84rem;
  opacity: 0.74;
}

.contact__cta {
  margin-top: 24px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.83rem;
  opacity: 0.68;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--color-ink);
  padding: 9px 0 11px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--color-forest);
  box-shadow: 0 1px 0 var(--color-forest);
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-note {
  max-width: 62ch;
  margin: -2px 0 0;
  font-size: 0.76rem;
  opacity: 0.62;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  justify-self: start;
  margin-top: 2px;
  border: 0;
}

.form-feedback {
  border: 1px solid rgba(46, 75, 60, 0.28);
  background: rgba(46, 75, 60, 0.08);
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.form-feedback--error {
  border-color: rgba(139, 55, 47, 0.32);
  background: rgba(139, 55, 47, 0.07);
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

/* 16. FOOTER
   ========================================================== */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding-block: 32px;
}

.footer-top,
.footer-bottom,
.footer-links {
  display: flex;
  align-items: center;
}

.footer-top {
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 22px;
}

.footer-bottom {
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-links {
  flex-wrap: wrap;
  gap: 14px 20px;
  font-size: 0.83rem;
}

.certification {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.78rem;
}

.certification::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-forest);
}

/* 17. LEGAL + SIMPLE CONTENT PAGES
   ========================================================== */
.legal-page {
  min-height: 100vh;
}

.legal-main {
  padding-bottom: clamp(64px, 8vw, 96px);
}

.legal-hero {
  border-bottom: 1px solid var(--color-line);
  padding-block: clamp(48px, 6vw, 74px) clamp(34px, 4vw, 48px);
}

.legal-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.38fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
}

.legal-hero__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--color-brand-green);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 12ch;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.legal-hero__meta {
  max-width: 34ch;
  margin-bottom: 4px;
  font-size: 0.9rem;
  line-height: 1.65;
  opacity: 0.68;
}

.legal-content {
  padding-top: clamp(42px, 5vw, 64px);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 1fr);
  gap: clamp(44px, 7vw, 104px);
  align-items: start;
}

.legal-article {
  min-width: 0;
}

.legal-article > p:first-child {
  margin-bottom: 30px;
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  line-height: 1.75;
}

.legal-article h2 {
  margin: 42px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.legal-article p,
.legal-article li {
  max-width: 68ch;
  margin-bottom: 16px;
  color: rgba(44, 44, 44, 0.82);
  line-height: 1.75;
}

.legal-article ul {
  padding-left: 20px;
}

.legal-article code {
  border: 1px solid var(--color-line);
  border-radius: 2px;
  background: rgba(247, 246, 241, 0.72);
  padding: 2px 6px;
  font-size: 0.88em;
}

.legal-note {
  margin-top: 36px;
  border-left: 3px solid var(--color-brand-sage-deep);
  background: var(--color-brand-mist);
  padding: 18px 20px;
  color: rgba(44, 44, 44, 0.76);
  font-size: 0.9rem;
  line-height: 1.65;
}

.legal-note p {
  margin: 0;
}

.legal-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  border: 1px solid var(--color-line);
  background: rgba(247, 246, 241, 0.48);
  padding: 24px;
}

.legal-aside__label {
  margin-bottom: 8px;
  color: var(--color-brand-green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-aside h2 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
}

.legal-aside p {
  margin-bottom: 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  opacity: 0.76;
}

.legal-aside__links {
  display: grid;
  gap: 0;
  margin-bottom: 22px;
  border-top: 1px solid var(--color-line);
}

.legal-aside__links a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--color-line);
  padding-block: 11px;
  font-size: 0.88rem;
}

.legal-aside__links a::after {
  content: '↗';
  opacity: 0.5;
}

.legal-aside__contact {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
}

.legal-back {
  margin-top: 36px;
}

/* Kept for small utility pages such as 404. */
.simple-page {
  min-height: calc(100vh - var(--header-height));
  padding-block: clamp(54px, 7vw, 86px);
}

.simple-page__inner {
  width: min(100% - (var(--gutter) * 2), 760px);
  margin-inline: auto;
}

.simple-page__brand {
  margin-bottom: 48px;
}

.simple-page h1 {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
}

.simple-page h2 {
  margin: 34px 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.simple-page p,
.simple-page li {
  opacity: 0.84;
}

.simple-page ul {
  padding-left: 22px;
}

.simple-page .button {
  margin-top: 22px;
}

/* 18. RESPONSIVE — TABLET / MOBILE
   ========================================================== */
@media (max-width: 1080px) {
  :root {
    --header-height: 78px;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav-panel {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-height));
    display: none;
    overflow-y: auto;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-paper);
    box-shadow: var(--shadow-menu);
    padding: 6px var(--gutter) 24px;
  }

  .nav-panel.is-open {
    display: block;
  }

  .nav-links,
  .nav-actions {
    display: block;
  }

  .nav-links a {
    display: block;
    border-bottom: 1px solid var(--color-line);
    padding: 14px 0;
    font-size: 0.98rem;
    opacity: 0.86;
  }

  .nav-actions {
    padding-top: 18px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex;
  }

  .nav-actions .language-switch {
    margin-bottom: 16px;
  }

  .nav-actions .button {
    width: 100%;
  }

  .approach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .section-heading,
  .hero__grid,
  .about,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 16px;
  }

  .section-heading h2,
  .section-heading p {
    max-width: 100%;
  }

  .hero__grid {
    gap: 30px;
  }

  .display-title {
    max-width: 13ch;
  }

  .hero__aside {
    border-top: 1px solid var(--color-line);
    border-left: 0;
    padding-top: 24px;
    padding-left: 0;
  }

  .outcome__body {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .about__title,
  .contact__title {
    max-width: none;
  }

  .contact-grid {
    gap: 44px;
  }
}

@media (max-width: 720px) {
  .card-grid,
  .trigger-list,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .section--forest .section-heading {
    margin-bottom: 12px;
  }

  .trigger-item {
    padding-block: 15px;
  }

  .trust__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 20px;
  }

  .trust__list li {
    border-right: 0;
    margin-right: 0;
    padding: 3px 0;
  }

  .video-shell {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 20px;
    --section-space: 52px;
  }

  .brand {
    min-width: 0;
  }

  .brand__name {
    font-size: 1.7rem;
  }

  .display-title {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .hero {
    padding-block: 46px 44px;
  }

  .hero__aside .button,
  .contact__cta,
  .form-submit {
    width: 100%;
  }

  body.video-hidden .outcomes {
    padding-top: 10px;
    padding-bottom: 24px;
  }

  body.video-hidden .outcomes + .section {
    padding-top: 40px;
  }

  .outcome {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .outcome__number {
    padding-block: 24px;
  }

  .outcome__body {
    padding: 24px 0 24px 18px;
  }

  .outcome__title {
    font-size: 1.18rem;
  }

  .card {
    padding: 26px 22px;
  }

  .trust__list {
    grid-template-columns: 1fr;
  }

  .video-launch__play {
    width: 62px;
    height: 62px;
  }

  .video-launch__caption {
    font-size: 0.84rem;
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 820px) {
  .legal-hero__inner,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-hero__inner {
    gap: 22px;
  }

  .legal-hero__meta {
    max-width: 48ch;
  }

  .legal-layout {
    gap: 42px;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 520px) {
  .legal-hero {
    padding-block: 40px 30px;
  }

  .legal-content {
    padding-top: 34px;
  }

  .legal-article h2 {
    margin-top: 34px;
    padding-top: 22px;
  }

  .legal-aside {
    padding: 20px;
  }
}
/* 19. MOTION PREFERENCES
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* 20. CONTAINED FOREST PANEL
   ========================================================== */
.section--forest.section--contained {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.section--forest.section--contained > .container {
  width: 100%;
  max-width: none;
  padding-inline: clamp(24px, 3.5vw, 40px);
}

.section--forest.section--contained .section-heading {
  margin-bottom: 28px;
}

@media (max-width: 620px) {
  .section--forest.section--contained > .container {
    padding-inline: 22px;
  }
}


/* --------------------------------------------------------------------------
   21. EDITABLE MEDIA
   Photos and logo are loaded from Netlify Blobs. If no image exists, the
   corresponding public photo slot stays hidden so the page still looks clean.
   -------------------------------------------------------------------------- */
.video-launch {
  isolation: isolate;
}
.video-launch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 24, 20, .08), rgba(15, 24, 20, .34));
  pointer-events: none;
}
.video-launch__poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-photo {
  padding-block: clamp(18px, 3.5vw, 38px) clamp(56px, 7vw, 82px);
}
.editorial-photo__frame {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: rgba(44,44,44,.06);
  box-shadow: 14px 14px 0 var(--color-brand-sage-soft);
  margin-bottom: 14px;
}
.editorial-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__intro {
  display: grid;
  align-content: start;
  gap: 28px;
}
.about__photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgba(44,44,44,.06);
  box-shadow: 12px 12px 0 var(--color-brand-sage);
  margin-bottom: 12px;
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.certification {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.certification__logo {
  display: block;
  width: auto;
  max-width: 88px;
  max-height: 38px;
  object-fit: contain;
}

@media (max-width: 860px) {
  .about__intro { gap: 20px; }
  .about__photo { width: min(72vw, 360px); }
  .editorial-photo__frame { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .about__photo { width: 100%; }
  .editorial-photo { padding-top: 8px; }
  .editorial-photo__frame { aspect-ratio: 1 / 1; }
  .certification { align-items: flex-start; flex-direction: column; gap: 8px; }
}


/* 22. BRAND INTENSITY VARIANTS
   ==========================================================
   Switch these from /admin/ → Site settings → Design.
   The paper background and the dark "Kontakt mig, når" panel stay intact
   in every variant. Only secondary brand accents become stronger/weaker.

   Available body classes:
   - brand-subtle
   - brand-balanced   (default)
   - brand-heritage   (current-site inspired)
   - brand-strong
   ========================================================== */

body.brand-subtle,
body.brand-balanced,
body.brand-heritage,
body.brand-strong {
  --legacy-green: #37761d;
  --legacy-sage: #848a79;
  --legacy-sage-medium: #a8b09d;
  --legacy-sage-soft: #e1e5dc;
  --legacy-sage-pale: #e8ebe5;
}

/* Never weaken the strongest section in the new design. */
body:is(.brand-subtle, .brand-balanced, .brand-heritage, .brand-strong) .section--forest {
  background: var(--color-forest);
}

/* Shared tiny brand moments. */
body:is(.brand-subtle, .brand-balanced, .brand-heritage, .brand-strong) .language-switch a[aria-current='page'] {
  text-decoration-color: var(--legacy-green);
}

body:is(.brand-subtle, .brand-balanced, .brand-heritage, .brand-strong) .contact__details a:hover,
body:is(.brand-subtle, .brand-balanced, .brand-heritage, .brand-strong) .social-links a:hover {
  color: var(--legacy-green);
}

/* ---- SUBTLE -------------------------------------------------------------
   Closest to the original new design. Sage is mainly photography + details.
   ------------------------------------------------------------------------ */
body.brand-subtle #ydelser .card:nth-child(2),
body.brand-subtle #ydelser .card:nth-child(3) {
  background: var(--color-paper);
}

body.brand-subtle #ydelser .card__number,
body.brand-subtle .stat__number {
  color: var(--legacy-green);
}

body.brand-subtle .about__photo {
  box-shadow: 10px 10px 0 var(--legacy-sage-soft);
}

body.brand-subtle .editorial-photo__frame {
  box-shadow: 12px 12px 0 var(--legacy-sage-soft);
}

body.brand-subtle .trigger-item::before {
  background: var(--legacy-sage-medium);
}

body.brand-subtle .feature-item::before {
  background: var(--legacy-green);
}

body.brand-subtle .certification {
  background: transparent;
  border-color: rgba(132, 138, 121, 0.42);
}

body.brand-subtle .site-footer {
  border-top-color: var(--color-line);
}

/* ---- BALANCED -----------------------------------------------------------
   Recommended. This intentionally matches the restrained brand-refresh look.
   ------------------------------------------------------------------------ */
body.brand-balanced #ydelser .card:nth-child(2),
body.brand-balanced #ydelser .card:nth-child(3) {
  background: var(--legacy-sage-soft);
}

body.brand-balanced #ydelser .card__number,
body.brand-balanced .stat__number {
  color: var(--legacy-green);
}

body.brand-balanced .about__photo {
  box-shadow: 12px 12px 0 var(--legacy-sage);
}

body.brand-balanced .editorial-photo__frame {
  box-shadow: 14px 14px 0 var(--legacy-sage-soft);
}

body.brand-balanced .trigger-item::before {
  background: var(--legacy-sage-medium);
}

body.brand-balanced .feature-item::before {
  background: var(--legacy-green);
}

body.brand-balanced .pitch {
  border-left: 3px solid var(--legacy-sage);
  padding-left: clamp(18px, 2.2vw, 26px);
}

body.brand-balanced .certification {
  background: rgba(225, 229, 220, 0.55);
  border-color: rgba(132, 138, 121, 0.42);
}

body.brand-balanced .site-footer {
  border-top-color: rgba(132, 138, 121, 0.5);
}

/* ---- HERITAGE -----------------------------------------------------------
   Current-site inspired: keeps the new structure and paper canvas, but uses
   the old NextStep sage/green more intentionally in cards, rules and details.
   ------------------------------------------------------------------------ */
body.brand-heritage {
  --legacy-green: #37761d;
  --legacy-sage: #848a79;
  --legacy-sage-medium: #a5ad9a;
  --legacy-sage-soft: #d9ded3;
  --legacy-sage-pale: #e6e9e2;
}

body.brand-heritage .hero__aside {
  border-left-color: rgba(132, 138, 121, 0.58);
}

body.brand-heritage .trust__list li {
  border-right-color: rgba(132, 138, 121, 0.38);
}

body.brand-heritage .video-shell {
  border-bottom-color: var(--legacy-sage);
}

body.brand-heritage #ydelser .card:nth-child(2),
body.brand-heritage #ydelser .card:nth-child(3) {
  background: var(--legacy-sage-soft);
}

body.brand-heritage #ydelser .card__number,
body.brand-heritage .outcome__number,
body.brand-heritage .stat__number,
body.brand-heritage .eyebrow,
body.brand-heritage .legal-hero__eyebrow {
  color: var(--legacy-green);
}

body.brand-heritage #tilgang .card:nth-child(2),
body.brand-heritage #tilgang .card:nth-child(4) {
  background: var(--legacy-sage-pale);
}

body.brand-heritage .trigger-item::before {
  background: var(--legacy-sage-medium);
}

body.brand-heritage .pitch {
  border-left: 3px solid var(--legacy-sage);
  padding-left: clamp(18px, 2.2vw, 26px);
}

body.brand-heritage .feature-item::before {
  background: var(--legacy-green);
}

body.brand-heritage .about__photo {
  box-shadow: 14px 14px 0 var(--legacy-sage);
}

body.brand-heritage .editorial-photo__frame {
  box-shadow: 14px 14px 0 var(--legacy-sage-soft);
}

body.brand-heritage .section-heading h2::after,
body.brand-heritage .about__title::after,
body.brand-heritage .contact__title::after {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 16px;
  background: var(--legacy-green);
}

/* The forest panel is intentionally preserved; only its markers inherit sage. */
body.brand-heritage .section--forest .section-heading h2::after {
  background: var(--legacy-sage-medium);
}

body.brand-heritage .form-field input,
body.brand-heritage .form-field textarea {
  border-bottom-color: rgba(132, 138, 121, 0.48);
}

body.brand-heritage .form-field input:focus,
body.brand-heritage .form-field textarea:focus {
  border-bottom-color: var(--legacy-green);
  box-shadow: 0 1px 0 var(--legacy-green);
}

body.brand-heritage .certification {
  background: rgba(217, 222, 211, 0.62);
  border-color: rgba(132, 138, 121, 0.5);
}

body.brand-heritage .site-footer {
  border-top-color: var(--legacy-sage);
}

body.brand-heritage .footer-top {
  border-bottom-color: rgba(132, 138, 121, 0.38);
}

/* ---- STRONG -------------------------------------------------------------
   More of the legacy palette, while paper still remains the dominant canvas.
   ------------------------------------------------------------------------ */
body.brand-strong #ydelser .card:nth-child(2),
body.brand-strong #ydelser .card:nth-child(3) {
  background: #dce1d7;
}

body.brand-strong #tilgang .card:nth-child(2),
body.brand-strong #tilgang .card:nth-child(4) {
  background: var(--legacy-sage-pale);
}

body.brand-strong #ydelser .card__number,
body.brand-strong .stat__number {
  color: var(--legacy-green);
}

body.brand-strong .about__photo {
  box-shadow: 14px 14px 0 var(--legacy-sage);
}

body.brand-strong .editorial-photo__frame {
  box-shadow: 16px 16px 0 var(--legacy-sage-medium);
}

body.brand-strong .trigger-item::before {
  background: var(--legacy-sage-medium);
}

body.brand-strong .feature-item::before {
  background: var(--legacy-green);
}

body.brand-strong .pitch {
  border-left: 4px solid var(--legacy-sage);
  padding-left: clamp(20px, 2.5vw, 30px);
}

body.brand-strong .stat {
  border-top-color: rgba(132, 138, 121, 0.65);
}

body.brand-strong .certification {
  background: var(--legacy-sage-soft);
  border-color: rgba(132, 138, 121, 0.55);
}

body.brand-strong .contact__title::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 20px;
  background: var(--legacy-sage);
}

body.brand-strong .form-field input:focus,
body.brand-strong .form-field textarea:focus {
  border-bottom-color: var(--legacy-green);
  box-shadow: 0 1px 0 var(--legacy-green);
}

body.brand-strong .site-footer {
  border-top-color: var(--legacy-sage);
}

/* Optional global company address ----------------------------------------- */
.contact__address {
  width: fit-content;
  font-size: 0.9rem;
  opacity: 0.72;
}
