/* =====================================================
   Tecomec Nordic AB — Design System
   2026 — DM Sans
   ===================================================== */

/* ---------- Self-hosted DM Sans (GDPR: no third-party font requests) ---------- */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --primary-accent: #E41F18;
  --primary-accent-dark: #C2150F;
  --success: #188546;        /* WCAG AA: 4.69:1 on #fff */
  --text-dark: #1A1A1A;
  --text-body: #222222;
  --bg-main: #FFFFFF;
  --bg-section: #F4F4F4;
  --bg-dark: #131313;
  --bg-dark-2: #1c1c1c;
  --border-muted: #666E76;   /* WCAG AA: 4.71:1 on #F4F4F4, 5.18:1 on #fff */
  --border-light: #E6E6E6;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,.06);
  --shadow-md: 0 14px 40px rgba(0,0,0,.10);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.18);

  --header-h: 86px;
  --ease: cubic-bezier(.16,.84,.44,1);

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--bg-main);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { color: var(--text-dark); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.01; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text-dark); font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--primary-accent);
  margin-bottom: 1.1rem;
}
.eyebrow::before { display: none; }
.eyebrow.light { color: #fff; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-body); }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(44px, 6vw, 88px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section--gray { background: var(--bg-section); }
.section--dark { background: var(--bg-dark); color: #cfcfcf; }
.section--dark h1,.section--dark h2,.section--dark h3,.section--dark h4 { color: #fff; }
.section--dark strong { color: #fff; }
.section--dark .lead { color: rgba(255,255,255,.82); }
.section--dark p { color: #cfcfcf; }

.section-head { max-width: 760px; margin-bottom: clamp(26px, 3.5vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 100px;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--primary-accent); color: #fff; }
.btn--primary:hover { background: var(--primary-accent-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(228,31,24,.32); }
.btn--dark { background: var(--text-dark); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text-dark); border: 1.5px solid var(--border-light); }
.btn--ghost:hover { border-color: var(--text-dark); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--text-dark); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.btn--outline-light { background: transparent; color:#fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn--outline-light:hover { border-color:#fff; transform: translateY(-2px); }

/* text link with arrow */
.tlink {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--text-dark); font-size: .98rem;
}
.tlink svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.tlink:hover { color: var(--primary-accent); }
.tlink:hover svg { transform: translateX(4px); }

/* =====================================================
   Header
   ===================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s, height .4s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--border-light), var(--shadow-sm);
  height: 70px;
}
.header-inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand-logo { height: 30px; width: auto; transition: filter .4s, height .4s; }
/* Dual logo: purpose-made inverted logo over the dark hero,
   normal logo once the header turns white on scroll */
.brand-logo--solid { display: none; }
.brand-logo--inv { filter: none !important; }
.site-header.scrolled .brand-logo--inv { display: none; }
.site-header.scrolled .brand-logo--solid { display: block; }

.main-nav ul { display: flex; align-items: center; gap: 2.2rem; }
.main-nav a {
  font-weight: 600; font-size: .96rem; color: var(--text-dark);
  position: relative; padding-block: 6px; transition: color .25s;
}
.site-header:not(.scrolled):not(.solid) .main-nav a { color: #fff; }
.main-nav a::after {
  content:""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--primary-accent); transition: width .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-accent); }

.header-cta { display: flex; align-items: center; gap: 1.1rem; }

/* compact header CTA */
.btn--sm { padding: .6rem 1.15rem; font-size: .9rem; }
.header-cta .btn--primary {
  padding: .48rem .95rem; font-size: .82rem;
  box-shadow: 0 6px 18px rgba(228,31,24,.28);
}

/* language switch (flags) */
.lang-switch { display: flex; align-items: center; gap: 14px; }
.lang-switch .lang {
  width: 21px; height: 15px; display: block;
  opacity: .78; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.lang-switch .lang img { width: 21px; height: 15px; display: block; }
.lang-switch .lang picture { display: block; line-height: 0; }
.lang-switch .lang:hover { opacity: 1; transform: translateY(-1px); }
.lang-switch .lang.active { opacity: 1; }

/* dropdown */
.has-drop { position: relative; }
.has-drop > a::before { content:""; position:absolute; inset: 0 -10px -14px -10px; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: rgba(18,18,18,.3);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 12px; min-width: 250px; opacity: 0; visibility: hidden;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  border: 2px solid rgba(255,255,255,.4);
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 10px;
  font-size: .95rem; color: #fff !important;
}
.dropdown a span { font-weight: 400; font-size: .82rem; color: rgba(255,255,255,.62); }
.dropdown a::after { display: none; }
.dropdown a:hover { background: rgba(255,255,255,.12); color: #fff !important; }
/* business-area dropdown icons — white & small on the dark desktop dropdown */
.drop-icon { height: 34px; width: auto; display: block; align-self: flex-start; filter: brightness(0) invert(1); margin-bottom: 3px; }

/* hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 110; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text-dark); transition: .3s var(--ease); }
.site-header:not(.scrolled):not(.solid) .nav-toggle span { background: #fff; }
.nav-toggle span:nth-child(1){ top: 15px; }
.nav-toggle span:nth-child(2){ top: 21px; }
.nav-toggle span:nth-child(3){ top: 27px; }
body.nav-open .nav-toggle span { background: var(--text-dark); }
body.nav-open .nav-toggle span:nth-child(1){ top: 21px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3){ top: 21px; transform: rotate(-45deg); }

.nav-close { display: none; }
.nav-logo { display: none; }

@media (max-width: 1024px){
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  /* While the menu is open, drop the header's backdrop-filter — otherwise it
     becomes the containing block for the fixed menu and the menu mis-positions. */
  body.nav-open .site-header,
  body.nav-open .site-header.scrolled {
    -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; box-shadow: none;
  }
  .main-nav {
    position: fixed; inset: 0; background: #fff; padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
    transform: translateX(100%); overflow-y: auto; z-index: 105;
    /* hidden from keyboard + assistive tech while closed */
    visibility: hidden;
    transition: transform .42s var(--ease), visibility 0s linear .42s;
  }
  body.nav-open .main-nav {
    transform: translateX(0); visibility: visible;
    transition: transform .42s var(--ease), visibility 0s linear 0s;
  }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .main-nav > ul > li { width: 100%; border-bottom: 1px solid var(--border-light); }
  .main-nav a { display: block; padding: 18px 0; font-size: 1.25rem; color: var(--text-dark) !important; }
  .site-header:not(.scrolled):not(.solid) .main-nav a { color: var(--text-dark) !important; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: none; padding: 0 0 14px; min-width: 0; background: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* keep the dropdown in place on tap/hover instead of sliding it left */
  .has-drop:hover .dropdown { transform: none; }
  /* restore stacked title + description (the block display above would inline them) */
  .dropdown a { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; font-size: 1.05rem; }
  .dropdown a span { font-size: .9rem; color: var(--border-muted); }
  .dropdown a:hover { background: transparent; }
  /* show the animated red underline under sub-links too (hidden on desktop dropdown) */
  .dropdown a::after { display: block; bottom: -2px; }
  /* dedicated close (×) button — replaces the hamburger while the menu is open */
  body.nav-open .nav-toggle { display: none; }
  .nav-close {
    display: grid; place-items: center; position: absolute;
    top: 14px; right: var(--gutter); width: 46px; height: 46px;
    color: var(--text-dark); z-index: 106;
  }
  .nav-close svg { width: 28px; height: 28px; }
  /* on the white mobile menu the icons keep their original colours, a touch larger */
  .drop-icon { filter: none; height: 44px; }
  /* brand logo at the top of the mobile menu */
  .nav-logo { display: block; position: absolute; top: 20px; left: var(--gutter); z-index: 106; }
  .nav-logo img { height: 30px; width: auto; display: block; }
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--text-body); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: linear-gradient(120deg, #e6e9ec 0%, #f4f4f4 100%); }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media video { opacity: 1; transition: opacity .7s var(--ease); }
.hero__inner { max-width: 880px; padding-block: 120px; }
.hero h1 { color: var(--text-dark); margin-bottom: 1.4rem; line-height: 1.08; }
.hero .lead { color: var(--text-body); max-width: 640px; margin-bottom: 2.2rem; font-size: clamp(1.1rem,1.7vw,1.4rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --- hero: varumärkeslogotyper på en rad --------------------------- */
.hero__brands {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(22px, 3.4vw, 46px);
  margin-top: clamp(28px, 3.6vw, 46px);
}
.hero__brands a {
  display: block; line-height: 0;
  opacity: .78;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.hero__brands a:hover, .hero__brands a:focus-visible { opacity: 1; transform: translateY(-3px); }
.hero__brands img { width: auto; display: block; }
/* olika höjd per logotyp så att de väger optiskt lika (proportion 7.9 / 4.0 / 5.7) */
.hero__brands .b-mark img { height: clamp(15px, 1.9vw, 21px); }
.hero__brands .b-pnr  img { height: clamp(56px, 7vw, 78px); }
.hero__brands .b-tec  img { height: clamp(19px, 2.4vw, 26px); }
@media (max-width: 480px){
  .hero__brands { gap: 20px; }
}
/* Red hero CTA: blend its background with the bright video via multiply,
   while keeping the label rendered normally on top */
.hero .btn--primary { position: relative; background: transparent; }
.hero .btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--primary-accent); mix-blend-mode: multiply;
  transition: background .3s;
}
.hero .btn--primary:hover { background: transparent; }
.hero .btn--primary:hover::before { background: var(--primary-accent-dark); }
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--border-muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--border-muted), transparent); animation: scrolld 2s var(--ease) infinite; }
@keyframes scrolld { 0%{transform:scaleY(0);transform-origin:top} 45%{transform:scaleY(1);transform-origin:top} 55%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* page hero (interior) */
.page-hero {
  position: relative; padding-top: calc(var(--header-h) + 56px); padding-bottom: 64px;
  color: #fff; overflow: hidden;
}
.page-hero::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(100deg, rgba(10,10,10,.88), rgba(10,10,10,.45)); }
.page-hero__media { position:absolute; inset:0; z-index:-2; }
.page-hero__media img { width:100%; height:100%; object-fit: cover; }
.page-hero h1 { color:#fff; max-width: 880px; }
.page-hero .lead { color: rgba(255,255,255,.88); max-width: 640px; margin-top: 1.2rem; }
.breadcrumb { display:flex; gap:.5rem; align-items:center; font-size:.85rem; color: rgba(255,255,255,.7); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color:#fff; }
.breadcrumb span { color: rgba(255,255,255,.45); }

/* =====================================================
   Cards
   ===================================================== */
.card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card__media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.card__media img { width:100%; height:100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 28px 28px 30px; display:flex; flex-direction:column; gap: .7rem; flex: 1; }
/* Gemensam höjdruta: håller brödtexterna i linje oavsett logotypens form */
.card__logo { height: 84px; display: flex; align-items: center; margin-bottom: .4rem; }
.card__logo img { display: block; width: auto; max-width: 100%; }
.card__body h3 { margin-bottom: 2px; }
.card__body p { color: var(--text-body); font-size: .98rem; }
.card__foot { margin-top: auto; padding-top: 14px; }

/* business-area split feature */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px);
}
.feature.reverse .feature__media { order: 2; }
.feature__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5/4; }
.feature__media img { width:100%; height:100%; object-fit: cover; }
/* show the whole image (no crop) — keeps the rounded corners + a visible shadow */
.feature__media--fit { aspect-ratio: auto; overflow: visible; box-shadow: 0 14px 40px rgba(0,0,0,.22); }
.feature__media--fit img { height: auto; object-fit: contain; display: block; border-radius: var(--radius-lg); }
/* give the media column extra width so the image reads larger */
@media (min-width: 861px){
  .feature--wide-media { grid-template-columns: 1fr 1.55fr; gap: 10px; }
}
.feature__body h2 { margin-bottom: 1rem; }
@media (max-width: 860px){
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse .feature__media { order: 0; }
}

/* checklist */
.checklist { display: grid; gap: .7rem; margin-top: 1.3rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; font-size: 1rem; }
.checklist li::before {
  content:""; flex: 0 0 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: rgba(228,31,24,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E41F18' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
.checklist + p { margin-top: 1.1rem; }
/* Avslutande, sammanfattande stycke efter en punktlista */
/* Avdelningskontakter i kontaktkortet */
.dept-list { list-style: none; margin: -6px 0 18px; padding: 0 0 0 52px; display: grid; gap: 2px; }
.dept-list li {
  display: grid; gap: 1px; padding: 8px 0;
  border-top: 1px solid var(--border-light);
}
.dept-list li:first-child { border-top: 0; }
.dept__role { font-size: .82rem; color: var(--border-muted); }
.dept__mail { font-size: .95rem; font-weight: 500; word-break: break-word; }
@media (max-width: 520px) { .dept-list { padding-left: 0; } }

.closing-note {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-light);
  font-size: 1.05rem;
  color: var(--text-dark);
}
.section--dark .checklist li::before { background-color: rgba(228,31,24,.2); }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
@media (max-width:760px){ .stats { grid-template-columns: repeat(2,1fr); } }
.stat { }
.stat b { display:block; font-size: clamp(2.2rem,4vw,3.2rem); color: var(--text-dark); line-height: 1; letter-spacing: -.03em; }
.section--dark .stat b { color:#fff; }
.stat span { display:block; margin-top: .5rem; color: var(--border-muted); font-size: .92rem; font-weight: 600; letter-spacing:.02em; }
.section--dark .stat span { color: rgba(255,255,255,.6); }

/* icon feature small */
.ifeat { display:flex; flex-direction:column; gap:.8rem; }
.ifeat .ic {
  width: 56px; height: 56px; border-radius: 14px; display:grid; place-items:center;
  background: var(--bg-section); color: var(--primary-accent);
}
.section--dark .ifeat .ic { background: rgba(255,255,255,.07); }
.ifeat .ic svg { width: 26px; height: 26px; }
.ifeat h3 { font-size: 1.2rem; }
.ifeat p { font-size: .96rem; }

/* =====================================================
   Brand sections
   ===================================================== */
.brand-row { display:flex; align-items:center; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.brand-row .blogo { height: 46px; width:auto; }
.brand-pill { font-size:.74rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  padding: 6px 14px; border-radius: 100px; background: var(--bg-section); color: var(--border-muted); }

.logo-card {
  background:#fff; border:1px solid var(--border-light); border-radius: var(--radius);
  display:grid; place-items:center; padding: 40px; min-height: 150px; transition: .4s var(--ease);
}
.logo-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.logo-card img { max-height: 60px; width:auto; }

/* gallery */
.gallery { display:grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.gallery--5 { grid-template-columns: repeat(5,1fr); }
.gallery a, .gallery div { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.gallery img { width:100%; height:100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.07); }
@media (max-width: 700px){ .gallery { grid-template-columns: repeat(2,1fr); } }

/* =====================================================
   CTA band
   ===================================================== */
.cta-band { background: var(--primary-accent); color:#fff; border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px); text-align:center; position: relative; overflow: hidden; }
.cta-band h2 { color:#fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta-band .btn--light { color: var(--primary-accent); }

/* =====================================================
   Contact
   ===================================================== */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,72px); }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; } }
.info-block { display:flex; gap:1.1rem; padding: 22px 0; border-bottom: 1px solid var(--border-light); }
.info-block:last-child { border-bottom: none; }
.info-block .ic { flex:0 0 46px; height:46px; border-radius: 12px; display:grid; place-items:center;
  background: rgba(228,31,24,.08); color: var(--primary-accent); }
.info-block .ic svg { width: 22px; height:22px; }
.info-block h4 { margin-bottom: 3px; }
.info-block a:hover { color: var(--primary-accent); }

.form { display:grid; gap: 18px; }
.form .row { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width:560px){ .form .row { grid-template-columns: 1fr; } }
.field { display:flex; flex-direction: column; gap: 7px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text-dark); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--border-light); background: var(--bg-main); color: var(--text-body);
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary-accent); box-shadow: 0 0 0 4px rgba(228,31,24,.1);
}
.form-note { font-size: .82rem; color: var(--border-muted); }
.legal-note {
  font-size: .8rem; line-height: 1.55; color: var(--border-muted);
  background: var(--bg-section); border: 1px solid var(--border-light);
  border-radius: 12px; padding: 14px 16px;
}
/* required consent checkbox on the contact form */
.consent-check {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .85rem; line-height: 1.5; color: var(--text-body);
  background: var(--bg-section); border: 1px solid var(--border-light);
  border-radius: 12px; padding: 14px 16px; cursor: pointer;
}
.consent-check input {
  margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto;
  accent-color: var(--primary-accent); cursor: pointer;
}

.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border:1px solid var(--border-light); }
.map-embed iframe { width:100%; height: 100%; min-height: 320px; border:0; display:block; }

/* owner card */
.owner-card { background:#fff; border:1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: clamp(28px,4vw,44px); box-shadow: var(--shadow-sm); }
.owner-card .ologo { height: 30px; margin-bottom: 1.4rem; }

/* =====================================================
   Footer
   ===================================================== */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.62); padding-top: clamp(56px,7vw,90px); }
.footer-top { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 900px){ .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px){ .footer-top { grid-template-columns: 1fr; } }
.footer-brand .flogo { height: 30px; margin-bottom: 1.3rem; }
.footer-brand p { font-size: .95rem; max-width: 320px; }
.footer-col h2, .footer-col .footer-h { color:#fff; font-size: .82rem; letter-spacing:.14em; text-transform: uppercase; margin-bottom: 1.2rem; font-weight:700; }
.footer-col ul { display:grid; gap: .7rem; }
.footer-col a { font-size: .95rem; transition: color .25s; }
.footer-col a:hover { color:#fff; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap: wrap;
  padding-block: 26px; font-size: .85rem; }
.footer-social { display:flex; gap: 12px; }
.footer-social a { width:40px; height:40px; border-radius: 50%; display:grid; place-items:center;
  background: rgba(255,255,255,.08); color:#fff; transition: .3s var(--ease); }
.footer-social a:hover { background: var(--primary-accent); transform: translateY(-3px); }
.footer-social svg { width: 18px; height:18px; }

/* =====================================================
   Scroll reveal
   ===================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; transition:none; } }

/* misc helpers */
.text-accent { color: var(--primary-accent); }
.mb-0 { margin-bottom: 0; }
.maxw-prose { max-width: 720px; }
.divider { height:1px; background: var(--border-light); border:0; margin-block: clamp(32px,4vw,56px); }
.pill-list { display:flex; flex-wrap:wrap; gap:10px; margin-top: 1.2rem; }
.pill-list span { background: var(--bg-section); border:1px solid var(--border-light); padding: 8px 16px; border-radius: 100px; font-size:.9rem; font-weight:600; color: var(--text-dark); }
.section--dark .pill-list span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color:#fff; }

/* =====================================================
   Accessibility (EAA / WCAG 2.1 AA)
   ===================================================== */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--text-dark); color: #fff; padding: 11px 18px; border-radius: 8px;
  font-weight: 700; font-size: .95rem;
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--primary-accent); outline-offset: 3px; border-radius: 4px; }
.site-header:not(.scrolled):not(.solid) :focus-visible { outline-color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
main:focus { outline: none; }

/* =====================================================
   Legal / prose pages
   ===================================================== */
.page-hero--plain .page-hero__media { background: var(--bg-dark); }
.page-hero--plain::after { background: linear-gradient(100deg, rgba(10,10,10,.84), rgba(10,10,10,.5)); }
.prose h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); margin: 2.1rem 0 .7rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { margin-bottom: 1rem; }
.prose a { color: var(--primary-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose .checklist { margin: .6rem 0 1.4rem; }
.muted-sm { font-size: .85rem; color: var(--border-muted); margin-bottom: 1.4rem; }

/* =====================================================
   Cookie consent + gated embeds (GDPR)
   ===================================================== */
.cookie-banner {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(24px);
  z-index: 180; width: min(680px, calc(100% - 28px));
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px 24px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cookie-banner.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cookie-banner h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.cookie-banner p { font-size: .9rem; color: var(--text-body); margin-bottom: 1rem; }
.cookie-banner p a { color: var(--primary-accent); font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { font-size: .88rem; padding: .6rem 1.2rem; }
.embed-blocked {
  min-height: 320px; display: grid; place-items: center; text-align: center;
  background: var(--bg-section); padding: 28px;
}
.embed-blocked p { font-size: .92rem; color: var(--text-body); max-width: 380px; margin-bottom: 1rem; }

/* =====================================================
   Toast notification (form result)
   ===================================================== */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(150%);
  z-index: 300; width: min(460px, calc(100% - 32px));
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px 20px; border-left: 5px solid var(--success);
  opacity: 0; transition: opacity .4s var(--ease), transform .45s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--error { border-left-color: var(--primary-accent); }
.toast__icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(30,158,84,.12); color: var(--success); }
.toast--error .toast__icon { background: rgba(228,31,24,.1); color: var(--primary-accent); }
.toast__icon svg { width: 23px; height: 23px; }
.toast__body { flex: 1; min-width: 0; }
.toast__body strong { display: block; font-size: 1.08rem; color: var(--text-dark); margin-bottom: 3px; letter-spacing: -.01em; }
.toast__body span { display: block; font-size: .93rem; color: var(--text-body); line-height: 1.45; }
.toast__close { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--border-muted); }
.toast__close:hover { background: var(--bg-section); color: var(--text-dark); }
.toast__close svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce){
  .toast { transform: translateX(-50%); transition: opacity .25s; }
  .toast.show { transform: translateX(-50%); }
}


/* =====================================================
   Hero video pause/play control (WCAG 2.2.2 Pause, Stop, Hide)
   ===================================================== */
.video-toggle {
  position: absolute; right: var(--gutter); bottom: 26px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.82); color: var(--text-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.video-toggle:hover { background: #fff; transform: translateY(-2px); }
.video-toggle svg { width: 16px; height: 16px; }
@media (max-width: 640px){ .video-toggle { width: 38px; height: 38px; bottom: 18px; } }

/* =====================================================
   2026 micro-interactions
   Palette, typography and layout are unchanged — motion only.
   Everything below is disabled under prefers-reduced-motion.
   ===================================================== */

/* --- smooth cross-document page transitions (progressive enhancement) --- */
@view-transition { navigation: auto; }

/* --- scroll progress indicator --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--primary-accent); z-index: 210; pointer-events: none;
  will-change: transform;
}

/* --- richer reveal: subtle rise + settle, with automatic stagger --- */
.reveal { transition-duration: .75s; }
.reveal.in { transition-delay: calc(var(--i, 0) * 70ms); }

/* media reveal: image settles from a gentle zoom */
.feature__media img, .card__media img, .gallery img {
  will-change: transform;
}
.feature__media.reveal img,
.gallery .reveal img { transform: scale(1.06); transition: transform 1.1s var(--ease); }
.feature__media.reveal.in img,
.gallery .reveal.in img { transform: scale(1); }

/* --- buttons: light sweep on hover --- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .65s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn--ghost::after { background: linear-gradient(115deg, transparent 35%, rgba(0,0,0,.05) 50%, transparent 65%); }
/* keep the blended hero CTA free of the sweep so the multiply stays clean */
.hero .btn--primary::after { display: none; }

/* --- nav underline: springier --- */
.main-nav a::after { transition: width .38s var(--ease); }

/* --- cards: slightly springier lift --- */
.card { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }

/* --- stat counters --- */
.stat b { font-variant-numeric: tabular-nums; }

/* --- hero content: staged entrance on load --- */
.hero__inner > * { animation: heroIn .9s var(--ease) both; }
.hero__inner > .eyebrow      { animation-delay: .05s; }
.hero__inner > h1            { animation-delay: .14s; }
.hero__inner > .lead         { animation-delay: .24s; }
.hero__inner > .hero__actions{ animation-delay: .34s; }
.hero__inner > .hero__brands { animation-delay: .44s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* --- hero media: very subtle scroll parallax (JS sets --py) --- */
.hero__media { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }

/* --- icon tiles: gentle pop on hover --- */
.ifeat .ic { transition: transform .35s var(--ease), background .35s; }
.ifeat:hover .ic { transform: translateY(-3px) scale(1.04); }

/* --- pill chips --- */
.pill-list span { transition: transform .3s var(--ease), border-color .3s; }
.pill-list span:hover { transform: translateY(-2px); border-color: var(--border-muted); }

/* --- logo cards / brand rows --- */
.logo-card img, .brand-row .blogo { transition: transform .4s var(--ease); }
.brand-row .blogo--stacked { height: 96px; }  /* staplad logotyp behöver mer höjd */
.logo-card:hover img { transform: scale(1.04); }

/* --- respect the user's motion preference --- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .scroll-progress { display: none; }
  .hero__inner > * { animation: none; }
  .hero__media { transform: none !important; }
  .btn::after { display: none; }
  .feature__media.reveal img, .gallery .reveal img { transform: none; transition: none; }
  .reveal.in { transition-delay: 0s; }
  .ifeat:hover .ic, .pill-list span:hover, .logo-card:hover img { transform: none; }
}

/* =====================================================
   Medarbetare
   ===================================================== */
.preview-note {
  margin: 0 0 clamp(24px,3vw,34px); padding: 12px 18px;
  background: #FFF8E1; border: 1px solid #F0D98C; border-left: 4px solid #E0A800;
  border-radius: 10px; font-size: .9rem; color: #5B4708;
}

/* Ett jämnt rutnät – alla nio lika stora, varumärket som etikett på kortet */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: clamp(16px, 2vw, 24px); }

.pcard { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8d8d8; }
.pcard__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.pcard__body { padding: 14px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.pcard__brand {
  display: inline-block; align-self: flex-start; margin-bottom: 7px;
  font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--border-muted); background: var(--bg-section);
  border-radius: 100px; padding: 3px 9px;
}
.pcard__name { font-size: 1.06rem; line-height: 1.22; margin-bottom: 2px; }
.pcard__role { font-size: .84rem; color: var(--primary-accent); font-weight: 600; line-height: 1.32; margin-bottom: .55rem; }
.pcard__contact { font-size: .86rem; line-height: 1.6; margin-bottom: 0; margin-top: auto; }
.pcard__contact a { color: var(--border-muted); overflow-wrap: anywhere; }
.pcard__contact a:hover { color: var(--primary-accent); text-decoration: underline; }

@media (max-width: 560px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard__body { padding: 11px 12px 14px; }
  .pcard__name { font-size: .97rem; }
  .pcard__contact { font-size: .79rem; }
}
