:root {
  --red: #ed1c24;
  --red-dark: #b91018;
  --steel: #5f6062;
  --ink: #171717;
  --muted: #626766;
  --line: #d9ddda;
  --paper: #f2f3ef;
  --paper-warm: #faf9f5;
  --white: #ffffff;
  --graphite: #242525;
  --shadow: 0 18px 45px rgba(22, 22, 22, .13);
  --hard-shadow: 10px 10px 0 rgba(237, 28, 36, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23,23,23,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, var(--paper-warm), var(--paper));
  line-height: 1.55;
}
a { color: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 249, 245, .94);
  border-bottom: 1px solid rgba(23, 23, 23, .1);
  backdrop-filter: blur(14px);
  transition: box-shadow .28s ease, background-color .28s ease;
}
.site-header.scrolled {
  background: rgba(250, 249, 245, .98);
  box-shadow: 0 12px 30px rgba(23, 23, 23, .1);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}
.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transform-origin: center;
  transition: transform .28s ease;
}
.brand:hover .brand-logo { transform: scale(1.04) rotate(-1deg); }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.brand small { color: var(--muted); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  padding: 10px 12px;
  color: #575c59;
  font-weight: 760;
  font-size: .94rem;
  text-decoration: none;
  border-radius: 4px;
  transition: color .22s ease, background-color .22s ease, transform .22s ease;
}
.site-nav a.active, .site-nav a:hover { color: var(--red-dark); background: #fff0f1; transform: translateY(-1px); }
.menu-toggle { display: none; }

.page { display: none; }
.page.active { display: block; }
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #151515;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 4px;
  background: var(--red);
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .68) 46%, rgba(10, 10, 10, .18) 100%),
    url("assets/hero-oplast-products.png") center / cover;
  transform: scale(1.05);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-grid {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 980px) minmax(260px, 320px);
  align-items: center;
  gap: 56px;
  padding: 92px 0 86px;
}
.hero-copy {
  position: relative;
  padding-left: 24px;
}
.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 10px;
  width: 5px;
  background: var(--red);
}
.hero h1, .subhero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.35rem, 3.9vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}
.hero h1 { max-width: 960px; }
.hero p { max-width: 650px; color: rgba(255,255,255,.78); font-size: 1.17rem; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: .78rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .12em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.button.primary { background: var(--red); color: var(--white); }
.button.primary:hover { background: var(--red-dark); box-shadow: 0 14px 30px rgba(237, 28, 36, .26); transform: translateY(-2px); }
.button.secondary { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.36); }
.button.secondary:hover { border-color: rgba(255,255,255,.72); transform: translateY(-2px); }
.button.full { width: 100%; }
.quick-contact {
  align-self: end;
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.32);
  border-left: 5px solid var(--red);
  border-radius: 4px;
  background: rgba(20,20,20,.42);
  backdrop-filter: blur(12px);
}
.quick-contact span { display: block; color: rgba(255,255,255,.72); font-size: .8rem; }
.quick-contact a { display: block; margin: 2px 0 14px; color: var(--white); font-weight: 800; text-decoration: none; }

.section { padding: 82px 0; }
.intro-band {
  background:
    linear-gradient(135deg, rgba(237, 28, 36, .08), transparent 32%),
    var(--paper-warm);
  border-bottom: 1px solid rgba(23, 23, 23, .1);
}
.intro-grid, .cta-grid, .content-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  align-items: start;
}
h2 { margin: 0 0 14px; font-size: clamp(1.65rem, 3.1vw, 2.55rem); line-height: 1.08; letter-spacing: 0; }
h3 { margin: 0 0 10px; font-size: 1.2rem; line-height: 1.2; }
p { color: var(--muted); }
.hero .hero-copy p { color: rgba(255,255,255,.78); }
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-strip div, .feature, .info-panel, .product-card, .contact-card, .contact-form, .info-list article, .steps article {
  background: var(--white);
  border: 1px solid rgba(23, 23, 23, .12);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.feature:hover, .product-card:hover, .info-list article:hover, .steps article:hover {
  transform: translateY(-5px);
  border-color: rgba(237, 28, 36, .38);
  box-shadow: var(--shadow), var(--hard-shadow);
}
.stat-strip div {
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.stat-strip div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--red);
}
.stat-strip strong { display: block; font-size: 2rem; color: var(--red-dark); }
.stat-strip span { color: var(--muted); font-weight: 650; }
.feature-grid, .product-grid, .steps, .info-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-grid {
  grid-template-columns: minmax(0, 1fr);
}
.feature { overflow: hidden; position: relative; }
.feature::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 58px;
  height: 5px;
  background: var(--red);
}
.feature h3, .feature p, .feature a { margin-left: 20px; margin-right: 20px; }
.feature a { display: inline-block; margin-bottom: 22px; color: var(--red-dark); font-weight: 800; text-decoration: none; }
.feature-image {
  min-height: 210px;
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  transition: transform .55s ease;
  filter: saturate(.9) contrast(1.04);
}
.feature:hover .feature-image { transform: scale(1.035); }
.image-products { background-image: url("assets/armeringsstol-situasjon.jpg"); }
.image-recycle { background-image: url("https://images.unsplash.com/photo-1532996122724-e3c354a0b15b?auto=format&fit=crop&w=900&q=70"); }
.image-takst { background-image: url("assets/takstlokk-produkt.jpg"); }
.cta-band {
  background:
    linear-gradient(120deg, rgba(237, 28, 36, .12), transparent 34%),
    linear-gradient(90deg, var(--paper-warm), #eceee9);
  color: var(--ink);
}
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--muted); }
.cta-grid { align-items: center; grid-template-columns: 1fr auto; }

.subhero {
  min-height: 0;
  height: 360px;
  padding: 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, .94), rgba(17, 17, 17, .72)),
    url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1600&q=70") center / cover;
  display: flex;
  align-items: center;
  border-bottom: 4px solid var(--red);
}
.page[data-page="om-oss"] .subhero {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, .94), rgba(17, 17, 17, .58)),
    url("assets/team-production.jpg") center 42% / cover;
}
.page[data-page="kontakt"] .subhero {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, .94), rgba(17, 17, 17, .54)),
    url("assets/fabrikken.jpg") center 52% / cover;
}
.takst-subhero {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, .94), rgba(17, 17, 17, .64)),
    url("assets/takstlokk-produkt.jpg") center 58% / cover;
}
.prose { font-size: 1.08rem; }
.prose p { max-width: 780px; }
.prose h3 { font-size: 1.18rem; margin: 0 0 10px; }
.terms-section { margin-top: 26px; }
.terms-section p { margin: 0 0 12px; }
.info-panel { padding: 28px; }
.info-panel ul { margin: 0; padding-left: 20px; color: var(--muted); }
.info-panel li + li { margin-top: 10px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter {
  border: 1px solid rgba(23, 23, 23, .14);
  background: var(--paper-warm);
  color: var(--muted);
  min-height: 42px;
  padding: 0 15px;
  border-radius: 4px;
  font-weight: 760;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.filter.active { background: var(--red); border-color: var(--red); color: var(--white); }
.filter:hover { transform: translateY(-2px); }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-visual {
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(237, 28, 36, .08), transparent 30%),
    linear-gradient(90deg, rgba(23, 23, 23, .04) 1px, transparent 1px) 0 0 / 18px 18px,
    #eef1ed;
  position: relative;
  overflow: hidden;
}
.product-visual img {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: contain;
  object-position: center;
}
.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.55) 48%, transparent 58%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.product-card:hover .product-visual::after { transform: translateX(120%); }
.product-body { padding: 22px; flex: 1; }
.tag {
  display: inline-flex;
  color: var(--red-dark);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-bottom: 2px solid var(--red);
  margin-bottom: 10px;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.product-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
  min-width: 0;
  table-layout: fixed;
}
.product-card th, .product-card td {
  padding: 8px 4px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}
.product-card thead th { border-top: 0; }
.product-card th { color: var(--muted); font-weight: 800; }
.product-card th:nth-child(1), .product-card td:nth-child(1) { width: 13%; }
.product-card th:nth-child(2), .product-card td:nth-child(2) { width: 28%; }
.product-card th:nth-child(3), .product-card td:nth-child(3) { width: 15%; }
.product-card th:nth-child(4), .product-card td:nth-child(4) { width: 15%; }
.product-card th:nth-child(5), .product-card td:nth-child(5) { width: 13%; }
.product-card th:nth-child(6), .product-card td:nth-child(6) { width: 16%; }
.product-card th:nth-child(7), .product-card td:nth-child(7) { width: 18%; }

.spec-list { display: grid; gap: 12px; margin-top: 24px; }
.spec-list div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.spec-list strong { color: var(--ink); }
.spec-list span { color: var(--muted); }
.steps { margin-top: 44px; }
.steps article { padding: 24px; }
.steps img {
  width: calc(100% + 48px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin: -24px -24px 22px;
  border-radius: 4px 4px 0 0;
}
.steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-weight: 850;
}
.info-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-list article { padding: 26px; }
.info-list h2 { font-size: 1.35rem; }

.contact-grid { grid-template-columns: .82fr 1.18fr; }
.contact-card, .contact-form { padding: 28px; }
dl { margin: 24px 0 0; }
dt { color: var(--muted); font-size: .83rem; font-weight: 800; text-transform: uppercase; }
dd { margin: 4px 0 18px; font-size: 1.12rem; font-weight: 760; }
.contact-form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: var(--ink); font-weight: 760; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
  background: #fbfcfb;
  color: var(--ink);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(237, 28, 36, .12);
  background: var(--white);
}
textarea { resize: vertical; }
.honeypot { display: none; }
.form-note { margin: 0; font-size: .88rem; }

.site-footer {
  padding: 38px 0;
  background:
    linear-gradient(90deg, rgba(237, 28, 36, .18), transparent 38%),
    #171717;
  color: var(--white);
  border-top: 4px solid var(--red);
}
.site-footer p { color: rgba(255,255,255,.65); margin: 6px 0 0; }
.site-footer .copyright { color: rgba(255,255,255,.48); font-size: .9rem; margin-top: 14px; }
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-grid a { display: block; color: var(--white); text-decoration: none; font-weight: 760; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.product-card.reveal {
  transform: translateY(18px) scale(.985);
}
.product-card.reveal.visible {
  transform: translateY(0) scale(1);
}

@keyframes heroDrift {
  from { transform: scale(1.05) translate3d(-8px, -4px, 0); }
  to { transform: scale(1.09) translate3d(10px, 6px, 0); }
}

@media (max-width: 880px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 68px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    background: var(--white);
    padding: 10px 12px;
    border-radius: 4px;
    color: var(--ink);
    font-weight: 800;
  }
  .hamburger { display: flex; flex-direction: column; gap: 3px; }
  .hamburger span { display: block; width: 16px; height: 2px; background: var(--ink); }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .hero-grid, .intro-grid, .content-grid, .contact-grid, .cta-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid { min-height: auto; padding: 78px 0 54px; gap: 28px; }
  .quick-contact { align-self: stretch; margin: 0; }
  .stat-strip, .feature-grid, .product-grid, .steps, .info-list { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .subhero { height: 320px; padding: 0; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .brand-mark { width: 42px; height: 42px; }
  .brand strong { font-size: .9rem; }
  .brand small { font-size: .78rem; }
  .hero h1, .subhero h1 { font-size: 2.35rem; }
  .subhero { height: 300px; }
  .hero-actions, .button { width: 100%; }
  .spec-list div { grid-template-columns: 1fr; gap: 4px; }
}

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