/* GE4 — site styles
   Palette taken from the logo: charcoal wordmark + peach→coral mark. */

/* Archivo (SIL Open Font License, see assets/fonts/OFL.txt), self-hosted:
   no third-party requests, so no cookie/GDPR concerns from Google Fonts. */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var-latin.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #2b2d31;          /* graphite, near the logo's #333 */
  --ink-soft: #5a5e66;
  --paper: #ffffff;
  --mist: #eef1f4;         /* cool grey, keeps the coral from feeling warm/beige */
  --line: #d9dee4;
  --peach: #f6b993;
  --coral: #ee7b6e;
  --coral-ink: #b4453a;    /* coral dark enough for text on white (AA) */
  --brand-gradient: linear-gradient(135deg, var(--peach) 0%, var(--coral) 100%);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; }
.brand-word { width: 62px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.98rem; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.nav .nav-cta {
  color: #fff; background: var(--ink);
  padding: 10px 18px; border-radius: 999px;
}
.nav .nav-cta:hover { color: #fff; background: #000; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease, background .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-quiet { border-color: var(--line); color: var(--ink); }
.btn-quiet:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 10vw, 140px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 40px; }
.hero-title {
  font-size: clamp(3rem, 8.4vw, 7.4rem);
  font-weight: 850;
  font-variation-settings: "wdth" 125;
  line-height: 0.92;
  letter-spacing: -0.035em;
  max-width: 9ch;
}
.hero-lede { margin-top: 32px; font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 34ch; line-height: 1.55; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; justify-self: end; width: min(100%, 460px); }
.hero-mark { position: relative; width: 100%; }

/* The one orchestrated moment: the mark turns into place on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark { animation: mark-in 1.4s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-copy > * { animation: copy-in .8s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .hero-copy > :nth-child(3) { animation-delay: .24s; }
}
@keyframes mark-in {
  from { transform: rotate(-60deg) scale(.82); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes copy-in {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-mist { background: var(--mist); }
.section-dark { background: var(--ink); color: #fff; }

.section-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head h2, .about h2, .contact h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.section-head p { color: var(--ink-soft); max-width: 44ch; }

/* Services: open list, no boxes */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 48px; }
.service h3 { font-size: 1.3rem; font-weight: 700; margin: 20px 0 10px; letter-spacing: -0.01em; }
.service p { color: var(--ink-soft); max-width: 40ch; }
.hex { width: 40px; height: 40px; }
.hex path { fill: none; stroke: var(--coral); stroke-width: 2.5; stroke-linejoin: round; }
.service:nth-child(even) .hex path { stroke: #e9967a; }

/* Steps: a real sequence, so numbers carry meaning */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: none; }
.steps li { position: relative; padding-top: 28px; border-top: 3px solid var(--ink); }
.steps li:first-child { border-top-color: var(--coral); }
.step-no {
  display: block; font-size: 3.5rem; line-height: 1; font-weight: 850;
  font-variation-settings: "wdth" 125; color: var(--coral-ink); margin-bottom: 18px;
}
.steps h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.about-copy p { margin-top: 24px; color: #c9ccd2; max-width: 56ch; font-size: 1.125rem; }
.about-copy p:first-of-type { margin-top: 32px; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { padding: 20px 0; border-bottom: 1px solid #44474e; }
.facts div:first-child { padding-top: 0; }
.facts dt { font-weight: 700; font-size: 1.1rem; }
.facts dd { margin: 4px 0 0; color: #c9ccd2; }
.facts div:last-child dd { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact-intro p { margin-top: 24px; color: var(--ink-soft); max-width: 40ch; }
.contact-direct a { color: var(--coral-ink); font-weight: 600; text-underline-offset: 3px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field:nth-child(3), .field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink);
  background: var(--mist); border: 2px solid transparent; border-radius: 10px;
  padding: 14px 16px; width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--coral); background: #fff; }
.field [aria-invalid="true"] { border-color: var(--coral-ink); }
.form-status { grid-column: 1 / -1; min-height: 1.6em; color: var(--coral-ink); font-weight: 500; }
.form-status.is-ok { color: var(--ink); }
.contact-form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--ink); color: #c9ccd2; padding: 64px 0 40px; border-top: 1px solid #3a3d43; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "word tag meta" "copy copy copy"; align-items: center; gap: 24px 40px; }
.footer-word { grid-area: word; width: 84px; }
.footer-tag { grid-area: tag; }
.footer-meta { grid-area: meta; margin: 0; display: flex; gap: 40px; }
.footer-meta dt { font-size: .85rem; color: #8d919a; }
.footer-meta dd { margin: 2px 0 0; color: #fff; }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }
.footer-copy { grid-area: copy; font-size: .9rem; color: #8d919a; padding-top: 24px; border-top: 1px solid #3a3d43; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .section-head, .about, .contact { grid-template-columns: 1fr; }
  .section-head { gap: 20px; }
  .footer-inner { grid-template-columns: 1fr; grid-template-areas: "word" "tag" "meta" "copy"; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.1rem; color: var(--ink); }
  .nav .nav-cta { margin-top: 8px; text-align: center; padding: 14px 18px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; justify-self: start; width: 132px; }
  .hero-title { font-size: clamp(2.9rem, 13.5vw, 4.4rem); }
  .services, .steps { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .field:nth-child(3) { grid-column: auto; }
  .footer-meta { flex-direction: column; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Language switch ---------- */
.nav .nav-lang {
  font-weight: 600; font-size: .9rem; color: var(--ink);
  padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 999px;
}
.nav .nav-lang:hover { border-color: var(--ink); }

/* Danish headline is longer ("IT-løsninger"), so it gets a slightly smaller scale */
.hero-title:lang(da) { font-size: clamp(2.6rem, 6.4vw, 5.9rem); max-width: 8ch; }

/* ---------- Contact form note ---------- */
.form-note { grid-column: 1 / -1; font-size: .95rem; color: var(--ink-soft); }
.form-note a { color: var(--coral-ink); text-underline-offset: 3px; }

/* ---------- Footer links ---------- */
.footer-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-copy a { color: #c9ccd2; text-underline-offset: 3px; }
.footer-copy a:hover { color: #fff; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.legal-inner { max-width: 760px; }
.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800;
  font-variation-settings: "wdth" 118; letter-spacing: -0.025em; line-height: 1.02;
}
.legal .legal-updated { margin-top: 16px; color: var(--ink-soft); }
.legal .legal-intro { margin-top: 32px; font-size: 1.2rem; line-height: 1.55; }
.legal h2 { font-size: 1.45rem; font-weight: 750; letter-spacing: -0.01em; margin: 56px 0 14px; }
.legal p, .legal li { color: #3e4148; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 1.2em; margin: 14px 0 0; }
.legal li { margin: 8px 0; }
.legal li::marker { color: var(--coral); }
.legal a { color: var(--coral-ink); text-underline-offset: 3px; }
.legal address { font-style: normal; margin-top: 14px; padding: 20px 24px; background: var(--mist); border-radius: var(--radius); line-height: 1.7; }
.legal-back { display: inline-block; margin-top: 56px; font-weight: 600; color: var(--ink) !important; }

@media (max-width: 760px) {
  .hero-title:lang(da) { font-size: clamp(2.3rem, 10.2vw, 3.6rem); }
  .nav .nav-lang { align-self: flex-start; margin: 8px 0; padding: 8px 14px; }
}

/* ---------- Remote support ---------- */
.remote { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.remote h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800;
  font-variation-settings: "wdth" 118; letter-spacing: -0.025em; line-height: 1.02;
}
.remote-intro > p:first-of-type { margin-top: 24px; color: var(--ink-soft); max-width: 46ch; }
.downloads { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-dl { gap: 10px; }
.btn-quiet.btn-dl { background: #fff; }
.dl-icon { width: 18px; height: 18px; fill: currentColor; flex: none; }
.remote-other { margin-top: 20px; font-size: .95rem; color: var(--ink-soft); }
.remote-other a { color: var(--coral-ink); text-underline-offset: 3px; }
.remote-warn {
  margin-top: 28px; padding: 16px 20px; max-width: 52ch;
  border-left: 3px solid var(--coral); background: #fff; border-radius: 0 10px 10px 0;
  font-size: .95rem;
}
.remote-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.remote-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.remote-steps li:first-child { border-top: 3px solid var(--coral); }
.remote-steps .step-no { font-size: 2.4rem; margin: 0; }
.remote-steps h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.remote-steps p { color: var(--ink-soft); }

@media (max-width: 980px) {
  .remote { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .nav { gap: 22px; }
}

/* ---------- Customer login menu (hosting panel, webmail) ---------- */
.login-menu { position: relative; }
.login-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-weight: 600; font-size: 0.98rem; color: var(--ink);
  background: none; border: 0; padding: 8px 0; cursor: pointer;
}
.login-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; flex: none; }
.login-chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.login-toggle[aria-expanded="true"] .login-chev { transform: rotate(180deg); }
.login-panel {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 10px); right: -12px; min-width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(43, 45, 49, .14);
  display: none; z-index: 60;
}
.login-menu.is-open .login-panel { display: block; }
.nav .login-panel a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 8px; color: var(--ink); font-size: 1rem; }
.nav .login-panel a:hover { background: var(--mist); }
.login-panel strong { font-weight: 650; }
.login-panel span { font-size: .88rem; color: var(--ink-soft); font-weight: 400; }

@media (max-width: 1100px) and (min-width: 761px) {
  .nav { gap: 18px; }
  .nav a, .login-toggle { font-size: .92rem; }
  .nav a[href="#approach"] { display: none; }  /* keep the bar on one line on small laptops */
}
@media (max-width: 760px) {
  /* In the mobile menu both links are shown directly, no dropdown */
  .login-toggle { display: none; }
  .login-panel { display: block; position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; background: none; }
  .nav .login-panel a { padding: 12px 0; border-radius: 0; }
  .nav .login-panel a:hover { background: none; }
}

/* ---------- Contact form: spam trap and sending state ---------- */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form.is-sending .btn { opacity: .6; cursor: progress; }
.form-noscript { grid-column: 1 / -1; font-weight: 500; }
.form-noscript a { color: var(--coral-ink); }

/* ---------- Legal section ---------- */
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.legal-nav { position: sticky; top: 104px; }
.legal-nav-title { font-weight: 700; font-size: .95rem; margin-bottom: 12px; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.legal-nav a {
  display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent;
  text-decoration: none; color: var(--ink-soft); font-size: .97rem; line-height: 1.35;
}
.legal-nav a:hover { color: var(--ink); }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; border-left-color: var(--coral); }
.legal h2 { scroll-margin-top: 96px; }
.legal code { font-size: .9em; background: var(--mist); padding: 2px 6px; border-radius: 5px; white-space: nowrap; }

/* Contents list on long documents: real section order, so numbered */
.legal-toc { margin-top: 32px; padding: 20px 24px; background: var(--mist); border-radius: var(--radius); }
.legal-toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.legal-toc li { margin: 0; padding: 3px 0; break-inside: avoid; }
.legal-toc li::marker { color: var(--ink-soft); }

/* Tables (cookies, data processing annexes) */
.legal-table { margin-top: 16px; overflow-x: auto; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal-table th { font-weight: 650; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.legal-table td { color: #3e4148; }

/* Overview page */
.legal-cards { list-style: none; margin: 32px 0 32px; padding: 0; display: grid; gap: 0; }
.legal-cards li { margin: 0; border-top: 1px solid var(--line); }
.legal-cards li:last-child { border-bottom: 1px solid var(--line); }
.legal .legal-cards a { display: grid; gap: 4px; padding: 20px 0; text-decoration: none; color: var(--ink); }
.legal-cards strong { font-size: 1.2rem; font-weight: 700; }
.legal .legal-cards a:hover strong { color: var(--coral-ink); }
.legal-cards span { color: var(--ink-soft); }

/* Footer legal links */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: #c9ccd2; text-underline-offset: 3px; text-decoration: none; }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: #fff; text-decoration: underline; }
.footer-legal .footer-legal-hub { font-weight: 600; color: #fff; }

@media (max-width: 980px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-nav { position: static; }
  .legal-nav ul { border-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .legal-nav a { margin: 0; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .92rem; }
  .legal-nav a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: #fff; }
}
@media (max-width: 760px) {
  .legal-toc ol { columns: 1; }
  .legal-table th { white-space: normal; }
}
