/* 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; }
}
