/* ===========================================================================
   Betong1an AB — gemensam stil för alla sidor
   Brytpunkter: > 1024 dator (toppmeny) · ≤ 1024 läsplatta (bottenmeny) · ≤ 600 mobil
   =========================================================================== */

:root {
  --warm: #f5f4f0;
  --concrete: #e7e5df;
  --graphite: #252724;
  --dark: #191b19;
  --muted: #636c71;
  --line: #c9c8c2;
  --orange: #cc481c;
  --lime: #c5d92e;
  --blue: #607985;
  --green: #667566;
  --white: #fff;
  --max: 1200px;
  --bn-h: 64px;
  --rubrik: Archivo, Bahnschrift, "Arial Narrow", sans-serif;
  --brod: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--graphite);
  background: var(--warm);
  font-family: var(--brod);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--rubrik);
  letter-spacing: -.035em;
  line-height: 1.05;
}
h1 { max-width: 800px; font-size: clamp(52px, 5.5vw, 82px); }
.h1-sub { display: block; max-width: 620px; margin-top: 20px; color: #50544f; font-family: var(--brod); font-size: 21px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
h2 { max-width: 780px; font-size: clamp(40px, 4vw, 58px); }
h3 { font-size: 28px; }
p { margin: 0; }
.lead { max-width: 720px; font-size: 21px; line-height: 1.55; }

/* --- Knappar --- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .045em;
  text-decoration: none;
  text-transform: uppercase;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-light { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-dark { border-color: var(--graphite); color: var(--graphite); }
.btn-primary:hover { background: #b33d15; }
.btn-light:hover { background: rgba(255,255,255,.12); }
.btn-dark:hover { background: var(--graphite); color: var(--white); }

/* --- Header (toppmeny) --- */
.site-header { position: relative; z-index: 2; background: var(--graphite); color: var(--white); }
.site-header .container { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 40px; }
.logo-link { display: block; }
.logo { width: 198px; height: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 14px; font-weight: 700; text-decoration: none; }
.nav a { position: relative; }
.nav a:not(.contact):hover { color: #efb19a; }
.nav a[aria-current="page"]:not(.contact)::after { content: ""; position: absolute; right: 0; bottom: -13px; left: 0; height: 3px; background: var(--orange); }
.nav .contact { padding: 11px 17px; border-radius: 3px; background: var(--orange); }
.nav .contact:hover { background: #b33d15; }

/* --- Hero (startsidan) --- */
.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: #222;
}
.hero-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(22,24,22,.94) 0%, rgba(22,24,22,.78) 42%, rgba(22,24,22,.18) 76%, rgba(22,24,22,.08) 100%);
}
.hero-content { position: relative; z-index: 2; padding-block: 100px 122px; }
.hero .lead { margin-top: 28px; color: rgba(255,255,255,.9); }
.hero-note {
  position: absolute;
  z-index: 2;
  right: max(32px, calc((100vw - var(--max))/2));
  bottom: 34px;
  padding: 11px 14px;
  border-left: 4px solid var(--orange);
  background: rgba(22,24,22,.8);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* --- Faktaremsa --- */
.facts { margin-top: -1px; background: var(--graphite); color: var(--white); }
.facts .container { display: grid; grid-template-columns: repeat(3,1fr); }
.fact { padding: 30px 34px 32px 0; border-right: 1px solid rgba(255,255,255,.16); }
.fact + .fact { padding-left: 34px; }
.fact:last-child { border-right: 0; }
.fact span { display: block; color: rgba(255,255,255,.62); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.fact strong { display: block; margin-top: 7px; font-family: var(--rubrik); font-size: 21px; }

/* --- Sektioner --- */
.section { padding-block: 112px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 48px; }
.section-head p { max-width: 500px; color: #555a56; }

.services { background: var(--warm); }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px;
  border-top: 8px solid var(--orange);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(37,39,36,.08);
}
.service-card:nth-child(2) { border-color: var(--blue); }
.service-card:nth-child(3) { border-color: var(--green); }
.service-card .tag { margin-bottom: 48px; color: #777b76; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.service-card p { margin-top: 18px; color: #5f625e; }
.arrow { margin-top: 28px; font-size: 14px; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.arrow::after { content: "  →"; color: var(--orange); }
.arrow:hover { color: var(--orange); }

.about { background: var(--concrete); }
.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: 76px; align-items: center; }
.about-image { position: relative; min-height: 620px; }
.about-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-image::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 48%; height: 46%; border-right: 18px solid var(--orange); border-bottom: 18px solid var(--orange); }
.about-copy p:not(.eyebrow) { margin-top: 22px; color: #50534f; }

.all-services { background: var(--warm); }
.service-list { margin: 54px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-row { border-bottom: 1px solid var(--line); }
.service-row a {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  min-height: 84px;
  font-family: var(--rubrik);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
}
.service-row a:hover > span:nth-child(2) { color: var(--orange); }
.service-row .mark { color: var(--orange); font-size: 17px; }
.service-row small { color: #70746f; font-family: var(--brod); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.projects { background: var(--graphite); color: var(--white); }
.projects .section-head p { color: rgba(255,255,255,.68); }
.project-grid { display: grid; grid-template-columns: 1.22fr .78fr; grid-template-rows: 290px 290px; gap: 24px; }
.project-card { position: relative; overflow: hidden; margin: 0; background: #111; }
.project-card:first-child { grid-row: 1 / 3; }
.project-card img { width: 100%; height: 100%; object-fit: cover; }
.project-card:nth-child(2) img { object-position: center 38%; }
.project-card:nth-child(3) img { object-position: center 48%; }
.project-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(10,11,10,.9)); }
.project-meta { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 28px; }
.project-meta span { color: #efb19a; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-meta h3 { margin-top: 6px; color: var(--white); }

.cta { background: var(--orange); color: var(--white); }
.cta .container { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; padding-block: 72px; }
.cta p { margin-top: 16px; max-width: 700px; color: rgba(255,255,255,.88); }
.cta .btn { border-color: var(--white); color: var(--white); }
.cta .btn:hover { background: var(--white); color: var(--orange); }
/* Mörk variant med betongbakgrund — används bara på /projekt/. */
.cta-betong { position: relative; display: flex; align-items: center; min-height: 350px; overflow: hidden; background: var(--dark); }
.cta-betong > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-betong::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,20,18,.7) 0%, rgba(18,20,18,.38) 65%, rgba(18,20,18,.18) 100%); content: ""; }
.cta-betong .container { position: relative; z-index: 1; }
.cta-betong p { color: #d2d5d0; }
.cta-betong .btn { border-color: var(--orange); background: var(--orange); color: var(--white); }
.cta-betong .btn:hover { border-color: var(--white); background: var(--white); color: var(--dark); }

/* --- Sidfot --- */
.footer { padding-block: 70px 28px; background: var(--dark); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 70px; }
.footer .logo { margin-bottom: 24px; }
.footer p { color: rgba(255,255,255,.62); }
.footer h2 { margin-bottom: 20px; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.footer a { display: block; margin: 8px 0; color: rgba(255,255,255,.8); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.copyright { position: relative; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.45); font-size: 13px; text-align: center; }
.footer .till-toppen { position: absolute; right: 0; top: 24px; margin: 0; color: rgba(255,255,255,.7); font-size: 14px; }

/* ===========================================================================
   Undersidor
   =========================================================================== */
.muted { color: #5f645e; }
.section-dark { background: var(--graphite); color: var(--white); }
.section-concrete { background: var(--concrete); }
.section-white { background: var(--white); }
.section-dark .section-head p { color: rgba(255,255,255,.66); }

/* Delad hero: text vänster, bild höger ut till kanten */
.page-hero { position: relative; overflow: hidden; background: var(--concrete); }
.page-hero .container { display: grid; grid-template-columns: 1fr .78fr; min-height: 570px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 92px 80px 92px 0; }
.hero-copy .lead { margin-top: 28px; color: #50544f; }
.hero-image { position: relative; min-height: 570px; margin-right: calc((100vw - min(calc(100vw - 64px), var(--max))) / -2); overflow: hidden; background: #777; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-image::after { content: ""; position: absolute; inset: 0; border-left: 18px solid var(--orange); pointer-events: none; }
.hero-label { position: absolute; z-index: 1; right: 28px; bottom: 28px; padding: 11px 14px; background: rgba(25,27,25,.82); color: var(--white); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.text-link { display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .03em; text-decoration: none; text-transform: uppercase; }
.text-link::after { content: "  →"; color: var(--orange); }
.text-link:hover { color: var(--orange); }

/* Tjänster: snabblista + detaljerade avsnitt */
.service-index { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 54px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: tj; }
.service-index li { counter-increment: tj; border-bottom: 1px solid var(--line); }
.service-index a { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; min-height: 64px; font-family: var(--rubrik); font-size: 20px; font-weight: 600; text-decoration: none; }
.service-index a::before { content: "0" counter(tj); color: var(--orange); font-family: var(--brod); font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.service-index a::after { content: "↓"; color: var(--orange); }
.service-index a:hover { color: var(--orange); }

.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding-block: 72px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.service-detail:first-child { border-top: 0; padding-top: 0; }
.service-detail:nth-child(even) .service-detail-bild { order: 2; }
.service-detail.utan-bild { grid-template-columns: 1fr; }
.service-detail.utan-bild .service-detail-text { max-width: 760px; }
.service-detail-bild { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ccc; }
.service-detail-bild img { width: 100%; height: 100%; object-fit: cover; }
.service-no { display: block; margin-bottom: 14px; color: var(--orange); font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.service-detail h2 { font-size: clamp(32px, 3vw, 42px); }
.service-detail p { margin-top: 18px; color: #50534f; }
.service-detail .text-link { margin-top: 26px; }

.image-band { height: 480px; overflow: hidden; }
.image-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }

.process { display: grid; grid-template-columns: .76fr 1.24fr; gap: 100px; }
.process-intro { position: sticky; top: 40px; align-self: start; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: steg; }
.step { counter-increment: steg; display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.step::before { content: counter(steg); display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--orange); color: var(--white); font-weight: 900; }
.step h3 { font-size: 21px; }
.step p { margin-top: 7px; color: #5f645e; }

/* Om oss */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 78px; align-items: center; }
.story-copy p:not(.eyebrow) { margin-top: 22px; color: #555a55; }
.story-image { position: relative; }
.story-image img { width: 100%; height: 650px; object-fit: cover; }
.story-image::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 45%; height: 42%; border-right: 18px solid var(--orange); border-bottom: 18px solid var(--orange); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { min-height: 290px; padding: 38px; background: var(--white); border-top: 7px solid var(--orange); }
.value-card:nth-child(2) { border-color: var(--blue); }
.value-card:nth-child(3) { border-color: var(--green); }
.value-card .tag { margin-bottom: 46px; color: #777c76; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.value-card p:not(.tag) { margin-top: 16px; color: #5e625d; }
.network { display: grid; grid-template-columns: .92fr 1.08fr; gap: 80px; align-items: center; }
.network-photo { height: 520px; }
.network-photo img { width: 100%; height: 100%; object-fit: cover; }
.network-copy p:not(.eyebrow) { margin-top: 20px; color: rgba(255,255,255,.72); }
.check-list { margin: 30px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid rgba(255,255,255,.15); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #efb19a; font-weight: 900; }
.focus-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.focus-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 42px 54px 44px 0; border-bottom: 1px solid var(--line); }
.focus-item:first-child { border-right: 1px solid var(--line); }
.focus-item:last-child { padding-left: 54px; }
.focus-item p { margin-top: 16px; color: #5d625d; }

/* Projekt */
.project-intro { padding-block: 90px; }
.project-intro .lead { margin-top: 28px; color: #555a55; }
.project-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.project-tile { position: relative; grid-column: span 4; min-height: 430px; margin: 0; overflow: hidden; background: #333; color: var(--white); }
.project-tile.large { grid-column: span 7; min-height: 610px; }
.project-tile.medium { grid-column: span 5; min-height: 610px; }
.project-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-tile::after { content: ""; position: absolute; inset: 36% 0 0; background: linear-gradient(transparent, rgba(10,11,10,.94)); }
.project-caption { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 30px; }
.project-caption span { color: #efb19a; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.project-caption h3 { margin-top: 7px; }
.project-caption p { margin-top: 10px; color: rgba(255,255,255,.72); font-size: 15px; }
.editor-note { margin-top: 42px; padding: 24px 28px; border-left: 5px solid var(--orange); background: var(--white); color: #5c615c; font-size: 15px; }

/* Projekt: hero, projektkort och bildrutnät med förstoring (assets/js/projekt.js) */
.projekt-sida { background: var(--warm); color: var(--graphite); }
.section.projekt-sida { padding-top: 60px; }
.projekt-sida .container { padding-block: 0; }

.projekt-hero { position: relative; overflow: hidden; background: var(--dark); }
.projekt-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.projekt-hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,20,.94) 0%, rgba(20,22,20,.86) 30%, rgba(20,22,20,.45) 62%, rgba(20,22,20,.2) 100%); content: ""; }
.projekt-hero .container { position: relative; z-index: 1; padding-block: 48px; }
.projekt-hero .eyebrow { display: flex; align-items: center; gap: 18px; }
.projekt-hero .eyebrow::after { width: 54px; height: 1px; background: #7d837c; content: ""; }
.projekt-hero h1 { margin: 0 0 20px; max-width: 16ch; color: var(--white); font-size: clamp(36px, 4.4vw, 62px); line-height: 1.04; }
.projekt-hero p { margin: 0; max-width: 470px; color: #d2d5d0; font-size: 16px; }
.projekt-hero-slogan, .cta-slogan {
  position: absolute;
  right: max(32px, calc((100vw - var(--max)) / 2));
  bottom: 30px;
  z-index: 1;
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid var(--lime);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.7;
  text-transform: uppercase;
}
.cta-slogan { bottom: 26px; }

/* Filterrad ovanför projektkorten. Döljs utan JavaScript (se <noscript> i projekt/index.html). */
.projekt-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.projekt-filter button { padding: 11px 20px; border: 0; background: var(--graphite); color: var(--white); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
.projekt-filter button:hover { background: #3f453e; }
.projekt-filter button[aria-pressed="true"] { background: var(--orange); }
.projekt-filter button:focus-visible { outline-offset: 3px; }

.projekt-index { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 252px 252px; gap: 16px; padding-top: 16px; }
/* Filtrerat läge: alla kort lika stora, det stora kortet tappar sin spännvidd. */
.projekt-index.ar-filtrerad { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); grid-template-rows: none; }
.projekt-index.ar-filtrerad .projekt-kort, .projekt-index.ar-filtrerad .projekt-kort-stor { grid-column: auto; grid-row: auto; height: 320px; }
.projekt-kort[hidden] { display: none; }
.projekt-kort { position: relative; display: block; height: 252px; overflow: hidden; background: var(--graphite); color: var(--white); text-decoration: none; }
.projekt-kort-stor { grid-column: 1; grid-row: 1 / span 2; height: 520px; }
.projekt-kort > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.projekt-kort:hover > img { transform: scale(1.04); }
.projekt-kort:focus-visible { outline-offset: -4px; }
.projekt-kort-text { position: absolute; inset: auto 0 0; padding: 90px 28px 26px; background: linear-gradient(transparent, rgba(0,0,0,.9) 55%); }
.projekt-kort-text::before { display: block; width: 34px; height: 3px; margin-bottom: 16px; background: var(--orange); content: ""; }
.projekt-kort h2 { margin: 0; font-size: 30px; line-height: 1.15; }
.projekt-kort-stor h2 { font-size: 38px; }
.projekt-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 14px 0 0; padding: 0; list-style: none; }
.projekt-meta li { display: flex; align-items: center; gap: 8px; color: #cfd2cd; font-size: 14px; }
.projekt-meta svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--orange); stroke-width: 1.7; }
.projekt-pil { position: absolute; right: 26px; bottom: 26px; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-size: 19px; transition: background .2s, color .2s, border-color .2s; }
.projekt-kort-stor .projekt-pil { width: 58px; height: 58px; border-color: var(--orange); background: var(--orange); }
.projekt-kort:hover .projekt-pil { border-color: var(--orange); background: var(--orange); color: var(--white); }
/* De fyra små korten till höger: tätare text, mindre pil. */
.projekt-kort-liten .projekt-kort-text { padding: 58px 18px 16px; }
.projekt-kort-liten .projekt-kort-text::before { width: 26px; height: 2px; margin-bottom: 11px; }
.projekt-kort-liten h2 { font-size: 20px; }
.projekt-kort-liten .projekt-meta { gap: 6px 14px; margin-top: 9px; }
.projekt-kort-liten .projekt-meta li { font-size: 13px; }
.projekt-kort-liten .projekt-meta svg { width: 14px; height: 14px; }
.projekt-kort-liten .projekt-pil { right: 16px; bottom: 16px; width: 38px; height: 38px; font-size: 16px; }

.project-album { padding-top: 78px; scroll-margin-top: 28px; }
.album-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 22px; }
.album-heading h2 { font-size: 34px; }
.album-heading > p:not(.eyebrow) { color: #4a504a; }
.album-heading > p a { color: var(--graphite); text-underline-offset: 4px; }
.lightbox button { min-width: 48px; min-height: 48px; border: 1px solid #778075; background: transparent; color: var(--white); font-size: 18px; cursor: pointer; }
.lightbox-controls button:disabled { opacity: .3; cursor: default; }
.lightbox button:focus-visible { outline-color: #f3aa8f; }
.gallery-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gallery-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete); }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-image:hover img { transform: scale(1.05); }
.gallery-image:focus-visible { outline-offset: -4px; outline-color: #f3aa8f; }
#centralgaraget .gallery-track, #tojnaskolan .gallery-track { grid-template-columns: repeat(2, 1fr); }

/* Arbetsbilder — eget avsnitt med bildtexter under varje bild */
.projekt-arkiv { padding-top: 88px; padding-bottom: 96px; }
.projekt-arkiv .album-heading { display: block; margin-bottom: 30px; }
.projekt-arkiv .album-heading h2 { margin: 0 0 18px; font-size: clamp(34px, 3.6vw, 52px); }
.projekt-arkiv .album-heading > p:not(.eyebrow) { max-width: 640px; color: #4a504a; }
.projekt-arkiv .gallery-track { grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.projekt-arkiv figure { margin: 0; }
.projekt-arkiv .gallery-image { margin-bottom: 10px; }
.projekt-arkiv figcaption { color: #4a504a; font-size: 14px; }

/* Projektens bilder ligger i förstoringen. Utan JavaScript visas de på sidan i stället. */
.projekt-album-dold { display: none; }
.lightbox { width: min(1100px, calc(100vw - 24px)); max-height: 95dvh; padding: 64px 24px 22px; overflow: auto; border: 0; background: var(--dark); color: var(--white); }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { width: 100%; height: 65dvh; object-fit: contain; }
.lightbox-close { position: absolute; top: 10px; right: 16px; padding: 4px 20px; font-size: 15px !important; }
.lightbox-status { min-height: 24px; margin-bottom: 8px; color: #f3aa8f; font-size: 14px; text-align: center; }
.lightbox-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 16px; }
.lightbox-caption { max-width: 650px; color: #eee; font-size: 15px; text-align: center; }
body:has(dialog[open]) { overflow: hidden; }

/* Kontakt */
.contact-hero { background: var(--concrete); }
.contact-hero .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; padding-block: 100px; }
.contact-intro .lead { margin-top: 26px; }
.contact-panel { padding: 42px; background: var(--graphite); color: var(--white); }
.contact-row { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.contact-row:first-child { padding-top: 0; }
.contact-row:last-child { padding-bottom: 0; border: 0; }
.contact-row span { display: block; color: rgba(255,255,255,.55); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.contact-row strong { display: block; margin-top: 5px; font-family: var(--rubrik); font-size: 22px; }
.contact-row a { display: inline-block; margin-top: 4px; color: #efb19a; font-size: 17px; }
.contact-row a:hover { color: var(--white); }
.prep-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.prep-list { counter-reset: item; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.prep-list li { counter-increment: item; position: relative; padding: 22px 0 22px 64px; border-bottom: 1px solid var(--line); }
.prep-list li::before { content: "0" counter(item); position: absolute; left: 0; color: var(--orange); font-weight: 900; letter-spacing: .08em; }

/* Textsidor: cookies, integritetspolicy, sitemap, 404 */
.text-page { padding-block: 90px 110px; background: var(--white); }
.text-page .container { max-width: 820px; }
.text-page h1 { font-size: clamp(42px, 4.5vw, 64px); }
.text-page .lead { margin-top: 24px; color: #50534f; }
.text-page h2 { margin-top: 56px; font-size: clamp(26px, 2.4vw, 32px); }
.text-page h3 { margin-top: 32px; font-size: 21px; }
.text-page p, .text-page ul { margin-top: 16px; color: #3f423e; }
.text-page ul { padding-left: 22px; }
.text-page li + li { margin-top: 8px; }
.text-page a { color: var(--orange); }
.text-page .uppdaterad { margin-top: 56px; color: #777b76; font-size: 14px; }
.sitemap-list { list-style: none; padding: 0 !important; border-top: 1px solid var(--line); }
.sitemap-list li { margin: 0 !important; border-bottom: 1px solid var(--line); }
.sitemap-list a { display: block; padding: 16px 0; color: var(--graphite) !important; font-family: var(--rubrik); font-size: 21px; font-weight: 600; text-decoration: none; }
.sitemap-list a:hover { color: var(--orange) !important; }
.sitemap-list .sub a { padding-left: 28px; font-size: 17px; }

/* --- Bottenmeny (samma mönster som Larssons Bil) --- */
.bottom-nav { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ===========================================================================
   Läsplatta ≤ 1024: toppmenyn ersätts av bottenmenyn
   =========================================================================== */
@media (max-width: 1024px) {
  body { padding-bottom: calc(var(--bn-h) + env(safe-area-inset-bottom, 0px)); }
  .footer .till-toppen { display: none; }
  .container { width: min(calc(100% - 48px), var(--max)); }
  .site-header .container { min-height: 78px; }
  .site-header .logo { width: 178px; }
  .nav { display: none; }

  .bottom-nav {
    display: flex;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid rgba(204,72,28,.72);
    background: var(--dark);
  }
  .bn-item { flex: 1; text-align: center; }
  .bn-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: var(--bn-h);
    padding: 8px 4px;
    color: var(--white);
    font-family: var(--rubrik);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .bn-item svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--orange);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .bn-item a:hover,
  .bn-item a[aria-current="page"] { color: #efb19a; }

  .hero { min-height: 680px; }
  .hero-bild { object-position: 58% center; }
  .hero::before { background: linear-gradient(90deg, rgba(22,24,22,.96) 0%, rgba(22,24,22,.84) 54%, rgba(22,24,22,.3) 100%); }
  .hero-content { padding-block: 94px 120px; }
  .hero-note { right: 24px; }
  .fact { padding-right: 20px; }
  .fact + .fact { padding-left: 20px; }
  .fact strong { font-size: 18px; }
  .section { padding-block: 88px; }
  .section-head { display: block; }
  .section-head p { margin-top: 24px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 270px; }
  .service-card .tag { margin-bottom: 28px; }
  .split { grid-template-columns: 1fr; gap: 58px; }
  .about-image { min-height: 560px; }
  .project-grid { grid-template-columns: 1fr; grid-template-rows: 520px 360px 360px; }
  .project-card:first-child { grid-row: auto; }
  .cta .container { grid-template-columns: 1fr; }
  .cta-slogan { display: none; }
  .footer { padding-bottom: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; max-width: 480px; }

  /* Undersidor */
  .page-hero .container { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 72px 0 56px; }
  .hero-image { min-height: 420px; margin-inline: -24px; }
  .service-index { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 32px; padding-block: 56px; }
  .service-detail:nth-child(even) .service-detail-bild { order: 0; }
  .process, .story-grid, .network, .contact-hero .container, .prep-grid { grid-template-columns: 1fr; gap: 48px; }
  .process-intro { position: static; }
  .story-image img { height: 520px; }
  .values-grid, .focus-list { grid-template-columns: 1fr; }
  .focus-item:first-child { border-right: 0; }
  .focus-item, .focus-item:last-child { padding: 34px 0; }
  .network-photo { height: 420px; }
  .image-band { height: 360px; }
  .project-tile, .project-tile.large, .project-tile.medium { grid-column: 1 / -1; min-height: 460px; }
  .contact-hero .container { padding-block: 72px; }
  .projekt-hero::after { background: linear-gradient(90deg, rgba(20,22,20,.95) 0%, rgba(20,22,20,.86) 55%, rgba(20,22,20,.6) 100%); }
  .projekt-index { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .projekt-arkiv .gallery-track { grid-template-columns: repeat(3, 1fr); gap: 20px 16px; }
  .projekt-kort { height: 260px; }
  .projekt-kort-stor { grid-column: 1 / -1; grid-row: auto; height: 400px; }
  .album-heading { grid-template-columns: 1fr; gap: 22px; }
}

/* ===========================================================================
   Mobil ≤ 600
   =========================================================================== */
@media (max-width: 600px) {
  :root { --bn-h: 60px; }
  body { font-size: 16px; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .site-header .container { min-height: 70px; }
  .site-header .logo { width: 156px; }
  h1 { font-size: clamp(39px, 11vw, 49px); }
  .h1-sub { margin-top: 16px; font-size: 19px; }
  h2 { font-size: clamp(34px, 9vw, 43px); }
  h3 { font-size: 25px; }
  .eyebrow { margin-bottom: 14px; font-size: 11px; letter-spacing: .13em; }
  .lead { font-size: 18px; }
  .hero { min-height: 690px; }
  .hero-bild { object-position: 64% center; }
  .hero::before { background: rgba(18,20,18,.72); }
  .hero-content { padding-block: 72px 132px; }
  .hero .lead { margin-top: 22px; }
  .hero-note { right: 16px; bottom: 22px; left: 16px; text-align: center; }
  .btns { display: grid; grid-template-columns: 1fr; margin-top: 26px; }
  .btn { width: 100%; min-height: 54px; }
  .facts .container { grid-template-columns: 1fr; }
  .fact { padding: 20px 0 !important; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .fact:last-child { border-bottom: 0; }
  .section { padding-block: 70px; }
  .section-head { margin-bottom: 34px; }
  .service-card { min-height: 250px; padding: 30px 26px; }
  .about-image { min-height: 420px; }
  .about-image::after { right: -10px; bottom: -10px; border-width: 10px; }
  .service-list { margin-top: 36px; }
  .service-row a { grid-template-columns: 24px 1fr; min-height: 78px; padding-block: 14px; font-size: 18px; }
  .service-row small { grid-column: 2; margin-top: 3px; font-size: 10px; }
  .project-grid { grid-template-rows: repeat(3, 360px); gap: 16px; }
  .project-card img { object-position: center !important; }
  .project-meta { padding: 22px; }
  .cta .container { gap: 30px; padding-block: 58px; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .copyright { margin-top: 42px; }
  .bn-item a { font-size: 11px; letter-spacing: .02em; }

  /* Undersidor */
  .hero-copy { padding: 56px 0 44px; }
  .hero-image { min-height: 320px; margin-inline: -16px; }
  .hero-image::after { border-left-width: 10px; }
  .hero-label { right: 16px; bottom: 16px; left: 26px; text-align: center; }
  .service-index a { grid-template-columns: 40px 1fr auto; min-height: 58px; font-size: 18px; }
  .service-detail { padding-block: 44px; }
  .story-image img { height: 420px; }
  .story-image::after { right: -10px; bottom: -10px; border-width: 10px; }
  .value-card { min-height: 0; padding: 30px 26px; }
  .value-card .tag { margin-bottom: 26px; }
  .network-photo { height: 320px; }
  .image-band { height: 260px; }
  .project-intro { padding-block: 60px; }
  .project-tile, .project-tile.large, .project-tile.medium { min-height: 380px; }
  .project-caption { padding: 22px; }
  .contact-panel { padding: 28px 22px; }
  .contact-row strong { font-size: 20px; }
  .contact-row a { overflow-wrap: anywhere; }
  .prep-list li { padding-left: 48px; }
  .text-page { padding-block: 56px 72px; }
  .projekt-filter { gap: 8px; }
  .projekt-filter button { padding: 10px 14px; font-size: 13px; }
  .projekt-index { grid-template-columns: 1fr; }
  .projekt-kort, .projekt-kort-stor, .projekt-index.ar-filtrerad .projekt-kort, .projekt-index.ar-filtrerad .projekt-kort-stor { height: 330px; }
  .projekt-kort h2, .projekt-kort-stor h2, .projekt-kort-liten h2 { font-size: 26px; }
  .projekt-kort-text, .projekt-kort-liten .projekt-kort-text { padding: 70px 20px 22px; }
  .projekt-kort-liten .projekt-kort-text::before { width: 34px; height: 3px; margin-bottom: 16px; }
  .projekt-kort-liten .projekt-meta { gap: 8px 24px; margin-top: 14px; }
  .projekt-kort-liten .projekt-meta li { font-size: 14px; }
  .projekt-kort-liten .projekt-meta svg { width: 16px; height: 16px; }
  .projekt-pil, .projekt-kort-stor .projekt-pil, .projekt-kort-liten .projekt-pil { right: 18px; bottom: 18px; width: 42px; height: 42px; font-size: 19px; }
  .project-album { padding-top: 60px; scroll-margin-top: 16px; }
  .album-heading h2 { font-size: 28px; }
  .gallery-track,
  #centralgaraget .gallery-track, #tojnaskolan .gallery-track { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .projekt-hero-slogan { display: none; }
  .projekt-arkiv { padding-top: 60px; padding-bottom: 66px; }
  .projekt-arkiv .gallery-track { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .projekt-arkiv figcaption { font-size: 13px; }
  .lightbox { padding: 60px 10px 16px; }
  .lightbox img { height: 54dvh; }
  .lightbox-controls { gap: 8px; }
  .lightbox-caption { font-size: 13px; }
}
