:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --border: #e5e7eb;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.logo { display: flex; align-items: center; }
.logo img { height: 52px; width: auto; display: block; }
nav { display: flex; flex-wrap: wrap; }
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 1.75rem;
  transition: color 0.2s;
}
nav a:hover { color: var(--text); }
nav a.active { color: var(--accent); font-weight: 600; }

/* Hero (startsidan) */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 7rem 1.5rem 6rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Sidhuvud för undersidor */
.page-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 1rem;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.page-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
}

/* Kort */
.services, .cards {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
a.card { text-decoration: none; color: inherit; display: block; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.card h2, .card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.card p { color: var(--text-muted); font-size: 0.98rem; }

/* Löpande innehåll (tjänster, metoder) */
.content {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}
.content section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 1.75rem;
}
.content section > .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.content section > .icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.content h2 {
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1.5rem 0 0.5rem;
}
.content p { color: #333; margin-bottom: 1rem; }
.content p:last-child { margin-bottom: 0; }
.content ul, .content ol {
  margin: 0.5rem 0 1rem 1.3rem;
  color: #333;
}
.content li { margin-bottom: 0.6rem; }

/* Kontakt */
.contact-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.contact-card p, .contact-card a {
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.contact-card a:hover { color: var(--accent); }
.staff {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}
.staff h2 {
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.staff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 480px;
  flex-wrap: wrap;
}
.staff-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
.staff-card h3 { font-size: 1.15rem; font-weight: 700; }
.staff-card .role { color: var(--accent); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.staff-card p, .staff-card a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.staff-card a:hover { color: var(--accent); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Diskret inflygning */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 600px) {
  nav a { margin-left: 1rem; }
  .hero { padding: 4.5rem 1.5rem 4rem; }
  .content section { padding: 1.75rem 1.5rem; }
}
