/* Svenska Kompressor: shared styles for / and /en/
   Plain CSS, no build step, no external requests. */

:root {
  --charcoal: #252525;          /* dark grey */
  --charcoal-deep: #191919;     /* footer */
  --charcoal-raised: #333333;   /* raised dark surfaces */
  --white: #ffffff;
  --paper: #f5f5f5;
  --muted: #606060;         /* secondary text on light surfaces */
  --muted-on-dark: #bdbdbd; /* secondary text on dark surfaces */
  --soft-on-dark: #dedede;
  --accent: #ffd600;        /* dark grey text on yellow */
  --accent-hover: #ffe34d;
  --line: rgba(37, 37, 37, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.14);
  --radius: 4px;
  --maxw: 1160px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--charcoal);
  background: var(--white);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
figure { margin: 0; }
p:last-child { margin-bottom: 0; }

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

.visually-hidden {
  position: absolute; 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: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--charcoal); font-weight: 700;
  padding: 10px 14px; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 800; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; transition: background-color .15s, box-shadow .15s;
}
.btn-accent { background: var(--accent); color: var(--charcoal); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { color: var(--white); box-shadow: inset 0 0 0 2px var(--line-on-dark); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--white); }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: .9375rem; }

/* Header */
.site-header { background: var(--charcoal); color: var(--white); border-bottom: 1px solid var(--line-on-dark); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: block; flex: none; }
.brand img { height: 19px; width: auto; }
.nav { display: none; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--muted-on-dark); text-decoration: none; font-weight: 700; font-size: .9375rem;
}
.nav a:hover { color: var(--white); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lang { color: var(--muted-on-dark); font-weight: 700; font-size: .9375rem; text-decoration: none; }
.lang:hover { color: var(--white); }
.header-call { display: none; }

/* Hero */
.hero { background: var(--charcoal); color: var(--white); }
.hero-inner { display: grid; gap: 40px; padding-top: 44px; padding-bottom: 52px; }
.eyebrow {
  margin: 0 0 16px; color: var(--accent);
  font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.25rem, 6.4vw, 4.125rem);
  line-height: 1.03; letter-spacing: -.025em; font-weight: 800;
  margin-bottom: 20px; max-width: 15ch;
}
.lead { font-size: 1.125rem; color: var(--soft-on-dark); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
  background: var(--charcoal-raised);
}
.hero-media::after {
  content: ""; position: absolute; left: -10px; bottom: -10px;
  width: 88px; height: 8px; background: var(--accent);
}

/* Facts strip */
.facts { background: var(--charcoal); color: var(--white); border-top: 1px solid var(--line-on-dark); }
.facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.facts li { padding: 24px 0; display: flex; flex-direction: column; gap: 2px; }
.facts li:nth-child(odd) { padding-right: 16px; }
.facts li:nth-child(n+3) { border-top: 1px solid var(--line-on-dark); }
.facts strong { font-size: 2rem; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.facts span { color: var(--muted-on-dark); font-size: .9375rem; }

/* Sections */
.section { padding: 64px 0; }
.section-paper { background: var(--paper); }
.section-head { max-width: 46rem; margin-bottom: 36px; }
.section h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.625rem);
  line-height: 1.1; letter-spacing: -.02em; font-weight: 800; margin-bottom: 14px;
}
.section h2::before {
  content: ""; display: block; width: 40px; height: 4px; background: var(--accent); margin-bottom: 18px;
}
.intro { font-size: 1.125rem; color: var(--muted); }

/* Applications */
.apps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px 28px; grid-template-columns: 1fr;
}
.apps li {
  border-top: 3px solid var(--charcoal); padding-top: 16px;
  font-weight: 800; font-size: 1.1875rem; line-height: 1.3;
}

/* Fleet table */
.fleet-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.fleet-table th {
  text-align: left; padding: 14px 18px; border-bottom: 2px solid var(--charcoal);
  font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.fleet-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fleet-table tbody tr:last-child td { border-bottom: 0; }
.model { font-weight: 800; font-size: 1.0625rem; }
.make { display: block; font-weight: 400; font-size: .875rem; color: var(--muted); }
.num { font-weight: 700; white-space: nowrap; }
.pbar { display: block; width: 100%; max-width: 140px; height: 6px; margin-top: 8px; background: var(--paper); border-radius: 3px; overflow: hidden; }
.pbar span { display: block; height: 100%; width: var(--p); background: var(--charcoal); }
.note-cell { color: var(--muted); font-size: .9375rem; }
.table-note { margin-top: 16px; color: var(--muted); font-size: .9375rem; }

@media (max-width: 719px) {
  .fleet-table, .fleet-table tbody, .fleet-table tr, .fleet-table td { display: block; width: 100%; }
  .fleet-table { border: 0; background: transparent; }
  .fleet-table thead { display: none; }
  .fleet-table tr { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--charcoal); margin-bottom: 12px; padding: 6px 0; }
  .fleet-table td { border: 0; padding: 8px 18px; display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; align-items: center; }
  .fleet-table td::before { content: attr(data-label); font-size: .8125rem; font-weight: 700; color: var(--muted); }
  .fleet-table td.model { display: block; font-size: 1.1875rem; padding-top: 12px; }
  .fleet-table td.model::before { content: none; }
  .fleet-table td:empty { display: none; }
}

/* How it works */
.how-grid { display: grid; gap: 40px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--charcoal); color: var(--white); border-radius: var(--radius);
  font-weight: 800; font-size: 1.25rem;
}
.steps h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.25; margin: 10px 0 6px; }
.steps p { color: var(--muted); }
.how-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--paper); }

/* Depots */
.depots { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.depot {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--charcoal);
  padding: 22px 22px 20px; display: flex; flex-direction: column;
}
.depot h3 { font-size: 1.375rem; font-weight: 800; margin-bottom: 8px; }
.depot address { font-style: normal; }
.partner { color: var(--muted); font-size: .9375rem; margin-top: 4px; }
.map-link {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.map-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* About */
.about-grid { display: grid; gap: 36px; align-items: start; }
.about-text { font-size: 1.125rem; max-width: 40em; }
.call-card {
  background: var(--charcoal); color: var(--white); border-radius: var(--radius);
  padding: 30px 28px; border-left: 6px solid var(--accent);
}
.call-card p { font-size: 1.125rem; color: var(--soft-on-dark); }
.call-card .big-tel {
  display: inline-block; margin-top: 6px; color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
}
.call-card .big-tel:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }

/* Contact band */
.contact { background: var(--charcoal); color: var(--white); padding: 64px 0; }
.contact h2 { font-size: clamp(1.75rem, 3.8vw, 2.625rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; margin-bottom: 22px; }
.contact-tel {
  display: inline-block; color: var(--white); text-decoration: none;
  font-size: clamp(2.25rem, 8vw, 4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
  border-bottom: 5px solid var(--accent); padding-bottom: 6px; white-space: nowrap;
}
.contact-tel:hover { border-bottom-color: var(--accent-hover); }
.contact-mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-weight: 700; color: var(--soft-on-dark); text-decoration: none; word-break: break-all; }
.contact-mail:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.small-print { margin-top: 14px; color: var(--muted-on-dark); font-size: .9375rem; }

.contact-grid { display: grid; gap: 8px; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 48px; }
  .contact-side { padding-bottom: 10px; }
  .contact-side .contact-mail { margin-top: 0; }
}

/* Footer */
.site-footer { background: var(--charcoal-deep); color: var(--muted-on-dark); padding: 40px 0 48px; font-size: .9375rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-bottom: 22px; border-bottom: 1px solid var(--line-on-dark); }
.footer-top img { height: 17px; width: auto; }
.company { margin: 18px 0 0; }
.company span { white-space: nowrap; }
.company span:not(:last-child)::after { content: "·"; margin-left: .5em; }
.privacy { margin-top: 14px; max-width: 46em; }
.copyright { margin-top: 14px; }

/* Mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(25, 25, 25, .96); border-top: 1px solid var(--line-on-dark);
}
.callbar .btn { width: 100%; }
body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }

/* Breakpoints */
@media (min-width: 600px) {
  .apps { grid-template-columns: repeat(2, 1fr); }
  .depots { grid-template-columns: repeat(2, 1fr); }
  .brand img { height: 22px; }
  .header-call { display: inline-flex; }
}

@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .section { padding: 92px 0; }
  .contact { padding: 88px 0; }
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .facts li { padding: 30px 24px; border-top: 0 !important; }
  .facts li:first-child { padding-left: 0; }
  .facts li + li { border-left: 1px solid var(--line-on-dark); }
  .facts strong { font-size: 2.5rem; }
}

@media (min-width: 900px) {
  .callbar { display: none; }
  body { padding-bottom: 0; }
  .header-inner { min-height: 76px; }
  .brand img { height: 24px; }
  .nav { display: block; margin-left: auto; }
  .header-actions { margin-left: 28px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; padding-top: 76px; padding-bottom: 84px; }
  .how-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .about-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; }
}

@media (min-width: 1100px) {
  .apps { grid-template-columns: repeat(4, 1fr); }
  .depots { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .callbar, .skip-link, .nav, .header-actions { display: none !important; }
  body { padding-bottom: 0; }
}

/* Original photography, November 2026. Crops preserve the source files. */
.hero-media { overflow: hidden; border-radius: var(--radius); }
.hero-media img { object-position: 63% 52%; filter: brightness(1.06); transform: scale(1.13); transform-origin: 63% 58%; }
.hero-media::after { display: none; }
.fleet-intro-grid { display: grid; gap: 28px; align-items: center; margin-bottom: 32px; }
.fleet-intro-grid .section-head { margin-bottom: 0; }
.fleet-photo { max-width: 400px; }
.fleet-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; border-radius: var(--radius); }
.fleet-photo figcaption, .how-media figcaption { margin-top: 10px; color: var(--muted); font-size: .8125rem; }
.how-media img { aspect-ratio: 1 / 1; object-position: 50% 38%; }
@media (min-width: 900px) {
  .fleet-intro-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
  .fleet-photo { width: 100%; }
}
@media (max-width: 599px) {
  .hero-media img { aspect-ratio: 4 / 3; }
  .how-media img { aspect-ratio: 4 / 3; object-position: 50% 35%; }
}

/* Focus rings contrast with both white and charcoal surfaces. */
a:focus-visible { outline-color: var(--charcoal); }
.site-header a:focus-visible, .hero a:focus-visible, .call-card a:focus-visible,
.contact a:focus-visible, .site-footer a:focus-visible, .callbar a:focus-visible { outline-color: var(--accent); }
