/* 1. setting global style first */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 1.3rem;
}

/* 2. then setting general components */

img {
  width: 100%;
}

h1 {
  font-size: 3rem;
  margin-top: 0;
}

h2 {
  font-size: 2rem;
}

.logo {
  margin-right: 1em;
}

.btn {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  color: #23424a;
  font-weight: 900;
  background-color: #38cfd9;
  padding: 0.75em 2em;
  border-radius: 100px;
}

.btn:hover,
.btn:focus {
  opacity: 0.75;
}

.container {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
}

.row {
  /* display: flex => flex container */
  display: flex;
  justify-content: space-between;

  /* can't use yet */
  /* gap: 100px; */
}

.col {
  /* these are now flex items */
  width: 100%;
}

.col + .col {
  margin-left: 30px;
}

header {
  background: #136c72;
  padding: 1em 0;
}

.nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.nav__list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
}

.nav__list--primary {
  margin: 0 auto;
}

.nav__item + .nav__item {
  margin-left: 1em;
}

.nav__link {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

.nav__link--button {
  background: #fff;
  color: #136c72;
  padding: 0.25em 1em;
  border-radius: 10em;
}

.nav__link:hover {
  opacity: 0.75;
}

.hero {
  padding: 100px 0;
  background-color: #23424a;
  color: #fff;
}

.hero__text {
  width: 62%;
}

.hero__img {
  width: 32%;
  align-self: flex-start;
}

.hero p {
  margin-bottom: 3em;
}

.content {
  margin-top: 50px;
  margin-bottom: 50px;
}

.content__text {
  width: 62%;
}

.content__text h2 {
  color: #136c72;
}

.content__sidebar {
  width: 32%;
  background-color: #136c72;
  color: #fff;
  text-align: center;
  padding: 2em;
}

/* RWD design for desktop first.  Here is styles for mobile */
@media (max-width: 850px) {
  .row {
    display: block;
  }

  .hero__text,
  .hero__img,
  .content__text,
  .content__sidebar {
    width: 100%;
  }

  .hero__img {
    margin-top: 2em;
  }
}
