/* ==========================================================================
   Hellman Dynamic AB – styles.css
   Ren CSS, inga byggsteg. Tokens överst, sedan bas, layout och komponenter.
   ========================================================================== */

/* ---------- Typsnitt (self-hostade) ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --red: #ba2a26;
  --red-dark: #941f1c;
  --red-soft: #f7e6e5;
  --ink: #1a1a1a;
  --gray-900: #2b2b2b;
  --gray-700: #4a4a4a;
  --gray-500: #767676;
  --gray-300: #d9d9d9;
  --gray-100: #f5f5f5;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --green: #61a229;

  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;

  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 14px 40px rgba(0, 0, 0, 0.14);
  --header-h: 88px;
}

/* ---------- Reset / bas ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--bg);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red-dark);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

p {
  margin: 0 0 var(--space-2);
}

ul,
ol {
  margin: 0 0 var(--space-2);
  padding-left: 1.25rem;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-2);
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-2);
}

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-light:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--gray-300);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: 206px;
  height: 60px;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.tagline {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list > li {
  position: relative;
}

.nav-list a,
.nav-list button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  color: var(--gray-900);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-list a:hover,
.nav-list button:hover,
.nav-list a[aria-current="page"] {
  background: var(--red-soft);
  color: var(--red-dark);
}

.nav-list a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--red);
}

.nav-list .chevron {
  width: 0.7rem;
  height: 0.7rem;
  transition: transform 0.18s ease;
}

.has-dropdown[aria-expanded="true"] .chevron,
.has-dropdown > button[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.dropdown {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 0.15rem;
}

/* Osynlig brygga över gapet mellan knapp och lista så att hover inte tappas */
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.75rem;
  height: 0.75rem;
}

.dropdown a {
  width: 100%;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.has-dropdown > button[aria-expanded="true"] + .dropdown {
  display: flex;
}

@media (hover: hover) {
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown {
    display: flex;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--gray-300);
  background: #fff;
  cursor: pointer;
}

.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  content: "";
  position: relative;
}

.nav-toggle .bars::before {
  position: absolute;
  top: -6px;
}

.nav-toggle .bars::after {
  position: absolute;
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero (startsida) ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.55) 0%, rgba(20, 20, 20, 0.7) 100%);
}

.hero-content {
  padding: var(--space-7) 0;
  max-width: 820px;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-2);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--space-2);
}

.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin: 0 auto var(--space-4);
}

.hero .btn-group {
  justify-content: center;
}

/* ---------- Page hero (undersidor) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.page-hero .hero-media {
  z-index: -2;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.82) 0%, rgba(20, 20, 20, 0.55) 60%, rgba(20, 20, 20, 0.35) 100%);
}

.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-1);
}

.page-hero h1 {
  color: #fff;
  margin-bottom: var(--space-1);
}

.page-hero .lead {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

/* ---------- Sektioner ---------- */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-tight {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-5);
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.section-head p {
  color: var(--gray-700);
  font-size: 1.1rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--gray-700);
}

/* ---------- Tjänstekort ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
  color: inherit;
}

.card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-100);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.card-body h3 {
  margin: 0;
}

.card-body p {
  margin: 0;
  color: var(--gray-700);
}

.card-link {
  margin-top: auto;
  padding-top: var(--space-2);
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card:hover .card-link {
  color: var(--red-dark);
}

.badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  z-index: 1;
}

/* ---------- Två kolumner ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split.reverse > .split-media {
  order: -1;
}

.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.prose h2,
.prose h3 {
  margin-top: var(--space-4);
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--gray-700);
}

/* ---------- Checklista ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3);
  display: grid;
  gap: 0.6rem;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  color: var(--gray-900);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--red-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ba2a26' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

.checklist ul {
  list-style: disc;
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  color: var(--gray-700);
}

.checklist.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- Feature-grid (t.ex. Dynamic AI, fördelar) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.features.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.section-alt .feature {
  border-color: transparent;
}

.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red);
  margin-bottom: 0.4rem;
}

.feature .icon svg {
  width: 26px;
  height: 26px;
}

.feature h3 {
  margin: 0;
}

.feature p {
  margin: 0;
  color: var(--gray-700);
}

.pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-top: 0.4rem;
}

/* ---------- Tidslinje ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: var(--space-3);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--gray-300);
}

.timeline li {
  position: relative;
  padding-left: 2.6rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--red);
}

.timeline .year {
  display: block;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

.timeline p {
  margin: 0;
  color: var(--gray-700);
}

/* ---------- Utmärkelser ---------- */
.awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
  justify-items: center;
}

.award {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.award-badge {
  width: 120px;
  height: 120px;
}

.award .award-label {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.award .award-sub {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.awards-official {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) var(--space-5);
}

.awards-official.start {
  justify-content: flex-start;
  margin-bottom: var(--space-3);
}

.awards-official img {
  height: 170px;
  width: auto;
}

.awards-official img.master {
  height: 200px;
}

.awards-official.start img {
  height: 150px;
}

.awards-official.start img.master {
  height: 180px;
}

.awards-official + .chips {
  margin-top: var(--space-4);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .awards-official img {
    height: 120px;
  }

  .awards-official img.master,
  .awards-official.start img.master {
    height: 150px;
  }

  .awards-official.start img {
    height: 110px;
  }
}

.award-text {
  color: var(--gray-700);
  margin-bottom: var(--space-3);
}

.honors {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: var(--space-3) 0 0;
  border-top: 1px solid var(--gray-300);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
}

.honors.start {
  justify-content: flex-start;
  margin-top: var(--space-3);
}

.honor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.honor .icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  display: grid;
  place-items: center;
  color: var(--gray-500);
  background: #fff;
}

.honor .icon svg {
  width: 20px;
  height: 20px;
}

.honor span:not(.icon) {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.honor strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.honor small {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.logo-row img {
  width: 180px;
  height: auto;
}

/* ---------- CTA-band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.35rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Kontaktkort ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.contact-card {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4) var(--space-4);
}

.contact-card .eyebrow {
  display: block;
  line-height: 1.4;
  margin-bottom: var(--space-2);
}

.contact-card h3 {
  margin-bottom: var(--space-1);
}

.contact-card address {
  font-style: normal;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.contact-card .muted {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.link-arrow svg {
  width: 1rem;
  height: 1rem;
}

/* ---------- Mail-bricka ---------- */
.mail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 1.1rem 0.55rem 0.6rem;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mail-chip:hover,
.mail-chip:focus-visible {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  color: var(--ink);
}

.mail-chip .mail-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red);
}

.mail-chip .mail-icon svg {
  width: 18px;
  height: 18px;
}

.mail-chip span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.mail-chip small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.mail-chip strong {
  font-weight: 600;
  font-size: 0.98rem;
}

.mail-chip.block {
  display: flex;
  width: 100%;
  border-radius: var(--radius);
}

.section-alt .mail-chip,
.job-facts .mail-chip {
  border-color: transparent;
}

.job-facts .mail-chip {
  margin-top: var(--space-2);
}

.press-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.press-foot p {
  margin: 0;
  color: var(--gray-700);
}

/* ---------- Policy-knappar ---------- */
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: var(--space-2) 0 0;
}

.link-list .btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  border-top: 4px solid var(--red);
  padding: var(--space-6) 0 var(--space-3);
  font-size: 0.97rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: var(--space-4);
}

.site-footer h2 {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.site-footer address a {
  font-weight: 600;
}

.site-footer address + p {
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer address + p a {
  font-weight: 600;
}

.footer-logo img {
  width: 190px;
  height: auto;
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-2);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.social {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: flex;
  gap: 0.6rem;
}

.social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.social a:hover {
  background: var(--red);
  border-color: var(--red);
}

.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-disclaimer {
  margin: var(--space-2) 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Jobbannonser ---------- */
.job-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.job-card {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4);
  background: #fff;
  border: 1px solid var(--gray-300);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover,
.job-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: inherit;
}

.job-card h3 {
  margin-bottom: 0.35rem;
}

.job-card p {
  margin: 0;
  color: var(--gray-700);
}

.job-meta {
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.job-meta div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.job-meta dt {
  color: var(--gray-500);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: center;
}

.job-meta dd {
  margin: 0;
  color: var(--gray-900);
}

.job-card .card-link {
  padding-top: 0;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-dark);
  background: var(--red-soft);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.5rem;
}

.tag-muted {
  color: var(--gray-500);
  background: var(--gray-100);
}

.job-card.archived {
  border-left-color: var(--gray-300);
  opacity: 0.9;
}

.job-empty {
  padding: var(--space-4);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
  color: var(--gray-500);
  text-align: center;
}

.job-empty p {
  margin: 0;
}

.job-archive-link {
  margin-top: var(--space-3);
  font-weight: 600;
}

.job-layout,
.press-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.job-body h3 {
  margin-top: var(--space-4);
  margin-bottom: 0.4rem;
}

.job-body h3:first-of-type {
  margin-top: 0;
}

.job-aside {
  position: sticky;
  top: calc(var(--header-h) + var(--space-3));
}

.job-facts {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.job-facts h2 {
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}

.job-facts dl {
  margin: 0 0 var(--space-3);
  display: grid;
  gap: 0.75rem;
}

.job-facts dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.job-facts dd {
  margin: 0;
  color: var(--gray-900);
}

.job-facts .btn {
  width: 100%;
  justify-content: center;
}

.job-facts .muted {
  margin: var(--space-2) 0 0;
  font-size: 0.92rem;
  color: var(--gray-500);
}

.small {
  font-size: 0.85rem;
}

.back-link {
  display: inline-block;
  margin-top: var(--space-3);
  font-weight: 600;
  text-decoration: none;
}

.notice {
  background: var(--red-soft);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--gray-900);
}

/* ---------- Dynamic AI: trappa, principer, tjänster, kalkyl ---------- */
.stair {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: stretch;
}

.step {
  background: #fff;
  border-radius: var(--radius);
  border-top: 5px solid var(--gray-300);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow);
}

.stair .step:nth-child(2) { border-top-color: var(--gray-500); }

.step-accent {
  border-top-color: var(--red) !important;
}

.step-wide {
  margin-top: var(--space-3);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-top-color: var(--gray-300);
}

.step-wide-main {
  flex: 1 1 auto;
}

.step-wide-main p {
  margin-bottom: 0;
}

.step-wide-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 220px;
}

.step-num {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.step h3 {
  margin: 0;
}

.step p {
  color: var(--gray-700);
  margin: 0;
  flex: 1;
}

.price {
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: var(--space-2);
}

.price small {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--gray-500);
  letter-spacing: 0;
}

.step .link-arrow {
  margin-top: var(--space-2);
}

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-5);
}

.principles li {
  border-top: 2px solid var(--ink);
  padding-top: var(--space-2);
}

.pnum {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.4rem;
}

.principles h3 {
  margin-bottom: 0.5rem;
}

.principles p {
  margin: 0;
  color: var(--gray-700);
}

.svc {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: var(--space-5) 0;
  border-top: 2px solid var(--ink);
}

.svc:last-of-type {
  border-bottom: 2px solid var(--ink);
}

.svc h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-bottom: 0.25rem;
}

.svc .tagline {
  color: var(--gray-500);
  font-style: italic;
  margin-bottom: var(--space-3);
}

.svc h4 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin: var(--space-3) 0 0.3rem;
}

.svc .checklist {
  margin-bottom: var(--space-2);
}

.price-card {
  position: sticky;
  top: calc(var(--header-h) + var(--space-3));
  background: #fff;
}

.pricetag {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.pricesub {
  display: block;
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-top: 0.3rem;
  margin-bottom: var(--space-2);
}

.price-card dl {
  border-top: 1px solid var(--gray-300);
  padding-top: var(--space-2);
}

.table-wrap {
  overflow-x: auto;
  margin-top: var(--space-3);
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.matrix th,
.matrix td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--gray-300);
}

.matrix thead th {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.matrix tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.matrix .p {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.matrix small {
  display: block;
  color: var(--gray-700);
  font-size: 0.86rem;
  line-height: 1.45;
  margin-top: 0.2rem;
}

.calc {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.fields label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

.fields input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
}

.fields input:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}

.result {
  border-top: 2px solid var(--ink);
  padding-top: var(--space-3);
}

.result .big {
  display: block;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--red);
}

.result p {
  margin: 0.6rem 0 0;
  color: var(--gray-700);
}

.not-list li::before {
  background-color: var(--gray-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23767676' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l8 8M14 6l-8 8'/%3E%3C/svg%3E");
}

@media (max-width: 900px) {
  .stair {
    grid-template-columns: 1fr;
  }

  .step-wide {
    flex-direction: column;
    align-items: stretch;
  }

  .step-wide-side {
    min-width: 0;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .svc {
    grid-template-columns: 1fr;
  }

  .price-card {
    position: static;
  }

  .fields {
    grid-template-columns: 1fr;
  }
}

/* ---------- Video (klicka för att spela) ---------- */
.video {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: block;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
  transition: transform 0.4s ease, filter 0.3s ease;
}

.video-facade:hover img,
.video-facade:focus-visible img {
  transform: scale(1.03);
  filter: brightness(0.65);
}

.video-facade .play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.video-facade:hover .play,
.video-facade:focus-visible .play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--red-dark);
}

.video-facade .play svg {
  width: 38px;
  height: 38px;
  margin-left: 4px;
}

.video-facade .video-label {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.video-facade .video-label small {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.center-text {
  text-align: center;
  margin-top: var(--space-2);
  color: var(--gray-500);
}

/* ---------- Press ---------- */
.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.press-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--space-2);
  align-items: baseline;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-300);
}

.press-list time {
  color: var(--gray-500);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.press-list a {
  font-weight: 600;
}

.press-dateline {
  color: var(--gray-500);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.press-body blockquote {
  margin: var(--space-4) 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-3);
  border-left: 4px solid var(--red);
}

.press-body blockquote p {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.press-body cite {
  font-style: normal;
  color: var(--gray-500);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .job-card {
    grid-template-columns: 1fr;
  }

  .job-layout,
  .press-layout {
    grid-template-columns: 1fr;
  }

  .job-aside {
    position: static;
  }

  .press-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: var(--space-2);
}

/* ---------- Responsivt ---------- */
@media (max-width: 1024px) {
  .cards,
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .logo img {
    width: 172px;
    height: 50px;
  }

  .tagline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow);
    display: none;
    padding: var(--space-2) var(--gutter) var(--space-3);
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav-list a,
  .nav-list button {
    width: 100%;
    justify-content: space-between;
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius-sm);
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--red-soft);
    border-radius: 0;
    margin: 0.2rem 0 0.4rem 0.9rem;
    padding: 0 0 0 0.5rem;
    min-width: 0;
  }

  .has-dropdown:hover > .dropdown {
    display: none;
  }

  .has-dropdown > button[aria-expanded="true"] + .dropdown {
    display: flex;
  }

  .split,
  .contact-grid,
  .checklist.two-col,
  .features.two {
    grid-template-columns: 1fr;
  }

  .split.reverse > .split-media {
    order: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .cards,
  .features,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content {
    padding: var(--space-6) 0;
  }

  .btn-group .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-band .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
