/*
Table of Content:
@Custom Breakpoints
  (min-width: 2000px)
  (max-width: 1700px)
  (max-width: 1600px)
  (max-width: 1500px)
  (max-width: 1400px)
  (max-width: 1300px)
  (max-width: 1200px)
  (max-width: 1100px)
  (max-width: 1024px)
  (max-width: 1050px) -> start of mobile menu
  (max-width: 400px)
  (max-height: 800px) -> for sticky sections on small height screen
@Bootstrap Breakpoints
  xl: (max-width: 1199px)
  lg: (max-width: 991px)
  md: (max-width: 767px)
  sm: (max-width: 575px)
*/

@media (max-width: 1440px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1300px;
  }

  h2 {
    font-size: 3.5rem;
  }

  .testimonials-items h4 {
    font-size: 2.5rem;
  }

  .hero-content {
    bottom: 40px;
  }

  .footer-nav {
    margin-top: 5rem;
  }

  .project-slider-items img {
    height: 500px;
  }
}

@media (max-width: 1200px) {
  /* .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1600px;
  } */

  .testimonials-items h4 {
    font-size: 2rem;
  }

  .navbar ul.menu .mega-menu-container {
    width: 700px;
  }

  .footer-nav {
    margin-top: 3rem;
  }

  .project-slider-items img {
    height: 400px;
  }

  .project-slider-item-title {
    font-size: 40px;
  }
}

@media (max-width: 1199px) {
  :root {
    --font-size-h1: 3.75rem;
    --font-size-h2: 3rem;
    --font-size-h3: 2.2rem;
    --font-size-h4: 1.875rem;
    --font-size-h5: 1.3rem;
    --font-size-h6: 1.05rem;

    /*** Typography ***/
    --font-size-base: 0.875rem;
    --font-size-lg: 1rem;
    --font-size-small: 0.725rem;
  }
  section {
    padding: 60px 0;
  }
  .timeline:before,
  .timeline:after {
    height: 60px;
  }
  .left-col {
    padding-right: 0;
  }

  .left-image-right-text-sec .right-col {
    padding-left: 0;
  }
  .container.container-narrow {
    padding: 0 20px;
  }
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl,
  .container.container-narrow {
    max-width: 98%;
  }
  .left-image-right-text .right-col {
    max-width: 570px;
    padding-left: 50px;
  }
  .footer-logo {
    top: 10%;
  }
}

@media (max-width: 1024px) {
  .hero-video {
    min-height: 80vh;
  }
}

/* Boostrap Breakpoints Below */
@media (max-width: 991px) {
  #menu-main-menu-navigation > li a,
  #menu-main-menu-navigation:hover > li > a,
  #menu-main-menu-navigation .sub-menu:hover > li > a {
    color: #fff !important;
    opacity: 1 !important;
  }

  #menu-main-menu-navigation > li.menu-btn {
    display: list-item;
  }
  #menu-main-menu-navigation li .sub-menu {
    display: none;
  }

  #menu-main-menu-navigation li.open .sub-menu,
  #menu-main-menu-navigation li.open > .sub-menu {
    display: block;
  }
  /* Don’t use hover to open on mobile */
  .navbar ul.menu li.menu-item-has-children:hover ul.sub-menu {
    display: none;
  }

  /* JS toggles this class */
  .navbar ul.menu li.menu-item-has-children.is-open > ul.sub-menu {
    display: flex;
  }

  .navbar ul.menu li.menu-item-has-children:hover > a:before {
    transform: rotate(-45deg);
    margin-top: -7px;
  }

  .navbar ul.menu li.menu-item-has-children.is-open > a:before {
    transform: rotate(135deg);
    margin-top: -3px;
  }
  #menu-main-menu-navigation:has(li.open) > li > a {
    opacity: 0.5;
  }
  #menu-main-menu-navigation li.menu-item.open > a {
    opacity: 1;
  }
  .mobile-only {
    display: block;
  }

  .hero-video {
    position: relative;
  }
  .hero-content {
    bottom: 40px;
  }
  .text-scroll h2,
  .page-template-about .text-scroll h2 {
    font-size: 4.6vw;
  }
  .page-template-about section.text-scroll {
    padding: 25px 0;
  }
  .navbar {
    position: fixed;
    left: -100%;
    height: 100%;
    top: 68px;
    z-index: 99;
    display: block;
    flex-wrap: wrap;
    align-items: center;
    overflow: auto;
    justify-content: center;
    align-content: flex-start;
    width: 100%;
    max-width: 100%;
    background: var(--color-dark);
    border-top: 1.5px solid #ffffff33;
    padding: 30px 20px 20px;
    transition: 0.3s ease-in-out;
    /* transition: all 0.3s ease-in-out 0s;
    -webkit-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    -ms-transition: all 0.3s ease-in-out 0s;
    -o-transition: all 0.3s ease-in-out 0s; */
  }
  body.logged-in .navbar {
    top: calc(var(--header-wp-admin-bar) + 68px);
  }
  .menu-main-menu-navigation-container {
    width: 100%;
  }
  .navbar ul.menu .mega-menu-container {
    box-shadow: none;
  }
  .mega-left {
    width: 100%;
  }
  .mega-right {
    display: none !important;
  }
  .menu-main-menus-container {
    width: 100%;
  }
  .hero-btns a {
    font-size: 0.75em;
  }
  .header_left {
    margin-left: auto;
    margin-right: 0px;
  }
  .top_right {
    display: flex;
    align-items: center;
  }
  .open .navbar {
    left: 0;
  }
  .menu_icon,
  .close_icon {
    display: block;
  }
  .navbar ul {
    flex-wrap: wrap;
  }
  .header_top_bar {
    padding: 16px 5px;
  }
  .navbar ul li {
    float: left;
    margin-left: 0;
    width: 100%;
    text-align: left;
    padding: 5px 0;
    line-height: 1;
  }

  .navbar ul li a {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin: 0;
    text-align: left;
    padding: 10px 0;
  }
  #menu-main-menu-navigation > li > a {
    opacity: 1;
    display: block;
  }
  .navbar ul li a:before {
    left: 0;
    margin-left: 0;
  }
  .navbar .only-mobile > p {
    display: none;
  }
  .menu_icon {
    position: relative;
    top: 0;
    right: 0;
    display: flex;
    float: right;
    order: 2;
  }

  .top_right a.btn-design {
    display: none;
  }

  .navbar .only-mobile {
    width: 100%;
  }

  .navbar .only-mobile p {
    margin-bottom: 10px;
  }

  .only-mobile {
    display: block;
  }

  .navbar ul.menu ul.sub-menu {
    position: relative;
    transform: none;
    width: 100%;
    top: 0;
    left: 0;
    display: none;
    background: none;
    padding: 0px 10px 0px;
    border: none;
  }

  .navbar ul.menu ul.sub-menu li a {
    color: var(--color-white);
    text-transform: unset;
    letter-spacing: 0px;
    padding: 10px 0px;
    font-size: 18px;
    font-weight: 400;
    opacity: 0.65;
  }

  .navbar ul ul.sub-menu li {
    padding: 1px 15px;
  }
  #menu-main-menu-navigation > li.menu-btn a {
    border: 1px solid var(--color-red);
    padding: 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    background-color: var(--color-red);
    color: var(--color-white);
    white-space: nowrap;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    margin-top: 25px;
  }
  .accordion {
    padding-left: 0;
  }
  .single-project .left-col {
    padding-right: 5%;
  }
  .footer-logo {
    top: 20px;
  }
  .footer-logo img {
    max-width: 150px;
  }

  .navbar ul.menu .mega-menu-container {
    position: static;
    transform: none;
    width: 100%;
    border-top: none;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
  }

  .navbar ul.menu li.menu-item-has-children.open .mega-menu-container {
    padding: 1rem 1rem 1rem 0;
    display: block;
    max-height: 400px;
  }

  .sub-menu li {
    font-weight: 400;
    font-size: 18px;
    text-transform: none;
  }

  .project-slider-item-title {
    font-size: 40px;
  }

  .services-img.ratio-21x9 {
    padding-bottom: 57%;
  }

  /* Disable hover effects on mobile */
  .services-col:not(.no-link):hover {
    border: 1px solid var(--color-gray) !important;
  }

  .services-col:hover .btn-design,
  .services-col:hover .btn-border,
  .services-col .btn-border:hover,
  .services-col .btn-design:hover {
    box-shadow:
      0 0 0 3px transparent inset,
      0 0 15px 0 transparent !important;
  }
}

@media (max-width: 782px) {
  body.logged-in header {
    top: var(--header-wp-admin-bar-mobile);
  }

  body.logged-in .navbar {
    top: calc(var(--header-wp-admin-bar-mobile) + 68px);
  }
}

@media (max-width: 767px) {
  :root {
    --font-size-h1: 2.75rem;
    --font-size-h2: 2.4rem;
    --font-size-h3: 2.2rem;
    --font-size-h4: 1.675rem;
    --font-size-h5: 1.5rem;
    --font-size-h6: 1rem;
  }
  body {
    line-height: 1.4;
  }
  .skrollr-mobile body,
  html.skrollr-mobile {
    overflow: visible !important;
  }
  section {
    padding: 50px 0;
  }
  .timeline:before,
  .timeline:after {
    height: 50px;
  }
  .accordion {
    margin-top: 15px;
  }
  .accordion-body {
    width: 100%;
  }
  .card-head h4 {
    padding: 25px 38px 25px 0;
    font-size: 20px;
  }
  .accordion .card h4:after {
    width: 27px;
    height: 27px;
    background-size: 27px;
    right: 0;
    top: 20px;
  }
  .card-body {
    padding: 0 0 30px;
  }
  .accordion-wrapper {
    padding-top: 30px;
  }

  .footer-nav li {
    width: 100%;
  }

  .footer-nav ul {
    gap: 15px;
    margin-bottom: 25px;
  }
  .testimonials-slider.slick-custom-arrow button.slick-arrow.slick-next {
    left: calc(50% + 7px);
  }
  .testimonials-slider.slick-custom-arrow button.slick-arrow.slick-prev {
    right: calc(50% + 7px);
    left: auto;
  }
  .footer-nav {
    text-align: center;
  }
  .site_footer .social-icon ul {
    justify-content: center;
  }
  a.logo-fieldwrk img {
    width: 90px;
    margin: auto;
  }
  .info-links {
    padding: 20px 0;
  }
  .footer-top {
    padding: 40px 0 0;
  }
  .footer-logo {
    margin-bottom: 50px;
    position: unset;
    transform: unset;
  }
  .footer-logo img {
    max-width: 205px;
  }
  footer .hover-images {
    display: none;
  }
  .footer-nav a {
    color: #fff;
    border: none !important;
  }
  .project-content {
    padding: 20px;
  }
  .project-slider .slick-list {
    padding: 0;
  }
  .slick-slide {
    padding: 0 8px;
  }
  .project-slider-items img {
    min-height: 420px;
    object-fit: cover;
  }
  .project-content p {
    margin-bottom: 15px;
  }
  .single-project .left-col {
    padding-right: 0%;
    margin-top: 20px;
  }

  .text-scroll h2,
  .page-template-about .text-scroll h2 {
    font-size: 8.5vw;
  }
  .left-image-right-text .right-col {
    max-width: 98%;
    margin-inline: auto;
    padding: 50px 20px;
  }
  .filter-select {
    gap: 10px;
    flex-wrap: wrap;
  }
  .filter-select select {
    width: 100%;
  }
  .contact-info .social-icon {
    margin-bottom: 20px;
  }
  .contact-form .gform-body .gform_fields.top_label {
    grid-row-gap: 20px;
  }
  /* .inner-hero-sec {
    padding-bottom: 40%;
    min-height: 40vh;
  } */
  .counter-sec .counter-container:not(:last-child) {
    margin-bottom: 30px;
  }
  .timeline .row {
    padding: 50px 0 70px;
  }
  .timeline .sticky-top {
    position: unset;
    margin-bottom: 0;
  }
  .single-project .right-col ul {
    margin-bottom: 40px;
  }
  .project-slider-item-title {
    font-size: 32px;
  }

  section.left-image-right-text {
    padding-top: 0;
  }

  .hero-sec h1 {
    font-size: 3.5rem;
  }

  .inner-hero-sec {
    padding-bottom: 40%;
    min-height: 40vh;
  }

  .services-img.ratio-21x9 {
    padding-bottom: 52%;
  }

  footer .hover-images {
    display: none;
  }

  .project-slider-items img {
    height: 500px;
  }

  .team-col:hover .member-img {
    transform: none;
  }

  section.full-width-image {
    background-attachment: scroll;
  }
}

@media (max-width: 575px) {
  .testimonials-items h4 {
    font-size: 1.4rem;
    font-weight: 300;
  }

  h2 {
    font-size: 2.7rem;
  }

  /* Hero Fix */
  .hero-content {
    left: 0;
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
  }

  .open-position-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .open-position-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 420px) {
  .nav-tabs .nav-link h5 {
    font-size: 1.2rem;
  }

  .nav-tabs .nav-link {
    background-position: calc(100% - 17px) 0px !important;
  }
}
