/* =========================================================
   Systemvaruhuset – stilmall
   Tema: Skog (varm sand, djupgrönt, serif)
   ========================================================= */

:root {
  --bg: #f1ebdf;
  --bg-alt: #1e3a2c;
  --surface: #f8f4ec;
  --text: #1c2a22;
  --muted: #5d6a61;
  --line: rgba(28, 42, 34, .15);
  --accent: #1e3a2c;
  --accent-ink: #f1ebdf;
  --highlight: #b5672f;
  --radius: 22px;
  --radius-btn: 999px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-eyebrow: "Instrument Sans", system-ui, sans-serif;
  --display-weight: 400;
  --display-track: -0.015em;
  --display-style-em: italic;
  --glow: radial-gradient(50% 60% at 80% 20%, rgba(181, 103, 47, .14), transparent 70%);
  --shadow: 0 1px 0 var(--line);
  --header-bg: rgba(241, 235, 223, .85);
}

/* =========================================================
   Bas
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 em, h2 em { font-style: var(--display-style-em); color: var(--highlight); }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(1180px, 100% - 4rem); } }

.skip {
  position: absolute; left: -999px; top: 1rem; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem;
}
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--highlight); outline-offset: 3px; }

.eyebrow {
  font-family: var(--font-eyebrow);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

/* ---------- Ordmärke (återskapar logotypen) ---------- */
.wordmark {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .42em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
}
.wordmark sup { font-size: .55em; letter-spacing: 0; margin-left: -.25em; vertical-align: .9em; }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: var(--radius-btn);
  font: 500 .95rem/1 var(--font-body);
  text-decoration: none;
  transition: transform .2s ease, background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { min-height: 40px; padding: .55rem 1.1rem; font-size: .88rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.5rem; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { text-decoration: none; font-size: .93rem; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }

.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  position: relative; cursor: pointer; color: var(--text);
}
.menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform .3s ease, top .3s ease;
}
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .wordmark { font-size: .72rem; letter-spacing: .32em; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1.5rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 1rem 0; font-size: 1.15rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; min-height: 52px; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding: clamp(3.5rem, 9vw, 8rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-glow { position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.lead { margin-top: 1.6rem; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 36rem; }

.hero-visual { position: relative; min-height: 440px; }
.mock {
  position: absolute; width: min(320px, 85%);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  font-size: .9rem;
}
.mock-permit { top: 0; right: 0; animation: float 7s ease-in-out infinite; }
.mock-ticket { bottom: 0; left: 0; animation: float 7s ease-in-out -3.5s infinite; }
.mock-head { display: flex; align-items: center; gap: .5rem; font: 500 .72rem/1 var(--font-eyebrow); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--highlight); }
.mock-title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.25rem; letter-spacing: var(--display-track); margin-bottom: .8rem; }
.mock-row { display: flex; justify-content: space-between; padding: .5rem 0; border-top: 1px solid var(--line); }
.mock-row span { color: var(--muted); }
.mock-row b { font-weight: 600; }
.ok { color: var(--highlight); }
.mock-bar { height: 6px; margin-top: .9rem; background: var(--line); border-radius: 99px; overflow: hidden; }
.mock-bar i { display: block; height: 100%; background: var(--highlight); border-radius: inherit; }
.mock-ticket-row { display: flex; justify-content: space-between; align-items: center; }
.mock-ticket p { color: var(--muted); margin: .2rem 0 .9rem; }
.mock-ticket p:last-child { margin-bottom: 0; }
.pill { font-size: .72rem; padding: .2rem .6rem; border-radius: 99px; background: var(--accent); color: var(--accent-ink); }
.pill-done { background: transparent; color: var(--muted); border: 1px solid var(--line); }

@keyframes float { 50% { transform: translateY(-10px); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 450px; max-width: 440px; width: 100%; margin-inline: auto; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 1.1rem 0; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee span {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: var(--display-track);
  white-space: nowrap; color: var(--muted);
  display: inline-flex; align-items: center; gap: 3rem;
}
.marquee span::after { content: "✦"; font-size: .6em; color: var(--highlight); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   Sektioner
   ========================================================= */
.section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.section-lead { margin-top: 1.25rem; color: var(--muted); font-size: 1.12rem; }

/* ---------- Produkter ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.product {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 4vw, 3rem);
  transition: transform .3s ease, box-shadow .3s ease;
}
.product:hover { transform: translateY(-4px); }
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.product-mark {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1 var(--font-body); letter-spacing: .04em;
}
.tag { font: 500 .75rem/1 var(--font-eyebrow); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: .45rem .8rem; border-radius: 99px; }
.product h3 { font-size: clamp(2rem, 4vw, 3rem); }
.product-lead { margin-top: 1rem; color: var(--muted); }
.features { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .1rem; }
.features li { position: relative; padding: .7rem 0 .7rem 1.9rem; border-top: 1px solid var(--line); font-size: .98rem; }
.features li::before {
  content: ""; position: absolute; left: .15rem; top: 1.05rem; width: 11px; height: 6px;
  border-left: 2px solid var(--highlight); border-bottom: 2px solid var(--highlight); transform: rotate(-45deg);
}
.product-note { margin-top: 1.5rem; font-size: .9rem; color: var(--muted); font-style: italic; }
.product .link-arrow { margin-top: auto; padding-top: 1.5rem; align-self: flex-start; border: 0; }

@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }

/* ---------- Bento (plattform) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cell {
  grid-column: span 1;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}
.cell-wide { grid-column: span 2; }
.cell h3 { font-size: 1.4rem; margin: 1.25rem 0 .5rem; }
.cell p { color: var(--muted); font-size: .97rem; }
.ico { width: 30px; height: 30px; fill: none; stroke: var(--highlight); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .cell-wide { grid-column: span 1; } }

/* ---------- Verksamhetsområden ---------- */
.areas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.areas li { padding: 2rem 2rem 2.5rem 0; border-bottom: 1px solid var(--line); }
.areas li:not(:nth-child(3n+1)) { padding-left: 2rem; border-left: 1px solid var(--line); }
.num { font: 500 .8rem/1 var(--font-eyebrow); color: var(--highlight); letter-spacing: .1em; }
.areas h3 { font-size: 1.5rem; margin: 1rem 0 .6rem; }
.areas p { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) {
  .areas { grid-template-columns: 1fr 1fr; }
  .areas li, .areas li:not(:nth-child(3n+1)) { padding: 1.75rem 1.25rem 2rem 0; border-left: 0; }
  .areas li:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .areas { grid-template-columns: 1fr; }
  .areas li, .areas li:nth-child(even) { padding: 1.5rem 0; border-left: 0; }
}

/* ---------- Om oss ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); }
.about-text p + p { margin-top: 1.25rem; }
.about-text > p { font-size: 1.12rem; }
.values { margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.values div { border-top: 1px solid var(--line); padding-top: 1rem; }
.values dt { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.3rem; letter-spacing: var(--display-track); }
.values dd { margin: .4rem 0 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact-card {
  text-align: center; max-width: 52rem; margin-inline: auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.contact-card .section-lead { max-width: 34rem; margin-inline: auto; }
.contact-card .cta-row { justify-content: center; }
.contact-card .btn { word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.footer-nav a:hover { color: var(--text); }
.site-footer small { color: var(--muted); }
@media (max-width: 560px) { .footer-inner { flex-direction: column; align-items: flex-start; } }

/* ---------- Reveal-animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mock, .marquee-track { animation: none; }
}

/* =========================================================
   Skog – temadetaljer
   ========================================================= */
.section-alt {
  --text: #f1ebdf; --muted: #b8c4b9; --line: rgba(241, 235, 223, .16);
  --surface: #25463a; --highlight: #e0a26f;
  color: var(--text);
}
.hero h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: .98; }
.section h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.contact-card { background: var(--accent); color: var(--accent-ink); border: 0; }
.contact-card .eyebrow,
.contact-card .section-lead { color: #c9d3c8; }
.contact-card .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
