/**************************************
*   BELOW 1344px (smaller desktops)   *
**************************************/

@media (max-width: 84em) {
  .hero {
    max-width: 120rem !important;
  }

  .heading-primary {
    font-size: 4.4rem !important;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/**************************************
*   BELOW 1200px (landscape tablets)  *
**************************************/

@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }

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

  .heading-secondary {
    font-size: 3.6rem !important;
  }

  .heading-tertiary {
    font-size: 2.4rem !important;
  }

  .header {
    padding: 0 3.2rem;
  }

  .hero {
    gap: 4.8rem;
  }

  .main-nav-list {
    gap: 3.2rem;
  }

  .testimonials-container {
    padding: 9.6rem 3.2rem !important;
  }
}

/***************************
*   BELOW 944px (Tablets)  *
****************************/

@media (min-width: 59.0625em) {
  /* Your styles for devices above 34em here */
  .btn-mobile-nav {
    visibility: hidden;
  }
}

@media (max-width: 59em) {
  html {
    font-size: 50%;
  }

  .ref-section-services {
    padding-top: 25rem !important;
  }

  .hero {
    grid-template-columns: 1fr !important;
  }

  .hero-text-box,
  .hero-img-box {
    text-align: center;
  }

  .hero-img {
    width: 50%;
  }

  .logos img {
    height: 2.4rem;
  }

  .meal-content {
    padding: 2.4rem, 3.2rem, 3.2rem, 3.2rem;
  }

  .section-testimonials {
    grid-template-columns: 1fr !important;
  }

  .gallery {
    grid-template-columns: repeat(6, 1fr) !important;
  }

  .cta {
    grid-template-columns: 3fr 2fr;
  }

  .cta-form {
    grid-template-columns: 1fr !important;
  }

  .wpcf7-form {
    grid-template-columns: 1fr !important;
  }

  .btn--form {
    margin-top: 1.2rem;
  }

  /* MOBILE NAVIGATION */
  .btn-mobile-nav {
    display: block;
    z-index: 99999999;
  }

  .main-nav {
    background-color: rgba(255, 255, 255, 1);

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0rem;
    left: 0;
    width: 100%;
    height: 20vh;
    transform: translateY(-100%);

    display: flex;
    align-items: center;
    justify-content: space-around;
    transition: all 0.5s ease-out;

    /* Hide navigation */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .mobile-hide {
    display: none !important;
  }

  .nav-open::before {
    content: "";
    position: fixed;
    top: 4.2rem;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Semi-transparent black overlay */
    z-index: 999; /* Place the overlay above everything else */
    pointer-events: auto; /* Enable interactions with the overlay */
  }

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

  .nav-open .main-nav a {
    color: #000;
  }

  .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 704px (Smaller tablets)  *
************************************/

@media (max-width: 44em) {
  .grid--3-cols,
  .grid--4-cols {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .mega-menu-3-cols {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .about-section-services {
    padding-top: 59rem !important;
  }

  .diets {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .grid--footer {
    grid-template-columns: repeat(6, 1fr);
  }

  .logo-col,
  .address-col {
    grid-column: span 3;
  }

  .nav-col {
    grid-row: 1;
    grid-column: span 2;
    margin-bottom: 3.2rem;
  }

  .grid--sticky {
    grid-template-columns: 1fr 1fr 1fr 1fr !important;
  }

  .sticky-top-text-left {
    font-size: 2.2rem !important;
    padding-left: 2rem;
  }

  .trustpilot {
    padding-right: 2rem;
  }

  .contact-cta-heading {
    font-size: 3rem !important;
  }

  .grid--2-cols-staack-footer {
    display: flex;
    grid-template-columns: 1fr !important;
  }
}

/**************************
*   BELOW 544px (Phones)  *
***************************/

@media (max-width: 34em) {
  .grid {
    row-gap: 4.8rem !important;
  }

  .grid--2-cols,
  .grid--3-cols,
  .grid--4-cols {
    grid-template-columns: 1fr !important;
  }

  .grid--footer {
    justify-content: center;
  }

  .nav-col {
    grid-row: 1;
    grid-column: span 1;
    margin-bottom: 3.2rem;
  }

  .section-copyright {
    text-align: center;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .hero {
    padding: 0 3.2rem;
  }

  .hero-img {
    width: 80%;
  }

  .section-hero {
    padding: 2.4rem 0 6.4rem, 0;
  }

  .btn,
  .btn:link,
  .btn:visited {
    padding: 2.4rem 1.6rem;
  }

  .logos img {
    height: 1.3rem;
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }

  .cta {
    grid-template-columns: 1fr !important;
  }

  .cta-text-box {
    padding: 2.4rem 3.2rem 3.2rem 3.2rem !important;
  }

  .cta-img-box {
    height: 24rem;
    grid-row: 1;
  }

  .contact-cta {
    width: 90% !important;
  }

  .about-cta {
    width: 90% !important;
  }

  .contact-cta-heading {
    font-size: 2rem !important;
  }

  .contact-checkboxes-text {
    display: flex !important;
  }

  .cta-text-box {
    padding: 3.2rem;
  }

  .job-cta {
    display: none !important;
    max-width: 90rem !important;
    left: 2rem;
    right: 2rem;
  }

  .ref-cta {
    display: none !important;
    left: 2rem;
    right: 2rem;
    width: 90% !important;
  }

  .contact-section-services {
    padding: 30rem 0 !important;
  }

  .ref-service {
    margin-left: 8%;
    margin-right: 8%;
  }

  .top-header-info {
    display: none !important;
  }

  .top-header-text a {
    font-size: 1.6rem !important;
  }

  .top-header a {
    font-size: 1.6rem !important;
  }

  .header.header {
    display: flex;
    justify-content: space-between;
  }

  .main-nav a {
    font-size: 1.6rem !important;
  }

  .service {
    margin-left: 4rem !important;
    margin-right: 4rem !important;
  }

  .trustpilot-widget {
    padding: 2rem;
  }

  .sticky-sub-header {
    grid-template-columns: 1fr 1fr 1fr 1fr !important;
    height: 6rem !important;
  }

  .mega-menu {
    height: 45rem !important;
  }

  .mega-menu-3-cols {
    align-items: center;
    justify-content: center !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .mega-menu-content {
    font-size: 2rem;
    padding-left: 3rem;
    padding-right: 3rem;
    align-items: center;
    height: 8rem !important;
    width: 8rem !important;
  }

  .mega-menu-ydelser-img {
    width: 5rem;
    height: 5rem;
  }

  .step-img-box:nth-child(2) {
    grid-row: 1;
  }

  .step-img-box:nth-child(6) {
    grid-row: 5;
  }

  .subheading {
    text-align: center;
    padding-top: 0 !important;
  }

  .heading-secondary {
    text-align: center;
  }

  .heading-tertiary {
    text-align: center;
  }

  .step-description {
    text-align: center;
  }

  .testimonials {
    row-gap: 1rem !important;
    column-gap: 1rem !important;
  }

  .hero-title {
    font-size: 8rem !important;
  }

  .hero-subtitle {
    padding-top: 2rem !important;
    font-size: 2.8rem !important;
    line-height: 1.1;
  }

  .ref-section-services {
    padding: 10rem 0 !important;
  }

  .section-page-hero {
    height: 50rem !important;
  }
}
