:root {
  --blue-50:  #eef4f8;
  --blue-100: #d4e3ed;
  --blue-200: #a4c2d4;
  --blue-300: #6d9bb9;
  --blue-400: #3d779d;
  --blue-500: #1d5a82;
  --blue-600: #154566;
  --blue-700: #0f334c;
  --blue-800: #0a2236;
  --blue-900: #061722;

  --ink:      #0d1418;
  --ink-2:    #1e2a32;
  --text:     #3e4a52;
  --text-mute: #6b7780;
  --text-dim: #9aa3aa;
  --line:     #e2e6ea;
  --line-soft: #eef0f3;
  --bg:       #ffffff;
  --bg-2:     #f5f7f9;
  --bg-3:     #eaeef2;

  --max-w: 1320px;
  --gutter: 32px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Anchor-targets respekterar sticky topbar */
[id]:target { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: 'Manrope', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
img { max-width: 100%; display: block; }

/* === TOP NAV — Qtechs egen logga === */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  position: relative; /* containing block för megameny — anchora menyn till hela navbarens content-bredd */
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.topbar-logo {
  display: flex; align-items: center;
}
.topbar-logo img {
  height: 38px;
  width: auto;
}
.topbar-nav {
  display: flex; gap: 32px;
  list-style: none;
}
.topbar-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.2s;
}
.topbar-nav a:hover { color: var(--blue-500); }
.topbar-cta {
  background: var(--blue-500);
  color: #fff;
  padding: 11px 22px;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s;
  text-decoration: none; /* CTA är nu <a>, ej <button> — undertryck default link-underline */
}
.topbar-cta:hover { background: var(--blue-600); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.topbar-lang a {
  color: var(--text-mute);
  text-decoration: none;
  padding: 4px 6px;
  transition: color 0.2s;
}
.topbar-lang a:hover { color: var(--blue-500); }
.topbar-lang a.active {
  color: var(--ink);
}
.topbar-lang .sep {
  color: var(--text-dim);
  font-weight: 400;
}

.topbar-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.topbar-hamburger i { font-size: 22px; }
.topbar-hamburger:hover { background: var(--bg-2); border-color: var(--text-mute); }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100svh;
  background: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* mobile-menu ska INTE scrolla själv — nav scrollar inom sig */
  transform: translateX(100%);
  transition: transform 0.3s ease;
  visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-header img { height: 28px; width: auto; }
.mobile-menu-close {
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  display: flex;
  align-items: center;
}
.mobile-menu-close i { font-size: 22px; }
.mobile-menu nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto; /* scroll inom nav så footer alltid syns vid bottom */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
}
.mobile-menu nav a {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu nav a i { color: var(--text-mute); font-size: 18px; }
.mobile-menu nav a:hover { color: var(--blue-500); }
.mobile-menu-footer {
  /* 100svh på .mobile-menu absorberar redan iOS Chromes bottom-bar. Padding-bottom
     skyddar bara hardware home-indicator via env() + en balanserad luftbuffert (28px). */
  padding: 24px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid var(--line);
  flex-shrink: 0; /* CTA-höjden är okränkbar oavsett nav-längd */
}
.mobile-menu-lang {
  display: flex;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  align-items: center;
}
.mobile-menu-lang a {
  color: var(--text-mute);
  text-decoration: none;
  padding: 6px 10px;
}
.mobile-menu-lang a.active { color: var(--ink); }
.mobile-menu-lang .sep { color: var(--text-dim); }
.mobile-menu-footer .btn { justify-content: center; padding: 16px 28px; }
body.menu-open { overflow: hidden; }

/* === SECTIONS === */
section { padding: 64px 0; }
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section-head { margin-bottom: 56px; max-width: 720px; }
.section--services-home .section-head {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section--services-home .section-head .eyebrow { justify-content: center; }
.section--services-home .section-head .lead { margin-left: auto; margin-right: auto; }

/* === TYPOGRAPHY === */
.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-500);
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--blue-500);
}
.h1 {
  font-size: clamp(44px, 5.4vw, 76px); /* fluid skala — Marstrom-känsla */
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.h2 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.h3 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  max-width: 640px;
  margin-top: 20px;
}

/* === HERO === */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 520px;
  max-height: 740px;
  overflow: hidden;
  background: var(--ink);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-video-frame {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  padding: 28px 40px;
  background: linear-gradient(180deg, rgba(13,20,24,0.55) 0%, transparent 100%);
  display: flex; justify-content: center;
  pointer-events: none;
}
.hero-video-frame-inner {
  max-width: var(--max-w);
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.9);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-video-frame span { display: flex; align-items: center; gap: 10px; }
.hero-video-frame .live-dot {
  width: 7px; height: 7px;
  background: var(--blue-300);
  border-radius: 50%;
  animation: heroPulse 2s infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* === HERO TEXT UNDER === */
/* === Karriär bento-grid (foton från aktiviteter, personalklubben etc.) ===
   5 items: en stor till vänster (span 2 rader) + 4 normalstora. På mobil
   blir det 2-kol med alla samma storlek. */
.career-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(180px, 22vw, 280px);
  gap: clamp(12px, 1.5vw, 20px);
}
.career-bento__item {
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blue-500);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
  padding: 16px;
}
.career-bento__item:first-child {
  grid-row: span 2;
}
.career-bento__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.96);
  display: block;
}
@media (max-width: 720px) {
  .career-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(160px, 38vw, 220px); }
  .career-bento__item:first-child { grid-row: auto; }
}

/* === Hero intro (mörkt manifesto-band, matchar industry-block-färg) ===
   Mörkblå bg (var--blue-800 = samma som .industry-block). Text + CTA vänster,
   Qtechs 3 brand-prickar + slogan höger som visuellt anker. */
.hero-intro {
  background: var(--blue-800);
  color: white;
  padding: clamp(80px, 12vh, 152px) 0;
  overflow: hidden;
}
.hero-intro__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero-intro__eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f08a3c; /* orange-accent från Qtechs prick-färg */
  font-weight: 700;
  margin-bottom: 32px;
}
.hero-intro__h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 700;
  color: white;
  margin: 0 0 32px;
}
.hero-intro__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  margin: 0 0 40px;
  max-width: 540px;
}
.hero-intro__cta {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.hero-intro__link {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 4px;
  transition: border-color 0.2s;
}
.hero-intro__link:hover { border-bottom-color: white; }

/* Brand-anker — Qtechs 3 prickar + slogan, samma som logotypen.
   Slogan i Roboto Condensed för att matcha typografin i den faktiska
   Qtech-logotyp-PNG:n. Mindre prickar + större slogan ger tätare block. */
.hero-intro__brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3.5vw, 40px);
}
.hero-intro__dots {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
}
.hero-intro__dot {
  width: clamp(48px, 6.5vw, 84px);
  height: clamp(48px, 6.5vw, 84px);
  border-radius: 50%;
  /* Diskret sfärisk skuggning — nykter industriprofil, ingen animation.
     Svag ljusreflex uppe till vänster + mjuk slagskugga mot bakgrunden. */
  box-shadow:
    0 14px 24px -12px rgba(0, 0, 0, 0.4),
    inset 0 -6px 12px rgba(0, 0, 0, 0.16),
    inset 0 5px 10px rgba(255, 255, 255, 0.14);
}
.hero-intro__dot--blue {
  background: radial-gradient(circle at 34% 30%, #92c5e4 0%, #6db1d8 55%, #5397c0 100%);
}
.hero-intro__dot--orange {
  background: radial-gradient(circle at 34% 30%, #efa958 0%, #e88e2d 55%, #cf7716 100%);
}
.hero-intro__dot--gray {
  background: radial-gradient(circle at 34% 30%, #cdd1d5 0%, #b5b9bd 55%, #9a9ea3 100%);
}
.hero-intro__slogan {
  font-family: 'Roboto Condensed', 'Manrope', sans-serif;
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: white;
  margin: 0;
  text-align: center;
}
@media (max-width: 900px) {
  .hero-intro__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-intro__dot { width: clamp(48px, 11vw, 72px); height: clamp(48px, 11vw, 72px); }
}

.hero-text {
  background: var(--bg);
  padding: 80px 0 96px;
}
.hero-text-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.hero-text-inner > div:first-child { align-self: end; }
@media (max-width: 900px) {
  .hero-text-inner { grid-template-columns: 1fr; gap: 40px; }
}
.hero-text h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-text-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 36px;
  max-width: 580px;
}
.hero-cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Hero-bild — PLATSHÅLLARE från Unsplash (Sven Daniel, CNC-svarvning).
   Byt mot Qtechs egen produktbild när tillgänglig. */
.hero-image {
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  background: var(--bg-3);
}
@media (max-width: 900px) {
  .hero-image { min-height: 360px; max-height: 480px; }
}

.hero-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 2px solid var(--blue-500);
}
.hero-info-cell {
  padding: 20px 22px 18px 0;
  border-right: 1px solid var(--line);
}
.hero-info-cell:nth-child(2) { padding-right: 0; padding-left: 22px; border-right: none; }
.hero-info-cell:nth-child(3) { padding-top: 18px; }
.hero-info-cell:nth-child(4) { padding-top: 18px; padding-left: 22px; }
.hero-info-cell:nth-child(3), .hero-info-cell:nth-child(4) {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-bottom: 0;
}
.hero-info-cell .lbl {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 6px;
  font-weight: 700;
}
.hero-info-cell .val {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero-info-cell .desc {
  font-size: 12.5px;
  color: var(--text-mute);
  margin-top: 4px;
}

/* === BUTTONS === */
.btn {
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); }

/* Pil-shift på alla CTA-knappar med ikon */
.btn i {
  font-size: 16px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover i,
.btn-outline:hover i,
.btn-light:hover i,
.btn-on-dark:hover i {
  transform: translateX(3px);
}
@media (prefers-reduced-motion: reduce) {
  .btn i { transition: none; }
  .btn:hover i { transform: none; }
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue-50); }
.btn-on-dark {
  background: #fff;
  color: var(--ink);
}
.btn-on-dark:hover { background: var(--blue-50); }

/* === INDUSTRIER — ASTOR-STIL FULL BREDD === */
.industries-section {
  background: var(--bg);
  padding: 120px 0 80px;
}
.industries-head {
  max-width: 820px;
  margin: 0 auto 80px;
  text-align: center;
  padding: 0 var(--gutter);
}
.industries-head .eyebrow { justify-content: center; }
.industries-head h2 { font-size: 52px; }
.industries-head .lead { margin-left: auto; margin-right: auto; }

/* Industri-blocken går hela vägen ut - full bredd */
.industry-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--blue-800);
  overflow: hidden;
  min-height: 680px;
  width: 100%;
}
.industry-block:nth-child(even) > div:first-child { order: 2; }

.industry-img {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-700), var(--ink));
  min-height: 680px;
  height: 100%;
}
.industry-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.industry-block:hover .industry-img img { transform: scale(1.03); }

.industry-content {
  padding: 64px 56px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.industry-eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d97f1f;
  font-weight: 700;
  margin-bottom: 20px;
}
.industry-content h3 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: #fff;
  margin-bottom: 24px;
  max-width: 460px;
}
.industry-content .lead-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  margin-bottom: 32px;
  max-width: 520px;
}
.industry-content ul {
  list-style: none;
  margin-bottom: 36px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.industry-content ul li {
  display: flex; align-items: start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 14.5px;
  color: rgba(255,255,255,0.85);
}
.industry-content ul li i {
  color: var(--blue-300);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.industry-content ul li strong { color: #fff; font-weight: 600; }

.industry-readmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  padding: 14px 26px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 999px;
  align-self: flex-start;
  transition: background 0.2s, gap 0.2s;
}
.industry-readmore:hover {
  background: var(--blue-50);
  gap: 14px;
}

/* === SMÅKORT FÖR ÖVRIGA INDUSTRIER === */
.industries-cards-section {
  background: var(--bg);
  padding: 80px 0 120px;
}
.industries-cards-head {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
  padding: 0 var(--gutter);
}
.industries-cards-head .eyebrow { justify-content: center; }
.industries-cards-head h3 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 12px;
  color: var(--ink);
}
.industries-cards-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.industry-card {
  background: var(--bg-2);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}
.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13, 20, 24, 0.12);
}
.industry-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-700), var(--ink));
}
.industry-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.industry-card:hover .industry-card-img img { transform: scale(1.06); }
.industry-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.industry-card-body h4 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--ink);
}
.industry-card-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(13, 20, 24, 0.7);
  margin-bottom: 18px;
  flex: 1;
}
.industry-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}
.industry-card-link i { font-size: 16px; transition: transform 0.2s; }
.industry-card:hover .industry-card-link i { transform: translateX(3px); }

@media (max-width: 1024px) {
  .industries-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .industries-cards-grid { grid-template-columns: 1fr; }
}

/* === TJÄNSTER — MÖRK BLÅ ÖVERSIKT === */
.services-dark {
  background: var(--blue-700);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.services-dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.services-dark .container { position: relative; z-index: 1; }
.services-dark .eyebrow { color: var(--blue-300); }
.services-dark .eyebrow::before { background: var(--blue-300); }
.services-dark h2 { color: #fff; }
.services-dark .lead { color: rgba(255,255,255,0.75); }

.services-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.service-area {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 28px 28px 24px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.service-area:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}
.service-area-num {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-300);
  font-weight: 700;
  margin-bottom: 14px;
}
.service-area > i.service-area-icon {
  font-size: 26px;
  color: var(--blue-300);
  margin-bottom: 14px;
  display: block;
}
.service-area h4 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}
.service-area > p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  margin-bottom: 16px;
}
.service-area ul.service-sublist {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.service-area ul.service-sublist li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}
.service-area ul.service-sublist li i {
  font-size: 16px;
  color: var(--blue-300);
  flex-shrink: 0;
}
.service-area .service-area-link {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  align-self: flex-start;
  transition: gap 0.2s, color 0.2s;
}
.service-area .service-area-link:hover {
  gap: 14px;
  color: var(--blue-300);
}
@media (max-width: 860px) {
  .services-grid-4 { grid-template-columns: 1fr; }
  .service-area { padding: 28px 24px 24px; }
  .service-area h4 { font-size: 21px; }
}

.services-cta-row {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.services-cta-row p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  max-width: 480px;
}

/* === TJÄNSTER — CLEAN GRID (2025-06-13) === */
.services-light {
  background: var(--bg);
  padding: 80px 0;
}
.services-light .section-head {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
  align-items: start;
  max-width: none;
}
.services-light .section-head > div { padding-top: 4px; }
.services-light .section-head .lead { margin-top: 0; max-width: none; }
.process-timeline {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.process-step {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  align-items: start;
  transition: background 0.25s;
}
.process-step:hover { background: var(--bg-2); }
.process-step-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--blue-200);
  letter-spacing: -0.025em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.process-step-content h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.process-step-content p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
  max-width: 620px;
  margin: 0;
}
.process-step-arrow {
  font-size: 22px;
  color: var(--text-mute);
  align-self: center;
  justify-self: end;
  transition: transform 0.2s, color 0.2s;
}
.process-step:hover .process-step-arrow {
  color: var(--blue-500);
  transform: translateX(4px);
}
@media (max-width: 800px) {
  .services-light .section-head { grid-template-columns: 1fr; gap: 24px; }
  .process-step {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 24px 0;
  }
  .process-step-num { font-size: 28px; line-height: 1; padding-top: 4px; }
  .process-step-content h4 { font-size: 18px; }
  .process-step-content p { font-size: 14px; }
  .process-step-arrow { display: none; }
}

/* === KARRIÄR-BANNER === */
.career-banner {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  align-items: center;
}
.career-banner-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: 1;
}
.career-banner-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(13,20,24,0.85) 0%, rgba(13,20,24,0.5) 100%);
}
.career-banner-inner {
  position: relative;
  z-index: 3;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px var(--gutter);
  color: #fff;
}
.career-banner-content { max-width: 640px; }
.career-banner .eyebrow {
  color: var(--blue-300);
}
.career-banner .eyebrow::before {
  background: var(--blue-300);
}
.career-banner h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: #fff;
  margin-bottom: 24px;
}
.career-banner-lead {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 540px;
}
.career-banner-tags {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.career-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
}

/* === IDENTITY === */
.identity {
  background: var(--bg-2);
  padding: 140px 0;
  text-align: center;
}
.identity-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--gutter);
}
.identity .eyebrow { justify-content: center; margin-bottom: 32px; }
.identity h2 {
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}
.identity p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 40px;
}

/* === FOOTER === */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-brand .logo img {
  height: 36px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 360px; }
.footer-col h5 {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-300);
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 6px 0; font-size: 14px; }
.footer-col a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}


@media (max-width: 900px) {
  .h1, .hero-text h1 { font-size: 44px; }
  .h2, .identity h2, .industries-head h2 { font-size: 32px; }
  .topbar-nav { display: none; }
  .hero-text-inner { grid-template-columns: 1fr; gap: 40px; }
  .industry-block { grid-template-columns: 1fr; min-height: auto; }
  .industry-block:nth-child(even) > div:first-child { order: 0; }
  .industry-img { min-height: 320px; }
  .industry-content { padding: 40px 32px; }
  .industry-content h3 { font-size: 28px; }
  .services-overview-grid { grid-template-columns: 1fr 1fr; }
  .services-cta-row { flex-direction: column; gap: 24px; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  .topbar-cta, .topbar-lang { display: none; }
  .topbar-hamburger { display: flex; }
}

@media (max-width: 600px) {
  .topbar-inner { padding: 12px 16px; gap: 12px; }
  .topbar-logo img { height: 30px; }
  .topbar-right { gap: 8px; }
  .hero-video-section { aspect-ratio: 3/2; height: auto; min-height: 0; max-height: none; }
  .hero-video-frame { padding: 16px 20px; }
  .hero-video-frame-inner { font-size: 9.5px; letter-spacing: 0.18em; gap: 16px; }
  .h1, .hero-text h1 { font-size: 36px; }
  .h2, .identity h2, .industries-head h2 { font-size: 26px; }
  .industries-head h2 { font-size: 30px; }
  .industries-head { padding: 0 var(--gutter); margin: 0 auto 24px; }
  .industries-head .lead { font-size: 16px; }
  section { padding: 40px 0; }
  section.hero-text { padding: 24px 0 32px !important; }
  section.industries-section { padding: 40px 0 0 !important; }
  .services-light { padding: 36px 0; }
  .industries-small-head { margin: 40px auto 24px; }
  .industries-small-grid { padding-bottom: 8px; }
  .identity { padding: 40px 0; }
  .career-banner { min-height: 360px; }
  .footer { padding: 40px 0; }
  .industry-content { padding: 32px 24px; }
  .industry-content h3 { font-size: 24px; }
  .industry-content .lead-text { font-size: 15px; }
  .industries-small-head { margin: 60px auto 32px; }
  .industries-small-head h3 { font-size: 26px; }
  .industries-small-grid { grid-template-columns: 1fr; gap: 24px; padding: 0 var(--gutter); }
  .services-light .section-head { margin-bottom: 32px; }
  .services-light .lead { font-size: 16px; }
  .career-banner { min-height: 420px; }
  .career-banner h2 { font-size: 30px; }
  .career-banner-lead { font-size: 15px; }
  .identity-inner { padding: 0 var(--gutter); }
  .identity p { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* Små industri-kort (2x4 grid) */
.industries-small-head {
  max-width: 820px;
  margin: clamp(2rem, 4vw, 4rem) auto 48px;
  text-align: center;
  padding: 0 var(--gutter);
}
.industries-small-head h3 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: var(--ink);
  margin-top: 16px;
}
.industries-small-head .lead {
  margin: 18px auto 0;
  max-width: 640px;
}
.industries-small-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.industry-small {
  background: var(--bg);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.industry-small:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(13, 20, 24, 0.12);
}
.industry-small-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--blue-700);
}
.industry-small-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}
.industry-small:hover .industry-small-img img {
  transform: scale(1.06);
}
.industry-small-content {
  padding: 26px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.industry-small h4 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--ink);
  line-height: 1.22;
}
.industry-small p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 22px;
  flex: 1;
}
.industry-small-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-500);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
  align-self: flex-start;
}
.industry-small-link i { font-size: 16px; }
.industry-small-link:hover { gap: 12px; }

@media (max-width: 1024px) {
  .industries-small-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .industries-small-head h3 { font-size: 32px; }
}
@media (max-width: 640px) {
  .industries-small-grid {
    grid-template-columns: 1fr;
  }
  .industries-small-head { margin: 80px auto 36px; }
  .industries-small-head h3 { font-size: 26px; }
}


/* ====================================================================
   DEFENCE (och framtida industri-undersidor) — brand-signatur
   Lagt 2026-06-14 från design-audit-workflow w01a38l4k.
   ==================================================================== */

/* Kort med 2px blå topp-border som signatur + hover-lyft */
.defence-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue-500);
  border-radius: 4px;
  padding: 36px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.defence-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -12px rgba(13, 20, 24, 0.14);
  border-color: var(--blue-200);
  border-top-color: var(--blue-500);
}
.defence-card--soft { background: var(--bg-2); }
.defence-card--compact { padding: 32px; }
@media (prefers-reduced-motion: reduce) {
  .defence-card { transition: border-color 0.2s ease; }
  .defence-card:hover { transform: none; box-shadow: none; }
}

/* Scroll-driven fade-in — progressive enhancement på browsers som stöder
   CSS Scroll-driven Animations. Faller graciöst tillbaka på "alltid synlig". */
@keyframes defence-reveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal-on-scroll { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  .reveal-on-scroll {
    animation: defence-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mobil-overrides för defence-undersidan */
@media (max-width: 900px) {
  .defence-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
}
@media (max-width: 600px) {
  .lead { font-size: 16.5px; line-height: 1.55; }
  .defence-hero { padding: 56px 0 40px !important; }
  .defence-hero .h1 { font-size: 36px; }
  .defence-compliance { padding: 64px 0 !important; }
}

/* A11y — medvetna focus-rings på interaktiva element */
.btn:focus-visible,
.defence-card:focus-visible,
.topbar-nav a:focus-visible,
.industry-card:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 2px;
}
.defence-compliance .btn:focus-visible,
.defence-compliance a:focus-visible {
  outline-color: var(--blue-200);
}

/* ====================================================================
   DEFENCE — editorial-tweaks (från craft-pass workflow wtm6ug5so)
   Lägger motion-tokens + dossier-meta-strip + pull-quote-breakout.
   ==================================================================== */

:root {
  --def-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --def-dur-base: 240ms;
  --def-dur-slow: 480ms;
}

/* Dossier-meta-strip i hero — small-caps, tabular-nums, hairline border */
.def-dossier-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 28px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  gap: 24px;
  flex-wrap: wrap;
}
.def-dossier-meta strong {
  color: var(--ink);
  font-weight: 700;
}
@media (max-width: 600px) {
  .def-dossier-meta {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 40px;
  }
}

/* Pull-quote breakout — editorial weight, asymmetric */
.def-pullquote {
  padding: clamp(80px, 10vw, 128px) 0;
  background: var(--bg);
}
.def-pullquote-inner {
  max-width: 920px;
  padding-left: clamp(24px, 5vw, 64px);
  border-left: 2px solid var(--ink);
}
.def-pullquote blockquote {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.25;
  font-weight: 300;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
}
.def-pullquote-cite {
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
}

/* Editorial CTA — border-top/bottom med extending pil */
.def-cta-editorial {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 18px 4px 18px 24px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: padding 0.3s var(--def-ease);
  position: relative;
}
.def-cta-editorial::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--ink);
  transition: width 0.3s var(--def-ease);
  margin-left: 4px;
}
.def-cta-editorial:hover { padding-left: 32px; }
.def-cta-editorial:hover::after { width: 52px; }
@media (prefers-reduced-motion: reduce) {
  .def-cta-editorial,
  .def-cta-editorial::after { transition: none; }
}

/* ====================================================================
   TJÄNSTER undersidor — workflow w76gq3kaq (2026-06-17)
   Sticky vänster-nav + scroll-spy + 4 lodräta block på home.
   ==================================================================== */
/* ============================================================
   SERVICES HOME SECTION
   4 lodrata block med alternerande bild-position.
   Arver visuella DNA fran .industry-block (Defence/Automation).
   ============================================================ */

.section--services-home {
  padding-top: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background: var(--bg, #ffffff);
}

.section--services-home .section-head {
  max-width: 56rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section--services-home .section-head .lead {
  margin-top: 1rem;
  color: var(--text-muted, #4a5568);
}

/* Tjänster använder nu .service-bg-card på home (2x2 grid) — den döda
   .industry-block zigzag-CSS:n är borttagen för att inte överskriva
   branscher-blocken på home (Defence/Automation 2-kolumn layout). */

/* (övriga zigzag-rester borttagna i samma rensning) */

/* ============================================================
   TJANSTER SUBPAGE STYLES
   Hero, sticky vanster-nav, scroll-spy, mobile fallback, CTA.
   ============================================================ */

.service-hero {
  background: var(--bg-2, #f4f6f8);
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,.06));
}
.service-hero__inner { max-width: 880px; }
.service-hero__title {
  margin: 12px 0 16px;
  color: var(--blue-700, #0a1f3d);
}
.service-hero__lead {
  color: var(--blue-500, #3d4a5c);
  max-width: 720px;
}

/* ---------- MOBILE SUBNAV ---------- */
.service-subnav-mobile {
  display: block;
  position: sticky;
  top: 64px;
  z-index: 20;
  background: var(--bg, #fff);
  border-bottom: 1px solid var(--border, rgba(0,0,0,.06));
}
.service-subnav-mobile__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0;
  margin: 0;
  list-style: none;
  scrollbar-width: none;
}
.service-subnav-mobile__list::-webkit-scrollbar { display: none; }
.service-subnav-mobile__list > li { flex: 0 0 auto; }
.service-subnav-mobile__list a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-500, #3d4a5c);
  text-decoration: none;
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 4px;
  white-space: nowrap;
  background: var(--bg, #fff);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.service-subnav-mobile__list a:hover {
  color: var(--blue-700, #0a1f3d);
  border-color: var(--blue-700, #0a1f3d);
}
.service-subnav-mobile__list a.is-active {
  color: #fff;
  background: var(--blue-700, #0a1f3d);
  border-color: var(--blue-700, #0a1f3d);
}

/* ---------- BODY GRID ---------- */
.service-body {
  padding: 64px 0 96px;
  background: var(--bg, #fff);
}
.service-body__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* ---------- DESKTOP STICKY VANSTER-NAV ---------- */
.service-sidenav {
  display: none;
  /* När visible (≥720px) görs den sticky direkt på wrappern så att den
     funkar inom grid-cellen oavsett vilket avsnitt man scrollat till. */
}
.service-sidenav__inner {
  padding-right: 16px;
}
.service-sidenav__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-500, #3d4a5c);
  margin: 0 0 12px;
  opacity: .7;
}
.service-sidenav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--border, rgba(0,0,0,.08));
}
.service-sidenav__list > li { margin: 0; }
.service-sidenav__link {
  display: block;
  padding: 10px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--blue-500, #3d4a5c);
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.service-sidenav__link:hover {
  color: var(--blue-700, #0a1f3d);
  background: var(--bg-2, #f4f6f8);
}
.service-sidenav__link.is-active {
  color: var(--blue-700, #0a1f3d);
  font-weight: 700;
  border-left-color: var(--industry-eyebrow-color, #d97f1f);
  background: var(--bg-2, #f4f6f8);
}

/* ---------- CONTENT ---------- */
.service-content { min-width: 0; }
.service-section {
  padding: 24px 0 40px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,.06));
  scroll-margin-top: 120px;
}
.service-section:last-child { border-bottom: 0; }
.service-section__title {
  color: var(--blue-700, #0a1f3d);
  margin: 0 0 16px;
}
.service-section__body {
  color: var(--blue-500, #3d4a5c);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 68ch;
}
.service-section__bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
  max-width: 68ch;
}
.service-section__bullets > li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--blue-500, #3d4a5c);
  font-size: 16px;
  line-height: 1.55;
}
.service-section__bullets i {
  color: var(--industry-eyebrow-color, #d97f1f);
  margin-top: 4px;
  flex: 0 0 auto;
}

/* ---------- CTA FOOTER ---------- */
.service-cta {
  background: var(--bg-2, #f4f6f8);
  padding: 72px 0;
  border-top: 1px solid var(--border, rgba(0,0,0,.06));
}
.service-cta__inner {
  max-width: 720px;
  text-align: left;
}
.service-cta__inner .h2 {
  color: var(--blue-700, #0a1f3d);
  margin: 0 0 12px;
}
.service-cta__inner .lead {
  color: var(--blue-500, #3d4a5c);
  margin: 0 0 24px;
}
.service-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

/* ---------- DESKTOP BREAKPOINT ---------- */
@media (min-width: 900px) {
  .service-hero { padding: 128px 0 72px; }
  .service-subnav-mobile { display: none; }
  .service-body__grid {
    grid-template-columns: 240px 1fr;
    gap: 64px;
    align-items: start;
  }
  .service-sidenav {
    display: block;
    position: sticky;
    top: 120px;
    align-self: start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
  .service-section { padding: 32px 0 56px; }
  .service-section__title { font-size: 28px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .service-subnav-mobile__list,
  .service-sidenav__link,
  .service-subnav-mobile__list a {
    scroll-behavior: auto;
    transition: none;
  }
}
/* === Tjänster expanded blocks — workflow w6bzp1o84 (2026-06-19) === */
/* ============================================================
   Expanded service section — image + long-form body + bullets + proof
   Used inside .service-body for /tjanster/[category] subsections.
   Keeps sticky sidenav intact; targets anchor_id via id="{{ID}}".
   ============================================================ */

.service-section--expanded {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-top: 1px solid rgba(15, 26, 51, 0.08);
  scroll-margin-top: 96px;
}

.service-section--expanded:first-of-type {
  border-top: 0;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.service-section__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.service-section__header {
  max-width: 56ch;
}

.service-section__title {
  margin: 0;
  color: var(--color-primary, #0f1a33);
  letter-spacing: -0.01em;
}

.service-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

@media (min-width: 720px) {
  .service-section__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 4vw, 3rem);
  }
}

@media (min-width: 720px) {
  .service-section--expanded:nth-of-type(even) .service-section__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .service-section--expanded:nth-of-type(even) .service-section__media {
    order: 2;
  }
  .service-section--expanded:nth-of-type(even) .service-section__body {
    order: 1;
  }
}

.service-section__media {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: rgba(15, 26, 51, 0.04);
  aspect-ratio: 4 / 3;
}

.service-section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) brightness(0.96);
  transition: transform 600ms ease;
}

.service-section--expanded:hover .service-section__image {
  transform: scale(1.015);
}

.service-section__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.service-section__lead {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.1875rem);
  line-height: 1.55;
  color: var(--color-primary, #0f1a33);
  font-weight: 500;
}

.service-section__prose {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-text, #2b3550);
  font-size: 1rem;
  line-height: 1.65;
}

.service-section__prose p {
  margin: 0;
}

.service-section__prose p + p {
  margin-top: 0;
}

.service-section__bullets {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem 1.5rem;
}

@media (min-width: 560px) {
  .service-section__bullets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-section__bullets li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text, #2b3550);
}

.service-section__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 1px;
  background: var(--color-accent, #d97706);
}

.service-section__proof {
  margin: 1rem 0 0 0;
  padding: 1.125rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1.5rem;
  background: rgba(15, 26, 51, 0.035);
  border-left: 2px solid var(--color-accent, #d97706);
}

@media (min-width: 560px) {
  .service-section__proof {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.service-section__proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.service-section__proof-label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted, #6b7388);
  font-weight: 600;
  margin: 0;
}

.service-section__proof-value {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary, #0f1a33);
  line-height: 1.35;
}

.service-section__bullets:empty,
.service-section__proof:empty,
.service-section__prose:empty {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .service-section__image,
  .service-section--expanded:hover .service-section__image {
    transition: none;
    transform: none;
  }
}
/* === Home tjänster — 4 kompakta kort med bild-bakgrund + overlay-text === */
.service-bg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 600px) {
  .service-bg-grid { grid-template-columns: 1fr; gap: 16px; }
}

.service-bg-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16/10;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
  transition: transform 0.3s var(--def-ease, cubic-bezier(0.2,0.8,0.2,1)),
              box-shadow 0.3s var(--def-ease, cubic-bezier(0.2,0.8,0.2,1));
}
.service-bg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -16px rgba(13,20,24,0.35);
}
.service-bg-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--def-ease, cubic-bezier(0.2,0.8,0.2,1));
  z-index: 0;
}
.service-bg-card:hover .service-bg-card__img { transform: scale(1.04); }
.service-bg-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13,20,24,0.15) 0%, rgba(13,20,24,0.45) 45%, rgba(13,20,24,0.82) 100%);
}
.service-bg-card__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  gap: 12px;
}
.service-bg-card__title {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: #fff;
  margin: 0;
}
.service-bg-card__lead {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  margin: 0;
}
.service-bg-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  transition: gap 0.25s var(--def-ease, cubic-bezier(0.2,0.8,0.2,1));
}
.service-bg-card:hover .service-bg-card__cta { gap: 14px; }
@media (prefers-reduced-motion: reduce) {
  .service-bg-card, .service-bg-card__img, .service-bg-card__cta { transition: none; }
  .service-bg-card:hover { transform: none; }
  .service-bg-card:hover .service-bg-card__img { transform: none; }
}

/* === Topbar megamenu — desktop dropdown för Tjänster === */
/* OBS: position-anchor är .topbar-inner (inte trigger-<li>) så menyn alignas
   med navbarens content-bredd: vänsterkant under loggan, högerkant vid CTA. */
.topbar-nav__item--has-mega {
  /* INGEN position: relative här — annars stjäl <li> containing block från topbar-inner */
}
/* Hover-bridge: trigger-länken får en osynlig pseudo-yta nedåt som täcker
   navbar-padding-gapet mellan trigger-bottom och megamenyns top.
   Utan denna förlorar :hover-state när musen lämnar trigger på väg ned. */
.topbar-nav__item--has-mega .topbar-nav__link {
  position: relative;
}
.topbar-nav__item--has-mega .topbar-nav__link::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 32px;
}
.topbar-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.topbar-nav__chevron {
  font-size: 14px;
  transition: transform 0.2s;
}
.topbar-nav__item--has-mega:hover .topbar-nav__chevron,
.topbar-nav__item--has-mega:focus-within .topbar-nav__chevron {
  transform: rotate(180deg);
}

.topbar-megamenu {
  position: absolute;
  top: 100%;
  left: var(--gutter);  /* under loggans vänsterkant (topbar-inner content-edge) */
  right: var(--gutter); /* slutar vid Kontakta-knappens högerkant */
  transform: translateY(-8px);
  margin-top: 0;
  padding: 44px 32px 32px; /* 12px extra top = hover-bridge inom elementet, inget gap att korsa */
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px -20px rgba(13,20,24,0.18);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}
.topbar-nav__item--has-mega:hover .topbar-megamenu,
.topbar-nav__item--has-mega:focus-within .topbar-megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.topbar-megamenu__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.topbar-megamenu__col { display: flex; flex-direction: column; }
.topbar-megamenu__col-title {
  display: flex;
  align-items: flex-start;
  min-height: 2.6em; /* rymmer 2 rader så alla titlar alignar oavsett radbrytning */
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--blue-500);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 0.15s;
}
.topbar-megamenu__col-title:hover { color: var(--blue-700); }
.topbar-megamenu__sublink {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
  line-height: 1.35;
  transition: color 0.15s, padding-left 0.15s;
  border-left: 2px solid transparent;
  padding-left: 0;
}
.topbar-megamenu__sublink:hover {
  color: var(--blue-500);
  padding-left: 8px;
  border-left-color: var(--blue-500);
}

@media (max-width: 900px) {
  .topbar-megamenu { display: none; }
  .topbar-nav__chevron { display: none; }
}

/* === Mobile-menu: kollapsbar Tjänster-grupp ===
   Använder <details>/<summary> så sublinks är dolda by default.
   Summary stylas som mobile-menu-länk, chevron roterar när öppen. */
.mobile-menu nav .mobile-menu__group {
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu nav .mobile-menu__group-trigger {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  padding: 14px 0;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none; /* hide default disclosure triangle */
  user-select: none;
}
.mobile-menu nav .mobile-menu__group-trigger::-webkit-details-marker { display: none; }
.mobile-menu nav .mobile-menu__group-chevron {
  color: var(--text-mute);
  font-size: 18px;
  transition: transform 0.2s;
}
.mobile-menu nav .mobile-menu__group[open] .mobile-menu__group-chevron {
  transform: rotate(180deg);
}
.mobile-menu nav .mobile-menu__sublinks {
  display: flex;
  flex-direction: column;
  padding: 4px 0 14px 18px;
  border-left: 2px solid var(--blue-500);
  margin-bottom: 4px;
}
.mobile-menu nav .mobile-menu__sublinks a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu nav .mobile-menu__sublinks a:last-child { border-bottom: none; }
.mobile-menu nav .mobile-menu__sublinks a i {
  color: var(--text-mute);
  font-size: 14px;
}
.mobile-menu nav .mobile-menu__sublinks a:hover,
.mobile-menu nav .mobile-menu__sublinks a:active {
  color: var(--blue-500);
}
/* Direkt-syskon: ta bort dubbla border-bottoms när detaljerna kollapsas vs öppnas */
.mobile-menu nav .mobile-menu__group + a { /* nästa huvudlänk efter Tjänster-gruppen */
  border-top: 0;
}
