/* ============================================================
   BOLD SPLIT-HERO + STATS — confident, credentialed design system
   Trade: any firm with strong credentials (Säker Vatten, certs).
   ============================================================
   PALETTE: near-white + bold cobalt accent + ink. Max 3 colors.
   Full-bleed split hero, oversized Space Grotesk display,
   big real-figures stats band, high-contrast section rhythm.
   ============================================================ */

:root {
  color-scheme: light;

  --paper: #ffffff;
  --paper-soft: #f2f5f7;
  --ink: #0d1117;           /* near-black */
  --ink-soft: #5b6570;

  --line: #e2e8ef;
  --line-strong: #c9d2dc;

  /* fixed dark surfaces */
  --night: #0d1117;
  --night-soft: #161c24;
  --night-line: #2a3440;

  /* accent — bold cobalt */
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --accent-soft: #e3eafd;
  --accent-strong: #1e40af;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --space-section: clamp(4rem, 9vw, 7rem);
  --radius: 2px;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --paper: #0b0f14;
  --paper-soft: #121821;
  --ink: #e8edf3;
  --ink-soft: #9aa7b5;
  --line: #26303c;
  --line-strong: #39465a;
  --accent: #3b82f6;
  --accent-strong: #60a5fa;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
a { color: var(--accent-strong); }
a:hover { color: var(--accent); }
.container { width: min(1160px, 92%); margin-inline: auto; }
section { padding-block: var(--space-section); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0.8rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  touch-action: manipulation;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header — high contrast */
.header { position: sticky; top: 0; z-index: 50; background: var(--night); color: #fff; border-bottom: 1px solid var(--night-line); min-height: 68px; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; flex-wrap: nowrap; }
.header__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff; text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.header__brand:hover { color: var(--accent); }
.header__nav { display: flex; align-items: center; gap: 2rem; }
.header__nav a { color: #c8d1dc; text-decoration: none; font-size: 0.95rem; }
.header__nav a:hover { color: #fff; }
.header__phone { display: flex; align-items: center; gap: 0.4rem; color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; font-size: 0.95rem; }
.header__phone:hover { color: var(--accent); }
@media (max-width: 640px) { .header__nav { display: none; } }
@media (max-width: 479px) { .header__phone .header__phone-label { display: none; } }

/* hero — full-bleed split, oversized display */
.hero {
  background: var(--night);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(29,78,216,0.18) 100%);
  z-index: -1;
}
.hero__inner { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 3rem; align-items: center; }
.hero__kicker {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.4rem 0.9rem; border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.hero__title { font-size: clamp(2.8rem, 7vw, 4.8rem); color: #fff; margin-bottom: 1.25rem; }
.hero__sub { font-size: 1.15rem; color: #c8d1dc; max-width: 46ch; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero__cta .btn--ghost { border-color: #5b6570; color: #e8edf3; }
.hero__cta .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero__logo-wrap {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__logo {
  max-width: 100%;
  height: auto;
}

/* stats band — real figures, high contrast */
.stats { background: var(--accent); color: #fff; padding-block: 2.5rem; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); color: #fff; line-height: 1; }
.stat__label { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-top: 0.4rem; }

/* section labels */
.section__label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-strong); font-weight: 700; margin-bottom: 0.75rem; }
.section__title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 1rem; max-width: 18ch; }
.section__lede { color: var(--ink-soft); max-width: 52ch; }

/* services — bold, border-left markers */
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.service {
  background: var(--paper-soft);
  border-left: 4px solid var(--accent);
  padding: 1.75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.service h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.service p { color: var(--ink-soft); font-size: 0.97rem; }

/* credentials — dark band */
.band { background: var(--night); color: #fff; }
.band__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.band h2 { color: #fff; }
.band p { color: #c8d1dc; }
.band__creds { list-style: none; display: grid; gap: 1rem; }
.band__creds li {
  display: flex; align-items: center; gap: 0.75rem;
  color: #e8edf3; padding: 0.9rem 1.1rem;
  background: var(--night-soft); border: 1px solid var(--night-line); border-radius: var(--radius);
}
.band__creds li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* about */
.about__inner { max-width: 60ch; }
.about__body { color: var(--ink-soft); font-size: 1.1rem; }

/* contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact__form { display: grid; gap: 1rem; }
.contact__form label { font-size: 0.9rem; color: var(--ink-soft); }
.contact__form input, .contact__form textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--paper-soft); border: 2px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font-family: var(--font-body); font-size: 1rem;
}
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--accent); }
.contact__info { display: grid; gap: 1.25rem; }
.contact__info-item strong { display: block; color: var(--ink); margin-bottom: 0.2rem; }
.contact__info-item span, .contact__info-item a { color: var(--ink-soft); }
.contact__info-item a:hover { color: var(--accent-strong); }

/* footer */
.footer { background: var(--night); color: #9aa7b5; border-top: 1px solid var(--night-line); padding-block: 2rem; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--night-line); }
.footer__copy { font-size: 0.85rem; }

/* theme switch */
.theme-switch { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: #c8d1dc; }
.theme-switch button[role='switch'] {
  width: 52px; height: 28px; border-radius: 999px;
  border: 1px solid var(--night-line); background: var(--night-soft);
  cursor: pointer; position: relative; padding: 0;
  transition: background 150ms ease; touch-action: manipulation;
}
.theme-switch button[role='switch']::before {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform 200ms ease;
}
.theme-switch button[role='switch'][aria-checked='true']::before { transform: translateX(24px); background: var(--accent); }
.theme-switch button[role='switch'][aria-checked='true'] { background: rgba(29,78,216,0.3); }
.theme-switch button[role='switch']:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 860px) {
  .hero__inner, .band__inner, .contact__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .services__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
