/* ITfitz – fælles stylesheet (nyt design, december 2026) */
:root {
  --navy: #0f2742;
  --navy-2: #1b3a5e;
  --blue: #3681c3;
  --orange: #f59b00;
  --orange-dark: #b86e00;
  --orange-light: #fff1da;
  --text: #1d2b3a;
  --body: #3c4b5b;
  --muted: #5b6b7c;
  --line: #e4dfd4;
  --bg: #f7f5f0;
  --white: #ffffff;
  --on-dark: #c6d2df;
  --radius: 20px;
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI Variable Display", "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,245,240,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.logo { display: block; width: 96px; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem; padding: 10px 14px; border-radius: 999px; }
.nav a:hover { background: rgba(15,39,66,.06); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav .nav-cta { background: var(--orange); color: var(--navy); margin-left: 6px; padding: 10px 18px; }
.nav .nav-cta:hover { background: #ffb02e; color: var(--navy); }
@media (max-width: 720px) {
  .header-inner { padding-top: 10px; padding-bottom: 8px; min-height: 0; }
  .nav { width: 100%; justify-content: space-between; gap: 0; }
  .nav a { padding: 8px 6px; font-size: .9rem; }
  .nav .nav-cta { margin-left: 0; padding: 8px 12px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; line-height: 1.2; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-accent { background: var(--orange); color: var(--navy); font-weight: 700; }
.btn-accent:hover { background: #ffb02e; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-light:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero h1 { max-width: 820px; }
.hero .lead, .lead { font-size: clamp(1.1rem, 2vw, 1.22rem); max-width: 640px; color: var(--body); }
.hero-grid { display: grid; gap: 56px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; }
.hero-photo { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }
.hero-badge { position: absolute; left: -16px; bottom: 28px; background: #fff; border-radius: 16px; padding: 14px 20px; box-shadow: 0 10px 30px rgba(15,39,66,.14); line-height: 1.35; }
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); }
.hero-badge span { font-size: .9rem; color: var(--muted); }
@media (max-width: 720px) { .hero-badge { left: 12px; } .hero-photo { max-width: 320px; } }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }

/* Fakta-bånd */
.stats { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stats .num { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.stats .txt { font-size: .95rem; color: var(--muted); }

/* Sections */
section { padding: 80px 0; }
.section-soft { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--body); font-size: 1.1rem; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section-soft .card { background: var(--bg); }
.card p { color: var(--body); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-light); color: var(--orange-dark); margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; }
.more-link { margin-top: 28px; font-weight: 600; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 36px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b86e00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.pain { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pain li { background: var(--bg); border-radius: 16px; padding: 18px 20px; color: var(--body); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; border-top: 3px solid var(--navy); padding-top: 18px; }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--font-head); font-weight: 700; color: var(--orange-dark); margin-bottom: 8px; }
.steps h3 { margin-bottom: .4em; font-size: 1.35rem; }
.steps p { margin: 0; color: var(--body); }

/* AI-afsnit */
.ai { background: var(--navy); color: var(--on-dark); padding: 88px 0; }
.ai h2, .ai h3 { color: #fff; }
.ai .eyebrow { color: var(--orange); }
.ai-grid { display: grid; gap: 56px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ai-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ai-cards li { background: var(--navy-2); border-radius: 18px; padding: 24px; }
.ai-cards h3 { font-size: 1.15rem; margin-bottom: .5em; }
.ai-cards p { font-size: .95rem; margin: 0; }

/* Split / about */
.split { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 340px 1fr; } }
.portrait { aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--navy-2); max-width: 340px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 859px) { .portrait { max-width: 200px; } .split { gap: 28px; } }
.about-text { max-width: 760px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 18px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--orange-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--body); }

/* Kontakt-bånd */
.cta-band { padding: 0 0 88px; }
.cta-band .container > * { position: relative; }
.cta-band .container { background: var(--orange-light); border-radius: 28px; padding: 56px 48px; max-width: calc(var(--max) - 48px); }
.cta-band p { max-width: 640px; color: var(--body); }
@media (max-width: 720px) { .cta-band .container { padding: 40px 24px; border-radius: 0; } }

.contact-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 820px; }
.contact-card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.contact-card:hover { border-color: var(--navy); box-shadow: 0 8px 24px rgba(15,39,66,.08); color: var(--text); }
.contact-card .label { font-size: .85rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.contact-card .value { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-top: 6px; word-break: break-word; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-grid h3 { font-size: 1rem; margin-bottom: .8em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; font-size: .88rem; }

.muted { color: var(--muted); }
.text-center { text-align: center; }

/* Firmaer */
.companies { padding: 48px 0; text-align: center; }
.companies-title { font-family: var(--font); font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-bottom: 18px; }
.company-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; }
.company-list li { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: #6d7a88; letter-spacing: -.01em; }

/* Projekter */
.projects { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: 900px; border-top: 1px solid var(--line); }
.projects li { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.projects h3 { margin: 0; }
.projects .when { color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.projects p { grid-column: 1 / -1; margin: 0; color: var(--body); max-width: 70ch; }

/* Certificeringer */
.certs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 760px; }
.certs li { display: flex; gap: 18px; align-items: baseline; }
.certs .year { font-weight: 700; color: var(--orange-dark); font-variant-numeric: tabular-nums; min-width: 3.2em; }

#ai { scroll-margin-top: 80px; }
@media (max-width: 420px) {
  .nav a { padding: 8px 4px; font-size: .84rem; }
  .nav .nav-cta { padding: 8px 10px; }
}
