@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #09273d;
  --ink: #102d40;
  --body: #3c5667;
  --blue: #0c8dce;
  --link: #006394;
  --pale-blue: #b2e4ff;
  --wash: #eef7fc;
  --rule: #c8dce8;
  --gutter: clamp(1.25rem, 5.2vw, 4.75rem);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-size: 1.125rem;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2 {
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.037em;
}

h2 {
  max-width: 17ch;
  font-size: clamp(2.5rem, 4.2vw, 4.25rem);
  text-wrap: balance;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

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

.section-space {
  padding-block: clamp(4rem, 8.1vw, 7.625rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  color: var(--link);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  flex: 0 0 1.35rem;
  height: 2px;
  background: var(--blue);
  content: "";
}

.skip-link {
  position: fixed;
  z-index: 5;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.6rem 1rem;
  transform: translateY(-200%);
  color: var(--navy);
  background: #fff;
}

.skip-link:focus {
  transform: none;
}

.site-header,
.site-footer {
  color: #fff;
  background: var(--navy);
}

.site-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgb(224 243 255 / 18%);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 5.5rem;
  padding-block: 0.6rem;
}

.brand {
  flex: none;
}

.brand img {
  width: clamp(9.25rem, 14vw, 11.5rem);
}

.navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem clamp(1rem, 3vw, 2.75rem);
  font-weight: 600;
  font-size: 1rem;
}

.navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

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

.navigation .nav-contact {
  padding-inline: 1.2rem;
  border: 1px solid rgb(178 228 255 / 65%);
  border-radius: 0.2rem;
}

.navigation .nav-contact:hover {
  color: var(--navy);
  background: var(--pale-blue);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(31rem, 42vw, 40rem);
  padding-block: clamp(4rem, 7vw, 7rem);
}

.hero-media {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 39%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% center;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy), rgb(9 39 61 / 85%) 19%, rgb(9 39 61 / 31%) 46%, rgb(9 39 61 / 8%) 84%);
  content: "";
}

.hero-content {
  width: min(100%, 39rem);
}

.hero .eyebrow,
.services .eyebrow {
  color: var(--pale-blue);
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.55rem, 6.6vw, 6.125rem);
  line-height: 0.95;
  text-wrap: balance;
}

.hero-lead {
  max-width: 32ch;
  margin-top: 1.5rem;
  color: #e0edf5;
  font-size: clamp(1.1875rem, 1.75vw, 1.4375rem);
  line-height: 1.4;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  margin-top: 1.75rem;
  padding: 0.6rem 1.4rem;
  border-radius: 0.2rem;
  color: var(--navy);
  background: var(--pale-blue);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #fff;
}

.button:focus-visible {
  outline-color: #fff;
}

.about-inner,
.services-inner,
.contact-inner {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: center;
  gap: clamp(2.75rem, 7vw, 8.5rem);
}

.about-copy > p:not(.eyebrow),
.contact-copy > p:not(.eyebrow),
.services-copy > p:not(.eyebrow) {
  max-width: 43ch;
  margin-top: 1.15rem;
  color: var(--body);
}

.office-photos {
  display: grid;
  grid-template-columns: 2.15fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  aspect-ratio: 1.57;
  overflow: hidden;
  border-radius: 0.25rem;
  background: var(--wash);
}

.office-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-main {
  grid-row: span 2;
  object-position: 45% center;
}

.office figcaption {
  margin-top: 0.65rem;
  color: var(--body);
  font-size: 0.9375rem;
}

.services {
  color: #fff;
  background: linear-gradient(105deg, rgb(6 46 76 / 96%), rgb(7 66 102 / 92%)), url("images/tjanster.webp") center / cover #0a4265;
}

.services-inner {
  align-items: start;
}

.services-copy {
  position: sticky;
  top: 2rem;
}

.services-copy > p:not(.eyebrow) {
  color: #e3eff6;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.15rem, 2.6vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  min-height: 3.65rem;
  padding-block: 0.9rem;
  border-top: 1px solid rgb(208 232 249 / 36%);
  font-weight: 600;
  line-height: 1.35;
}

.service-list li::before {
  flex: 0 0 0.8rem;
  height: 2px;
  transform: translateY(-0.26em);
  background: var(--pale-blue);
  content: "";
}

.service-list li:nth-last-child(-n + 2) {
  border-bottom: 1px solid rgb(208 232 249 / 36%);
}

.contact {
  background: var(--wash);
}

.contact-inner {
  align-items: start;
}

.contact-details {
  font-style: normal;
}

.contact-details dl {
  border-top: 1px solid var(--rule);
}

.contact-details dl > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.43fr) 1fr;
  gap: 0.15rem 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}

.contact-details dt {
  color: var(--body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
}

.contact-details dd {
  overflow-wrap: anywhere;
  font-size: clamp(1.125rem, 2.25vw, 1.625rem);
  font-weight: 650;
  line-height: 1.25;
}

.contact-details a {
  color: var(--link);
  text-decoration: none;
  transition: color 180ms ease;
}

.contact-details a:hover {
  color: var(--ink);
}

.footer-inner {
  min-height: 6.25rem;
}

.footer-inner .brand img {
  width: 9rem;
}

.footer-inner small {
  color: #d4e3ed;
  font-size: 0.875rem;
}

@media (max-width: 58rem) {
  .about-inner,
  .services-inner,
  .contact-inner {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(1.75rem, 4.8vw, 4rem);
  }

  .contact-details dl > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 45rem) {
  .hero-inner {
    min-height: auto;
    padding-block: 3.25rem 10rem;
  }

  .hero-media {
    inset: 35% 0 0;
  }

  .hero-media img {
    object-position: center 46%;
  }

  .hero-media::after {
    background: linear-gradient(180deg, var(--navy), rgb(9 39 61 / 94%) 30%, rgb(9 39 61 / 68%) 48%, rgb(9 39 61 / 12%) 82%);
  }

  .hero h1 {
    font-size: clamp(2.75rem, 10.1vw, 4.2rem);
  }

  .about-inner,
  .services-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .services-copy {
    position: static;
  }

  .contact-details dl > div {
    grid-template-columns: minmax(6.25rem, 0.45fr) 1fr;
  }
}

@media (max-width: 33rem) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.05rem 1rem;
    padding-top: 0.75rem;
  }

  .navigation {
    width: 100%;
    justify-content: space-between;
    font-size: 0.9375rem;
  }

  .navigation .nav-contact {
    padding-inline: 0.8rem;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-list li:nth-last-child(2) {
    border-bottom: 0;
  }

  .contact-details dl > div {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding-block: 1.2rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content {
    animation: hero-entry 550ms ease-out both;
  }

  @keyframes hero-entry {
    from {
      opacity: 0;
      transform: translateY(0.7rem);
    }

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

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

  .navigation a,
  .button,
  .contact-details a {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
