/* Pilea – static rebuild of pilea.no */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}

:root {
  --navy: #1c204d;
  --cream: #fbe7c4;
  --mint: #f1f7f5;
  --green: #2ab189;
  --grey: #56585f;
  --light-grey: #e2e2e2;
  --off-white: #f9f9f9;
  --black: #000;
  --white: #fff;
  --font: "Poppins", Arial, Helvetica, sans-serif;
  --container: 1170px;
  --gutter: 30px;
  --tracking: 0.285px;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy);
  border-radius: 4px;
}

.skip-link:focus {
  top: 16px;
}

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

main {
  overflow-x: clip;
}

/* Header */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 96px;
}

.header-logo {
  margin-top: 25px;
}

.header-logo img {
  width: 100px;
}

.main-nav {
  margin-top: 16px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 45px;
  height: 64px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  position: relative;
  display: block;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0.24px;
  color: var(--white);
  transition: color 0.2s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--cream);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--cream);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

/* Hero */

.hero {
  background-color: var(--navy);
  background-image: linear-gradient(152deg, var(--navy) 0%, rgba(28, 33, 79, 0.15) 70%);
  padding: calc(9vw + 132px) 0 198px;
  margin-bottom: 141px;
  color: var(--cream);
  text-align: center;
}

.hero-logo img {
  width: 260px;
  margin: 0 auto;
}

.hero-tagline {
  margin-top: min(23px, 2vw);
  font-size: 25px;
  line-height: 38px;
  letter-spacing: var(--tracking);
}

/* 404 */

.hero.not-found {
  display: flex;
  align-items: center;
  min-height: 100vh;
  margin-bottom: 0;
  padding: 60px 0;
}

.not-found-logo {
  width: 160px;
  margin: 0 auto 32px;
}

.not-found .hero-tagline {
  font-weight: 400;
}

.not-found-link {
  margin-top: 24px;
  font-size: 16px;
}

.not-found-link a {
  color: var(--white);
  border-bottom: 1px solid var(--cream);
}

/* Shared type */

.section-title {
  font-size: 35px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}

.section-intro {
  text-align: center;
}

.section-intro .section-title {
  margin-bottom: 26px;
}

.section-lead {
  max-width: 764px;
  margin: 0 auto;
  font-size: 25px;
  line-height: 45px;
  letter-spacing: var(--tracking);
}

.rounded-image {
  width: 100%;
  border-radius: 20px;
}

/* Om oss */

.about {
  padding: 20px 0 170px;
}

.about-grid {
  display: grid;
  grid-template-columns: 49.4% 1fr;
  column-gap: 5.7%;
  align-items: start;
}

.about-text {
  max-width: 485px;
  padding-top: 120px;
}

.eyebrow {
  margin-bottom: 25px;
  font-size: 20px;
  font-weight: 500;
  line-height: 27px;
  color: var(--navy);
  text-transform: capitalize;
}

.lead {
  font-size: 25px;
  line-height: 52px;
  letter-spacing: var(--tracking);
  color: var(--navy);
}

/* Investeringer */

.investments {
  background: var(--off-white);
  padding: 121px 0 136px;
  margin-bottom: 36px;
}

.investments .section-intro {
  margin-bottom: 61px;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
  max-width: 1151px;
  margin: 0 auto;
}

.strategy-card {
  padding: 80px 35px 55px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 26px 2px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.strategy-icon {
  width: 60px;
  margin: 0 auto 40px;
}

.strategy-icon--lg {
  width: 67px;
}

.strategy-card h3 {
  margin-bottom: 22px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}

.strategy-card p {
  margin-bottom: 50px;
  font-size: 15px;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: var(--tracking);
}

.logos {
  display: grid;
  row-gap: 5px;
  margin: 0 -10px;
  padding-bottom: 25px;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  min-height: 44px;
}

.logos--services {
  max-width: 396px;
  margin: 0 auto;
}

.logos--services .logo-row {
  justify-content: space-around;
}

.logo-row > * {
  flex: 0 1 auto;
  min-width: 0;
}

.logo-row a {
  display: block;
  transition: opacity 0.2s ease;
}

.logo-row a:hover {
  opacity: 0.7;
}

/* Hvorfor Pilea */

.why {
  padding: 108px 0 120px;
  margin-bottom: 18px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 49.4%;
  column-gap: 5.7%;
  align-items: center;
}

.why-text {
  max-width: 522px;
  padding: 14px 0 0 37px;
}

.why-text .section-title {
  margin-bottom: 35px;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 36px;
  font-size: 15px;
  font-weight: 500;
  line-height: 25.5px;
  letter-spacing: var(--tracking);
}

.checklist li + li {
  margin-top: 15.25px;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 9px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid var(--black);
}

/* Sitat */

.quote {
  background: var(--mint);
  padding: 103px 0 111px;
  margin-bottom: 50px;
  text-align: center;
}

.quote-mark {
  width: 110px;
  margin: 0 auto 35px;
}

.quote blockquote {
  max-width: 927px;
  margin: 0 auto;
}

.quote p {
  margin-bottom: 20px;
  font-size: 25px;
  line-height: 52px;
  letter-spacing: var(--tracking);
  color: var(--navy);
}

.quote strong {
  font-weight: 500;
}

/* Kontakt */

.contact {
  padding: 104px 0 92px;
  margin-bottom: 36px;
}

.contact .section-intro .section-title {
  margin-bottom: 25px;
}

.contact .section-intro {
  margin-bottom: 64px;
}

.people {
  display: flex;
  justify-content: center;
  gap: 53px;
}

.person {
  width: 332px;
  padding: 25px 14px 27px 25px;
  background: var(--mint);
  border-radius: 20px 10px 10px 10px;
}

.person-photo {
  width: 100px;
  margin-bottom: 29px;
}

.person-name {
  font-size: 18px;
  line-height: 27px;
  letter-spacing: var(--tracking);
}

.person-role {
  font-size: 15px;
  line-height: 27px;
  letter-spacing: var(--tracking);
  color: var(--green);
}

.person-contact {
  margin-top: 18px;
  font-size: 15px;
  line-height: 26px;
  letter-spacing: var(--tracking);
  color: var(--grey);
}

.person-contact a:hover {
  color: var(--navy);
}

.person-linkedin {
  display: block;
  width: fit-content;
  margin-top: 25px;
  transition: opacity 0.2s ease;
}

.person-linkedin:hover {
  opacity: 0.7;
}

.person-linkedin img {
  width: 25px;
}

/* Footer */

.site-footer {
  padding: 42px 0 45px;
  border-top: 1px solid var(--light-grey);
}

.site-footer img {
  width: 120px;
}

/* Til toppen */

.to-top {
  position: fixed;
  right: 75px;
  bottom: 0;
  z-index: 30;
  width: 48px;
  height: 35px;
  background: #333;
  border-radius: 4px 4px 0 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}

.to-top::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--white);
  border-left: 2px solid var(--white);
  transform: translateX(-50%) rotate(45deg);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  background: var(--navy);
}

/* Inn-animasjoner (kun med JS og når brukeren ikke har bedt om redusert bevegelse) */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.2s ease;
  }

  .js [data-reveal="up"] {
    transform: translateY(40px);
  }

  .js [data-reveal="left"] {
    transform: translateX(-60px);
  }

  .js [data-reveal="right"] {
    transform: translateX(60px);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Nettbrett */

@media (max-width: 1024px) {
  .hero {
    margin-bottom: 101px;
  }

  .about-text {
    padding-top: 60px;
  }

  .why-text {
    padding-left: 0;
  }

  .strategy-card {
    padding: 60px 25px 45px;
  }
}

/* Mobil */

@media (max-width: 800px) {
  .main-nav {
    margin-top: 20px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--white);
    cursor: pointer;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, background-color 0.25s ease;
  }

  .nav-toggle-bars {
    position: relative;
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

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

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

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

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

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

  .nav-menu {
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    background: var(--white);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li + li {
    border-top: 1px solid var(--light-grey);
  }

  .nav-menu a {
    padding: 14px var(--gutter);
    color: var(--navy);
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu a:hover,
  .nav-menu a:focus-visible {
    color: var(--navy);
    background: var(--mint);
  }

  .hero {
    padding: 227px 0 187px;
    margin-bottom: 81px;
  }

  .hero-inner {
    padding: 0 40px;
  }

  .section-title {
    font-size: 31px;
  }

  .about {
    padding-bottom: 92px;
  }

  .about-grid,
  .why-grid,
  .strategy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-text {
    order: -1;
    max-width: none;
    padding-top: 0;
    margin-bottom: 47px;
  }

  .investments {
    padding: 110px 0 43px;
    margin-bottom: 0;
  }

  .strategy-grid {
    gap: 30px;
  }

  .logos {
    row-gap: 16px;
    margin: 0;
  }

  .logo-row,
  .logos--services .logo-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
  }

  .logo-row > * {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .why {
    padding: 55px 0 60px;
    margin-bottom: 60px;
  }

  .why-text {
    max-width: none;
    margin-bottom: 60px;
  }

  .quote {
    padding: 80px 0 68px;
    margin-bottom: 60px;
  }

  .quote p {
    font-size: 24px;
  }

  .contact {
    padding: 78px 0 33px;
  }

  .people {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .person {
    width: 100%;
    max-width: 332px;
  }

  .to-top {
    right: 20px;
  }
}
