:root {
  --header-font: "Playfair Display", serif;
  --secondary-font: "Inter", sans-serif;
  --background-color: #2c394b;
  --secondary-background-color: #bed7f4;
}

body {
  background: var(--background-color);
}

header {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)),
    url("../media/hero.png");
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 230px 0;
}
header h1 {
  font-family: var(--header-font);
  font-size: 96px;
  line-height: 1;
  margin: 30px 0;
}
header h2 {
  font-family: var(--secondary-font);
  font-size: 40px;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}
header h3 {
  font-family: var(--header-font);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 5px;
  margin: 0;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
}
.hero-button {
  display: inline-block;
  margin-top: 32px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--secondary-font);
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  background: white;
  color: black;
  letter-spacing: 2px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.3s ease;
}
.hero-button:hover {
  color: white;
  border: white 1px solid;
  background: rgba(0, 0, 0, 0.5);
}

main {
  background-color: white;
}
main h2 {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 3px;
  opacity: 0.7;
  text-transform: uppercase;
  font-family: var(--header-font);
}
main h3 {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.5;
  margin: 0;
  font-family: var(--header-font);
}
main h4 {
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  margin: 0;
}
main h5 {
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  margin: 0;
}
main em {
  font-size: 14px;
}
main p {
  font-weight: 400;
  font-size: 16px;
  font-family: var(--secondary-font);
}
section {
  max-width: 100%;
  margin: 0 auto;
  padding: 100px;
}
.grid {
  display: grid;
  grid-gap: 60px;
}
.first-two-col {
  grid-template-columns: 1fr 1fr;
}
.img-responsive {
  width: 100%;
  display: block;
}

section.secondary {
  background: var(--secondary-background-color);
}
.grid.secondary-three-col {
  margin-top: 25px;
}
.text-center {
  text-align: center;
}
.secondary-three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.embed {
  width: 100%;
  aspect-ratio: 1 /1;
}
.card {
  background: white;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
}
.card-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0;
}
.card-body {
  padding: 30px;
}
.card-footer {
  padding: 0 30px 30px;
  margin-top: auto;
}
.btn {
  display: block;
  color: white;
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px;
  background: var(--background-color);
  text-decoration: none;
}
.third-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 10px;
}

footer {
  color: white;
  background-image:
    linear-gradient(rgba(44, 57, 75, 0.75), rgba(44, 57, 75, 0.9)),
    url("../media/footer.png");
  background-repeat: no-repeat;
  background-size: cover;
}
footer h3 {
  font-family: var(--header-font);
  font-size: 20px;
  line-height: 30px;
}
footer p {
  font-family: var(--secondary-font);
  font-size: 18px;
  font-weight: 300;
  line-height: 24px;
  opacity: 0.9;
}
footer ul {
  padding: 0;
  font-family: var(--secondary-font);
}
footer li {
  list-style: none;
  margin: 0;
  padding: 0;
}
footer a {
  color: white;
  opacity: 0.7;
}
.footer-three-col {
  grid-template-columns: 1fr 2fr 2fr;
}

@media (max-width: 960px) {
  header {
    padding: 60px 0;
  }
  header h1 {
    font-size: 48px;
  }
  header h2 {
    font-size: 18px;
  }
  header h3 {
    font-size: 12px;
  }
  main h2 {
    text-align: center;
  }
  main h3 {
    line-height: 1;
    margin-top: 10px;
    font-size: 32px;
    text-align: center;
  }
  .hero-button {
    font-size: 12px;
  }
  section {
    padding: 40px;
  }
  .grid {
    grid-template-columns: 1fr;
    grid-gap: 30px;
  }
  .img-responsive {
    display: block;
    margin: 0 auto;
  }
  .card {
    margin: 0;
  }
  .card-header {
    grid-template-columns: 1fr;
  }
  .card-header img {
    display: none;
  }
  .embed {
    aspect-ratio: 16 /9;
  }
  .third-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 30px;
  }
}
