/*===== FONTS =====*/
@font-face {
  font-family: AvenirNextCyrHeavy;
  src: url(../fonts/AvenirNextCyr-Heavy.ttf);
}
@font-face {
  font-family: avenirnextcyrregular;
  src: url(../fonts/avenirnextcyr-regular.ttf);
}
@font-face {
  font-family: avenirnextcyrmedium;
  src: url(../fonts/avenirnextcyr-medium.ttf);
}
@font-face {
  font-family: avenirnextcyritalic;
  src: url(../fonts/avenirnextcyr-mediumitalic.ttf);
}
/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;

  /*========== Colors ==========*/
  --first-color: #f64804;
  --first-color-alt: #fc6804;
  --title-color: #393939;
  --text-color: #707070;
  --text-color-light: #a6a6a6;
  --body-color: #fbfefd;
  --container-color: #ffffff;

  /*========== Font and typography ==========*/
  --title-font: AvenirNextCyrHeavy, sans-serif;
  --body-font: avenirnextcyrregular, sans-serif;
  --body-font-alt: avenirnextcyritalic, sans-serif;
  --body-font-medium: avenirnextcyrmedium, sans-serif;
  --biggest-font-size: 6rem;
  --subtitle-font-size: 2.3rem;
  --subtitle-font-size-mobile: 2.7rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Margenes ==========*/
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

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

/*========== BASE ==========*/
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --title-color: #f1f3f2;
  --text-color: #c7d1cc;
  --body-color: #1d2521;
  --container-color: #27302c;
}

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

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*========== CLASS CSS ==========*/
.section {
  padding: 1rem 0 2rem;
}

.section-title,
.section-subtitle {
  text-align: center;
  font-family: var(--title-font);
}

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

.section-subtitle {
  display: block;
  color: var(--first-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

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

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

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

/*========== NAV ==========*/
.nav {
  max-width: 1024px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--h3-font-size);
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 0 1rem;
    text-align: center;
    font-size: var(--h2-font-size);
    background-color: var(--first-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 {
  color: var(--title-color);
  font-family: var(--body-font);
}

.nav__logo,
.nav__toggle {
  color: #f1f3f2;
  font-family: var(--title-font);
  font-size: var(--h2-font-size);
}

img.nav__logo {
  height: var(--h2-font-size);
}

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

.nav__link {
  transition: 0.3s;
}

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

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

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

/* Active menu */
.active-link {
  color: var(--body-color);
}

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

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

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

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

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

/*========== HOME ==========*/
.home__container {
  height: calc(100vh - var(--header-height));
  align-content: center;
  margin-left: 0;
  width: 100%;
}

.home__title {
  font-size: var(--biggest-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-1);
  font-family: var(--title-font);
}

.home__subtitle {
  width: 360px;
  fill: var(--title-color);
  margin-bottom: var(--mb-5);
  margin-top: -1rem;
}

.home__data {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.home__buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.home__img {
  width: 800px;
  justify-self: center;
  padding: 0 5px 0 5px;
}

/*========== BUTTONS ==========*/
.button {
  font-family: var(--body-font-medium);
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  transition: 0.3s;
  width: max-content;
}

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

.button_deliveroo {
  background-color: rgb(92, 201, 188);
  font-family: var(--body-font)
}

.button_deliveroo:hover {
  background-color: rgb(116, 241, 227);
}

.classy {
  font-family: var(--body-font-alt);
}

.gap {
  width: 10px;
}
/*========== ABOUT ==========*/
.about__data {
  text-align: center;
}

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

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

/*========== SERVICES ==========*/
.services__container {
  row-gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.services__content {
  text-align: center;
}

.services__img {
  width: 64px;
  height: 64px;
  fill: var(--first-color);
  margin-bottom: var(--mb-2);
}

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

.services__description {
  padding: 0 1.5rem;
}

.services__highlight {
  font-family: var(--title-font);
  color: var(--first-color);
}

.deliveroo {
  color: rgb(92, 201, 188);
}

/*========== CONTACT ==========*/
.contact__container {
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.contact__data {
  width: 100%;
}

.contact__map {
  width: 100%;
}
/*========== FOOTER ==========*/
.footer__container {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  font-family: var(--title-font);
}

.footer__phone {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  display: block;
  text-align: center;
}

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

.footer__social {
  font-size: 3rem;
  color: var(--title-color);
  margin-right: var(--mb-2);
}

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

.footer__content {
  text-align: center;
}

.footer_details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

/*========== MEDIA QUERIES ==========*/
@media screen and (min-width: 576px) {

}
@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;
    display: flex;
    flex-direction: column;
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }

  .section {
    padding-top: 5rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list {
    display: flex;
  }
  .nav__item {
    margin-left: var(--mb-5);
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }

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

  .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;
  }

  .app__store {
    margin: 0 var(--mb-1) 0 0;
  }
}

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

  .home__img {
    width: 800px;
  }

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

  .contact__container {
    flex-direction: row;
  }

  .contact__data {
    width: 60%;
  }

  .contact__map {
    width: 50%;
    height: 350px;
  }

  .footer__title {
    text-align: left;
  }

  .footer__container {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__content {
    text-align: left;
  }

  .footer_details {
    align-items: flex-end;
  }

  .footer__phone {
    text-align: right;
  }
}
