:root {
  --primary-color: rgb(172, 106, 70);
  --white: rgb(255, 255, 255);
  --black: rgb(0, 0, 0);
  --light-grey: rgb(133, 133, 133);
  --light-black: rgb(43, 43, 43);
  --light-gold: rgb(214, 169, 93);
}

html {
  box-sizing: border-box;
  font-family: sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  transition: 300ms ease;
  display: inline-block;
  color: var(--white);
}

img {
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: Lora, sans-serif;
  overflow-x: hidden;
}

.title-style {
  font-size: 2.5rem;
  text-align: center;
  font-family: Great Vibes, serif;
  text-transform: capitalize;
  font-weight: 400;
  color: var(--light-gold);
}

.subtitle-style-white {
  font-size: 3rem;
  text-align: center;
  font-family: Playfair Display, serif;
  font-weight: 800;
  color: var(--white);
}

.subtitle-style-black {
  font-size: 3rem;
  text-align: center;
  font-family: Playfair Display, serif;
  font-weight: 800;
  color: var(--black);
}

.paragraph-style {
  font-size: 1.2rem;
  text-align: center;
  color: var(--light-grey);
  font-weight: 400;
  font-family: Lora, serif;
}

.nav-bar-container {
  position: fixed;
  top: 0;
  z-index: 2;
}

.nav-bar {
  width: 100vw;
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: transparent;
  column-gap: 1rem;
  backdrop-filter: blur(0px);
  transition: backdrop-filter 0.5s ease, background-color 0.5s ease;

  & div:first-child {
    margin-left: 10rem;
  }

  & img {
    max-width: 12rem;
    height: auto;
    transition: max-width 0.4s ease;
  }
}

.nav-bar.scrolled {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  transition: backdrop-filter 0.5s ease, background-color 0.5s ease;

  & img {
    max-width: 11rem;
    transition: max-width 0.4s ease;
  }
}

.hero-container {
  background: url("./images/bakery-background.jpg"), rgba(0, 0, 0, 0.6);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
}

.hero {
  display: flex;
  flex-direction: column;
  padding: 4rem 2rem;
}

.kitchen-section {
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
}

.kitchen {
  padding: 4rem 2rem;
  max-width: 70rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;

  & p {
    margin-top: 1.5rem;
  }
}

.menu-section-container {
  width: 100vw;
}

.menu-section {
  display: flex;
  flex-direction: column;
}

.menu-header {
  background: url("./images/breakfast-background.jpg"), rgba(0, 0, 0, 0.6);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.breakfast {
  background-image: url("./images/breakfast-background.jpg");
}

.menu-content-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem;
}

.menu-content {
  display: flex;
  max-width: 80rem;
  gap: 2rem;

  & article {
    opacity: 0;
    animation: show-item 1s ease-out forwards;
    animation-timeline: view();
    animation-range: entry 25% cover 35%;
  }
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.menu-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;

  & div:first-of-type {
    display: flex;
    justify-content: space-between;
  }

  & div h4 {
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--light-black);
  }

  & div p {
    color: var(--light-gold);
    font-weight: 600;
  }

  & p {
    font-size: 0.9rem;
    color: var(--primary-color);
  }
}

.bakery {
  background-image: url("./images/bread-background.jpg");
}

.cakes {
  background-image: url("./images/cake-background.jpg");
}

.cafeteria {
  background-image: url("./images/coffee-background.jpg");
}

.footer-container {
  background: var(--light-black);
  display: flex;
  flex-direction: column;
}

.footer {
  display: flex;
  justify-content: space-around;
  padding: 2rem;
  color: var(--white);

  & img {
    max-width: 12rem;
    height: auto;
  }

  & h4 {
    font-size: 1.2rem;
    font-family: Playfair Display, serif;
    text-transform: uppercase;
    font-weight: 600;
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;

  & img {
    width: 1.5rem;
  }

  & i {
    font-size: 1.3rem;
  }
}

.footer-copyright {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: var(--black);
  color: var(--white);
}

@keyframes blur-nav-bar {
  to {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
  }
}

@keyframes small-image {
  to {
    max-width: 11rem;
  }
}

@keyframes show-item {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@supports (animation-timeline: scroll()) {
  .nav-bar {
    animation: blur-nav-bar linear both;
    animation-timeline: scroll(root);
    animation-range: 10rem 20rem;

    & img {
      animation: small-image linear both;
      animation-timeline: scroll(root);
      animation-range: 10rem 20rem;
    }
  }
}

@media (max-width: 64rem) {
  html {
    font-size: 13px;
  }
}

@media (max-width: 48rem) {
  html {
    font-size: 12px;
  }

  .nav-bar {
    justify-content: center;

    & div:first-child {
      margin-left: 0;
    }
  }

  .kitchen {
    max-width: 55rem;
  }

  .menu-content-container {
    padding: 3.5rem;
  }

  .menu-content {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    gap: 2rem;
  }
}
