/* Affärs Stöd — shared styles */
:root {
  --paper: #f5f6f4;
  --paper-2: #eceeeb;
  --ink: #15222c;
  --ink-2: #22323e;
  --green: #1e4a3d;
  --green-tint: #e2ebe6;
  --rule: #d3d9d5;
  --muted: #58646c;
  --on-ink: #e9eeec;
  --on-ink-muted: #9fb0b8;
  --on-ink-rule: #33444f;
  --mint: #9cc9b4;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.band-ink :focus-visible { outline-color: var(--mint); }

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

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 244, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 6px; background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.9375rem; color: var(--ink-2); }
.nav a:hover { color: var(--green); }
.nav a[aria-current="page"] { color: var(--green); font-weight: 600; }
.nav .btn { color: #fff; }
.nav .btn:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 6px;
  font: 600 0.9375rem/1.2 var(--font); text-decoration: none;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #163a30; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.nav .btn { padding: 9px 16px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.hero h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; max-width: 14ch; }
.hero .lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--ink-2); max-width: 36em; margin: 28px 0 36px; line-height: 1.5; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 48px 0 0; padding: 20px 0 0; border-top: 1px solid var(--rule); list-style: none; font-size: 0.9375rem; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.portrait { margin: 0; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: 8px; background: #d9d1c6; }
.portrait figcaption { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }
.portrait figcaption strong { color: var(--ink); font-weight: 600; display: block; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 88px); }
.section h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); letter-spacing: -0.03em; }
.section .intro { color: var(--muted); margin-top: 18px; max-width: 30em; }

/* Services list */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.services li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.services h3 { font-size: 1.1875rem; letter-spacing: -0.015em; line-height: 1.3; }
.services p { margin: 0; color: var(--muted); }

/* ---------- Prices (ink band) ---------- */
.band-ink { background: var(--ink); color: var(--on-ink); }
.band-ink .intro { color: var(--on-ink-muted); }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--on-ink-muted); }
.price-group { padding: 28px clamp(20px, 2.6vw, 36px) 8px; border-left: 1px solid var(--on-ink-rule); }
.price-group:first-child { border-left: 0; padding-left: 0; }
.price-group:last-child { padding-right: 0; }
.price-group h3 { font-size: 1.375rem; color: #fff; }
.price-group .scope { color: var(--on-ink-muted); font-size: 0.9375rem; margin: 8px 0 20px; }
.price-row { padding: 18px 0; border-top: 1px solid var(--on-ink-rule); }
.price-row .label { font-size: 0.9375rem; color: var(--on-ink); display: block; margin-bottom: 6px; }
.price { font-size: clamp(1.75rem, 2.6vw, 2.125rem); font-weight: 700; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; line-height: 1.15; }
.price .unit { font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; color: var(--on-ink-muted); margin-left: 4px; }
.price-row .note { display: block; font-size: 0.875rem; color: var(--on-ink-muted); margin-top: 6px; }

.promo { border-top-color: var(--mint); }
.promo-tag { display: inline-block; font-size: 0.8125rem; font-weight: 600; color: var(--ink); background: var(--mint); padding: 3px 9px; border-radius: 4px; margin-bottom: 10px; }
.promo .price { color: var(--mint); }
.then { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; font-size: 0.9375rem; color: var(--on-ink-muted); }
.then b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.price-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--on-ink-rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; color: var(--on-ink-muted); font-size: 0.9375rem; }
.price-foot p { margin: 0; max-width: 44em; }
.vat-note { display: block; color: #fff; font-weight: 600; margin-bottom: 4px; }
.band-ink .btn-primary { background: var(--mint); color: var(--ink); }
.band-ink .btn-primary:hover { background: #b6dccb; }

/* ---------- About teaser ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 88px); }
.about blockquote { margin: 0; font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; }
.about .body p { color: var(--ink-2); max-width: 36em; }
.text-link { font-weight: 600; color: var(--green); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Contact band ---------- */
.contact { background: var(--green-tint); border-top: 1px solid var(--rule); }
.contact .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.contact h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); letter-spacing: -0.03em; }
.contact p { margin: 10px 0 0; color: var(--ink-2); }
.contact .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 36px; padding-bottom: 36px; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Article (Om oss) ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.page-head h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.035em; line-height: 1.04; }
.page-head .lede { font-size: clamp(1.125rem, 1.6vw, 1.25rem); color: var(--ink-2); margin: 24px 0 0; max-width: 34em; line-height: 1.5; }
.page-head .portrait img { aspect-ratio: 1 / 1; object-position: 50% 8%; }

.article { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 6vw, 88px); padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--rule); }
.article:last-of-type { border-bottom: 0; }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.025em; }
.article .body { max-width: 40em; }
.article .body p { color: var(--ink-2); }
.article h3 { font-size: 1.125rem; margin: 32px 0 8px; letter-spacing: -0.01em; line-height: 1.3; }
.article h3:first-child { margin-top: 0; }

.deflist { margin: 8px 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.deflist li { padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.deflist strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

.faq { margin: 0; }
.faq dt { font-weight: 600; margin-top: 22px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- Floating contact ---------- */
.float-actions { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; gap: 10px; }
.float-actions a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 20px rgba(21, 34, 44, 0.22); transition: transform .15s; }
.float-actions a:hover { transform: translateY(-2px); }
.float-actions svg { width: 24px; height: 24px; }
.fa-wa { background: #1f7a4d; }
.fa-tt { background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .float-actions a { transition: none; } .float-actions a:hover { transform: none; } }

.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; }

/* ---------- Load moment (one orchestrated reveal) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .reveal-2 { animation-delay: .08s; }
  .reveal-3 { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .price-group, .price-group:first-child, .price-group:last-child { border-left: 0; padding: 32px 0 8px; }
  .price-group + .price-group { border-top: 1px solid var(--on-ink-muted); }
}
@media (max-width: 820px) {
  .nav a:not(.btn) { display: none; }
  .hero .wrap, .page-head .wrap, .section-head, .about, .article { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { align-items: start; }
  .portrait { max-width: 360px; }
  .page-head .portrait { max-width: 240px; }
  .services li { grid-template-columns: minmax(0, 1fr); }
  .float-actions { right: 16px; bottom: 16px; }
  .site-footer .wrap { padding-bottom: 96px; }
  .float-actions a { width: 48px; height: 48px; }
}
@media (max-width: 420px) {
  .site-header .wrap { height: 64px; }
  .brand { font-size: 1rem; }
  .nav .btn { padding: 8px 12px; font-size: 0.875rem; }
  .hero .actions .btn, .contact .actions .btn { width: 100%; justify-content: center; }
}
