:root {
  --graphite: #111827;
  --graphite-2: #1f2937;
  --steel: #4b5563;
  --steel-light: #e5e7eb;
  --warm-white: #faf8f3;
  --cream: #f6f2ea;
  --green: #2f6f5e;
  --green-dark: #245748;
  --amber: #d89a2a;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(17, 24, 39, 0.18);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--graphite);
  background: var(--warm-white);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 999;
  background: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus { left: 12px; }
.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.94rem;
  font-weight: 650;
}
.main-nav a {
  text-decoration: none;
  color: var(--graphite-2);
}
.main-nav a:hover { color: var(--green); }
.nav-cta {
  border: 1px solid rgba(47,111,94,.35);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(47,111,94,.08);
}
.section-dark { background: var(--graphite); color: var(--white); }
.section-light { background: var(--warm-white); }
.section-warm { background: var(--cream); }
.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  overflow: hidden;
}
.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(17,24,39,0.92) 0%, rgba(17,24,39,0.78) 37%, rgba(17,24,39,0.18) 100%),
    linear-gradient(0deg, rgba(17,24,39,0.72), rgba(17,24,39,0.08));
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(280px, 360px);
  gap: 64px;
  align-items: end;
  padding: 132px 0 74px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
}
h1, h2, h3 { line-height: 1.06; margin: 0; }
h1 {
  font-size: clamp(3rem, 7vw, 5.9rem);
  letter-spacing: -0.06em;
  max-width: 780px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.045em;
}
h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.lead {
  margin: 26px 0 0;
  color: rgba(255,255,255,0.86);
  font-size: clamp(1.16rem, 2vw, 1.35rem);
  max-width: 650px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: .98rem;
}
.button-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 18px 36px rgba(47,111,94,.25);
}
.button-primary:hover { background: var(--green-dark); }
.button-secondary {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.22);
}
.hero-card {
  background: rgba(250,248,243,0.94);
  color: var(--graphite);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.28);
}
.card-kicker {
  display: block;
  color: var(--green);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 850;
  margin-bottom: 12px;
}
.hero-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.hero-card li {
  padding: 12px 0 12px 30px;
  border-top: 1px solid rgba(17,24,39,.10);
  position: relative;
  font-weight: 650;
}
.hero-card li:first-child { border-top: 0; }
.hero-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--green);
}
.intro, .services, .process, .knowledge, .contact { padding: 98px 0; }
.intro-grid,
.split-grid,
.contact-grid,
.knowledge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.intro-text p {
  margin: 0 0 18px;
  color: var(--graphite-2);
  font-size: 1.08rem;
}
.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}
.cards {
  display: grid;
  gap: 24px;
}
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(17,24,39,.08);
  border: 1px solid rgba(17,24,39,.08);
}
.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card-body { padding: 26px; }
.card-body p {
  color: var(--steel);
  margin: 14px 0 18px;
}
.card-body a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}
.card-body a:hover { text-decoration: underline; }
.image-panel img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.text-panel { padding-top: 10px; }
.steps {
  margin-top: 32px;
  display: grid;
  gap: 18px;
}
.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(17,24,39,.12);
}
.step span {
  color: var(--green);
  font-weight: 900;
  letter-spacing: .08em;
}
.step p { margin: 0; color: var(--graphite-2); }
.compact-dark { background: #101820; }
.knowledge-grid { align-items: center; }
.knowledge .eyebrow { color: #e2a842; }
.knowledge h2 { max-width: 580px; }
.knowledge-list {
  display: grid;
  gap: 18px;
}
.knowledge-list article {
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  padding: 24px;
}
.knowledge-list p {
  margin: 10px 0 0;
  color: rgba(255,255,255,.72);
}
.contact-copy p:not(.eyebrow) {
  color: var(--steel);
  font-size: 1.08rem;
  margin: 20px 0 28px;
}
.contact-copy img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(17,24,39,.08);
}
.contact-form label {
  display: block;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--graphite);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(17,24,39,.16);
  background: var(--warm-white);
  color: var(--graphite);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  margin-bottom: 18px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(47,111,94,.18);
  border-color: var(--green);
}
.hidden { display: none !important; }
.form-note {
  margin: 14px 0 0;
  color: var(--steel);
  font-size: .9rem;
}
.site-footer {
  background: #0b1118;
  color: rgba(255,255,255,.80);
  padding: 38px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.footer-grid p { margin: 6px 0 0; color: rgba(255,255,255,.62); }

@media (max-width: 920px) {
  .main-nav { display: none; }
  .hero { min-height: auto; }
  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 106px;
    gap: 34px;
  }
  .hero-shade {
    background: linear-gradient(0deg, rgba(17,24,39,.92), rgba(17,24,39,.42));
  }
  .intro-grid,
  .split-grid,
  .contact-grid,
  .knowledge-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .three-col { grid-template-columns: 1fr; }
  .intro, .services, .process, .knowledge, .contact { padding: 72px 0; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--max)); }
  .header-inner { min-height: 66px; }
  .brand img { width: 250px; }
  h1 { font-size: 2.7rem; }
  .hero-grid { padding: 82px 0 44px; }
  .button { width: 100%; }
  .contact-form { padding: 24px; }
}

.page-hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  display: grid;
  align-items: end;
}
.page-hero.compact { min-height: 420px; }
.page-hero-media, .page-hero-shade { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-shade {
  background: linear-gradient(90deg, rgba(17,24,39,.92), rgba(17,24,39,.56), rgba(17,24,39,.15)),
              linear-gradient(0deg, rgba(17,24,39,.78), rgba(17,24,39,.10));
}
.page-hero-copy { position: relative; z-index: 1; padding: 118px 0 68px; }
.page-hero-copy h1 { max-width: 860px; }
.page-hero-copy .lead { max-width: 760px; }
.content {
  padding: 86px 0;
  font-size: 1.08rem;
}
.content.narrow {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
}
.content h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 44px 0 16px; }
.content h2:first-child { margin-top: 0; }
.content h3 { margin: 32px 0 10px; }
.content p { margin: 0 0 18px; color: var(--graphite-2); }
.content ul { margin: 0 0 24px; padding-left: 22px; color: var(--graphite-2); }
.content li { margin: 8px 0; }
.content a { color: var(--green); font-weight: 800; }
.cta-band {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 88px;
  background: var(--graphite);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.cta-band p { color: rgba(255,255,255,.72); margin: 10px 0 0; }
.article-list { padding: 80px 0; }
.text-card .card-body { min-height: 230px; }
.back-link { margin-top: 40px; }
.not-found { min-height: 420px; }
.form-status { font-size: .92rem; color: var(--green); font-weight: 750; }
@media (max-width: 760px) {
  .cta-band { flex-direction: column; align-items: flex-start; }
  .page-hero-copy { padding: 92px 0 48px; }
}

/* v1.1 – tydligare layout för undersidor och artiklar */
.subpage-section {
  padding: 96px 0 104px;
}
.subpage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 54px;
  align-items: start;
}
.article-layout {
  max-width: 920px;
}
.content-card {
  background: var(--white);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 70px rgba(17,24,39,.08);
  padding: clamp(32px, 5vw, 64px);
  font-size: 1.08rem;
}
.content-card > *:first-child { margin-top: 0; }
.content-card > *:last-child { margin-bottom: 0; }
.content-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
  margin: 48px 0 18px;
}
.content-card h3 {
  font-size: 1.35rem;
  margin: 34px 0 12px;
}
.content-card p {
  color: var(--graphite-2);
  margin: 0 0 20px;
  max-width: 72ch;
}
.content-card ul,
.content-card ol {
  margin: 0 0 26px;
  padding-left: 1.4rem;
  color: var(--graphite-2);
  max-width: 72ch;
}
.content-card li { margin: 9px 0; }
.content-card a { color: var(--green); font-weight: 800; }
.content-card strong { color: var(--graphite); }
.subpage-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 22px;
}
.aside-image {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--graphite);
}
.aside-image img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.aside-card {
  background: var(--graphite);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
}
.aside-card h2 {
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.aside-card p {
  margin: 14px 0 22px;
  color: rgba(255,255,255,.76);
}
.aside-card .button {
  width: 100%;
}
.article-card {
  max-width: 920px;
  margin-inline: auto;
}

/* Säker fallback om en gammal sidmall fortfarande används */
.content.narrow {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
  background: var(--white);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 70px rgba(17,24,39,.08);
  padding: clamp(32px, 5vw, 64px);
}

@media (max-width: 980px) {
  .subpage-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .subpage-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .subpage-section {
    padding: 58px 0 70px;
  }
  .content-card,
  .content.narrow,
  .aside-card {
    border-radius: 22px;
  }
  .content-card {
    padding: 28px 22px;
  }
}


/* v1.2 – mer webbtypografisk rytm på undersidorna */
:root {
  --flow-xs: 0.65rem;
  --flow-sm: 1.05rem;
  --flow-md: 1.55rem;
  --flow-lg: 2.35rem;
  --flow-xl: 3.25rem;
}

/* Gör undersidorna lugnare och mindre hoptryckta */
.page-hero {
  min-height: 430px;
}
.page-hero.compact {
  min-height: 360px;
}
.page-hero-copy {
  padding: 104px 0 62px;
}
.page-hero-copy h1 {
  max-width: 900px;
  margin-bottom: 0;
}
.page-hero-copy .lead {
  margin-top: 28px;
  line-height: 1.55;
}

.subpage-section {
  padding: 108px 0 120px;
}
.subpage-layout {
  grid-template-columns: minmax(0, 740px) minmax(300px, 380px);
  gap: 68px;
  justify-content: center;
}
.article-layout {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
}

.content-card {
  padding: clamp(44px, 6vw, 74px);
  line-height: 1.72;
}
.content-prose {
  font-size: clamp(1.04rem, 1.1vw, 1.13rem);
}
.content-prose h2 {
  font-size: clamp(1.75rem, 2.45vw, 2.45rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  margin: var(--flow-xl) 0 var(--flow-md);
  max-width: 17em;
}
.content-prose h2:first-child {
  margin-top: 0;
}
.content-prose h2 + p,
.content-prose h3 + p,
.content-prose h2 + ul,
.content-prose h3 + ul,
.content-prose h2 + ol,
.content-prose h3 + ol {
  margin-top: 0;
}
.content-prose h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  line-height: 1.22;
  margin: var(--flow-lg) 0 var(--flow-sm);
  max-width: 26em;
}
.content-prose p {
  margin: 0 0 var(--flow-md);
  max-width: 68ch;
  line-height: 1.72;
}
.content-prose ul,
.content-prose ol {
  margin: var(--flow-sm) 0 var(--flow-lg);
  padding-left: 1.35rem;
  max-width: 66ch;
}
.content-prose li {
  margin: 0.72rem 0;
  padding-left: .18rem;
}
.content-prose li::marker {
  color: var(--green);
  font-weight: 800;
}
.content-prose > h2:not(:first-child) {
  padding-top: var(--flow-lg);
  border-top: 1px solid rgba(17,24,39,.10);
}
.content-prose > p:first-child {
  font-size: clamp(1.13rem, 1.35vw, 1.24rem);
  line-height: 1.68;
  color: var(--graphite);
}

/* Sidokolumnen ska vara ett lugnt stöd, inte trycka ihop innehållet */
.subpage-aside {
  gap: 26px;
}
.aside-card {
  padding: 32px;
}
.aside-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.18;
}
.aside-card p {
  margin: 0 0 26px;
  line-height: 1.62;
}
.aside-image img {
  aspect-ratio: 16 / 12;
}

/* Kort och kontaktformulär får mer luft */
.card-body {
  padding: 30px;
}
.card-body h3 {
  margin-bottom: 16px;
  line-height: 1.18;
}
.card-body p {
  margin: 0 0 22px;
  line-height: 1.62;
}
.section-heading {
  margin-bottom: 46px;
}
.knowledge-list article h3 {
  margin-bottom: 14px;
}
.contact-copy h2 {
  max-width: 12em;
}
.contact-copy p:not(.eyebrow) {
  line-height: 1.65;
  max-width: 56ch;
}
.contact-form {
  padding: 42px;
}
.contact-form label {
  margin-top: 2px;
  margin-bottom: 10px;
}
.contact-form input,
.contact-form textarea {
  margin-bottom: 22px;
}

/* Artikelarkiv: tydligare rubrikrytm */
.article-list {
  padding: 92px 0 108px;
}
.article-list .eyebrow {
  margin-bottom: 18px;
}
.text-card .card-body {
  min-height: 260px;
}
.text-card h3 a {
  text-decoration: none;
}
.text-card h3 a:hover {
  color: var(--green);
}

/* Fallback för äldre .content-mallar */
.content h2 {
  margin: 54px 0 22px;
  line-height: 1.16;
}
.content h3 {
  margin: 38px 0 16px;
  line-height: 1.22;
}
.content p {
  margin-bottom: 22px;
  line-height: 1.72;
}

@media (max-width: 980px) {
  .subpage-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .subpage-section {
    padding: 82px 0 92px;
  }
}

@media (max-width: 560px) {
  .page-hero {
    min-height: 360px;
  }
  .page-hero-copy {
    padding: 82px 0 46px;
  }
  .subpage-section {
    padding: 54px 0 72px;
  }
  .content-card {
    padding: 34px 24px;
    line-height: 1.68;
  }
  .content-prose h2 {
    margin: 2.65rem 0 1.1rem;
  }
  .content-prose > h2:not(:first-child) {
    padding-top: 1.9rem;
  }
  .content-prose p {
    line-height: 1.68;
  }
  .contact-form {
    padding: 28px 22px;
  }
}
