/* rem and em do NOT depend on html font-size in media queries! Instead, 1rem = 1em = 16px */

/**************************/
/* BELOW 1344px (Smaller desktops) */
/* 1344 / 16 = 84em */
/**************************/
@media (max-width: 84em) {
  .page-sep-heading {
    font-size: 3rem;
  }
  .hero-text-box {
    line-height: 1;
    top: 55%;
  }
  /* .hero-text-box h1 {
    font-size: 4rem;
  } */
  .hero-text-box p {
    font-size: 4rem;
  }
  .gallery {
    height: 100rem;
  }
  .cta-heading {
    font-size: 1.8rem;
  }
}
/**************************/
/* BELOW 1200px (Landscape Tablets) */
/**************************/
@media (max-width: 75em) {
  html {
    /* 9px / 16px  */
    font-size: 56.25%;
  }
  .container {
    padding: 0 3.2rem;
  }
  .page-sep-heading {
    font-size: 3rem;
  }
  .section-about-us {
    padding: 8rem 0 0;
  }

  .about-img {
    height: 70%;
  }
  .about-description {
    font-size: 1.8rem;
    line-height: 2;
  }
  .menu-iten-text {
    font-size: 1.6rem;
  }
  .section-menu {
    padding: 8rem 0 0;
  }

  .gallery {
    height: 120rem;
  }
}
/**************************/
/* BELOW 1104px (Landscape Tablets) */

/**************************/
@media (max-width: 69em) {
  .container {
    padding: 0 4.8rem;
  }
  .hero-text-box p {
    font-size: 3.6rem;
  }
}
/**************************/
/* BELOW 944px (Tablets) */
/**************************/

@media (max-width: 59em) {
  html {
    /* 8px/16px */
    font-size: 50%;
  }
  .container {
    padding: 0 6.8rem;
  }
  h1 {
    font-size: 4.4rem;
  }
  .hero-text-box p {
    font-size: 3rem;
  }
  .page-sep-heading {
    font-size: 2.4rem;
  }
  .about-description {
    font-size: 1.6rem;
    line-height: 1.8;
  }
  .gallery {
    height: 80rem;
  }
  .testimonial-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .last-testimonial {
    grid-row: 2;
    grid-column: 1/-1;
    align-self: center;
    justify-self: center;
  }

  .cta-heading {
    font-size: 1.6rem;
    line-height: 1.8;
  }
  .footer-heading {
    font-size: 1.6rem;
  }
  .copyright {
    font-size: 1.4rem;
  }
  .address {
    font-size: 1.4rem;
  }
  .footer-link ion-icon:link,
  .footer-link ion-icon:visited,
  .footer-link ion-icon:active,
  .footer-link ion-icon:hover {
    font-size: 2rem;
  }
  /* MOBILE NAVIGATION */
  .btn-mobile-nav {
    display: block;
    z-index: 11;
  }

  .main-nav {
    position: absolute;
    background-color: #0b1315;
    backdrop-filter: blur(10px);

    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 3.2rem;
    transform: translateX(100%);
    transition: all 0.5s ease-in;
    /* 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);
    backdrop-filter: blur(50px);
  }
  .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: 3.2rem;
  }
  .main-nav-link:link,
  .main-nav-link:visited,
  .nav-btn:link,
  .nav-btn:visited {
    font-size: 3rem;
  }
}
/**************************/
/* BELOW 704px (Smaller tablets) */
/**************************/
@media (max-width: 44em) {
  .hero-text-box p {
    font-size: 2.5rem;
  }
  .page-separator {
    margin-bottom: 11rem;
  }

  .address {
    font-size: 1.2rem;
  }
}
/**************************/
/* BELOW 620px (Smaller tablets) */
/**************************/
@media (max-width: 39em) {
  .grid--2-col,
  .grid--3-col,
  .grid--4-col {
    grid-template-columns: 1fr;
  }
  .about-img {
    height: 80%;
    justify-self: center;
  }
  .about-description {
    margin-top: -3rem;
    padding-bottom: 3rem;
  }
  .menu-row-odd,
  .menu-row-even {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 2fr;
    row-gap: 5rem;
  }
  .menu-row-even:last-child {
    margin-bottom: 5rem !important;
  }
  .menu-right-img-box {
    grid-row: 2;
  }
  .menu-right-text-box {
    grid-row: 3;
  }
  .menu-img {
    width: 40%;
    height: 60%;
  }
  .menu-right-img-box::before,
  .menu-right-img-box::after {
    width: 35%;
    height: 50%;
  }
  .menu-right-img-box::before {
    transform: translate(20%, 25%);
  }
  .menu-right-img-box::after {
    transform: translate(30%, 35%);
  }

  .menu-left-text-box {
    grid-row: 3;
  }
  .menu-left-img-box {
    grid-row: 2;
  }
  .menu-left-img-box::before,
  .menu-left-img-box::after {
    width: 35%;
    height: 50%;
  }
  .menu-left-img-box::before {
    transform: translate(-25%, 30%);
  }
  .menu-left-img-box::after {
    transform: translate(-35%, 40%);
  }
  .menu-btn-container {
    margin-bottom: 5rem;
  }

  .cta-container {
    grid-template-columns: 1fr;
  }
  .cta-img-box {
    height: 30rem;
    grid-row: 1;
  }
}
/**************************/
/* BELOW 560px (Phones) */
/**************************/
@media (max-width: 35em) {
  h1 {
    font-size: 3.8rem;
  }
  .hero-text-box {
    word-spacing: -0.2rem;
  }
  .hero-text-box p {
    font-size: 2rem;
  }
  .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    row-gap: 2rem;
    height: 80rem;
  }
  .img-height {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .gallery-img-1,
  .gallery-img-2 {
    grid-column: span 1;
    grid-row: 1;
  }

  .gallery-img-3,
  .gallery-img-4 {
    grid-column: span 1;
    grid-row: 2;
  }

  .gallery-img-5 {
    grid-column: span 2;
    grid-row: 3;
    justify-self: center;
  }
  .footer-responsive {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 5rem;
  }
  .cta-img-box {
    height: 20rem;
  }
  .logo-col {
    grid-row: 2;
  }
}
/**************************/
/* BELOW 416px (Small Phones) */
/**************************/
@media (max-width: 26em) {
  html {
    /* 6px/16px */
    font-size: 37.5%;
  }
}
