/* ==========================================================================
   EK Entreprenør AS – stilark
   Farger hentet fra logoen: navy #222B40, kobber #D9822F
   ========================================================================== */

:root {
  --navy: #222B40;
  --navy-700: #1A2133;
  --navy-800: #141A28;
  --navy-600: #2C3650;
  --navy-500: #3A4562;
  --copper: #D9822F;
  --copper-600: #BF6E22;
  --copper-100: #F7E8D9;
  --sand: #F6F3EE;
  --sand-200: #ECE6DC;
  --white: #FFFFFF;
  --ink: #222B40;
  --ink-soft: #545E73;
  --ink-muted: #7D8597;
  --line: #E4DFD6;
  --line-dark: rgba(255, 255, 255, .12);
  --on-dark: #FFFFFF;
  --on-dark-soft: #C2C8D4;
  --danger: #B3261E;
  --success: #2E7D4F;

  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(20, 26, 40, .06), 0 12px 32px -12px rgba(20, 26, 40, .18);
}

/* ---------- Grunnlag ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.025em; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; }
.h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--copper); color: #fff; padding: 10px 16px; border-radius: var(--radius); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.muted { color: var(--ink-muted); }

.icon { width: 20px; height: 20px; flex: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.7; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 22px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1.5px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-600); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .88rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  color: var(--copper-600); text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(34, 43, 64, .96); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .6); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 196px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  color: var(--on-dark-soft); text-decoration: none; position: relative;
  transition: color .2s;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
  background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: #fff; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; margin-right: -8px; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 88px);
}
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero h1 span { display: block; color: var(--copper); }
.hero .lead { color: var(--on-dark-soft); max-width: 34em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.hero-media::before {
  content: ""; position: absolute; left: -14px; top: 28px; bottom: -14px; width: 3px; background: var(--copper);
}
.trust-strip { position: relative; border-top: 1px solid var(--line-dark); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  display: flex; align-items: center; gap: 12px; padding: 22px 0;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--on-dark-soft);
}
.trust-item + .trust-item { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.trust-item .icon { color: var(--copper); width: 22px; height: 22px; }

/* ---------- Seksjoner ---------- */
.section { padding-block: var(--section-y); }
.section-light { background: var(--sand); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--on-dark); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 16px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.section-head-row > div:first-child { max-width: 680px; }
.section-head-spaced { margin-top: clamp(64px, 9vw, 112px); }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-top { align-items: start; }
.prose p { color: var(--ink-soft); }
.prose h2 { margin-bottom: 24px; }

/* Tjenester */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  display: flex; flex-direction: column;
  background: var(--white); padding: 32px 28px 28px;
  border-top: 2px solid var(--copper);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card h3 { margin: 18px 0 10px; }
.service-card > p { color: var(--ink-soft); font-size: .95rem; }
.service-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--copper-100); color: var(--copper-600); }
.service-icon .icon { width: 26px; height: 26px; }
.service-list { margin: 4px 0 24px; flex: 1; }
.service-list li { position: relative; padding: 7px 0 7px 22px; font-size: .94rem; border-bottom: 1px solid var(--line); }
.service-list li:last-child { border-bottom: 0; }
.service-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1.5px; background: var(--copper); }
.service-card-accent { background: var(--navy); color: var(--on-dark); border-top-color: var(--copper); }
.service-card-accent h3 { color: #fff; }
.service-card-accent > p { color: var(--on-dark-soft); }
.service-card-accent .service-icon { background: rgba(217, 130, 47, .15); color: var(--copper); }
.service-card-accent .service-list li { border-color: var(--line-dark); color: var(--on-dark-soft); }

/* Om oss */
.stat-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--sand); padding: 32px 28px; display: flex; flex-direction: column; gap: 8px; }
.stat-value { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--navy); letter-spacing: -.03em; }
.stat-label { color: var(--ink-soft); font-size: .93rem; }
.stat-cert { background: var(--navy); color: var(--on-dark); }
.stat-cert .icon { width: 36px; height: 36px; color: var(--copper); }
.stat-cert .stat-label { color: var(--on-dark-soft); }
.stat-cert strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 2px; }

.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.reason { background: var(--white); padding: 32px 28px; display: flex; gap: 18px; align-items: flex-start; }
.reason h3 { font-size: 1.08rem; margin-bottom: 6px; }
.reason p { color: var(--ink-soft); font-size: .94rem; margin: 0; }
.reason-icon { flex: none; color: var(--copper); }
.reason-icon .icon { width: 28px; height: 28px; }

.customers-block {
  margin-top: clamp(64px, 9vw, 112px);
  display: grid; grid-template-columns: 1fr 2fr; gap: 32px 64px; align-items: start;
  padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line);
}
.customer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.customer {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: var(--sand); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: .93rem; line-height: 1.3;
}
.customer .icon { color: var(--copper); width: 22px; height: 22px; }
.customer span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }

/* Prosjekter */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft);
  padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500; cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 16px; }
.project-card { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy); aspect-ratio: 4 / 3; }
.project-card-lg { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.project-card-wide { grid-column: span 2; aspect-ratio: auto; }
.project-card[hidden] { display: none; }
.project-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.project-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover img { transform: scale(1.04); }
.project-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px;
  background: linear-gradient(transparent, rgba(20, 26, 40, .88));
  color: #fff; pointer-events: none; display: flex; flex-direction: column; gap: 2px;
}
.project-card figcaption strong { font-family: var(--font-head); font-size: 1.02rem; }
.project-cat { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); font-weight: 600; }

.gallery-note { margin: 16px 0 0; font-size: .82rem; color: var(--ink-muted); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(14, 18, 28, .9); }
.lightbox img { max-height: 82vh; width: auto; margin: auto; border-radius: var(--radius); }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; font-family: var(--font-head); }
.lightbox-close { position: absolute; top: -48px; right: 0; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.lightbox-close .icon { width: 28px; height: 28px; }

/* Jobb */
.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.job-card { background: var(--sand); padding: 32px 28px; border-radius: var(--radius); display: flex; flex-direction: column; border: 1px solid var(--line); height: 100%; }
.job-meta { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-600); font-weight: 600; margin-bottom: 10px; }
.job-title { font-size: 1.4rem; margin-bottom: 12px; }
.job-intro { color: var(--ink-soft); font-size: .95rem; }
.job-sub { font-size: .9rem; margin: 18px 0 8px; }
.job-details { margin: 4px 0 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.job-details summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.job-details summary::-webkit-details-marker { display: none; }
.job-details summary::after { content: "+"; font-size: 1.3rem; color: var(--copper); line-height: 1; }
.job-details[open] summary::after { content: "–"; }
.job-apply { margin-top: auto; padding-top: 8px; }
.job-card-open { background: var(--navy); color: var(--on-dark); border-color: var(--navy); }
.job-card-open .job-title { color: #fff; }
.job-card-open .job-intro { color: var(--on-dark-soft); }
.job-card-open .job-meta, .job-card-open .link-arrow { color: var(--copper); }

.job-values { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; margin-top: clamp(48px, 6vw, 72px); padding-block: clamp(32px, 4vw, 48px); border-block: 1px solid var(--line); }
.job-values p { color: var(--ink-soft); margin: 0; }

.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: .95rem; }
.check-list .icon { color: var(--copper); width: 20px; height: 20px; margin-top: 2px; }

.jobs-band { background: var(--white); border-top: 1px solid var(--line); }
.jobs-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; padding-block: clamp(48px, 6vw, 72px); }
.jobs-band h2 { margin: 0; }
.jobs-band .eyebrow { margin-bottom: 10px; }

/* Skjema-oppsett */
.form-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(48px, 6vw, 72px); }
.form-intro p { color: var(--ink-soft); }
.form-card { background: var(--sand); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); border: 1px solid var(--line); }

.quote-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.quote-intro > p { color: var(--on-dark-soft); font-size: 1.05rem; }
.quote-card { background: var(--white); color: var(--ink); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); }
.quote-phone { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; margin-top: 28px; }
.quote-phone a { color: #fff; text-decoration: none; }
.quote-phone .icon { color: var(--copper); }

.steps { margin-top: 32px; display: grid; gap: 20px; counter-reset: s; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps li > span {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--copper); color: var(--copper); font-family: var(--font-head); font-weight: 700; font-size: .9rem;
}
.steps strong { font-family: var(--font-head); display: block; color: #fff; }
.steps p { margin: 2px 0 0; color: var(--on-dark-soft); font-size: .93rem; }

/* ---------- Skjema ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field .label { font-family: var(--font-head); font-size: .88rem; font-weight: 600; color: var(--navy); }
.field label span[aria-hidden], .field .label span[aria-hidden] { color: var(--copper-600); }
.optional { font-weight: 400; color: var(--ink-muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--white); border: 1px solid #D3CCC0; border-radius: var(--radius);
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23222B40' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(217, 130, 47, .2); }
.field [aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .85rem; margin: 0; }
.quote-card .field input, .quote-card .field select, .quote-card .field textarea { background: var(--sand); }
.quote-card .field input:focus, .quote-card .field select:focus, .quote-card .field textarea:focus { background: var(--white); }

.file-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 22px 16px; border: 1.5px dashed #CFC7B9; border-radius: var(--radius); background: var(--white);
  cursor: pointer; transition: border-color .2s, background-color .2s;
}
.quote-card .file-drop { background: var(--sand); }
.file-drop:hover, .file-drop.is-drag { border-color: var(--copper); background: #FFF8F1; }
.file-drop:focus-within { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(217, 130, 47, .2); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop .icon { color: var(--copper); width: 24px; height: 24px; }
.file-drop-text { font-size: .95rem; }
.file-drop-text strong { color: var(--copper-600); }
.file-drop-hint { font-size: .8rem; color: var(--ink-muted); }
.file-drop-sm { padding: 16px 12px; }
.file-list { width: 100%; margin-top: 6px; position: relative; z-index: 1; pointer-events: none; }
.file-list li { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; padding: 6px 10px; background: var(--sand-200); border-radius: 3px; margin-top: 4px; text-align: left; }
.file-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list li.is-error { background: #FBE9E7; color: var(--danger); }

.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-note { font-size: .82rem; color: var(--ink-muted); margin: 0; max-width: 30em; }
.form button[type="submit"][disabled] { opacity: .7; cursor: progress; }
.form-alert { background: #FBE9E7; color: var(--danger); border-left: 3px solid var(--danger); padding: 12px 16px; margin-bottom: 20px; font-size: .93rem; }
.form-success { text-align: center; padding: clamp(24px, 5vw, 48px) 8px; }
.form-success:focus { outline: none; }
.form-success-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--copper); color: #fff; margin-bottom: 20px; }
.form-success-icon .icon { width: 32px; height: 32px; }
.form-success h3 { font-size: 1.5rem; color: var(--navy); }
.form-success p { color: var(--ink-soft); margin: 0 auto; max-width: 30em; }
.cf-turnstile { grid-column: 1 / -1; margin-top: 16px; }

/* ---------- Undersider ---------- */
.apply-alt { font-size: .9rem; }
.apply-alt a { color: var(--copper-600); }

.page-hero { background: var(--navy); color: var(--on-dark); padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 5.5vw + .4rem, 3.4rem); overflow-wrap: anywhere; hyphens: auto; }
.page-hero .lead { color: var(--on-dark-soft); max-width: 44em; margin: 0; }

.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .92rem; }
.legal-toc-title { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-600); }
.legal-toc ol { list-style: decimal; padding-left: 1.2em; color: var(--ink-muted); }
.legal-toc li { padding: 4px 0; }
.legal-toc a { color: var(--ink-soft); text-decoration: none; }
.legal-toc a:hover { color: var(--copper-600); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.5rem; margin: 2.2em 0 .7em; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-body h2:first-of-type { margin-top: 1em; }
.legal-body ul:not(.legal-facts) { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; color: var(--ink-soft); }
.legal-body li { padding: 3px 0; }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--copper-600); }
.legal-updated { font-size: .9rem; color: var(--ink-muted); }
.legal-facts { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1em; }
.legal-facts li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.legal-facts li:last-child { border-bottom: 0; }
.legal-facts span { color: var(--ink-muted); font-size: .9rem; }
.legal-table-wrap { overflow-x: auto; margin: 0 0 1em; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-family: var(--font-head); background: var(--sand); }
.form-note a { color: inherit; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-800); color: var(--on-dark-soft); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-block: clamp(56px, 7vw, 88px); }
.footer-brand img { width: 220px; margin-bottom: 20px; }
.footer-brand p { max-width: 28em; }
.footer-cert { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-family: var(--font-head); font-weight: 600; }
.footer-cert .icon { color: var(--copper); }
.footer-title { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col li { padding: 4px 0; }
.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-contact { margin-bottom: 20px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { color: var(--copper); width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line-dark); }
.footer-bottom-inner { padding-block: 20px; font-size: .85rem; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.footer-bottom-inner a { text-decoration: none; }
.footer-bottom-inner a:hover { color: #fff; }

.mobile-cta { display: none; }

/* ---------- Animasjon ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsivt ---------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 10px 10px; font-size: .92rem; }
  .main-nav a:not(.btn)::after { left: 10px; right: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { width: 170px; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: var(--navy); padding: 24px var(--gutter) 40px;
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
    overflow-y: auto;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a:not(.btn) { padding: 18px 0; font-size: 1.25rem; border-bottom: 1px solid var(--line-dark); color: #fff; }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta-mobile { display: block; margin-top: 28px; }
  .nav-cta-mobile .btn { display: flex; width: 100%; min-height: 54px; padding: 14px 22px; font-size: 1rem; color: #fff; }
  .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .nav-open { overflow: hidden; }

  .hero-grid, .split, .quote-split, .form-layout, .customers-block, .job-values, .legal { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; padding: 20px; background: var(--sand); border-radius: var(--radius); }
  .hero-media { max-width: 560px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .service-grid, .job-grid { grid-template-columns: 1fr 1fr; }
  .reason-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card-lg { grid-row: auto; aspect-ratio: 4 / 3; }
  .project-card-wide { aspect-ratio: 2 / 1; }

  .mobile-cta {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45);
    transform: translateY(calc(100% + 24px)); transition: transform .35s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .trust-item { font-size: .85rem; gap: 10px; padding: 16px 0; }
  .trust-item + .trust-item { padding-left: 14px; }
  .trust-item:nth-child(3) { padding-left: 0; }
  .service-grid, .job-grid, .reason-grid, .form-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .customer { padding: 14px 12px; gap: 10px; font-size: .86rem; }
  .stat { padding: 24px 18px; }
  .project-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .project-card figcaption { padding: 36px 12px 10px; }
  .project-card figcaption strong { font-size: .88rem; }
  .project-cat { font-size: .66rem; }
  .form-footer .btn { width: 100%; }
  .section-head-row .btn { width: 100%; }
  .site-footer { padding-bottom: 72px; }
}

@media (max-width: 400px) {
  .customer-grid { grid-template-columns: minmax(0, 1fr); }
}
