@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');

:root {
  --header-height: 3rem;

  --first-color: #069C54;
  --first-color-alt: #048654;
  --title-color: #393939;
  --text-color: #707070;
  --text-color-light: #A6A6A6;
  --body-color: #FBFEFD;
  --container-color: #FFFFFF;

  --body-font: "Fredoka", sans-serif;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --smaller-font-size: 0.75rem;
  --small-font-size: 0.813rem;
  --normal-font-size: 0.938rem;
  --biggest-font-size: 2.25rem;

  --font-medium: 400;

  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 768px) {
  :root {
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --smaller-font-size: 0.813rem;
    --small-font-size: 0.875rem;
    --normal-font-size: 1rem;
    --biggest-font-size: 4rem;
  }
}

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

html {
  scroll-behavior: smooth;
}



/* Variable Dark Theme */

body.dark-theme {
  --text-color: #C7D1CC;
  --body-color: #1D2521;
  --title-color: #F1F3F2;
  --container-color: #27302C;
}

/* Variable Dark Theme */



/* Button Dark/Light */

.change-theme {
  position: absolute;
  right: 1rem;
  top: 1.8rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-color);
}

/* Button Dark/Light */



body {
  font-family: var(--body-font);
  font-weight: var(--font-medium);
  font-size: var(--normal-font-size);
  font-style: normal;
  margin: var(--header-height) 0 0 0;
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
  letter-spacing: 0.1rem;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #FFF;
  padding: 0.75rem 1rem;
  border-radius: 0.2rem;
  transition: all 0.3s;
}

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



/* LAYOUT */

.container {
  max-width: 960px;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

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

.section {
  padding: 4rem 0 2rem;
}

.section__title,
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-3);
  color: var(--title-color);
}

.section__subtitle {
  display: block;
  margin-bottom: var(--mb-1);
  color: var(--first-color);
}

/* LAYOUT */



/* Change background header */
.scroll-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Scroll top */
.scroll__top {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.1rem;
  background: rgba(6, 156, 84, 0.75);
  z-index: var(--z-tooltip);
  visibility: hidden;
  transition: 0.4s;
}

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

.scroll__top-icon {
  font-size: 1.8rem;
  color: var(--body-color);
}

/* Show scroll top */
.show-scroll {
  visibility: visible;
  bottom: 1.5rem;
}



/* NAV */

.nav {
  max-width: 1024px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 0 1rem;
    text-align: center;
    background-color: var(--body-color);
    transition: 0.4s;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 1rem 1rem;
    z-index: var(--z-fixed);
  }
}

.nav__item {
  margin-bottom: var(--mb-2);
}

.nav__link,
.nav__logo,
.nav__toggle {
  font-weight: 700;
  transition: all 0.3s;
  color: var(--text-color);
}

.nav__logo {
  letter-spacing: 0.15rem;
}

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

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

.nav__toggle {
  font-size: 1.3rem;
  cursor: pointer;
}

.active {
  color: var(--first-color);
}

.show-menu {
  top: var(--header-height);
}

/* NAV */



/* HOME */

.home__container {
  height: calc(100vh - var(--header-height));
  align-content: center;
}

.home__title {
  font-size: var(--biggest-font-size);
  text-transform: uppercase;
  margin-bottom: var(--mb-1);
  color: var(--first-color);
}

.home__subtitle {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-4);
  color: var(--title-color);
}

.home__img {
  width: 300px;
  justify-self: center;
}

/* HOME */



/* ABOUT */

.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: var(--mb-3);
}

.about__img {
  width: 280px;
  border-radius: 0.5rem;
  justify-self: center;
}

/* ABOUT */



/* SERVICES */

.services__container {
  row-gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.services__content {
  text-align: center;
}

.services__img {
  font-size: 3.5rem;
  margin-bottom: var(--mb-2);
  color: var(--first-color);
}

.services__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  color: var(--title-color);
}

.services__description {
  padding: 0 1.5rem;
}

/* SERVICES */



/* MENU */

.menu__container {
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
}

.menu__content {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--container-color);
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(3, 74, 40, 0.15);
  padding: 0.75rem;
}

.menu__img {
  width: 100px;
  align-self: center;
  margin-bottom: var(--mb-2);
}

.menu__name {
  font-size: var(--normal-font-size);
}

.menu__detail {
  margin-bottom: var(--mb-1);
}

.menu__name,
.menu__price {
  color: var(--title-color);
}

.menu__detail,
.menu__price {
  font-size: var(--small-font-size);
}

.menu__button {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  padding: 0.625rem 0.813rem;
  border-radius: 0.5rem 0 0.5rem 0;
}

/* MENU */



/* CONTACT */

.contact__container {
  text-align: center;
}

.contact__description {
  margin-bottom: var(--mb-3);
}

/* CONTACT */



/* FOOTER */

.footer__container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2rem;
}

.footer__logo {
  font-size: var(--h3-font-size);
  transition: all 0.3s;
  color: var(--first-color);
}

.footer__logo:hover {
  color: var(--text-color-light);
}

.footer__description {
  display: block;
  font-size: var(--small-font-size);
  margin: 0.25rem 0 var(--mb-3);
}

.footer__social {
  font-size: 1.5rem;
  margin-right: var(--mb-2);
  transition: all 0.3s;
  color: var(--title-color);
}

.footer__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-2);
  color: var(--title-color);
}

.footer__link {
  display: inline-block;
  margin-bottom: var(--mb-1);
  transition: all 0.3s;
  color: var(--text-color);
}

.footer__social:hover,
.footer__link:hover {
  color: var(--first-color);
}

.footer__copyright {
  text-align: center;
  font-size: var(--small-font-size);
  margin-top: 3.5rem;
  color: var(--text-color-light);
}

.copyright {
  cursor: pointer;
  color: var(--first-color);
}

.br {
  display: block;
}

/* FOOTER */



/* MEDIA QUERIES */

@media screen and (min-width: 576px) {

  .home__container,
  .about__container,
  .app__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about__data,
  .about__initial,
  .app__data,
  .app__initial,
  .contact__container,
  .contact__initial {
    text-align: initial;
  }

  .about__img,
  .app__img {
    width: 380px;
    order: -1;
  }

  .contact__container {
    grid-template-columns: 1.75fr 1fr;
    align-items: center;
  }

  .contact__button {
    justify-self: center;
  }

  .br {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  .section {
    padding-top: 8rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__item {
    margin-left: var(--mb-5);
    margin-bottom: 0;
  }

  .nav__list {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .change-theme {
    position: initial;
    margin-left: var(--mb-3);
  }

  .home__container {
    height: 100vh;
    justify-items: center;
  }

  .services__container,
  .menu__container {
    margin-top: var(--mb-6);
  }

  .menu__container {
    grid-template-columns: repeat(3, 210px);
    column-gap: 4rem;
  }

  .menu__content {
    padding: 1.5rem;
  }

  .menu__img {
    width: 130px;
  }
}

@media screen and (min-width: 960px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .home__img {
    width: 500px;
  }

  .about__container,
  .app__container {
    column-gap: 7rem;
  }
}

/* For tall screens on mobiles y desktop */
@media screen and (min-height: 721px) {
  .home__container {
    height: 640px;
  }
}

/* MEDIA QUERIES */