/* ==========================================================================
   Söder Markentreprenad AB – stilmall
   Färger hämtade från logotypen. Rubriker: Saira Condensed. Brödtext: Archivo.
   ========================================================================== */

/* Självhostade typsnitt (SIL Open Font License) */
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/saira-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/saira-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/saira-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }

:root {
  --orange: #fb6d02;
  --orange-hover: #e35f00;
  --orange-deep: #c04e00;      /* orange för text på ljus bakgrund (kontrast AA) */
  --orange-red: #e23a00;       /* gradientens startfärg, som i logons ränder */
  --graphite: #1d2023;
  --asphalt: #2a2e32;
  --steel: #5c636a;
  --steel-light: #9aa1a8;
  --concrete: #eeefed;
  --line: #d5d8da;
  --white: #ffffff;

  --font-head: "Saira Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 76px;
  --radius: 2px;
  --stripe-grad: linear-gradient(90deg, var(--orange-red), var(--orange));

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: inherit; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1rem);
  background: var(--graphite);
}

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

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--orange-deep); text-underline-offset: .18em; }
a:hover { color: var(--graphite); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.02;
  margin: 0 0 .5em;
  letter-spacing: .005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 700; line-height: 1.1; }
p { margin: 0 0 1em; max-width: 66ch; }
ul, ol { margin: 0; padding: 0; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--orange); color: var(--graphite); padding: .75rem 1.25rem;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 1rem); }

/* ---------- Logotypens ränder: återkommande grafiskt element ---------- */
.stripes { display: grid; gap: .32em; width: var(--stripes-w, 9rem); font-size: var(--stripes-size, 1rem); }
.stripes i {
  display: block; height: .5em; background: var(--stripe-grad);
  clip-path: polygon(0 0, calc(100% - .9em) 0, 100% 100%, 0 100%);
}
.stripes i:nth-child(1) { width: 46%; }
.stripes i:nth-child(2) { width: 64%; }
.stripes i:nth-child(3) { width: 82%; }
.stripes i:nth-child(4) { width: 100%; }
.stripes--dark i { background: var(--graphite); }

/* ---------- Knappar ---------- */
.btn {
  --cut: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.6rem .8rem 1.4rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.12rem;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  text-decoration: none; border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% 100%, 0 100%);
  transition: background-color .18s ease, color .18s ease;
}
.btn:focus-visible { outline: 3px solid currentColor; outline-offset: -7px; }
.btn-primary { background: var(--orange); color: var(--graphite); }
.btn-primary:hover { background: var(--orange-hover); color: var(--graphite); }
.btn-dark { background: var(--graphite); color: var(--white); }
.btn-dark:hover { background: #000; color: var(--white); }
.btn-outline { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); clip-path: none; }
.btn-outline:hover { background: rgba(255,255,255,.08); color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.btn-outline-dark { background: transparent; color: var(--graphite); box-shadow: inset 0 0 0 2px var(--graphite); clip-path: none; }
.btn-outline-dark:hover { background: var(--graphite); color: var(--white); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.text-link {
  font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; letter-spacing: .02em;
  color: var(--orange-deep); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.text-link:hover { color: var(--graphite); }

/* ---------- Platshållare (fylls i av företaget) ---------- */
.ph {
  display: inline; padding: .05em .45em; border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, #fff1e5 0 7px, #ffe2c9 7px 14px);
  border: 1px dashed var(--orange-deep); color: #6e2d00; font-size: .94em; font-style: normal;
}
.ph-block {
  border: 2px dashed var(--orange-deep); background: #fff6ee; color: #4f2200;
  padding: 1.1rem 1.35rem; border-radius: var(--radius); margin: 1.5rem 0; max-width: 72ch;
}
.ph-block strong { display: block; font-family: var(--font-head); font-size: 1.15rem; margin-bottom: .25rem; color: #6e2d00; }
.ph-block p { margin: 0; }

/* ==========================================================================
   Header och navigation
   ========================================================================== */
.topbar { background: #16181b; color: #c9cdd1; font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 36px; }
.topbar ul { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar li { display: flex; align-items: center; gap: .45rem; }
.topbar li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--orange); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--graphite); color: var(--white);
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 60px; width: auto; }

.nav-list { list-style: none; display: flex; align-items: center; gap: .25rem; }
.nav-list > li { position: relative; }
.nav-link, .nav-sub-toggle {
  display: flex; white-space: nowrap; align-items: center; gap: .35rem;
  padding: .6rem .8rem; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1.14rem; letter-spacing: .02em;
  color: #e7e9ea; text-decoration: none; position: relative;
}
.nav-link:hover, .nav-sub-toggle:hover { color: var(--white); }
.nav-link[aria-current="page"], .nav-link.is-current { color: var(--white); }
.nav-link[aria-current="page"]::after, .nav-link.is-current::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 4px;
  background: var(--stripe-grad); clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 100%, 0 100%);
}
.nav-row { display: flex; align-items: center; }
.has-sub .nav-link { padding-right: .2rem; }
.nav-sub-toggle { padding: .6rem .5rem .6rem .15rem; color: #c9cdd1; }
.nav-sub-toggle svg { width: 1.05rem; height: 1.05rem; transition: transform .2s ease; }

.sub-menu {
  list-style: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 300px;
  background: var(--asphalt); padding: .5rem 0; border-top: 3px solid var(--orange);
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.sub-menu a {
  display: block; padding: .6rem 1.25rem; color: #e7e9ea; text-decoration: none; font-weight: 500;
}
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: rgba(255,255,255,.06); color: var(--orange); }
.sub-menu .sub-all { font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .25rem; }

@media (hover: hover) and (min-width: 1181px) {
  .has-sub:hover .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .has-sub:hover .nav-sub-toggle svg { transform: rotate(180deg); }
}
.has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.has-sub.is-open .nav-sub-toggle svg { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; flex: none; }
.header-phone { display: flex; align-items: center; gap: .5rem; color: var(--white); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; white-space: nowrap; }
.header-phone svg { width: 1.15rem; height: 1.15rem; color: var(--orange); }
.header-phone:hover { color: var(--orange); }
.header-actions .btn { min-height: 46px; font-size: 1rem; padding-inline: 1.2rem 1.4rem; }

.nav-toggle { display: none; }
.nav-head, .nav-foot { display: none; }

@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 46px; padding: 0 .9rem; background: transparent; color: var(--white);
    border: 2px solid rgba(255,255,255,.3); border-radius: var(--radius); cursor: pointer;
    font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em;
  }
  .nav-toggle-bars { display: grid; gap: 4px; width: 22px; }
  .nav-toggle-bars span { height: 3px; background: var(--orange); clip-path: polygon(0 0, calc(100% - 3px) 0, 100% 100%, 0 100%); }
  .nav-toggle-bars span:nth-child(1) { width: 60%; }
  .nav-toggle-bars span:nth-child(2) { width: 80%; }
  .nav-toggle-bars span:nth-child(3) { width: 100%; }

  .header-actions .btn { display: none; }

  .site-nav {
    position: fixed; inset: 0; z-index: 150; background: var(--graphite);
    display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
    transform: translateX(100%); visibility: hidden;
    transition: transform .28s cubic-bezier(.2,.7,.2,1), visibility 0s linear .28s;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-nav { transform: none; visibility: visible; transition-delay: 0s; }

  .nav-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    min-height: var(--header-h); padding-inline: var(--gutter); border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-head img { height: 50px; width: auto; }
  .nav-close {
    width: 48px; height: 48px; display: grid; place-items: center; background: transparent;
    border: 2px solid rgba(255,255,255,.3); color: var(--white); border-radius: var(--radius); cursor: pointer;
  }
  .nav-close svg { width: 22px; height: 22px; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--gutter); }
  .nav-list > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-link, .nav-sub-toggle { width: 100%; justify-content: space-between; font-size: 1.6rem; padding: .85rem 0; }
  .nav-link[aria-current="page"]::after, .nav-link.is-current::after { left: 0; right: auto; width: 3rem; bottom: .45rem; }
  .nav-row { justify-content: space-between; }
  .has-sub .nav-link { flex: 1; }
  .nav-sub-toggle { width: 48px; height: 48px; padding: 0; justify-content: center; flex: none; border: 2px solid rgba(255,255,255,.18); border-radius: var(--radius); }
  .nav-sub-toggle svg { width: 1.4rem; height: 1.4rem; }
  .sub-menu {
    position: static; min-width: 0; box-shadow: none; border-top: 0; background: transparent; padding: 0 0 .75rem;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .has-sub.is-open .sub-menu { display: block; }
  .sub-menu a { padding: .55rem 0 .55rem 1rem; font-size: 1.1rem; border-left: 3px solid rgba(255,255,255,.12); }
  .sub-menu a[aria-current="page"] { border-left-color: var(--orange); background: none; }
  .sub-menu .sub-all { border-bottom: 0; margin: 0; }

  .nav-foot { display: grid; gap: 1rem; padding: 1.5rem var(--gutter) 2.5rem; margin-top: auto; }
  .nav-foot .nav-phone { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--white); text-decoration: none; }
  .nav-foot small { color: var(--steel-light); font-size: .9rem; }
  .nav-foot .btn { width: 100%; }
}

@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .brand img { height: 46px; }
  .header-phone span { display: none; }
  .header-phone { width: 46px; height: 46px; justify-content: center; border: 2px solid rgba(255,255,255,.3); border-radius: var(--radius); }
  .header-actions { gap: .6rem; }
  .nav-toggle-label { display: none; }
  .topbar { display: none; }
}

/* ==========================================================================
   Hero (startsida)
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--graphite); color: var(--white);
}
.hero-media { position: absolute; inset: 0 0 0 34%; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--graphite) 0%, rgba(29,32,35,.82) 28%, rgba(29,32,35,.25) 75%, rgba(29,32,35,.1) 100%);
}
.hero-inner { padding-block: clamp(1.75rem, 3.5vw, 3rem) clamp(3rem, 7vw, 6rem); }

.hero-title { font-size: clamp(3rem, 9.2vw, 7.4rem); line-height: .9; margin: 0 0 2rem; letter-spacing: -.005em; }
.hero-title .hl { display: flex; align-items: center; gap: .18em; }
.hero-title .hl i {
  display: block; flex: none; height: .2em; background: var(--stripe-grad);
  clip-path: polygon(0 0, calc(100% - .28em) 0, 100% 100%, 0 100%);
  transform-origin: left center;
}
.hero-title .hl:nth-child(1) i { width: .5em; }
.hero-title .hl:nth-child(2) i { width: .9em; }
.hero-title .hl:nth-child(3) i { width: 1.3em; }
.hero-title .hl:nth-child(4) i { width: 1.7em; }

.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #d9dcdf; max-width: 40ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.25rem; }

.hero-phone { display: inline-flex; flex-direction: column; gap: .1rem; text-decoration: none; color: var(--white); margin-bottom: 2.75rem; }
.hero-phone small { color: var(--steel-light); font-size: .95rem; }
.hero-phone strong { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; letter-spacing: .01em; }
.hero-phone:hover strong { color: var(--orange); }

.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; color: #e1e3e5; font-weight: 600; font-size: .98rem; }
.hero-facts li { display: flex; align-items: center; gap: .55rem; }
.hero-facts li::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff9a3d, var(--orange-red)); }

@media (prefers-reduced-motion: no-preference) {
  .hero-title .hl i { animation: stripe-in .55s cubic-bezier(.2,.7,.2,1) both; }
  .hero-title .hl span { animation: word-in .5s ease both; }
  .hero-title .hl:nth-child(1) i { animation-delay: .05s; } .hero-title .hl:nth-child(1) span { animation-delay: .15s; }
  .hero-title .hl:nth-child(2) i { animation-delay: .15s; } .hero-title .hl:nth-child(2) span { animation-delay: .25s; }
  .hero-title .hl:nth-child(3) i { animation-delay: .25s; } .hero-title .hl:nth-child(3) span { animation-delay: .35s; }
  .hero-title .hl:nth-child(4) i { animation-delay: .35s; } .hero-title .hl:nth-child(4) span { animation-delay: .45s; }
}
@keyframes stripe-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes word-in { from { opacity: 0; transform: translateX(-.15em); } to { opacity: 1; transform: none; } }

@media (max-width: 800px) {
  .hero-media { inset: 0; }
  .hero-media::after { background: linear-gradient(180deg, rgba(29,32,35,.8) 0%, rgba(29,32,35,.93) 55%, var(--graphite) 100%); }
}

/* ---------- Pil nedåt (fyra streck som i logon) ---------- */
.down-arrow { display: block; width: clamp(4.5rem, 8vw, 6.5rem); margin: 1.25rem auto 0; line-height: 0; }
.page-hero-inner { position: relative; }
@media (min-width: 900px) {
  .page-hero-inner .down-arrow { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); margin: 0; }
}
.down-arrow svg { width: 100%; height: auto; }
.down-arrow:focus-visible { outline-offset: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .down-arrow svg { animation: arrow-nudge 2.2s ease-in-out infinite; }
  .down-arrow:hover svg { animation-play-state: paused; }
}
@keyframes arrow-nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(8px); } }

/* ---------- Undersidornas toppsektion ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--graphite); color: var(--white); }
.page-hero-media { position: absolute; inset: 0 0 0 45%; z-index: -1; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--graphite) 0%, rgba(29,32,35,.7) 40%, rgba(29,32,35,.25) 100%); }
.page-hero-inner { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }
.page-hero h1 { max-width: 16ch; margin-bottom: .4em; }
.page-hero .lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: #d9dcdf; max-width: 50ch; margin: 0; }
.page-hero .stripes { --stripes-w: 7.5rem; margin-bottom: 1.5rem; }
@media (max-width: 800px) {
  .page-hero-media { inset: 0; }
  .page-hero-media::after { background: rgba(29,32,35,.84); }
}

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .92rem; color: var(--steel-light); margin-bottom: 1.75rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: #6d747b; }
.breadcrumbs a { color: #e1e3e5; text-decoration: none; }
.breadcrumbs a:hover { color: var(--orange); }

/* ==========================================================================
   Sektioner
   ========================================================================== */
.section { padding-block: clamp(3.75rem, 8vw, 6.75rem); }
.section--concrete { background: var(--concrete); }
.section--dark { background: var(--asphalt); color: var(--white); }
.section--dark p { color: #d3d6d9; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head { max-width: 50rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { font-size: 1.12rem; color: var(--steel); }
.section--dark .section-head p { color: #c3c8cc; }

.prose p { font-size: 1.08rem; }
.prose h2 { margin-top: 0; }
.prose .lead-p { font-size: 1.22rem; color: var(--graphite); }

/* Tvåspaltig layout med bild */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--reverse .split-media { order: -1; }
.split-media { position: relative; }
.split > :only-child { grid-column: 1 / -1; max-width: 56rem; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--asphalt); }
.split-media .stripes { position: absolute; left: -1.25rem; bottom: -1.4rem; --stripes-w: 8.5rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media .stripes { left: 0; }
}

/* Bred bild inne i en sektion */
.wide-media { margin-top: clamp(2rem, 4vw, 3rem); }
.wide-media img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--radius); background: var(--asphalt); }
.split-media + .ph-block { margin-top: 1.25rem; }
@media (max-width: 600px) { .wide-media img { aspect-ratio: 4 / 3; } }

/* Faktarad utan påhittade siffror */
.fact-list { list-style: none; display: grid; gap: .8rem; margin: 1.75rem 0 2rem; }
.fact-list li { display: flex; gap: .85rem; align-items: baseline; font-weight: 600; font-size: 1.05rem; }
.fact-list li::before {
  content: ""; flex: none; width: 1.1rem; height: .45rem; background: var(--stripe-grad); transform: translateY(-.15rem);
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 100%, 0 100%);
}

/* ---------- Tjänstekort, startsidan ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: minmax(320px, auto); gap: 1rem; }
.svc-card {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  background: var(--graphite); color: var(--white); text-decoration: none; border-radius: var(--radius);
}
.svc-card:first-child { grid-column: auto; }
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.svc-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29,32,35,.05) 10%, rgba(29,32,35,.55) 45%, rgba(29,32,35,.94) 100%); }
.svc-card-body { padding: 4rem 1.6rem 1.9rem; }
.svc-card h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 800; margin-bottom: .35rem; }

.svc-card p { color: #d8dbde; margin: 0 0 1rem; font-size: 1rem; max-width: 38ch; }
.svc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0 1rem; max-width: 44ch; }
.svc-tags li {
  font-size: .84rem; font-weight: 600; line-height: 1.2; color: var(--white);
  padding: .32rem .55rem; background: rgba(29,32,35,.55); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border-radius: var(--radius);
}
.svc-card:first-child .svc-tags li { font-size: .92rem; }
.svc-card .svc-tags + .more { display: inline-block; }
.tag-intro { margin: 1rem 0 0; font-weight: 700; }
.tag-intro + .tag-list { margin-top: .6rem; }
.svc-card .more { font-family: var(--font-head); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); }
.svc-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 6px; width: 4.5rem;
  background: var(--stripe-grad); clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 100%, 0 100%);
  transition: width .45s cubic-bezier(.2,.7,.2,1);
}
.svc-card:hover::after, .svc-card:focus-visible::after { width: 100%; }
.svc-card:hover img { transform: scale(1.04); }
.svc-card:focus-visible { outline-offset: 4px; }
@media (max-width: 960px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-card:first-child { grid-column: auto; grid-row: auto; }
}
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(250px, auto); }
  .svc-card:first-child { grid-column: auto; min-height: 320px; }
}

/* ---------- Kundgrupper / listor med rubrik ---------- */
.group-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(1.5rem, 3vw, 2.75rem); }
.group-grid li { padding: 1.5rem 0 1.75rem; border-top: 2px solid var(--graphite); }
.group-grid h3 { margin-bottom: .45rem; }
.group-grid p { margin: 0; color: #3e444a; }
.section--dark .group-grid li { border-top-color: rgba(255,255,255,.25); }
.section--dark .group-grid p { color: #cfd3d6; }
@media (max-width: 900px) { .group-grid { grid-template-columns: 1fr 1fr; } }
.group-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1060px) { .group-grid--4 { grid-template-columns: 1fr 1fr; } }
.group-grid li { position: relative; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:hover, .group-grid li:hover .card-link { color: var(--orange-deep); }
.card-link:focus-visible { outline: none; }
.group-grid li:focus-within { outline: 3px solid var(--orange); outline-offset: 4px; }
.cust-grid li { padding-bottom: 2rem; }
.cust-grid .text-link { display: inline-block; margin-top: .9rem; }
.note { margin-top: 2rem; font-size: 1.05rem; }
@media (max-width: 560px) { .group-grid { grid-template-columns: 1fr; } }

.item-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 4vw, 3.5rem); }
.item-grid li { padding: 1.4rem 0 1.5rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; }
.item-grid li::before {
  content: ""; width: .75rem; height: .75rem; margin-top: .4rem; background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.item-grid h3 { margin-bottom: .35rem; font-size: 1.4rem; }
.item-grid p { margin: 0; color: #3e444a; }
@media (max-width: 760px) { .item-grid { grid-template-columns: 1fr; } }

.checks { list-style: none; display: grid; gap: .75rem; margin: 1.25rem 0; }
.checks li { position: relative; padding-left: 2rem; font-size: 1.05rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3rem; width: 1.1rem; height: 1.1rem; background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.checks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 3rem; max-width: 60rem; }
@media (max-width: 700px) { .checks--cols { grid-template-columns: 1fr; } }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.75rem; }
.tag-list li { padding: .35rem .75rem; border: 1px solid var(--line); background: var(--white); font-size: .92rem; font-weight: 600; border-radius: var(--radius); }

/* ---------- Huvud- eller underentreprenör ---------- */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.roles--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .roles--3 { grid-template-columns: 1fr; } }
.role { background: rgba(255,255,255,.04); border-left: 4px solid var(--orange); padding: clamp(1.5rem, 3vw, 2.25rem); }
.role p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } }

/* ---------- Tjänsteöversikt (sicksack) ---------- */
.svc-rows { display: grid; gap: clamp(3.5rem, 7vw, 6rem); }
.svc-row h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.svc-row .split-media img { aspect-ratio: 3 / 2; }

/* ---------- Arbetsgång ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; counter-reset: step; }
.steps li { position: relative; padding-top: 4.25rem; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-weight: 800; font-size: 3.25rem; line-height: 1; color: var(--orange-deep);
}
.steps li::after { content: ""; position: absolute; top: 1.6rem; left: 2.6rem; right: -1.25rem; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.steps p { margin: 0; color: #3e444a; font-size: .98rem; }
@media (max-width: 1060px) { .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; } .steps li:nth-child(3)::after { display: none; } }
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { padding: 0 0 1.75rem 4rem; }
  .steps li::before { font-size: 2.5rem; }
  .steps li::after { top: 3rem; bottom: .5rem; left: .9rem; right: auto; width: 2px; height: auto; }
  .steps li:nth-child(3)::after { display: block; }
}

/* ---------- Relaterade tjänster ---------- */
.related { display: flex; flex-wrap: wrap; gap: .75rem; }
.related a {
  display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.2rem;
  border: 2px solid var(--graphite); color: var(--graphite); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; border-radius: var(--radius);
}
.related a:hover { background: var(--graphite); color: var(--white); }

/* ---------- CTA-band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--orange); color: var(--graphite); }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 2rem 3rem; align-items: center; padding-block: clamp(3rem, 7vw, 5rem); position: relative; }
.cta-band h2 { margin-bottom: .3em; max-width: 20ch; }
.cta-band p { font-size: 1.15rem; margin: 0; color: #2d1400; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.cta-phone { font-family: var(--font-head); font-weight: 800; font-size: 1.75rem; color: var(--graphite); text-decoration: none; }
.cta-phone:hover { color: #000; text-decoration: underline; }
.cta-band .stripes { position: absolute; right: -1.5rem; top: 1.25rem; --stripes-w: 14rem; --stripes-size: 1.25rem; opacity: .14; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- RUT-avdrag ---------- */
.rut-note { margin-top: 2rem; max-width: 60rem; padding: 1.25rem 1.5rem; background: #fff4ea; border-left: 5px solid var(--orange); border-radius: var(--radius); }
.rut-note strong { display: block; font-family: var(--font-head); font-size: 1.35rem; margin-bottom: .3rem; color: var(--graphite); }
.rut-note p { margin: 0; color: #3e444a; }

/* ---------- Vanliga frågor ---------- */
.faq { display: grid; gap: .75rem; max-width: 56rem; }
.faq-item { background: rgba(255,255,255,.05); border-left: 4px solid var(--orange); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.35rem; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--white);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 1.6rem; }
.faq-item summary::after { transition: transform .2s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item div { padding: 0 1.35rem 1.25rem; }
.faq-item p { margin: 0; color: #d3d6d9; }

/* ==========================================================================
   Referenser
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button {
  padding: .6rem 1rem; background: var(--white); border: 2px solid var(--line); cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--graphite); border-radius: var(--radius);
}
.filters button:hover { border-color: var(--graphite); }
.filters button[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--white); }

.gallery { list-style: none; display: grid; grid-auto-flow: dense; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery li.is-wide { grid-column: span 2; }
.gallery li[hidden] { display: none; }
.project {
  display: block; width: 100%; padding: 0; border: 0; text-align: left; cursor: pointer;
  background: var(--white); color: var(--graphite); font: inherit;
}
.project-media { position: relative; overflow: hidden; background: var(--asphalt); }
.project-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery li.is-wide .project-media img { aspect-ratio: 8 / 4.2; }
.project:hover .project-media img { transform: scale(1.03); }
.project-flag { position: absolute; top: .9rem; left: .9rem; background: var(--orange); color: var(--graphite); font-weight: 700; font-size: .85rem; padding: .3rem .6rem; }
.project-text { display: block; padding: 1.1rem 1.2rem 1.3rem; border: 1px solid var(--line); border-top: 0; }
.project-cat { display: block; color: var(--orange-deep); font-weight: 700; font-size: .9rem; margin-bottom: .25rem; }
.project-title { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; line-height: 1.15; }
.project:focus-visible { outline-offset: 4px; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } .gallery li.is-wide { grid-column: auto; } .gallery li.is-wide .project-media img { aspect-ratio: 4 / 3; } }

.lightbox { border: 0; padding: 0; width: min(960px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); background: var(--white); color: var(--graphite); }
.lightbox::backdrop { background: rgba(10,12,14,.85); }
.lightbox img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--asphalt); }
.lightbox-body { padding: 1.5rem clamp(1.25rem, 3vw, 2rem) 2rem; }
.lightbox-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lightbox-close {
  position: absolute; top: .75rem; right: .75rem; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--graphite); color: var(--white); border: 0; cursor: pointer; border-radius: var(--radius);
}
.lightbox-close svg { width: 22px; height: 22px; }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-side { display: grid; gap: 1.5rem; }
.contact-tips { background: var(--concrete); padding: clamp(1.5rem, 3vw, 2rem); }
.contact-tips h2 { font-size: 1.6rem; }
.contact-tips .checks { margin-bottom: 0; }
.contact-card { background: var(--graphite); color: var(--white); padding: clamp(1.75rem, 3vw, 2.5rem); position: relative; }
.contact-card h2 { font-size: 2rem; }
.contact-card .big-phone { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 4vw, 2.9rem); color: var(--orange); text-decoration: none; line-height: 1; margin: .25rem 0 1.5rem; }
.contact-card .big-phone:hover { color: var(--white); }
.contact-card dl { margin: 0; display: grid; gap: 1rem; }
.contact-card dt { font-size: .88rem; color: var(--steel-light); }
.contact-card dd { margin: 0; font-weight: 600; }
.contact-card .stripes { margin-top: 2rem; --stripes-w: 7rem; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .98rem; }
.field label .req { color: var(--orange-deep); }
.field label .opt { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--graphite); background: var(--white);
  border: 2px solid #c3c7cb; border-radius: var(--radius); padding: .8rem .9rem; min-height: 52px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231d2023'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; background-size: 1.5rem; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(251,109,2,.25); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .error { color: #b3261e; font-size: .9rem; font-weight: 600; }
.field .hint { font-size: .88rem; color: var(--steel); }
.file-pick { position: relative; display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .6rem; background: var(--concrete); border: 2px dashed #c3c7cb; border-radius: var(--radius); }
.file-pick input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; min-height: 0; padding: 0; border: 0; }
.file-btn { flex: none; font-weight: 700; padding: .55rem 1rem; background: var(--graphite); color: var(--white); border-radius: var(--radius); pointer-events: none; }
.file-names { color: var(--steel); font-size: .95rem; pointer-events: none; overflow-wrap: anywhere; }
.file-pick:hover { border-color: var(--graphite); }
.file-pick:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(251,109,2,.25); }
.file-pick:has([aria-invalid="true"]) { border-color: #b3261e; }
.field.check { display: grid; grid-template-columns: auto 1fr; gap: .15rem .75rem; align-items: start; }
.field.check input { width: 1.35rem; height: 1.35rem; min-height: 0; margin: .15rem 0 0; accent-color: var(--orange); padding: 0; }
.field.check label { font-weight: 400; font-size: .98rem; }
.field.check .error { grid-column: 2; }
.field.check [aria-invalid="true"] { outline: 2px solid #b3261e; outline-offset: 2px; }
.captcha:empty { display: none; }
.form-note { grid-column: 1 / -1; font-size: .92rem; color: var(--steel); margin: 0; }
.form-actions { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 1rem 1.2rem; border-left: 4px solid var(--orange); background: var(--concrete); font-weight: 600; }
.form-status[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } .form .btn { width: 100%; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--graphite); color: #c9cdd1; font-size: .98rem; }
.footer-stripes { display: grid; gap: 5px; padding-top: 0; }
.footer-stripes i { display: block; height: 7px; background: var(--stripe-grad); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%); }
.footer-stripes i:nth-child(1) { width: 34%; } .footer-stripes i:nth-child(2) { width: 52%; } .footer-stripes i:nth-child(3) { width: 70%; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1fr 1fr; gap: 2rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-brand img { width: 240px; height: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 34ch; }
.site-footer h2 { font-size: 1.3rem; color: var(--white); margin-bottom: 1rem; font-weight: 700; }
.site-footer h2 a { color: var(--white); text-decoration: none; }
.site-footer h2 a:hover { color: var(--orange); }
.footer-bottom a { color: var(--steel-light); }
.policy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.25rem; }
.policy .checks li { font-size: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .5rem; }
.site-footer a { color: #e3e5e7; text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.footer-phone { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--white) !important; }
.footer-company { display: grid; gap: .3rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem; font-size: .9rem; color: var(--steel-light); }
.footer-bottom .wrap > span:last-child { display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (max-width: 1100px) { .footer-main { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 700px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .site-header, .cta-band, .site-footer, .hero-media, .page-hero-media { display: none !important; }
  .hero, .page-hero { background: none; color: #000; }
}


/* Avdragsmärkning */
.badge{display:inline-block;margin-left:.35rem;font-size:.68em;font-weight:700;letter-spacing:.03em;text-transform:uppercase;vertical-align:middle;}
