:root {
  --navy: #0c2f4d;
  --navy-dark: #081e32;
  --blue: #1f7ae0;
  --blue-dark: #1661b6;
  --sky: #e8f2fc;
  --ink: #1b2430;
  --muted: #5a6675;
  --line: #dbe3ec;
  --bg: #f6f8fb;
  --focus: #f4a52b;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(12, 47, 77, .12);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Knapper */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.4rem; border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-small { padding: .55rem 1.1rem; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  color: var(--navy); font-weight: 700; font-size: 1.1rem; text-decoration: none;
}
.logo-mark { width: 40px; height: 40px; flex: none; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.nav a:not(.btn) { color: var(--ink); font-weight: 500; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--blue); }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; cursor: pointer;
  }
  .bars, .bars::before, .bars::after {
    display: block; position: relative; width: 20px; height: 2px;
    background: var(--navy); border-radius: 2px; transition: transform .2s, background-color .2s;
  }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; }
  .bars::after { top: 6px; }
  .is-open .bars { background: transparent; }
  .is-open .bars::before { top: 0; transform: rotate(45deg); }
  .is-open .bars::after { top: 0; transform: rotate(-45deg); }

  .nav {
    display: none;
    position: absolute; top: 100%; left: -1.25rem; right: -1.25rem;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .25rem 1.25rem 1.25rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .is-open .nav { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: min(78vh, 640px);
  background: var(--navy); color: #fff;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 30, 50, .9) 0%, rgba(8, 30, 50, .65) 55%, rgba(8, 30, 50, .3) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-content { max-width: 640px; padding: 5rem 0; }
.hero h1 { color: #fff; }
.eyebrow {
  margin: 0 0 .75rem; color: #9fd0ff;
  font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.lede { margin: 0 0 1.75rem; color: #e6eef6; font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.hero-list li {
  padding: .3rem .85rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
  background: rgba(255, 255, 255, .12); font-size: .9rem;
}

/* Seksjoner */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p { margin: 0; color: var(--muted); }

/* Tjenestekort */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem 1.25rem 1.5rem; }
.card-body p { color: var(--muted); }
.card-body .price { margin: auto 0 .75rem; color: var(--navy); font-size: 1.35rem; font-weight: 700; }
.card-link { font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* Prisliste */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
.price-table thead th {
  background: var(--navy); color: #fff;
  font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
}
.price-table thead th:last-child, .price-table td { text-align: right; }
.price-table tbody tr:nth-child(even) { background: var(--bg); }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table tbody th { font-weight: 600; }
.price-table td { color: var(--navy); font-weight: 700; white-space: nowrap; }
.note { display: block; color: var(--muted); font-size: .92rem; font-weight: 400; }

/* Om oss */
.about-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.about-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.team {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.team-photo { margin: 0; }
.team-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.team-photo figcaption { margin-top: .6rem; color: var(--muted); font-size: .95rem; }
.people { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.person {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.avatar {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--sky); color: var(--navy); font-weight: 700;
}
.person-name { display: block; color: var(--navy); font-weight: 700; }
.person-role { display: block; color: var(--muted); font-size: .95rem; }

/* Kontakt */
.contact { background: var(--navy); color: #e6eef6; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-list { display: grid; gap: 1.25rem; margin: 2rem 0 0; }
.contact-list dt {
  color: #9fd0ff; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.contact-list dd { margin: .2rem 0 0; font-size: 1.1rem; }
.contact-list a { color: #fff; }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .95rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #c4cfdb; border-radius: 8px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); outline: 3px solid rgba(31, 122, 224, .25); outline-offset: 0;
}
.req { color: #c0392b; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form-hint { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .9rem; }
.form-status { grid-column: 1 / -1; margin: 0; color: var(--navy); font-weight: 600; }
.form-status:empty { display: none; }

/* Footer */
.site-footer { padding: 3rem 0 2rem; background: var(--navy-dark); color: #b8c7d6; font-size: .95rem; }
.site-footer h2 { color: #fff; font-size: 1.1rem; }
.site-footer p { margin: 0 0 .35rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12);
}

@media (max-width: 860px) {
  .about-grid, .team, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .hero-content { padding: 4rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


.demo-badge{position:fixed;z-index:40;right:20px;bottom:20px;width:84px;height:84px;border:1px solid rgba(20,52,59,.13);border-radius:50%;background:#F7F3EA;color:#14343B;box-shadow:0 3px 18px rgba(0,0,0,.12);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-decoration:none;transition:transform .2s}
.demo-badge>svg{width:19px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}
.demo-badge>span{font-size:9px;line-height:1.35;text-align:center;font-weight:500}
.demo-badge:hover{transform:rotate(-6deg)}
.demo-note{font-size:13px;line-height:1.5;opacity:.85;margin-top:14px}
@media(max-width:760px){.demo-badge{width:64px;height:64px;bottom:12px;right:12px}.demo-badge>span{font-size:7.5px}}
