/* 
 /--- Animations  ---/
 
 Main property for animation is opacity and transform

 */
@keyframes moveInLeft {
  0% {
    /* Initial state of animation */
    opacity: 0;
    transform: translateX(-10rem);
    /* Animate in X direction */ }
  80% {
    transform: translateX(1rem); }
  100% {
    /* Final state of animation */
    opacity: 1;
    transform: translate(0);
    /* removes animation translates */ } }

@keyframes moveInRight {
  0% {
    /* Initial state of animation */
    opacity: 0;
    transform: translateX(10rem);
    /* Animate in X direction */ }
  80% {
    transform: translateX(-1rem); }
  100% {
    /* Final state of animation */
    opacity: 1;
    transform: translate(0);
    /* removes animation translates */ } }

@keyframes moveInBottom {
  0% {
    /* Initial state of animation */
    opacity: 0;
    transform: translateY(3rem);
    /* Animate in X direction */ }
  100% {
    /* Final state of animation */
    opacity: 1;
    transform: translate(0);
    /* removes animation translates */ } }

*, *::after, *::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
  /* force box sizing to inherit throughout the site*/ }

/* Global styles */
html {
  font-size: 62.5%;
  /* this is set, to allow for 1 rem to = 10px */ }

body {
  box-sizing: border-box;
  /* cleans the box-sizing up and applies the inherit, box size = specified width + height, ie removing padding */ }

body {
  font-family: "Lato",sans-serif;
  font-weight: 400;
  line-height: 1.7;
  /* 1.7 x bigger than default */
  color: #777;
  padding: 3rem;
  /* White border around page */ }

.heading-primary {
  color: #fff;
  text-transform: uppercase;
  backface-visibility: hidden;
  /* Solves bounce in animation  */
  margin-bottom: 6rem; }
  .heading-primary--main {
    display: block;
    /* block elements have a line break above and below */
    font-size: 6rem;
    font-weight: 400;
    letter-spacing: 3.5rem;
    animation-name: moveInLeft;
    /* applies @keyframes function <name> to style */
    animation-duration: 1s;
    animation-timing-function: ease-out; }
  .heading-primary--sub {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1.75rem;
    animation: moveInRight 1s ease-out;
    /* Short hand  */ }

.heading-secondary {
  font-size: 3.5rem;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
  background-image: linear-gradient(to right, #55c57a, #28b485);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: .2rem;
  transition: all .2s; }
  .heading-secondary:hover {
    transform: skewY(2deg) skewX(15deg) scale(1.1);
    text-shadow: 0.5rem 1rem 2rem rgba(0, 0, 0, 0.2); }

.heading-tertiary {
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase; }

.paragraph {
  font-size: 1.8rem; }
  .paragraph:not(:last-child) {
    margin-bottom: 3rem; }

.u-center-text {
  text-align: center; }

.u-margin-bottom-small {
  margin-bottom: 1.5rem; }

.u-margin-bottom-medium {
  margin-bottom: 4rem; }

.u-margin-bottom-big {
  margin-bottom: 8rem; }

.btn:link, .btn:visited {
  /* pseudo class :link,:visited styling for special state */
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.5rem 4rem;
  display: inline-block;
  /* treating like text */
  border-radius: 10rem;
  transition: all .2s;
  /* all allows for the removal of specifc animation calls */
  position: relative;
  /* sets origin of absloute position for elements of the button */
  font-size: 1.8rem; }

.btn:hover {
  transform: translateY(-0.3rem);
  /* Animate in y direction */
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  /* x y blur colour */ }
  .btn:hover::after {
    /*Only pseudo element occurs after hover*/
    transform: scaleX(1.4) scaleY(1.6);
    /* requires animation, applied to initial state. so .btn::after */
    opacity: 0; }

.btn:active {
  transform: translateY(-1rem);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  /* x y blur colour */ }

.btn--white {
  background-color: #fff;
  color: #777; }
  .btn--white::after {
    background-color: #fff; }

.btn::after {
  /* pseudo element */
  content: "";
  /* required to use the after element*/
  display: inline-block;
  height: 100%;
  width: 100%;
  border-radius: 10rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: all .4s; }

.btn--animated {
  animation: moveInBottom .5s ease-out .75s;
  /* Short hand->  keyframe/ duration/animation type/ delay */
  animation-fill-mode: backwards;
  /*Applies 0% before starting animation */ }

.btn-text:link, .btn-text:visited {
  font-size: 1.8rem;
  color: #28b485;
  display: inline-block;
  text-decoration: none;
  border-bottom: 0.1rem solid #28b485;
  padding: .3rem;
  transition: all .2s; }

.btn-text:hover {
  background-color: #28b485;
  color: #fff;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
  transform: translateY(-2px); }

.btn-text:active {
  box-shadow: 0 0.5em 1rem rgba(0, 0, 0, 0.15);
  transform: translateY(0px); }

.composition {
  position: relative; }
  .composition__photo {
    width: 55%;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.4);
    border-radius: 2px;
    position: absolute;
    z-index: 10;
    transition: all .2s;
    outline-offset: 2rem; }
    .composition__photo--p1 {
      left: 0;
      top: -2rem; }
    .composition__photo--p2 {
      right: 0;
      top: 2rem; }
    .composition__photo--p3 {
      left: 20%;
      top: 10rem; }
    .composition__photo:hover {
      outline: 1.5rem solid #7ed56f;
      transform: scale(1.05) translateY(-0.5rem);
      box-shadow: 0 2.5rem 4rem rgba(0, 0, 0, 0.5);
      z-index: 20; }
  .composition:hover .composition__photo:not(:hover) {
    transform: scale(0.95); }

.feature-box {
  background-color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  border-radius: 3px;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.15); }
  .feature-box__icon {
    font-size: 6rem;
    margin-bottom: .5rem;
    display: inline-block;
    background-image: linear-gradient(to right, #55c57a, #28b485);
    -webkit-background-clip: text;
    color: transparent; }

/* header */
.header {
  height: 95vh;
  /* independent of device, 95% of height */
  background-image: linear-gradient(to right bottom, rgba(85, 197, 122, 0.8), rgba(40, 180, 133, 0.8)), url(../img/hero.jpg);
  /* background image */
  background-size: cover;
  /* expands to div */
  background-position: top;
  /* sticks the top of the image */
  position: relative;
  /* Sets origin for position absolute */
  clip-path: polygon(0 0, 100% 0, 100% 75vh, 0 100%);
  /* standard x/y per point order of preference top left, top right, bottom right, bottom left */ }
  .header__logo-box {
    position: absolute;
    top: 4rem;
    left: 4rem; }
  .header__logo {
    height: 3.5rem; }
  .header__text-box {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* sets the halfway point of the div to the top/left positions, not using 0,0 position*/
    text-align: center; }

.row {
  max-width: 114rem;
  margin: 0 auto; }
  .row:not(:last-child) {
    margin-bottom: 8rem; }
  .row::after {
    content: "";
    display: table;
    clear: both; }
  .row [class^="col-"] {
    float: left; }
    .row [class^="col-"]:not(:last-child) {
      margin-right: 4rem; }
  .row .col-1-of-2 {
    width: calc((100% - 4rem)/2); }
  .row .col-1-of-3 {
    width: calc((100% - 2* 4rem)/3); }
  .row .col-2-of-3 {
    width: calc(2* ((100% - 2* 4rem)/3) + 4rem); }
  .row .col-1-of-4 {
    width: calc((100% - 3* 4rem)/4); }
  .row .col-2-of-4 {
    width: calc(2 * ((100% - 3 * 4rem)/4) + 4rem); }
  .row .col-3-of-4 {
    width: calc(3 * ((100% - 3 * 4rem)/4) + 2 * 4rem); }

.section-about {
  background-color: #f7f7f7;
  padding: 25rem 0;
  margin-top: -20vh; }

.section-features {
  padding: 20rem 0;
  background-image: linear-gradient(to right bottom, rgba(85, 197, 122, 0.8), rgba(40, 180, 133, 0.8)), url(../img/nat-4.jpg);
  background-size: cover; }
