:root {
  --bg: #faf6ee;
  --paper: #ffffff;
  --ochre: #e6c27a;
  --ochre-soft: #f4e3bd;
  --ochre-deep: #b9852f;
  --wood: #5b3a27;
  --wood-dark: #3d271a;
  --stone: #e7ded0;
  --text: #2b2420;
  --muted: #6b5f55;
  --line: #e3d8c6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wood); text-underline-offset: 3px; }
a:hover { color: var(--ochre-deep); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--wood-dark);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--wood-dark);
}
.brand-mark {
  width: 40px; height: 40px; flex: none;
}
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 6px;
  text-decoration: none; color: var(--text); font-size: .95rem; font-weight: 500;
}
.nav a:hover { background: var(--ochre-soft); color: var(--wood-dark); }
.nav a[aria-current="page"] { background: var(--wood); color: #fff; }

.nav-toggle { display: none; }
.nav-btn { display: none; }

@media (max-width: 860px) {
  .nav-btn {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px;
    font-weight: 600; font-size: .95rem; background: var(--paper); user-select: none;
  }
  .nav-btn span, .nav-btn span::before, .nav-btn span::after {
    display: block; width: 18px; height: 2px; background: var(--wood-dark); position: relative; content: "";
  }
  .nav-btn span::before { position: absolute; top: -6px; }
  .nav-btn span::after { position: absolute; top: 6px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    box-shadow: 0 8px 20px rgba(60,40,20,.08);
  }
  .nav ul { flex-direction: column; }
  .nav a { padding: 12px; }
  .nav-toggle:checked ~ .nav { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(78vh, 640px);
  display: flex; align-items: flex-end;
  background: var(--wood-dark) center 35% / cover no-repeat;
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,18,10,0) 30%, rgba(30,18,10,.72) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: 56px; padding-top: 120px; width: 100%; }
.hero h1 { color: #fff; margin-bottom: .25em; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero p { font-size: 1.15rem; max-width: 40em; margin: 0; opacity: .95; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ochre); margin-bottom: 12px;
}

.page-head {
  background: var(--ochre-soft);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
}
.page-head .eyebrow { color: var(--ochre-deep); }
.page-head h1 { margin-bottom: .2em; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 42em; margin: 0; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.lead { font-size: 1.15rem; color: var(--text); }
.prose { max-width: 46em; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(60,40,20,.15); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 28px; }
.card {
  display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; text-decoration: none; color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60,40,20,.1); border-color: var(--ochre); color: var(--text); }
.card h3 { margin: 0 0 .35em; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .arrow { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--wood); font-size: .92rem; }

/* Fact table */
.facts { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.facts th, .facts td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 42%; font-weight: 600; color: var(--muted); font-size: .93rem; background: #fdfaf4; }
@media (max-width: 560px) {
  .facts th, .facts td { display: block; width: 100%; padding: 4px 16px; border: 0; background: none; }
  .facts th { padding-top: 12px; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
  .facts td { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
}

/* Lists */
ul.check, ol.steps { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
ul.check li { position: relative; padding-left: 28px; margin-bottom: .55em; }
ul.check li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--ochre-deep);
}
ol.steps { counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: .6em; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: .1em;
  width: 26px; height: 26px; border-radius: 50%; background: var(--wood); color: #fff;
  font-size: .82rem; font-weight: 700; display: grid; place-items: center;
}

/* Callouts */
.callout {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--ochre-deep);
  border-radius: 8px; padding: 16px 20px; margin: 1.2em 0;
}
.callout.alert { border-left-color: #b4432f; }
.callout p:last-child { margin-bottom: 0; }

.fault-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 1.4em 0; }
.fault { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.fault h3 { margin: 0 0 .4em; font-size: 1.08rem; }
.fault p { margin: 0; font-size: .95rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }
.tag.green { background: #e5efdd; color: #3d5c2a; }
.tag.red { background: #f6dcd5; color: #8e2e1d; }
.tag.amber { background: var(--ochre-soft); color: #7a5414; }
.tag.grey { background: var(--stone); color: #574a3e; }

.phone { font-size: 1.5rem; font-family: var(--serif); font-weight: 600; color: var(--wood-dark); text-decoration: none; }

/* Sub-nav (in-page) */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.toc a {
  font-size: .9rem; padding: 6px 14px; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line); text-decoration: none; color: var(--wood-dark); font-weight: 500;
}
.toc a:hover { border-color: var(--ochre-deep); }
[id] { scroll-margin-top: 90px; }

/* Documents */
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 760px; }
.doc {
  display: flex; align-items: center; gap: 16px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
  text-decoration: none; color: var(--text);
}
a.doc:hover { border-color: var(--ochre); box-shadow: 0 6px 18px rgba(60,40,20,.08); color: var(--text); }
.doc-icon {
  width: 42px; height: 50px; flex: none; border-radius: 4px; background: var(--ochre-soft);
  display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: var(--wood); letter-spacing: .04em;
  border: 1px solid #ead4a4;
}
.doc-title { font-weight: 600; }
.doc-meta { font-size: .88rem; color: var(--muted); }
.doc-dl { margin-left: auto; font-weight: 600; font-size: .9rem; color: var(--wood); white-space: nowrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card h3 { margin-top: 0; }
.contact-card p:last-child { margin-bottom: 0; }
.board { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.board li { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; }
.board .role { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ochre-deep); }
.board .name { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--wood-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--wood-dark); color: #eadfcd; padding: 48px 0 36px; margin-top: 0; font-size: .93rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-family: var(--serif); color: #fff; font-size: 1.1rem; margin: 0 0 .6em; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; color: #bfae96; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Textsektioner: vänsterjusterade i samma linje som övrigt innehåll */
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: 46em; }

/* Bildgalleri */
.gallery { display: grid; grid-template-columns: 1fr 1.25fr; grid-template-rows: auto auto; gap: 16px; margin-top: 24px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure:first-child { grid-row: span 2; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(30,18,10,.65)); color: #fff; font-size: .9rem; font-weight: 500;
}
.gallery figure:nth-child(2), .gallery figure:nth-child(3) { aspect-ratio: 3 / 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
}

/* Kontakt */
.contact-stack { display: grid; gap: 20px; }
.email { font-weight: 600; color: var(--wood-dark); word-break: break-all; }
.site-footer .email { color: #fff; font-weight: 500; }

/* Justeringar */
.nav-btn { min-height: 40px; min-width: 44px; justify-content: center; }
.facts thead th { background: var(--wood); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; width: auto; }
.facts thead th:first-child { width: 42%; }
section.tight { padding-top: 0; }
section.tight, section.tight + section { border-top: 0; }
section.tight + section { border-top: 1px solid var(--line); }
.split img.portrait { max-height: 560px; width: auto; justify-self: center; }
.site-footer p { margin: 0; line-height: 1.8; }
.hero .wrap { padding-bottom: 64px; }
@media (max-width: 560px) { .facts thead { display: none; } }

/* E-post i löptext ser ut som vanlig text (inte som en länk) */
.email { font-weight: inherit; color: inherit; word-break: normal; }
.contact-card .email { font-weight: 600; color: var(--wood-dark); }
