/* ==========================================================================
   Maskinbørsen AS — nytt design ("Industry"-basert)
   Bygges side for side. Denne filen brukes KUN av de sidene som er
   redesignet (se README i design_handoff-mappen for fullstendig spec).
   Gamle sider bruker fortsatt style.css/site.js og påvirkes ikke av dette.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600&family=Barlow+Condensed:wght@500;600;700&display=swap');

:root {
  --navy: #12233f;
  --gold: #efa918;
  --color-bg: #f2f2f3;
  --color-text: #1d1f20;
  --color-divider: rgba(29, 31, 32, 0.16);

  --color-accent: #1d3459;
  --color-accent-100: #e9eef5;
  --color-accent-200: #c9d5e5;
  --color-accent-300: #a3b5cd;
  --color-accent-400: #7791b1;
  --color-accent-500: #4d6c95;
  --color-accent-600: #2c4a74;
  --color-accent-700: #1d3459;
  --color-accent-800: #142545;
  --color-accent-900: #0e1b32;

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.v2 {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
.v2 img { max-width: 100%; display: block; }
.v2 a { color: var(--color-accent-700); text-underline-offset: 3px; }
.v2 a:hover { color: var(--color-accent-900); }
.v2 :focus { outline: none; }
.v2 :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.v2-wrap { max-width: 1320px; margin: 0 auto; padding-left: clamp(20px, 5vw, 72px); padding-right: clamp(20px, 5vw, 72px); }
.v2-hr { height: 1px; border: 0; background: var(--color-divider); margin: 0 0 26px; }
.v2-hr.on-dark { background: rgba(233,238,245,.28); }

.v2-kicker { display: block; font-family: var(--font-heading); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent-700); margin-bottom: 12px; }
.v2-kicker.on-dark { color: var(--gold); }

.v2 h1, .v2 h2, .v2 h3 { font-family: var(--font-heading); margin: 0; text-transform: uppercase; }
.v2-h1 { font-weight: 700; font-size: clamp(44px, 5.6vw, 80px); line-height: 1.02; letter-spacing: .01em; color: #fff; }
.v2-h1-page { font-weight: 700; font-size: clamp(38px, 5vw, 66px); line-height: 1.04; color: #fff; }
.v2-h2 { font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: .02em; }
.v2-h3 { font-weight: 600; font-size: 22px; letter-spacing: .02em; }
.v2-ingress { font-size: 17px; line-height: 1.65; }
.v2-body { font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 82%, transparent); }

/* — knapper — */
.v2-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 15px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: 13px 24px; border-radius: 0; cursor: pointer; border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.v2-btn-primary { background: var(--gold); color: var(--navy); }
.v2-btn-primary:hover { background: #d99b12; color: var(--navy); }
.v2-btn-secondary-dark { background: transparent; border-color: rgba(233,238,245,.4); color: #e9eef5; }
.v2-btn-secondary-dark:hover { border-color: #fff; color: #fff; }
.v2-btn-secondary-light { background: transparent; border-color: var(--color-divider); color: var(--color-text); }
.v2-btn-secondary-light:hover { border-color: var(--color-accent-700); color: var(--color-accent-700); }
.v2-btn:disabled { opacity: .55; cursor: not-allowed; }

/* — blueprint-kort — */
.v2-blueprint { position: relative; border: 1px solid var(--color-divider); }
.v2-blueprint > .corner { position: absolute; width: 11px; height: 11px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.v2-blueprint > .corner::before, .v2-blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.v2-blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.v2-blueprint > .corner::after { top: 5px; left: 0; width: 100%; height: 1px; }
.v2-blueprint > .corner.tl { top: -6px; left: -6px; }
.v2-blueprint > .corner.tr { top: -6px; right: -6px; }
.v2-blueprint > .corner.bl { bottom: -6px; left: -6px; }
.v2-blueprint > .corner.br { bottom: -6px; right: -6px; }

/* — tagger — */
.v2-tag { display: inline-flex; align-items: center; font-size: 13px; letter-spacing: .02em; padding: 6px 14px; border: 1px solid var(--color-divider); color: var(--color-text); }
.v2-tag.on-dark { border-color: rgba(233,238,245,.35); color: #e9eef5; }
.v2-tag.accent { border-color: var(--color-accent-700); color: var(--color-accent-700); }

/* — 4-kolonners kort (Maskintyper) — */
.v2-cards-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(20px,3vw,40px); }
.v2-cards-4 .v2-blueprint { padding: 24px; }
.v2-cards-4 h2 { font-size: 21px; letter-spacing: .02em; }
.v2-cards-4 p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 78%, transparent); }

/* — bildeplassholder (til ekte bilder er klare) — */
.v2-imgslot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; height: 100%; min-height: 220px;
  background: repeating-linear-gradient(135deg, rgba(233,238,245,.06) 0 10px, transparent 10px 20px), var(--color-accent-900);
  border: 1px dashed rgba(233,238,245,.35); color: rgba(233,238,245,.75);
  font-family: var(--font-heading); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 20px;
}
.v2-imgslot.light { background: repeating-linear-gradient(135deg, rgba(29,31,32,.05) 0 10px, transparent 10px 20px), var(--color-accent-100); border-color: var(--color-divider); color: color-mix(in srgb, var(--color-text) 60%, transparent); }

/* — toppmeny — */
.v2-header { background: var(--navy); color: #e9eef5; }
.v2-nav { display: flex; align-items: center; gap: 28px; padding: 16px clamp(20px,5vw,72px); max-width: 1320px; margin: 0 auto; }
.v2-nav-logo { display: flex; align-items: center; }
.v2-nav-logo img { height: 28px; width: auto; }
.v2-nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.v2-nav-links a { color: #e9eef5; font-family: var(--font-heading); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.v2-nav-links a:hover { color: #fff; }
.v2-nav-links a.v2-nav-vakt { color: var(--gold); }
.v2-nav-toggle { display: none; margin-left: auto; background: none; border: none; cursor: pointer; padding: 6px; }
.v2-nav-toggle span { display: block; width: 24px; height: 2px; background: #e9eef5; margin: 5px 0; }

/* — hero — */
.v2-hero { position: relative; min-height: 600px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: stretch; }
.v2-hero-text { padding: clamp(48px,7vw,96px) clamp(20px,5vw,72px) clamp(56px,7vw,96px); display: flex; flex-direction: column; justify-content: center; max-width: 760px; margin-left: auto; width: 100%; }
.v2-hero-text p { max-width: 52ch; margin: 26px 0 0; color: rgba(233,238,245,.86); }
.v2-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.v2-hero-image { position: relative; min-height: 320px; }
.v2-hero-image .v2-imgslot { position: absolute; inset: 0; min-height: 0; }

/* — faktastripe — */
.v2-facts { border-top: 1px solid rgba(233,238,245,.18); }
.v2-facts-grid { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px,5vw,72px); display: grid; grid-template-columns: repeat(3,1fr); }
.v2-facts-grid > div { padding: 22px 0; min-width: 0; }
.v2-facts-grid > div + div { padding-left: 24px; border-left: 1px solid rgba(233,238,245,.18); }
.v2-facts-grid .lbl { display: block; font-family: var(--font-heading); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.v2-facts-grid .val { font-size: 15px; color: rgba(233,238,245,.86); }

/* — seksjoner — */
.v2-section { padding: clamp(56px,7vw,88px) 0; }
.v2-section.on-dark { background: var(--navy); color: #e9eef5; }
.v2-section.bordered { border-bottom: 1px solid var(--color-divider); }
.v2-split { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: clamp(32px,5vw,80px); align-items: start; }
.v2-split.align-center { align-items: center; }

/* — sammenligningskort (I dag / Med Maskinbørsen) — */
.v2-compare { display: grid; grid-template-columns: 1fr 1fr; }
.v2-compare-col { padding: 26px 28px; min-width: 0; }
.v2-compare-col.today { border-right: 1px solid var(--color-divider); }
.v2-compare-col.with-mb { background: var(--navy); color: #e9eef5; }
.v2-compare-col .lbl { font-family: var(--font-heading); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.v2-compare-col.with-mb .lbl { color: var(--gold); }
.v2-compare-col ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.v2-compare-col li { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--color-divider); }
.v2-compare-col li:last-child { border-bottom: none; padding-bottom: 0; }
.v2-compare-col.with-mb li { border-bottom-color: rgba(233,238,245,.2); }
.v2-compare-col li span:last-child { color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.v2-compare-col.with-mb li span:last-child { color: rgba(233,238,245,.7); }

/* — tjenester — */
.v2-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.v2-section-head a { font-family: var(--font-heading); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--color-accent-700); }
.v2-services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(24px,3.5vw,48px); margin-top: 40px; }
.v2-service-card { padding: 26px; }
.v2-service-card .num { font-family: var(--font-heading); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--color-accent-700); }
.v2-service-card h3 { margin: 10px 0 0; }
.v2-service-card p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 78%, transparent); }

/* — dekningsområde — */
.v2-tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }

/* — kontakt — */
.v2-phone-big { font-family: var(--font-heading); font-size: clamp(30px,4vw,46px); letter-spacing: .02em; text-decoration: none; color: var(--color-text); }
.v2-phone-big:hover { color: var(--color-accent-900); }

/* — team (Om oss-siden) — */
.v2-team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(24px,3.5vw,48px); margin-top: 40px; }
.v2-team-card { padding: 0; overflow: hidden; }
.v2-team-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; filter: grayscale(35%); }
.v2-team-body { padding: 20px 22px 24px; }
.v2-team-body h3 { margin: 0; font-size: 20px; letter-spacing: .02em; }
.v2-team-body .role { display: block; margin-top: 4px; font-family: var(--font-heading); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-700); }
.v2-team-body .kontakt { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 78%, transparent); }

/* — nettbutikk — */
.v2-produkt-kategori { margin-top: 56px; }
.v2-produkt-kategori:first-child { margin-top: 0; }
.v2-product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,3vw,32px); margin-top: 28px; }
.v2-product-card { padding: 24px; display: flex; flex-direction: column; }
.v2-product-card h3 { font-size: 20px; letter-spacing: .02em; margin: 0; }
.v2-product-card .v2-body { margin-top: 10px; }
.v2-product-specs { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--color-divider); display: flex; flex-direction: column; gap: 6px; }
.v2-product-specs li { font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.v2-product-specs li span:first-child { font-family: var(--font-heading); letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.v2-product-card .v2-btn { margin-top: auto; padding-top: 20px; }
.v2-product-card .v2-btn-primary { margin-top: 18px; }

/* — modal (nettbutikk: be om tilbud) — */
.v2-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(14,27,50,.72); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.v2-modal-overlay.open { display: flex; }
.v2-modal-box { background: var(--color-bg); position: relative; max-width: 460px; width: 100%; padding: 32px; border: 1px solid var(--color-divider); max-height: 90vh; overflow-y: auto; }
.v2-modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.v2-modal-box h3 { margin: 0 0 6px; }
.v2-modal-box .v2-form { padding: 0; grid-template-columns: 1fr; margin-top: 18px; }

/* — kontaktinfo-liste (Kontakt-siden) — */
.v2-kv { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; font-size: 15px; line-height: 1.6; }
.v2-kv dt { font-family: var(--font-heading); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.v2-kv dd { margin: 0; }

/* — skjema — */
.v2-form { padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.v2-field { display: flex; flex-direction: column; }
.v2-field.full { grid-column: 1 / -1; }
.v2-field label { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: color-mix(in srgb, var(--color-text) 75%, transparent); }
.v2-input {
  width: 100%; font: inherit; font-size: 15px; color: var(--color-text);
  background: #fff; border: 1px solid var(--color-divider); border-radius: 0; padding: 10px 12px;
}
.v2-input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.v2-input:focus-visible { border-color: var(--color-accent); }
textarea.v2-input { min-height: 110px; resize: vertical; font-family: inherit; }
.v2-field-err { font-size: 12.5px; color: #b91c1c; margin-top: 5px; display: none; }
.v2-field.invalid .v2-input { border-color: #b91c1c; }
.v2-field.invalid .v2-field-err { display: block; }
.v2-form-actions { grid-column: 1/-1; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.v2-form-msg { font-size: 14px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.v2-form-msg.err { color: #b91c1c; }
.v2-form-msg.ok { color: #15803d; }
.v2-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* — undersides sidehode (mørk, uten hero-bilde) — */
.v2-page-header { background: var(--navy); color: #e9eef5; }
.v2-page-header-inner { padding: clamp(40px,6vw,72px) 0; }
.v2-page-header p { font-size: 17px; line-height: 1.65; max-width: 56ch; margin: 24px 0 0; color: rgba(233,238,245,.86); }

/* — spesifikasjonstabell (Tjenester) — */
.v2-spec-head { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--color-divider); }
.v2-spec-head span { flex: 1; min-width: 16ch; padding: 12px 24px; font-family: var(--font-heading); font-size: 14px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.v2-spec-head span + span { border-left: 1px solid var(--color-divider); color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.v2-spec-table { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.v2-spec-table col.nr { width: 70px; }
.v2-spec-table col.tjeneste { width: 28%; }
.v2-spec-table col.utfores { width: 20%; }
.v2-spec-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 60%, transparent); padding: 10px; border-bottom: 1px solid var(--color-divider); }
.v2-spec-table td { padding: 14px 10px; border-bottom: 1px solid var(--color-divider); vertical-align: top; }
.v2-spec-table .nr-cell { font-family: var(--font-heading); color: var(--color-accent-700); letter-spacing: .08em; }
.v2-spec-table .navn-cell { font-family: var(--font-heading); font-size: 21px; text-transform: uppercase; }
.v2-spec-foot { margin: 0; padding: 12px 24px; border-top: 1px solid var(--color-divider); font-size: 13px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }

/* — 2-kolonners kort — */
.v2-cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,3.5vw,48px); }
.v2-cards-2 .v2-blueprint { padding: 28px; }
.v2-cards-2 h2 { font-size: 24px; letter-spacing: .02em; }
.v2-cards-2 p { margin: 14px 0 0; }

/* — CTA-stripe — */
.v2-cta-stripe { background: var(--navy); color: #e9eef5; }
.v2-cta-stripe-inner { padding: clamp(44px,6vw,72px) 0; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.v2-cta-stripe h2 { font-weight: 600; font-size: clamp(26px,3vw,36px); letter-spacing: .02em; color: #fff; }
.v2-cta-stripe-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* — footer — */
.v2-footer { background: var(--navy); color: #c9d5e5; }
.v2-footer-grid { max-width: 1320px; margin: 0 auto; padding: 48px clamp(20px,5vw,72px) 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 32px; }
.v2-footer-grid img { height: 26px; width: auto; margin-bottom: 16px; }
.v2-footer-grid p { font-size: 14px; line-height: 1.7; margin: 0; color: rgba(233,238,245,.72); }
.v2-footer-heading { display: block; font-family: var(--font-heading); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.v2-footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.v2-footer-links a { color: #c9d5e5; text-decoration: none; }
.v2-footer-links a:hover { color: #fff; }
.v2-footer-bottom { max-width: 1320px; margin: 0 auto; padding: 18px clamp(20px,5vw,72px) 36px; border-top: 1px solid rgba(233,238,245,.16); font-size: 13px; color: rgba(233,238,245,.6); }

/* — responsivt — */
@media (max-width: 900px) {
  .v2-nav-links { position: fixed; inset: 0 0 0 auto; width: min(280px, 80vw); height: 100vh; background: var(--navy); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; padding: 84px 28px 28px; transform: translateX(100%); transition: transform .2s ease; }
  .v2-nav-links.open { transform: translateX(0); }
  .v2-nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(233,238,245,.12); }
  .v2-nav-toggle { display: block; }

  .v2-hero { grid-template-columns: 1fr; min-height: 0; }
  .v2-hero-text { max-width: none; margin-left: 0; padding-bottom: 40px; }
  .v2-hero-image { min-height: 260px; order: -1; }

  .v2-facts-grid { grid-template-columns: 1fr; }
  .v2-facts-grid > div + div { border-left: none; border-top: 1px solid rgba(233,238,245,.18); padding-left: 0; }

  .v2-split { grid-template-columns: 1fr; }
  .v2-compare { grid-template-columns: 1fr; }
  .v2-compare-col.today { border-right: none; border-bottom: 1px solid var(--color-divider); }

  .v2-services-grid { grid-template-columns: repeat(2,1fr); }
  .v2-form { grid-template-columns: 1fr; }
  .v2-cards-2 { grid-template-columns: 1fr; }
  .v2-cards-4 { grid-template-columns: repeat(2,1fr); }
  .v2-team-grid { grid-template-columns: 1fr; max-width: 420px; }
  .v2-product-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  .v2-services-grid { grid-template-columns: 1fr; }
  .v2-cards-4 { grid-template-columns: 1fr; }
  .v2-product-grid { grid-template-columns: 1fr; }
}

/* Spesifikasjonstabellen blir stablede rader under ~700px — table-layout:fixed
   med fire kolonner er ikke lesbart på smal skjerm (jf. designhåndoveringen). */
@media (max-width: 700px) {
  .v2-spec-head span { flex: 1 1 50%; }
  .v2-spec-table, .v2-spec-table thead, .v2-spec-table tbody, .v2-spec-table th, .v2-spec-table td, .v2-spec-table tr { display: block; }
  .v2-spec-table thead { display: none; }
  .v2-spec-table tr { padding: 16px 10px; border-bottom: 1px solid var(--color-divider); }
  .v2-spec-table td { border-bottom: none; padding: 3px 0; }
  .v2-spec-table .nr-cell { display: none; }
  .v2-spec-table .navn-cell { font-size: 19px; }
  .v2-spec-table td[data-label]::before { content: attr(data-label) ": "; font-family: var(--font-heading); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
  .v2-spec-table .navn-cell[data-label]::before { content: none; }
}
