/* ============================================================
   Hitta Elektriker Västerås — v2 "Editorial Premium"
   White canvas · electric blue · Schibsted Grotesk display
   + Instrument Serif italic accents · real photography
   ============================================================ */

:root {
  --accent: #2563eb;
  --accent-ink: #1d4fd7;
  --accent-soft: color-mix(in oklab, var(--accent) 7%, white);
  --accent-border: color-mix(in oklab, var(--accent) 16%, white);
  --ink: #101826;
  --ink-2: #4a5567;
  --ink-3: #8a93a3;
  --bg: #ffffff;
  --surface: #f7f8fa;
  --line: #eaedf2;
  --navy: #0b1626;
  --radius: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 38, 0.04), 0 6px 16px rgba(16, 24, 38, 0.05);
  --shadow-md: 0 2px 8px rgba(16, 24, 38, 0.05), 0 18px 44px rgba(16, 24, 38, 0.1);
  --shadow-lg: 0 8px 24px rgba(16, 24, 38, 0.08), 0 36px 90px rgba(16, 24, 38, 0.16);
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.4, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

::selection { background: color-mix(in oklab, var(--accent) 22%, white); }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
html[data-motion="subtle"] [data-reveal] { transition-duration: 0.45s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background 0.35s, border-color 0.35s; border-bottom: 1px solid transparent; }
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 36px; height: 80px; }
.nav__logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 17.5px; letter-spacing: -0.02em; }
.nav__logo-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--ink);
  display: grid; place-items: center; color: #fff;
  transition: background 0.3s, transform 0.4s var(--ease-spring);
}
.nav__logo:hover .nav__logo-mark { background: var(--accent); transform: rotate(-6deg); }
.nav__links { display: flex; gap: 30px; margin-left: auto; list-style: none; }
.nav__links a { position: relative; font-size: 14.5px; font-weight: 600; color: var(--ink-2); padding: 6px 0; transition: color 0.25s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--accent);
  transition: right 0.35s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px; letter-spacing: -0.005em;
  border: none; cursor: pointer;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 34px color-mix(in oklab, var(--accent) 40%, transparent); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px color-mix(in oklab, var(--accent) 35%, transparent); }
.btn--primary:hover { background: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 16px 38px color-mix(in oklab, var(--accent) 45%, transparent); }
.btn--line { background: transparent; color: var(--ink); border: 1.5px solid #d6dbe3; }
.btn--line:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--lg { padding: 18px 36px; font-size: 16.5px; }
.btn .arrow { transition: transform 0.35s var(--ease-spring); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 168px 0 0; position: relative; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 28px;
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.2vw, 96px);
  line-height: 0.98; letter-spacing: -0.04em; font-weight: 800;
  max-width: 12.5ch; text-wrap: balance;
}
.hero h1 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--accent); letter-spacing: -0.02em;
}
.hero__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 48px; margin: 40px 0 56px; flex-wrap: wrap;
}
.hero__lead { font-size: 19px; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero electric wire */
.hero__wire { display: block; width: 100%; height: 64px; margin: 6px 0 18px; overflow: visible; }
.hero__wire .wire { fill: none; stroke: var(--line); stroke-width: 2; }
.hero__wire .spark {
  fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 90 1300;
  animation: spark 4.2s linear infinite;
  filter: drop-shadow(0 0 7px color-mix(in oklab, var(--accent) 65%, transparent));
}
html[data-motion="subtle"] .hero__wire .spark { animation-duration: 9s; }
@keyframes spark { from { stroke-dashoffset: 1390; } to { stroke-dashoffset: 0; } }

/* Hero photo */
.hero__media { position: relative; }
.hero__photo {
  width: 100%; height: clamp(380px, 52vw, 620px);
  object-fit: cover; object-position: center 30%;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0; border-radius: 32px;
  background: linear-gradient(to top, rgba(11, 22, 38, 0.32), transparent 45%);
  pointer-events: none;
}
.hero__caption {
  position: absolute; left: 36px; bottom: 32px; z-index: 2;
  color: #fff; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.hero__caption svg { color: #fff; }

/* Stats card overlapping photo */
.statbar {
  position: relative; z-index: 3;
  margin: -64px auto 0; max-width: 980px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 34px 20px;
}
.statbar__item { text-align: center; padding: 0 16px; position: relative; }
.statbar__item + .statbar__item::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 1px; background: var(--line);
}
.statbar__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.statbar__num .unit { color: var(--accent); }
.statbar__label { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.truststrip { padding: 64px 0 0; }
.truststrip__inner {
  display: flex; justify-content: center; gap: 12px 40px; flex-wrap: wrap;
  color: var(--ink-3); font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.truststrip__inner span { display: inline-flex; align-items: center; gap: 9px; }
.truststrip__inner svg { color: var(--accent); }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { padding: 120px 0; }
.section--tint { background: var(--surface); }
.section__head { margin-bottom: 64px; }
.section__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 20px;
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  text-wrap: balance;
}
h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.section__sub { margin-top: 20px; font-size: 17.5px; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }

/* ============================================================
   SERVICES — featured photo cards
   ============================================================ */
.feat__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s;
}
.feat:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feat__media { height: 250px; overflow: hidden; }
.feat__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.feat:hover .feat__media img { transform: scale(1.06); }
.feat__body { padding: 28px 28px 30px; }
.feat__tag {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 7px 15px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
}
.feat h3 { font-family: var(--font-display); font-size: 23px; font-weight: 800; letter-spacing: -0.02em; }
.feat p { margin-top: 10px; font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
.feat__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--accent-ink);
}
.feat__link .arrow { transition: transform 0.35s var(--ease-spring); }
.feat:hover .feat__link .arrow { transform: translateX(5px); }

/* Secondary services — editorial list */
.svclist { margin-top: 56px; border-top: 1px solid var(--line); }
.svclist__row {
  display: grid; grid-template-columns: 80px 1fr 1.4fr auto;
  align-items: center; gap: 32px;
  padding: 30px 8px; border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding 0.35s var(--ease-out);
}
.svclist__row:hover { background: var(--accent-soft); padding-left: 22px; padding-right: 22px; border-radius: 16px; }
.svclist__num { font-family: var(--font-serif); font-style: italic; font-size: 24px; color: var(--ink-3); }
.svclist__row:hover .svclist__num { color: var(--accent); }
.svclist__name { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.svclist__desc { font-size: 15px; color: var(--ink-2); }
.svclist__arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid #d6dbe3; display: grid; place-items: center;
  color: var(--ink); transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease-spring);
}
.svclist__row:hover .svclist__arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

/* ============================================================
   WHY US
   ============================================================ */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.why__media { position: relative; }
.why__photo {
  width: 100%; height: 600px; object-fit: cover;
  border-radius: 32px; box-shadow: var(--shadow-lg);
}
.why__rot {
  position: absolute; right: -22px; bottom: 46px;
  background: #fff; border-radius: 22px; padding: 22px 26px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
}
.why__rot strong { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; display: block; line-height: 1.1; }
.why__rot small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.why__rot-ring {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--accent) 0 30%, var(--accent-soft) 30% 100%);
  display: grid; place-items: center;
}
.why__rot-ring::before {
  content: "30%"; width: 40px; height: 40px; border-radius: 50%; background: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 12.5px; color: var(--accent-ink);
}
.why__points { margin-top: 48px; display: flex; flex-direction: column; }
.wpoint { display: flex; gap: 26px; padding: 26px 0; border-top: 1px solid var(--line); }
.wpoint__num { font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--accent); flex: none; width: 40px; }
.wpoint h3 { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 6px; }
.wpoint p { font-size: 15px; color: var(--ink-2); text-wrap: pretty; }

/* ============================================================
   COVERAGE
   ============================================================ */
.coverage { text-align: center; }
.coverage .section__head { margin-bottom: 48px; }
.coverage .section__sub { margin-inline: auto; }
.coverage .kicker { justify-content: center; }
.coverage__chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 860px; margin: 0 auto; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line);
  font-family: var(--font-display); font-size: 15.5px; font-weight: 700; color: var(--ink-2);
  transition: transform 0.35s var(--ease-spring), border-color 0.25s, color 0.25s, box-shadow 0.35s;
  cursor: default;
}
.chip svg { color: var(--accent); }
.chip:hover { transform: translateY(-4px); border-color: var(--accent-border); color: var(--ink); box-shadow: var(--shadow-md); }
.chip--main { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--main svg { color: #7ea4f5; }
.chip--main:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.coverage__note { margin-top: 30px; font-size: 15px; color: var(--ink-3); }
.coverage__note a { color: var(--accent-ink); font-weight: 700; border-bottom: 1.5px solid var(--accent-border); }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: 0 0 120px; }
.cta__card {
  position: relative; overflow: hidden;
  background: var(--navy);
  border-radius: 36px; padding: 100px 64px;
  text-align: center; color: #fff;
}
.cta__glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 820px; height: 480px;
  background: radial-gradient(ellipse, color-mix(in oklab, var(--accent) 45%, transparent), transparent 70%);
  pointer-events: none;
}
.cta__card h2 { color: #fff; max-width: 16ch; margin: 0 auto; position: relative; z-index: 2; }
.cta__card p { margin: 22px auto 40px; max-width: 50ch; color: rgba(255, 255, 255, 0.66); font-size: 17.5px; position: relative; z-index: 2; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.cta__card .btn--line { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.cta__card .btn--line:hover { border-color: #fff; }
.cta__meta { margin-top: 34px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.cta__meta span { display: inline-flex; gap: 9px; align-items: center; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, 0.55); }
.cta__meta svg { color: var(--accent); }
.cta__wire { position: absolute; left: 0; right: 0; bottom: 28px; width: 100%; height: 50px; opacity: 0.55; }
.cta__wire .wire { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 2; }
.cta__wire .spark {
  fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 80 1200;
  animation: spark 5s linear infinite;
  filter: drop-shadow(0 0 8px color-mix(in oklab, var(--accent) 70%, transparent));
}
html[data-motion="subtle"] .cta__wire .spark { animation-duration: 10s; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.footer__brand .nav__logo-mark { width: 30px; height: 30px; border-radius: 9px; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { font-size: 14px; font-weight: 600; color: var(--ink-3); transition: color 0.25s; }
.footer__links a:hover { color: var(--ink); }
.footer__legal { font-size: 13px; color: var(--ink-3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .nav__links { display: none; }
  .feat__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; gap: 70px; }
  .why__photo { height: 440px; }
  .why__rot { right: 14px; }
  .svclist__row { grid-template-columns: 48px 1fr auto; }
  .svclist__desc { display: none; }
  .statbar { grid-template-columns: 1fr 1fr; gap: 26px 0; margin-top: -40px; }
  .statbar__item:nth-child(3)::before { display: none; }
  .hero { padding-top: 140px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .cta__card { padding: 70px 28px; }
  .statbar { padding: 26px 8px; }
  .section { padding: 84px 0; }
  .hero__photo { border-radius: 24px; }
}
