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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #FAF6F1;
  color: #3E2A20;
  font-family: "Poppins", sans-serif;
}

/* ================= NAVBAR ================= */

.nav__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(75, 46, 32, 0.08);
  background-color: rgba(245, 237, 228, 0.94);
  backdrop-filter: blur(5px);
}

.nav__title {
  font-size: 24px;
  font-weight: 500;
  flex: 60%;
  color: #4B2E20;
}

.nav__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 40%;
}

.nav__toggle {
  display: none;
  font-size: 20px;
  cursor: pointer;
  color: #4B2E20;
  align-self: center;
}

.nav__list-item {
  list-style-type: none;
  padding: 10px 15px;
  color: #7B4B2A;
  border-radius: 6px;
  transition: color 0.3s;
  font-weight: 500;
}

.nav__list-item:hover {
  cursor: pointer;
  background-color: #7B4B2A;
  transition: background-color 0.3s;
  color: #ffffff;
}

/* ================= HERO ================= */

.hero {
  height: 80vh;
  width: 100%;
  background-image: url(images/coffee.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero__container {
  position: relative;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -30%);
  text-align: center;
  padding: 15px;
}

.hero__title {
  color: #FEFEFE;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 29px;
}

.hero__p {
  color: #FEFEFE;
  font-size: 14px;
  margin-bottom: 5px;
}

.fa-mug-saucer {
  color: #E8D5C4;
}

.hero__btn {
  cursor: pointer;
  padding: 5px 12px;
  margin-top: 5px;
  color: #fff;
  background-color: #7B4B2A;
  border: none;
  border-radius: 4px;
}

.hero__btn:hover {
  background-color: #4B2E20;
  transition: background-color 0.3s;
}

/* ================= ABOUT ================= */

.cafe {
  display: flex;
  gap: 40px;
  margin: 30px;
  background-color: #E8D5C4;
  padding: 60px;
}

.cafe__right {
  display: flex;
  flex-basis: 55%;
  min-width: 280px;
}

.cafe__left {
  display: flex;
  flex-basis: 45%;
  padding: 15px;
  flex-direction: column;
}

.cafe__title {
  margin-bottom: 20px;
  color: #4B2E20;
  font-size: 32px;
}

.cafe__p {
  font-family: "Raleway";
  line-height: 1.6;
  color: #4A382E;
  font-size: 16px;
}

.cafe__img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(75, 46, 32, 0.25);
}

/* ================= CONTACT ================= */

.contact {
  background-color: #FFF8F0;
}

.wrapper {
  display: flex;
  padding: 70px;
  margin: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  border-bottom: 1px solid #7B4B2A;
  margin: 30px auto;
}

.contact__things {
  display: flex;
  gap: 20px;
  flex-direction: column;
  flex-basis: 45%;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.contact__things i {
  color: #7B4B2A;
  font-size: 1.1rem;
  margin-right: 5px;
}

.contact__things p {
  padding-bottom: 10px;
}

.contact__item {
  padding-bottom: 10px;
  gap: 10px;
  min-width: 150px;
}

.contact__title {
  color: #4B2E20;
  border-bottom: 2px solid;
  border-image: linear-gradient(
    to right,
    #4B2E20,
    #B98B6A,
    #7B4B2A,
    #4B2E20
  ) 2;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  flex-basis: 55%;
  padding: 40px;
  margin: 0;
  box-sizing: border-box;
}

.contact__subtitle {
  color: #4B2E20;
  font-size: 20px;
  margin-bottom: 20px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__inp input,
.contact__form textarea {
  padding: 12px;
  border: 1px solid #D5C3B4;
  border-radius: 6px;
  font-family: "Raleway", sans-serif;
  outline: none;
  margin-bottom: 10px;
}

.contact__inp {
  display: flex;
  flex-direction: row;
  height: auto;
  gap: 20px;
}

.contact__inp input {
  width: 100%;
}

.contact__form textarea {
  height: auto;
  min-height: 80px;
  resize: vertical;
}

.contact__form button {
  background-color: #7B4B2A;
  padding: 12px;
  color: #fff;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 0;
}

.contact__form button:hover {
  background-color: #4B2E20;
}

.contact__inp input:focus,
.contact__form textarea:focus {
  border: 1px solid #7B4B2A;
  box-shadow: 0 0 3px rgba(123, 75, 42, 0.3);
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact__socials {
  display: flex;
  justify-content: center;
  margin: 40px 0px;
  gap: 30px;
}

.contact__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #7B4B2A;
  color: #FFF8F0;
  border-radius: 50%;
  font-size: 16px;
  transition: all 0.3s ease;
}

.contact__socials a:hover {
  background-color: #FFF8F0;
  color: #7B4B2A;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(123, 75, 42, 0.25);
}

/* ================= MENU ================= */

.menu {
  padding: 60px;
  background-color: #F0E1D2;
  text-align: center;
  margin: 30px;
}

.menu__title {
  color: #4B2E20;
  font-size: 32px;
  margin-bottom: 40px;
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 30px;
}

.menu__card {
  background-color: #FFFDF9;
  display: flex;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(75, 46, 32, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(75, 46, 32, 0.18);
}

.menu__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
}

.menu__item {
  font-size: 20px;
  color: #7B4B2A;
  margin-bottom: 5px;
}

.menu__desc {
  color: #66554A;
  font-size: 14px;
  margin-bottom: 10px;
}

.menu__price {
  font-weight: bold;
  color: #3E2A20;
}

.menu__btn {
  color: #fff;
  background-color: #7B4B2A;
  margin: 10px 0px;
  transition: all 0.3s ease-in;
  padding: 8px;
  border-radius: 6px;
  outline: none;
  border: none;
}

.menu__btn:hover {
  cursor: pointer;
  background-color: #4B2E20;
}

/* ================= FOOTER ================= */

.footer {
  background-color: #E8D5C4;
  margin-top: 15px;
  color: #66554A;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.footer__text {
  color: #4A382E;
  font-size: 14px;
  margin-top: 10px;
  align-self: center;
  padding: 5px;
}

.footer__links {
  display: flex;
  flex-direction: row;
  padding: 10px;
  justify-content: space-around;
}

.footer__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: auto;
}

.footer__item a {
  color: #4A382E;
  text-decoration: none !important;
  display: inline-block;
}

.footer__item a:hover {
  text-decoration: underline solid #7B4B2A 1px !important;
  color: #7B4B2A;
  transition: all 0.1s ease-in;
}

.footer__item p {
  color: #7B4B2A;
  margin-top: 5px;
}

.footer__item h4 {
  margin-bottom: 10px;
  color: #4B2E20;
}

.footer__item-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact__socials a {
  text-decoration: none !important;
}

.fab,
.fas {
  display: inline-block;
  text-decoration: none;
  border-bottom: none;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .nav__container {
    display: flex;
    flex-direction: row;
    padding: 15px;
    flex-wrap: wrap;
  }

  .nav__container h2 {
    font-size: 22px;
    padding: 10px;
  }

  .nav__list {
    padding: 10px;
    width: 100%;
    display: none;
    flex-direction: column;
    border-radius: 8px;
    background-color: rgba(245, 237, 228, 0.97);
    margin-top: 10px;
  }

  .nav__list-item {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav__toggle {
    display: block;
  }

  .hero__title {
    font-size: 20px;
  }

  .hero__p {
    font-size: 14px;
  }

  .hero__btn {
    font-size: 12px;
    display: inline-block;
  }

  .fa-mug-saucer {
    font-size: 1rem;
  }

  .cafe {
    flex-direction: column;
  }

  .cafe__left {
    flex-basis: 100%;
  }

  .cafe__right {
    flex-basis: 100%;
  }

  .cafe__img {
    width: 100%;
  }

  .cafe__p {
    font-size: 14px;
  }

  .cafe__title {
    font-size: 24px;
  }

  .menu__grid {
    grid-template-columns: 1fr;
  }

  .menu__price {
    margin-bottom: 5px;
  }

  .menu__title {
    font-size: 24px;
  }

  .menu__btn {
    font-size: 12px;
    box-sizing: border-box;
  }

  .menu__item {
    font-size: 18px;
  }

  .menu,
  .contact,
  .cafe,
  .footer {
    padding: 15px;
    margin: 10px;
  }

  .wrapper {
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    max-width: 100%;
    padding: 0%;
  }

  .contact__title {
    font-size: 22px;
    width: 100%;
  }

  .contact__item {
    min-width: 200px;
  }

  .contact__item p {
    font-size: 14px;
  }

  .contact__item i {
    font-size: 17px;
  }

  .contact__form {
    margin-bottom: 50px;
    flex-basis: 100%;
    padding: 0px;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: center;
  }

  .contact__info input,
  .contact__info textarea,
  .contact__info button {
    width: 100%;
    box-sizing: border-box;
  }

  .contact__things {
    flex-basis: 100%;
    align-items: flex-start;
    justify-content: center;
  }

  .contact__inp {
    flex-direction: column;
  }

  .contact__inp input {
    margin-bottom: 15px;
    width: 100%;
  }

  .contact__socials a {
    font-size: 12px;
    width: 40px;
    height: 40px;
  }

  .contact__info {
    flex-wrap: wrap;
    width: 100%;
  }

  .footer__links {
    flex-direction: column;
  }

  .footer__item {
    gap: 8px;
    min-height: 90px;
  }

  .footer__item a,
  .footer__item p {
    font-size: 13px;
  }

  .footer__item h4 {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .footer__item-link {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }

  .footer__text {
    margin: 0;
    font-size: 12px;
  }
}

/* ================= TABLET ================= */

@media (min-width: 769px) and (max-width: 1024px) {
  .menu__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wrapper {
    flex-direction: column;
    padding: 30px;
    gap: 25px;
  }

  .contact__item {
    width: 100%;
  }

  .cafe {
    flex-direction: column;
  }

  .cafe__left {
    flex-basis: 100%;
  }

  .cafe__right {
    flex-basis: 100%;
  }

  .cafe__img {
    width: 100%;
  }
}