@media (max-width: 1400px) {
  .container {
    max-width: 1140px;
  }

  .footer-column.hours span.mid-space {
    margin: 0 0.5em;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .header-wrapper {
    padding: 0 2rem;
  }

  h1 {
    font-size: 3.9rem;
  }

  footer .container {
    padding-right: 1rem;
  }

  .footer-column:first-child {
    flex-shrink: 1;
  }

  .footer-column:last-child {
    flex-shrink: 0;
  }
}

@media (max-width: 991px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  h6 {
    font-size: 1.15rem;
  }

  p {
    font-weight: var(--font-weight-thin);
  }

  .header-wrapper {
    top: 20px;
  }

  header {
    flex-direction: column;
    align-items: start;
    gap: 0;
    transition: gap 0.05s 0.25s;
  }

  section,
  footer {
    padding: 50px 0;
  }

  .container {
    max-width: 720px;
    padding: 1rem;
  }

  #logo {
    font-size: var(--h5-font-size);
  }

  #welcome-section {
    min-height: 620px;
    padding: 150px 0 100px 0;
  }

  .toggle-nav-btn {
    display: block;
  }

  nav {
    flex-direction: column;
    gap: 1.3em;
    align-items: start;
    overflow: hidden;
    height: 0;
  }

  nav.open {
    height: 14.2rem; /* sum of all relative heights + gaps + padings */
  }

  header:has(nav.open) {
    gap: 1rem;
    transition: gap 0s;
  }

  header ul {
    flex-direction: column;
    align-items: start;
    gap: 1rem;
    padding: 0 0.9rem;
  }

  #about-section .container,
  #menus-section .container {
    flex-direction: column;
    gap: 2rem;
  }

  .video-info {
    width: 100%;
  }

  .about-text {
    padding: 0;
  }

  #meet-people-section .container {
    padding: 0;
  }

  .baristas-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .barista-item {
    flex-basis: calc(50% - 1.5rem);
    aspect-ratio: 1/1.35;
  }

  .menu-item-base-info {
    padding-bottom: 0.7rem;
  }

  .testimonials-content {
    width: 100%;
    align-items: start;
    padding-left: 3.5rem;
    padding-right: 2rem;
  }

  .testimonials-content::after {
    left: calc(1rem - 2.5px);
    right: auto;
  }

  .testimonial-item {
    width: 100%;
  }

  .testimonial-item::before {
    left: -20px;
    right: auto;
    transform: scaleX(-1);
  }

  .testimonial-item::after {
    right: auto;
    left: calc(-2.5rem - 19.5px);
  }

  .testimonial-item:nth-child(2) {
    transform: none;
  }

  .testimonial-item:nth-child(2)::after {
    left: calc(-2.5rem - 20px);
  }

  #contacts-section .section-body {
    flex-direction: column;
  }

  #contacts-section .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  #contact-form {
    gap: 2rem;
  }

  #contact-form button {
    width: 100%;
  }

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

  iframe {
    flex: auto;
    height: 400px;
  }

  footer .container {
    padding-right: 1rem;
  }

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

  .footer-column.hours ul li {
    margin-bottom: 1rem;
  }

  #reservation-section main {
    flex-direction: column;
    padding: 0;
    width: 100%;
  }

  #reservation-section .img-wrapper {
    position: relative;
    width: 100%;
    max-width: fit-content;
  }

  #reservation-section .img-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/barman-with-fruits.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .form-wrapper {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  #reservation-section .yellow-btn {
    width: 100%;
  }

  #reservation-form .yellow-btn {
    width: 80%;
    min-width: fit-content;
  }

  .footer-column:last-child {
    max-width: 70%;
  }
}

@media (max-width: 767px) {
  .container {
    max-width: 540px;
  }

  .header-wrapper {
    top: 0;
    padding: 1rem;
  }

  h1 {
    margin-top: 0;
    margin-bottom: 1rem;
  }

  #welcome-section .btns a,
  .yellow-btn {
    font-size: 0.9rem;
  }

  .barista-item {
    flex-basis: 100%;
    aspect-ratio: 1/1;
  }

  .barista-photo-bg {
    background-position: top;
  }

  .footer-column:last-child {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .container {
    max-width: 100%;
  }

  #about-section .about-text {
    padding: 0 0.3rem;
  }

  footer .container {
    padding: 0 1.5rem;
  }

  .baristas-list {
    padding: 0 1rem;
  }

  .barista-item {
    flex-basis: 100%;
    aspect-ratio: 1/1.1;
  }

  .testimonial-conten,
  .testimonial-item .item-header {
    padding: 1.3rem;
  }
}

@media (max-width: 470px) {
  h1 {
    font-size: 2.3rem;
  }

  .barista-item {
    flex-basis: 100%;
    aspect-ratio: 1/1.2;
  }

  #welcome-section .content::before {
    top: 0;
    height: 13rem;
    width: 13rem;
  }
}

@media (max-width: 425px) {
  #reservation-section .container {
    padding: 0 0.5rem;
  }

  .header-wrapper {
    padding: 0.5rem;
  }

  nav.open {
    height: 15rem; /* sum of all relative heights + gaps + padings */
  }

  .form-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .menu {
    padding: 2rem;
  }

  .menu-item-description {
    font-size: 1em;
  }

  .testimonials-content {
    padding: 1rem;
    padding-left: 3rem;
    padding-right: 0.7rem;
  }

  .testimonials-content::after {
    left: calc(0.5rem - 3px);
  }
}
