/* =========================================================
   Stelling – stelling.no
   Retning A: industriell. Bytt aksentfarge i --accent.
   ========================================================= */

:root {
  --bg: #15171A;
  --bg-alt: #1A1D20;
  --card: #1D2024;
  --panel: #1F2226;
  --line: #2A2E33;
  --input-line: #4A5057;

  --text: #EDEBE6;
  --text-2: #C9CCD1;
  --muted: #A3A7AD;
  --faint: #8B9097;
  --error: #FF8F80;

  --accent: #F2B705;
  --accent-hover: #FFD24D;
  --on-accent: #15171A;

  --ph-a: #1D2024;
  --ph-b: #212529;

  --font-display: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1200px;
  --gutter: 24px;
  --section-y: 96px;
  --header-h: 72px;
}

/* ---------- Grunnlag ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typografi ---------- */
.display-1,
.display-2 {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.005em;
  overflow-wrap: break-word;
  hyphens: manual;
}
.display-1 { font-size: clamp(48px, 6.4vw, 92px); }
.display-2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1; }

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
}

.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.4;
}

.accent { color: var(--accent); }

.lead {
  font-size: 18px;
  color: var(--text-2);
  max-width: 34em;
}
.body-lg {
  font-size: 17px;
  color: var(--text-2);
  max-width: 36em;
}

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary { border-color: var(--input-line); color: var(--text); background: transparent; }
.btn-secondary:hover { border-color: var(--text-2); }

.btn-dark { background: var(--bg); color: var(--text); }
.btn-dark:hover { background: #2A2E33; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Bildeplassholdere ---------- */
.ph {
  position: relative;
  background: repeating-linear-gradient(135deg, var(--ph-a) 0 14px, var(--ph-b) 14px 28px);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ph-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  width: fit-content;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
/* Når plassholderen byttes med <picture>/<img> */
.hero-media img, .product-media img, .portrait img,
img.hero-media, img.product-media, img.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-word {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--text);
}

.site-nav ul { display: flex; gap: 32px; }
.site-nav a {
  font-size: 15px;
  color: var(--text-2);
  text-decoration: none;
  padding: 8px 0;
}
.site-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--input-line);
  border-radius: 0;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline; }

/* ---------- Seksjoner ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); }
.section-bordered { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 64px;
  margin-bottom: 40px;
}
.section-head .display-2 { flex: 0 1 auto; }
.section-intro {
  color: var(--text-2);
  flex: 0 1 26em;
}
.mb-lg { margin-bottom: 40px; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px 80px;
  align-items: start;
}

/* ---------- Hero ---------- */
.hero { padding-block: 72px 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero-text .label { margin-bottom: 24px; }
.hero-text .display-1 { margin-bottom: 28px; }
.hero-text .lead { margin-bottom: 32px; }
.hero-media { height: 540px; }

/* ---------- Nøkkeltall ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 36px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px 32px;
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-value {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(36px, 3.2vw, 44px);
  line-height: 1;
  color: var(--accent);
}
.stat dd { font-size: 14px; color: var(--muted); }

/* ---------- Kort / tjenester ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 30px;
}
.card-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 10px; }
.card p:not(.card-num) { color: var(--muted); font-size: 16px; }

/* ---------- For private ---------- */
.split-private { align-items: stretch; }
.split-private .label { margin-bottom: 16px; }
.split-private .display-2 { margin-bottom: 24px; }
.split-private .body-lg { margin-bottom: 32px; }

.sub-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.job-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 32px;
}
.job-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
}
.job-list svg { color: var(--accent); flex-shrink: 0; }

.private-facts { margin-bottom: 32px; }
.private-facts > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.private-facts > div:last-child { border-bottom: 1px solid var(--line); }
.private-facts dt {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 2px;
}
.private-facts dd { color: var(--text-2); }

.private-media { min-height: 560px; height: 100%; }

/* ---------- For håndverkere (gul) ---------- */
.section-accent {
  background: var(--accent);
  color: var(--on-accent);
}
.section-accent .label { color: var(--on-accent); margin-bottom: 16px; }
.section-accent .display-2 { margin-bottom: 20px; }
.section-accent .lead { color: var(--on-accent); margin-bottom: 28px; }
.section-accent :focus-visible { outline-color: var(--on-accent); }

.num-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 2px solid var(--on-accent);
  font-weight: 600;
  font-size: 17px;
}
.num-list li:first-child { padding-top: 4px; }
.num-list .num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ---------- Stillas / produkter ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 16px;
}
.product {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.product-media { height: 260px; border: 0; border-bottom: 1px solid var(--line); }
.product-body { padding: 28px 28px 32px; }
.product-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 14px;
}
.product-title h3 { font-size: 24px; }
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 10px;
  line-height: 1.3;
}
.product-body > p { color: var(--muted); font-size: 16px; margin-bottom: 20px; }

.specs > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.specs > div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { color: var(--text); text-align: right; }

/* ---------- Slik jobber vi ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 40px 24px;
  counter-reset: none;
}
.step {
  border-top: 3px solid var(--accent);
  padding-top: 24px;
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }

/* ---------- Område ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}
.area {
  border: 1px solid var(--line);
  padding: 24px;
}
.area .label { margin-bottom: 12px; font-size: 12px; }
.area p { color: var(--text-2); font-size: 16px; }

/* ---------- Om oss ---------- */
.split-about { align-items: center; }
.split-about .label { margin-bottom: 16px; }
.split-about .display-2 { margin-bottom: 24px; }
.split-about .body-lg { margin-bottom: 28px; }

.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist svg { color: var(--accent); flex-shrink: 0; margin-top: 4px; }

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}
.portrait { aspect-ratio: 4 / 5; margin-bottom: 18px; }
.person h3 { margin-bottom: 6px; }
.person p { color: var(--muted); font-size: 15px; }

/* ---------- Be om tilbud ---------- */
.split-form { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.split-form .display-2 { margin-bottom: 20px; }
.split-form .body-lg { margin-bottom: 32px; }

.contact-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); }
.contact-list dd { text-align: right; }
.contact-list a { color: var(--accent); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--input-line);
  border-radius: 0;
  font-size: 16px;
  color: var(--text);
  transition: border-color .15s;
}
.field textarea { padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  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 1l5 5 5-5' fill='none' stroke='%23C9CCD1' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  text-overflow: ellipsis;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.field input[type="date"] { padding-right: 10px; }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.8); cursor: pointer; }

.field input[type="file"] {
  min-height: 56px;
  padding: 10px;
  border-style: dashed;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--input-line);
  border-radius: 0;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { border-color: var(--text-2); }

.field-error {
  display: none;
  font-size: 14px;
  color: var(--error);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--error); }
.field.invalid .field-error { display: block; }

.field-hint { font-size: 14px; color: var(--muted); }

.form-error {
  padding: 14px 16px;
  border: 1px solid var(--error);
  color: var(--text);
  font-size: 15px;
}
.form-error a { color: var(--accent); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}
.form-note { font-size: 14px; color: var(--muted); }

.form-success { padding: 24px 0; }
.form-success svg { margin-bottom: 20px; }
.form-success h3 { font-size: 26px; margin-bottom: 12px; }
.form-success p { color: var(--text-2); }
.form-success a { color: var(--accent); }
.form-success:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 48px;
  font-size: 15px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-tagline { margin-top: 14px; color: var(--muted); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.footer-cols li { padding: 3px 0; color: var(--text-2); }
.footer-cols a { text-decoration: none; color: var(--text-2); }
.footer-cols a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}

/* ---------- Mobil ringeknapp ---------- */
.callbar { display: none; }

/* =========================================================
   Responsivt
   ========================================================= */
@media (max-width: 1100px) {
  .site-nav ul { gap: 22px; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { height: clamp(280px, 60vw, 480px); }
  .split-form { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* Hamburger-meny */
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
  }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a {
    display: block;
    padding: 16px 0;
    font-size: 17px;
    color: var(--text);
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --section-y: 64px;
    --header-h: 64px;
  }
  body { font-size: 16px; padding-bottom: 64px; }

  .hero { padding-block: 40px 48px; }
  .hero-text .label { margin-bottom: 16px; }
  .hero-text .display-1 { margin-bottom: 20px; }
  .lead { font-size: 17px; }
  .btn-row .btn { flex: 1 1 200px; }

  .logo-word { font-size: 21px; }
  .logo svg { width: 26px; height: 26px; }
  .btn-sm { padding: 0 14px; font-size: 14px; }

  .stats { padding-block: 28px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }

  .section-head { margin-bottom: 28px; }
  .mb-lg { margin-bottom: 28px; }
  .card { padding: 24px; }
  .product-media { height: 200px; }
  .product-body { padding: 22px 20px 24px; }
  .product-title h3 { font-size: 21px; }
  .specs > div { font-size: 14px; }

  .num-list li { font-size: 16px; padding: 16px 0; }

  .private-media { min-height: 0; height: clamp(260px, 75vw, 420px); }
  .private-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .job-list li { padding: 12px; font-size: 15px; gap: 10px; }

  .form-panel { padding: 20px; }
  .quote-form { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .form-foot .form-note { order: 2; text-align: center; }

  .footer-bottom { flex-direction: column; }

  .callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 16px calc(env(safe-area-inset-bottom, 0px));
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
    border-top: 1px solid var(--bg);
  }
  .callbar:focus-visible { outline: 2px solid var(--on-accent); outline-offset: -6px; }
}

@media (max-width: 380px) {
  .job-list { grid-template-columns: 1fr; }
  .header-inner { gap: 12px; }
  .logo-word { font-size: 19px; letter-spacing: 0.06em; }
  .logo { gap: 8px; }
  .btn-sm { padding: 0 12px; }
  .stat-value { font-size: 32px; }
}
