* {
  box-sizing: border-box;
  border: 0px dashed red;
}

body {
  width: auto;
  height: auto;
  margin: 0;
  overflow-x: hidden;
  background-size: 100vw;
  background-attachment: fixed;
  font-family: bodyFont;
  font-stretch: condensed;
}

.background {
  width: 100%;
  height: 100%;
  position: fixed;
  background-attachment: fixed;
  background-size: cover;
  pointer-events: none;
  transition: opacity 3s;
}

.container {
  container-type: inline-size;
  width: 100vw;
  height: fit-content;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: clamp(22px, 2cqw, 32px);
  backdrop-filter: contrast(100%);
}

.section {
  container-type: inline-size;
  width: 90%;
  height: auto;
  min-height: 100vh;
  margin-left: auto;
  margin-right: auto;
  padding-top: 120px;
  padding-bottom: 2%;
  padding-left: 2%;
  padding-right: 2%;
  display: grid;
  grid-auto-rows: max-content;
  place-items: center;
  text-align: center;

  &.home {
    padding-top: 1.5vh;
  }

  @media screen and (max-width: 950px) {
    width: 96%;
  }

}

.row {
  display: grid;
  grid-auto-flow: row;
  gap: 2%;
  text-align: center;
  width: 90cqw;

  &.services {
    height: clamp(240px, 20vw, 320px);
    min-width: 340px;
    margin-bottom: 2vh;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;

    @media screen and (max-width: 700px) {
      width: 80cqw;
      height: clamp(420px, 40vh, 460px);
      grid-auto-flow: row;
    }

  }

  &.rowText {
    width: 80cqw;
    min-width: 340px;
  }

  &.picText {
    width: 100cqw;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 4vh;

    @media screen and (max-width: 800px) {
      flex-direction: column;
      align-items: center;
    }
  }
}

.rowText {
  border-radius: 10px;
  background-color: var(--color-A);
  margin-bottom: 5vh;
  filter: drop-shadow(rgb(0, 0, 0) 0px 5px 10px);
  text-shadow: 0 0px 50px white;
}

p {
  margin-bottom: 6vh;
  margin-top: 0;
  margin-left: 20px;
  margin-right: 20px;
}

/* Site Navigation */

.nav {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
  color: var(--font-color);
  background-color: var(--color-A);
  font-size: 1.3em;
  font-weight: 600;
  transition: color 0.5s, font-size 0.5s, filter 0.5s;
  filter: drop-shadow(black 0px 0px 10px);

  &:hover {
    cursor: pointer;
    font-size: 1.35em;
    filter: drop-shadow(var(--highlight-color) 0px 0px 10px);
  }

}

.navText {
  width: 100%;
  position: absolute;
  pointer-events:none;
}

.contact-action {
  width: 60cqw;
  min-width: 340px;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 5vh;
  filter: drop-shadow(black 0px 5px 10px);
  background-color: var(--color-B);
  font-size: 1.1em;
  font-weight: 500;
  transition: filter 0.3s, background-color 0.3s, color 0.3s, transform 0.5s;

  &:hover {
    transform: scale(1.01);
    background-color: var(--color-A);
    color: white;
    filter: drop-shadow(white 0px 5px 10px);
  }
}

/* OUR TEAM section */

.staffBox {
  width: clamp(350px, 70cqw, 1400px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  justify-content: space-evenly;
  gap: 8%;
}

.staff {
  --dimension: clamp(140px, 18cqw, 220px);
  width: var(--dimension);
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(white 0px 0px 20px);

  &.pic {
    height: var(--dimension);
    border-radius: 50%;
    background-color: fuchsia;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    margin-bottom: 2vh;
  }

  &.text {
    height: var(--dimension);
    text-align: center;
    font-size: clamp(20px, 1.5cqw, 1.5cqw);
    border: 0px solid red;
  }
}