:root {
  --bg: #f4f5f4;
  --surface: #ffffff;
  --ink: #15202a;
  --muted: #66717b;
  --line: #d8dde0;
  --accent: #6f8da3;
  --accent-dark: #4f6c81;
  --deep: #1f2a33;
  --deep-2: #26333d;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(21, 32, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 245, 244, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 221, 224, 0.94);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand img {
  width: 240px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.94rem;
  color: #45515b;
}

.nav a {
  padding: 10px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font: inherit;
  color: var(--ink);
  padding: 10px;
}

.hero {
  padding: 78px 0 88px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 10%, rgba(111, 141, 163, 0.08), transparent 34%),
    linear-gradient(180deg, #f8f9f8 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.1fr) minmax(390px, 0.9fr);
  gap: 48px;
  align-items: start;
}

.hero-content {
  min-width: 0;
}

.hero-image {
  margin: 44px 0 0;
  min-height: 500px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
  background: #e7eaeb;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: center center;
}

@media (min-width: 901px) {
  .hero h1 {
    max-width: 10.8ch;
  }

  .hero-image {
    margin-top: 40px;
  }
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 800px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 5.8vw, 6.2rem);
  line-height: 0.98;
}

.hero-copy {
  max-width: 650px;
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  color: #4f5b65;
}

.hero-note {
  margin: 34px 0 0;
  padding-top: 26px;
  max-width: 610px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--deep);
  background: var(--deep);
  color: #fff;
  font-weight: 650;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--deep-2);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #bfc7cc;
}

.button.secondary:hover {
  border-color: var(--accent-dark);
  background: rgba(111, 141, 163, 0.06);
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.section.soft { background: #eef1f2; }

.section.dark {
  color: #fff;
  background: var(--deep);
  border-bottom: 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 90px;
}

.section h2 {
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 4.5vw, 4.8rem);
  line-height: 1.04;
}

.lead {
  max-width: 820px;
  font-size: clamp(1.15rem, 1.8vw, 1.42rem);
  color: #4d5963;
}

.dark .lead,
.dark p { color: rgba(255,255,255,0.78); }

.copy p {
  margin: 0 0 18px;
  color: #56616b;
}

.capability-list {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.capability-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 58px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.capability-row h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.capability-row p {
  margin: 0;
  color: var(--muted);
}

.steps {
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.step-number {
  color: var(--accent-dark);
  font-weight: 700;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.quote {
  max-width: 920px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.page-hero {
  padding: 86px 0 78px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.page-intro {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.18rem;
}

.contact-card {
  max-width: 760px;
  padding: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.contact-details {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.contact-details li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.site-footer {
  padding: 54px 0 40px;
  background: #e6eaec;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto 150px;
  gap: 44px;
  align-items: start;
}

.footer-company { align-self: start; }

.footer-meta {
  color: #66717a;
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 22px;
  white-space: nowrap;
  padding-top: 1px;
  font-size: 0.92rem;
}

.footer-group-mark {
  margin-top: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.footer-group-mark img {
  width: 132px;
  height: auto;
  opacity: 0.78;
}

.footer-note {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #cbd2d6;
  color: #7a858e;
  font-size: 0.84rem;
}

@media (max-width: 1080px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .footer-group-mark {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; }
  .menu-toggle { display: block; }

  .hero-grid,
  .section-grid,
  .capability-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    padding: 66px 0 72px;
  }

  .hero-image,
  .hero-image img {
    min-height: 360px;
  }

  .section {
    padding: 74px 0;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand img { width: 205px; }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.3rem);
  }

  .hero-image,
  .hero-image img {
    min-height: 260px;
  }

  .contact-card {
    padding: 28px;
  }
}


@media (max-width: 900px) {
  .hero-image {
    margin-top: 8px;
  }
}


/* Home: content-led layout for External Leadership */
@media (min-width: 901px) {
  .home-external-leadership .section-grid {
    grid-template-columns: minmax(600px, 1.2fr) minmax(0, 0.8fr);
    gap: 64px;
  }

  .home-external-leadership h2 {
    font-size: clamp(2.45rem, 4vw, 4.35rem);
  }

  .home-external-leadership .section-grid > .copy {
    padding-top: 18px;
  }
}


/* Home contact: keep “a conversation.” together */
.keep-together {
  white-space: nowrap;
}

@media (min-width: 901px) {
  .home-contact-section .section-grid {
    grid-template-columns: minmax(540px, 0.82fr) minmax(0, 1.18fr);
    gap: 72px;
  }

  .home-contact-section h2 {
    font-size: clamp(2.45rem, 4.2vw, 4.55rem);
  }
}


/* Outlined button on dark sections */
.button.dark-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.62);
}

.button.dark-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}


/* Final interaction and accessibility polish */
a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(111, 141, 163, 0.45);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav a,
.footer-nav a {
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent-dark);
}

.footer-group-mark a {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.footer-group-mark a:hover {
  opacity: 0.82;
}

.footer-note {
  display: flex;
  align-items: center;
  min-height: 24px;
}

/* Prevent accidental horizontal overflow on small screens */
html,
body {
  overflow-x: hidden;
}

@media (max-width: 620px) {
  .keep-together {
    white-space: normal;
  }

  .actions {
    gap: 12px;
  }

  .button {
    width: 100%;
  }
}


/* Home: content-led layout for Our Role */
@media (min-width: 901px) {
  .home-role-section .section-grid {
    grid-template-columns: minmax(600px, 1.08fr) minmax(0, 0.92fr);
    gap: 70px;
  }

  .home-role-section h2 {
    font-size: clamp(2.45rem, 4.15vw, 4.5rem);
  }

  .home-role-section .section-grid > .copy {
    padding-top: 66px;
  }
}


/* External Leadership: visually align the right column with the headline */
@media (min-width: 901px) {
  .external-when-section .section-grid > .copy {
    padding-top: 18px;
  }
}


/* Language switch */
.language-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-switch span {
  color: var(--ink);
}

.language-switch a {
  color: #8a949c;
  border-bottom: 0;
}

.language-switch a:hover {
  color: var(--ink);
  border-bottom: 0;
}

@media (max-width: 900px) {
  .language-switch {
    margin-left: 0;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    width: 100%;
  }
}


/* Editorial contact page */
.contact-editorial {
  min-height: 620px;
  padding: 112px 0 128px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.contact-editorial-grid {
  display: grid;
  grid-template-columns: minmax(560px, 0.92fr) minmax(0, 1.08fr);
  gap: 92px;
  align-items: start;
}

.contact-editorial h1 {
  margin-bottom: 0;
  font-size: clamp(3.2rem, 5.6vw, 5.9rem);
  line-height: 1.02;
}

.contact-editorial-copy {
  padding-top: 52px;
  max-width: 760px;
}

.contact-editorial-copy .lead {
  margin-top: 0;
}

@media (max-width: 900px) {
  .contact-editorial {
    min-height: auto;
    padding: 78px 0 88px;
  }

  .contact-editorial-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-editorial-copy {
    padding-top: 0;
  }
}


/* Swedish contact: content-led line breaks */
@media (min-width: 901px) {
  html[lang="sv"] .contact-editorial-grid {
    grid-template-columns: minmax(640px, 1.02fr) minmax(0, 0.98fr);
    gap: 76px;
  }

  html[lang="sv"] .contact-editorial h1 {
    font-size: clamp(3.2rem, 5.15vw, 5.5rem);
  }

  html[lang="sv"] .contact-editorial-copy {
    padding-top: 50px;
  }
}
