/* GOOGLE FONTS  */
@import url("https://fonts.googleapis.com/css2?family=Cantata+One&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

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

  /* Colors  */
  /* Color mode HSL(hue, saturation, lightness) */
  --first-color: hsl(12, 81%, 40%);
  --first-color-alt: hsl(12, 78%, 38%);
  --title-color: hsl(12, 95%, 15%);
  --text-color: hsl(12, 12%, 40%);
  --white-color: hsl(12, 100%, 99%);
  --dark-color: hsl(12, 95%, 12%);
  --body-color: hsl(12, 56%, 18%);
  --body-white-color: hsl(0, 0%, 100%);
  --body-first-color: hsl(12, 80%, 40%);

  /* FONT TYPOGRAPHY  */
  /* .5rem=8px | 1rem=16px  */
  --brand-font: "Cantata One", sans-serif;
  --body-font: "Open Sans", sans-serif;
  --second-font: "Poppins", sans-serif;
  --biggest-font-size: 4.5rem;
  --big-font-size: 2.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;

  /* 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: 9.5rem;
    --big-font-size: 4rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
  }
}

/* BASE  */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--body-font);
  font-weight: var(--font-medium);
  line-height: 110%;
}
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: auto;
  padding-inline: 1.5rem;
}
.grid {
  display: grid;
  gap: 1.5rem;
}
.section {
  padding-block: 5rem 4rem;
}

.section__title {
  text-align: center;
  font-size: var(--big-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 2.5rem;
}
.main {
  overflow: hidden;
}

/* HEADER & NAV  */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: box-shadow 0.4s;
}
.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--white-color);
  font-family: var(--brand-font);
  font-weight: var(--font-semi-bold);
  transition: color 0.4s;
}

.nav__logo:hover {
  color: var(--first-color);
}

.nav__toggle,
.nav__close {
  display: flex;
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Navigation for mobile devices  */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: -120%;
    left: 0;
    background-color: var(--body-color);
    width: 100%;
    padding-block: 4rem;
    box-shadow: 0 8px 16px hsla(12, 85%, 8%, 0.3);
    transition: top 0.4s;
  }
}
.nav__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}
.nav__link {
  color: var(--white-color);
  font: var(--font-medium) var(--h1-font-size) var(--second-font);
  line-height: 110%;
  transition: color 0.4s;
}

.nav__link:hover {
  color: var(--first-color);
}
.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* SHOW MENU  */
.show-menu {
  top: 0;
}

/* ADD SHADOW HEADER */
.shadow-header {
  box-shadow: 0 4px 16px hsla(12, 85%, 8%, 0.3);
}

/* ACTIVE LINK  */
.active-link {
  color: var(--first-color);
}

/* HOME  */
.home__container {
  position: relative;
  padding-top: 3rem;
  row-gap: 0;
}
.home__title {
  color: var(--body-color);
  font-size: var(--biggest-font-size);
  font-weight: var(--font-semi-bold);
  text-align: center;
}
.home__images {
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: center;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
}
.home__shape {
  width: 100%;
  background-color: var(--first-color);
  border-radius: 50%;
  aspect-ratio: 1/1;
}

.home__images img {
  position: absolute;
  max-width: 100%;
  height: auto;
}
.home__catering {
  width: 100%;
  max-width: 300px;
  top: -1.5rem;
  rotate: -10deg;
}
.home__splash {
  max-width: initial;
  width: 350px;
}
.home__broccoli-1 {
  width: 60px;
}
.home__broccoli-2 {
  width: 40px;
}
.home__broccoli-1 {
  left: 1.5rem;
  top: 1.5rem;
  rotate: 20deg;
}
.home__broccoli-2 {
  right: 2rem;
  bottom: 2rem;
  rotate: 90deg;
  filter: blur(0.5px);
}
.home__mushrooms-1 {
  width: 40px;
  left: 2.4rem;
  bottom: 2rem;
  rotate: 5deg;
}

.home__mushrooms-2 {
  width: 50px;
  right: 1rem;
  rotate: -80deg;
  top: 1rem;
}
.home__lettuce {
  width: 70px;
  right: 6rem;
  bottom: -0.9rem;
}
.home__sticker {
  position: absolute;
  width: 55px;
  right: 0.5rem;
  top: 20rem;
  rotate: 15deg;
}
.home__data {
  margin-top: 2.5rem;
  text-align: center;
}
.home__description {
  color: var(--body-color);
  margin-bottom: 1.5rem;
}
.button {
  display: inline-flex;
  justify-content: center;
  background-color: var(--first-color);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 0.5rem 1rem;
  transition:
    background 0.4s,
    box-shadow 0.4s;
}
.button:hover {
  background-color: var(--body-color);
  box-shadow: 0 8px 24px hsla(12, 85%, 8%, 0.2);
}
.button-dark {
  margin-top: 1.5rem;
  background-color: var(--dark-color);
}
.button-dark:hover {
  background-color: var(--body-color);
}

/* POPULAR  */
.popular {
  background-color: var(--body-white-color);
}
.popular .section__title {
  color: var(--title-color);
}
.popular__swiper {
  padding-top: 1.5rem;
}
.popular__card {
  margin-inline: auto;
  width: 280px;
  display: grid;
  white-space: normal;
  word-break: break-word;
  line-height: 1.5rem;
}
.popular__images {
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: center;
  min-height: 200px;
}
.popular__shape {
  background-color: var(--first-color);
  aspect-ratio: 1/1;
  width: 200px;
  border-radius: 50%;
  clip-path: inset(50% 0 0 0);
}
.popular__images img {
  position: absolute;
}
.popular__menu {
  width: 200px;
  top: 1rem;
  left: 0;
  right: 0;
  margin: auto;
}
.popular__broccoli-1 {
  width: 40px;
  top: 3rem;
  left: 10rem;
  transition: transform 0.5s 0.1s;
  rotate: -80deg;
}
.popular__broccoli-2 {
  width: 30px;
  top: 9rem;
  left: 1.5rem;
  transition: transform 0.5s 0.1s;
  rotate: 20deg;
  filter: blur(0.5px);
}
.popular__button {
  display: inline-flex;
  justify-content: center;
  background-color: var(--first-color);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 0.5rem 1rem;
  transition:
    background 0.4s,
    box-shadow 0.4s;
}
.popular__data {
  text-align: center;
}
.popular__name {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}
.popular__description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5rem;
  margin-bottom: 1rem;
}
.popular__card:hover .popular__spoon {
  transform: translate(-0.5rem, -0.25rem);
}
.popular__card:hover .popular__fork {
  transform: translate(-0.5rem, -0.25rem);
}

/* SWIPER CLASSES  */
.swiper {
  overflow: hidden;
  margin-inline: initial;
}
.swiper-wrapper {
  align-items: stretch;
}

/* ABOUT  */
.about__container {
  row-gap: 3rem;
}
.about__data {
  text-align: center;
}
.about .section__title,
.about__description {
  color: var(--title-color);
  margin-bottom: 1.5rem;
}
.about__images {
  position: relative;
  display: grid;
  place-items: center;
  width: min(300px, 80vw);
  margin-inline: auto;
  align-items: center;
}
.about__shape {
  aspect-ratio: 1/1;
  width: 100%;
  background-color: var(--first-color);
  border-radius: 50%;
  clip-path: inset(50% 0 0 0);
}
.about__images img {
  position: absolute;
}
.about__menu {
  width: 100%;
  max-width: 280px;
  filter: drop-shadow(0 32px 16px hsla(292, 85%, 8%, 0.5));
}

.about__pakchoy-1,
.about__pakchoy-2 {
  width: 50px;
}

.about__pakchoy-1 {
  top: 10.5%;
  left: 4%;
  rotate: -20deg;
}
.about__pakchoy-2 {
  bottom: 15%;
  right: 10%;
  rotate: 40deg;
}

/* PRODUCTS */
.products {
  background-color: var(--first-color);
}
.products .section__title {
  color: var(--dark-color);
  padding-top: 2rem;
}
.products__container {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.products__card {
  position: relative;
  background-color: var(--dark-color);
  padding: 1rem 0.5rem 1.25rem;
}
.products__images {
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: center;
  height: 200px;
}
.products__shape {
  aspect-ratio: 1/1;
  max-width: 180px;
  width: 100%;
  background-color: var(--first-color);
  border-radius: 50%;
  clip-path: inset(50% 0 0 0);
}
.products__images img {
  position: absolute;
}
.products__menu {
  width: 100%;
  top: 0;
  transition: transform 0.4s;
}
.products__broccoli-1 {
  width: 30px;
  left: 0.5rem;
  top: 1.8rem;
  transition: transform 0.4s;
}
.products__broccoli-2 {
  width: 40px;
  right: -0.2rem;
  top: 10rem;
  transition: transform 0.4s;
}
.products__data {
  margin-top: 1.5rem;
}
.products__name {
  color: var(--white-color);
  margin: 0.75rem;
  font-size: var(--h3-font-size);
}
.products__price {
  color: white;
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}
.products__button {
  position: absolute;
  right: 0.5rem;
  bottom: 1.25rem;
  width: 32px;
  height: 32px;
  background-color: var(--first-color);
  color: var(--dark-color);
  font-size: 1.5rem;
  border-radius: 50%;
  box-shadow: 0 4px 8px hsla(292, 85%, 8%, 0.4);
  display: grid;
  cursor: pointer;
  place-items: center;
}
.products__card:hover .products__menu {
  transform: translateY(0.3rem);
}
.products__card:hover .products__broccoli-1 {
  transform: translate(-0.25rem, -0.25rem);
}
.products__card:hover .products__broccoli-2 {
  transform: translate(0.25rem, 0.25rem);
}

/* CONTACT */

.contact__section .contact__title {
  color: var(--dark-color);
}
.contact__container,
.contact__info {
  row-gap: 2rem;
}
.contact__info {
  color: var(--dark-color);
  text-align: center;
}
.contact__title {
  font-size: var(--h1-font-size);
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}
.contact__social {
  display: flex;
  justify-content: center;
  column-gap: 1rem;
}
.contact__social-link {
  color: var(--first-color);
  font-size: 1.5rem;
  transition: transform 0.4s;
}
.contact__social-link:hover {
  transform: translateY(0.25rem);
}
.contact__address {
  font-style: normal;
}
.contact__map {
  color: var(--first-color);
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 1rem;
}
.contact__map span {
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
}
.contact__images {
  position: relative;
  display: grid;
  justify-items: center;
  margin-top: 3rem;
}
.contact__shape {
  margin-bottom: 1rem;
  max-width: 290px;
  width: 100%;
  aspect-ratio: 1/1;
  background-color: var(--first-color);
  border-radius: 50%;
  clip-path: inset(50% 0 0 0);
}
.contact__delivery {
  position: absolute;
  width: 100%;
  max-width: 250px;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}

/* FOOTER  */
.footer {
  background-color: var(--body-first-color);
  padding-block: 4rem 2rem;
}
.footer__container {
  row-gap: 3rem;
}
.footer__title {
  font-size: var(--h2-font-size);
  color: var(--dark-color);
  margin-bottom: 1rem;
}
.footer__social,
.footer__pay,
.footer__form {
  display: flex;
  column-gap: 1rem;
}
.footer__social-link {
  font-size: 1.5rem;
  color: var(--dark-color);
  transition: transform 0.4s;
}
.footer__social-link:hover {
  transform: translateY(0.25rem);
}
.footer__pay {
  width: 30px;
}
.footer__form {
  background-color: var(--dark-color);
  padding: 0.5rem;
}
.footer__input {
  width: 100%;
  background: transparent;
  padding-left: 0.5rem;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
}
.footer__input::placeholder {
  color: var(--white-color);
}
.footer__button {
  padding: 0.75rem 0.5rem;
  color: var(--dark-color);
  cursor: pointer;
}
.footer__copy {
  display: block;
  margin-top: 4rem;
  text-align: center;
  color: var(--dark-color);
  font-size: var(--small-font-size);
}

/* SCROLL-BAR  */
::-webkit-scrollbar {
  width: 0.7rem;
  background-color: hsl(12, 20%, 30%);
}
::-webkit-scrollbar-thumb {
  background-color: hsl(12, 20%, 40%);
}
::-webkit-scrollbar-thumb:hover {
  background-color: hsl(12, 20%, 50%);
}
/* SCROLL-UP  */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  box-shadow: 0 4px 8px hsla(12, 85%, 8%, 0.4);
  color: var(--white-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition:
    bottom 0.4s,
    transform 0.4s;
}

.scrollup:hover {
  transform: translateY(-0.5rem);
}
.show-scroll {
  bottom: 3rem;
}

/* BREAKPOINTS */
/* FOR SMALL DEVICES */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }
  .section__title {
    font-size: 2rem;
  }
  .home__title {
    font-size: 3.5rem;
  }
  .home__shape,
  .home__menu {
    width: 100%;
  }
  .home__splash {
    width: 100%;
  }
  .home__sticker {
    top: -1%;
  }
  .popular__card {
    width: 100%;
  }
  .popular__container {
    width: 100%;
    margin-inline: auto;
  }
  .about__container {
    justify-content: center;
  }
  .about__shape,
  .about__menu {
    width: 100%;
  }
  .products__container {
    grid-template-columns: 180px;
    justify-content: center;
  }
  .contact__image {
    position: relative;
  }
  .contact__shape {
    width: 100%;
  }
  .contact__delivery {
    width: 100%;
  }
}

@media screen and (min-width: 480px) {
  .container {
    margin-inline-start: 1rem;
  }
  .section__title {
    font-size: 2rem;
  }
  .home__title {
    font-size: 3.5rem;
  }
  .home__shape,
  .home__menu {
    width: 100%;
  }
  .home__sticker {
    top: 2%;
  }
  .about__shape,
  .about__menu {
    width: 100%;
  }
  .products__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .contact__shape,
  .contact__delivery {
    width: 100%;
  }
}
/* FOR MEDIUM DEVICES */
@media screen and (min-width: 576px) {
  .home__container,
  .about__container {
    grid-template-columns: 400px;
    justify-content: center;
  }
  .products__container {
    grid-template-columns: repeat(2, 280px);
    justify-content: center;
  }
  .footer__form {
    width: 100%;
  }
  .contact__delivery {
    width: 100%;
  }
}
@media screen and (min-width: 768px) {
  .popular__swiper {
    width: 850px;
    overflow-x: clip;
    justify-self: center;
  }
  .products__container {
    grid-template-columns: repeat(3, 220px);
  }
  .contact__container {
    justify-content: center;
  }
  .contact__info {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    column-gap: 6rem;
  }
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }
  .footer div:nth-child(3) {
    grid-column: 1/3;
  }
  .contact__delivery {
    width: 300px;
  }
}

/* FOR LARGE DEVICES */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }
  .section {
    padding-block: 7rem 5rem;
  }
  .section__title {
    margin-bottom: 4rem;
  }
  .nav {
    height: calc(var(--header-height) + 2rem);
  }
  .nav__toggle,
  .nav__close {
    display: none;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 4rem;
  }
  .nav__link {
    font-size: var(--normal-font-size);
  }
  .home__container {
    grid-template-columns: 1050px;
    max-width: 1050px;
    padding-top: 2.5rem;
  }
  .home__shape,
  .home__menu {
    width: 100%;
  }
  .home__data {
    position: absolute;
    top: 10rem;
    left: 0;
    width: 300px;
    text-align: initial;
    margin-top: 0;
    font-size: var(--normal-font-size);
  }
  .home__description {
    margin-bottom: 6rem;
  }
  .home__sticker {
    width: 150px;
    top: 23%;
    right: 0;
  }
  .popular__container {
    padding-bottom: 2rem;
  }
  .popular__swiper {
    width: 100%;
  }
  .about__container {
    grid-template-columns: 430px 500px;
    align-items: center;
    column-gap: 6rem;
    padding-block: 2rem;
  }
  .about__data,
  .about .section__title {
    text-align: initial;
  }
  .about__description {
    margin-bottom: 4rem;
  }

  .about__shape,
  .about__menu {
    width: 100%;
  }
  .products__container {
    grid-template-columns: repeat(3, 275px);
    gap: 5rem;
    padding-bottom: 2rem;
  }
  .products__card {
    padding: 1.5rem 1rem 2rem;
  }
  .products__data {
    margin-top: 1.5rem;
  }
  .products__name,
  .products__price {
    text-align: center;
    font-size: var(--h2-font-size);
  }
  .products__button {
    right: 1rem;
    bottom: 2rem;
    width: 36px;
    height: 36px;
  }
  .contact .section__title {
    font-size: var(--biggest-font-size);
  }
  .contact__container {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
  .contact__info {
    grid-template-columns: max-content;
    row-gap: 6rem;
    margin-top: 7rem;
  }
  .contact__info:nth-child(2) {
    order: 2;
  }
  .contact__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
  }
  .contact__social {
    column-gap: 1.5rem;
  }
  .contact__images {
    margin-top: 0;
  }
  .contact__shape {
    justify-content: center;
    width: 500px;
  }
  .contact__delivery {
    width: 500px;
  }
  .footer__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__container div:nth-child(3) {
    grid-column: initial;
  }
  .footer__container div:nth-child(2) {
    order: 1;
    justify-self: end;
  }
  .footer__container div:nth-child(1) {
    justify-self: start;
  }
  .footer__social,
  .footer__pay {
    margin-inline: auto;
    justify-content: center;
  }
  .footer__copy {
    margin-top: 5rem;
  }
  .footer__title {
    font-size: var(--h2-font-size);
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
  }
  .scrollup {
    right: 3rem;
  }
}
/* For 2k resolutions (2048 x 1152, 2048 x 1536) */
@media screen and (min-width: 2084px) {
  body {
    zoom: 1.3;
  }
}
