/* KnOW main page style 241021 */
/* These are additions to the KnOW page style for the KnOW main page */

h4 {
  font-size: 1.4rem;
}

.hero .button-container {
  width: auto;
  display: flex;
  justify-content: space-between;
}

.get-in-touch p:first-child {
  font-weight: 700;
  color: black;
  font-family: var(--bold-fonts);
}

.get-in-touch p:first-child {
  font-size: 1.75rem;
  line-height: 1.4;
}

.hero {
  flex-direction: column;
  justify-content: flex-start;
  color: black;
  background-color: white;
  background-image: url("/know/web/assets/hero-background.png");
  background-size: cover;
  /* move graphic beneath text */
  padding-bottom: 35vw;
  background-position: right
}

.hero h1, 
.get-in-touch p:first-child {
  margin-top: 1em;
  margin-left: var(--margin);
  margin-right: var(--margin);
  line-height: 1.4;
  text-align: center;
}

.hero p {
  max-width: 40ch;
  margin-left: var(--margin);
  margin-right: var(--margin);
}

.main-intro .sodablock,
.about .sodablock {
  margin-top: 1rem;
  padding: 0 var(--margin);
}

.main-intro h2,
.about h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
}

.section-intro h2 {
  padding: 1rem var(--margin);
  color: white;
  background-color: black;
}
.section-intro p {
  margin: 0 var(--margin) 1rem;
}

@media (min-width: 768px) {
  .navbar {
    height: 6.25rem;
  }

  .hero {
    aspect-ratio: 3989 / 2799;
    padding-bottom: revert;
    background-size: contain;
  }

  .hero p {
    margin-right: auto;
    margin-left: auto;
  }

  .main-intro, 
  .about {
    margin: 1.25rem 0;
  }

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

@media (min-width: 1024px) {
  .hero h1, 
  .get-in-touch p:first-child {
    max-width: calc(var(--page-width) * 0.5);
    margin-right: auto;
    margin-left: auto;
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.5rem;
    line-height: 1.5;
  }


  .main-intro,
  .about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--margin);
    margin: var(--margin) 0;
  }

  .main-intro .sodablock,
  .about .sodablock {
    display: flex;
    align-items: center;
    padding: 0;
  }

  .main-intro .sodablock .block-content,
  .about .sodablock .block-content,
  .features .sodablock .block-content,
  .users .sodablock .block-content {
    margin-left: calc(var(--margin) * 2);
  }

  .features .sodablock .block-content,
  .users .sodablock .block-content {
    margin-right: calc(var(--margin) * 2);
  }

  .main-intro .sodablock:nth-child(2) .block-content {
    margin-left: 0;
    margin-right: calc(var(--margin) * 2);
  }

  .main-intro .sodablock:nth-child(3) {
    grid-column: 2;
  }

  .main-intro .sodablock:nth-child(3) .block-content,
  .about .sodablock:nth-child(1) .block-content {
    margin-left: 0;
    margin-right: calc(var(--margin) * 2);
  }

  .main-intro .sodablock:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
  }

  .section-intro p,
    margin: var(--margin) calc(var(--margin) * 5);
  }

  .about .sodablock:nth-child(1) {
    grid-column: 2;
  }

  .about .sodablock:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
  }

  .get-in-touch p:first-child {
    font-size: 2rem;
    line-height: 1.4;
  }
}
