/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Carter+One&family=Montserrat:wght@100..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(353, 93%, 50%);
  --first-color-alt: hsl(353, 93%, 46%);
  --first-color-dark: hsl(353, 50%, 15%);
  --title-color: hsl(353, 48%, 12%);
  --text-color: hsl(353, 16%, 32%);
  --text-color-light: hsl(353, 16%, 48%);
  --white-color: hsl(24, 86%, 90%);
  --body-color: hsl(24, 86%, 88%);
  --container-color: hsl(24, 86%, 92%);
  --shadow-small-img: drop-shadow(0 4px 16px hsla(353, 100%, 8%, .2));
  --shadow-big-img: drop-shadow(0 8px 24px hsla(353, 100%, 8%, .2));

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Carter One", system-ui;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.25rem;
    --bigger-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

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

html { scroll-behavior: smooth; }

input,
button,
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

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

input, button {
  outline: none;
  border: none;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-regular);
  font-family: var(--second-font);
  line-height: 120%;
}

ul { list-style: none; }
a { text-decoration: none; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  /* margin-inline: 1.5rem; */
  margin-inline: auto;

}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}
.section__title {
  text-align: center;
  font-size: var(--bigger-font-size);
  margin-bottom: 2rem;
}

.main { overflow: hidden; }

@keyframes slideMove {
  0%, 100% { transform: translate(0, 0) rotate(var(--initial-rotate)); }
  50% { transform: translate(5px, -5px) rotate(var(--initial-rotate)); }
}

/*=============== HOME Start ===============*/

.home__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
  align-items: start;
  padding-top: 1rem;
  width: 100%;
  margin-inline: auto;
  margin-right: 2px;
}

.home__data {
  position: relative;
  text-align: initial;
  /* margin-top: 2rem; */
}

.home__data h1 {
  /* font-size: var(--biggest-font-size); */
  font-size: 2rem;
}

.home__data p {
  margin-bottom: 3.5rem;
  padding-right: 6rem;
  font-size: 0.75rem;
}

.home__sticker-1, .home__sticker-2 {
  width: 50px;
  position: absolute;
  opacity: 0.7;
}

.home__sticker-1 {
  right: 5rem;
  top: 0rem;
}

.home__sticker-2 {
  left: 10rem;
  bottom: 4rem;
}

.home__images {
  position: relative;
  display: grid;
  justify-items: center;
  
}

.home__ingredient {
  width: 100px;
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  filter: var(--shadow-small-img);
  animation: slideMove 4s ease-in-out infinite alternate;
}

.home__burger { z-index: 2; width : 20rem;}
.home__pizza { z-index: 2; width : 18.5rem; } 
.home_pizza_board {
  width: 18.5rem;
  position: absolute;
  bottom: -3.2rem;
  left: 2.2rem;
  transform: rotate(100deg);
}

.home_burger_board {
  width: 18.5rem;
  position: absolute;
  bottom: -2rem;
  left: 1rem;
}

.home__leaf-1 { left: 5rem; top: -4rem; --initial-rotate: 10deg; }
.home__pepperoni { right: 4rem; top: 3.5rem; --initial-rotate: -20deg; }
.home__mushroom { right: 4rem; bottom: 2rem; --initial-rotate: 15deg; }
.home__olive { left: 5rem; bottom: -1.5rem; --initial-rotate: 30deg; }
.home__leaf-2 { left: -3rem; bottom: 3.5rem; --initial-rotate: -10deg; }
.home__tomato { left: -3rem; top: 2rem; --initial-rotate: 25deg; }

/* Button */
.button {
  display: inline-flex;
  justify-content: center;
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 1rem 1.5rem;
  font-weight: var(--font-semi-bold);
  border-radius: 4rem;
  box-shadow: 0 8px 24px hsla(353, 100%, 40%, .4);
  transition: background-color .4s;
}

.button:hover {
  background-color: var(--first-color-alt);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .home__container {
    grid-template-columns: 1fr;
    row-gap: 4rem;
    justify-items: center;
    text-align: center;
  }

.home__leaf-1 { left: 5rem; top: -4rem; --initial-rotate: 10deg; }
.home__pepperoni { right: .5rem; top: 3.5rem; --initial-rotate: -20deg; }
.home__mushroom { right: 1rem; bottom: 2rem; --initial-rotate: 15deg; }
.home__olive { left: 5rem; bottom: -1.5rem; --initial-rotate: 30deg; }
.home__leaf-2 { left: -3rem; bottom: 3.5rem; --initial-rotate: -10deg; }
.home__tomato { left: -3rem; top: 2rem; --initial-rotate: 25deg; }


  .home__data {
    padding-inline: 1rem;
  }

  .home__data p {
    padding-right: 0;
  }

  .home__images {
    width: 100%;
    max-width: 450px;
  }
}

/*=============== ABOUT ===============*/
/* .about {
  background-color: var(--container-color);
} */

.about__container {
  row-gap: 2rem;
  padding-bottom: 2rem;
}

.about__data {
  position: relative;
  text-align: center;
}

.about__data .section__title {
  margin-bottom: 1rem;
}

.about__description {
  margin-bottom: 2rem;
}

.about__sticker {
  width: 40px;
  position: absolute;
  right: 0;
  bottom: 2rem;
}

.about__img {
  width: 320px;
  justify-self: center;
  filter: var(--shadow-big-img);
}

/*=============== POPULAR ===============*/
.popular__container {
  grid-template-columns: 100%;
  row-gap: 3rem;
  padding-bottom: 2rem;
}

.popular__data .section__title {
  margin-bottom: 1rem;
}

.popular__description {
  text-align: center;
}

.popular__swiper {
  position: relative;
}

.popular__dish {
  width: 220px;
  filter: var(--shadow-big-img);
  position: absolute;
  inset: 0;
  top: -.85rem;
  margin-inline: auto;
}

.popular__card, 
.popular__img {
  width: 200px;
}

.popular__img {
  transform: scale(.8) rotate(-90deg);
  transition: transform .4s;
}

.popular__title {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  margin-top: 2rem;
  text-align: center;
  opacity: 0;
  transition: opacity .4s;
}

/* Swiper class */
.swiper {
  margin-inline: initial;
  overflow: visible;
}

:is(.swiper-slide-active, .swiper-slide-duplicate-active) .popular__img {
  transform: scale(1) rotate(0);
}

:is(.swiper-slide-active, .swiper-slide-duplicate-active) .popular__title {
  opacity: 1;
}
/* ============= Recipe Start ============= */
  .recipe-section {
      text-align: center;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-5px); }
    }

    @keyframes tilt {
      from { transform: rotate(-10deg); }
      to { transform: rotate(10deg); }
    }

    .recipe-section h1 {
      font-size: 2rem;
      margin-bottom: 40px;
      font-weight: bold;
    }

    .recipe-content {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: flex-start;
      gap: 40px;
      max-width: 1200px;
      margin: auto;
      text-align: left;
    }

    .recipe-list {
      flex: 1;
      min-width: 300px;
    }

    .recipe-item {
      display: flex;
      align-items: flex-start;
      margin-bottom: 30px;
      gap: 20px;
      font-size: 1.05em;
    }

    .recipe-item img {
      width: 15%;
      height: 5rem;
      background: #ffcb69;
      border-radius: 20px;
      border: 4px solid white;
      animation: tilt 0.5s ease-in-out infinite alternate;
    }

    .recipe-item h2 {
      font-size: 1.4em;
      margin: 0;
      font-weight: 700;
    }

    .recipe-item p {
      margin-top: 8px;
      line-height: 1.5;
      font-size: 1em;
      word-wrap: break-word;
    }

    .recipe-image {
      flex: 1;
      min-width: 300px;
      display: flex;
      justify-content: center;
    }

    .recipe-image img {
      max-width: 100%;
      border-radius: 12px;
      animation: float 2s infinite ease-in-out;
    }
/* ============= Recipe End ============= */
/*=============== PRODUCTS ===============*/
.products__container {
  padding-top: 3.5rem;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem 1.5rem;
}

.products__card {
  position: relative;
  background-color: var(--container-color);
  padding: 5rem .75rem .25rem .75rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px hsla(353, 100%, 8%, .1);
}

.products__img {
  width: 120px;
  position: absolute;
  top: -3.5rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  filter: var(--shadow-small-img);
  transition: transform .4s;
}

.products__name {
  font-size: var(--h3-font-size);
  margin-bottom: .5rem;
}

.products__price {
  font-family: var(--second-font);
  font-size: var(--h1-font-size);
  line-height: 120%;
  color: var(--first-color);
}

.products__button {
  position: absolute;
  right: .75rem;
  bottom: 1.25rem;
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 4px;
  border-radius: .5rem;
  font-size: 1.5rem;
  display: inline-flex;
  box-shadow: 0 4px 16px hsla(353, 100%, 40%, .4);
  cursor: pointer;
  transition: background-color .4s;
}

.products__button:hover {
  background-color: var(--first-color-alt);
}

.products__card:hover .products__img {
  transform: translateY(-.5rem);
}

/*=============== CONTACT ===============*/
.contact__container {
  position: relative;
  background-color: var(--first-color-dark);
  padding-top: 0rem;
  border-radius: 3rem;
  overflow: hidden;
  row-gap: 3rem;
  column-gap: normal;
}

.contact__container .section__title, 
.contact__title, 
.contact__address {
  color: var(--white-color);
}

.contact__image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.contact__image img {
  max-height: 20rem;
  width: auto;
  margin-top: 55px;
}

.contact__img {
  width: 300px;
}

.contact__sticker-1, 
.contact__sticker-2, 
.contact__sticker-3 {
  width: 40px;
  position: absolute;
  opacity: .7;
}

.contact__sticker-1 {
  top: 8rem;
  left: 1.5rem;
}

.contact__sticker-2 {
  right: 1.5rem;
  bottom: 23rem;
}

.contact__sticker-3 {
  left: 2rem;
  bottom: 6rem;
}

.form {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  width: 450px;
  height: 500px;
  background-color: transparent !important;
  /* backdrop-filter: blur(50px) !important; */
  padding: 40px;
  padding-top: 60px;
  padding-bottom: 0px;
  border-radius: 10px;
  /* box-shadow: 0 30px 30px -30px rgba(27, 26, 26, 0.315); */
  /* background-color: var(--container-color); */
  border-radius: 4rem;

}
.contact__data{
  display: flex;
  justify-content: center;
  align-items: center;
  
}
.form .title {
  color: royalblue;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form input {
  outline: 0;
  border: 1px solid rgb(219, 213, 213);
  padding: 8px 14px;
  border-radius: 8px;
  width: 100%;
  height: 50px;
}

.form textarea {
  border-radius: 8px;
  height: 100px;
  width: 100%;
  resize: none;
  outline: 0;
  padding: 8px 14px;
  border: 1px solid rgb(219, 213, 213);
}

.form button {
  align-self: flex-end;
  padding: 8px;
  outline: 0;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  background-color: red;
  color: #fff;
  cursor: pointer;
}


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  .products__container {
    grid-template-columns: 150px;
    justify-content: center;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  /* .home__container, */
  .about__container,
  .popular__container,
  .recipe__container {
    grid-template-columns: 380px;
    justify-content: center;
  }

  .products__container {
    grid-template-columns: repeat(2, 160px);
    justify-content: center;
  }

  .contact__container {
    width: 450px;
    margin-inline: auto;
  }

}

@media screen and (min-width: 768px) {
  .popular__swiper {
    width: 600px;
    overflow-x: clip;
    justify-self: center;
  }

  .products__container {
    grid-template-columns: repeat(3, 160px);
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  /* .container {
    margin-inline: auto;
  } */

  .section {
    padding-block: 7rem 2rem;
  }
  .section__title {
    margin-bottom: 4rem;
  }

  .about__container {
    grid-template-columns: 450px 440px;
    align-items: center;
    column-gap: 6rem;
  }
  .about__img {
    order: -1;
    width: 450px;
  }
  .about__data {
    text-align: initial;
  }
  .about__data .section__title {
    margin-bottom: 1.5rem;
    text-align: initial;
  }
  .about__description {
    margin-bottom: 3.5rem;
  }
  .about__sticker {
    width: 50px;
    right: 6rem;
    bottom: 4rem;
  }

  .popular__container {
    grid-template-columns: 470px;
    row-gap: 5rem;
    padding-bottom: 3rem;
  }
  .popular__data .section__title {
    margin-bottom: 1.5rem;
  }
  .popular__swiper {
    width: 1000px;
  }
  .popular__card, 
  .popular__img {
    width: 350px;
  }
  .popular__dish {
    width: 390px;
    top: -1.5rem;
  }
  .popular__title {
    margin-top: 3rem;
    font-size: var(--h2-font-size);
  }

  .recipe__container {
    grid-template-columns: 360px 550px;
    align-items: center;
    column-gap: 6rem;
    padding-bottom: 3rem;
  }
  .recipe__ingredient {
    column-gap: 1.5rem;
  }
  .recipe__image {
    width: 80px;
  }
  .recipe__name {
    font-size: var(--h3-font-size);
  }
  .recipe__description {
    font-size: var(--normal-font-size);
  }
  .recipe__img {
    width: 550px;
  }

  .products__container {
    grid-template-columns: repeat(3, 250px);
    gap: 7.5rem 4rem;
  }
  .products__card {
    padding: 10rem 1.5rem 1.5rem;
    border-radius: 2rem;
  }
  .products__img {
    width: 200px;
    top: -4rem;
  }
  .products__name {
    font-size: var(--h2-font-size);
  }
  .products__button {
    right: 1.5rem;
    bottom: 1.5rem;
    padding: 6px;
  }

  .contact__container {
    width: initial;
    grid-template-columns: 370px 350px;
    justify-content: center;
    column-gap: 6rem;
    border-radius: 4rem;
  }
  .contact__img {
    width: 350px;
  }
  .contact__image {
    order: -1;
  }
  .contact__info, 
  .contact__data .section__title {
    text-align: initial;
  }
  .contact__data{
    margin-top: 2rem;
  }
  .contact__info {
    grid-template-columns: repeat(2, max-content);
  }
  .contact__title {
    font-size: var(--h2-font-size);
  }
  .contact__social {
    justify-content: initial;
  }
  .contact__sticker-1, 
  .contact__sticker-2, 
  .contact__sticker-3 {
    width: 50px;
  }
  .contact__sticker-1 {
    left: 4rem;
  }
  .contact__sticker-2 {
    right: 4rem;
    top: 8rem;
    bottom: 0;
  }
  .contact__sticker-3 {
    left: 10rem;
    bottom: 4rem;
  }
}
