:root {
  /* --orange: #fa2500; */
  --grey-text: #706c6c;
  --dark-text: #2f2f2f;
  --blue: #00244e;
  --accent: #00aeef;
}

* {
  box-sizing: border-box;
}

body,
html {
  padding: 0;
  margin: 0;
  font-family: 'Fira Sans', sans-serif;
}

body {
  background-color: #fbfbfb;
  grid-template-rows: max-content auto max-content;
}

h1,
h2 {
  color: var(--dark-text);
  font-weight: bold;
  font-family: 'Roboto', sans-serif;
}

.bold {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}

.inline-block {
  display: inline-block;
}

.center-block {
  display: block;
  text-align: center;
}

.material-icons {
  font-size: 50px !important;
}

.accent {
  color: var(--accent);
}

section {
  font-size: 1.3em;
}

section.boxed {
  padding: 1rem;
  margin: 3rem 1rem;
  background: rgba(255, 255, 255, 0.7);
}

.row {
  width: 100%;
}

.white-heading {
  color: #fbfbfb;
  text-transform: uppercase;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  padding: 5px;
}

/* ==========================================================================
   Navbar classes
   ========================================================================== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 990;
  margin-top: 54px;
  background-color: #fbfbfb;
}

.nav-bar ul li:not(:nth-last-child(-n+2)) a {
  border-right: 2px solid var(--grey-text);
}

.nav-bar ul li a {
  padding: 0 1em;
  text-transform: uppercase;
  color: var(--grey-text);
  display: block;
  text-decoration: none;
  color: var(--grey-text);
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
}

.navbar-brand {
  margin: 0 0px 0 20px;
}

.nav-bar ul li a.navbar-brand-two {
  display: grid;
  justify-content: right;
}

.top-bar {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 999;
  background-color: #706c6c;
  font-family: 'Roboto', sans-serif;
  width: 40%;
  padding: 10px;
  display: grid;
  gap: 15px;
  grid-template-columns: max-content min-content min-content auto;
  align-items: center;
}

main {
  margin-top: 84px;
  padding: 1px 0;
  background-image: url(/images/background.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}

/* ==========================================================================
   Services
   ========================================================================== */
.icon-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.icon-box {
  display: grid;
  text-align: center;
  justify-items: center;
  grid-template-rows: min-content auto;
  padding: 20px;
  cursor: pointer;
  border: 1px solid #fbfbfb;
  transition: all 0.3s;
}

.icon-box:hover {
  border: 1px solid var(--accent);
  transform: scale(1.05);
  box-shadow: 2px 2px 8px #666;
}

.icon-box .blurb h2 {
  color: var(--blue);
  margin: 0;
}

.icon-box img {
  width: 6rem;
  height: auto;
}

/* ==========================================================================
   Projects classes
   ========================================================================== */
.projects-wrap {
  display: grid;
  gap: 0 2%;
  grid-template-columns: repeat(3, 32%);
}

.project-box {
  display: grid;
  position: relative;
  max-width: 100%;
  margin-bottom: 2vw;
}

.project-box a img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  grid-area: main;
}

.project-item {
  display: grid;
  grid-template-areas: 'main';
  text-decoration: none;
}

.overlay {
  opacity: 0;
  display: grid;
  grid-area: main;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 20px;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 36, 78, 0.8);
  transition: all 0.2s;
}

.overlay h2 {
  color: var(--accent);
  font-weight: normal;
}

.project-box:hover .overlay {
  opacity: 1;
}

.back {
  display: grid;
  grid-template-columns: min-content auto;
  align-items: center;
  color: var(--blue);
  font-weight: bold;
  text-decoration: none;
  font-size: 30px;
  gap: 10px;
}

/* ==========================================================================
   Process classes
   ========================================================================== */
.icon {
  color: var(--accent);
  transition: all 0.3s;
}

.active .icon {
  rotate: 180deg;
}

.accordion {
  display: grid;
  gap: 0.5rem;
  margin: 20px auto;
  overflow: hidden;
}

.accordion h2 {
  font-size: 1.25rem;
  font-weight: normal;
  margin: 0;
  color: black;
}

.accordion-item {
  border: 1px solid var(--accent);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 15px;
  background-color: #f1f1f1;
  border: none;
  outline: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s;
}

.accordion-header:hover {
  background-color: #e2e2e2;
}

.accordion-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 15px;
  background-color: #fff;
}

@media screen and (max-width:949px) {
  .accordion-content {
    grid-template-columns: 1fr;
  }
}

.accordion-content p {
  margin: 1rem 0;
}

.accordion-content video,
.accordion-content img,
.grid-item img {
  padding: 1rem;
  max-width: 100%;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Media classes
   ========================================================================== */
.publications {
  width: 70%;
  height: auto;
}

.publications img {
  width: 100%;
  height: auto;
}

@media screen and (min-width:769px) {
  .video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 600px;
    max-width: 1200px;
    margin: auto;
    background-color: #000;
    overflow: hidden;
  }

  .video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
  }
}


/* ==========================================================================
   Contact classes
   ========================================================================== */
#formData {
  display: grid;
  gap: 20px;
  background-color: white;
  padding: 3rem 0;
}

#formData label {
  color: #324e6e;
  position: absolute;
  left: 10px;
  align-self: end;
  transition: all 0.4s
}

.inputCont {
  position: relative;
  margin: 0 auto;
  width: 85%;
  display: grid;
  height: 65x;
}

.inputCont input {
  align-self: end;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #9e9e9e;
  border-radius: 0;
  outline: 0;
  height: 2rem;
  font-size: 22px;
  padding-left: 10px;
  box-shadow: none;
  box-sizing: content-box;
  transition: all 0.3s;
}

.inputCont input:focus {
  border-bottom: 1px solid var(--accent);
  box-shadow: 0 1px 0 0 #666;
}

#formData label.active {
  position: initial;
}

textarea {
  font-family: inherit;
  font-size: inherit;
  height: auto;
}

button.g-recaptcha {
  border: 1px solid var(--blue);
  transition: all 0.3s;
  background: none;
  outline: none;
  width: 150px;
  padding: 0.6em 1em;
  font-size: inherit;
  margin: 0 auto;
  cursor: pointer;
}

button.g-recaptcha:hover {
  border: 1px solid var(--accent);
  background-color: var(--accent);
}

/* ==========================================================================
   Footer classes
   ========================================================================== */
footer {
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
  color: #7f7b7b;
  background-image: url('../images/footer_banner.jpg');
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
}

footer p {
  margin: 0;
}

footer .row {
  padding: 20px 0;
  background-color: rgba(255, 255, 255, 0.8);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.contact-info .col {
  grid-auto-rows: min-content;
  padding: 20px;
  display: grid;
  gap: 10px;
}

.contact-info .col a {
  color: inherit;
  text-decoration: none;
}

.credits img {
  max-height: 75px;
  width: auto;
}

.facebook {
  background: url(../images/icons/facebook-icon.png) no-repeat;
  height: 30px;
  width: 30px;
}

.instagram {
  background: url(../images/icons/instagram-icon.png) no-repeat;
  background-size: 30px 30px;
  height: 30px;
  width: 30px;
}


.testimonial-content {
  font-style: italic;
  font-size: 0.8em;
}

.testimonial-box {
  display: grid;
  align-items: center;
}

@media screen and (min-width:950px) {
  h1 {
    font-size: 2em;
  }

  main {
    margin-top: 176px;
  }

  .mobile-menu-btn {
    display: none !important;
  }

  nav {
    display: grid;
    grid-template-columns: max-content auto;
  }

  .nav-bar {
    display: grid;
    align-items: start;
    padding-top: 10px;
  }

  .nav-bar ul {
    display: grid;
    grid-template-columns: repeat(6, max-content) 1fr;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
  }

  section.boxed {
    padding: 2rem;
    max-width: 1100px;
    margin: 3rem auto;
  }

  .accordion {
    max-width: 80%;
  }
}

@media screen and (max-width:949px) {
  header {
    margin-top: 0;
  }

  nav {
    padding: 0;
    margin-top: 0;
    display: grid;
    position: relative;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .navbar-brand {
    margin: 0;
  }

  .nav-bar ul li a.navbar-brand-two {
    justify-content: center;
  }

  .navbar-brand img {
    height: 80px;
    width: auto;
  }

  .mobile-menu-btn {
    justify-self: right;
    padding: 0 20px;
  }

  .nav-bar {
    max-height: 0px;
    overflow: hidden;
    position: absolute;
    top: 85px;
    width: 100%;
    transition: all 0.3s;
  }

  .nav-bar.open {
    max-height: 100vh;
  }

  .nav-bar.open li,
  .nav-bar li {
    margin: 10px;
  }

  header .nav-bar.open ul li a,
  header .nav-bar ul li a {
    border-right: none !important;
    padding: 15px;
  }

  .nav-bar ul {
    background-color: #fbfbfb;
    list-style-type: none;
    margin: 0;
    height: 100vh;
    padding: 20px;
    text-align: center;
  }

  .projects-wrap {
    grid-template-columns: repeat(2, 49%);
  }

  .top-bar {
    display: none;
  }

  .icon-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .full-size {
    width: 100%;
    height: auto;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .icon-wrap {
    grid-template-columns: 1fr;
  }

  .projects-wrap {
    grid-template-columns: 1fr;
  }
}

.notThere {
  display: none;
}

a:visited {
  color: inherit;
}

/* SWIPER CSS */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
  z-index: 99;
  position: absolute;
  top: calc(50% - 18px);
  width: 37px;
  height: 37px;
  cursor: pointer;
  background-image: url(../images/a11.png);
  background-repeat: no-repeat;
  overflow: hidden;
}

.swiper-button-next {
  right: 1rem;
  background-position: -71px -41px;
}

.swiper-button-next:hover {
  background-position: -191px -41px;
}

.swiper-button-prev {
  left: 1rem;
  background-position: -11px -41px;
}

.swiper-button-prev:hover {
  background-position: -131px -41px;
}

.testimonialSwiper .swiper-slide {
  display: grid;
  padding: 1rem 3rem;
}