/* ================= */
/* CSS Variables */
/* ================= */

:root {
  --black-1: #111111;
  --grey: #757575;
  --grey-2: #f5f5f5;
  --orange: #fa5400;
  --soft-gray: rgba(117, 117, 117, 0.2);
}

/* ================= */
/* Document Styles */
/* ================= */

body {
  padding-top: 60px;
  font-size: 16px;
  font-weight: 400;
  color: var(--black-1);
  font-family: "Montserrat", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  padding: 0 55px;
  margin: 0 auto;
  max-width: 1440px;
}

@media screen and (max-width: 1270px) {
  .container {
    margin: 0;
    padding: 0 40px;
  }
}

/* ================= */
/* Navbar */
/* ================= */

.navbar {
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 0 55px;
  max-width: 1440px;
  width: 100%;
  height: 60px;
  background-color: white;
  z-index: 99;
}

.navbar__menu-list {
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar__menu-list__item {
  margin-right: 40px;
}

.navbar__menu-list__item a {
  color: var(--black-1);
  text-decoration: none;
  font-weight: 500;
}

.navbar__menu-list__item:last-child {
  margin-right: 0px;
}

.navbar__actions {
  display: flex;
  align-items: center;
}

.navbar__actions__search {
  width: 200px;
  height: 40px;
  padding-left: 54px;
  padding-right: 15px;
  font-size: 1rem;
  background-image: url("../icons/search-icon.svg");
  background-position: center left 16px;
  background-repeat: no-repeat;
  background-color: var(--grey-2);
  border-radius: 200px;
  border: none;
}

.navbar__actions__search::placeholder {
  color: var(--grey);
}

.navbar__actions__link {
  margin-left: 24px;
}

.navbar__actions__menu {
  display: none;
  margin-left: 24px;
  border: none;
  background-color: transparent;
}

.navbar__actions__menu img {
  width: 30px;
}

.md-search-icon {
  display: none;
}

@media screen and (max-width: 1270px) {
  .navbar {
    padding: 0 40px;
  }

  .navbar__menu-list {
    position: fixed;
    top: 60px;
    bottom: 0;
    right: -340px;
    width: 300px;
    height: 100%;
    flex-direction: column;
    justify-content: space-around;
    background-color: white;
    transition: 450ms;
  }

  .navbar__menu-list.open {
    right: 0px;
  }

  .navbar__menu-list__item {
    margin: 0;
  }

  .navbar__actions__menu {
    display: block;
  }
}

@media screen and (max-width: 774px) {
  .navbar__actions__search {
    display: none;
  }

  .md-search-icon {
    display: block;
  }
}

/* ================= */
/* Footer */
/* ================= */

.footer {
  display: grid;
  height: 352px;
  padding-top: 64px;
  background-color: var(--black-1);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1.8fr) 3fr;
  gap: 64px;
}

.footer__list {
  list-style: none;
}

.footer__list__item,
.footer__list__item a {
  margin-top: 16px;
  color: var(--grey);
  text-decoration: none;
  transition: 300ms;
}

.footer__list__item a:hover {
  color: white !important;
}

.footer__list__item:first-child {
  margin-top: 0;
}

.footer__list__item.--important,
.--important a {
  color: white;
  text-transform: uppercase !important;
  font-weight: 600;
}

.footer__social-media-icons {
  display: flex;
  justify-content: flex-end;
}

.footer__social-media-icons__item {
  display: block;
  width: 48px;
  height: 48px;
  padding: 12px;
  margin-right: 24px;
  background-color: var(--grey);
  border-radius: 50%;
}

.footer__social-media-icons__item:last-child {
  margin-right: 0;
}

.icon {
  width: 100%;
  height: 100%;
  display: block;
  background-repeat: no-repeat;
  background-size: cover;
}

.icon.twitter {
  background-image: url("../icons/twitter-icon.svg");
}

.icon.facebook {
  background-image: url("../icons/facebook-icon.svg");
}

.icon.instagram {
  background-image: url("../icons/instagram-icon.svg");
}

.icon.youtube {
  background-image: url("../icons/youtube-icon.svg");
}

@media screen and (max-width: 1270px) {
  .footer {
    height: auto;
    padding: 64px 0;
  }

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

  .footer__social-media-icons {
    justify-content: center;
  }
}

/* ================= */
/* Button */
/* ================= */

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  background-color: white;
  border: 1px solid var(--soft-gray);
  border-radius: 150px;
  cursor: pointer;
  transition: 300ms all;
}

.btn:hover {
  border: 1px solid var(--grey);
  background-color: var(--soft-gray);
}

.--primary {
  color: white;
  background-color: var(--black-1);
  border: none;
}

.--primary:hover {
  background-color: #6f6f6f;
}

.btn:first-child {
  margin-top: 0;
}

.favorite-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("../icons/like-icon.svg");
  background-size: cover;
  margin-left: 8px;
}
