/* Snickeri Norr. Phone first: base styles are for phones, wider screens are added in media queries.
   Look: "Falu red workshop". One font family (Archivo): tall, narrow capitals for headings, normal width for text. */

@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-Variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

:root {
  --bg: #f2f0eb;        /* off-white, like planed spruce */
  --bg-2: #e7e3db;
  --surface: #faf9f6;
  --ink: #161616;
  --ink-2: #5f5a54;
  --line: #d6d1c7;
  --accent: #8f2a1c;    /* Falu red. 7.3:1 on --bg */
  --on-accent: #ffffff;
  --accent-soft: #f1ddd8;
  --dark: #161616;
  --on-dark: #f2f0eb;
  --on-dark-2: #b3aea6;
  --err: #a1251a;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --narrow: 62%;        /* font-stretch for headings */

  --wrap: 1320px;
  --r: 2px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0; text-wrap: pretty; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Type scale. Headings: narrow, heavy capitals set tight. Body: quiet and normal width. */
h1, h2, h3 { margin: 0; font-family: var(--font); font-weight: 800; font-stretch: var(--narrow); text-transform: uppercase; text-wrap: balance; }
h1 { font-size: clamp(4.5rem, 22vw, 13.5rem); line-height: .86; letter-spacing: -0.01em; }
h2 { font-size: clamp(3rem, 9vw, 7.4rem); line-height: .88; letter-spacing: -0.005em; }
h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.5; color: var(--ink-2); max-width: 42ch; }
.label { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--ink-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .wrap { padding-left: 48px; padding-right: 48px; } }
section { padding-block: clamp(88px, 13vw, 170px); }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 60; background: var(--surface); padding: 10px 16px; }
.skip:focus { left: 12px; }

/* Split headings (site.js wraps each word). The padding stops letters from being clipped. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0 .06em; margin: -.08em 0 -.06em; }
.w > span { display: inline-block; will-change: transform; }
.reveal { will-change: transform, opacity; }

/* Buttons: square, solid red for the one main action; plain link with arrow for the rest. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; font: 650 17px/1 var(--font); padding: 17px 26px; border-radius: var(--r); text-decoration: none; cursor: pointer; border: 0; white-space: nowrap; transition: background .25s, color .25s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 82%, #000); }
.btn-link { background: none; color: var(--accent); padding: 16px 0; font-weight: 600; }
.btn-link:hover { text-decoration: underline; }
.arr { display: inline-block; transition: transform .25s; }
a:hover > .arr, button:hover > .arr { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }

/* Header. Inner pages: sticky and solid. Home: sits on top of the photo, then (with JavaScript) a solid bar slides in after the hero. */
header.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.logo { font: 800 1.45rem/1 var(--font); font-stretch: 72%; text-transform: uppercase; letter-spacing: .01em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo::before { content: ""; width: 13px; height: 13px; background: var(--accent); flex: none; }
.nav-links { display: none; gap: 32px; list-style: none; margin: 0; padding: 0; font-size: 16px; font-weight: 500; }
.nav-links a { text-decoration: none; padding: 12px 0; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav .btn { min-height: 44px; padding: 13px 18px; font-size: 15px; }
@media (min-width: 860px) { .nav-links { display: flex; } }

header.over { position: absolute; left: 0; right: 0; background: transparent; border-color: rgba(255,255,255,.22); color: #fff; }
header.over .logo::before { background: #fff; }
header.over .menu-btn { background: rgba(255,255,255,.14); color: #fff; }
header.over.stuck { position: fixed; background: var(--bg); color: var(--ink); border-color: var(--line); animation: drop .45s cubic-bezier(.2,.8,.2,1); }
header.over.stuck .logo::before { background: var(--accent); }
header.over.stuck .menu-btn { background: var(--bg-2); color: var(--ink); }
@keyframes drop { from { transform: translateY(-100%); } to { transform: none; } }

/* Phone menu: a full-width sheet under the header. */
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: var(--bg-2); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
@media (min-width: 860px) { .menu-btn { display: none; } }
@media (max-width: 559px) { .nav-right > .btn { display: none; } }
.sheet { position: fixed; inset: var(--header-h) 0 auto; z-index: 29; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 0 24px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.4); }
.sheet[hidden] { display: none; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li a { display: block; padding: 14px 0; font-size: 2.2rem; font-weight: 800; font-stretch: var(--narrow); text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: 20px; width: 100%; }

/* Hero: one full-bleed photo, the trade and the town in huge letters, one action. */
.hero { position: relative; min-height: 100svh; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: #2a2420; overflow: hidden; padding: calc(var(--header-h) + 40px) 0 clamp(28px, 4vw, 48px); }
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 112%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.08) 30%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.72)); }
.hero .wrap { position: relative; width: 100%; display: grid; gap: clamp(22px, 3vw, 32px); }
.hero-row { display: grid; gap: 22px; border-top: 1px solid rgba(255,255,255,.4); padding-top: 22px; }
.hero-row p { max-width: 44ch; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; }
@media (min-width: 860px) { .hero-row { grid-template-columns: 1fr auto; align-items: end; } }

/* Statement: words light up while you scroll past. */
.statement p { font-size: clamp(2rem, 5vw, 4.2rem); font-weight: 700; font-stretch: 80%; line-height: 1.04; letter-spacing: -0.01em; max-width: 24ch; }
.statement .mw { color: color-mix(in srgb, var(--ink) 20%, var(--bg)); transition: color .3s; }
.statement .mw.on { color: var(--ink); }
.statement .mw.hl.on { color: var(--accent); }

/* Services on the home page: big numbered rows that link to the services page. */
.sec-head { display: grid; gap: 20px; max-width: 900px; }
.rows { margin-top: clamp(40px, 6vw, 80px); border-top: 2px solid var(--ink); list-style: none; padding: 0; }
.rows li { border-bottom: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 6px 18px; padding: clamp(22px, 3vw, 34px) 0; text-decoration: none; }
.rows .n { font-weight: 600; font-size: 15px; color: var(--accent); font-variant-numeric: tabular-nums; }
.rows h3 { font-size: clamp(2.2rem, 6vw, 5rem); line-height: .9; transition: color .25s; }
.rows .d { grid-column: 2 / -1; color: var(--ink-2); max-width: 48ch; }
.rows .arr { display: none; font-size: 1.6rem; color: var(--accent); }
.rows a:hover h3 { color: var(--accent); }
@media (min-width: 900px) { .rows a { grid-template-columns: 80px 1.1fr 1fr auto; } .rows .d { grid-column: auto; } .rows .arr { display: block; } }

/* Photo collage: three photos of different sizes that drift at different speeds. */
.collage { display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.collage figure { margin: 0; overflow: hidden; background: var(--bg-2); position: relative; }
.collage img { width: 100%; height: 116%; object-fit: cover; }
.collage .c1 { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.collage .c2 { grid-column: 1 / 4; aspect-ratio: 4 / 5; }
.collage .c3 { grid-column: 4 / -1; aspect-ratio: 4 / 5; margin-top: 18%; }
.collage figcaption { position: absolute; left: 0; bottom: 0; background: var(--bg); padding: 10px 14px 0 0; font-size: 15px; color: var(--ink-2); }
@media (min-width: 900px) {
  .collage { gap: 24px; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .collage .c1 { grid-column: 1 / 8; grid-row: 1; aspect-ratio: 4 / 3; }
  .collage .c2 { grid-column: 9 / -1; grid-row: 1 / 3; aspect-ratio: 4 / 5; margin-top: 30%; }
  .collage .c3 { grid-column: 3 / 8; grid-row: 2; aspect-ratio: 4 / 3; margin-top: 0; }
}

/* How a job works: numbered steps. */
.steps-sec { background: var(--bg-2); }
.steps { margin-top: clamp(40px, 6vw, 80px); list-style: none; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 10px; border-top: 1px solid var(--ink); padding: 24px 0 36px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: clamp(3.4rem, 7vw, 5.6rem); font-weight: 800; font-stretch: var(--narrow); line-height: .85; color: var(--accent); }
.steps b { font-size: 1.25rem; font-weight: 700; }
.steps span { color: var(--ink-2); max-width: 34ch; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Dark contact band at the end of the home page. */
.band { background: var(--dark); color: var(--on-dark); }
.band .lead, .band .muted { color: var(--on-dark-2); }
.band-grid { display: grid; gap: 36px; }
.band .mail-big { font-size: clamp(1.6rem, 4.6vw, 3.4rem); font-weight: 700; font-stretch: 85%; text-decoration: none; word-break: break-word; border-bottom: 2px solid var(--accent); width: fit-content; }
.band .mail-big:hover { border-color: var(--on-dark); }
@media (min-width: 900px) { .band-grid { grid-template-columns: 1.2fr 1fr; align-items: end; } }

/* Inner pages: big heading block. */
.page-head { padding-block: clamp(64px, 10vw, 140px) clamp(40px, 6vw, 80px); border-bottom: 2px solid var(--ink); }
.page-head .wrap { display: grid; gap: 24px; }
.page-head h1 { font-size: clamp(3.6rem, 15vw, 9rem); max-width: 12ch; }

/* Services page: sticky title left, expandable list right. */
.split { display: grid; gap: 40px; align-items: start; }
.split .stick { display: grid; gap: 18px; }
@media (min-width: 900px) { .split { grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 6vw, 96px); } .split .stick { position: sticky; top: calc(var(--header-h) + 48px); } }
.items { border-top: 2px solid var(--ink); }
.item { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 26px 0; }
.item summary::-webkit-details-marker { display: none; }
.item summary .n { font-weight: 600; font-size: 15px; color: var(--accent); width: 2.2em; flex: none; }
.item summary h2 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: .92; }
.item summary i { margin-left: auto; flex: none; width: 44px; height: 44px; border: 1px solid var(--ink); display: grid; place-items: center; font-style: normal; font-size: 22px; transition: background .3s, color .3s; }
.item summary i::before { content: "+"; display: block; transition: transform .35s; }
.item[open] summary i::before { transform: rotate(45deg); }
.item[open] summary i { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.item .body { padding: 0 0 30px calc(2.2em + 18px); color: var(--ink-2); max-width: 60ch; display: grid; gap: 12px; }
.item .body ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.note-box { margin-top: clamp(48px, 6vw, 72px); display: grid; gap: 28px; }
.note-box > div { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 8px; max-width: 46ch; }
.note-box b { font-size: 1.15rem; }
.note-box span { color: var(--ink-2); }
@media (min-width: 760px) { .note-box { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* Contact page */
.contact-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 6vw, 110px); } }
.mail { display: grid; gap: 10px; }
.mail > span { font-size: 15px; color: var(--ink-2); }
.mail div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mail a { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; font-stretch: 85%; text-decoration: none; word-break: break-word; border-bottom: 2px solid var(--accent); }
.copy { min-height: 44px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 15px var(--font); padding: 10px 16px; border-radius: var(--r); cursor: pointer; }
.facts-list { display: grid; gap: 0; margin: 0; }
.facts-list div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts-list dt { font-weight: 600; }
.facts-list dd { margin: 0; color: var(--ink-2); }
form.panel { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: clamp(22px, 3.4vw, 44px); display: grid; gap: 20px; }
form.panel h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.field { display: grid; gap: 8px; }
.field label { font-size: 16px; font-weight: 600; }
.field label small { font-weight: 400; color: var(--ink-2); font-size: 15px; }
.field input, .field textarea { font: 17px var(--font); color: var(--ink); background: var(--bg); border: 1px solid #b9b3a8; border-radius: var(--r); padding: 13px 15px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { min-height: 150px; resize: vertical; }
.two { display: grid; gap: 16px; }
@media (min-width: 520px) { .two { grid-template-columns: 1fr 1fr; } }
.err { font-size: 15px; color: var(--err); }
.err:empty { display: none; }
.done { padding: 14px 16px; background: var(--accent-soft); font-size: 16px; }
.done[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }

/* Footer: the legal details every Swedish business site needs. */
footer { background: var(--dark); color: var(--on-dark-2); padding-block: 56px 56px; font-size: 16px; }
.band + footer { padding-top: 0; }
.foot { display: grid; gap: 28px; border-top: 1px solid #3a3836; padding-top: 36px; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot .logo { color: var(--on-dark); }
.foot .logo::before { background: var(--accent); }
.foot b { display: block; color: var(--on-dark); font-weight: 600; margin-bottom: 6px; }
.foot a { color: var(--on-dark-2); }
.foot-bottom { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 15px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.flush-top { padding-top: 0; }
