/* =====================================================================
   Lindesbergs Schakt AB — Design System
   Palette: charcoal (logo/Scania) + construction amber (Volvo) + steel grays
   Fonts:   Barlow Condensed (display) / Inter (body)
   ===================================================================== */

/* ---------- Self-hosted fonts (GDPR: no Google CDN) ---------- */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-var.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --ink:        #14161a;   /* near-black charcoal */
  --ink-2:      #1c2026;
  --steel:      #2c333c;
  --gray:       #5c6571;
  --gray-soft:  #8a929c;
  --line:       #e4e7ec;
  --mist:       #f5f7f9;   /* light section bg */
  --white:      #ffffff;

  --amber:      #f6a609;   /* primary accent */
  --amber-600:  #e09200;
  --amber-700:  #c47e00;
  --amber-tint: #fff6e3;

  /* Typography */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-sm: 9px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(20,22,26,.06), 0 2px 8px rgba(20,22,26,.05);
  --shadow-md: 0 8px 24px rgba(20,22,26,.10);
  --shadow-lg: 0 22px 60px rgba(20,22,26,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 200;
  background: var(--amber); color: var(--ink); font-weight: 600;
  padding: .6rem 1rem; border-radius: 8px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: .002em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }

p { color: var(--steel); }
strong { color: var(--ink); font-weight: 600; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink p { color: #c3c9d2; }
.narrow { max-width: 760px; }

/* ---------- Eyebrow + section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber-700);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); }
.section--ink .eyebrow { color: var(--amber); }

.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { margin-top: .6rem; }
.section-head p { margin-top: 1rem; font-size: 1.075rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  border: 1.5px solid transparent; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn--primary:hover { background: var(--amber-600); border-color: var(--amber-600); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(246,166,9,.35); }
.btn--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--dark:hover { background: var(--steel); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.section--ink .btn--ghost,
.hero .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.section--ink .btn--ghost:hover,
.hero .btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,22,26,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__logo { height: 30px; width: auto; filter: brightness(0) invert(1); }
.brand__name {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 700;
  font-size: 1.25rem; color: #fff; letter-spacing: .01em; line-height: 1;
}
.brand__name b { color: var(--amber); font-weight: 700; }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a {
  color: #d4d8de; font-weight: 500; font-size: .96rem;
  padding: .55rem .85rem; border-radius: 8px; transition: color .2s, background .2s;
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav__links a.is-active { color: var(--amber); }
.nav__mobile-cta { display: none; }

.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__phone { color: #fff; font-weight: 600; font-size: .96rem; display: inline-flex; align-items: center; gap: .5rem; }
.nav__phone svg { width: 17px; height: 17px; color: var(--amber); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: none; background: transparent;
  flex-direction: column; justify-content: center; gap: 5px; align-items: center;
}
.nav__toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,22,26,.92) 0%, rgba(20,22,26,.65) 45%, rgba(20,22,26,.35) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(5rem, 12vw, 9rem); max-width: 760px; }
.hero h1 { margin-top: 1.1rem; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero__lead { margin-top: 1.4rem; font-size: 1.2rem; color: #d6dae0; max-width: 560px; }
.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__strip {
  position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.1);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.hero__strip div { padding: 1.4rem var(--gutter); }
.hero__strip strong { font-family: var(--font-display); font-size: 2rem; color: var(--amber); display: block; line-height: 1; }
.hero__strip span { font-size: .9rem; color: #aeb5bf; }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { aspect-ratio: 16/11; overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__num {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--amber); color: var(--ink); font-family: var(--font-display);
  font-weight: 700; font-size: 1rem; width: 38px; height: 38px; border-radius: 8px;
  display: grid; place-items: center;
}
.card__body { padding: 1.4rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .55rem; }
.card__body p { font-size: .97rem; }
.card__link {
  margin-top: 1.1rem; font-weight: 600; font-size: .95rem; color: var(--ink);
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
}
.card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card__link svg { transform: translateX(4px); }
.card__link:hover { color: var(--amber-700); }

/* ---------- Split / feature section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }
.split__media .badge {
  position: absolute; bottom: -18px; right: -10px; background: var(--amber); color: var(--ink);
  border-radius: var(--radius-sm); padding: 1rem 1.3rem; box-shadow: var(--shadow-md);
}
.split__media .badge b { font-family: var(--font-display); font-size: 1.9rem; display: block; line-height: 1; }
.split__media .badge span { font-size: .82rem; font-weight: 600; }
.split__body h2 { margin: .6rem 0 1rem; }

.ticks { margin-top: 1.6rem; display: grid; gap: .8rem; }
.ticks li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 500; color: var(--ink); }
.ticks svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--amber-700); margin-top: 1px; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stats div { padding: 1rem; }
.stats b { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--amber); display: block; line-height: 1; }
.stats span { color: #c3c9d2; font-size: .95rem; margin-top: .4rem; display: block; }

/* ---------- Partners strip ---------- */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; align-items: center; }
.partners img {
  width: 100%; height: 64px; object-fit: contain;
  filter: grayscale(1); opacity: .55; transition: filter .3s, opacity .3s;
  mix-blend-mode: multiply;
}
.partners img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- Kundcase cards ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.case {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px;
  display: flex; align-items: flex-end; color: #fff;
}
.case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(20,22,26,.88)); }
.case:hover img { transform: scale(1.05); }
.case__body { position: relative; z-index: 2; padding: 1.6rem 1.7rem; }
.case__tag { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.case__body h3 { color: #fff; margin: .4rem 0 .3rem; }
.case__body p { color: #d4d8de; font-size: .95rem; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 760px; }
.member {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.7rem; transition: box-shadow .3s, transform .3s;
}
.member:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.member__role { color: var(--amber-700); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.member h3 { margin: .35rem 0 .9rem; }
.member__contact { display: grid; gap: .5rem; }
.member__contact a { display: inline-flex; align-items: center; gap: .6rem; color: var(--steel); font-weight: 500; font-size: .98rem; }
.member__contact a:hover { color: var(--amber-700); }
.member__contact svg { width: 17px; height: 17px; color: var(--gray); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.08); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); }
.info-list { display: grid; gap: 1.4rem; margin-top: .5rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item__icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--amber-tint); display: grid; place-items: center; }
.info-item__icon svg { width: 22px; height: 22px; color: var(--amber-700); }
.info-item h4 { font-family: var(--font-body); text-transform: none; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); font-weight: 700; }
.info-item a, .info-item p { color: var(--ink); font-weight: 500; font-size: 1.05rem; }
.info-item a:hover { color: var(--amber-700); }

.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; padding: .8rem 1rem; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(246,166,9,.18); }
.map-embed { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: var(--radius); display: block; }
.map-consent { border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--white); min-height: 360px; display: grid; place-items: center; padding: 2rem; text-align: center; }
.map-consent__inner { max-width: 460px; }
.map-consent__inner svg { width: 40px; height: 40px; color: var(--amber-700); margin: 0 auto .8rem; }
.map-consent__inner h3 { margin-bottom: .5rem; }
.map-consent__inner p { font-size: .96rem; }
.map-consent__actions { margin-top: 1.4rem; display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Prose (long-form text: privacy policy etc.) ---------- */
.prose { max-width: 760px; }
.prose h2 { text-transform: none; font-family: var(--font-body); font-weight: 700; font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--steel); margin-bottom: .85rem; font-size: 1.02rem; }
.prose ul { padding-left: 1.25rem; list-style: disc; margin-bottom: .85rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--amber-700); text-decoration: underline; }
.prose a:hover { color: var(--amber-600); }
.prose .muted { color: var(--gray); font-size: .9rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: #fff; padding-block: clamp(3.5rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(246,166,9,.18), transparent 70%); }
.page-hero .breadcrumb { font-size: .9rem; color: var(--gray-soft); margin-bottom: .8rem; position: relative; }
.page-hero .breadcrumb a:hover { color: var(--amber); }
.page-hero h1 { position: relative; }
.page-hero p { position: relative; margin-top: 1rem; color: #c3c9d2; max-width: 640px; font-size: 1.1rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--amber); color: var(--ink); border-radius: var(--radius); padding: clamp(2.2rem, 5vw, 3.4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: #4a3c12; margin-top: .5rem; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: #aeb5bf; padding-block: 4rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer .brand__name { font-size: 1.4rem; }
.footer-col h4 { font-family: var(--font-body); text-transform: uppercase; font-size: .82rem; letter-spacing: .12em; color: #fff; margin-bottom: 1.1rem; }
.footer-col a, .footer-col p { color: #aeb5bf; font-size: .96rem; display: block; padding: .25rem 0; }
.footer-col a:hover { color: var(--amber); }
.footer-about p { margin-top: 1rem; font-size: .96rem; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: #7d858f; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards, .partners { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hero__media::after { background: linear-gradient(180deg, rgba(20,22,26,.78) 0%, rgba(20,22,26,.7) 50%, rgba(20,22,26,.9) 100%); }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    background: var(--ink); padding: 1rem var(--gutter) 1.6rem; gap: .2rem;
    border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow-lg);
  }
  .nav.is-open .nav__links a { padding: .85rem .5rem; font-size: 1.05rem; }
  .nav__mobile-cta { display: none; }
  .nav.is-open .nav__links .nav__mobile-cta { display: block; margin-top: .9rem; }
  .nav.is-open .nav__links .nav__mobile-cta a { border: none; color: var(--ink); justify-content: center; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .split__media .badge { right: 14px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .cases, .team, .form .row { grid-template-columns: 1fr; }
  .hero__strip { grid-template-columns: 1fr; }
  .hero__strip div { padding-block: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
