/* =========================================================
   FIBERSTADEN — Prototyp 2 (Workshop 1 insikter)
   Design: BankID-känsla — trygg, enkel, pålitlig
   Grafisk profil:
   - Primär: svart #1D1D1B, röd #E30613
   - Sekundär: grå #646363
   - Komplement: #B01C1C #516638 #8FCBB0 #264F71 #EFAE7B
   - Typsnitt webb: Roboto (Light + Bold)
   ========================================================= */

:root {
  /* === Brand palette === */
  --black:   #1D1D1B;
  --red:     #E30613;
  --gray:    #646363;

  /* Komplement */
  --c-darkred: #B01C1C;
  --c-olive:   #516638;
  --c-mint:    #8FCBB0;
  --c-navy:    #264F71;
  --c-peach:   #EFAE7B;

  /* Tonade varianter */
  --navy-900: #142b3f;
  --navy-800: #1c3a55;
  --navy-700: #264F71;
  --navy-600: #355f85;
  --navy-300: #a9c1d6;
  --navy-100: #e6edf4;
  --navy-50:  #f3f6fa;

  --red-700:  #b8050f;
  --red-600:  #cc060f;
  --red-500:  #E30613;
  --red-100:  #fde6e8;
  --red-50:   #fcf3f4;

  --olive-100: #e8ede1;
  --mint-100:  #e8f4ee;
  --peach-100: #fcefe2;

  /* Neutrals */
  --ink-900: var(--black);
  --ink-700: #2c2c2a;
  --ink-500: var(--gray);
  --ink-400: #8a8a89;
  --ink-300: #b8b8b6;
  --ink-200: #dcdcda;
  --ink-100: #ececea;
  --ink-50:  #f6f6f4;
  --paper:   #FEFBFC;

  /* === Semantic === */
  --bg: var(--paper);
  --bg-soft: var(--ink-50);
  --bg-deep: var(--navy-700);
  --bg-dark: var(--black);
  --fg: var(--ink-900);
  --fg-muted: var(--ink-500);
  --line: var(--ink-200);
  --line-strong: var(--ink-300);

  --primary: var(--navy-700);
  --primary-hover: var(--navy-800);
  --action: var(--red-500);
  --action-hover: var(--red-700);

  /* === Type === */
  --font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: "Roboto", cursive;  /* Dolce Bold i grafisk profil — ej tillgänglig på Google Fonts */
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* === Radius === */
  --r-sm: 0px;
  --r-md: 0px;
  --r-lg: 0px;
  --r-xl: 0px;

  /* === Spacing === */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 36px;
  --sp-8: 48px;
  --sp-9: 72px;
  --sp-10: 96px;

  /* === Shadows === */
  --shadow-sm: 0 1px 3px rgba(29,29,27,0.04), 0 1px 2px rgba(29,29,27,0.02);
  --shadow-md: 0 4px 16px rgba(29,29,27,0.06), 0 2px 4px rgba(29,29,27,0.03);
  --shadow-lg: 0 16px 32px rgba(29,29,27,0.08), 0 4px 8px rgba(29,29,27,0.04);

  /* Layout */
  --maxw: 1240px;
  --header-h: 84px;
}

/* === Reset & base === */
*, *::before, *::after { box-sizing: border-box; }
main { padding-top: var(--header-h); }

/* === A11Y === */
:focus-visible {
  outline: 3px solid var(--navy-700);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: 0;
  top: -100px;
  background: var(--navy-700);
  color: white;
  padding: 12px 18px;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { top: 8px; }
.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;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* === Type === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.5vw, 32px); letter-spacing: -0.015em; }
h3 { font-size: clamp(20px, 2.5vw, 24px); }
h4 { font-size: clamp(18px, 2vw, 20px); letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}


.accent-text {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 39px);
  color: var(--c-navy);
  line-height: 1.1;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 0;
  font-weight: 400;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--action);
  color: white;
}
.btn--primary:hover { background: var(--action-hover); }

.btn--navy {
  background: var(--navy-700);
  color: white;
}
.btn--navy:hover { background: var(--navy-800); }

.btn--ghost {
  background: var(--bg-soft);
  border-color: transparent;
}
.btn--ghost:hover { background: var(--ink-100); color: var(--black); }

.btn--outline {
  background: transparent;
  border: 1px solid currentColor;
  color: var(--black);
}
.btn--outline:hover { background: var(--ink-50); }

.btn--light {
  background: white;
  color: var(--black);
}
.btn--light:hover { background: var(--ink-50); }

.btn--link {
  padding: 0;
  color: var(--navy-700);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 0;
}
.btn--link:hover { gap: 10px; color: var(--action); }

.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }

/* === Sections === */
.section {
  padding: var(--sp-9) 0;
  border-top: none;
}
.section--tight { padding: var(--sp-8) 0; }
.section--hero {
  padding: calc(var(--header-h) + var(--sp-9)) 0 var(--sp-9);
  border-top: 0;
}
main > .section--hero:first-child {
  margin-top: calc(-1 * var(--header-h));
}
.section--navy {
  background: var(--navy-700);
  color: white;
  border-top: 0;
}
.section--dark {
  background: var(--black);
  color: white;
  border-top: 0;
}
.section--soft { background: var(--bg-soft); border-top: 0; }
.section--peach { background: rgba(239,174,123,0.15); border-top: 0; }
.section--red { background: var(--c-darkred); color: white; border-top: 0; }
.section--olive { background: var(--c-olive); color: white; border-top: 0; }
.section--mint { background: var(--c-mint); border-top: 0; }
.section--gray { background: var(--gray); color: white; border-top: 0; }
.section--signal { background: var(--red); color: white; border-top: 0; }
.section--navy h1, .section--navy h2, .section--navy h3,
.section--dark h1, .section--dark h2, .section--dark h3,
.section--red h1, .section--red h2, .section--red h3,
.section--olive h1, .section--olive h2, .section--olive h3,
.section--gray h1, .section--gray h2, .section--gray h3,
.section--signal h1, .section--signal h2, .section--signal h3 { color: white; }
.section--navy .eyebrow,
.section--dark .eyebrow,
.section--red .eyebrow,
.section--olive .eyebrow,
.section--gray .eyebrow,
.section--signal .eyebrow { color: rgba(255,255,255,0.85); }

.section--navy .btn--ghost,
.section--dark .btn--ghost,
.section--red .btn--ghost,
.section--olive .btn--ghost,
.section--gray .btn--ghost,
.section--signal .btn--ghost,
.hero-banner .btn--ghost { background: rgba(255,255,255,0.15); color: white; border-color: rgba(255,255,255,0.3); }
.section--navy .btn--ghost:hover,
.section--dark .btn--ghost:hover,
.section--red .btn--ghost:hover,
.section--olive .btn--ghost:hover,
.section--gray .btn--ghost:hover,
.section--signal .btn--ghost:hover,
.hero-banner .btn--ghost:hover { background: rgba(255,255,255,0.25); color: white; }

.section--navy .btn--outline,
.section--dark .btn--outline,
.section--red .btn--outline,
.section--olive .btn--outline,
.section--gray .btn--outline,
.section--signal .btn--outline,
.hero-banner .btn--outline { color: white; border-color: rgba(255,255,255,0.6); }
.section--navy .btn--outline:hover,
.section--dark .btn--outline:hover,
.section--red .btn--outline:hover,
.section--olive .btn--outline:hover,
.section--gray .btn--outline:hover,
.section--signal .btn--outline:hover,
.hero-banner .btn--outline:hover { background: rgba(255,255,255,0.1); }

/* === Imagery placeholder === */
.img-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      var(--navy-100) 0 12px,
      var(--navy-50) 12px 24px
    );
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--navy-700);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.img-placeholder::after {
  content: attr(data-label);
  background: rgba(255,255,255,0.92);
  padding: 6px 12px;
  border-radius: 0;
  border: 1px solid var(--line);
  font-weight: 700;
}
.img-placeholder--dark {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.08) 0 12px,
      rgba(255,255,255,0.03) 12px 24px
    );
  color: rgba(255,255,255,0.85);
}
.img-placeholder--dark::after {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}
.img-placeholder--mint {
  background:
    repeating-linear-gradient(135deg, var(--mint-100) 0 12px, #f1faf5 12px 24px);
  color: var(--c-olive);
}
.img-placeholder--peach {
  background:
    repeating-linear-gradient(135deg, var(--peach-100) 0 12px, #fdf6ee 12px 24px);
  color: #8c5b32;
}

/* === Tag === */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 0;
  background: var(--navy-100);
  color: var(--navy-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
}
.tag--dark {
  background: rgba(255,255,255,0.1);
  color: white;
}
.tag--red {
  background: var(--red-50);
  color: var(--red-700);
}
.tag .dot {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--red-500);
}

/* === Grid === */
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === Card === */
.card {
  background: var(--paper);
  border: none;
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
}
.news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.news-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}
.news-card h2,
.news-card h3,
.news-card h4 { margin-bottom: 8px; line-height: 1.4; }
.news-card-date { margin-top: 8px; font-weight: 600; }
.news-card p { margin-top: 8px; }
.news-card:hover h2,
.news-card:hover h3,
.news-card:hover h4 { text-decoration: underline; }

.rule { height: 0; width: 100%; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.fade-up { animation: fadeUp .5s ease both; }

/* ============================================================
   DRIFT BANNER
   ============================================================ */
.drift-banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.drift-banner-dot--ok {
  background: var(--c-olive);
  animation: pulse-green 2s ease-in-out infinite;
}
.drift-banner-dot--warn {
  background: var(--c-peach);
  animation: pulse-warn 1.5s ease-in-out infinite;
}
.drift-banner-dot--error {
  background: var(--red-500);
  animation: pulse-error 1s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(81,102,56,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(81,102,56,0); }
}
@keyframes pulse-warn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,174,123,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(239,174,123,0); }
}
@keyframes pulse-error {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227,6,19,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(227,6,19,0); }
}
.drift-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: var(--r-md);
  position: relative;
  font-weight: 700;
}
.drift-indicator:hover { background: var(--bg-soft); }
.drift-indicator-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.drift-indicator--ok .drift-indicator-dot {
  background: var(--c-olive);
  animation: pulse-green 2s ease-in-out infinite;
}
.drift-indicator--warn .drift-indicator-dot {
  background: var(--c-peach);
  animation: pulse-warn 1.5s ease-in-out infinite;
}
.drift-indicator--error .drift-indicator-dot {
  background: var(--red-500);
  animation: pulse-error 1s ease-in-out infinite;
}
.drift-indicator-text {
  white-space: nowrap;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 20;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: white;
}

/* -- Single-row header: logo + actions -- */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.header-inner .logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-weight: 700;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-sans);
}
.header-btn:hover {
  color: rgba(255,255,255,0.7);
}
.header-btn svg {
  stroke: currentColor;
}

/* Drift indicator */
a.drift-indicator,
a.drift-indicator:hover,
a.drift-indicator:focus,
a.drift-indicator:visited {
  text-decoration: none;
  color: white;
  background: none;
  outline-color: rgba(255,255,255,0.5);
}
a.drift-indicator:hover {
  color: rgba(255,255,255,0.7);
}
.drift-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  display: block;
}
.drift-dot--warning { background: #facc15; }
.drift-dot--error { background: #ef4444; }

/* Fullscreen menu */
.fullscreen-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  color: white;
  z-index: 100;
  overflow-y: auto;
  animation: fullMenuSlide 0.25s ease;
}
.fullscreen-menu.open {
  display: block;
}
@keyframes fullMenuSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fullscreen-menu__inner {
  padding: 48px 24px 64px;
}
.fullmenu-top {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 48px;
}
.fullmenu-top > *:not(:first-child) {
  padding-left: 48px;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.fullmenu-block__title {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}
.fullmenu-block__title a {
  color: white;
  font-size: inherit;
}
.fullmenu-block__title a:hover {
  opacity: 0.8;
}
.fullmenu-block__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.fullmenu-col__title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7DC4A3;
  margin-bottom: 8px;
}
.fullmenu-col__toplink {
  display: none;
}
.fullmenu-col a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  font-weight: 400;
  transition: color 0.15s;
}
.fullmenu-col a:hover {
  color: white;
}
.fullmenu-side a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  transition: color 0.15s;
}
.fullmenu-side a:hover {
  color: white;
}
.fullmenu-side__link {
  font-weight: 700;
  font-size: 1.5rem !important;
  padding: 10px 0 !important;
}
.fullmenu-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-sm);
  padding: 10px 24px !important;
  cursor: pointer;
  color: white;
  font-size: 1rem !important;
  font-weight: 400 !important;
  font-family: var(--font-sans);
  margin-top: 16px;
  transition: background .15s;
}
.fullmenu-lang-btn:hover { background: rgba(255,255,255,0.05); }
@media (max-width: 900px) {
  .fullscreen-menu__inner {
    padding: 40px 32px 64px;
  }
  .fullmenu-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .fullmenu-top > *:not(:first-child) {
    padding-left: 0;
    border-left: none;
    padding-top: 0;
    border-top: none;
  }
  .fullmenu-block__cols {
    grid-template-columns: 1fr;
    gap: 16px;
    display: none;
  }
  .fullmenu-block.open .fullmenu-block__cols {
    display: grid;
    padding-top: 16px;
  }
  .fullmenu-block__title {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  .fullmenu-block__title a {
    text-decoration: none;
  }
  .fullmenu-col__title {
    border-bottom: none;
  }
  .fullscreen-menu a {
    border-bottom: none !important;
  }
  .fullmenu-block__title::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
  }
  .fullmenu-block.open .fullmenu-block__title::after {
    transform: rotate(-135deg);
  }
  .fullmenu-col__toplink {
    display: block;
    padding: 10px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
  }
  .fullmenu-col a,
  .fullmenu-side a,
  .fullscreen-menu a {
    text-decoration: none !important;
  }
  .fullmenu-col a {
    padding: 10px 0;
    font-size: 1.05rem;
  }
  .fullmenu-side {
    display: contents;
  }
  .fullmenu-side__link {
    padding: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.15;
    color: white !important;
  }
}
@media (max-width: 600px) {
  .fullscreen-menu__inner {
    padding: 32px 28px 48px;
  }
}
/* Footer social + lang row */
.footer-social-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 10px 24px;
  transition: background .15s;
}
.footer-lang-btn:hover { background: rgba(255,255,255,0.05); }


/* ============================================================
   HERO (Prototyp 2 — clean, no background image)
   ============================================================ */
.hero-v2 {
  padding: calc(var(--header-h) + var(--sp-8)) 0 var(--sp-7);
  border-top: 0;
  background: var(--bg);
}
.hero-v2--bg {
  background: linear-gradient(to bottom, rgba(10, 25, 47, 0.72), rgba(10, 25, 47, 0.82)), url('hero_bg.jpg') center/cover no-repeat;
  color: white;
  padding-top: calc(var(--header-h) + var(--sp-9) + 24px);
  padding-bottom: calc(var(--sp-9) + 24px);
}
.hero-v2--bg h1,
.hero-v2--bg h2 {
  color: white;
}
.hero-v2--bg .lead {
  color: rgba(255, 255, 255, 0.9);
}
.hero-v2 h1 {
  max-width: 700px;
  margin-bottom: 12px;
}

/* --- Hero Slider --- */
.hero-slider { position: relative; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease-in-out;
}
.hero-slide--active { opacity: 1; animation: heroZoom 8s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.05); } }
.hero-pause-btn:hover { background: rgba(0,0,0,0.6) !important; }

/* Hero — göteborg.se-inspirerad 50/50 split */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: var(--header-h);
  max-height: 520px;
}
.hero-split__left {
  background: var(--navy-700);
  color: white;
  display: flex;
  align-items: center;
}
.hero-split__left-inner {
  padding: var(--sp-8) var(--sp-8) var(--sp-8) max(var(--sp-5), calc((100vw - var(--maxw)) / 2 + var(--sp-5)));
  max-width: 100%;
}
.hero-split__left h1 {
  color: white;
  margin-bottom: 8px;
}
.hero-split__lead {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  margin-bottom: 24px;
}
.hero-split__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-split__btn {
  display: inline-block;
  padding: 14px 24px;
  border: 2px solid white;
  background: white;
  color: var(--navy-700);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: background 0.15s, box-shadow 0.15s;
}
.hero-split__btn:hover {
  background: rgba(255,255,255,0.85);
  box-shadow: var(--shadow-sm);
}
.hero-split__right {
  overflow: hidden;
}
.hero-split__right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Entry-section + Navigation tiles */
.entry-section {
  padding: var(--sp-6) 0;
  background: var(--bg-soft);
}
.nav-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
.nav-tile {
  background: white;
  padding: var(--sp-5);
  border-top: 4px solid var(--navy-700);
}
.nav-tile--navy { border-top-color: var(--navy-700); }
.nav-tile--olive { border-top-color: var(--c-olive); }
.nav-tile__head {
  text-decoration: none;
  color: var(--ink-900);
  display: block;
  margin-bottom: 16px;
}
.nav-tile__title {
  font-size: 1.25rem;
}
.nav-tile__head:hover .nav-tile__title {
  text-decoration: underline;
}
.nav-tile__list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-tile__list a {
  color: var(--ink-700);
  text-decoration: none;
  font-size: 15px;
}
.nav-tile__list a:hover {
  text-decoration: underline;
}
.nav-tile__more {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-900);
  text-decoration: none;
}
.nav-tile__more:hover {
  text-decoration: underline;
}

/* ============================================================
   ENTRY CARDS (BankID-style two equal entries)
   ============================================================ */
.entry-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}
.entry-card {
  background: var(--navy-700);
  color: white;
  border: none;
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
}
.entry-card--bg {
  background-color: var(--navy-700);
  background-image: var(--bg-img);
  background-size: auto 80%;
  background-position: right bottom;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.entry-card--bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--navy-700) 35%, transparent 70%);
  pointer-events: none;
}
.entry-card--bg > * {
  position: relative;
  z-index: 1;
}
.entry-card--it {
  background-color: var(--navy-700);
}
.entry-card--it.entry-card--bg::after {
  background: linear-gradient(to right, var(--navy-700) 35%, transparent 70%);
}
/* Entry card links (göteborg.se-stil) */
.entry-card__header {
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}
.entry-card__header:hover h3 {
  text-decoration: underline;
}
.entry-card__links {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.entry-card__links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}
.entry-card__links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.entry-card__more {
  font-weight: 700;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.entry-card__more:hover {
  color: white;
  text-decoration: underline;
}
.entry-card--has-img {
  flex-direction: row;
  padding: 0;
  overflow: hidden;
}
.entry-card-img {
  width: 40%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.entry-card-body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.entry-card-icon {
  width: 56px; height: 56px;
  background: var(--navy-50);
  color: var(--navy-700);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.entry-card--it .entry-card-icon {
  background: var(--olive-100);
  color: var(--c-olive);
}
.entry-card h3 {
  margin-bottom: 8px;
}
.entry-card p {
  margin-bottom: 20px;
  flex: 1;
}
.entry-card .btn {
  align-self: flex-start;
}

/* ============================================================
   GUIDANCE SECTION ("Vad vill du göra?")
   ============================================================ */
.guidance-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
}
.guidance-item {
  text-align: center;
  padding: var(--sp-5) var(--sp-3);
  border: none;
  background: var(--navy-700);
  color: white;
  transition: background .2s, box-shadow .2s;
}
.guidance-item:hover {
  background: var(--navy-800, #1d3f57);
}
.guidance-item-icon {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  background: rgba(255,255,255,0.15);
  color: white;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.guidance-item h4 {
  margin-bottom: 4px;
}


/* ============================================================
   DRIFT SUMMARY (inline on start page)
   ============================================================ */
.drift-summary {
  display: grid;
  gap: 12px;
}
.drift-event {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: var(--sp-4);
  background: white;
  border: none;
}
.drift-event-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.drift-event-dot--resolved { background: var(--c-olive); }
.drift-event-dot--planned { background: var(--c-peach); }
.drift-event-dot--active { background: var(--red-500); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.85);
  margin-top: var(--sp-9);
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-5);
  margin-top: auto;
  background-image: url('../svg/bkgr-light.svg');
  background-size: cover;
  background-position: center bottom;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
  border-bottom: none;
}
.footer-col h4,
.footer-col .footer-heading {
  color: white;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
  transition: color .15s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-left {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-sans);
}
.footer-bottom-right {
  display: flex;
  gap: 18px;
}
.footer-bottom-right a { color: rgba(255,255,255,0.85); }
.footer-bottom-right a:hover { color: white; }
.social-links {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  color: white;
  transition: background .15s, color .15s;
}
.social-links a:hover {
  background: white;
  color: var(--black);
  font-size: 12px;
  font-family: var(--font-sans);
}

/* === Stats === */
.stats-grid .stat-cell {
  padding: var(--sp-5);
}
.stats-grid .stat-cell + .stat-cell {
  border-left: none;
}
.stat-number {
  font-size: clamp(29px, 4vw, 49px);
  font-weight: 700;
  color: var(--c-olive);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: var(--font-display);
}
.stat-label {
  margin-top: 8px;
}

/* === Packages toggle === */
.toggle-group {
  display: flex;
  background: var(--ink-50);
  border-radius: 0;
  padding: 4px;
  border: none;
}
.toggle-group button {
  padding: 8px 18px;
  border-radius: 0;
  font-weight: 700;
  color: var(--gray);
}
.toggle-group button.active {
  background: white;
  color: var(--black);
  box-shadow: var(--shadow-sm);
}

/* === Package card === */
.pkg-card {
  padding: var(--sp-6);
  position: relative;
}
.pkg-card.popular {
  border-color: var(--navy-700);
  border-width: 2px;
}
.pkg-popular-badge {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--red-500);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 0;
}

/* === Local section === */
.local-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-7);
  align-items: center;
}
.town-row {
  display: grid;
  grid-template-columns: 1.1fr 2fr 80px;
  gap: 14px;
  align-items: center;
}
.progress-bar {
  height: 8px;
  background: var(--ink-100);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 99px;
}
.status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

/* === CTA band === */
.cta-band {
  background: var(--navy-700);
  color: white;
  padding: var(--sp-8) 0;
  background-image: url('../svg/bkgr-light.svg');
  background-size: cover;
  background-position: center;
}
.cta-band h2 { color: white; font-size: clamp(26px, 3vw, 39px); }
.cta-band p { color: rgba(255,255,255,0.9); }
.cta-band .btn--ghost {
  color: white;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}
.cta-band .btn--ghost:hover {
  background: rgba(255,255,255,0.2);
}

/* === CTA band toned down (Prototyp 2) === */
.cta-band--soft {
  background: var(--mint-100);
  border-top: none;
}

/* Flush mot footer när sista blocket har egen bakgrund */
main:has(> .cta-band-block:last-child) + .site-footer { margin-top: 0; }

/* CTA band block */
.cta-band-block { padding: var(--sp-8) 0; }
.cta-band-block .btn--ghost { color: white; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.cta-band-block .btn--ghost:hover { background: rgba(255,255,255,0.2); }
.cta-band-block .btn--outline { color: white; border-color: rgba(255,255,255,0.6); }
.cta-band-block .btn--outline:hover { background: rgba(255,255,255,0.1); }
.hero-banner {
  background: var(--navy-700);
  color: white;
  overflow: hidden;
  border-radius: var(--r-lg);
  max-width: 1400px;
  margin: 0 auto;
}
.hero-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-banner-text {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-banner-text h2 { color: white; margin-bottom: 16px; font-size: clamp(32px, 4vw, 44px); }
.hero-banner-text p { color: rgba(255,255,255,0.85); margin-bottom: 8px; }
.hero-banner-img {
  display: flex;
}
.hero-banner-img picture {
  width: 100%;
}
.hero-banner-img img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  display: block;
}
/* hero-banner responsiv: flyttad till 900px-blocket */

/* === Service type rows === */
.service-row {
  text-align: left;
  background: var(--bg-soft);
  border: none;
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  transition: box-shadow .15s, transform .15s;
}
.service-row.navigable:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--navy-50);
  color: var(--navy-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.service-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy-700);
}

/* === FAQ === */
.faq-item {
  background: rgba(239,174,123,0.10);
  border: none;
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-item-header {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: transparent;
}
.faq-item-header span:first-child {
  font-weight: 700;
}
.faq-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--navy-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform .2s, background .2s, color .2s;
}
.faq-item.open .faq-toggle {
  background: var(--navy-700);
  color: white;
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding: 0 20px 20px;
  color: var(--ink-700);
}
.faq-item.open .faq-answer { display: block; }

.section--navy .faq-item,
.section--dark .faq-item,
.section--red .faq-item,
.section--olive .faq-item,
.section--gray .faq-item,
.section--signal .faq-item { background: rgba(255,255,255,0.1); }
.section--navy .faq-item-header,
.section--dark .faq-item-header,
.section--red .faq-item-header,
.section--olive .faq-item-header,
.section--gray .faq-item-header,
.section--signal .faq-item-header { color: white; }
.section--navy .faq-answer,
.section--dark .faq-answer,
.section--red .faq-answer,
.section--olive .faq-answer,
.section--gray .faq-answer,
.section--signal .faq-answer { color: rgba(255,255,255,0.85); }
.section--navy .faq-toggle,
.section--dark .faq-toggle,
.section--red .faq-toggle,
.section--olive .faq-toggle,
.section--gray .faq-toggle,
.section--signal .faq-toggle { background: rgba(255,255,255,0.15); color: white; }

/* === Tjänsteguide category tabs === */
.tjanst-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: var(--ink-50);
  padding: 4px;
  width: fit-content;
}
.tjanst-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 400;
  color: var(--fg-muted);
  white-space: nowrap;
}
.tjanst-tab:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.5);
}
.tjanst-tab.active {
  background: white;
  color: var(--navy-700);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* === Anslut-kort (målgruppsväljare) === */
.anslut-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.anslut-card {
  background: white;
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.anslut-card:hover {
  border-color: var(--navy-700);
  box-shadow: var(--shadow-md);
}
.anslut-card.active {
  border-color: var(--navy-700);
  background: var(--navy-700);
  color: white;
}
.anslut-card.active svg {
  stroke: white;
}

/* === Tjänsteguide detail layout === */
.tjanst-detail-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.tjanst-filter-sidebar {
  position: sticky;
  top: 96px;
  background: var(--bg-soft);
  padding: var(--sp-5);
}
.tjanst-filter-group {
  margin-bottom: 16px;
}
.tjanst-filter-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink-700);
}
.tjanst-filter-group select,
.tjanst-filter-group input[type="checkbox"] {
  accent-color: var(--navy-700);
}
.tjanst-filter-group select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--ink-200);
  background: white;
  font-family: var(--font-sans);
  font-size: 14px;
}
@media (max-width: 900px) {
  .tjanst-detail-layout {
    grid-template-columns: 1fr;
  }
  .tjanst-filter-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .tjanst-filter-sidebar .eyebrow {
    grid-column: 1 / -1;
  }
  .tjanst-filter-group {
    margin-bottom: 0;
  }
}

/* === Provider accordion === */
.tjanst-provider-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.provider-group {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: white;
}
.provider-header {
  display: flex;
  width: 100%;
  min-height: 80px;
  padding: 0;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  transition: opacity 0.15s;
}
.provider-header:hover {
  opacity: 0.92;
}
.provider-header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 16px 24px;
  flex-shrink: 0;
}
.provider-header-banner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 16px 24px;
  position: relative;
}
.provider-campaign-badge {
  background: var(--red-600);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
}
.provider-plan-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-600);
}
.provider-chevron {
  transition: transform 0.2s;
  color: var(--ink-500);
  flex-shrink: 0;
}
.provider-group.open .provider-chevron {
  transform: rotate(180deg);
}

/* Service rows */
.provider-services {
  border-top: 1px solid var(--ink-100);
}
.service-row {
  display: grid;
  grid-template-columns: 80px 140px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ink-100);
}
.service-row:last-child {
  border-bottom: none;
}
.service-row.has-campaign {
  background: var(--red-50);
}
.service-logo {
  width: 56px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-speed {
  display: flex;
  flex-direction: column;
}
.service-speed-value {
  font-weight: 700;
  font-size: 17px;
  color: var(--navy-700);
}
.service-speed-unit {
  font-size: 13px;
  color: var(--ink-500);
}
.service-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.service-info-box {
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  background: var(--ink-50);
  border-radius: 6px;
  min-width: 0;
}
.service-info-label {
  font-size: 11px;
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.service-info-value {
  font-weight: 700;
  font-size: 14px;
}
.service-price-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
}
.service-price {
  font-size: 18px;
  font-weight: 700;
}
.service-campaign-tag {
  font-size: 12px;
  color: var(--red-700);
  font-weight: 600;
}
.service-order-btn {
  padding: 8px 18px;
  font-size: 14px;
}

/* Responsive provider accordion */
@media (max-width: 900px) {
  .provider-header-logo {
    min-width: 100px;
    padding: 12px 16px;
  }
  .provider-header-logo span {
    font-size: 14px;
  }
  .service-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  .service-logo {
    display: none;
  }
  .service-info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-price-action {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
}

/* === FAQ audience toggle === */
.faq-audience-btn {
  padding: 8px 20px;
  font-weight: 700;
  color: var(--gray);
  background: transparent;
}
.faq-audience-btn.active {
  background: white;
  color: var(--black);
  box-shadow: var(--shadow-sm);
}

/* === FAQ sidebar === */
.faq-cat-btn {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  text-align: left;
  border-radius: var(--r-md);
  border-left: none;
}
.faq-cat-btn.active {
  background: var(--navy-50);
  color: var(--black);
  font-weight: 700;
}

/* === Overlay === */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20,40,58,0.55);
  backdrop-filter: blur(4px);
  display: none;
}
.overlay.open { display: grid; place-items: center; padding: 20px; }
.overlay--search.open { display: block; padding: 10vh 20px 20px; }

/* === Order flow === */
.order-modal {
  background: var(--paper);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 880px;
  max-height: 92vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
}
.order-header {
  padding: 20px 28px;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stepper {
  padding: 16px 28px;
  background: var(--bg-soft);
  border-bottom: none;
  display: flex;
  gap: 8px;
  align-items: center;
}
.step-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.step-dot.done { background: var(--navy-700); color: white; }
.step-dot.active { background: var(--navy-700); color: white; }
.step-dot.pending { background: var(--ink-200); color: var(--gray); }
.step-line {
  flex: 1;
  height: 1px;
}
.step-line.done { background: var(--navy-700); }
.step-line.pending { background: var(--line); }
.order-body { padding: 28px; }
.order-footer {
  padding: 16px 28px;
  border-top: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* === Result boxes === */
.result-box {
  padding: 16px;
  border-radius: var(--r-md);
}
.result-box--ok {
  background: var(--mint-100);
  border: none;
}
.result-box--warn {
  background: var(--peach-100);
  border: none;
}
.result-box--muted {
  background: var(--ink-50);
  border: none;
}

/* === Search overlay === */
.search-modal {
  background: var(--paper);
  border-radius: var(--r-lg);
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.search-input-row {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: none;
  gap: 12px;
}
.search-input-row input {
  flex: 1;
  border: 0;
  outline: none;
  font-family: var(--font-sans);
  background: transparent;
}
.search-input-row input:focus-visible {
  outline: 2px solid var(--navy-700);
  outline-offset: 2px;
  border-radius: 2px;
}
.search-results {
  max-height: 420px;
  overflow: auto;
  padding: 6px;
}
.search-result-item {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  text-align: left;
  margin-bottom: 2px;
}
.search-result-item:hover { background: var(--bg-soft); }

/* === Contact form === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-7);
}
.contact-row {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: none;
}
.form-field label {
  display: block;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--bg-soft);
}
.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: 3px solid var(--navy-700);
  outline-offset: 2px;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 2px rgba(38,79,113,0.25);
}
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: var(--red-600, #c00);
  box-shadow: 0 0 0 2px rgba(204,0,0,0.15);
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* === RichText marginaler (globala p/h margin: 0 nollställning) === */
.richtext p + p,
.richtext h1 + p, .richtext h2 + p, .richtext h3 + p, .richtext h4 + p,
.richtext p + h1, .richtext p + h2, .richtext p + h3, .richtext p + h4,
.richtext ul + p, .richtext ol + p, .richtext p + ul, .richtext p + ol {
  margin-top: 0.75em;
}
.richtext ul, .richtext ol {
  padding-left: 1.5em;
}
.richtext ul { list-style: disc; }
.richtext ol { list-style: decimal; }
.richtext li + li {
  margin-top: 0.35em;
}
.richtext .lead {
  font-size: 1.25em;
  line-height: 1.5;
  color: var(--gray);
}

/* === Formulärblock (HSP-stil) === */
.form-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.form-block-grid p + p,
.form-block-grid h1 + p,
.form-block-grid h2 + p,
.form-block-grid h3 + p,
.form-block-grid p + h1,
.form-block-grid p + h2,
.form-block-grid p + h3 {
  margin-top: 0.75em;
}
/* form-block responsiv: flyttad till 900px-blocket */
.section--navy .form-field input,
.section--navy .form-field textarea,
.section--navy .form-field select,
.section--dark .form-field input,
.section--dark .form-field textarea,
.section--dark .form-field select,
.section--red .form-field input,
.section--red .form-field textarea,
.section--red .form-field select,
.section--olive .form-field input,
.section--olive .form-field textarea,
.section--olive .form-field select,
.section--gray .form-field input,
.section--gray .form-field textarea,
.section--gray .form-field select,
.section--signal .form-field input,
.section--signal .form-field textarea,
.section--signal .form-field select {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  color: white;
}
.section--navy .form-field input::placeholder,
.section--navy .form-field textarea::placeholder,
.section--dark .form-field input::placeholder,
.section--dark .form-field textarea::placeholder,
.section--red .form-field input::placeholder,
.section--red .form-field textarea::placeholder,
.section--olive .form-field input::placeholder,
.section--olive .form-field textarea::placeholder,
.section--gray .form-field input::placeholder,
.section--gray .form-field textarea::placeholder,
.section--signal .form-field input::placeholder,
.section--signal .form-field textarea::placeholder {
  color: rgba(255,255,255,0.5);
}
.section--navy .form-field select option,
.section--dark .form-field select option,
.section--red .form-field select option,
.section--olive .form-field select option,
.section--gray .form-field select option,
.section--signal .form-field select option {
  background: white;
  color: var(--black, #1a1a1a);
}
.section--navy .form-field label,
.section--dark .form-field label,
.section--red .form-field label,
.section--olive .form-field label,
.section--gray .form-field label,
.section--signal .form-field label {
  color: rgba(255,255,255,0.9);
}

/* === Mina sidor === */
.login-page {
  background: var(--navy-700);
  color: white;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
}
.dashboard-tabs {
  background: var(--bg-soft);
  border-bottom: none;
  position: sticky;
  top: var(--header-h);
  z-index: 5;
}
.dashboard-tabs button {
  padding: 16px 18px;
}
.dashboard-tabs button.active {
  font-weight: 700;
  color: var(--navy-700);
  border-bottom: 2px solid var(--navy-700);
}
.dashboard-tabs button:not(.active) {
  color: var(--gray);
  border-bottom: 2px solid transparent;
}

/* === IT page cards === */
.it-service-card {
  display: flex;
  gap: 20px;
}
.it-service-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--navy-50);
  color: var(--navy-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.check-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--c-olive);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
}

/* === Values section === */
.value-item {
  padding: 24px;
  border-top: none;
  background: var(--bg-soft);
}

/* === Language modal === */
.lang-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.lang-modal {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 32px;
  min-width: 340px;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.lang-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.lang-modal-close {
  width: 36px;
  height: 36px;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-modal-close:hover { background: var(--bg-soft); }
.lang-modal-list { display: flex; flex-direction: column; gap: 4px; }
.lang-modal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  text-align: left;
}
.lang-modal-item:hover { background: var(--bg-soft); }
.lang-modal-item.active { background: var(--navy-50); }
.lang-modal-item:focus-visible { outline: 2px solid var(--navy-700); outline-offset: -2px; }
.lang-modal-item .lang-check { display: none; color: var(--navy-700); }
.lang-modal-item.active .lang-check { display: block; }
.lang-modal-disclaimer, .lang-modal-disclaimer * {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--black) !important;
}

/* Language modal animation */
.lang-modal-overlay { opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.lang-modal-overlay.lang-modal--open { opacity: 1; visibility: visible; }
.lang-modal-overlay[hidden] { display: none; }
.lang-modal { transform: translateY(16px); transition: transform .2s; }
.lang-modal--open .lang-modal { transform: translateY(0); }

/* Hide Google Translate toolbar */
.goog-te-banner-frame { display: none !important; }
.skiptranslate { display: none !important; }
body { top: 0 !important; }
#google_translate_element { display: none !important; }

/* Translate notice banner */
.translate-notice {
  background: var(--navy-50);
  border-bottom: 1px solid var(--navy-100);
  padding: 14px 0;
  font-size: 0.95rem;
  color: var(--black) !important;
}
.translate-notice, .translate-notice * { color: var(--black) !important; }
.translate-notice__inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === Bare input focus === */
.addr-input {
  outline: none;
}

/* === Address autocomplete === */
.address-form {
  position: relative;
}
.addr-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  margin-top: 4px;
  list-style: none;
  padding: 0;
}
.addr-suggestions button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  border: none;
  border-bottom: 1px solid var(--ink-50);
  background: none;
  cursor: pointer;
  font-family: var(--font-sans);
}
.addr-suggestions button:last-child {
  border-bottom: none;
}
.addr-suggestions button:hover,
.addr-suggestions button.highlighted {
  background: var(--ink-50);
}
.addr-input:focus-visible {
  outline: 2px solid var(--navy-700);
  outline-offset: 2px;
  border-radius: 2px;
}

/* === Address check result === */
.address-result-container {
  position: relative;
  z-index: 10;
}
.result-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
}

/* ============================================================
   CHATBOT PLACEHOLDER
   ============================================================ */
.chatbot-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy-700);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  transition: background .2s, transform .2s;
  border: none;
  cursor: pointer;
}
.chatbot-fab:hover {
  background: var(--navy-800);
  transform: scale(1.05);
}
.chatbot-modal {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 51;
  width: 340px;
  background: var(--paper);
  border: none;
  box-shadow: var(--shadow-lg);
  padding: var(--sp-6);
  display: none;
}
.chatbot-modal.open {
  display: block;
  animation: fadeUp .25s ease both;
}
.chatbot-modal h4 {
  margin-bottom: 8px;
}
.chatbot-modal p {
  margin-bottom: 16px;
}

/* ============================================================
   TJÄNSTEGUIDE PLACEHOLDER
   ============================================================ */
.tjansteguide-placeholder {
  background: var(--navy-50);
  border: none;
  padding: var(--sp-6);
  text-align: center;
}
.tjansteguide-placeholder h3 {
  margin-bottom: 8px;
}
.tjansteguide-placeholder p {
  margin-bottom: 16px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.mb-1 { margin-bottom: var(--sp-1); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.text-center { text-align: center; }
.text--muted { color: var(--fg-muted); }

/* ============================================================
   COMMON PATTERNS
   ============================================================ */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--sp-5);
}
.section-header-row--center { align-items: center; }

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.link--arrow {
  color: var(--navy-700);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pill-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid #c5cad3;
  background: white;
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
}
.pill-btn.active {
  background: var(--navy-700);
  color: white;
}

.search-pill {
  position: relative;
  max-width: 560px;
  width: 100%;
}
.search-pill-input {
  width: 100%;
  border: 1px solid #c5cad3;
  border-radius: 9999px;
  padding: 16px 56px 16px 28px;
  background: white;
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
}
.search-pill-input:focus-visible { border-color: var(--navy-700); outline: 2px solid var(--navy-700); outline-offset: 2px; }
.search-pill-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
.split-layout__media--right { order: 2; }

.center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
}

.img-cover {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--r-lg);
}

/* ============================================================
   NEWS CARD EXTENSIONS
   ============================================================ */
.news-card__img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin-bottom: 16px;
}
.news-card__excerpt { }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-container { max-width: 920px; }
.article-narrow { max-width: 660px; margin-left: auto; margin-right: auto; }
.article-date { font-weight: 600; margin-bottom: 20px; }
.article-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 32px;
}
.article-hero-img {
  max-width: 800px;
  margin: 0 auto 48px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.article-hero-img img { width: 100%; display: block; }
.article-ingress {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-600);
  margin-bottom: 32px;
  font-weight: 500;
}
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-600);
}

/* ============================================================
   LIST PAGE
   ============================================================ */
.list-hero { padding: 96px 0; background: var(--bg-soft); }
.list-hero h1 { margin-bottom: 24px; }
.list-hero__desc { font-size: 20px; line-height: 1.6; max-width: 800px; }

/* ============================================================
   FAQ PAGE
   ============================================================ */
.faq-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.faq-sidebar { position: sticky; top: 96px; }
.faq-nav { display: grid; gap: 2px; }
.faq-questions { display: grid; gap: 8px; }
.faq-count { opacity: 0.5; font-size: 0.85em; }

/* ============================================================
   PROJECT PAGE
   ============================================================ */
.project-hero {
  padding: var(--header-h) 0 0;
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  color: white;
}
.project-hero__inner {
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-10);
  position: relative;
  z-index: 2;
}
.project-intro {
  font-size: 20px;
  line-height: 1.6;
  max-width: 800px;
  margin-top: 24px;
}
.project-intro--light { color: rgba(255,255,255,0.85); }
.project-contact-card {
  padding: var(--sp-4);
  background: var(--bg-soft);
}
.project-contact-card__name { font-weight: 700; margin-bottom: 4px; }
.project-contact-card__role { font-size: 0.9rem; color: var(--gray); margin-bottom: 12px; }
.project-contact-card__link { display: block; text-decoration: underline; margin-bottom: 4px; }
.project-contact-card__link:last-child { margin-bottom: 0; }
.project-sidebar-heading { font-size: 1.1rem; }

.donut-chart {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto var(--sp-4);
}
.donut-chart svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.donut-center__number { font-size: 1.75rem; font-weight: 700; }
.donut-center__label { font-size: 0.75rem; color: var(--gray); line-height: 1.3; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.donut-legend__row { display: flex; justify-content: space-between; align-items: center; }
.donut-legend__indicator { display: flex; align-items: center; gap: 8px; }
.donut-legend__color { width: 12px; height: 12px; display: inline-block; }
.donut-legend__text { font-size: 0.9rem; }

/* ============================================================
   DRIFT EVENTS (statusEventsBlock)
   ============================================================ */
.drift-event__body { flex: 1; min-width: 0; }
.drift-event__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.drift-event__title { font-size: 16px; font-weight: 700; }
.drift-event__badge {
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}
.drift-event__badge--active { background: rgba(227,6,19,0.12); color: var(--red-500); }
.drift-event__badge--planned { background: rgba(239,174,123,0.2); color: #b5762e; }
.drift-event__badge--resolved { background: rgba(81,102,56,0.12); color: var(--c-olive); }
.drift-event__desc { font-size: 14px; color: var(--gray); margin: 0; line-height: 1.5; }
.drift-event__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 13px;
  color: var(--gray);
}

/* ============================================================
   FORM BLOCK
   ============================================================ */
.form-success {
  padding: 24px;
  background: var(--mint-100);
  border-radius: var(--r-lg);
  text-align: center;
}
.form-success p {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0;
  color: var(--ink-700);
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.form-footer__policy { font-size: 0.9rem; max-width: 360px; margin: 0; }
.form-error-box {
  padding: 12px 16px;
  background: var(--red-50);
  border: 1px solid var(--red-100);
  border-radius: var(--r-md);
  color: var(--red-700);
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* ============================================================
   CONTACT INFO BLOCK
   ============================================================ */
.contact-info-block { padding: var(--sp-7) 0; }
.contact-row__icon-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-row__icon { flex-shrink: 0; margin-top: 2px; opacity: 0.6; }
.contact-row__label { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }

/* ============================================================
   VIDEO / IMAGE-TEXT BLOCK
   ============================================================ */
.video-facade {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  cursor: pointer;
  background: #000;
}
.video-facade__thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}
.video-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: #B01C1C;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   HERO BLOCK
   ============================================================ */
.hero-block {
  padding: 0;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-block__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
.hero-block__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-block__video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-block__video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}
.hero-block__content {
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-10);
  position: relative;
  z-index: 2;
}
.hero-block__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-pause-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
  background: rgba(0,0,0,0.3);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

/* ============================================================
   ADDRESS LOOKUP RESULTS
   ============================================================ */
.addr-result {
  margin-top: 16px;
  padding: 24px;
  background: white;
  border-radius: var(--r-lg);
}
.addr-result--ok { border-left: 4px solid #22c55e; }
.addr-result--warn { border-left: 4px solid #f59e0b; }
.addr-result--none { border-left: 4px solid var(--ink-300); }
.addr-result__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* ============================================================
   KEY FIGURES BLOCK
   ============================================================ */
.key-figures { padding: clamp(60px, 10vw, 120px) 0; }
.key-figures__heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}
.key-figures__item { padding: clamp(24px, 4vw, 48px) 16px; }

/* ============================================================
   CARD ITEM
   ============================================================ */
.card--flex { display: flex; flex-direction: column; }
.card__step { font-size: 2rem; font-weight: 700; opacity: 0.5; margin-bottom: 16px; }
.card__body { margin-bottom: 24px; flex: 1; opacity: 0.85; }
.card__links { display: flex; flex-direction: column; gap: 8px; }

/* --- Responsive: new classes --- */
@media (max-width: 900px) {
  .split-layout { grid-template-columns: 1fr; }
  .section-header-row { flex-wrap: wrap; }
}

/* ============================================================
   NEWS-GRID (newsListBlock — ersätter inline-styles)
   ============================================================ */
.news-grid-2 { grid-template-columns: repeat(2, 1fr); }
.news-grid-3 { grid-template-columns: repeat(3, 1fr); }
.news-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   CONTACT-GRID (contactInfoBlock — ersätter inline-styles)
   ============================================================ */
.contact-grid-1 { grid-template-columns: 1fr; }
.contact-grid-2 { grid-template-columns: repeat(2, 1fr); }
.contact-grid-3 { grid-template-columns: repeat(3, 1fr); }
.contact-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   INFO-BANNER INNER (infoBannerBlock — ersätter inline-styles)
   ============================================================ */
.info-banner__inner { display: flex; align-items: center; justify-content: center; gap: 12px; }

/* ============================================================
   PROJECT-MAP (projectPage — ersätter inline-styles)
   ============================================================ */
.project-map { width: 100%; height: 450px; border: 1px solid var(--line); }

/* ============================================================
   GAP UTILITIES
   ============================================================ */
.gap-0 { gap: 0; }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .header-nav { display: none !important; }
  .drift-indicator { display: none !important; }
  .header-btn--search { display: none !important; }
}

@media (max-width: 900px) {
  .section { padding: var(--sp-8) 0; }
  .section--tight { padding: var(--sp-6) 0; }
  .section--hero { padding: calc(var(--header-h) + var(--sp-6)) 0 var(--sp-7); }
  .hero-v2 { padding: calc(var(--header-h) + var(--sp-6)) 0 var(--sp-7); }

  /* Grids: 2-kolumns mellansteg för 3+ kolumner */
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .entry-cards { grid-template-columns: 1fr; }
  .entry-card-img { width: 30%; min-height: 160px; }
  .guidance-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-img-col { display: none; }
  .local-grid { grid-template-columns: 1fr !important; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stats-grid .stat-cell { border-left: 0 !important; border-top: 1px solid var(--line); }
  .stats-grid .stat-cell:nth-child(2n) { border-left: 1px solid var(--line) !important; }
  .stats-grid .stat-cell:nth-child(1),
  .stats-grid .stat-cell:nth-child(2) { border-top: 0; }
  .about-grid { grid-template-columns: 1fr !important; }
  .it-promise-grid { grid-template-columns: 1fr !important; }
  .faq-layout { grid-template-columns: 1fr !important; }
  .faq-layout aside { position: static !important; }
  .addr-grid { grid-template-columns: 1fr !important; }
  .nav-tiles { grid-template-columns: 1fr; }

  /* Hero: reducera min-height */
  .hero-block { min-height: 45vh; }
  .hero-block__content { padding-top: var(--sp-8); padding-bottom: var(--sp-8); }

  /* Split-layout bild: responsiv höjd */
  .img-cover { height: 280px; }

  /* Hero-banner (flyttat från 768px) */
  .hero-banner-inner { grid-template-columns: 1fr; }
  .hero-banner-img { order: -1; }
  .hero-banner-img img { aspect-ratio: 3/2; }
  .hero-banner-text { padding: 48px 32px; }

  /* Form-block (flyttat från 768px) */
  .form-block-grid { grid-template-columns: 1fr; }
  .form-row-2col { grid-template-columns: 1fr !important; }

  /* Drifthändelser: stacka metadata */
  .drift-event__meta { flex-direction: column; gap: 4px; }

  /* Projekt-hero: reducera padding */
  .project-hero__inner { padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
  .list-hero { padding: var(--sp-8) 0; }

  /* News-grid + contact-grid */
  .news-grid-3, .news-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid-3, .contact-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  /* Container: tätare padding */
  .container { padding-left: 20px; padding-right: 20px; }

  /* Alla grids till 1-kolumn */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Sektions-padding: ytterligare reducering */
  .section { padding: 40px 0; }
  .section--tight { padding: var(--sp-5) 0; }

  /* Hero: lägre */
  .hero-block { min-height: 35vh; }
  .hero-block__content { padding-top: var(--sp-6); padding-bottom: var(--sp-6); }

  /* Split-layout bild: ännu kortare */
  .img-cover { height: 220px; }

  /* Hero-banner: tätare */
  .hero-banner-text { padding: 32px 20px; }

  /* Projekt-hero: reducera */
  .project-hero__inner { padding-top: var(--sp-6); padding-bottom: var(--sp-6); }

  /* Filterknappar: horisontell scroll */
  .drift-filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .drift-filters::-webkit-scrollbar { display: none; }
  .pill-btn { flex-shrink: 0; }

  /* Knappar: lite mindre padding */
  .btn { padding: 12px 22px; }

  /* Karta: reducerad höjd */
  .project-map { height: 300px; }

  /* List-hero */
  .list-hero { padding: var(--sp-6) 0; }

  /* News-grid + contact-grid: full 1-kolumn */
  .news-grid-2, .news-grid-3, .news-grid-4 { grid-template-columns: 1fr; }
  .contact-grid-2, .contact-grid-3, .contact-grid-4 { grid-template-columns: 1fr; }

  /* Info-banner: wrappa */
  .info-banner__inner { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }

  /* Befintliga regler */
  .footer-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr !important; }
  .guidance-grid { grid-template-columns: 1fr; }
  .chatbot-modal { right: 12px; left: 12px; width: auto; }
  .step-label-text { display: none; }
  .hero-split { grid-template-columns: 1fr; max-height: none; }
  .hero-split__right { max-height: 200px; }
  .hero-split__left-inner { padding: var(--sp-6) var(--sp-5); }
  .hero-split__btn { padding: 12px 16px; font-size: 16px; }
}

/* === Projektdetalj === */
.project-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-7);
  align-items: start;
}
.project-content { min-width: 0; }
.project-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.project-stats-card {
  background: var(--bg-soft);
  padding: var(--sp-5);
}
.project-tabs {
  border-bottom: 1px solid var(--line);
  background: white;
  position: sticky;
  top: var(--header-h);
  z-index: 10;
}
.project-tabs__list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.project-tabs__tab {
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.project-tabs__tab:hover { color: var(--black); }
.project-tabs__tab--active {
  color: var(--black);
  border-bottom-color: var(--black);
  font-weight: 700;
}
.project-panel--hidden { display: none; }
.project-news-item {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.project-news-item:last-child { border-bottom: none; }
.project-panel--hidden { display: none !important; }
.project-faq-list { display: grid; gap: 8px; }
.news-text--collapsed {
  max-height: 6em;
  overflow: hidden;
  position: relative;
}
.news-text--collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5em;
  background: linear-gradient(transparent, white);
}
.news-read-more {
  background: none;
  border: none;
  color: var(--black);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 0 0;
  font-family: var(--font-sans);
  text-decoration: underline;
}
.news-read-more:hover { color: var(--gray); }
.project-doc-list { display: flex; flex-direction: column; gap: 8px; }
.project-doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-soft);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.project-doc-item:hover { background: var(--line); }

@media (max-width: 900px) {
  .project-layout { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
}
@media (max-width: 600px) {
  .project-tabs__tab { padding: 12px 16px; font-size: 0.85rem; }
}

/* ============================================================
   RESPONSIVE — 400px (små telefoner)
   ============================================================ */
@media (max-width: 400px) {
  .container { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: clamp(26px, 7vw, 32px); }
  h2 { font-size: clamp(22px, 5vw, 26px); }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; justify-content: center; }
  .hero-banner-text { padding: 24px 16px; }
  .card { padding: var(--sp-4); }
  .project-tabs__tab { padding: 10px 12px; font-size: 0.8rem; }
  .search-pill-input { padding: 12px 48px 12px 16px; }
  .faq-item-header { padding: 14px 16px; }
}

/* ============================================================
   SERVICEGUIDE — Segmented control + iframe
   ============================================================ */
.sg-segment-control {
  display: flex;
  gap: 4px;
  background: var(--ink-100, #e8e8e6);
  padding: 4px;
  border-radius: var(--r-md, 8px);
  width: fit-content;
  margin-bottom: var(--sp-6, 24px);
}
.sg-segment-btn {
  padding: 8px 20px;
  font-weight: 700;
  color: var(--gray, #6b7280);
  background: transparent;
  border: none;
  border-radius: var(--r-md, 8px);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.sg-segment-btn:hover {
  color: var(--black, #1a1a1a);
}
.sg-segment-btn.active {
  background: white;
  color: var(--black, #1a1a1a);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.1));
}
.sg-iframe-container {
  border-radius: var(--r-lg, 12px);
  overflow: hidden;
  background: white;
}
.sg-iframe {
  width: 100%;
  border: none;
  min-height: 800px;
  display: block;
}
.sg-placeholder {
  display: none;
  text-align: center;
  padding: 80px 24px;
  color: var(--gray, #6b7280);
}
.sg-iframe-container.sg-blocked .sg-iframe { display: none; }
.sg-iframe-container.sg-blocked .sg-placeholder { display: block; }

@media (max-width: 600px) {
  .sg-iframe { min-height: 600px; }
}
@media (max-width: 400px) {
  .sg-iframe { min-height: 500px; }
}

/* Project card image (Slimsy picture) */
.project-card__img img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  margin-bottom: 16px;
}

/* Hidden utility */
[hidden] { display: none !important; }
