/* Welcome */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header .container {
  margin: 2.5rem;
}

header .container h1 {
  position: relative;
  font-size: 4.83rem;
}

header .container h1::before {
  content: "arrow_outward";
  font-family: "Material Symbols Sharp";
  font-weight: 100;
  font-style: normal;
  line-height: 1;
  position: absolute;
  bottom: 0;
  right: 0;
  rotate: 90deg;
  font-variation-settings:
    "FILL" 0,
    "wght" 100,
    "GRAD" 0,
    "opsz" 24;
}

header .welcome-banner {
  width: 100%;
}

header .welcome-banner img {
  height: 26rem;
  width: 100%;
  object-fit: cover;
}

/* About */
section#about {
  background-color: var(--block-bg);
  color: var(--block-text);
}

section#about .container {
  padding: 5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

section#about h2 {
  font-size: 2.667rem;
}

section#about .content-container {
  display: flex;
  flex-direction: row;
  justify-content: end;
}

section#about .text-container {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 4rem;
}

section#about .text {
  column-count: 2;
  column-gap: 4rem;
  text-align: left;
  line-height: 1.6;
}

section#about .text p {
  margin-bottom: 0;
}

section#about p {
  font-size: 1rem;
}

section#about .btn-container {
  display: flex;
  flex-direction: row;
  justify-content: end;
}

/* Services */
section#services {
  position: relative;
  color: var(--text-secondary);
}

section#services .container {
  position: relative;
  padding: 5rem 2.5rem;
  display: flex;
  flex-direction: row;
  gap: 4rem;
}

section#services .preview-container .frame video {
  width: 100%;
}

section#services .service-box {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 4rem 0;
  border-bottom: 0.3px solid var(--text);
}

section#services .service-box:first-child {
  padding: 0 0 4rem;
}

section#services .service-box:last-child {
  padding: 4rem 0 0;
  border-bottom: 0;
}

section#services .service-box .service-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

section#services .service-box .service-header h3 {
  font-size: 2.5rem;
  align-self: flex-start;
  width: auto;
  background: var(--bg-secondary);
  padding: 0.8rem 1.7rem;
  margin-bottom: 0;
}

section#services .service-box .service-header h3::before {
  content: "/";
  margin-right: 1.8rem;
}

section#services .service-box .service-header ul.service-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

section#services .service-box .service-header ul.service-tags li {
  font-size: 0.9rem;
  white-space: nowrap;
  background: var(--bg-secondary);
  padding: 0.3rem;
}

section#services .service-box .service-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

section#services .service-box .service-content .service-briefing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
}

section#services .service-box .service-content .service-briefing p {
  font-size: 1rem;
  font-family: "Lato Medium", sans-serif;
  font-weight: 500;
  margin-bottom: 0;
}

section#services .service-box .service-content .service-cases ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

section#services .service-box .service-content .service-cases ul li {
  font-size: 0.7rem;
  align-self: flex-end;
  width: auto;
  white-space: nowrap;
  background: var(--bg-secondary);
  padding: 0.3rem;
}

/* News */
section#news {
  background-color: var(--block-bg);
  color: var(--block-text);
}

section#news .container {
  padding: 5rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

section#news h2 {
  font-size: 2.667rem;
}

/* Tablet and desktop */
@media screen and (min-width: 768px) {
  section#about .text-container {
    width: 57.5%;
  }

  section#services .preview-container {
    position: relative;
    width: calc(34% - 2rem);
  }

  section#services .preview-container .frame {
    position: sticky;
    top: 2rem;
    width: 50rem;
    max-width: 90%;
    background: var(--block-bg);
    padding: 3rem;
  }

  section#services .content-container {
    width: calc(66% - 2rem);
  }

  section#services .service-box .service-header ul.service-tags {
    width: 25rem;
  }

  section#services .service-box .service-content .service-briefing {
    width: 33rem;
  }
}

/* Mobile layout */
@media screen and (max-width: 600px) {
  header .container h1 {
    font-size: 2.82rem;
  }

  header .welcome-banner img {
    height: 49rem;
  }

  section#about h2 {
    font-size: 1.557rem;
  }

  section#about .container {
    gap: 2rem;
  }

  section#about .text {
    column-count: 1;
  }

  section#about .text p {
    margin-bottom: 1rem;
  }

  section#about .text p:last-child {
    margin-bottom: 0rem;
  }

  section#about .btn-container {
    justify-content: center;
  }

  section#services .container {
    flex-direction: column;
    gap: 4rem;
  }

  section#services .service-box .service-header h3 {
    font-size: 2rem;
  }

  section#services .service-box .service-content {
    flex-direction: column;
    gap: 1rem;
  }

  section#services .service-box .service-content .service-cases ul {
    flex-direction: row;
  }
}
