/* =========================================================================
   Christers Tak — byggprofessionell takfirma. (build trigger 2026-05-10)

   Design: ren vit bakgrund, mörk navy (#1a2a4f, från logon) som primary,
   solgul (#f5c842, från logon) som accent. En typsnittsfamilj (Manrope).
   Mjuka rundade kort med diskret skugga. Direkt matchande Christers Tak-logon
   där husformerna är navy och solen bakom är gul.
   ========================================================================= */

:root {
  /* ---- Färg ---- */
  --bg:           #ffffff;
  --bg-soft:      #f4f6fa;     /* mjuk blå-grå för alternerande sektioner */
  --bg-tint:      #e6ecf5;     /* lite mörkare blå-tonad */
  --rule:         #dde3ec;     /* mjuk avdelare */
  --rule-strong:  #c4cdd9;
  --ink:          #1a2a4f;     /* logo-navy — huvudtext + brand */
  --ink-soft:     #2c3a5a;     /* lite ljusare brödtext */
  --ink-mute:     #56668a;     /* sekundär text */
  --ink-faint:    #8590a8;     /* metadata */
  --primary:      #1a2a4f;     /* navy — knappar, länkar, eyebrow */
  --primary-deep: #0d1a35;
  --primary-soft: #e6ecf5;
  --accent:       #f5c842;     /* solgul från logon — highlight, CTA */
  --accent-deep:  #d9a91e;
  --accent-soft:  #fdf3d4;
  --warn:         #d04020;
  --ok:           #2e7d57;

  /* ---- Hero-gradient ---- */
  --hero-grad: linear-gradient(135deg, #0d1a35 0%, #1a2a4f 55%, #2c3a5a 100%);
  --hero-grad-soft: linear-gradient(135deg, #1a2a4f 0%, #2c3a5a 100%);

  /* ---- Typografi ---- */
  --ff-body:  "Manrope", "Inter", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --ff-display: "Manrope", "Inter", "Helvetica Neue", "Helvetica", "Arial", sans-serif;

  /* ---- Spacing ---- */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* ---- Layout ---- */
  --container:        1200px;
  --container-narrow: 800px;
  --nav-h:            68px;

  /* ---- Radius ---- */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* ---- Shadow ---- */
  --shadow-sm: 0 1px 2px rgba(26, 42, 79, 0.06), 0 1px 1px rgba(26, 42, 79, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 42, 79, 0.07), 0 2px 4px rgba(26, 42, 79, 0.05);
  --shadow-lg: 0 14px 36px rgba(26, 42, 79, 0.10), 0 4px 12px rgba(26, 42, 79, 0.06);
  --shadow-blue: 0 12px 28px rgba(26, 42, 79, 0.18), 0 3px 8px rgba(26, 42, 79, 0.10);
}

@media (min-width: 768px) {
  :root { --nav-h: 76px; }
}

/* =========================================================================
   Reset & base
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "ss01";
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26, 42, 79, 0.35);
  transition: color 0.18s, text-decoration-color 0.18s;
}
a:hover {
  color: var(--primary-deep);
  text-decoration-color: var(--accent);
}

button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

::selection { background: rgba(245, 200, 66, 0.45); color: var(--ink); }

/* Skip-länk */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  background: var(--ink);
  color: #fff;
  padding: var(--s-3) var(--s-4);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  border-radius: var(--r-sm);
  transition: top 0.15s;
}
.skip-link:focus { top: var(--s-4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================================
   Typografi
   ========================================================================= */

.h1-display, .h2-display, .display {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
  color: var(--ink);
}
.h1-display em,
.h2-display em,
.display em {
  font-style: normal;
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(transparent 62%, var(--accent) 62%);
  padding: 0 0.06em;
  border-radius: 2px;
}

.h1-display {
  font-size: clamp(36px, 6.5vw, 64px);
}
.h2-display {
  font-size: clamp(28px, 4.5vw, 48px);
}

.sect-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.sect-title em {
  font-style: normal;
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(transparent 62%, var(--accent) 62%);
  padding: 0 0.06em;
  border-radius: 2px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  text-transform: none;
  padding: 4px 10px;
  background: var(--primary-soft);
  border-radius: var(--r-pill);
}

.lede {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
}
.lede strong { color: var(--ink); font-weight: 700; }
.lede em { font-style: normal; color: var(--primary); font-weight: 700; }

.body-text { font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.body-text p + p { margin-top: var(--s-4); }
.body-text strong { color: var(--ink); font-weight: 700; }
.body-text em { font-style: normal; color: var(--primary); font-weight: 700; }
.body-text a { color: var(--primary); font-weight: 600; text-decoration-color: rgba(26, 42, 79, 0.4); }
.body-text a:hover { color: var(--primary-deep); text-decoration-color: var(--accent); }

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* =========================================================================
   Layout-primitiver
   ========================================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--s-5);
  padding-right: var(--s-5);
}
@media (min-width: 768px) {
  .container { padding-left: var(--s-7); padding-right: var(--s-7); }
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-left: var(--s-5);
  padding-right: var(--s-5);
}

.section { padding: var(--s-8) 0; position: relative; }
.section--top { padding-top: var(--s-9); }
.section--bottom { padding-bottom: var(--s-9); }
.section--tint { background: var(--bg-soft); }
.section--ink {
  background: var(--ink);
  color: #f5f8fc;
}
.section--ink .lede { color: rgba(245, 248, 252, 0.85); }
.section--ink .body-text { color: rgba(245, 248, 252, 0.82); }
.section--ink a { color: #fff; text-decoration-color: rgba(255,255,255,0.4); }
.section--ink a:hover { color: #fff; text-decoration-color: var(--accent); }
.section--ink .eyebrow { background: rgba(255,255,255,0.10); color: rgba(245, 248, 252, 0.92); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink em { color: #ffffff; }
/* I mörka sektioner: gul highlight ploppar mot navy bg utan förändring */
.section--ink .h1-display em,
.section--ink .h2-display em,
.section--ink .sect-title em {
  color: var(--ink);
  background: var(--accent);
}
.section--top-tight { padding-top: var(--s-6); }
@media (min-width: 768px) { .section--top-tight { padding-top: var(--s-7); } }
.text-center { text-align: center; }

@media (min-width: 768px) {
  .section { padding: var(--s-9) 0; }
  .section--top { padding-top: var(--s-10); }
  .section--bottom { padding-bottom: var(--s-10); }
}

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule--accent { border-top-color: var(--primary); }

.section-head {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
}
.section-head__lede { max-width: 56ch; }

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--s-7);
    align-items: end;
  }
}

/* =========================================================================
   Site nav
   ========================================================================= */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.site-nav.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
@media (min-width: 768px) {
  .site-nav__inner { padding: 0 var(--s-7); }
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--ink);
}
.site-nav__brand:hover { color: var(--ink); text-decoration: none; }
.site-nav__brand-mark {
  height: 44px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-nav__brand-mark img { height: 100%; width: auto; display: block; }
@media (min-width: 768px) {
  .site-nav__brand-mark { height: 52px; }
}

/* Brand-text-fallback (när vi inte har bild — behåller stil för säkerhets skull) */
.site-nav__brand-text { display: none; }

.site-nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--s-3);
  margin-right: calc(-1 * var(--s-3));
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}
.site-nav__toggle:hover { background: var(--bg-soft); }
.site-nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.site-nav__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
  padding: var(--s-5) var(--s-5) var(--s-6);
  flex-direction: column;
  gap: var(--s-4);
}
.site-nav__menu.is-open { display: flex; }

.site-nav__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.site-nav__links li { padding: 0; }
.site-nav__links a {
  display: block;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
}
.site-nav__links a:hover { background: var(--bg-soft); color: var(--primary); }

.site-nav__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--primary);
  color: #fff;
  padding: var(--s-3) var(--s-5);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background 0.18s, transform 0.05s;
}
.site-nav__cta:hover { background: var(--primary-deep); color: #fff; text-decoration: none; }
.site-nav__cta:active { transform: translateY(1px); }

@media (min-width: 900px) {
  .site-nav__toggle { display: none; }
  .site-nav__menu {
    display: flex !important;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    gap: var(--s-2);
    align-items: center;
  }
  .site-nav__links {
    flex-direction: row;
    gap: var(--s-1);
  }
  .site-nav__links a {
    font-size: 15px;
    padding: var(--s-2) var(--s-3);
  }
  .site-nav__cta { margin-left: var(--s-3); }
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  background: var(--hero-grad);
  color: #f5f8fc;
  padding: var(--s-8) 0 var(--s-9);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.10) 0, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(255,255,255,0.06) 0, transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 80px;
  background:
    linear-gradient(to bottom right, transparent 49.5%, var(--bg) 50%) right / 50% 100% no-repeat,
    linear-gradient(to bottom left,  transparent 49.5%, var(--bg) 50%) left  / 50% 100% no-repeat;
  z-index: 1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s-9);
  }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-5);
  width: fit-content;
}

.hero__title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(36px, 6.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: var(--s-5);
  max-width: 18ch;
}
.hero__title em {
  font-style: normal;
  color: #ffffff;
  position: relative;
  white-space: nowrap;
  background: linear-gradient(180deg, transparent 0%, transparent 65%, rgba(233, 30, 99, 0.55) 65%, rgba(233, 30, 99, 0.55) 92%, transparent 92%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 0 4px;
}

.hero__lede {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: rgba(245, 248, 252, 0.9);
  max-width: 56ch;
  margin-bottom: var(--s-6);
}
.hero__lede strong { color: #fff; font-weight: 700; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin-bottom: var(--s-6);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 248, 252, 0.8);
}
.hero__meta span { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero__meta-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.hero__portrait {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.30), 0 0 0 6px rgba(255,255,255,0.08), 0 0 0 1px rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

@media (min-width: 768px) {
  .hero { padding: var(--s-9) 0 var(--s-10); }
}

/* Sub-page hero */
.subhero {
  background: var(--hero-grad);
  color: #f5f8fc;
  padding: var(--s-7) 0 var(--s-8);
  position: relative;
  overflow: hidden;
}
.subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 30%, rgba(255,255,255,0.10) 0, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.06) 0, transparent 45%);
  pointer-events: none;
}
.subhero > .container { position: relative; z-index: 1; }

.subhero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 248, 252, 0.78);
  margin-bottom: var(--s-5);
}
.subhero__breadcrumb a {
  color: rgba(245, 248, 252, 0.85);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.subhero__breadcrumb a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.5); }
.subhero__breadcrumb-sep { color: rgba(245, 248, 252, 0.45); }

.subhero .eyebrow {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  margin-bottom: var(--s-5);
}

.subhero__title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: #fff;
  margin-bottom: var(--s-5);
  max-width: 22ch;
}
.subhero__title em {
  font-style: normal;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, transparent 65%, rgba(233, 30, 99, 0.55) 65%, rgba(233, 30, 99, 0.55) 92%, transparent 92%);
  padding: 0 4px;
}

.subhero__lede {
  font-family: var(--ff-body);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: rgba(245, 248, 252, 0.9);
  max-width: 60ch;
}

.subhero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 248, 252, 0.78);
}

/* Tvåspalts-layout när subhero har bild — mobil staplar, desktop bredvid. */
.subhero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: start;
}

/* Optional bild i subhero — visas om page_*.hero_image är satt. */
.subhero__image {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
}
.subhero__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 768px) {
  .subhero { padding: var(--s-8) 0 var(--s-9); }
}

@media (min-width: 900px) {
  .subhero--split .subhero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--s-8);
  }
  .subhero--split .subhero__title { max-width: none; }
  .subhero--split .subhero__image img { aspect-ratio: 5 / 4; }
}

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none !important;
  border: 1.5px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-sm);
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.05s, box-shadow 0.18s;
  white-space: nowrap;
  min-height: 44px;
  cursor: pointer;
}
.btn:hover { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; box-shadow: var(--shadow-blue); }
.btn:active { transform: translateY(1px); }
.btn svg { transition: transform 0.18s; }
.btn:hover svg { transform: translateX(2px); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: #fff;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

.btn--ghost {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
}

/* På mörk yta (hero, section--ink) */
.hero .btn--ghost,
.subhero .btn--ghost,
.section--ink .btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.hero .btn--ghost:hover,
.subhero .btn--ghost:hover,
.section--ink .btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
  box-shadow: none;
}
.hero .btn--primary,
.subhero .btn--primary,
.section--ink .btn--primary {
  background: var(--accent);
  border-color: var(--accent);
}
.hero .btn--primary:hover,
.subhero .btn--primary:hover,
.section--ink .btn--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.35);
}

.btn--inverted {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn--inverted:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* =========================================================================
   Hem: intro
   ========================================================================= */

.home-intro {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 900px) {
  .home-intro { grid-template-columns: 1fr 1.6fr; gap: var(--s-9); }
}

.home-intro__stamp {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  align-items: flex-start;
}

/* Certifikat-badge (ersätter den gamla "ka-stamp"-cirkeln) */
.ka-stamp {
  width: 100%;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.ka-stamp::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--s-5);
  right: var(--s-5);
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
}
.ka-stamp svg { display: none; }
.ka-stamp__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
}
.ka-stamp__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.ka-stamp__value {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.ka-stamp__big {
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.home-intro__content > * + * { margin-top: var(--s-5); }
.home-intro__content .eyebrow { margin-bottom: var(--s-2); }

/* =========================================================================
   Tjänste-grid på hem
   ========================================================================= */

.svc-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}

.svc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule);
  padding: var(--s-6);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
  text-decoration: none;
  color: var(--ink);
  position: relative;
}
.section--tint .svc-card { background: #fff; }
.svc-card:hover {
  border-color: rgba(31, 78, 140, 0.3);
  text-decoration: none;
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.svc-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: var(--s-5);
  letter-spacing: 0;
}
.svc-card__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin-bottom: var(--s-3);
  color: var(--ink);
}
.svc-card:hover .svc-card__title { color: var(--primary); }
.svc-card__lede {
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.55;
  margin-bottom: var(--s-5);
}
.svc-card__points {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.svc-card__points li {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding-left: var(--s-5);
  position: relative;
  line-height: 1.5;
}
.svc-card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  background: none;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.svc-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
}
.svc-card:hover .svc-card__more { color: var(--primary-deep); }
.svc-card__more svg { transition: transform 0.2s; }
.svc-card:hover .svc-card__more svg { transform: translateX(3px); }

/* =========================================================================
   Område-grid på hem
   ========================================================================= */

.area-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .area-grid { grid-template-columns: repeat(5, 1fr); } }

.area-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  min-height: 132px;
  position: relative;
  transition: background 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s, color 0.22s;
}
.area-card:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue);
}
.area-card__num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.area-card:hover .area-card__num { color: rgba(255,255,255,0.7); }
.area-card__name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-top: auto;
}
.area-card:hover .area-card__name { color: #fff; }
.area-card__hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  transition: color 0.22s, border-top-color 0.22s;
}
.area-card:hover .area-card__hint {
  color: rgba(255,255,255,0.85);
  border-top-color: rgba(255,255,255,0.25);
}

/* "Andra orter" — diskret text-rad */
.other-towns {
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
}
.other-towns__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  display: block;
  margin-bottom: var(--s-3);
  text-transform: uppercase;
}
.other-towns__list {
  font-family: var(--ff-body);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: var(--ink-soft);
}
.other-towns__list span:not(:last-child)::after {
  content: " · ";
  color: var(--rule-strong);
  margin: 0 2px;
}

/* =========================================================================
   News-strip
   ========================================================================= */

.news-strip {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .news-strip { grid-template-columns: repeat(3, 1fr); }
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
}
.news-card:hover {
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(31, 78, 140, 0.3);
}
.news-card:hover .news-card__title { color: var(--primary); }
.news-card__meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  text-transform: uppercase;
}
.news-card__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
  transition: color 0.18s;
}
.news-card__excerpt {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================================
   Subpages: kapitel
   ========================================================================= */

.chapters {
  display: flex;
  flex-direction: column;
  gap: var(--s-7);
}
.chapter {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
}
.chapter:first-child { padding-top: 0; border-top: 0; }

.chapter__head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.chapter__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  width: fit-content;
}
.chapter__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.014em;
  color: var(--ink);
  overflow-wrap: anywhere;
  max-width: 32ch;
}
.chapter__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 70ch;
}
.chapter__body p + p { margin-top: var(--s-4); }
.chapter__body strong { color: var(--ink); font-weight: 700; }
.chapter__body em { font-style: normal; color: var(--primary); font-weight: 600; }

/* Aside-block (pull-quote / sidnotis) */
.aside-note {
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s-5) var(--s-6);
  margin: var(--s-7) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.aside-note__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-transform: uppercase;
}
.aside-note__body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}

/* Related-länkar */
.related {
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: baseline;
}
.related__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.related__items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  list-style: none;
}
.related__items a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.related__items a:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* =========================================================================
   Kontakt-blocks
   ========================================================================= */

.contact-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
}

.contact-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}
.section--ink .contact-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.contact-card__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.section--ink .contact-card__title { color: rgba(255,255,255,0.7); }
.contact-card__big {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.014em;
  display: inline-block;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  overflow-wrap: anywhere;
  max-width: 100%;
}
/* E-post är längre än telefon — mindre font så raden inte måste brytas. */
.contact-card__big--email {
  font-size: clamp(16px, 1.8vw, 20px);
  letter-spacing: -0.01em;
  word-break: break-word;
}
.section--ink .contact-card__big { color: #fff; }
.contact-card__big:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}
.section--ink .contact-card__big:hover { color: #fff; border-color: var(--accent); }
.contact-card__small {
  font-size: 14px;
  color: var(--ink-mute);
  margin-top: var(--s-3);
}
.section--ink .contact-card__small { color: rgba(255,255,255,0.65); }

/* =========================================================================
   Listor
   ========================================================================= */

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: 0;
  margin: 0;
}
.bullet-list li {
  position: relative;
  padding-left: var(--s-6);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.col-pair {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .col-pair { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}
.col-pair__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
  text-transform: uppercase;
}

/* =========================================================================
   News list
   ========================================================================= */

.post-list {
  display: flex;
  flex-direction: column;
}
.post-list__item {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.22s;
}
.post-list__item:hover {
  padding-left: var(--s-3);
  text-decoration: none;
  color: var(--ink);
}
.post-list__item:hover .post-list__title { color: var(--primary); }
@media (min-width: 800px) {
  .post-list__item { grid-template-columns: 200px 1fr auto; gap: var(--s-6); align-items: baseline; }
}
.post-list__date {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  text-transform: uppercase;
}
.post-list__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.014em;
  transition: color 0.2s;
}
.post-list__excerpt {
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.55;
  margin-top: var(--s-2);
}
.post-list__arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* Single post */
.post-detail {
  max-width: 720px;
  margin: 0 auto;
}
.post-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  margin-bottom: var(--s-5);
  text-transform: uppercase;
}
.post-detail__title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin-bottom: var(--s-5);
  color: var(--ink);
}
.post-detail__excerpt {
  font-family: var(--ff-body);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: var(--s-7);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
}
.post-detail__image {
  margin: var(--s-7) 0;
}
.post-detail__image img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
}
.post-detail__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.post-detail__body p + p { margin-top: var(--s-5); }
.post-detail__body strong { color: var(--ink); font-weight: 700; }
.post-detail__body em { font-style: normal; color: var(--primary); font-weight: 600; }

/* =========================================================================
   Footer
   ========================================================================= */

.site-foot {
  background: var(--ink);
  color: #f5f8fc;
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-8);
}
.site-foot__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}
@media (min-width: 768px) {
  .site-foot__inner { padding: 0 var(--s-7); }
}

.site-foot__brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.site-foot__brand-line {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.site-foot__brand-mark {
  height: 56px;
  display: flex;
  align-items: center;
}
.site-foot__brand-mark img {
  height: 100%;
  width: auto;
  display: block;
  /* PNG har svart text mot ljus bakgrund — invertera för mörk footer.
     Behåll magenta/rosa nyckel + hus, gör bara texten ljus. */
  filter: brightness(0) invert(1);
}
.site-foot__brand-text { display: none; }
.site-foot__tagline {
  font-family: var(--ff-body);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.5;
  color: rgba(245, 248, 252, 0.78);
  max-width: 50ch;
}

.site-foot__cols {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .site-foot__cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .site-foot__cols { grid-template-columns: repeat(4, 1fr); } }

.site-foot__col, .site-foot__contact {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.site-foot__col .eyebrow,
.site-foot__contact .eyebrow {
  background: rgba(255,255,255,0.10);
  color: rgba(245, 248, 252, 0.92);
  margin-bottom: var(--s-2);
  align-self: flex-start;
}

.site-foot__col ul,
.site-foot__contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.site-foot__col a,
.site-foot__contact a {
  color: rgba(245, 248, 252, 0.85);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.18s;
}
.site-foot__col a:hover,
.site-foot__contact a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.site-foot__base {
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 248, 252, 0.6);
  margin-top: var(--s-2);
}

.site-foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 248, 252, 0.55);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.10);
}
.site-foot__legal-sep { color: rgba(245, 248, 252, 0.3); }

/* =========================================================================
   Reveal-on-scroll
   ========================================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================================
   Print
   ========================================================================= */

@media print {
  .site-nav__toggle, .site-nav__cta { display: none !important; }
  body { background: white; color: black; }
  .site-foot { background: white; color: black; padding: 16px 0; }
  .site-foot__brand-mark img { filter: none; }
  .hero, .subhero { background: white; color: black; padding: 16px 0; }
  .hero__title, .subhero__title { color: black; }
  .hero__title em, .subhero__title em { background: none; color: black; }
  a { color: black; text-decoration: underline; }
}

/* =========================================================================
   Christers Tak — takfirma-specifika komponenter
   ========================================================================= */

/* ---- Trust-row (USP-strip på startsidan) ---- */
.trust-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
}
@media (min-width: 640px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); padding: var(--s-6); }
}
@media (min-width: 980px) {
  .trust-row { grid-template-columns: repeat(4, 1fr); }
}
.trust-row__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: var(--s-4);
  border-left: 3px solid var(--accent);
}
.trust-row__big {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.2;
}
.trust-row__small {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-mute);
}

/* ---- Home intro: dubbla porträtt (Christer + Kristoffer) ---- */
.home-intro--takfirma {
  display: grid;
  gap: var(--s-7);
  align-items: start;
}
@media (min-width: 900px) {
  .home-intro--takfirma { grid-template-columns: 1fr 1.3fr; gap: var(--s-8); }
}

.home-intro__portraits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
@media (min-width: 480px) {
  .home-intro__portraits { gap: var(--s-4); }
}
/* Endast en anställd: visa centrerat, inte sträckt */
.home-intro__portraits--one { grid-template-columns: minmax(0, 280px); justify-content: center; }
/* Tre eller fler: skala till 3-kolumnsgrid på desktop */
@media (min-width: 700px) {
  .home-intro__portraits--three { grid-template-columns: repeat(3, 1fr); }
  .home-intro__portraits--many  { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
/* Vid 3+ personer: ge porträttkolumnen mer plats */
@media (min-width: 900px) {
  .home-intro--takfirma.home-intro--wide { grid-template-columns: 1fr 1fr; }
}
.home-intro--takfirma .home-intro__content { display: flex; flex-direction: column; gap: var(--s-4); }

.portrait-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.portrait-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}
.portrait-card figcaption {
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border-top: 1px solid var(--rule);
}
.portrait-card__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.portrait-card__role {
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ---- Partner-grid (samarbetspartners på startsidan) ---- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
@media (min-width: 640px) {
  .partner-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
}
@media (min-width: 980px) {
  .partner-grid { grid-template-columns: repeat(6, 1fr); gap: var(--s-4); }
}
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-5) var(--s-3);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.partner-card:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.partner-card__logo {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-card__logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.4);
  transition: filter 0.2s ease;
}
.partner-card:hover .partner-card__logo img { filter: grayscale(0); }
.partner-card__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.partner-card__desc {
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.35;
  display: none;
}
@media (min-width: 980px) {
  .partner-card__desc { display: block; }
}

/* ---- Material-grid (takmaterial-galleri) ---- */
.material-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 720px) {
  .material-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .material-grid { grid-template-columns: repeat(3, 1fr); }
}
.material-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.material-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--rule-strong);
  transform: translateY(-2px);
}
.material-card__media {
  margin: 0;
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.material-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.material-card__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.material-card__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.material-card__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.material-card__text p + p { margin-top: var(--s-3); }
.material-card__text strong { color: var(--ink); font-weight: 700; }

/* ---- FAQ-list (vanliga frågor) ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.faq-item {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.18s ease;
}
.faq-item[open],
.faq-item:hover {
  border-color: var(--rule-strong);
}
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
  letter-spacing: -0.005em;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-bottom: 4px;
}
.faq-item[open] .faq-item__q::after {
  transform: rotate(-135deg);
  margin-top: 4px;
  margin-bottom: 0;
}
.faq-item__a {
  padding: 0 var(--s-5) var(--s-5);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.faq-item__a p + p { margin-top: var(--s-3); }
.faq-item__a strong { color: var(--ink); font-weight: 700; }
.faq-item__a a { color: var(--accent); font-weight: 600; }

/* ---- Btn-anpassning för navy+gul tema ---- */
/* Primärknapp: gul bg + navy text — pop som CTA. Default mall hade gradient
   primary, vi ersätter helt. */
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 700;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--ink);
}

/* Hero-meta-prick i gul accent */
.hero__meta-dot { background: var(--accent); }

/* Number-prefix på sektionskort (svc-card, area-card) — gul accent */
.svc-card__num,
.area-card__num,
.chapter__num { color: var(--accent-deep); }

/* ---- Pris-kort (price-cards) — visuella hus-typer med stora siffror ---- */
.price-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 720px) {
  .price-cards { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
}
@media (min-width: 1100px) {
  .price-cards { grid-template-columns: repeat(4, 1fr); }
}
.price-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5) var(--s-5) var(--s-5);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  border-top: 4px solid var(--accent);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.price-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--rule-strong);
  border-top-color: var(--accent-deep);
}
.price-card__eyebrow {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: var(--r-pill);
}
.price-card__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
  margin-top: var(--s-1);
}
.price-card__price {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--ink);
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin-top: var(--s-2);
  background: linear-gradient(transparent 62%, var(--accent) 62%);
  padding: 0 0.05em;
  align-self: flex-start;
}
.price-card__note {
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 600;
}
.price-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: var(--s-2);
}

/* ---- Material-jämförelse-tabell ---- */
.compare-table-wrap {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table thead {
  background: var(--bg-soft);
}
.compare-table th,
.compare-table td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.compare-table th {
  font-weight: 700;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.compare-table thead th { white-space: nowrap; }
.compare-table tbody th[scope="row"] {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: #fff;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--bg-soft); }

.compare-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-tint);
  color: var(--ink);
}
.compare-pill--lagst   { background: #e3f2e8; color: #1f5a3a; }
.compare-pill--mellan  { background: var(--accent-soft); color: var(--accent-deep); }
.compare-pill--hog     { background: #fde6dc; color: #8a3320; }
.compare-pill--hogst   { background: #f8d4c4; color: #6e2515; }

/* På mobil — stapla varje rad som "kort" där varje cell får sin label */
@media (max-width: 720px) {
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td {
    display: block;
    width: 100%;
  }
  .compare-table tbody tr {
    border-bottom: 1px solid var(--rule);
    padding: var(--s-3) var(--s-4);
  }
  .compare-table tbody tr:last-child { border-bottom: none; }
  .compare-table tbody th[scope="row"] {
    padding: 0 0 var(--s-2);
    font-size: 16px;
    background: transparent;
  }
  .compare-table tbody td {
    padding: 4px 0;
    border-bottom: none;
    font-size: 13px;
  }
  .compare-table tbody td::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: var(--ink-mute);
    margin-right: 6px;
  }
  .compare-table tbody tr:hover { background: transparent; }
}

/* ---- Sticky CTA — fast botten-bar på pris-sidan ---- */
body.has-sticky-cta { padding-bottom: 84px; }
@media (min-width: 768px) {
  body.has-sticky-cta { padding-bottom: 0; }
}
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -8px 24px rgba(13, 26, 53, 0.25);
  display: none;
}
body.has-sticky-cta .sticky-cta { display: block; }
.sticky-cta__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-3) var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  justify-content: space-between;
  flex-wrap: wrap;
}
.sticky-cta__lede {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  display: none;
}
.sticky-cta__actions {
  display: flex;
  gap: var(--s-2);
  flex: 1 1 auto;
  justify-content: stretch;
}
.sticky-cta__actions .btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
}
.sticky-cta__phone {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.sticky-cta__phone:hover,
.sticky-cta__phone:focus-visible {
  background: rgba(255,255,255,0.08);
  border-color: #fff;
  color: #fff;
}

@media (min-width: 768px) {
  /* På desktop — kompaktare bar med synlig lede */
  .sticky-cta {
    left: auto;
    right: var(--s-5);
    bottom: var(--s-5);
    max-width: 480px;
    border-radius: var(--r-lg);
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 14px 40px rgba(13, 26, 53, 0.30), 0 4px 12px rgba(13, 26, 53, 0.15);
    transform: translateY(calc(100% + 32px));
    transition: transform 0.3s ease;
  }
  body.has-sticky-cta.is-cta-visible .sticky-cta {
    transform: translateY(0);
  }
  .sticky-cta__inner {
    padding: var(--s-3) var(--s-4);
    flex-wrap: nowrap;
  }
  .sticky-cta__lede { display: inline-block; }
  .sticky-cta__actions { flex: 0 0 auto; }
  .sticky-cta__actions .btn { flex: 0 0 auto; }
}

/* Hero — modifier för material/tak-bild istället för porträtt.
   Override:ar mall-defaultens cirkulära porträttform (border-radius 50%
   + aspect-ratio 1:1) eftersom en taktäckning skall visas rektangulärt
   så takets profil och kanter inte klipps bort. */
.hero__portrait--tak {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(13, 26, 53, 0.35), 0 0 0 1px rgba(255,255,255,0.10);
}
.hero__portrait--tak img {
  border-radius: var(--r-lg);
  object-position: center center;
}

/* =========================================================================
   Cookie consent banner — gate:ar GA tills användaren accepterar.
   Backdrop blurras lite för att lyfta dialogen och uppmuntra val.
   ========================================================================= */
.ct-cookie-backdrop {
  position: fixed; inset: 0;
  background: rgba(13, 26, 53, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9998;
}
.ct-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(520px, calc(100vw - 32px));
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(13, 26, 53, 0.35);
  padding: 28px 32px;
  text-align: center;
}
.ct-cookie-desc {
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 20px;
  color: var(--ink);
}
.ct-cookie-desc a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ct-cookie-desc a:hover { color: var(--primary-deep); }
.ct-cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.ct-cookie-actions .ct-cookie-accept {
  min-width: 220px;
  justify-content: center;
}
.ct-cookie-decline {
  background: transparent;
  border: none;
  padding: 6px 12px;
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--ink-mute);
  opacity: 0.85;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ct-cookie-decline:hover { opacity: 1; color: var(--ink); }

@media (max-width: 480px) {
  .ct-cookie-banner { padding: 22px 20px; bottom: 12px; border-radius: var(--r-sm); }
  .ct-cookie-desc { font-size: 14px; }
}

