@import url("https://fonts.googleapis.com/css2?family=Aclonica&family=Montserrat:wght@100..900&display=swap");

:root {
  --header-height: 3.5rem;

  --first-color: hsl(45, 99%, 55%);
  --first-color-alt: hsl(45, 99%, 48%);
  --second-color: hsl(0, 11%, 7%);
  --white-color: hsl(34, 100%, 96%);
  --title-color: hsl(61, 100%, 100%);
  --text-color: hsl(61, 100%, 100%);
  --text-color-light: hsl(63, 53%, 65%);
  --body-color: hsl(30, 7%, 6%);
  --body-color-alt: hsl(30, 6%, 6%);
  --container-color: hsl(34, 100%, 96%);
  --contact-color: hsl(22, 100%, 12%);

  --shadow-small-img: drop-shadow(0 4px 16px hsl(0, 100%, 100%));
  --shadow-big-img: drop-shadow(0 8px 24px hsl(0, 100%, 100%));

  --body-font: "Montserrat", sans-serif;
  --second-font: "Aclonica", sans-serif;

  --biggest-font-size: 3rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-regular);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 2rem;
}

.main {
  overflow: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: box-shadow .4s;
}

.shadow-header {
  box-shadow: 0 4px 20px hsla(22, 100%, 8%, .12);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--title-color);
  font-family: var(--second-font);
  font-size: var(--h2-font-size);
}

.nav__logo-img {
  width: 24px;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  transition: color .3s;
}

.nav__link:hover,
.active-link {
  color: var(--first-color);
}

.nav__toggle,
.nav__close {
  display: none;
}

.home {
  padding-top: calc(var(--header-height) + 2rem);
}

.home__container {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.home__data {
  text-align: center;
}

.home__title {
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -2px;
}

.home__description {
  margin: 1.5rem auto 2rem;
  max-width: 430px;
  line-height: 1.8;
  color: var(--text-color-light);
}

.home__buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.home__sticker {
  width: 40px;
}

.home__images {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.home__burger {
  position: relative;
  z-index: 3;
  width: 280px;
  filter: var(--shadow-big-img);
}

.home__dish {
  position: absolute;
  width: 320px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.home__lettuce {
  position: absolute;
  width: 55px;
  left: 8%;
  top: 45%;
  z-index: 2;
  filter: var(--shadow-small-img);
}

.home__tomato {
  position: absolute;
  width: 45px;
  right: 15%;
  top: 8%;
  z-index: 4;
  filter: var(--shadow-small-img);
}

.home__potato {
  position: absolute;
  width: 40px;
  right: 12%;
  top: 24%;
  z-index: 5;
  filter: var(--shadow-small-img);
}

.button {
  display: inline-block;
  padding: 1rem 2.2rem;
  border-radius: 3rem;
  font-size: .95rem;
  font-weight: 700;
  background-color: var(--first-color);
  color: var(--second-color);
  box-shadow: 0 15px 35px rgba(240, 240, 239, 0.3);
  transition: transform .35s, box-shadow .35s;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(255, 196, 0, .40);
}

.recipe {
  padding-block: 5rem 2rem;
}

.recipe__content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.recipe__images {
  display: flex;
  justify-content: center;
}

.recipe__burger {
  width: 280px;
  filter: var(--shadow-big-img);
}

.recipe__list {
  display: grid;
  gap: 2rem;
}

.recipe__item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.recipe__item--reverse {
  flex-direction: row-reverse;
  text-align: right;
}

.recipe__img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  background-color: var(--first-color);
  padding: .5rem;
  filter: var(--shadow-small-img);
  flex-shrink: 0;
}

.recipe__title {
  font-size: 1.05rem;
  margin-bottom: .25rem;
}

.recipe__description {
  font-size: .875rem;
  line-height: 1.7;
  color: var(--text-color-light);
}

/*=============== POPULAR ===============*/
.popular {
  background-color: var(--body-color-alt);
}

.popular .section__title {
  margin-bottom: 1.5rem;
}

.popular__container {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 3rem 1.5rem;
  padding-block: 2rem;
}

.popular__card {
  position: relative;
  width: 176px;
  height: 230px;
  background-color: var(--first-color);
  border: 4px solid var(--container-color);
  border-radius: 1.1rem;
  box-shadow: 0 8px 14px rgba(0, 0, 0, .05);
  overflow: visible;
}

.popular__img {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 142px;
  z-index: 2;
  filter: var(--shadow-small-img);
  transition: transform .35s ease;
}

.popular__card:hover .popular__img {
  transform: translateX(-50%) translateY(-3px);
}

.popular__content {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
}

.popular__title {
  font-family: var(--body-font);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.02;
  color: var(--second-color);
  letter-spacing: -.3px;
}

.popular__price {
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--second-color);
}

.popular__button {
  position: absolute;
  right: .9rem;
  bottom: .95rem;
  width: 34px;
  height: 34px;
  background-color: var(--second-color);
  color: var(--white-color);
  border-radius: .65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  z-index: 3;
  transition: transform .3s ease, background-color .3s ease;
}

.popular__button:hover {
  background-color: hsl(22, 100%, 16%);
  transform: translateY(-2px);
}

@media screen and (max-width: 320px) {
  .popular__container {
    gap: 1.2rem .85rem;
  }

  .popular__card {
    width: 146px;
    height: 205px;
    border-width: 3px;
  }

  .popular__img {
    width: 116px;
    top: -4px;
  }

  .popular__content {
    left: .85rem;
    right: .85rem;
    bottom: .8rem;
    gap: .6rem;
  }

  .popular__title {
    font-size: .9rem;
  }

  .popular__price {
    font-size: .92rem;
  }

  .popular__button {
    width: 30px;
    height: 30px;
    right: .72rem;
    bottom: .78rem;
    font-size: .82rem;
  }
}

@media screen and (min-width: 768px) {
  .popular__container {
    grid-template-columns: repeat(3, max-content);
    gap: 3.2rem 1.75rem;
  }
}

@media screen and (min-width: 1150px) {
  .popular__container {
    gap: 3.5rem 2rem;
  }

  .popular__card {
    width: 182px;
    height: 236px;
  }

  .popular__img {
    width: 146px;
  }
}

.contact__wrapper {
  padding-block: 4.5rem 1rem;
}

.contact__container {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  background-color: var(--contact-color);
  border-radius: 2rem;
  padding: 2.5rem 1.5rem 2.2rem;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.5rem;
  justify-items: center;
  align-items: end;
  overflow: hidden;
  color: var(--white-color);
}

.contact__images {
  display: flex;
  justify-content: center;
  align-items: end;
}

.contact__img {
  width: 190px;
}

.contact__content {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.contact__title {
  color: var(--white-color);
  font-size: 1.95rem;
  margin-bottom: .35rem;
}

.contact__decor {
  display: flex;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.contact__decor-icon {
  width: 34px;
}

.contact__info {
  display: grid;
  gap: 1.35rem;
  margin-bottom: 1.35rem;
}

.contact__info-block {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.contact__info-title {
  color: var(--white-color);
  font-size: 1rem;
  font-weight: var(--font-semi-bold);
}

.contact__info-data {
  color: hsla(0, 0%, 100%, .78);
  font-size: .95rem;
  line-height: 1.45;
}

.contact__social {
  display: flex;
  justify-content: center;
  gap: .55rem;
}

.contact__social a {
  width: 36px;
  height: 36px;
  background-color: var(--first-color);
  color: var(--second-color);
  border-radius: .45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background-color .35s, transform .35s;
}

.contact__social a:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-2px);
}

.contact__address {
  text-align: center;
}

.contact__sticker {
  position: absolute;
  right: 1.9rem;
  bottom: 2.4rem;
  width: 42px;
  filter: var(--shadow-small-img);
  opacity: .92;
}

.footer {
  padding-top: 3rem;
}

.footer__container {
  border-top: 1px solid hsl(22, 20%, 80%);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--title-color);
  font-size: var(--h1-font-size);
}

.footer__logo-img {
  width: 28px;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer__link a {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  transition: color .3s;
}

.footer__link a:hover {
  color: var(--first-color);
}

.footer__social {
  display: flex;
  gap: .75rem;
}

.footer__social a {
  width: 32px;
  height: 32px;
  background-color: var(--first-color);
  color: var(--second-color);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  transition: background-color .3s;
}

.footer__social a:hover {
  background-color: var(--first-color-alt);
}

.footer__copy {
  text-align: center;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  padding: 1.5rem 0;
}

::-webkit-scrollbar {
  width: .6rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--text-color-light);
  border-radius: .5rem;
}

::-webkit-scrollbar-track {
  background-color: var(--body-color);
}

.scrollup {
  position: fixed;
  right: 1.5rem;
  bottom: 2rem;
  width: 40px;
  height: 40px;
  background-color: var(--first-color);
  color: var(--second-color);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  box-shadow: 0 4px 12px hsla(22, 100%, 8%, .15);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s, background-color .3s;
}

.scrollup:hover {
  background-color: var(--first-color-alt);
}

.show-scroll {
  opacity: 1;
  visibility: visible;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background-color: var(--body-color);
    box-shadow: -4px 0 24px hsla(22, 100%, 8%, .15);
    padding: 5rem 3rem 0;
    transition: right .4s;
    z-index: var(--z-fixed);
  }

  .nav__list {
    flex-direction: column;
    row-gap: 2rem;
  }

  .nav__link {
    font-size: var(--h2-font-size);
  }

  .nav__close,
  .nav__toggle {
    display: block;
    font-size: 1.5rem;
    color: var(--title-color);
  }

  .nav__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
  }

  .show-menu {
    right: 0;
  }
}

@media screen and (max-width: 320px) {
  .container {
    padding-inline: 1rem;
  }

  .home__title {
    font-size: 2rem;
  }

  .section__title {
    font-size: 1.25rem;
  }

  .popular__container {
    gap: 1.4rem .9rem;
  }

  .popular__card {
    width: 145px;
    min-height: 225px;
    padding: 4.9rem .85rem .85rem;
    border-width: 3px;
  }

  .popular__img {
    width: 112px;
  }

  .popular__title {
    font-size: .95rem;
    margin-bottom: .8rem;
  }

  .popular__price {
    font-size: .95rem;
  }

  .popular__button {
    width: 31px;
    height: 31px;
    font-size: .9rem;
    right: .7rem;
    bottom: .7rem;
  }

  .contact__container {
    padding: 2rem 1rem;
    border-radius: 1.5rem;
  }

  .contact__img {
    width: 155px;
  }

  .contact__title {
    font-size: 1.55rem;
  }

  .contact__decor-icon {
    width: 28px;
  }

  .contact__sticker {
    width: 36px;
    right: 1rem;
    bottom: 1.25rem;
  }
}

@media screen and (min-width: 576px) {
  .home__container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .home__data {
    text-align: left;
  }

  .home__description {
    margin-inline: 0;
  }

  .home__buttons {
    justify-content: flex-start;
  }

  .home__images {
    min-height: 420px;
  }

  .home__burger {
    width: 320px;
  }

  .home__dish {
    width: 450px;
  }

  .home__lettuce {
    width: 70px;
  }

  .home__tomato {
    width: 55px;
  }

  .home__potato {
    width: 50px;
  }
}

@media screen and (min-width: 768px) {
  .recipe__content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .recipe__burger {
    width: 380px;
  }

  .recipe__item--reverse {
    flex-direction: row;
    text-align: left;
  }

  .popular__container {
    grid-template-columns: repeat(3, max-content);
    gap: 3.2rem 1.75rem;
  }

  .popular__card {
    width: 182px;
    min-height: 268px;
  }

  .contact__container {
    grid-template-columns: 255px 1fr;
    column-gap: 1.5rem;
    padding: 2.6rem 2.7rem 2.25rem;
    min-height: 355px;
    justify-items: stretch;
  }

  .contact__images {
    justify-content: start;
  }

  .contact__img {
    width: 255px;
  }

  .contact__content {
    max-width: 100%;
    text-align: left;
    align-self: start;
    padding-top: .15rem;
  }

  .contact__title {
    text-align: center;
    font-size: 2.05rem;
    margin-bottom: .4rem;
  }

  .contact__decor {
    justify-content: center;
    margin-bottom: 1.2rem;
  }

  .contact__decor-icon {
    width: 38px;
  }

  .contact__info {
    grid-template-columns: max-content max-content;
    justify-content: center;
    gap: 2.75rem;
    margin-bottom: 1.85rem;
  }

  .contact__social {
    justify-content: flex-start;
  }

  .contact__address {
    max-width: max-content;
    margin-left: 50%;
    transform: translateX(-8%);
    text-align: left;
  }

  .footer__content {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
}

@media screen and (min-width: 1150px) {
  .section {
    padding-block: 6rem 2rem;
  }

  .section__title {
    margin-bottom: 3rem;
  }

  .home {
    padding-bottom: 0;
  }

  .home__title {
    font-size: 5.3rem;
  }

  .home__description {
    margin: 2rem 0 2.6rem;
  }

  .home__images {
    min-height: 560px;
  }

  .home__burger {
    width: 450px;
    margin-bottom: 3.5rem;
  }

  .home__dish {
    width: 620px;
  }

  .home__lettuce {
    width: 100px;
    left: 2%;
    top: 40%;
  }

  .home__tomato {
    width: 75px;
    right: 10%;
    top: 5%;
  }

  .home__potato {
    width: 60px;
    right: 8%;
    top: 18%;
  }

  .recipe {
    padding-block: 7rem 3rem;
  }

  .recipe__content {
    gap: 6rem;
  }

  .recipe__burger {
    width: 450px;
  }

  .recipe__list {
    max-width: 380px;
  }

  .recipe__img {
    width: 80px;
    height: 80px;
  }

  .popular .section__title {
    margin-bottom: 2rem;
  }

  .popular__container {
    gap: 3.5rem 2rem;
  }

  .popular__card {
    width: 186px;
    min-height: 272px;
    padding: 6rem 1rem 1rem;
  }

  .popular__img {
    width: 140px;
  }

  .contact__wrapper {
    padding-block: 5rem 1rem;
  }

  .contact__container {
    grid-template-columns: 285px 1fr;
    column-gap: 1.75rem;
    padding: 2.8rem 3.1rem 2.4rem;
    max-width: 1040px;
    min-height: 385px;
  }

  .contact__img {
    width: 290px;
  }

  .contact__title {
    font-size: 2.2rem;
  }

  .contact__decor {
    margin-bottom: 1.35rem;
  }

  .contact__decor-icon {
    width: 40px;
  }

  .contact__info {
    gap: 3rem;
    margin-bottom: 2rem;
  }

  .contact__info-title {
    font-size: 1.05rem;
  }

  .contact__info-data {
    font-size: .98rem;
  }

  .contact__social a {
    width: 37px;
    height: 37px;
  }

  .contact__sticker {
    width: 50px;
    right: 2.4rem;
    bottom: 3.2rem;
  }
}