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

:root {
  --blue: #0E7490;
  --blue-dark: #071E2A;
  --blue-light: #EAF5F8;
  --accent: #FF5C1A;
  --accent-light: #FFF3EE;
  --dark: #0B1220;
  --text: #1E293B;
  --muted: #64748B;
  --border: #E2E8F0;
  --bg: #F8FAFC;
  --white: #ffffff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --hero-overlay:
    linear-gradient(180deg, rgba(11, 18, 32, 0.56) 0%, rgba(11, 18, 32, 0.16) 34%, rgba(11, 18, 32, 0.14) 66%, rgba(11, 18, 32, 0.62) 100%),
    linear-gradient(106deg, rgba(209, 103, 186, 0.24) 0%, rgba(174, 105, 212, 0.16) 35%, rgba(80, 141, 235, 0.16) 72%, rgba(44, 117, 233, 0.24) 100%);
}

/* Optional neutral variant: add class `hero-overlay-neutral-soft` on <body> */
body.hero-overlay-neutral-soft {
  --hero-overlay:
    linear-gradient(112deg, rgba(11, 18, 32, 0.62) 14%, rgba(11, 18, 32, 0.36) 52%, rgba(11, 18, 32, 0.12) 76%, rgba(11, 18, 32, 0.05) 100%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.24) 0%, rgba(11, 18, 32, 0) 28%, rgba(11, 18, 32, 0) 68%, rgba(11, 18, 32, 0.3) 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 64px;
}

section {
  padding: 88px 0;
}

/* ── Shared typography ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.eyebrow.text-center {
  display: flex;
  justify-content: center;
}

.section-title {
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 16px;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 56px;
  line-height: 1.65;
}

.body-lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ── Mirror character (spegelvänt e i rubriken) ── */
.mirror-char {
  display: inline-block;
  transform: translateX(8%) scaleX(-1);
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.65s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, transform 0.4s ease;
}

.navbar--scrolled {
  background: rgba(7, 30, 42, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar--hidden {
  transform: translateY(-100%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 32px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumb span {
  color: var(--border);
}

.breadcrumb strong {
  color: var(--text);
  font-weight: 500;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.35s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}


.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}


.nav-cta:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.52);
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  margin-top: -60px;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -5%;
  background: url('images/hero.webp') center / cover no-repeat;
  animation: hero-zoom 14s ease-out forwards;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 48px;
  padding-bottom: 48px;
}

/* hero-bg-shape intentionally empty — no decorative gradients */
.hero-bg-shape {
  display: none;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.16);
  }

  to {
    transform: scale(1);
  }
}

@keyframes reveal-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes reveal-fade-left {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes reveal-fade-right {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes reveal-soft-zoom {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.965);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-arrow-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(36px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--white);
  text-shadow: 0 8px 28px rgba(11, 18, 32, 0.38);
}

.hero-line {
  display: block;
  animation: hero-fade-up 1.9s 0.1s ease-out both;
}

.hero-line--2 {
  animation: hero-fade-up 1.9s 1.45s ease-out both;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: hero-fade-up 0.8s 1.5s ease-out both;
  transition: color 0.2s;
}

.hero-scroll:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
  animation: hero-arrow-bounce 1.6s 1.6s ease-in-out infinite;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  will-change: transform, opacity;
}

.reveal-on-scroll.is-visible {
  animation: reveal-fade-up 0.75s cubic-bezier(0.2, 0.65, 0.2, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.reveal-left {
  transform: translateX(28px);
}

.reveal-on-scroll.reveal-right {
  transform: translateX(-28px);
}

.reveal-on-scroll.reveal-zoom {
  transform: translateY(16px) scale(0.965);
}

.reveal-on-scroll.reveal-left.is-visible {
  animation-name: reveal-fade-left;
}

.reveal-on-scroll.reveal-right.is-visible {
  animation-name: reveal-fade-right;
}

.reveal-on-scroll.reveal-zoom.is-visible {
  animation-name: reveal-soft-zoom;
  animation-duration: 0.8s;
}

@media (prefers-reduced-motion: reduce) {

  .hero::before,
  .hero-line,
  .hero-scroll,
  .hero-scroll svg,
  .reveal-on-scroll,
  .reveal-on-scroll.is-visible {
    animation: none;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  background: var(--accent);
  color: var(--white);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn-primary:hover {
  opacity: 0.88;
}

/* keep old class name for contact form */
.btn-dark {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  background: var(--accent);
  color: var(--white);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn-dark:hover {
  opacity: 0.88;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

/* ── Vårt uppdrag ── */
.uppdrag {
  background: var(--white);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: stretch;
}

.two-col-text h2 {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 24px;
  color: var(--dark);
}

.two-col-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Interaktiv karta ── */
.karta-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.karta-info {
  text-align: center;
  min-height: 2rem;
}

.karta-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.karta-name.visible {
  opacity: 1;
  transform: translateY(0);
}

#karta {
  width: 100%;
  max-height: 440px;
  height: auto;
  display: block;
}

#karta path {
  fill: var(--blue-light);
  stroke: var(--blue);
  stroke-width: 1;
  stroke-miterlimit: 10;
  cursor: pointer;
  transition: fill 1.2s ease-in-out;
}

#karta path:hover,
#karta path.karta-idle {
  fill: var(--accent);
}

.karta-tooltip {
  position: fixed;
  background: var(--dark);
  border: 1.5px solid var(--accent);
  color: var(--white);
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  z-index: 200;
}

.karta-tooltip.visible {
  opacity: 1;
}

.uppdrag-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.uppdrag-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
}

.check-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-icon svg {
  width: 10px;
  height: 10px;
  stroke: var(--white);
  stroke-width: 2.5;
  fill: none;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.15s;
}

.link-more:hover {
  gap: 10px;
}

/* Visual card stack */
.visual-card-stack {
  position: relative;
  height: 300px;
}

.vc {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  min-width: 180px;
}

.vc p {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.vc-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vc-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}

.vc-1 {
  top: 20px;
  left: 0;
}

.vc-2 {
  top: 120px;
  right: 0;
}

.vc-3 {
  bottom: 20px;
  left: 40px;
}

/* ── Vi arbetar med ── */
.arbetar {
  background: var(--bg);
}

.arbetar .section-title {
  margin-bottom: 8px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}

.card {
  background: var(--white);
  padding: 36px 28px;
  transition: background 0.15s;
}

.card:hover {
  background: var(--bg);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}

.card-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Parallax ── */
.parallax-banner {
  height: 480px;
  background-image:
    linear-gradient(rgba(11, 18, 32, 0.35), rgba(11, 18, 32, 0.35)),
    url('images/SmartMove-inter.jpg');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (hover: none) {
  .parallax-banner {
    background-attachment: scroll;
  }
}

/* ── Initiativ ── */
.initiativ {
  background: var(--white);
}

.initiativ-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}

.initiativ-card {
  background: var(--white);
  padding: 40px 36px;
  transition: background 0.15s;
}

.initiativ-card:hover {
  background: var(--bg);
}

.initiativ-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.initiativ-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--dark);
}

.initiativ-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.initiativ-card p:last-child {
  margin-bottom: 0;
}

.initiativ-quote {
  font-size: 14px !important;
  font-style: italic;
  color: var(--dark) !important;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  margin-top: 20px !important;
}

/* ── Partners ── */
.partners {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 64px 0;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  margin-top: 40px;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.partner-item:hover {
  opacity: 1;
}

.partner-item img {
  height: 180px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
}

/* ── Kontakta oss ── */
.kontakt {
  background: var(--dark);
  color: var(--white);
}

.kontakt .section-title {
  color: var(--white);
}

/* ── Kontaktkort ── */
.team-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 32px auto 48px;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 24px;
}

.team-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-avatar span {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
  user-select: none;
}

.team-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.team-info strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.team-info>span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.team-info a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-all;
  transition: color 0.15s;
}

.team-info a:hover {
  color: var(--white);
}

.kontakt-inner {
  max-width: 540px;
  margin: 0 auto;
}

.kontakt p.lead {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 17px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  min-height: 44px;
  appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-field select option {
  background: var(--dark);
  color: var(--white);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.1);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 8px;
  width: 100%;
}

.btn-accent:hover {
  opacity: 0.88;
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
}

.form-success h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.form-success p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
}

/* ── Footer ── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.footer-brand>span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.footer-meta span {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.footer-affiliation-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-affiliation-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}


.footer-powered-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-powered-name {
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.25);
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .two-col {
    gap: 64px;
  }

  .two-col-image {
    max-height: 440px;
    object-fit: contain;
    align-self: end;
  }
}


@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .two-col-image {
    display: none;
  }

  .karta-widget {
    display: none;
  }

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

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  section {
    padding: 64px 0;
  }

  .nav-cta {
    display: none;
  }

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

  .form-field.full {
    grid-column: 1;
  }

  .team-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }
}

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