:root {
  --black: #000000;
  --asphalt: #1c1c1a;
  --yellow: #f5c232;
  --yellow-dark: #d9a814;
  --concrete: #ecebe6;
  --stone: #d6d4cc;
  --gravel: #6b6860;
  --white: #ffffff;
  --text: #1c1c1a;
  --error: #b42318;
  --wrap: 1180px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--black); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 {
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.45rem; font-stretch: 85%; font-weight: 700; line-height: 1.15; }
p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--black); color: var(--white); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 104px; gap: 16px; }
.brand img { width: 88px; height: auto; }
@media (max-width: 900px) { .top-in { min-height: 84px; } .brand img { width: 68px; } }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--yellow); }
.nav .tel { color: var(--yellow); }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
    background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4);
    border-radius: 4px; font: inherit; font-weight: 700; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 84px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); padding: 8px 24px 24px; border-top: 1px solid #2a2a28;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid #2a2a28; font-size: 1.1rem; }
  .nav .btn { margin-top: 18px; border-bottom: 0; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
}
.contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.contours path { fill: none; stroke: #3a3934; stroke-width: 1.2; }
.contours path.index { stroke: #5a584f; stroke-width: 1.8; }
.contours path.planum { stroke: var(--yellow); stroke-width: 2.2; stroke-dasharray: 10 8; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.7) 45%, rgba(0,0,0,0) 75%);
}
.hero-in { position: relative; z-index: 1; width: 100%; padding-top: 88px; padding-bottom: 120px; }
.kote { z-index: 1; }
.hero h1 {
  font-size: clamp(2.8rem, 7.2vw, 6rem);
  font-stretch: 68%;
  max-width: 12ch;
  text-transform: none;
}
.lead { margin-top: 26px; max-width: 34em; font-size: 1.2rem; color: #d9d8d2; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.kote {
  position: absolute; right: 6%; bottom: 13%;
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .95rem; color: var(--yellow);
  background: rgba(0,0,0,.75); padding: 6px 12px 6px 8px; border: 1px solid var(--yellow); border-radius: 3px;
}
.kote-mark {
  width: 0; height: 0;
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-top: 12px solid var(--yellow);
}
@media (max-width: 700px) {
  .hero { min-height: auto; }
  .hero-in { padding-top: 56px; padding-bottom: 110px; }
  .kote { right: 24px; bottom: 32px; }
}

/* Services */
.services { padding: 110px 0 90px; }
.intro { margin-top: 18px; max-width: 36em; font-size: 1.15rem; color: var(--gravel); }
.service-list {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px;
}
.service-list li { padding: 30px 0 30px 26px; border-top: 2px solid var(--stone); position: relative; }
.service-list li::before {
  content: ""; position: absolute; left: 0; top: 36px; width: 10px; height: 10px; background: var(--yellow);
}
.service-list p { margin-top: 10px; max-width: 32em; }
.service-list li:last-child { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .services { padding: 72px 0 56px; }
  .service-list { grid-template-columns: 1fr; margin-top: 36px; }
}

/* Process */
.process { background: var(--asphalt); color: var(--white); padding: 100px 0; }
.process-in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.process-head p { margin-top: 20px; color: #cfcec7; max-width: 26em; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; padding: 26px 0; border-top: 1px solid #3a3934; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  font-stretch: 62%; font-weight: 800; font-size: 3.2rem; line-height: .9; color: var(--yellow);
}
.steps p { margin-top: 8px; color: #cfcec7; }
@media (max-width: 860px) {
  .process { padding: 72px 0; }
  .process-in { grid-template-columns: 1fr; gap: 28px; }
}

/* About */
.about { padding: 100px 0; }
.about-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.about-in p { margin-top: 18px; max-width: 36em; }
.facts { margin: 0; border-top: 2px solid var(--text); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--stone); }
.facts dt { font-size: .9rem; color: var(--gravel); font-weight: 600; }
.facts dd { margin: 4px 0 0; font-size: 1.2rem; font-weight: 700; font-stretch: 90%; }
@media (max-width: 860px) {
  .about { padding: 72px 0; }
  .about-in { grid-template-columns: 1fr; gap: 32px; }
}

/* Contact */
.contact { background: var(--yellow); padding: 100px 0; }
.contact-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-info p { margin-top: 18px; max-width: 28em; }
.contact-list { list-style: none; padding: 0; margin: 34px 0 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid rgba(0,0,0,.2); display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.contact-list span { font-weight: 600; font-size: .92rem; }
.contact-list a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.form-card { background: var(--white); border-radius: 6px; padding: 36px; box-shadow: 0 2px 0 rgba(0,0,0,.15); }
@media (max-width: 860px) {
  .contact { padding: 64px 0; }
  .contact-in { grid-template-columns: 1fr; gap: 32px; }
  .form-card { padding: 24px; }
}

/* Form */
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.req { color: var(--error); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--white); border: 2px solid var(--stone); border-radius: 4px;
  padding: 11px 12px; min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); outline: none; box-shadow: 0 0 0 3px rgba(245,194,50,.6); }
.field [aria-invalid="true"] { border-color: var(--error); }
.help { font-size: .88rem; color: var(--gravel); margin-top: 4px; }
.err { color: var(--error); font-size: .9rem; margin-top: 5px; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.form-error { background: #fdecea; color: var(--error); padding: 10px 12px; border-radius: 4px; margin-bottom: 14px; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.choice { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 6px 0; }
.choice input { width: 20px; height: 20px; min-height: 0; }
.submit { width: 100%; margin-top: 6px; background: var(--black); color: var(--white); }
.submit:hover { background: var(--asphalt); }
.thanks h3 { font-size: 1.8rem; }
.thanks p { margin-top: 12px; }
.skeleton span { display: block; height: 48px; background: var(--concrete); border-radius: 4px; margin-bottom: 18px; }
.skeleton .tall { height: 130px; }

/* Footer */
.foot { background: var(--black); color: #cfcec7; padding: 56px 0; font-size: .98rem; }
.foot-in { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 40px; align-items: start; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--yellow); }
.foot strong { color: var(--white); }
.social { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; gap: 20px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-actions { display: flex; gap: 12px; }
.form-actions .btn-ghost { color: var(--text); border-color: var(--stone); }
/* Hero – grafisk bakgrunn (blokker i logostil, betongkorn og varselstripe) */
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }


/* Forslag: fotobakgrunn i hero */
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero.has-photo::after { background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.66) 48%, rgba(0,0,0,.28) 100%); }
.forslag-bar { background: var(--yellow); color: var(--black); font-size: .95rem; font-weight: 600; padding: 10px 24px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.forslag-bar a { color: var(--black); }
.forslag-bar .credit { margin-left: auto; font-weight: 400; font-size: .85rem; }


/* Hero – bakgrunnsfilm */
.hero-media { position: absolute; inset: 0; background: #050505; }
.hero-video { position: absolute; top: 0; right: 0; height: 100%; width: min(56%, 820px); object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%); mask-image: linear-gradient(90deg, transparent 0%, #000 32%); }
@media (max-width: 700px) {
  .hero-video { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero:not(.has-photo)::after { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.7) 60%, rgba(0,0,0,.85) 100%); }
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
