/* ==========================================================================
   Bacalanor — West Norway AS  ·  Rev 3 "Combo"
   Rev 2 structure (airy alternating blocks, hamburger overlay, product subpages)
   + Rev 1 identity: modern Archivo type, DARK deep-blue theme,
   white customer logos on dark. Red kept as a whisper accent.
   ========================================================================== */

:root {
  /* Old Money v2 — Midnight Blue base, Oxford Navy raised, ecru text, burnt-sienna accent */
  --navy-950: #0B132B;   /* page background — Midnight Blue */
  --navy-900: #0b1730;   /* footer / hero / page-hero */
  --navy-850: #0c1c39;   /* alt sections */
  --navy-800: #002147;   /* cards / raised — Oxford Navy */
  --navy-700: #123a5c;
  --steel-500: #4a6a8f;
  --steel-300: #a6b6c9;  /* eyebrow labels — muted steel */

  --line:     rgba(244, 241, 234, 0.11);
  --line-strong: rgba(244, 241, 234, 0.20);

  --paper:  #F4F1EA;     /* primary text — Ecru / warm parchment */
  --soft:   #d7d2c6;     /* soft ecru */
  --muted:  #93968f;     /* muted warm grey */

  --red:    #9E2A2B;     /* Burnt Sienna — discreet accent only */

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--soft);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--paper);
  margin: 0;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--paper); font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(5rem, 10vw, 9rem); }
.section--mist { background: var(--navy-850); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--steel-300); margin: 0 0 1.3rem; display: inline-flex; align-items: center; gap: 0.7rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); display: inline-block; }

.display { font-size: clamp(2.6rem, 6vw, 5rem); text-transform: uppercase; letter-spacing: -0.01em; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.4rem); text-transform: uppercase; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--soft); max-width: 54ch; }

/* Pills / links */
.pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.95rem 1.8rem; border-radius: 999px; cursor: pointer;
  background: var(--paper); color: var(--navy-900); border: 1.5px solid var(--paper);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pill:hover { transform: scale(1.035); background: #F4F1EA; border-color: #F4F1EA; }
.pill--light { background: #F4F1EA; color: var(--navy-900); border-color: #F4F1EA; }
.pill--ghost { background: transparent; color: var(--paper); border-color: var(--line-strong); }
.pill--ghost:hover { background: #F4F1EA; color: var(--navy-900); border-color: #F4F1EA; }
.arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-300);
}
.arrow span { transition: transform 0.3s var(--ease); }
.arrow:hover { color: var(--paper); }
.arrow:hover span { transform: translateX(6px); }

/* Media backgrounds
   Rev 9-2: three photographs are in play until new photography is shot —
   hero_seafood.jpg, Generisk_Hav.jpg and Klippfisk.jpg. Blocks sharing a file
   use different crops (background-position), so they read as separate images. */
.media { position: relative; background-color: var(--navy-800); background-size: cover; background-position: center; background-repeat: no-repeat; }
.media--seafood { background-image: url("../Bakgrunnsbilder/hero_seafood.jpg"); background-position: center 42%; }
.media--sea { background-image: url("../Bakgrunnsbilder/Generisk_Hav.jpg"); background-position: 18% 60%; }
.media--klippfisk { background-image: url("../Bakgrunnsbilder/Klippfisk.jpg"); background-position: 46% 50%; }
.media--boxes { background-image: url("../Bakgrunnsbilder/hero_seafood.jpg"); background-size: auto 190%; background-position: 47% 84%; }

/* Disclosure label for the two AI-generated stand-in images (Generisk_Hav,
   Klippfisk). Kept as an overlay rather than burned into the file, since the
   blocks crop the photograph hard. Delete the `.img-note` markup from the
   three blocks once the real photography replaces them. */
/* Soft corner vignette so the label stays legible over bright water/salt. */
.media:has(.img-note)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(115% 85% at 100% 100%, rgba(11, 19, 43, 0.66) 0%, rgba(11, 19, 43, 0.3) 42%, rgba(11, 19, 43, 0) 70%);
}
.img-note {
  position: absolute; right: clamp(0.7rem, 2vw, 1.15rem); bottom: clamp(0.6rem, 2vw, 0.95rem);
  margin: 0; z-index: 2; pointer-events: none; text-align: right; max-width: 80%;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.58rem; letter-spacing: 0.17em; text-transform: uppercase; line-height: 1.5;
  color: rgba(244, 241, 234, 0.66); text-shadow: 0 1px 7px rgba(0, 0, 0, 0.6);
}
.img-note span {
  display: block; font-family: var(--font-body); font-style: italic; font-weight: 400;
  font-size: 0.62rem; letter-spacing: 0.01em; text-transform: none;
  color: rgba(244, 241, 234, 0.5);
}

/* ==========================================================================
   Header + hamburger
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 90;
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
/* -webkit- prefix: Safari only dropped it in version 18, so without it older
   iPhones get a flat 90% navy bar and the content behind reads through. */
.site-header.is-solid { background: rgba(11, 19, 43, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; height: 100%; }
/* Header logo: crisp shield (always visible) + a "West-Norway AS" wordmark that
   FADES in once the header sticks (is-solid). The wordmark is a real italic text
   field, not part of the image. */
.brand__logo { display: flex; align-items: center; gap: 0.62rem; height: 44px; }
.brand__shield { height: 44px; width: auto; display: block; }
.brand__wordmark {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.005em; white-space: nowrap; color: var(--paper);
  opacity: 0; transition: opacity 0.6s var(--ease-soft);
}
.site-header.is-solid .brand__wordmark { opacity: 1; }
/* Subpages: always show the wordmark (fade is front-page only) */
body.is-subpage .brand__wordmark { opacity: 1; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 0.7rem; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #F4F1EA; padding: 0.5rem 0;
}
.menu-btn__lines { display: inline-block; width: 26px; }
.menu-btn__lines span { display: block; height: 2px; background: #F4F1EA; border-radius: 2px; transition: transform 0.3s var(--ease); }
.menu-btn__lines span + span { margin-top: 6px; }
/* "Menu" label fades in with the sticky header (like the West-Norway wordmark);
   on the hero top only the icon shows, balancing the lone shield on the left. */
.menu-btn__label { opacity: 0; transition: opacity 0.6s var(--ease-soft); }
.site-header.is-solid .menu-btn__label { opacity: 0.9; }
body.is-subpage .menu-btn__label { opacity: 0.9; }

/* ==========================================================================
   Full-screen menu overlay
   ========================================================================== */
.menu {
  position: fixed; inset: 0; z-index: 100; background: var(--navy-900); color: #F4F1EA;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.menu__top .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.menu__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.06em; text-transform: uppercase; color: #F4F1EA; }
.menu-close { background: none; border: 0; color: #F4F1EA; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.6rem; }
.menu-close .x { position: relative; width: 22px; height: 22px; display: inline-block; }
.menu-close .x::before, .menu-close .x::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: #F4F1EA; }
.menu-close .x::before { transform: rotate(45deg); }
.menu-close .x::after { transform: rotate(-45deg); }

.menu__body { flex: 1; display: flex; align-items: center; }
.menu__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; width: 100%; }
.menu__nav { display: flex; flex-direction: column; gap: 0.3rem; }
.menu__nav a {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5.5vw, 4rem);
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.16; color: rgba(244,241,234,0.9); width: max-content;
  opacity: 0; transform: translateY(14px); transition: color 0.3s var(--ease), opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.menu__nav a:hover { color: #F4F1EA; }
.menu__nav a::after { content: ""; display: block; height: 2px; width: 0; background: var(--red); transition: width 0.35s var(--ease); }
.menu__nav a:hover::after { width: 100%; }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: 0.10s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: 0.16s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: 0.22s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: 0.28s; }
.menu__aside { border-left: 1px solid var(--line); padding-left: 3rem; color: rgba(244,241,234,0.7); }
.menu__aside h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel-300); margin: 0 0 1rem; }
.menu__aside a { color: rgba(244,241,234,0.85); }
.menu__aside a:hover { color: #F4F1EA; }
.menu__aside p { margin-bottom: 1.4rem; line-height: 1.9; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; color: #F4F1EA; overflow: hidden; }
.hero__media { position: absolute; inset: 0; animation: heroZoom 26s var(--ease) infinite alternate; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,19,43,0.60) 0%, rgba(11,19,43,0.38) 26%, rgba(11,19,43,0.36) 48%, rgba(11,19,43,0.54) 72%, rgba(11,19,43,0.96) 100%); }
/* Discreet "Seafood from Norway" watermark, lower-right of the hero */
.hero__seal { position: absolute; right: clamp(1.4rem, 4vw, 3.2rem); bottom: clamp(4.2rem, 8vw, 6rem); width: clamp(96px, 12vw, 152px); height: auto; opacity: 0.5; z-index: 2; pointer-events: none; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35)); }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__inner { position: relative; z-index: 2; padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem; }
.hero h1 { font-size: clamp(2.7rem, 7.5vw, 6rem); color: #F4F1EA; font-weight: 900; text-transform: uppercase; letter-spacing: -0.015em; text-shadow: 0 2px 40px rgba(0,0,0,0.4); max-width: 18ch; margin-inline: auto; }
.hero__logo { display: block; width: auto; height: clamp(74px, 12vw, 148px); max-width: min(90vw, 640px); object-fit: contain; margin: 0 auto clamp(1.4rem, 3vw, 2.4rem); filter: drop-shadow(0 8px 38px rgba(0,0,0,0.5)); }
.hero__shield { display: block; width: auto; height: clamp(104px, 15vw, 188px); margin: 0 auto clamp(1rem, 2.4vw, 1.7rem); filter: drop-shadow(0 8px 38px rgba(0,0,0,0.5)); }
.hero__brand { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(1.5rem, 3.6vw, 2.8rem); line-height: 1.05; color: #F4F1EA; text-shadow: 0 2px 30px rgba(0,0,0,0.45); margin: 0; }
.hero__sub { margin: 1.6rem auto 0; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: rgba(244,241,234,0.92); }
.hero__actions { margin-top: 2.4rem; }
.hero__scroll { position: absolute; left: 50%; transform: translateX(-50%); bottom: 2rem; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(244,241,234,0.7); display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.hero__scroll::after { content: ""; width: 2px; height: 40px; background: linear-gradient(var(--red), transparent); animation: scrollpulse 2s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(0.6); opacity: 0.5; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } }

/* ==========================================================================
   Alternating split blocks
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.split__body { max-width: 46ch; }
.split__body h2 { margin-bottom: 1.4rem; }
.split__body p { color: var(--soft); }
.split__body .pill, .split__body .arrow { margin-top: 1.8rem; }

/* ==========================================================================
   Product categories / selection cards
   ========================================================================== */
.cats__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.2rem); }
.cat { display: flex; flex-direction: column; color: inherit; }
.cat h3 { font-size: 1.55rem; text-transform: uppercase; letter-spacing: -0.005em; margin-bottom: 0.5rem; transition: color 0.25s var(--ease); }
a.cat:hover h3 { color: var(--steel-300); }
.cat p { font-size: 0.98rem; color: var(--soft); margin-bottom: 1rem; }
.cat .arrow { margin-top: auto; }
.cat__count { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }

/* Rev 9-2: typographic category cards — no photography until the new
   product shoot is done. */
.cat--text { border: 1px solid var(--line); border-top: 2px solid var(--red); background: var(--navy-800); padding: clamp(1.6rem, 3vw, 2.3rem); transition: transform 0.5s var(--ease-soft), border-color 0.35s var(--ease); }
.cat--text:hover { border-color: var(--line-strong); border-top-color: var(--red); }
.cat .cat__no { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1; letter-spacing: -0.02em; color: rgba(244, 241, 234, 0.16); margin: 0 0 1.2rem; transition: color 0.35s var(--ease); }
.cat--text:hover .cat__no { color: rgba(244, 241, 234, 0.3); }

/* ==========================================================================
   Customers — white logos on dark
   ========================================================================== */
.customers { text-align: center; }
.customers h2 { margin: 0 auto 3rem; max-width: 22ch; }
.logo-row { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; justify-items: center; gap: clamp(2rem, 4vw, 3.4rem) clamp(1.5rem, 4vw, 3.4rem); max-width: 860px; margin-inline: auto; }
.logo-row img { max-height: 42px; max-width: 160px; width: auto; height: auto; filter: brightness(0) invert(1); opacity: 0.88; transition: opacity 0.3s var(--ease); }
@media (max-width: 620px) { .logo-row { grid-template-columns: repeat(2, 1fr); } }
.logo-row img:hover { opacity: 1; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__intro h2 { margin-bottom: 1.3rem; }
.contact__cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.offices { display: grid; gap: 1.25rem; }
.office { border: 1px solid var(--line); border-left: 3px solid var(--paper); padding: 1.7rem 2rem; background: var(--navy-800); }
.office__country { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-300); margin-bottom: 0.6rem; }
.office h3 { font-size: 1.35rem; text-transform: uppercase; margin-bottom: 0.5rem; }
.office address { font-style: normal; color: var(--soft); line-height: 1.85; }
.office a { color: var(--paper); border-bottom: 1px solid var(--line-strong); transition: border-color 0.25s; }
.office a:hover { border-color: var(--paper); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #070d1e; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: clamp(3.5rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.8rem, 3vw, 3rem); align-items: start; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.72rem; margin-bottom: 0; }
.footer-col address { margin: 0 0 0.7rem; }
.footer-brand .footer-shield { height: 46px; width: auto; display: block; }
.footer-brand .footer-wordmark { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 0.92rem; letter-spacing: 0.005em; color: var(--paper); white-space: nowrap; }
.footer-col h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: #F4F1EA; margin-bottom: 1.1rem; }
.footer-col a { display: block; padding: 0.32rem 0; color: var(--muted); transition: color 0.25s; }
.footer-col a:hover { color: #F4F1EA; }
.site-footer address { font-style: normal; line-height: 1.9; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.6rem; font-size: 0.82rem; color: rgba(244,241,234,0.45); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__media, .hero__scroll::after { animation: none; }
  .menu__nav a { opacity: 1; transform: none; }
}

/* ==========================================================================
   Product subpages (catalog)
   ========================================================================== */
.page-hero { background: var(--navy-900); color: #F4F1EA; border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero .eyebrow { color: var(--steel-300); }
.page-hero h1 { color: #F4F1EA; font-size: clamp(2.4rem, 5.5vw, 4.2rem); text-transform: uppercase; letter-spacing: -0.01em; max-width: 20ch; }
.page-hero p { color: rgba(244,241,234,0.82); max-width: 62ch; margin-top: 1.1rem; }
.page-hero__back { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(244,241,234,0.7); font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.4rem; }
.page-hero__back span { transition: transform 0.3s var(--ease); }
.page-hero__back:hover { color: #F4F1EA; }
.page-hero__back:hover span { transform: translateX(-4px); }

/* Sticky category quick-nav band (product subpages) */
.cat-nav { position: sticky; top: var(--header-h); z-index: 80; background: rgba(11, 19, 43, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cat-nav .wrap { display: flex; gap: clamp(1.2rem, 4vw, 3rem); align-items: center; overflow-x: auto; scrollbar-width: none; }
.cat-nav .wrap::-webkit-scrollbar { display: none; }
.cat-nav__link { position: relative; font-family: var(--font-display); font-weight: 700; font-size: clamp(0.72rem, 1.4vw, 0.82rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 1.05rem 0; white-space: nowrap; transition: color 0.3s var(--ease); }
.cat-nav__link:hover { color: var(--paper); }
.cat-nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-soft); }
.cat-nav__link:hover::after, .cat-nav__link.is-active::after { transform: scaleX(1); }
.cat-nav__link.is-active { color: var(--paper); }

/* Rev 9-2: product rows carry no photography — the name sits in the left
   column, the specification in the right. */
.catalog { display: flex; flex-direction: column; }
.product { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(2.2rem, 4vw, 3.4rem); border-bottom: 1px solid var(--line); }
.product:last-child { border-bottom: 0; }
/* Pinned clear of the fixed header AND the sticky category bar below it. */
.product__head { position: sticky; top: calc(var(--header-h) + 7rem); }
.product__head::before { content: ""; display: block; width: 34px; height: 2px; background: var(--red); margin-bottom: 1.1rem; }
.product__head h3 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); font-weight: 700; margin-bottom: 0.35rem; }
.product__lead { color: var(--steel-300); font-family: var(--font-display); font-weight: 500; font-size: 1rem; margin: 0; }
.spec-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.6rem; margin: 0; }
.spec-list dt { font-family: var(--font-display); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 0.18rem; }
.spec-list dd { margin: 0; color: var(--soft); font-size: 0.95rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: -1; }
  .split__media { aspect-ratio: 16/10; }
  .cats { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .menu__grid { grid-template-columns: 1fr; }
  .menu__aside { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 2rem; margin-top: 0.5rem; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; gap: 1.4rem; }
  .product__head { position: static; }
  .spec-list { grid-template-columns: 1fr; gap: 0.1rem; }
  .spec-list dt { margin-top: 0.7rem; }
}
@media (max-width: 560px) {
  .menu-btn__label { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-bottom .wrap { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Rev 3 — subtle, elegant motion (discreet)
   ========================================================================== */
:root { --ease-soft: cubic-bezier(0.16, 1, 0.3, 1); }

/* Anchor scrolling lands just below the fixed header */
html { scroll-padding-top: calc(var(--header-h) + 16px); }

/* Softer, gently staggered scroll reveals */
.reveal {
  transform: translateY(16px);
  transition: opacity 1.3s var(--ease-soft), transform 1.3s var(--ease-soft);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

/* Header eases its state changes */
.site-header { transition: background 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft); }

/* Gentle hero content load-in (staggered) */
.hero__inner > * { opacity: 0; transform: translateY(18px); animation: heroIn 1.4s var(--ease-soft) forwards; }
.hero__inner > *:nth-child(1) { animation-delay: 0.20s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.42s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.64s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.86s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Barely-there page fade-in */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn 0.55s ease both; }

/* A hint of lift on the selection cards */
.cat { transition: transform 0.5s var(--ease-soft); }
.cat:hover { transform: translateY(-4px); }

/* Slightly smoother, calmer pill/arrow motion */
.pill, .arrow span, .page-hero__back span { transition-timing-function: var(--ease-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-padding-top: 0; }
  body, .hero__inner > * { animation: none; opacity: 1; transform: none; }
  .cat:hover { transform: none; }
}

/* ==========================================================================
   Rev 3 — menu as a slide-down TOP RIBBON (overrides the full-screen overlay)
   ========================================================================== */
body.menu-open { overflow: auto; }               /* no scroll-lock for a ribbon */

.menu {
  inset: 0 0 auto 0;                              /* top band, height = content */
  display: block; opacity: 1; visibility: hidden;
  transform: translateY(-100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.65);
  transition: transform 0.82s var(--ease-soft), visibility 0s linear 0.82s;
}
.menu.is-open {
  transform: translateY(0); visibility: visible;
  transition: transform 0.82s var(--ease-soft);
}

.menu__body { display: block; padding-top: 0.25rem; padding-bottom: clamp(1.8rem, 3.2vw, 2.6rem); }
.menu__grid { display: block; }                    /* single column: nav row, then contact strip */
.menu__nav {
  flex-direction: row; flex-wrap: nowrap; align-items: baseline;
  justify-content: flex-start; gap: clamp(1.8rem, 4.5vw, 4rem);
}
.menu__nav a { font-size: 1.2rem; line-height: 1; white-space: nowrap; }
.menu__aside {
  border-left: 0; border-top: 1px solid var(--line);
  margin-top: clamp(1.3rem, 3vw, 2rem); padding: clamp(1.1rem, 2.4vw, 1.6rem) 0 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem clamp(1.6rem, 4vw, 3rem);
}
.menu__aside h4 { margin: 0; }
.menu__aside p { margin: 0; line-height: 1.6; }

/* Fade + slide-in of links and contact once the ribbon has landed */
.menu__nav a, .menu__aside > * {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.6s var(--ease-soft), transform 0.6s var(--ease-soft), color 0.3s var(--ease);
}
.menu.is-open .menu__nav a, .menu.is-open .menu__aside > * { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: 0.30s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: 0.40s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: 0.50s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: 0.60s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: 0.70s; }
.menu.is-open .menu__aside > *:nth-child(1) { transition-delay: 0.44s; }
.menu.is-open .menu__aside > *:nth-child(2) { transition-delay: 0.52s; }
.menu.is-open .menu__aside > *:nth-child(3) { transition-delay: 0.60s; }
.menu.is-open .menu__aside > *:nth-child(4) { transition-delay: 0.68s; }

@media (max-width: 640px) {
  .menu__nav { flex-wrap: wrap; gap: 1rem 2rem; }
  .menu__nav a { font-size: 1.4rem; }
  .menu__aside { flex-direction: column; gap: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .menu, .menu.is-open { transition: none; }
  .menu__nav a, .menu__aside > * { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   About page — group companies
   ========================================================================== */
.group-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.group-card { border: 1px solid var(--line); border-top: 2px solid var(--paper); background: var(--navy-800); padding: clamp(1.6rem, 3vw, 2.3rem); display: flex; flex-direction: column; }
.group-card__role { font-family: var(--font-display); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-300); margin-bottom: 0.7rem; }
.group-card h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); text-transform: uppercase; letter-spacing: -0.005em; margin-bottom: 0.7rem; }
.group-card p { color: var(--soft); font-size: 0.97rem; }
.about-cta { text-align: center; }
.about-cta h2 { margin: 0 auto 1rem; }
.about-cta p { margin: 0 auto 2rem; max-width: 46ch; }
.about-cta .contact__cta { justify-content: center; }
@media (max-width: 700px) { .group-grid { grid-template-columns: 1fr; } }

/* Group cards as links */
a.group-card { color: inherit; text-decoration: none; transition: border-color 0.35s var(--ease), transform 0.35s var(--ease); }
a.group-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.group-card h3 { transition: color 0.25s var(--ease); }
a.group-card:hover h3 { color: var(--steel-300); }
.group-card .arrow { margin-top: auto; padding-top: 1.4rem; text-transform: none; letter-spacing: 0.02em; }

/* Group card logos (uniform white monochrome) */
.group-card__logo { height: 42px; margin-bottom: 1.2rem; display: flex; align-items: center; }
.group-card__logo img { max-height: 42px; max-width: 210px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
/* West Norway's own entry: new crest as a monochrome knockout (white removed) + an
   italic "West-Norway AS" wordmark, to match the lockup used in the header/footer. */
.group-card__logo--wn { gap: 0.55rem; }
.group-card__logo--wn .group-card__crest { max-height: 42px; }
.group-card__wordmark { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1rem; letter-spacing: 0.005em; white-space: nowrap; color: rgba(244,241,234,0.92); }

/* Group in numbers */
.gstats-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.gstats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gstat { padding: clamp(1.6rem, 3vw, 2.4rem) 1.4rem; border-right: 1px solid var(--line); }
.gstat:last-child { border-right: 0; }
.gstat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3.1rem); color: #F4F1EA; line-height: 1; letter-spacing: -0.01em; }
.gstat__label { margin-top: 0.7rem; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 700px) {
  .gstats { grid-template-columns: 1fr 1fr; }
  .gstat { border-bottom: 1px solid var(--line); }
  .gstat:nth-child(odd) { border-right: 1px solid var(--line); }
}

/* ==========================================================================
   Contact — general details
   Rev 9-2: the named key-contact cards are gone; the page carries the
   company's general contact details until the team section is rebuilt.
   ========================================================================== */
.inline-link { color: var(--paper); border-bottom: 1px solid var(--line-strong); transition: border-color 0.25s var(--ease); }
.inline-link:hover { border-color: var(--red); }
.offices--wide { grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.2rem); }
.detail a { color: var(--paper); border-bottom: 1px solid var(--line-strong); transition: border-color 0.25s var(--ease); }
.detail a:hover { border-color: var(--red); }
.detail address { font-style: normal; color: var(--soft); font-size: 0.96rem; line-height: 1.85; }
@media (max-width: 760px) {
  .offices--wide { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Sustainability — feature/principle cards
   ========================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.feature { border: 1px solid var(--line); border-top: 2px solid var(--paper); background: var(--navy-800); padding: clamp(1.5rem, 3vw, 2.1rem); }
.feature__label { font-family: var(--font-display); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-300); margin: 0 0 0.7rem; }
.feature h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); text-transform: uppercase; letter-spacing: -0.005em; margin-bottom: 0.6rem; }
.feature p { color: var(--soft); font-size: 0.96rem; margin: 0; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Rev 9-2 — light rules
   Set on <body> for the product and contact pages, or on a single section
   (the front-page product ranges): the eyebrow rule and the matching
   card/product rules read ecru instead of burnt sienna.
   ========================================================================== */
.rules-light .eyebrow::before,
.rules-light .product__head::before { background: var(--paper); }
.rules-light .cat--text { border-top-color: var(--paper); }
.rules-light .cat--text:hover { border-top-color: var(--paper); }
