/* Shared Styles Used Across Multiple Sections */

/* Columns (used in About and Services sections) */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100vw;
  /* height: calc((100vh - var(--header-height)) / 2); */
  height: 40vh;
  margin-top: auto;
  position: absolute;
  bottom: 0;
  left: 0;
}

.column {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: justify;
  padding: 2rem;
  overflow: hidden;
  cursor: default;
  position: relative;
}

.column__left {
  text-align: left;
  align-items: center;
  justify-content: flex-start;
  background: var(--brand);
  padding-left: var(--header-height);
  color: var(--bg);
}

.column__right {
  text-align: right;
  align-items: center;
  justify-content: flex-end;
  background: var(--secondary);
  padding-right: var(--header-height);
  color: var(--bg);
}

.column__left p,
.column__right p {
  display: none;
}

.subhead {
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-bold);
  color: var(--bg);
  margin: 0;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  white-space: pre-line;
}

.column ul {
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-s);
  line-height: 1.65;
  max-width: 40ch;
  margin: 0 auto;
  transition: opacity 0.3s ease-in-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  display: none;
  color: var(--muted);
  list-style: none;
  padding: 0;
}

.column ul li {
  margin-bottom: 0.5rem;
}

/* Content container (used across multiple sections) */
.content {
  max-width: 940px;
  margin: 0 auto;
  color: var(--muted);
}

/* Section titles (used across all sections) */
.section__title {
  font-size: var(--font-size-l);
  font-weight: var(--font-weight-bold);
  color: var(--text);
  margin: 0.25rem 0 0.25rem;
}

/* Link accent (used in multiple sections) */
.link__accent {
  color: var(--text);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
}
.link__accent__light {
  color: var(--bg);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
}

/* Desktop hover effects */
@media (min-width: 768px) {
  .column__left:hover p,
  .column__right:hover p {
    display: block;
  }

  .column__left:hover,
  .column__right:hover {
    background: var(--bg);
    color: var(--muted);
  }

  .column:hover .subhead {
    display: none;
  }

  .column:hover ul {
    display: block;
  }

  .link__accent:hover,
  .link__accent__light:hover {
    color: var(--primary);
    text-decoration: none;
  }
}

/* Mobile styles */
@media (max-width: 767px) {
  .section__title {
    margin: 0.2rem 0 0.1rem;
  }

  .section__clients .section__title,
  .section__services .section__title {
    margin-bottom: 0.1rem;
  }

  /*On mobile columns are below one another*/
  .columns {
    height: auto;
    display: flex;
    flex-direction: column;
    width: 100vw;
    position: relative;
  }

  .column,
  .column__left,
  .column__right {
    text-align: left;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: auto;
    min-height: 30vh;
    padding: calc(0.5 * var(--header-height));
  }

  .content {
    padding: 0 2rem;
    font-size: var(--font-size-xs);
  }
}
