/* sadie: circular gradients with hovers, titles, and background images */

.grid {
  position: relative;
  margin: 0 auto;
  padding: 1em 0 4em;
  max-width: 1000px;
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
}
.grid figure {
  position: relative;
  float: left;
  overflow: hidden;
  margin: 10px 1%;
  min-width: 300px;
  max-width: 300px;
  max-height: 300px;
  width: 48%;
  background: #4a4a4a;
  text-align: center;
  cursor: pointer;
  border-radius: 50%;
}
.grid figure img {
  position: relative;
  display: block;
  min-height: 100%;
  max-width: 100%;
  opacity: 0.5;
}
.grid figure figcaption {
  padding: 2em;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.25em;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  text-shadow: 1px 1px 10px rgba(150, 150, 150, 0.4);
}
.grid figure figcaption::before,
.grid figure figcaption::after {
  pointer-events: none;
}
.grid figure figcaption,
.grid figure figcaption > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.grid figure figcaption > a {
  z-index: 1000;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
}
.grid figure h2 {
  word-spacing: -0.15em;
  font-weight: 300;
}
.grid figure h2 span {
  font-weight: 800;
}
.grid figure h2,
.grid figure p {
  margin: 0;
  text-shadow: 1px 1px 10px rgba(150, 150, 150, 0.8);
}
.grid figure p {
  letter-spacing: 1px;
  font-size: 68.5%;
}
figure.effect-sadie figcaption::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: -webkit-linear-gradient(
    top,
    rgba(91, 177, 100, 0) 0%,
    rgba(91, 177, 100, 0.8) 75%
  );
  background: linear-gradient(
    to bottom,
    rgba(91, 177, 100, 0) 0%,
    rgba(91, 177, 100, 0.8) 75%
  );
  content: "";
  opacity: 0;
  -webkit-transform: translate3d(0, 50%, 0);
  transform: translate3d(0, 50%, 0);
}
figure.effect-sadie h2 {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  color: #ffffff;
  -webkit-transition: -webkit-transform 0.35s, color 0.35s;
  transition: transform 0.35s, color 0.35s;
  -webkit-transform: translate3d(0, -50%, 0);
  transform: translate3d(0, -50%, 0);
}
figure.effect-sadie figcaption::before,
figure.effect-sadie p {
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
}
figure.effect-sadie p {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 2em;
  width: 100%;
  opacity: 0;
  -webkit-transform: translate3d(0, 10px, 0);
  transform: translate3d(0, 10px, 0);
}
figure.effect-sadie:hover h2 {
  color: #fff;
  -webkit-transform: translate3d(0, -50%, 0) translate3d(0, -40px, 0);
  transform: translate3d(0, -50%, 0) translate3d(0, -40px, 0);
}
figure.effect-sadie:hover figcaption::before,
figure.effect-sadie:hover p {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

/*--------------------------------------------------------------
# innner page hero component
--------------------------------------------------------------*/

/* header underline */
.underline {
  display: block;
  position: relative;
  width: 60%;
  height: 2px;
  background: var(--main-color);
  margin: 25px auto;
}
.underline:before,
.underline:after {
  content: "";
  position: absolute;
  width: 50%;
}
.underline:before {
  left: 0;
  top: -5px;
  border-top: 2px solid var(--main-color);
}
.underline:after {
  left: 50%;
  bottom: -5px;
  border-bottom: 2px solid var(--main-color);
}

.underline-color {
  background: var(--main-color);
}
.underline-color:before,
.underline-color:after {
  border-color: var(--main-color);
}

/* -- Hero -- */
.hero {
  position: relative;
  padding: 100px 0px;
  background-image: linear-gradient(
      270deg,
      rgba(33, 33, 33, 0.8) 0%,
      rgba(33, 33, 33, 0.95) 100%
    ),
    url(https://images.pexels.com/videos/3045163/free-video-3045163.jpg?auto=compress&cs=tinysrgb&dpr=1&w=500);
  color: #ffffff;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  text-align: center;
}

.hero-panel {
  position: relative;
  color: #fff;
  max-width: 1090px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
  -webkit-animation: fadeIn 1.5s;
  animation: fadeIn 1.5s;
}

.hero-phone {
  color: #fff;
  text-decoration: underline;
}
.hero-phone:hover {
  color: #fff;
  text-decoration: none;
}

.h1-hero-heading {
  font-weight: bold;
  font-size: 3em;
}

@keyframes fadeIn {
  0% {
    transform: rotateY(90deg);
    opacity: 0;
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

/* -- Services - Main -- */

.services-row {
  display: flex;
  flex-wrap: wrap;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.25) 100%
    ),
    url(/imageserver/UserMedia/rankincountycustom/hero_background_1.jpg);
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 70px 3%;
}
.services-left {
  width: 50%;
  padding: 15px;
}
.services-right {
  width: 50%;
}

.services-left {
  position: relative;
  padding: 25px;
}

.services-right {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  position: relative;
}
.services-box {
  text-align: center;
  width: 50%;
  height: 50%;
  padding: 25px;
}
.services-left h3 {
  margin-top: 0;
  color: var(--accent-color);
}
.services-box h3 {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--accent-color);
}
.services-box i {
  position: relative;
  font-size: 3em !important;
  border: 3px solid var(--accent-color);
  border-radius: 50%;
  color: var(--accent-color);
  padding: 5px;
  margin-bottom: 10px;
}
.services-box i:after {
  content: "";
  position: absolute;
  border-top: 10px solid var(--accent-color);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  bottom: -25px;
  left: 50%;
  margin-left: -10px;
}

@media (max-width: 981px) {
    .services-left,
    .services-right {
        width: 100%;
    }
}

@media (max-width: 550px) {
    .services-left,
    .services-right {
        width: 100%;
    }
    .services-box {
        width: 100%;
        height: auto;
    }
}