/* ---------- Om os ---------- */

.omos-intro {
  padding: 110px 0 0;
  background-color: var(--color-bg);
}

.omos-intro-title,
.omos-intro2-title,
.værdi-block__title {
  margin: 0 0 16px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  font-weight: 400;
  line-height: 0.95;
}

.omos-intro2-title {
  margin-top: 72px;
}

.omos-intro-text p,
.text-block p,
.værdi-block p {
  margin: 0 0 20px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
}

.omos-intro-text p:last-child,
.text-block p:last-child,
.værdi-block p:last-child {
  margin-bottom: 0;
}

.text-block {
  margin-bottom: 0;
}

/* ---------- Om os grid ---------- */

.omos-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: clamp(56px, 7vw, 100px);
  align-items: start;
}

.omos-intro-text {
  max-width: 780px;
}

/* ---------- Om os images ---------- */

.omos-intro-images {
  width: min(100%, 560px);
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.omos-intro-images img {
  width: 100%;
  height: 210px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.omos-intro-images img:nth-child(1) {
  object-position: center 35%;
}

.omos-intro-images img:nth-child(2) {
  object-position: center 45%;
}

.omos-intro-images img:nth-child(3) {
  object-position: center 25%;
}

/* ---------- Banner ---------- */

.omos-banner {
  min-height: 170px;
  margin-top: 170px;
  margin-bottom: 140px;
  padding: 52px 0;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.omos-banner .site-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.omos-banner__title {
  max-width: 720px;
  margin: 0;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
}

.omos-banner__title br {
  display: block;
}

/* ---------- Værdier section ---------- */

.omos-værdi-section {
  padding: 0 0 110px;
  background-color: var(--color-bg);
}

.værdi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 120px);
  margin-bottom: 60px;
}

.værdi-block {
  color: #ffffff;
}

/* ---------- Button ---------- */

.button_omos {
  display: flex;
  justify-content: center;
}

.omos-værdi__button {
  min-height: var(--btn-height);
  padding: 0 var(--btn-padding-x);
  border: 0;
  border-radius: 999px;
  background-color: var(--color-cta);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.omos-værdi__button:hover {
  transform: translateY(-2px);
  background-color: #9A470A;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .omos-intro-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .omos-intro-text {
    max-width: none;
  }

  .omos-intro-images {
    width: 100%;
    justify-self: auto;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .omos-intro-images img {
    min-width: 80%;
    height: auto;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
  }

  .værdi-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .omos-intro {
    padding: 72px 0 0;
  }

  .omos-intro-grid {
    gap: 40px;
  }

  .omos-intro-title,
  .omos-intro2-title,
  .værdi-block__title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .omos-intro2-title {
    margin-top: 56px;
  }

  .omos-intro-text p,
  .text-block p,
  .værdi-block p {
    font-size: 1rem;
  }

  .omos-banner {
    min-height: 160px;
    margin-top: 88px;
    margin-bottom: 72px;
    padding: 42px 0;
  }

  .omos-banner__title {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  .omos-banner__title br {
    display: none;
  }

  .omos-værdi-section {
    padding: 0 0 72px;
  }
}