/* =========================================================================
   Jönssons AI Anpassning AB — stil
   Ren och sval: vitt (60 %), ljusgrått (30 %), marinblått (10 %).
   Typsnitt: Sora (rubriker) · Manrope (text). Avstånd i 8px-steg.
   ========================================================================= */

:root {
  --bg:        #ffffff;
  --tint:      #f3f5f8;
  --accent:    #1e3a5f;
  --accent-hover: #16304f;
  --text:      #16202c;
  --text-soft: #5a6573;
  --line:      #e2e6eb;

  --radius: 8px;
  --shadow: 0 1px 2px rgba(22,32,44,.06), 0 2px 8px rgba(22,32,44,.04);
  --maxw: 1120px;
  --gutter: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 600; letter-spacing: -0.015em; color: var(--text);
}
h1 { font-size: 48px; line-height: 1.1; }
h2 { font-size: 32px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--accent); color: #fff; padding: 8px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }

.ico { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  font-weight: 600; font-size: 16px;
  border-radius: var(--radius); border: 1px solid transparent; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line); color: var(--text); background: #fff; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Meny ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 17px; }
.brand__mark { width: 77px; height: 40px; flex-shrink: 0; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name-top { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 21px; color: var(--accent); letter-spacing: -0.01em; }
.brand__name-sub { font-family: 'Manrope', sans-serif; font-weight: 500; font-size: 15px; color: #4a7fb5; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--text-soft); }
.nav__links a:not(.btn):hover,
.nav__links a[aria-current="page"] { color: var(--accent); }

/* ---------- Sektioner ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section__head h2 { margin-bottom: 16px; }
.section__head p { color: var(--text-soft); }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.lead { font-size: 19px; color: var(--text-soft); }

/* ---------- Topp (55/45) ---------- */
.hero { padding: 96px 0; }
.hero__grid {
  display: grid; grid-template-columns: 55fr 45fr; gap: 64px; align-items: center;
}
.hero__text h1 { margin-bottom: 24px; }
.nowrap { white-space: nowrap; }
.hero__text .lead { max-width: 48ch; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__people { display: grid; gap: 16px; }
.person {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center;
  padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.person__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.person h3 { margin-bottom: 4px; }
.person__role { font-size: 14px; color: var(--text-soft); margin-bottom: 8px; }
.person__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); min-height: 32px; }
.person__link:hover { text-decoration: underline; }

/* ---------- Före / efter ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.case__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.case__pair figure { position: relative; border-radius: 4px; overflow: hidden; background: var(--tint); }
.case__pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.case__pair figcaption {
  position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 4px;
  font-size: 12px; font-weight: 600; background: #fff; color: var(--text);
}
.case__pair figcaption.is-after { background: var(--accent); color: #fff; }
.case h3 { font-size: 17px; text-align: center; }

/* ---------- Vad vi gör ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-soft); font-size: 16px; }

/* ---------- Kontakt ---------- */
.cta__inner { text-align: center; max-width: 640px; }
.cta h2 { margin-bottom: 16px; }
.cta p { color: var(--text-soft); margin-bottom: 32px; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Om oss ---------- */
.page { padding: 64px 0 96px; }
.page h1 { margin-bottom: 24px; }
.page h2 { font-size: 26px; margin: 48px 0 16px; scroll-margin-top: 96px; }
.page h3 { font-size: 18px; margin-bottom: 4px; }
.page p { color: var(--text-soft); margin-bottom: 16px; }
.page .lead { color: var(--text); }
.list { padding-left: 24px; color: var(--text-soft); }
.list li { margin-bottom: 8px; }
.list strong { color: var(--text); }

.about-people { display: grid; gap: 16px; }
.about-person { display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: center; }
.about-person img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.about-person p { margin: 0; font-size: 16px; }

.facts {
  display: grid; grid-template-columns: 200px 1fr; gap: 16px 24px;
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px;
}
.facts dt { font-weight: 600; color: var(--text); }
.facts dd { color: var(--text-soft); }
.facts a { color: var(--accent); font-weight: 600; }
.facts a:hover { text-decoration: underline; }

.back { margin-top: 48px; }
.back a { font-weight: 600; color: var(--accent); }
.arrow { display: inline-block; }

/* Platshållare som ska fyllas i */
.ph { color: var(--accent); border-bottom: 1px dashed currentColor; }

/* ---------- Sidfot ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 24px 0; font-size: 14px; color: var(--text-soft); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--accent); }

/* ---------- Fast bokningsknapp (bara mobil) ---------- */
.mobile-cta { display: none; }

/* ---------- Mindre skärmar ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__people { grid-template-columns: 1fr 1fr; }
  .person { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cases, .features { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
  h1 { font-size: min(36px, 7.4vw); }
  h2 { font-size: 26px; }
  .section, .hero { padding: 56px 0; }
  .section__head { margin-bottom: 32px; }
  .nav__links .btn { display: none; }
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .mobile-cta .btn { width: 100%; }
  body { padding-bottom: 80px; }
  .nav__links { gap: 16px; }
  .hero__people { grid-template-columns: 1fr; }
  .person { grid-template-columns: 80px 1fr; text-align: left; justify-items: start; }
  .person__photo { width: 80px; height: 80px; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .hero__actions .btn--primary { display: none; }
  .feature { padding: 24px; }
  .facts { grid-template-columns: 1fr; gap: 4px; padding: 24px; }
  .facts dd { margin-bottom: 16px; }
  .facts dd:last-child { margin-bottom: 0; }
}

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