/**************************/
/* BELOW 1368px (Smaller desktops) */
/**************************/
@media (max-width: 86em) {
  .hero-text-box {
    margin-left: 0;
  }

  .hero-description {
    font-size: 1.8rem;
    line-height: 1.7;
    margin-bottom: 3.2rem;
  }

  .heading-primary {
    margin-bottom: 2.4rem;
  }

  .margin-btm {
    margin-bottom: 4.8rem;
  }

  .icon-text span {
    font-size: 1.4rem;
  }

  .list {
    margin-bottom: 2.4rem;
  }

  .products-grid {
    padding: 0 3.2rem;
  }

  .email-phone-line {
    gap: 4.8rem;
  }
}

/**************************/
/* BELOW 1200px (Landscape Tablets) */
/**************************/
@media (max-width: 75em) {
  .hero {
    padding: 0 2.4rem;
  }

  .hero-description br {
    display: none;
  }

  .margin-btm {
    margin-bottom: 3.2rem;
  }

  .email-phone-line {
    gap: 3.2rem;
  }

  .products {
    padding: 4.8rem 3.2rem;
  }

  .product-heading {
    font-size: 3rem;
  }

  .products-grid {
    column-gap: 2.4rem;
  }

  .product-img {
    width: 90%;
    display: block;
    margin: 0 auto;
  }

  .about-us-grid {
    padding: 0 4.8rem;
  }

  .section-cta {
    padding: 4.8rem 2.4rem 12.8rem;
  }

  .icon-text span {
    font-size: 1.2rem;
  }

  .hero {
    padding: 0 3.2rem;
  }

  .email-phone-line {
    gap: 2rem;
  }

  .cta-text-box {
    padding: 4.8rem 3.2rem 6.4rem 3.2rem;
    color: #343a40;
  }
}

/**************************/
/* BELOW 944px (Tablets) */
/**************************/
@media (max-width: 59em) {
  .logo {
    height: 4rem;
  }

  .company-name:link,
  .company-name:visited {
    font-size: 3.6rem;
  }

  .logo-company {
    gap: 1.6rem;
    margin-left: 0rem;
  }

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

  .section-hero {
    padding: 4.8rem 0;
  }

  .hero {
    padding: 0 6.4rem;
    grid-template-columns: 1fr;
    grid-template-rows: 0.5fr 1fr;
  }

  .heading-primary br {
    display: none;
  }

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

  .hero-description br {
    display: block;
  }

  .hero-description {
    text-align: center;
    font-size: 2rem;
  }

  .btn--full {
    text-align: center;
  }

  .main-btn {
    text-align: center;
  }

  .margin-btm {
    margin-bottom: 4.8rem;
  }

  .email-phone-line {
    justify-content: space-evenly;
  }

  .icon-text span {
    font-size: 1.6rem;
  }

  .gallery {
    margin: 4.8rem;
    gap: 6.4rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    /* grid-template-rows: 1fr 0.9fr 1fr 0.75fr 1fr 0.75fr 1fr 0.75fr 1fr 0.5fr; */
    grid-template-rows: repeat(10, auto);
    /* grid-template-rows: repeat(5, 1fr 0.85fr); */
    row-gap: 6.4rem;
    padding: 0 9rem;
    /* justify-items: center; */
  }

  .product-description {
    align-self: start;
    justify-self: center;
  }

  .product-description:nth-child(3) {
    grid-row: 4;
  }

  .product-description:nth-child(7) {
    grid-row: 8;
  }

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

  .about-us-content {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 0.2fr;
    row-gap: 6.4rem;
    justify-items: center;
    align-items: center;
  }

  .about-description {
    align-self: start;
  }

  .about-us-content:nth-child(2) {
    row-gap: 0;
  }

  .tips-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    row-gap: 12.8rem;
  }

  .tip-individual-text {
    /* text-align: center; */
    padding: 0 6.4rem;
  }

  .tip-img {
    width: 75%;
  }

  .cta {
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 3fr;
    padding-bottom: 1.6rem;
  }

  .cta-img-box {
    grid-row: 1;
    background-image: linear-gradient(
        to right bottom,
        rgba(111, 194, 209, 0.35),
        rgba(104, 170, 224, 0.35)
      ),
      url("../img/cta/cta-horizontal.jpg");
  }

  .logo-col {
    justify-items: center;
  }

  .branch-description-last {
    margin-left: 6.4rem;
    margin-right: 6.4rem;
    text-align: center;
  }

  .branch-description-last.expansion em {
    margin-left: 6.4rem;
    margin-right: 6.4rem;
    text-align: center;
  }
}

/**************************/
/* BELOW 820px (Smaller Tablets) */
/**************************/

@media (max-width: 51.25em) {
  .company-name:link,
  .company-name:visited {
    font-size: 2.4rem;
  }

  .header {
    padding: 0 2.4rem;
  }

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

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

  .heading-primary br {
    display: block;
  }

  .hero {
    padding: 0 3.2rem;
  }

  .gallery {
    margin: 3.2rem;
    gap: 4.8rem;
  }

  .products-grid {
    padding: 0 6.4rem;
  }

  .product-img-box {
    margin-top: 4.8rem;
  }

  .product-img-box:nth-child(1) {
    margin-top: 2.4rem;
  }

  .footer-first-section {
    column-gap: 3.2rem;
    padding: 4.8rem 0;
  }

  .nav-col:last-child {
    padding-right: 2.4rem;
  }

  .icon-text-footer span br {
    display: block;
  }
}

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

@media (max-width: 34em) {
  /* MOBILE NAVIGATION */
  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .main-nav {
    background-color: rgba(231, 245, 255, 0.904);
    -webkit-backdrop-filter: blur(5px);
    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.5s ease-in;

    /* Hide navigation */
    /* Allows NO transition 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: 8rem;
  }

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

  .section-hero.nav-open {
    /* 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;
  }

  .hero-description br {
    display: none;
  }

  .email-phone-line {
    flex-direction: column;
    gap: 3.2rem;
  }

  .gallery {
    margin: 0rem;
    gap: 3.2rem;
  }

  .hero {
    /* padding: 0 3.2rem; */
    grid-template-columns: 1fr;
    grid-template-rows: 0.5fr 0.5fr;
  }

  .section-hero {
    padding-bottom: 8rem;
  }

  .products-grid {
    grid-template-rows: repeat(10, auto);
    row-gap: 4.8rem;
    padding: 0;
  }

  .product-img-box {
    margin-top: 6.4rem;
  }

  .product-img-box:nth-child(1) {
    margin-top: 2.4rem;
  }

  .list-item {
    font-size: 1.6rem;
  }

  .heading-secondary {
    font-size: 3.2rem;
    margin: 0 6.4rem 6.4rem;
    line-height: 1.4;
  }

  .about-img {
    width: 85%;
  }

  .about-us-content:nth-child(1) {
    row-gap: 3.2rem;
  }

  .about-us-grid {
    gap: 12.8rem;
    /* grid-template-rows: 1fr 0.5fr; */
    grid-template-rows: auto auto;
  }

  .about-description {
    align-self: start;
  }

  .about-us-content:nth-child(2) {
    grid-template-rows: 0.5fr 0.2fr;
    row-gap: 3.2rem;
  }

  .tips-margin-btm {
    margin-bottom: 3.2rem;
  }

  .tip-description {
    padding: 0 4.8rem;
  }

  .tip-img {
    width: 90%;
  }

  .tip-individual-text {
    padding: 0 2.4rem;
  }

  .cta {
    grid-template-rows: 1fr 3fr;
    padding-bottom: 1.6rem;
  }

  /* .cta-text-box {
    padding: 4.8rem 3.2rem 6.4rem 3.2rem;
    color: #343a40;
  } */

  .logo-footer {
    height: 5rem;
    margin-bottom: 2.4rem;
  }

  .logo-col {
    display: block;
    text-align: center;
  }

  .footer-first-section {
    grid-template-columns: 1fr 2fr 1fr;
    column-gap: 3.2rem;
    padding: 6.4rem 1.6rem;
  }

  .nav-col:last-child {
    padding-right: 0;
  }

  .branch-heading br {
    display: block;
  }

  .branch-heading {
    line-height: 1.4;
  }

  .branch-imgs {
    width: 100%;
    justify-self: center;
  }

  .branch-main-img {
    width: 60%;
    display: block;
    margin: 0 auto 4.8rem;
  }

  .branch-envelope-types {
    width: 80%;
    grid-template-columns: 1fr 1fr;
    column-gap: 0rem;
  }

  .branch-envelope-types span {
    justify-self: center;
  }

  .branch-footer-link:link,
  .branch-footer-link:visited {
    font-size: 1.4rem;
  }

  .branch-description-last.expansion em {
    margin-left: 2.4rem;
    margin-right: 2.4rem;
    text-align: center;
  }
}

/**************************/
/* BELOW 416px (Phones) */
/**************************/

@media (max-width: 26em) {
  .heading-primary {
    font-size: 3.6rem;
  }

  .hero {
    padding: 0 1.6rem;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    padding: 0 1.6rem;
  }

  .gallery-item img {
    width: 100%;
  }

  .section-hero {
    padding-bottom: 4.8rem;
  }

  .products {
    padding: 4.8rem 1.6rem;
  }

  .heading-secondary {
    font-size: 2.4rem;
    margin: 0 0 6.4rem;
    line-height: 1.4;
  }

  .product-heading {
    line-height: 1.3;
  }

  .product-heading br {
    display: block;
  }

  .about-heading .heading-secondary {
    margin: 0 2.4rem 6.4rem;
  }

  .about-us-content {
    grid-template-rows: auto auto;
    row-gap: 3.2rem;
  }

  .about-us-grid {
    padding: 0 2.4rem;
  }

  .about-description {
    font-size: 1.8rem;
    line-height: 1.8;
  }

  .about-us {
    padding-bottom: 8rem;
    margin-bottom: 6.4rem;
  }

  .tips-heading .heading-secondary {
    margin: 0 2.4rem 3.2rem;
  }

  .tip-description {
    padding: 0 2.4rem;
    font-size: 1.8rem;
  }

  .tips-grid {
    grid-template-rows: repeat(3, auto);
    row-gap: 8rem;
    padding: 0 2.4rem;
  }

  .section-cta {
    padding: 4.8rem 1.2rem 8rem;
  }

  .fill-form {
    grid-template-columns: 1fr;
  }

  .footer-first-section {
    grid-template-columns: 1fr;
    /* justify-items: center; */
    padding: 4.8rem 2.4rem;
    row-gap: 4.8rem;
    margin-left: 1.6rem;
  }

  .logo-footer {
    height: 5rem;
    margin-bottom: 1.6rem;
  }

  .logo-col {
    text-align: center;
  }

  .footer-home-link {
    display: block;
  }

  .nav-col:last-child {
    justify-self: start;
  }

  .back-home-link:link,
  .back-home-link:visited {
    font-size: 1.6rem;
  }

  .branch-footer-link:link,
  .branch-footer-link:visited {
    font-size: 1.8rem;
  }

  .branch-description-last.expansion em {
    margin-left: 1.6rem;
    margin-right: 1.6rem;
    text-align: center;
  }
}
