/* =========================================================
   DSS-Group — stylesheet
   Struktur:
     1. Tokens          2. Reset/base      3. Layout
     4. Typografi       5. Knapper         6. Header/nav
     7. Hero            8. Sektioner       9. Kort/brancher
    10. Kontakt/form   11. Footer         12. Motion/utility
   ========================================================= */

/* ── 1. Tokens ─────────────────────────────────────────── */
:root {
  /* Brandfarve — hentet fra logoet. Ændres ét sted her. */
  --brand: #C8102E;
  --brand-deep: #A00D25;
  --on-brand: #FFFFFF;

  /* Mørk flade (standard) */
  --bg: #0B0D10;
  --fg: #F2F3F5;
  --dim: #9AA1AB;
  --line: #232830;
  --surface: #101418;
  --surface-2: #161B21;
  --field-bg: #0B0D10;
  --field-line: #2A303A;
  --focus: #F2F3F5;

  --header-h: 60px;

  --font-display: "Archivo", "Segoe UI", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 10px;
  --radius-lg: 14px;
  --shell: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Lys flade — samme komponenter, byttede tokens */
.light-block {
  --bg: #F2F3F5;
  --fg: #0B0D10;
  --dim: #4A525C;
  --line: #DCE0E5;
  --surface: #FFFFFF;
  --surface-2: #E9ECEF;
  --focus: #0B0D10;
  background: var(--bg);
  color: var(--fg);
}

/* ── 2. Reset / base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; }
p, ul, ol, dl, dd { margin: 0; }
ul { list-style: none; padding: 0; }

::selection { background: var(--brand); color: var(--on-brand); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 12px; }

/* ── 3. Layout ─────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(64px, 10vw, 120px); }
.section--tight { padding-top: 0; }
.section--dark { background: var(--bg); }

/* Bredden sættes i rem, ikke ch: ch regnes ud fra containerens skriftstørrelse
   (16px), ikke overskriftens, og gav derfor alt for korte linjer. */
.section__head {
  max-width: 30rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.split { display: grid; gap: clamp(28px, 4vw, 40px); }
.split__aside > .h2 { margin-top: 14px; }

/* ── 4. Typografi ──────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 22px;
  height: 2px;
  background: var(--brand);
}

.h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.prose p {
  color: var(--dim);
  font-size: 1.0625rem;
  line-height: 1.72;
  max-width: 62ch;
}
.prose p + p { margin-top: 18px; }

/* ── 5. Knapper ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease),
              color 200ms var(--ease), transform 200ms var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-deep); }

.btn--outline { border-color: rgba(242, 243, 245, 0.26); color: var(--fg); }
.btn--outline:hover { border-color: var(--fg); background: rgba(242, 243, 245, 0.06); }

.btn--ghost { border-color: rgba(242, 243, 245, 0.2); color: var(--fg); }
.btn--ghost::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.btn--ghost:hover { border-color: rgba(242, 243, 245, 0.55); background: rgba(242, 243, 245, 0.05); }

.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }

.ico { width: 18px; height: 18px; flex: none; }

/* ── 6. Header og navigation ───────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1B2027;
  color: #F2F3F5;
}

.site-header__progress {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
}
.site-header__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand);
}

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

.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand__mark {
  display: inline-block;
  padding: 0.5em 0.72em;
  border-radius: 9px;
  background: var(--brand);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: background-color 200ms var(--ease);
}
.brand:hover .brand__mark { background: var(--brand-deep); }
.brand__mark--sm { font-size: 0.85rem; }

.nav-desktop { display: none; align-items: center; gap: 6px; }

.nav-link {
  padding: 10px 14px;
  color: #A8AEB7;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.nav-link:hover { color: #F2F3F5; background: rgba(242, 243, 245, 0.06); }
.nav-desktop .btn { margin-left: 6px; }

.burger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(242, 243, 245, 0.2);
  border-radius: var(--radius);
  background: none;
  color: #F2F3F5;
  cursor: pointer;
}
.burger__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.burger__bars { display: block; width: 22px; }
.burger__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 220ms var(--ease), opacity 160ms var(--ease);
}
.burger__bars i + i { margin-top: 6px; }
.burger[aria-expanded="true"] .burger__bars i:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Ankret til headerens underkant — ingen faste pixelværdier at holde synkront. */
.nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: #0B0D10;
  border-bottom: 1px solid #1B2027;
  box-shadow: 0 26px 44px -14px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile.is-open { opacity: 1; transform: none; }

.nav-mobile__inner { padding-block: 12px 28px; }

.nav-mobile__link {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid #1B2027;
  color: #F2F3F5;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-mobile__actions { display: grid; gap: 12px; margin-top: 24px; }

.nav-mobile__phone {
  padding-block: 12px;
  color: #A8AEB7;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
}
.nav-mobile__phone:hover { color: #F2F3F5; }

/* ── 7. Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(56px, 12vw, 128px) clamp(48px, 8vw, 88px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -20%;
  height: 90%;
  background: radial-gradient(60% 60% at 25% 40%, rgba(255, 255, 255, 0.05), transparent 70%);
  pointer-events: none;
}
.hero > .shell { position: relative; }

.hero__title {
  margin-top: 22px;
  font-size: clamp(2.3rem, 7.4vw, 5.1rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.stamp {
  display: inline;
  padding: 0.06em 0.26em 0.1em;
  border-radius: 0.16em;
  background: var(--brand);
  color: var(--on-brand);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__lead {
  margin-top: clamp(20px, 3vw, 28px);
  max-width: 56ch;
  color: var(--dim);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.62;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 40px);
}

.hero__sectors {
  margin-top: clamp(48px, 8vw, 88px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero__sectors-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #79808A;
}
.hero__sectors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 14px;
}
.hero__sectors-list li {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #C6CBD2;
}

/* ── 8. Kort (ydelser) ─────────────────────────────────── */
.cards { display: grid; gap: 16px; }

.card {
  padding: clamp(22px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.card__ico { width: 30px; height: 30px; color: var(--brand); }
.card__title {
  margin-top: 20px;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.card__text {
  margin-top: 10px;
  color: var(--dim);
  font-size: 0.9688rem;
  line-height: 1.65;
}

/* ── 9. Brancher ───────────────────────────────────────── */
.sectors { display: grid; gap: 28px; }

.sector { padding-top: 18px; border-top: 1px solid var(--line); }
.sector--core { border-top: 2px solid var(--brand); }

.sector__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.sector__title { font-size: 1.0625rem; letter-spacing: -0.01em; }

.tag {
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sector__text {
  margin-top: 10px;
  color: var(--dim);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Hvorfor DSS-Group */
.reasons { display: grid; }
.reason { padding-block: 22px; border-top: 1px solid var(--line); }
.reason:first-child { padding-top: 0; border-top: 0; }
.reason__title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.reason__title::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin-bottom: 12px;
  background: var(--brand);
}
.reason:first-child .reason__title::before { margin-top: 0; }
.reason__text { margin-top: 8px; color: var(--dim); font-size: 0.9688rem; }

/* ── 10. Kontakt og formular ───────────────────────────── */
.section--contact { border-top: 1px solid var(--line); }

.contact { display: grid; gap: clamp(36px, 5vw, 56px); }
.contact__intro > .h2 { margin-top: 14px; }
.contact__lead {
  margin-top: 16px;
  max-width: 44ch;
  color: var(--dim);
  font-size: 1.0625rem;
}

.contact__details { display: grid; gap: 16px; margin-top: clamp(28px, 4vw, 40px); }
.contact__item dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #79808A;
}
.contact__item dd { margin-top: -2px; }

.contact__link {
  display: inline-block;
  padding-block: 11px;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(242, 243, 245, 0.28);
  transition: text-decoration-color 200ms var(--ease);
}
.contact__link:hover { text-decoration-color: var(--brand); }

.form {
  padding: clamp(20px, 4vw, 32px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.form__intro {
  margin-bottom: 22px;
  color: var(--dim);
  font-size: 0.9375rem;
}
.form__row { display: grid; gap: 16px; }
/* Kun mellem feltgrupper direkte i formularen — inde i en række styrer gap afstanden. */
.form > .form__row + .form__row,
.form > .form__row + .field,
.form > .field + .field { margin-top: 16px; }
.form > .field + .btn { margin-top: 24px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #C6CBD2;
}
.req { color: var(--brand); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  background: var(--field-bg);
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 180ms var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9AA1AB 50%),
                    linear-gradient(135deg, #9AA1AB 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3A4250; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--fg); }
.field.has-error input, .field.has-error textarea { border-color: #FF6B7E; }

.field__error {
  margin-top: 7px;
  color: #FF6B7E;
  font-size: 0.8125rem;
}

/* Honningkrukke mod bots. Skjult for øjet, uden for tabrækkefølgen og
   markeret aria-hidden, så skærmlæsere heller ikke møder den. */
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__status { margin-top: 16px; font-size: 0.9375rem; }
.form__status:empty { margin-top: 0; }
.form__status.is-success { color: #6FD79B; }
.form__status.is-error { color: #FF6B7E; }

.form__note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.875rem;
  line-height: 1.6;
}
.form__note a { color: var(--fg); text-underline-offset: 3px; }

/* ── 11. Footer ────────────────────────────────────────── */
.site-footer {
  background: #08090B;
  border-top: 1px solid var(--line);
  padding-top: clamp(44px, 6vw, 64px);
}
.site-footer__inner { display: grid; gap: 32px; }
.site-footer__tagline {
  margin-top: 16px;
  max-width: 34ch;
  color: var(--dim);
  font-size: 0.9375rem;
}

.site-footer__nav { display: grid; gap: 0; align-content: start; }
.site-footer__nav a {
  padding-block: 10px;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  justify-self: start;
  transition: color 200ms var(--ease);
}
.site-footer__nav a:hover { color: var(--fg); }

.site-footer__contact {
  display: grid;
  gap: 4px;
  align-content: start;
  font-style: normal;
  color: var(--dim);
  font-size: 0.9375rem;
}
.site-footer__contact a { padding-block: 10px; color: var(--fg); text-underline-offset: 3px; justify-self: start; }

.site-footer__legal {
  margin-top: clamp(36px, 5vw, 52px);
  padding-block: 22px;
  border-top: 1px solid var(--line);
  color: #787F88;
  font-size: 0.8125rem;
}

/* ── 12. Motion og hjælpeklasser ───────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Fejlsikring: kan main.js ikke indlæses, vises alt indhold alligevel.
   Scriptet sætter .reveal-ready med det samme og slår reglen fra. */
.js:not(.reveal-ready) .reveal {
  animation: dss-reveal-failsafe 1ms linear 2s forwards;
}
@keyframes dss-reveal-failsafe { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Breakpoints ───────────────────────────────────────── */
@media (min-width: 600px) {
  .shell { padding-inline: 28px; }
  .form__row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .sectors { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .shell { padding-inline: 40px; }
  .nav-desktop { display: flex; }
  .burger { display: none; }
  .nav-mobile { display: none !important; }

  .split { grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 80px); }
  .split__aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }

  .contact { grid-template-columns: 5fr 7fr; align-items: start; }
  .contact__intro { position: sticky; top: calc(var(--header-h) + 40px); }

  .site-footer__inner { grid-template-columns: 2fr 1fr 1.2fr; gap: 48px; }
}

@media (min-width: 1080px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .sectors { grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
}
