:root {
  --hacom-color-primary: #306a8c;
  --hacom-color-secondary: #f2f2f2;
  --hacom-color-white: #fff;
  --hacom-color-black: #000;
}

.hacom {
  max-width: 80rem;
  margin: 0 auto;
}

.hacom-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  background: url(https://theautohost.com/_contentPages/honda/brand/2023/community/images/header.jpg) no-repeat;
  background-position: center;
}

.hacom-header > * {
  color: var(--hacom-color-white);
  width: 70%;
  text-align: center;
}

.hacom-primary {
  color: var(--hacom-color-white);
  background-color: var(--hacom-color-primary);
}

.hacom-secondary {
  color: var(--hacom-color-black);
  background-color: var(--hacom-color-secondary);
}

.hacom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.hacom-flex {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 50rem;
}

.hacom-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hacom-content > * {
  width: 80%;
}

/* Media queries */
@media screen and (max-width: 640px) {
  .hacom-header {
    background-position: center;
  }

  .hacom-grid {
    grid-template-columns: 1fr;
  }

  /* need images to be first column */
  .hacom-image {
    order: 1;
  }
  .hacom-content {
    order: 2;
  }
}
