/* ###################################### */
/* #### BELOW 1344px (Medium Desktops) #### */
/* ###################################### */

@media (max-width: 84em) {
  html {
    font-size: 58%;
  }

  .container {
    /* max-width: 120rem; */
    padding-left: 4.4rem;
    padding-right: 4.4rem;
  }

  .copyright {
    max-width: 82%;
  }

  .grid--footer {
    grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr);
  }

  .copyright {
    max-width: 94%;
  }
}

/* ###################################### */
/* #### BELOW 1200px (Small Desktops / Landscape Tablet) #### */
/* ###################################### */

@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }

  .grid {
    gap: 4.8rem;
  }

  .heading-primary {
    font-size: 4.4rem;
  }

  .heading-secondary {
    font-size: 3.6rem;
  }

  /* Text after delivered imgs keeps on splitting on two lines */
  .delivered-imgs img:nth-child(2) {
    display: none;
  }

  .hero-img--bg {
    width: 95%;
  }

  /* .hero {
    gap: 7.2rem;
  } */

  /* Previously not occupying all space due to paragraph not aligned */
  .services-content {
    max-width: 100%;
  }

  /* .services-card {
    gap: 2rem;
  } */

  .badges {
    gap: 3.4rem;
    row-gap: 5.2rem;
  }

  .contactus {
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
    background: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.9) 54.9%,
        transparent 55.1%
      ),
      linear-gradient(105deg, #3182ce44 0%, #6fa8dd6b 55%, #eaf3fa21 55%),
      url("../Assets/boat.jpg");
    background-size: cover;
    background-position: center;
    overflow: hidden;
  }
}

/* ###################################### */
/* #### BELOW 1070px #### */
/* ###################################### */

@media (max-width: 67rem) {
  html {
    font-size: 50%;
  }

  .card__heading {
    font-size: 3.2rem;
  }
}

/* ###################################### */
/* #### BELOW 944px #### */
/* ###################################### */

@media (max-width: 59rem) {
  .heading-description span {
    display: inline-block;
    /* width: 70%; */
  }

  .heading-primary {
    font-size: 4.8rem;
  }
  /*  */
  .hero {
    grid-template-columns: 1fr;
    gap: 3.8rem;
    padding-left: 8rem;
    padding-right: 8rem;
  }

  .text-highlighting::after{
    height: 8px;
  }

  .delivered-products {
    margin-top: 2.4rem;
  }

  .hero-img-box {
    width: 80%;
  }

  .left {
    text-align: center;
  }

  .btn.btn--outline{
    font-size: 1.6rem;
  }

  .right {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .copyright {
    max-width: 100%;
  }
}

/* ############################ */
/* BELOW 876px - Small fixes */
/* ############################ */

@media (max-width: 54.75rem) {
  /* This is just so that the text first line doesn't end with "en" */
  /* .badge:first-child .badge-title {
    width: 90%;
  } */

  /* This fixes the problem of the neighbor card title splitting to two lines which breaks the layout, so we make this text longer so they both visually fit*/
  /* .badge:first-child .badge-title::after {
    content: " économiques en douane";
  } */

  .grid--footer { 
    grid-template-columns: minmax(0,1fr)minmax(0,1fr) minmax(0,1.5fr);
    row-gap: 6.2rem !important;
  }

  .logo-col {
    grid-row: 2;
  }

  .contactus {
    grid-template-columns: 3fr 1fr;
    background: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.9) 70%,
        transparent 70.2%
      ),
      linear-gradient(105deg, #3182ce44 0%, #6fa8dda5 70%, #eaf3fa21 50%),
      url("../Assets/boat.jpg");
    background-size: cover;
    background-position: center;
  }

  .section-consultation {
    margin-top: 7rem;
  }

  .consultation {
    grid-template-columns: 1fr;
  }

  .consultation-img {
    width: 50%;
    align-self: center;
    justify-self: center;
  }

  .badges {
    column-gap: 10rem;
  }
}

/* ###################################### */
/* #### BELOW 766px (Tablets - Medium / Small) #### */
/* ###################################### */

@media (max-width: 48rem) {

  .container{
    padding-left: 3.2rem;
    padding-right: 3.2rem;
  }

  .services,
  .operations {
    grid-template-columns: 1fr;
  }

  .services-img,
  .operations-img {
    align-self: center;
    justify-self: center;
  }

  .operations-img {
    width: 55%;
  }

  .services-img {
    width: 60%;
  }

  .services-paragraph,
  .operations-paragraph {
    width: 100%;
  }

  .services-img {
    grid-row: 2;
  }

  .operations {
    gap: 0rem;
  }

  .services-card {
    grid-template-columns: 1fr 1fr;
    gap: 4.8rem;
  }

  .contact-form {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}



/* ###################################### */
/* #### BELOW 670px (Small devices - Tablets portrait / Phones) #### */
/* ###################################### */

@media (max-width: 42em) {
  .hero.container{
    padding-left: 3.2rem;
    padding-right: 3.2rem;
  }

  .consultation-break{
    display: none;
  }

  .consultation-img, .services-img{
    width: 85%;
  }

  .operations-img {
    width: 60%;
  }

  .section-services{
    padding-top: 8.4rem;
  }

  .badges, .services-card{
    grid-template-columns: minmax(0,1fr);
  }

  .services-card{
    display: flex;
    align-items: center;
    flex-direction: column;
    max-width: 300px;
  }

  .grid--footer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 12.8rem;
  }

  .operations-img{
    margin-top: 4.8rem;
  }

  .contact-form{
    padding-left: 0;
    padding-right: 0;
  }

  .form__input{
    width: 97%;
  }

  .radio-buttons{
    width: 94%;
  }

  .contactus {
    grid-template-columns: 1fr;
    background: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.804) 90%,
        transparent 90.2%
      ),
      linear-gradient(105deg, #3182ce44 0%, #6fa8dda5 90%, #eaf3fa21 50%),
      url("../Assets/boat.jpg");
    background-size: cover;
    background-position: center;
  }

  .btn-mobile-nav {
    display: block;
    z-index: 11;
    /* position: fixed; */
  }

  .navigation-list {
    /* background-color: rgba(0, 0, 0, 0.9);
    background-color: #2c75b9ec; */
    /* background-color: #1d4e7cee; */
    background: linear-gradient(to right bottom, #2c75b9e0 0%, #1d4e7cee 40%);
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    z-index: 10;
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7rem;
    opacity: 0;
    /* This makes it unaccessible to mouse and keyboard */
    pointer-events: none;
    /* Hide the element from screen readers */
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: all 0.4s;
  }

  .nav-open .navigation-list {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    height: 100vh;
    transform: translate(0);
  }

  .nav-open .nav-icon--close {
    display: block;
  }

  .nav-open .nav-icon--open {
    display: none;
  }

  .navigation-list .navigation-item-link {
    font-size: 3.6rem;
    font-weight: 700;
    color: #fff;
  }

  .navigation-list .navigation-item.navigation-item--active a {
    color: #fff;
    position: relative;
  }

  /* .navigation-list .navigation-item.navigation-item--active a::after { */
    /* content: ""; */
    /* Since the parent element has a padding and that padding is 
    part of the width of our ::after element, then we substract it
    so that the line is perfectly within the limit of the text */
    /* width: calc(100% - 20px);
    height: 4px; */
    /* display: inline-block; */
    /* position: absolute;
    bottom: -4px; */
    /* Takes into account the 10px of padding of the parent element */
    /* left: 10px;
    background-color: #eaf3fa;
    transform: skewX(140deg); */
  /* } */
}

@media (max-width: 34em){
  /* // FIX FOOTER "CONTACTER NOUS" OVERFLOWING */
  /* .grid--footer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 5rem;
  } */

  .contact-col{
    grid-column: 1 / 3 !important;
    width: 80%;
  }

  .logo-col{
    grid-row: 3;
  }

  .operations-img {
    width: 80%;
  }
}