@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400;600;800;900&family=Vollkorn:ital,wght@1,400;1,500&display=swap');

:root {
  --primary-color: #254A2C;
  --secondary-color: #A9B564;
  --white: #F2F2F2;
  --text-color: #62716A;
  --header-height: clamp(500px, 100vh, 1000px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5em;
}

body {
  background-color: var(--white);
  color: var(--text-color);
  padding: 0;
  margin: 0;
  font-size: 15pt;
}

* {
  transition: all 0.5s ease, background-position 0s;
}

p {
  font-family: 'Vollkorn', serif;
  font-style: italic;
  font-size: 1.3em;
}

h1 {
  text-align: center;
  font-size: 4rem;
  font-weight: 400;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  margin-block: 2rem;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
}

section {
  height: fit-content;
  padding:  4rem 2rem 2rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

section h1 {
  margin-block: 0 4rem;
  color: var(--primary-color);
}

.visible-xs {
  display: none !important;
}

.hidden-xs {
  display: initial;
}

/* HEADER */
header {
  height: var(--header-height);
  position: sticky;
  top: calc(var(--header-height) * -1 + 5.5rem);
  background: url(../images/main_bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  z-index: 100;
}

body.mini-menu {
  padding-top: 5.5rem;
}

body.mini-menu header {
  position: fixed;
  top: 0;
  height: 5.5rem;
  width: 100%;
}

.header__content {
  width: 700px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.header__logo {
  width: calc(100% - 200px);
  margin-inline: auto;
  display: block;
}

.header__content h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 400;
  text-transform: none;
  font-family: 'Vollkorn', serif;
  margin-block: 1.5em;
  color: var(--white);
}

.header__menu {
  display: flex;
  flex-direction: row;
  align-content: center;
  width: fit-content;
  padding: 0;
  position: absolute;
  bottom: .5em;
  left: 50%;
  transform: translate(-50%, 0);
}

.header__menu-item {
  display: flex;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  flex-basis: fit-content;
  margin-inline: 1.5em;
  list-style: none;
}

.header__menu-item a {
  padding-inline: .2em;
  color: var(--white);
}

.header__menu-item a:hover,
.header__menu-item a:focus,
.header__menu-item a.active {
  background-color: var(--white);
  color: var(--primary-color);
}

.header__menu-item a.active {
  transition-delay: .3s;
}

/* ABOUT */
#about, #resources {
  background-image: url(../images/about_bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  padding-bottom: 3em;
}

#page {
  min-height: calc(100vh - 5.5rem);
}

#about p {
  display: block;
  max-width: 700px;
  width: 75vw;
  min-width: 300px;
  margin-inline: auto;
  margin-top: 0;
  line-height: 1.7em;
}

/* CLIENTS */
#clients {
  background-image: url(../images/clients_bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  height: fit-content;
}

#clients h1 {
  color: var(--white);
}

.clients__content {
  display: flex;
  justify-content: space-evenly;
  padding-inline: 5vw;
  flex-wrap: wrap;
  column-gap: 1em;
  row-gap: 1em;
  margin-bottom: 3em;
}

.clients__logo {
  list-style: none;
  width: 280px;
  height: 280px;
  background-color: var(--white);
  border-radius: 50%;
  padding: 1rem;
  align-content: space-around;
  display: flex;
  box-shadow: 1em 1em 3em rgb(0 0 0 / 30%);
  padding: 1em;
  box-sizing: border-box;
  overflow: hidden;
}

.clients__logo a {
  width: 100%;
  height: 100%;
  display: flex;
}

.clients__logo img {
  width: 100%;
  display: block;
  margin-block: auto;
}

/* RESOURCES */

.resources__content {
  display: flex;
  justify-content: space-around;
  margin: 2em;
}

.resources__button-image {
  width: 300px;
  height: 300px;
  position: relative;
  border-radius: 1em;
  overflow: hidden;
  display: block;
}

.resources__button-image img {
  width: 100%;
}

.resources__button-image .fas {
  font-size: 8em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: var(--white);
}
.resources__button-image span {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  box-shadow: inset 0 0 50px rgb(0 0 0 / 70%);
}

.resources__button-image:hover span,
.resources__button-image:focus span {
  opacity: 1;
}

.resources__button-label {
  display: flex;
  flex-direction: column;
  padding-top: .5em;
  font-size: 2em;
  color: var(--secondary-color);
  text-align: center;
}

.button-label-top {
  font-family: 'Vollkorn', serif;
  font-weight: 400;
  font-style: italic;
  text-transform: lowercase;
  line-height: 1em;
}

.button-label-bottom {
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}

/* CONTACT */
#contact {
  background-image: url(../images/contact_bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  position: relative;
  height: 750px;
}

.contact__hand {
  width: 490px;
  height: 560px;
  background-image: url(../images/contact_hand.png);
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  bottom: 0;
  right: max(50vw - 700px, -170px);
}

.contact__content {
  display: flex;
  flex-direction: column;
  row-gap: 1em;
  width: 450px;
  margin-inline: auto;
  margin-top: 8em;
}

.contact__item {
  display: flex;
  flex-direction: row;
  column-gap: 1rem;
}

.contact__item-label {
  width: 15em;
  display: flex;
  justify-content: flex-end;
}

.contact__item-label span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  background-color: var(--primary-color);
  color: var(--white);
  width: fit-content;
  box-sizing: border-box;
  padding: 0.5em;
  display: block;
}

.contact__item-number {
  width: 14em;
  font-family: 'Vollkorn', sans-serif;
  font-weight: 500;
  color: var(--secondary-color);
  padding-block: .4em;
}

/* RESOURCE LIST*/
.resource-list {
  width: 50vw;
  margin-inline: auto;
}

.resource-list__group {
  margin-bottom: 3em;
}
.resource-list__group-icon {
  float: left;
  margin-top: .2em;
  font-family: 'Vollkorn', serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--secondary-color);
}

.resource-list__group-icon .fas {
  color: var(--secondary-color);
}

.resource-list__group-item {
  background-color: var(--white);
  border-radius: .5em;
  display: flex;
  padding: .5em 1em;
  margin-left: 3em;
  margin-bottom: 1em;
  box-shadow: 0 5px 10px rgb(0 0 0 / 20%);
}

.resource-list__group-item:hover,
.resource-list__group-item:focus {
  background-color: var(--secondary-color);
}

.resource-list__group-item .item-label,
.resource-list__group-item .item-logo {
  font-family: 'Vollkorn', serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--secondary-color);
  flex-grow: 1;
}

.resource-list__group-item .item-logo {
  justify-items: flex-end;
  text-align: right;
  color: var(--text-color);
}

.resource-list__group-item .item-logo img {
  width: 150px;
  max-height: 30px;
  object-fit: contain;
  object-position: right;
}

.resource-list__group-item:hover .item-label,
.resource-list__group-item:focus .item-label,
.resource-list__group-item:hover .item-logo, 
.resource-list__group-item:focus .item-logo {
  color: var(--white);
}

.resource-list__group-item:hover .item-logo img,
.resource-list__group-item:focus .item-logo img {
  filter: grayscale(1) saturate(100%);
  opacity: .75;
  mix-blend-mode: multiply;
}

/* FOOTER */
footer {
  margin-top: -2em;
  position: relative;
}
.footer__copyright {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 100;
  font-size: 1rem;
}


@media screen and (max-width: 1780px) {
  .clients__logo {
    width: 245px;
    height: 245px;
  }
}

@media screen and (max-width: 1550px) {
  .clients__logo {
    width: 200px;
    height: 200px;
  }
}

@media screen and (max-width: 1300px) {
  .clients__content {
    padding-inline: 0;
    max-width: 700px;
    min-width: 320px;
    width: 80vw;
    margin-inline: auto;
  }
}

@media screen and (max-width: 1100px) {
  .clients__content {
    width: 80vw;
  }

  .contact__item {
    flex-direction: column;
  }

  .contact__item-label {
    justify-content: flex-start;
  }

  .contact__item-number {
    justify-content: flex-start;
    display: flex;
  }

  .resources__button-image {
    width: 250px;
    height: 250px;
  }

  .resources__button-image .fas {
    font-size: 7em;
  }

  .resource-list {
    width: 90vw;
  }
}

@media screen and (max-width: 850px) {
  .header__content {
    width: calc(100% - 10vw);
    position: absolute;
    top: 5vw;
    left: 50%;
    transform: translate(-50%, 0%);
  }

  .header__logo {
    width: 100%;
  }

  .header__content h1 {
    margin-inline: auto;
    margin-top: 2em;
  }

  .header__menu-item {
    margin-inline: 1em;
  }
}

@media screen and (max-width: 750px) {
  header {
    position: relative;
    top: unset;
  }

  .header__content h1 {
    width: 350px;
  }

  .header__menu {
    flex-direction: column;
    left: 0.5em;
    transform: none;
    row-gap: 1em;
  }

  .header__menu-item {
    display: none;
  }

  .resources__content {
    flex-wrap: wrap;
    column-gap: 1em;
    row-gap: 4em;
  }
}

@media screen and (max-width: 600px) {
  .header__content h1 {
    width: 350px;
  }

  h1 {
    font-size: 3rem;
  }

  #page h1 {
    font-size: 2.5rem;
  }

  #contact h1 {
    text-shadow: 0 0 0.2em var(--white);
  }

  .clients__logo {
    width: 150px;
    height: 150px;
  }

  .contact__hand {
    width: 420px;
    height: 560px;
  }
  .resource-list {
    width: 100%;
  }

  .resource-list__group-item {
    margin-left: 0;
  }

  .resource-list__group-icon {
    float: none;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .resource-list__group-icon .fas {
    font-size: 1.5em !important;
    vertical-align: bottom;
    margin-right: .5rem;
  }

  .hidden-xs {
    display: none;
  }

  .visible-xs {
    display: inline-block !important;
  }
}

@media screen and (max-width: 420px) {
  .contact__hand {
    right: -250px;
  }
}
