/* ************************************************************* */
/* BELOW 1344px (Smaller desktops)
(84*16=1344) */
/* ************************************************************* */

/* * ************************************************************* */
/* BELOW 1200px (Landscape tablets)*/
/* ************************************************************* */
@media (max-width: 76em) {
  html {
    /* 9px / 16 = 0.5625 = 56.25% */
    font-size: 56.25%;
  }

  .section--grey {
    padding: 4.8rem 2.4rem;
  }

  .grid {
    column-gap: 4.8rem;
    row-gap: 6.4rem;
  }

  #theme-switch {
    height: 3.2rem;
    width: 3.2rem;
  }

  #theme-switch svg {
    height: 2.4rem;
    width: 3.2rem;
  }
}

/* * ************************************************************* */
/* BELOW 944px (Tablets)*/
/* ************************************************************* */
@media (max-width: 59em) {
  html {
    /* 8px / 16px = 0.5 = 50% */
    font-size: 50%;
  }

  .header-img-section {
    height: 50vh;
    background-attachment: fixed;
    background-position: center center;
  }

  .menu-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr !important;
    grid-template-rows: 1fr 1fr 1fr 1fr !important;
    height: 60rem !important;
    width: 95% !important;
  }

  .menu-wrapper {
    margin-top: 1.4rem !important;
    width: 95% !important;
    padding: 1.2rem 1rem !important;
  }

  .scroll-btn {
    display: none;
  }

  .info-window {
    width: 97% !important;
  }

  .info-content {
    width: 90% !important;
  }

  .info-title {
    font-size: 2.4rem !important;
    top: 10% !important;
  }

  .info-text {
    font-size: 1.8rem !important;
    top: 55% !important;
    padding: 0 10rem !important;
  }

  .mob-menu-close-btn {
    display: flex !important;
  }

  .grid--2-cols {
    grid-template-columns: 1fr;
  }

  .grid--3-cols {
    grid-template-columns: 1fr;
  }

  .main-heading {
    text-align: center;
    line-height: 1.2;
    font-size: 3.4rem;
    letter-spacing: 0.2px;
    margin-top: 2.4rem;
    /* font-weight: 400; */
  }

  #theme-switch {
    position: absolute;
    left: 3.2rem;
  }

  /* MOBILE NAVIGATION */

  .header {
    justify-content: flex-end;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
  }

  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  :root {
    --nav-background-color: rgba(255, 255, 255, 0.9);
  }

  .darkmode {
    --nav-background-color: rgba(42, 42, 42, 0.9);
  }

  .main-nav {
    background-color: var(--nav-background-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(5px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;
    transform: translateX(100%);

    /* HIDE NAVIGATION */
    /* Display allows NO transition (animate) at all */
    /* display: none; */

    /* 1) Hide it visually */
    opacity: 0;

    /* 2) Make it unaccessible to mouse and keyboard */
    pointer-events: none;

    /* 3) Hide it from screen readers */
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
  }
}

/* BELOW 763px phones */
@media (max-width: 47.68em) {
  .main-heading {
    font-size: 2rem;
  }

  .menu-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    height: 84vh !important;
    width: 95%;
  }

  .menu-wrapper {
    width: 97%;
  }
}
