/* Västkustens Snickeri - premium startsida (UI/UX + WCAG 2.2 AA) */

:root {
  --blue: #3a7ab6;
  --blue-deep: #1a4470;
  --blue-hover: #2d6294;
  --blue-glow: rgba(58, 122, 182, 0.35);
  --blue-soft: #e6f0f9;
  --ink: #141414;
  --ink-soft: #2e2e2e;
  --muted: #4a4a4a;
  --muted-on-dark: #e5e7eb;
  --surface: #f3f4f6;
  --surface-2: #e8eaed;
  --white: #ffffff;
  --wood: #8f6844;
  --wood-light: #e8edf2;
  --focus-ring: #2563eb;
  --focus-offset: 3px;
  --radius: 2px;
  --radius-sm: 2px;
  --font: "Barlow", Arial, sans-serif;
  --font-display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --text-h1: clamp(3.1rem, 8vw, 5.25rem);
  --text-h1-inner: clamp(2.85rem, 7vw, 4.5rem);
  --text-h2: clamp(1.75rem, 3.5vw, 2.35rem);
  --text-h3: clamp(1.15rem, 2vw, 1.35rem);
  --text-lead: clamp(1.2rem, 1.65vw, 1.35rem);
  --text-body: 1.0625rem;
  --text-h2-lh: 1.12;
  --text-lead-lh: 1.45;
  --text-body-lh: 1.65;
  --max: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --min-touch: 44px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --blue: #1a4470;
    --muted: #1a1a1a;
    --ink-soft: #000;
  }

  .btn-ghost-next {
    border-color: #fff;
    background: rgba(0, 0, 0, 0.35);
  }
}

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

html {
  scroll-behavior: smooth;
}

body.page-next {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--surface);
  font-size-adjust: from-font;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

body.page-next h1,
body.page-next h2,
body.page-next h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-wrap: balance;
}

body.page-next h1 {
  font-size: var(--text-h1);
  line-height: 0.94;
  letter-spacing: 0;
}

body.page-next h2 {
  font-size: var(--text-h2);
  line-height: var(--text-h2-lh);
}

body.page-next h3 {
  font-size: var(--text-h3);
  line-height: 1.25;
}

.lead {
  margin: 0 0 1rem;
  font-size: var(--text-lead);
  font-weight: 500;
  line-height: var(--text-lead-lh);
  color: var(--ink);
  max-width: 40rem;
  text-wrap: pretty;
}

body.page-next .hero-next h1,
body.page-next .hero-next .lead,
body.page-next .hero-next .hero-eyebrow,
body.page-next .page-hero-photo h1,
body.page-next .page-hero-photo .lead,
body.page-next .cta-offer-copy h2,
body.page-next .cta-offer-copy .lead,
body.page-next .cta-next h2,
body.page-next .cta-next .lead,
body.page-next .cta-next p {
  color: #fff;
}

body.page-next .cta-offer-copy p:not(.lead) {
  color: #e5e7eb;
}

body.page-next .page-hero-usps strong {
  color: #fff;
}

body.page-next .page-hero-usps p {
  color: #d7dee7;
}

.section-cta {
  margin: 1.5rem 0 0;
}

body.page-next img {
  max-width: 100%;
  height: auto;
  display: block;
}

body.page-next a {
  color: var(--blue-deep);
}

body.page-next .footer-next,
body.page-next .footer-next p,
body.page-next .footer-next li {
  color: #e8edf2;
}

body.page-next .footer-next h2 {
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d7dee7;
}

body.page-next .footer-next a,
body.page-next .footer-next a:hover {
  color: #fff;
  text-decoration: none;
}

body.page-next .footer-next .brand-lockup,
body.page-next .footer-next .brand-word,
body.page-next .footer-next .brand-sub {
  color: #fff;
}

body.page-next a:not(.btn-primary-next):not(.btn-ghost-next):not(.btn-header):not(.service-tile-next):not(.demo-badge):not(.site-logo):not(.logo-next):hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body.page-next .nav-desktop a,
body.page-next .nav-desktop a:hover,
body.page-next .nav-drawer a,
body.page-next .nav-drawer a:hover {
  text-decoration: none;
}

/* Synlig fokus (WCAG 2.4.7, 2.4.11) */
body.page-next :focus {
  outline: none;
}

body.page-next :focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: var(--focus-offset);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.25);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 0.85rem 1.25rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
}

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

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.section-team {
  background: var(--surface-2);
}

.subheading-team {
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
}

.team-more {
  margin-top: 1.5rem;
}

.nav-drawer-cta {
  margin-top: 2rem;
}

.nav-drawer-cta .btn-primary-next {
  width: 100%;
  justify-content: center;
}

/* Header */
.site-header-next {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header-next.is-scrolled {
  background: rgba(243, 244, 246, 0.96);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

@media (min-width: 960px) {
  .site-header-next.is-scrolled {
    backdrop-filter: blur(10px);
  }
}

.header-next-inner {
  width: min(var(--max), 100% - 2rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-next {
  display: flex;
  align-items: center;
  min-height: var(--min-touch);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--min-touch);
  min-height: var(--min-touch);
  border: 2px solid transparent;
  background: var(--surface-2);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.site-header-next:not(.is-scrolled) .nav-toggle {
  background: rgba(255, 255, 255, 0.15);
}

.site-header-next:not(.is-scrolled) .nav-toggle svg {
  color: #fff;
}

.nav-toggle:hover {
  background: #e8e6e2;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--ink);
}

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

.nav-desktop a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  padding: 0.5rem 0.15rem;
  min-height: var(--min-touch);
  display: inline-flex;
  align-items: center;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible,
.nav-desktop a[aria-current="page"] {
  color: var(--blue);
  text-decoration: none;
}

.nav-desktop a[aria-current="page"] {
  font-weight: 600;
}

.site-header-next:not(.is-scrolled) .nav-desktop a {
  color: #fff;
}

.site-header-next:not(.is-scrolled) .nav-desktop a:hover,
.site-header-next:not(.is-scrolled) .nav-desktop a:focus-visible,
.site-header-next:not(.is-scrolled) .nav-desktop a[aria-current="page"] {
  color: #8ec0ea;
  text-decoration: none;
}

.site-header-next:not(.is-scrolled) .nav-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-header {
  display: none;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  min-height: var(--min-touch);
  padding: 0.65rem 1.1rem;
  background: var(--blue-deep);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.8125rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-header:hover {
  background: var(--blue-hover);
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(20, 20, 20, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--white);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.nav-drawer.is-open .nav-drawer-panel {
  transform: translateX(0);
}

.nav-drawer ul {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
}

.nav-drawer a {
  display: flex;
  align-items: center;
  min-height: var(--min-touch);
  padding: 0.5rem 0;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--surface-2);
}

.nav-drawer a:hover,
.nav-drawer a:focus-visible,
.nav-drawer a[aria-current="page"] {
  color: var(--blue);
  text-decoration: none;
}

.nav-drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 2px solid transparent;
  background: var(--surface-2);
  min-width: var(--min-touch);
  min-height: var(--min-touch);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
}

@media (min-width: 960px) {
  .nav-toggle,
  .nav-drawer {
    display: none;
  }

  .nav-desktop,
  .btn-header {
    display: flex;
  }
}

body.page-next.nav-open {
  overflow: hidden;
}

/* Hero */
.hero-next {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) 1.25rem clamp(2.75rem, 5vw, 4rem);
  overflow: hidden;
}

.hero-next-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-next-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-next-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 40, 71, 0.94) 0%, rgba(15, 40, 71, 0.72) 50%, rgba(15, 40, 71, 0.45) 100%),
    linear-gradient(to top, rgba(20, 20, 20, 0.85), transparent 55%);
}

.hero-next-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  text-align: left;
}

.hero-next-copy {
  max-width: 54rem;
  width: 100%;
}

.hero-next .page-hero-usps {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e8edf2;
  margin-bottom: 1.1rem;
}

.hero-eyebrow::before {
  content: "";
  width: 40px;
  height: 3px;
  background: #e8edf2;
}

.hero-next h1 {
  color: #fff;
  margin: 0 0 1.1rem;
  max-width: 14ch;
}

.hero-next .lead {
  color: #fff;
  font-weight: 400;
  margin: 0 0 1.75rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-usps {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-usps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
}

@media (max-width: 699px) {
  .hero-usps-list {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}

.hero-usps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.hero-usp-icon {
  flex-shrink: 0;
  display: block;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.1rem;
  color: #f3f6f9;
}

.hero-usp-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-usp-copy {
  min-width: 0;
}

.hero-usp-title {
  margin: 0 0 0.3rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.hero-usp-desc {
  margin: 0;
  padding-left: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted-on-dark);
}

.btn-primary-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--min-touch);
  padding: 0.75rem 1.75rem;
  background: var(--blue-deep);
  color: #fff !important;
  text-decoration: none !important;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid var(--blue-deep);
}

.btn-primary-next:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.btn-ghost-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--min-touch);
  padding: 0.75rem 1.75rem;
  color: #fff !important;
  text-decoration: none !important;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid #fff;
  background: rgba(0, 0, 0, 0.2);
}

.btn-ghost-next:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Sections */
.section-next {
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
}

.section-why {
  background: var(--blue-soft);
}

.section-next-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
}

.section-head .lead {
  margin-bottom: 0.75rem;
}

.section-head p:not(.lead):not(.section-cta) {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
}

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

.section-head--center .lead,
.section-head--center p {
  margin-inline: auto;
}

/* Varför välja */
.why-split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 768px) {
  .why-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .why-split--reverse .why-split-media {
    order: 2;
  }

  .why-split--reverse .why-split-body {
    order: 1;
  }
}

.section-ka {
  background: #fff;
}

.section-process {
  background: var(--surface);
}

.why-split-body .lead {
  max-width: 36rem;
}

.why-split-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.why-split-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.why-split-body h2 {
  margin: 0 0 0.75rem;
}

.why-split-body p:not(.lead):not(.section-cta):not(.why-split-cta) {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  max-width: 36rem;
}

.why-split-cta {
  margin-top: 1.5rem;
}

/* Våra tjänster */
.section-services {
  background: var(--surface);
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
}

.section-head--services {
  margin-bottom: 1.15rem;
}

.services-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  margin: 0 0 1.15rem;
}

.services-filter {
  min-height: var(--min-touch);
  padding: 0.45rem 0.85rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.services-filter:hover {
  color: var(--blue-deep);
}

.services-filter[aria-selected="true"] {
  color: var(--blue-deep);
  border-bottom-color: var(--blue-deep);
}

.services-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.services-scroller::-webkit-scrollbar {
  display: none;
}

.services-scroller .service-tile-next {
  flex: 0 0 min(18.75rem, 80vw);
  scroll-snap-align: start;
}

.services-scroller .service-tile-next img {
  aspect-ratio: 5 / 4;
}

.services-scroller .service-tile-next[hidden] {
  display: none;
}

.services-slider {
  display: flex;
  justify-content: center;
  margin: 1.1rem 0 0;
}

.services-slider[hidden] {
  display: none;
}

.services-slider-track {
  position: relative;
  width: min(11.5rem, 46vw);
  height: 3px;
  background: rgba(26, 68, 112, 0.16);
  border-radius: var(--radius);
}

.services-slider-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  height: 12px;
  min-width: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--blue-deep);
  border-radius: var(--radius);
  cursor: grab;
  touch-action: none;
  transform: translateY(-50%);
}

.services-slider-thumb:active {
  cursor: grabbing;
}

.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.service-tile-next {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(58, 122, 182, 0.18);
  box-shadow: 0 4px 16px rgba(26, 68, 112, 0.06);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

@media (hover: hover) {
  .service-tile-next:hover {
    border-color: var(--blue);
    box-shadow: 0 12px 28px rgba(26, 68, 112, 0.12);
    transform: translateY(-2px);
  }
}

.service-tile-next:focus-visible {
  border-color: var(--blue-deep);
  outline: 3px solid var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.service-tile-next img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-tile-next-body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.service-tile-next strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--blue-deep);
}

.service-tile-next span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
}

.services-section-cta {
  margin: 1rem 0 0;
  text-align: left;
}

/* Så jobbar vi */
.process-split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.process-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.process-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 35%;
}

@media (min-width: 900px) {
  .process-split {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(1.75rem, 4vw, 3rem);
  }

  .process-media {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .process-content {
    flex: 1.05 1 0;
    min-width: 0;
  }

  .process-media img {
    flex: 1 1 auto;
    width: 100%;
    height: 0;
    min-height: 100%;
    aspect-ratio: unset;
    object-fit: cover;
    object-position: center 35%;
  }
}

.section-head--inset {
  margin-bottom: 1.5rem;
}

.process-grid {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-grid--stack {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(58, 122, 182, 0.15);
}

.process-step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.05rem;
  background: var(--blue-deep);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step-body {
  min-width: 0;
}

.process-step h3 {
  margin: 0 0 0.35rem;
}

.process-step p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Team */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 720px) {
  .people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.person-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.person-card img,
.person-card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 28%;
}

.person-card-photo--pending {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  background: #e8eaed;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  object-fit: unset;
}

.person-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.9rem 1rem 1rem;
}

.person-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.0625rem;
  line-height: 1.25;
  color: var(--ink);
}

.person-card .role {
  margin: 0;
  font-size: 0.875rem;
  color: var(--blue-deep);
  font-weight: 700;
}

.person-card-contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.15rem;
  margin-top: auto;
  padding-top: 0.7rem;
  min-height: 3.25rem;
}

@media (max-width: 719px) {
  .person-card-contact {
    min-height: 4.75rem;
  }
}

.person-card-contact a {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.person-card-contact a:hover,
.person-card-contact a:focus-visible {
  color: var(--blue-deep);
}

/* CTA efter Så jobbar vi - fullbredd bakgrund, samma innehållsbredd som övriga sektioner */
.section-cta-offer {
  box-sizing: border-box;
  width: 100%;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 3.5rem) 1.25rem;
}

.section-cta-offer .section-next-inner {
  width: min(var(--max), 100%);
  margin-inline: auto;
  box-sizing: border-box;
}

.cta-offer-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .cta-offer-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
  }
}

.cta-offer-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.cta-offer-copy h2 {
  margin: 0 0 0.75rem;
  color: #fff;
}

.cta-offer-copy .lead {
  color: #fff;
  font-weight: 500;
}

.cta-offer-copy p:not(.lead) {
  margin: 0;
  max-width: 36rem;
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  color: #e5e7eb;
}

.cta-offer-btn {
  flex-shrink: 0;
  align-self: flex-start;
  background: #fff !important;
  color: var(--blue-deep) !important;
  border-color: #fff !important;
}

@media (max-width: 767px) {
  .cta-offer-row {
    gap: 0.65rem;
  }

  .cta-offer-copy {
    flex: none;
  }

  .cta-offer-copy h2 {
    margin-bottom: 0.5rem;
  }

  .cta-offer-copy .lead {
    margin-bottom: 0.5rem;
  }

  .cta-offer-btn {
    align-self: stretch;
    width: 100%;
    text-align: center;
    margin-top: 0.15rem;
  }
}

@media (min-width: 768px) {
  .cta-offer-btn {
    align-self: center;
  }
}

.cta-offer-btn:hover {
  background: var(--surface) !important;
}

/* CTA sidfot */
.cta-next {
  margin: 0 1.25rem clamp(3rem, 6vw, 4rem);
  padding: clamp(2.5rem, 5vw, 3.5rem) 2rem;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%);
  border-radius: var(--radius);
  text-align: center;
  color: #fff;
}

.cta-next h2 {
  margin: 0 0 0.75rem;
  color: #fff;
}

.cta-next .lead,
.cta-next p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: #fff;
}

.cta-next .btn-primary-next {
  background: #fff;
  color: var(--blue-deep) !important;
  border-color: #fff;
}

.cta-next .btn-primary-next:hover {
  background: var(--surface);
}

/* Block editor (startsida) */
.vks-block-editor-preview {
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: #fff;
}

.vks-block-editor-hint {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Samarbetspartners */
.section-partners {
  background: #fff;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.section-partners .section-head {
  max-width: none;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

@media (min-width: 1024px) {
  .section-partners .section-head p {
    white-space: nowrap;
  }
}

.partners-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 3.5vw, 2rem);
}

@media (min-width: 1024px) {
  .partners-grid {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: clamp(1.25rem, 2.2vw, 2rem);
  }
}

.partners-grid li {
  flex: 0 1 auto;
  width: calc(50% - 0.75rem);
  max-width: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

@media (min-width: 640px) {
  .partners-grid li {
    width: calc(33.333% - 1.25rem);
  }
}

@media (min-width: 1024px) {
  .partners-grid li {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    padding-inline: 0.15rem;
  }
}

.partners-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--min-touch);
  padding: 0.35rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.partners-grid img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(44px, 7vw, 60px);
  margin-inline: auto;
  object-fit: contain;
  opacity: 0.88;
  filter: grayscale(0.2);
  transition:
    opacity 0.25s var(--ease),
    filter 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.partners-grid li:hover img,
.partners-grid a:focus-visible img {
  opacity: 1;
  filter: none;
  transform: scale(1.03);
}

.partners-grid a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

/* Footer */
.footer-next {
  background: var(--ink);
  color: #e5e7eb;
  padding: 3rem 1.25rem 2rem;
  font-size: 0.9375rem;
}

.footer-next-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-next-inner {
    grid-template-columns: 1.2fr 1.55fr 0.85fr 1.05fr;
  }
}

.site-logo--footer img {
  height: 56px;
  width: auto;
}

.footer-tagline {
  margin-top: 1rem;
  max-width: 22rem;
  color: #d1d5db;
}

.footer-hours {
  margin: 0.85rem 0 0;
  max-width: 22rem;
  color: #d1d5db;
}

.footer-services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
  align-items: start;
}

.footer-next h2 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.footer-next ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.footer-next li {
  margin: 0;
  line-height: 1.3;
}

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

.footer-next a:hover,
.footer-next a:focus-visible {
  text-decoration: none;
}

.footer-next-bottom {
  width: min(var(--max), 100%);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-next-bottom a {
  color: #d1d5db;
}

.demo-badge {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 90;
  font-size: 0.75rem;
  min-height: var(--min-touch);
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none !important;
  border: 2px solid #4b5563;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
