/* CSS for Billstech billstech.co.ke */

* {
  box-sizing: border-box;
}

:root {
  font-size: 16px;
}

body {
  text-align: left;
  margin: 0 auto;
  max-width: 80rem;
  padding: 0.5rem;
  font-family: "Lato", sans-serif;
  background-color: #f5f5f5;
  width: 100%;
  height: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  line-height: 1.5;
}

::selection {
  background-color: #303081;
  color: #ffffff;
}

.landing {
  height: 50vh;
  min-height: 33rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f5;
  margin-top: 10rem;
}

@media screen and (max-width: 1024px) {
  .landing {
    min-height: 35rem;
    margin-top: 9rem;
  }
}

@media screen and (max-width: 768px) {
  .landing {
    margin-top: 10rem;
  }
}

@media screen and (max-width: 480px) {
  .landing {
    min-height: 40rem;
    margin-top: 7rem;
  }
}

.landing img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing h2 {
  margin-top: 2rem;
  color: #303081;
  font-weight: 500;
}

header {
  position: fixed;
  z-index: 9999;
  background-color: #303081;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  padding: 0.5rem 0;
  text-align: right;
  font-weight: bold;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

main {
  margin-top: 80px; /* or the height of the header */
}

.nav-link.active {
  color: #ffffff;
  text-decoration: underline;
}

nav a:hover,
nav a:active,
nav a.active {
  color: #ffffff;
}

/* Clearfix (clear floats) */
.nav-menu::after {
  content: "";
  clear: both;
  display: table;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  text-align: left;
  margin: 0.25rem 0.25rem 0.25rem 0.25rem;
}

nav {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 0;
  margin: 0.25rem 3rem 0.25rem 0.25rem;
  background-color: inherit;
}

nav a {
  display: inline-block;
  margin: 0 0.25rem 0 0;
  letter-spacing: 0.03125rem;
  font-size: 1rem;
  font-weight: 300;
  text-decoration: none;
  color: #ffffff;
  padding: 0;
  line-height: 1;
}

/* Styling for the active navigation menu link */
nav a.active {
  color: #ffffff;
  font-weight: 400;
}

@media (max-width: 48rem) {
  nav {
    flex-direction: column;
  }

  nav a {
    margin: 0.3125rem 0;
  }
}

/* Styling for active and hover states of navigation links */
nav a:hover {
  background-color: none;
  color: #ffffff;
  text-decoration: underline;
}

a:not(.nav-link):not([href*=".jpg"]):not([href*=".jpeg"]):not([href*=".png"]):not([href*=".gif"]) {
  color: #303081;
  text-decoration: underline;
}

a:not(.nav-link):not([href*=".jpg"]):not([href*=".jpeg"]):not([href*=".png"]):not([href*=".gif"]):not(.logo-link):hover,
a:not(.nav-link):not([href*=".jpg"]):not([href*=".jpeg"]):not([href*=".png"]):not([href*=".gif"]):not(.logo-link):active {
  background-color: #303081;
  color: #ffffff;
  text-decoration: none;
}

h1 {
  font-size: 1.625rem;
  color: #303081;
  font-weight: 600;
  text-align: left;
  margin: 0.5rem 0;
}

h2 {
  font-size: 1.25rem;
  color: #000000;
  font-weight: 400;
  text-align: left;
  margin: 4rem 0 1.25rem 0;
}

h3 {
  font-size: 1.25rem;
  color: #000000;
  font-weight: 500;
  text-align: left;
  margin: 1.25rem 0;
}

h4 {
  font-size: 1.625rem;
  color: #303081;
  font-weight: 600;
  text-align: left;
  margin: 3rem 0 0 0;
  border-left: 1rem solid #303081;
  padding-left: 0.5rem;
}

h5 {
  font-size: 1rem;
  color: #000000;
  font-weight: 400;
}

h6 {
  font-size: 1rem;
  color: #000000;
  font-weight: 300;
  margin: 0;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  margin: 2rem 0 0;
  padding: 0.5rem;
  border-top: 1rem solid #303081;
}

.footer-section {
  flex-basis: calc(50% - 1rem);
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  color: #000000;
  font-weight: 300;
  text-align: left;
}

blockquote {
  font-size: 1.25rem;
  color: #303081;
  font-weight: 600;
  text-align: center;
  font-style: normal;
  border: 0.0625rem solid #303081;
  padding: 0.5rem;
  margin: 1rem 1rem;
}

hr {
  border: none;
  border-top: solid 1rem #303081;
  margin: 2rem 0 0 0;
}

img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
  object-fit: contain;
}

figure {
  padding: 0.5vw;
  font-size: 0;
  display: -ms-flexbox;
  -ms-flex-wrap: wrap;
  -ms-flex-direction: column;
  -webkit-flex-flow: row wrap;
  flex-flow: row wrap;
  display: flex;
  max-width: 100%;
  height: auto;
}

figure div {
  -webkit-box-flex: auto;
  -ms-flex: auto;
  flex: auto;
  width: 12.5rem;
  margin: 0.5vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

figure div img {
  width: 100%;
  height: auto;
}

.column {
  float: left;
  width: 50%;
}

/* Clearfix (clear floats) */
.row::after {
  content: "";
  clear: both;
  display: table;
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {
  .column {
    width: 100%;
  }
}

ul {
  list-style-type: disc;
  color: #cccccc;
  font-size: 0.875rem;
  font-weight: 300;
  text-align: left;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.25rem;
}

.projects-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 100%;
  margin: 0 3rem;
  padding-top: 5rem;
  background-color: #f5f5f5;
}

@media (max-width: 480px) {
  .projects-section {
    margin: 0.5rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .project {
    width: 100%;
  }

  .project img {
    height: auto;
    max-width: 100%;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .projects-section {
    margin: 0.5rem;
    justify-content: space-between;
    gap: 1rem;
  }

  .project {
    flex-basis: calc(50% - 1rem);
    width: 100%;
  }

  .project img {
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .projects-section {
    margin: 2rem;
    justify-content: space-between;
    gap: 2rem;
  }

  .project {
    flex-basis: calc(33.33% - 1rem);
    width: 100%;
  }

  .project img {
    max-width: 100%;
  }
}

@media (min-width: 1024px) {
  .projects-section {
    margin: 3rem auto;
    max-width: 100%;
  }

  .project {
    flex-basis: calc(25% - 1rem);
    width: 100%;
  }

  .project img {
    max-width: 100%;
  }
}

.project {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  height: auto;
  min-height: 30rem;
}

.project img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  display: block;
  filter: saturate(150%) contrast(120%);
  filter: brightness(110%);
  overflow: hidden;
  max-width: 100%;
}

.project-text {
  text-align: left;
  background-color: #f5f5f5;
  padding: 0.5rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.service-image {
  width: 30%;
  height: auto;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-description {
  width: 70%;
  padding: 1rem;
  box-sizing: border-box;
}

@media screen and (max-width: 767px) {
  .services {
    flex-direction: column;
    align-items: center;
  }

  .service-image {
    width: 100%;
    margin-bottom: 0.1rem;
  }

  .service-description {
    width: 100%;
  }
}
