/* ADD RESETS */

* {
  margin: 0;
  font-family: "Avenir", sans-serif;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
}

h1 {
  font-size: 40px;
  line-height: 1.2em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2 {
  font-size: 24px;
}

p {
  font-size: 16px;
}

section.goodwill {
  margin-bottom: 4em;
  padding: 0 1rem;
}

p.goodwill-explanation {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

/* Decorated headline */
.decorated {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 15vh;
  margin-bottom: 10vh;
  padding: 0 5vw;
}
.decorated::before,
.decorated::after {
  content: "";
  flex: 1 1 auto;
  border-bottom: 2px solid;
  margin: 0 20px;
}
.decorated > span {
  display: inline-block;
  white-space: nowrap;
}

section.columns {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  text-align: center;
}

article {
  background-color: #f1f1f1;
  padding: 10px;
  flex: 1 1 0;
  min-width: 260px;
}

figure.logo {
  margin: 1em auto;
}

img.logo {
  max-height: 50px;
  max-width: 90%;
  margin-bottom: 1vh;
}

img.social-logo {
  display: inline-block;
  max-height: 30px;
  margin: 2em 0.8em 0 0.8em;
}

img.social-logo:hover {
  opacity: 0.8;
}

p.info {
  display: inline-block;
  max-width: 80%;
  text-align: center;
}

p.links {
  margin: 1.5rem auto;
}

a.link {
  color: inherit;
  text-decoration: none;
  padding: 0.2rem 1rem;
  background-color: none;
  border: 1px black solid;
  border-radius: 5px;
  position: relative;
  text-align: center;
}

a.link:hover {
  background-color: black;
  color: white;
  border: none;
}

footer {
  margin: 1rem 0;
  text-align: center;
  margin-top: auto;
  padding: 0 1rem;
}

footer > p,
address {
  font-size: 12px;
}

address {
  margin: 0.5em auto;
  font-style: normal;
  line-height: 1.6em;
}

.offices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em 2.5em;
  max-width: 900px;
  margin: 0 auto 1em auto;
}

.office {
  flex: 1 1 180px;
  max-width: 220px;
}

.office-name {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3em;
}

@media (max-width: 1000px) {
  section.columns {
    flex-direction: column;
  }

  article {
    margin-bottom: 5vh;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 28px;
  }

  .decorated {
    margin-top: 10vh;
    margin-bottom: 6vh;
  }

  .decorated::before,
  .decorated::after {
    margin: 0 10px;
  }
}
