/* =========================================================
   DESIGN TOKENS
   Konsept: ren, fotodrevet industri-stil (inspirert av
   intermec.no) — hvitt/sort, én signalblå aksentfarge,
   Inter gjennomgående, store bilde-fliser i stedet for
   tegning/rutenett-estetikk.
   ========================================================= */
:root {
  /* Farger */
  --ink: #0a0a0a;           /* brødtekst / sort */
  --paper: #ffffff;         /* lys bakgrunn */
  --panel: #f4f5f7;         /* lys bakgrunn, seksjon 2 */
  --graphite: #0a0a0a;      /* mørk bakgrunn / footer / hero */
  --graphite-soft: #17181a; /* mørk panel, litt lysere */
  --line: #e3e5e8;          /* linjer / kort-kanter på lys bunn */
  --line-dark: #2a2c30;     /* linjer på mørk bunn */
  --muted: #5b6066;         /* sekundærtekst på lys bunn */
  --muted-dark: #9aa0a8;    /* sekundærtekst på mørk bunn */
  --blue: #0072ce;          /* aksent */
  --blue-deep: #00509a;     /* aksent, hover/mørk */

  /* Typografi — én familie, flere vekter */
  --font-body: "Inter", sans-serif;

  /* Rytme */
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================================================
   SPRÅK (NO/EN) — se js/i18n.js
   Standard (før JS kjører, eller uten data-lang): norsk vises.
   ========================================================= */
[data-en] { display: none; }
html[data-lang="en"] [data-en] { display: inline; }
html[data-lang="en"] [data-no] { display: none; }

/* Liten uppercase-etikett med prikk — ISO-badge-aktig mikro-pynt */
.tolerance-tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.tolerance-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
}

/* =========================================================
   PASSORD-OVERLAY (gate.js)
   ========================================================= */
#gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--graphite);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gate-box {
  max-width: 380px;
  width: 100%;
  background: var(--graphite-soft);
  border: 1px solid var(--line-dark);
  padding: 40px 32px;
  text-align: left;
}
.gate-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  display: block;
  margin-bottom: 14px;
}
.gate-box h1 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--paper);
  margin: 0 0 12px;
}
.gate-box p {
  color: var(--muted-dark);
  font-size: 0.92rem;
  margin: 0 0 22px;
}
.gate-box form { display: flex; gap: 10px; }
.gate-box input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #3a3d42;
  background: #202226;
  color: var(--paper);
  font-family: var(--font-body);
  border-radius: var(--radius);
}
.gate-error {
  color: #e0654f !important;
  font-family: var(--font-body);
  font-size: 0.82rem;
  margin-top: 14px !important;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 4vw, 48px);
}
.logo {
  display: flex;
  align-items: center;
  flex: none;
}
.logo svg,
.logo img {
  height: 30px;
  width: auto;
  display: block;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}
.nav-links {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lang-switch {
  display: flex;
  gap: 4px;
}
.lang-btn {
  display: flex;
  background: none;
  border: 1px solid transparent;
  border-radius: 50%;
  padding: 2px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.4;
  filter: grayscale(70%);
  transition: opacity 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}
.lang-flag {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.lang-btn:hover { opacity: 0.75; }
.lang-btn.active {
  opacity: 1;
  filter: none;
  border-color: var(--line);
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--blue);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  padding: 8px 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
}

.site-search { position: relative; width: clamp(160px, 14vw, 220px); }
.site-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: var(--panel);
  color: var(--ink);
}
.site-search-input:focus { outline: none; border-color: var(--blue); background: var(--paper); }
.site-search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: max(280px, 100%);
  max-height: 60vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(10, 10, 10, 0.12);
  z-index: 200;
}
.site-search-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-search-result:last-child { border-bottom: none; }
.site-search-result:hover,
.site-search-result.active { background: var(--panel); }
.site-search-result-title { font-weight: 700; color: var(--ink); font-size: 0.88rem; }
.site-search-result-category { color: var(--muted); font-size: 0.74rem; }
.site-search-empty { padding: 14px; color: var(--muted); font-size: 0.85rem; }
.site-search-count {
  padding: 8px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.site-search-see-all {
  display: block;
  padding: 12px 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
  background: var(--panel);
}
.site-search-see-all:hover,
.site-search-see-all.active { background: var(--line); }

/* =========================================================
   SØKERESULTAT-SIDE (search-results.html)
   ========================================================= */
.search-results-heading { margin-bottom: 4px; }
.search-results-count { color: var(--muted); margin: 0 0 32px; }
.search-results-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .search-results-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .search-results-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .search-results-list { grid-template-columns: 1fr; } }

.search-results-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  position: relative;
}
.search-results-item:hover { box-shadow: 0 10px 28px rgba(10, 10, 10, 0.08); transform: translateY(-2px); }
.search-results-item-series {
  padding: 16px 16px 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-align: center;
}
.search-results-item-photo {
  aspect-ratio: 1 / 0.9;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}
.search-results-item-photo img { width: 100%; height: 100%; object-fit: contain; }
.search-results-item-body { padding: 0 16px 44px; text-align: center; flex: 1; }
.search-results-item-title { display: block; font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.search-results-item-category,
.search-results-item-standard { display: block; font-size: 0.82rem; color: var(--muted); }
.search-results-item-arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 1.1rem;
  color: var(--ink);
}
.search-results-empty { color: var(--muted); max-width: 60ch; }

@media (max-width: 1100px) {
  .site-search { width: clamp(120px, 12vw, 160px); }
}
@media (max-width: 480px) {
  .nav-right { gap: 8px; }
  .site-search { width: 90px; }
  .site-search-input { padding: 6px 8px; font-size: 0.78rem; }
  .site-search-results { width: max(240px, 100%); right: -30px; }
  .lang-switch { gap: 2px; }
  .lang-flag { width: 27px; height: 27px; }
  .nav-toggle { padding: 8px 6px; font-size: 0.72rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 20px clamp(20px, 4vw, 48px);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* =========================================================
   HERO — mørk fullbredde "foto"-seksjon
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--graphite);
  color: var(--paper);
  padding: clamp(28px, 4vw, 52px) 0 clamp(20px, 2.5vw, 36px);
  min-height: min(43vh, 350px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* Bakerste lag: images/hero.jpg hvis den finnes, ellers samme
   diagonal-mønster som i katalogens miniatyrer. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("../images/hero.jpg"),
    repeating-linear-gradient(135deg, #1c1e22, #1c1e22 10px, #202329 10px, #202329 20px);
  background-size: cover, auto;
  background-position: center, 0 0;
  background-repeat: no-repeat, repeat;
  z-index: 0;
}
/* Video (images/hero.mp4) legger seg over foto/mønster-laget.
   Mangler filen, eller kan den ikke spilles av, fjernes elementet
   av onerror-handleren i HTML og laget under vises i stedet. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
/* Mørk gradient øverst — sikrer lesbar hvit tekst uansett hva
   som vises i lagene under (video, foto eller mønster). */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.08) 0%, rgba(10,10,10,0.2) 55%, rgba(10,10,10,0.6) 100%);
  z-index: 2;
}
.hero .container { position: relative; z-index: 3; width: 100%; }
.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: block;
}
.hero h1 {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  max-width: 16ch;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.hero h1 em {
  font-style: normal;
  color: inherit;
}
.hero .btn-row .btn {
  padding: 10px 20px;
  font-size: 0.78rem;
}
.hero p.lead {
  font-size: 1.1rem;
  max-width: 46ch;
  color: var(--muted-dark);
  margin-bottom: 16px;
}
.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
}
.hero-specs .tolerance-tag { color: var(--muted-dark); }
.hero-specs .tolerance-tag::before { background: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn.ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   SECTIONS (generisk)
   ========================================================= */
section { padding: clamp(56px, 9vw, 110px) 0; }
.section-dark {
  background: var(--paper);
  color: var(--ink);
}
.section-dark .section-head p { color: var(--muted); }
.section-dim { background: var(--panel); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0;
  line-height: 1.05;
}
.section-head .eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}
.section-head p { max-width: 46ch; color: var(--muted); margin: 0; }

/* Kapasitet / tjeneste-grid — foto-fliser med overlay-tekst */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  background: var(--graphite);
  color: var(--paper);
  padding: 28px 26px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
}
/* Fallback-mønster, bakerste lag. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, #1c1e22, #1c1e22 10px, #23262c 10px, #23262c 20px);
  z-index: -3;
}
/* Ekte foto (images/services/NAVN.jpg) — legger seg over mønsteret.
   Mangler filen, fjernes <img> av onerror i HTML og mønsteret vises. */
.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.35s ease;
}
/* Mørk gradient øverst — sikrer lesbar tekst uansett mønster/foto. */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.92) 100%);
  z-index: -1;
}
.card:hover .card-photo,
.card:hover::before { transform: scale(1.06); }
.card h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.3rem;
  margin: 10px 0 8px;
  letter-spacing: -0.01em;
}
.card p { color: var(--muted-dark); margin: 0; font-size: 0.92rem; }
.card .tolerance-tag { margin-bottom: 2px; color: var(--blue); }
.section-dim .card,
section:not(.section-dark):not(.section-dim) .card { }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Stats-strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 28px 20px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat .label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-top: 8px;
}
@media (max-width: 760px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
}

/* =========================================================
   PRODUKTKATALOG
   ========================================================= */
.catalog-toolbar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 36px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.catalog-toolbar input[type="search"],
.catalog-toolbar select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
}
.catalog-toolbar input[type="search"] { flex: 1 1 260px; }
.catalog-toolbar select { flex: 0 0 auto; }
.catalog-count {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: auto;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover {
  box-shadow: 0 8px 24px rgba(10,10,10,0.08);
  transform: translateY(-2px);
}
.product-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, var(--panel), var(--panel) 8px, #e6e8eb 8px, #e6e8eb 16px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-id {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-body { padding: 18px 18px 22px; flex: 1; display: flex; flex-direction: column; }
.product-body .cat {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--blue);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.product-body h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.product-body p.desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 14px;
  flex: 1;
}
.product-specs {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
}
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-family: var(--font-body);
  color: var(--muted);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--paper);
  color: var(--ink);
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
  margin: 0 0 16px;
}
.footer-grid p, .footer-grid a { color: var(--muted); font-size: 0.92rem; }
.footer-grid p { margin: 0 0 14px; }
.footer-grid p:last-child { margin-bottom: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Diverse sider (Om oss / Kontakt / Tjenester)
   ========================================================= */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.page-hero h1 {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 10px 0 0;
}

/* =========================================================
   PHOTO-HERO — mørkt bilde-Hero for produktkategori-sider
   (matcher live-sidens fullbredde foto + H1 nederst)
   ========================================================= */
.photo-hero {
  position: relative;
  overflow: hidden;
  min-height: min(46vh, 380px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
  background: repeating-linear-gradient(135deg, #1c1e22, #1c1e22 10px, #23262c 10px, #23262c 20px);
}
.photo-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.05) 0%, rgba(10, 10, 10, 0.15) 55%, rgba(10, 10, 10, 0.55) 100%);
  z-index: 1;
}
.photo-hero .container {
  position: relative;
  z-index: 2;
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(24px, 3vw, 36px);
}
.photo-hero .eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.photo-hero .eyebrow a { color: inherit; }
.photo-hero h1 {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 20ch;
  margin: 10px 0 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.values-list li {
  padding-left: 24px;
  border-left: 2px solid var(--blue);
}
.values-list h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.values-list p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* =========================================================
   PHOTO-FRAME — generisk bilde-plassholder (utenfor kort/katalog).
   Ekte foto legges inn som <img> inni rammen; mangler filen,
   fjernes den av onerror i HTML og det diagonale mønsteret vises.
   ========================================================= */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--panel), var(--panel) 8px, #e6e8eb 8px, #e6e8eb 16px);
  border: 1px solid var(--line);
}
.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-frame::after {
  content: attr(data-label);
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.photo-frame img ~ *,
.photo-frame:has(img)::after { display: none; }
.photo-frame.ratio-16-9 { aspect-ratio: 16 / 9; }
.photo-frame.ratio-4-3 { aspect-ratio: 4 / 3; }
.photo-frame.contain { background: var(--paper); border: none; }
.photo-frame.contain img { object-fit: contain; padding: 24px; box-sizing: border-box; }
.photo-frame.ratio-1-1 { aspect-ratio: 1 / 1; }

/* =========================================================
   TAGLINE-RAD — "A Leader in CNC-machining..." + Opima-merke
   (mellom Hero og sikksakk-raden på forsiden)
   ========================================================= */
.tagline-row {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 760px) {
  .tagline-row { grid-template-columns: 1fr; justify-items: start; gap: 24px; }
}
.tagline-row h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
}
.opima-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}
@media (max-width: 760px) { .opima-badge { justify-self: start; } }
.opima-logo {
  height: 32px;
  width: auto;
  display: block;
}

/* =========================================================
   PRODUKT-SIKKSAKK — vekslende bilde/tekst-rader (forsiden,
   samme mønster som de 5 produktradene på live-siden)
   ========================================================= */
.zigzag {
  display: flex;
  flex-direction: column;
}
.zigzag-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 860px) {
  .zigzag-row { grid-template-columns: 1fr; }
}
.zigzag-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  background: repeating-linear-gradient(135deg, var(--panel), var(--panel) 8px, #e6e8eb 8px, #e6e8eb 16px);
}
.zigzag-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.zigzag-photo:hover img { transform: scale(1.04); }
.zigzag-text {
  aspect-ratio: 16 / 9;
  background: var(--panel);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  padding: 32px;
}
.zigzag-text h2 {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0;
}

/* =========================================================
   BILDEKARUSELL — horisontal galleri-stripe (forsiden,
   rett etter sikksakk-raden, matcher live-sidens slider)
   ========================================================= */
.gallery { position: relative; }
.gallery-track {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  position: relative;
  flex: 0 0 calc((100% - 5 * 4px) / 6);
  aspect-ratio: 3 / 4;
  scroll-snap-align: start;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #1c1e22, #1c1e22 10px, #23262c 10px, #23262c 20px);
}
.gallery-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 980px) {
  .gallery-slide { flex-basis: calc((100% - 3 * 4px) / 4); }
}
@media (max-width: 700px) {
  .gallery-slide { flex-basis: calc((100% - 1 * 4px) / 2); }
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.7);
  color: var(--paper);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 1.3rem;
  line-height: 1;
  transition: background 0.15s ease;
}
.gallery-nav:hover { background: rgba(10, 10, 10, 0.9); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
@media (max-width: 700px) {
  .gallery-nav { width: 36px; height: 36px; font-size: 1.1rem; }
}

/* =========================================================
   ORBIT-GALLERI — alternativ til den lineære karusellen:
   ett stort fokusbilde i midten, resten i en ring rundt.
   Klikk et satellittbilde for å bytte det inn i fokus.
   ========================================================= */
.orbit-gallery {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.orbit-focus {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  z-index: 5;
  box-shadow: 0 24px 60px rgba(10, 10, 10, 0.28);
  border: 4px solid var(--paper);
  background: repeating-linear-gradient(135deg, #1c1e22, #1c1e22 10px, #23262c 10px, #23262c 20px);
}
.orbit-focus img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.orbit-focus img.is-swapping { opacity: 0; }
.orbit-ring { position: absolute; inset: 0; }
.orbit-item {
  position: absolute;
  width: 15%;
  aspect-ratio: 1 / 1;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--paper);
  box-shadow: 0 8px 20px rgba(10, 10, 10, 0.15);
  cursor: pointer;
  padding: 0;
  background: repeating-linear-gradient(135deg, var(--panel), var(--panel) 8px, #e6e8eb 8px, #e6e8eb 16px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.orbit-item:hover {
  box-shadow: 0 10px 26px rgba(10, 10, 10, 0.22);
  z-index: 6;
}
.orbit-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .orbit-gallery { max-width: 340px; }
  .orbit-item { width: 19%; }
}

/* =========================================================
   TEAM-GRID — ansattoversikt (Kontakt-siden)
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px 20px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { text-align: center; }
.team-photo {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  background: repeating-linear-gradient(135deg, var(--panel), var(--panel) 8px, #e6e8eb 8px, #e6e8eb 16px);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  margin: 0 0 3px;
}
.team-card .role {
  font-size: 0.74rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  margin-bottom: 8px;
  min-height: 1.4em;
}
.team-card .contact-line {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.team-card .contact-line a { color: var(--blue); }

/* =========================================================
   COVER FLOW — 3D-karusell (alternativ til orbit-galleriet
   og den lineære karusellen). Aktivt bilde forfra i midten,
   resten vippet i 3D til hver side.
   ========================================================= */
.coverflow {
  position: relative;
  perspective: 1600px;
  height: clamp(340px, 44vw, 500px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.coverflow-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.coverflow-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(210px, 26vw, 320px);
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  border: 4px solid var(--paper);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: repeating-linear-gradient(135deg, var(--panel), var(--panel) 8px, #e6e8eb 8px, #e6e8eb 16px);
  box-shadow: 0 20px 44px rgba(10, 10, 10, 0.3);
  transition: transform 0.5s cubic-bezier(.25,.8,.25,1), opacity 0.5s ease;
}
.coverflow-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coverflow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.7);
  color: var(--paper);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  font-size: 1.3rem;
  line-height: 1;
  transition: background 0.15s ease;
}
.coverflow-nav:hover { background: rgba(10, 10, 10, 0.9); }
.coverflow-nav.prev { left: 4px; }
.coverflow-nav.next { right: 4px; }
@media (max-width: 700px) {
  .coverflow-nav { width: 36px; height: 36px; font-size: 1.1rem; }
}

/* =========================================================
   KATEGORI-KORT — bilde over, tekst under (Andre produkter-siden,
   matcher live-sidens "Other products"-oppsett)
   ========================================================= */
.category-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.category-card:hover { box-shadow: 0 10px 28px rgba(10, 10, 10, 0.08); transform: translateY(-2px); }
.category-card-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--panel), var(--panel) 8px, #e6e8eb 8px, #e6e8eb 16px);
}
.category-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.category-card:hover .category-card-photo img { transform: scale(1.04); }
.catalog-hub .category-card-photo { background: var(--paper); aspect-ratio: 1 / 0.56; }
.catalog-hub .category-card-photo img { object-fit: cover; }
.catalog-hub .category-card-body { text-align: center; padding: 16px 18px; }
.catalog-hub .category-card-body h2 { font-weight: 500; font-size: 1.25rem; line-height: 1.2; letter-spacing: normal; }
.catalog-page-hero h1 { font-weight: 500; font-size: 2.5rem; line-height: 1.2; text-align: center; color: var(--ink); }
.catalog-page-hero { padding-bottom: 0; border-bottom: none; }
.grid-3.catalog-hub, .grid-2.catalog-hub { gap: 16px; }
.category-card-body { padding: 24px 26px; }
.category-card-body h2 {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.35rem;
  margin: 0 0 8px;
}
.category-card-body p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.quote-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 24px;
  min-height: 220px;
}
.quote-block p:first-child {
  font-family: var(--font-body);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 34ch;
}
.quote-block .quote-author {
  font-style: italic;
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}
@media (max-width: 640px) {
  .quote-block { align-items: flex-start; text-align: left; }
}

/* =========================================================
   PRODUKTKATEGORI-SIDER (Hydraulic Fittings / Andre produkter)
   ========================================================= */
.category-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) {
  .category-links { grid-template-columns: 1fr; }
}
.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.category-link:hover { border-color: var(--blue); color: var(--blue); }
.category-link .arrow { color: var(--blue); }

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { font-weight: 700; text-align: right; }

/* =========================================================
   PRODUKTKATALOG (Hydraulic Fittings — dypere nivåer)
   ========================================================= */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span.sep { color: var(--line); }
.breadcrumbs span.current { color: var(--ink); font-weight: 600; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.product-tile:hover { transform: translateY(-2px); }
.product-tile-photo {
  width: 100%;
  aspect-ratio: 1 / 0.56;
  background: var(--paper);
  overflow: hidden;
}
.product-tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-tile-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--blue);
  border-radius: 4px;
  white-space: nowrap;
}

.product-detail-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.product-detail-series { font-size: 2rem; font-weight: 500; line-height: 1.2; letter-spacing: normal; color: var(--ink); text-transform: none; }
.product-detail-head h1 { margin: 0; font-weight: 500; font-size: 2.5rem; line-height: 1.2; }

.material-block { margin-top: 22px; }
.material-block .label { font-size: 0.75rem; font-weight: 400; line-height: 1.5; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); display: block; margin-bottom: 6px; }
.material-block .default-material { font-size: 1.125rem; font-weight: 400; line-height: 1.5; margin-bottom: 18px; }
.material-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.material-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  border: 1px solid #999;
  border-radius: 3px;
  background: rgb(234, 239, 242);
  color: var(--ink);
}

.data-table-wrap { overflow-x: auto; margin: 28px 0 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.data-table th, .data-table td { padding: 10px 14px; border: 1px solid var(--line); text-align: center; white-space: nowrap; }
.data-table thead th { background: transparent; font-weight: 700; text-transform: none; font-size: 1rem; letter-spacing: normal; color: var(--ink); }
.data-table tbody td { font-weight: 400; text-align: center; }

/* =========================================================
   JURIDISKE SIDER (Personvern / Salgsvilkår / Åpenhetsloven)
   ========================================================= */
.legal-content { max-width: 74ch; color: var(--muted); }
.legal-content h2 {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 2.2em 0 0.7em;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin: 0 0 1em; }
.legal-content ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-content li { margin-bottom: 0.4em; }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 0.88rem;
}
.legal-content th,
.legal-content td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border: 1px solid var(--line);
}
.legal-content th {
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.legal-content .table-scroll { overflow-x: auto; margin: 0 0 1.4em; }
.legal-content .table-scroll table { margin-bottom: 0; }
.legal-content .doc-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.5em;
}
.legal-updated {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* =========================================================
   JOBBUTLYSNINGER (Jobb hos oss)
   ========================================================= */
.job-list { display: flex; flex-direction: column; gap: 16px; }
.job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.job-item h3 { margin: 0 0 4px; font-weight: 800; letter-spacing: -0.01em; font-size: 1.1rem; }
.job-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }
