/* === Navbar Header=== */
.navbar-header__logo {
  width: 8rem;
}

.navbar-header__logo img {
  max-width: 140%;
  height: auto;
  transition: max-width 0.45s ease;
}

.navbar-header {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) var(--space-md);
}

.navbar-header__links {
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: 5rem;
  gap: 3rem;
  list-style: none;
  background-color: var(--Cream);
}

/* === Burger Menu=== */
.navbar-header__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.navbar-header__toggle i {
  color: var(--Slate-500);
}

@media (max-width: 57.5rem) {
  .navbar-header__logo img {
    max-width: 100%;
  }

  .navbar-header__toggle {
    display: block;
  }

  .navbar-header__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      transform 0.4s ease,
      opacity 0.4s ease;
    pointer-events: none;
  }

  .navbar-header__links.active {
    max-height: 50rem;
    opacity: 1;
    transform: translateY(0);
    padding: 2rem 0;
    pointer-events: all;
  }

  .navbar-header__cart-button {
    margin-left: 1rem;
  }
}

/* === Restaurant Overview === */
.restaurant-header {
  background-image: url(../assets/img/NomadKitchen.jpg);
  height: 40rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.restaurant-name {
  font-family: var(--font-headlines);
  font-weight: var(--font-weight-900);
  font-size: clamp(3.6rem, 3.8vw, 5.6rem);
}

.restaurant-subtitle {
  font-style: var(--font-style-italic);
  font-size: clamp(1.6rem, 1.8vw, 1.8rem);
}

.restaurant-meta,
.restaurant-details {
  display: flex;
  gap: 1rem;
}

.restaurant-nav {
  min-height: 5.2rem;
  border-top: 0.1rem solid var(--Slate-200);
  border-bottom: 0.1rem solid var(--Slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-lg) 0;
}

.restaurant-nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 3.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 33.125rem) {
  .restaurant-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.6rem;
  }
}

@media (max-width: 420px) {
  .restaurant-meta {
    flex-direction: column;
  }
}

/* === Restaurant Dishes === */
.dishes-content__card {
  display: flex;
  position: relative;
  background-color: var(--White);
  margin-bottom: 2rem;
  border-radius: 1.4rem;
  box-shadow: 3px 3px 50px 0px rgba(0, 0, 0, 0.1);
}

.dishes-content__category {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dishes-content__category-title {
  font-size: clamp(2rem, 2.4vw, 2.8rem);
  font-weight: var(--font-weight-800);
  font-style: var(--font-style-italic);

  color: var(--Red);
}

.dishes-content__card-img {
  max-width: 20rem;
  border-radius: 1.4rem 0 0 1.4rem;
}

.dishes-content__card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-md);
}

.dishes-content__card-name {
  font-size: clamp(2rem, 2.2vw, 2.4rem);
  font-weight: var(--font-weight-800);
}

.dishes-content__card-description {
  font-style: var(--font-style-italic);
  font-size: clamp(1.6rem, 1vw, 1.8rem);
}

.dishes-content__card-price {
  font-size: clamp(2rem, 2.2vw, 2.4rem);
  font-weight: var(--font-weight-900);
  color: var(--Red);
}

@media (max-width: 38.75rem) {
  .dishes-content__card {
    flex-direction: column;
  }

  .dishes-content__card-img {
    border-radius: 1.4rem 1.4rem 0 0;
    max-width: 100%;
  }
}

/* === Buttons === */
.navbar-header__cart-button {
  background: var(--Red);
  color: var(--White);
  border-radius: 2.6rem;
  padding: 1.2rem 4rem;
  font-size: 1.6rem;
  transition:
    background-color 0.4s ease-in-out,
    color 0.4s ease-in-out,
    transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.1);
  position: relative;
}

.navbar-header__cart-button:hover {
  background: var(--Slate-500);
}

.dishes-content__card-button {
  gap: 1rem;
  position: absolute;
  left: 2.8rem;
  bottom: -1.8rem;
  padding: var(--space-xs) var(--space-lg);
  border-radius: 1.2rem;
  background-color: var(--White);
  border-style: solid;
  border-width: 0.1rem;
  color: var(--Slate-500);
  border-color: var(--Slate-500);
  transition:
    background-color 0.1s ease-out,
    transform 0.3s ease;
  cursor: pointer;
}

.dishes-content__card-button:hover {
  background-color: var(--Red);
  transition:
    background-color 0.3s ease-in-out,
    transform 0.3s ease;
}

.dishes-content__card-button--clicked {
  background-color: var(--Red) !important;
}

.dishes-content__card-button i {
  color: var(--Slate-500);
}

@media (max-width: 57.5rem) {
  .navbar-header__cart-button {
    position: fixed;
    bottom: 1rem;
    left: 70%;
    transform: translateX(-50%);
    margin: 0;
    width: 40%;
    border-radius: 2.6rem;
    padding: 1.8rem;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: var(--font-weight-800);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
    background: var(--Red);
    color: var(--White);
  }

  .navbar-header__cart-button:hover {
    background: var(--Slate-500);
  }

  .navbar-header__links.active {
    padding-bottom: 6rem;
  }
}

@media (max-width: 38.75rem) {
  .dishes-content__card-button {
    position: relative;
    left: auto;
    right: auto;
    top: -1.8rem;
    margin: 0 auto;
  }
}

/* === Links === */
.navbar-header__links a {
  flex-direction: row;
  gap: 0.5rem;
  font-size: 1.6rem;
  padding: 0.5rem 0;
  position: relative;
  text-transform: uppercase;
}

.navbar-header__links a:hover {
  color: var(--Red);
  transform: translateY(-3px);
}

.navbar-header__links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--Red);
  transition: width 0.3s ease;
}

.navbar-header__links a:hover::after {
  width: 100%;
}

.restaurant-nav a {
  font-size: clamp(1.6rem, 1.8vw, 2rem);
  font-weight: var(--font-weight-700);
  text-decoration: none;
  transition:
    color 0.2s ease-in-out,
    transform 0.2s ease;
}

.restaurant-nav a:hover {
  color: var(--Red);
}

[id] {
  scroll-margin-top: var(--space-4xl);
}

/* === Icons === */
.restaurant-rating__icon {
  color: var(--Red);
}
