/* media So to get the media query calculstion you just divide your desired width by 16 (width / 16), then to get the pixels yould then multiply you max-width by 16 (max-width * 16)  */

/********************************/
/* BELOW  2016px (Large desktops)*/
/********************************/

@media (max-width: 126em) {
  .Mainnav {
    padding: 0 0;

    gap: 2.4rem;
    justify-content: space-around;
  }

  .nav-link {
    font-size: 1.8rem;
  }

  .icon {
    font-size: 2.4rem;
  }

  .socials-icons-list {
    gap: 2.4rem;
  }

  .nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
  }

  .nav-btn {
    font-size: 1.6rem;
  }

  .nav-btn-2 {
    padding: 0.4rem 2rem;
  }
}

/********************************/
/* BELOW  1680px (Smaller desktops)*/
/********************************/

@media (max-width: 105em) {
  html {
    font-size: 50.2%;
    /* overflow-x: hidden; */
  }

  .logo {
    width: 9rem;
  }

  .logo-box::before {
    width: 90px;
    height: 90px;
  }

  .logo-box::after {
    width: 110px;
    height: 110px;
  }
}

/********************************/
/* BELOW  1536px (Smaller desktops)*/
/********************************/

@media (max-width: 96em) {
  html {
    font-size: 48.2%;
    /* overflow-x: hidden; */
  }

  .contact-head {
    font-size: 7rem;
  }

  .contact-page {
    gap: 3.2rem;
  }
}

/********************************/
/* BELOW  1296px (Smaller desktops)*/
/********************************/

@media (max-width: 81em) {
  .nav-list {
    gap: 2.5rem;
  }
  .socials-icons-list {
    gap: 1.8rem;
  }
  .nav-link {
    font-size: 1.7rem;
  }
  .icon {
    font-size: 2.4rem;
  }

  .logo {
    width: 8rem;
  }
  .logo-box {
    width: 130px;
    height: 130px;
  }

  .Mainnav {
    gap: 1.2rem;
    justify-content: space-around;
    height: fit-content;
  }

  .txt1 {
    font-size: 1.6rem;
  }
  .txt2 {
    font-size: 1.2rem;
  }
  .txt3 {
    font-size: 1.2rem;
  }

  .nav-link {
    font-size: 1.4rem;
  }

  .socials-icons-list {
    /* flex-direction: column;
    gap: 0px; */
  }
}

/********************************/
/* BELOW  1160px (Smaller desktops)*/
/********************************/
@media (max-width: 73em) {
  .socials-hide {
    display: none;
  }

  .head-of-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
  }

  .map-int iframe {
    height: 200%;
  }

  .contact-page {
    flex-direction: column;

    align-items: center;
    justify-content: center;
  }

  .contact-info {
    max-width: 80%;
  }
}

/********************************/
/* BELOW  944px (Smaller desktops)*/
/********************************/
@media (max-width: 59em) {
  /* Hide destop navigation */
  .nav-main,
  .socials {
    display: none;
  }

  /* Show hambuger */
  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 5rem;
    height: 5rem;

    border: none;
    background: transparent;
    cursor: pointer;
  }

  /* The three lines */

  .hambuger {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .hambuger span {
    display: block;

    width: 3.2rem;
    height: 0.3rem;

    background-color: #e8f0fa;
    border-radius: 10px;

    transition: all 0.3s ease;
  }

  /* MOBILE MENU */

  .mobile-menu {
    display: flex;

    position: absolute;

    top: 100%;
    right: 2rem;

    width: 25rem;

    padding: 2rem;

    background-color: #1a3a6b;

    flex-direction: column;
    gap: 1.8rem;

    border-radius: 0 0 1rem 1rem;

    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);

    /* Hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);

    transition: all 0.3s ease;

    z-index: 1000;
  }

  /* Menu becomes visible when JS adds .active */

  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Mobile links */

  .mobile-menu a {
    color: #fdf2e9;
    text-decoration: none;
    font-size: 1.8rem;
    padding: 0.8rem 1rem;
    transition: 0.2s ease;
  }

  .mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
  }

  /* Mobile social icon */

  .mobile-socials {
    display: flex;

    gap: 1.5rem;

    padding-top: 1rem;

    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mobile-socials ion-icon {
    font-size: 2.5rem;
    color: #e8f0fa;
  }

  /* on to */

  .head-of-footer {
    grid-template-columns: repeat(2, 1fr);
    justify-items: left;
    align-items: left;
    column-gap: 8rem;

    padding: 0 5rem;
  }

  .mobile-menu.active {
    display: flex;
  }
}

/********************************/
/* BELOW  816px (Smaller desktops)*/
/********************************/
@media (max-width: 51em) {
  .contact-page {
    flex-direction: column;

    align-items: center;
    justify-content: center;

    max-width: 85vw;
  }

  .contact-head {
  }
}

/********************************/
/* BELOW  688px (Smaller desktops)*/
/********************************/
@media (max-width: 43em) {
  /* .add-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7rem;
  } */

  .contact-grid {
    gap: 6rem;
  }

  .labels input {
    padding: 3rem 0;
  }

  .l-messages textarea {
    min-height: 100px;
  }
}

/********************************/
/* BELOW  576px (Smaller desktops)*/
/********************************/
@media (max-width: 36em) {
  .Mainnav {
    height: 6vh;
  }

  .txt1,
  .txt2 {
    display: none;
  }

  .txt3 {
    text-align: center;
    max-width: 2rem;

    margin-top: 3rem;
  }

  .nav-dot {
    display: none;
  }

  .Mainnav {
    justify-content: space-between;
    height: 12rem;
  }

  .img-txt {
    margin-left: 2rem;
  }

  .menu-btn {
    margin-right: 2rem;
  }

  .logo {
    width: 7.7rem;
  }

  .logo-box::before {
    width: 80px;
    height: 80px;
  }
  .logo-box::after {
    width: 100px;
    height: 100px;
  }
}

/********************************/
/* BELOW  480px (Smaller desktops)*/
/********************************/
@media (max-width: 30em) {
  .Mainnav {
    height: 11vh;
  }

  .head-of-footer {
    grid-template-columns: repeat(1, 1fr);
    justify-items: center;
    align-items: center;
  }

  .contact-head {
    font-size: 5rem;
  }

  .contact-p {
    font-size: 2.3rem;
  }
}

/********************************/
/* BELOW  368px (Smaller desktops)*/
/********************************/
@media (max-width: 23em) {
  html {
    font-size: 40%;
  }

  .contact-page {
    align-items: flex-start;
  }
}
