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

  .headingPrimary {
    font-size: 4.4rem;
  }
}

/* landscape tablets */

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

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

  .headingSecondary {
    font-size: 3.6rem;
  }

  .headingTertiary {
    font-size: 2.4rem;
  }

  .header {
    padding: 0 3.2rem;
  }

  .mainNavList {
    gap: 3.2rem;
  }

  .hero {
    gap: 4.8rem;
  }
}

/* 1000px tablets */

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

  .hero {
    grid-template-columns: 1fr;
    padding: 0 8rem;
    row-gap: 6.4rem;
  }

  .heroTextBox {
    text-align: center;
  }

  .btnMobileNav {
    display: block;
    z-index: 9999;
  }

  .mainNav {
    background-color: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in;

    /* Hide navigation */
    /* Allows no transitions at all */
    /* display: none; */

    /* 1 hidde element visually */
    opacity: 0;

    /* 2 make it unaccessable to mouse and keyboard */

    pointer-events: none;

    /* 3 hide from screenreaders */

    visibility: hidden;
  }

  /* Hide normal nav and show toggle */
  .btnMobileNav {
    display: block;
    z-index: 1001;
  }

  .navOpen .mainNav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0%);
  }

  .navOpen .iconMobileNav[name="close-outline"] {
    display: block;
  }

  .navOpen .iconMobileNav[name="menu-outline"] {
    display: none;
  }

  .mainNavList {
    flex-direction: column;
    gap: 4.8rem;
  }
  .mainNavLink:link,
  .mainNavLink:visited {
    font-size: 3rem;
  }

  .carouselImg {
    width: 32rem;
    height: 40rem;
  }
}

/* bellow 807px smallertablets */

@media (max-width: 51em) {
  .headingSecondary {
    margin-bottom: 4.8rem;
  }

  .navCol {
    grid-row: 1;
    grid-column: span 2;
  }

  .carouselImg {
    width: 26rem;
    height: 34rem;
  }

  .ovenSlider {
    grid-template-columns: 3.6rem 1fr 3.6rem;
  }
  .ovenArrow {
    width: 3.6rem;
    height: 3.6rem;
  }
}

/* bellow 550px */

@media (max-width: 35em) {
  .btn,
  .btn:link,
  .btn:visited {
    padding: 2.4rem 1.6rem;
  }

  .hero {
    padding: 3.2rem;
  }

  .sectionHero {
    padding: 2.4rem 0 6.4rem 0;
  }

  .footer {
    padding: 4.8rem 3.2rem;
  }
}

@media (max-width: 28em) {
  .footer {
    padding: 4rem 0;
  }
}

/* Desktop / wide: 3 columns; make the 4th full width */
@media (min-width: 1100px) {
  .serviceGrid {
    grid-template-columns: repeat(3, 1fr); /* force 3 cols for consistent row */
  }
  .serviceGrid .serviceItem:nth-child(4) {
    grid-column: 1 / -1; /* stretch across all columns */
  }
}

/* Tablet / medium: 2 columns (2x2) */
@media (min-width: 700px) and (max-width: 1099px) {
  .serviceGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .serviceGrid .serviceItem:nth-child(4) {
    grid-column: auto; /* reset spanning on medium */
  }
}

/* Mobile: 1 column stack */
@media (max-width: 699px) {
  .serviceGrid {
    grid-template-columns: 1fr;
  }
  .serviceGrid .serviceItem:nth-child(4) {
    grid-column: auto; /* reset just in case */
  }
}

/* Extra-safe tweaks for very narrow screens */
@media (max-width: 480px) {
  .sectionBusiness .businessTypes {
    grid-template-columns: 1fr; /* single column on small phones */
    gap: 2.4rem;
  }
  .sectionBusiness .container {
    padding-left: 1.6rem; /* reduce side padding so content fits */
    padding-right: 1.6rem;
  }
  .sectionBusiness .businessCard {
    padding: 2.4rem; /* slightly smaller inner padding */
  }
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .mapFrame {
    height: 44rem;
  }
}

@media (max-width: 600px) {
  .footerInner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
  }
  .mapFrame {
    height: 36rem;
  }
}
