:root {
  /** Font settings **/
  --hero-font: "Caprasimo", serif;
  --heading-font: "DM Serif Display", serif;
  --heading-font-weight: 500;
  --heading-font-size: 4rem;
  --body-font: "DM Sans", sans-serif;
  --body-font-weight: 400;
  --base-font-size: 16px;
  --body-font-size: 1.6rem;

  /** Color settings **/
  --body-bg-color: #4f6172;
  --main-bg-color: #fffafa;
  --accent-bg-color: #c1d0cb;
  --cta-color: #a7cdbd;
  --cta-color-hover: #6ecfa6;
  --link-color-light: #fffafa;
  --link-color-dark: #4f6172;
}

body {
  font-family: var(--body-font);
  font-weight: var(--body-font-weight);
  font-size: var(--body-font-size);
  background-color: var(--body-bg-color);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--heading-font);
  font-weight: var(--heading-font-weight);
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

h1 {
  font-family: var(--hero-font);
  font-size: var(--heading-font-size);
  text-shadow: #383838;
}

.container,
.container-xxl {
  background-color: var(--main-bg-color);
}

#hero {
  position: relative;
  background-color: var(--body-bg-color);
  overflow: hidden; /* ensure video doesn’t spill out */
  min-height: 825px;

}

#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover; /* scales video to cover the div */
  object-position: 70%;
  z-index: 0;
}

#hero .tagline,
#hero nav,
#hero > *:not(#hero-video) {
  position: relative;
  z-index: 1; /* ensures content sits on top of video */
}

#hero h1 {
  font-family: var(--hero-font);
  font-size: calc(1.2 * var(--heading-font-size));
  color: white; /* adjust for readability */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.bg-feldgrau {
  background-color: #586a54;
}

.bg-charcoal {
  background-color: #444c57;
}

.bg-cambridge {
  background-color: #7f9c96;
}

.bg-walnut {
  background-color: #5e5b52;
}

.bg-purple {
  background-color: #2e0014;
}

.bigheader,
.littleheader {
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  padding-bottom: 10rem;

  h1 {
    margin: 0px;
    padding: 0px;
    color: white;
    font-size: calc(1 * var(--heading-font-size));
    text-shadow: 1px 1px 2px #444444;
  }

  .summarytext {
    font-size: 1.1rem;
    line-height: 2.4rem;
    color: white;
  }

  img {
    width: 100%;
    /* margin-left: 4rem; */
  }

  nav {
    color: white;
    font-family: var(--body-font);

    .navbar-brand {
      img {
        height: 120px;
        /* content: url("../assets/img/shipton-logo-dark.svg"); */
      }
    }

    .navbar-toggler {
      justify-self: end;
    }

    .nav-link.active {
      background-color: rgba(0, 0, 0, 0.1);
      border-bottom: 2px solid white;
    }

    .nav-item {
      a {
        margin-top: 0.25rem;
        color: white;
        text-shadow: 1px 1px black;
        /* background-color: rgba(0,0,0,0.1); */

        :active {
          background-color: none;
        }
      }

      a {
        background-color: none;
      }

      a:hover {
        background-color: rgba(50, 50, 50, 0.5);
        border-radius: 0.5rem;
      }
    }

    .navbar-nav {
    }

    .cta-btn {
      background-color: var(--cta-color);
      border: 1px solid white;
      color: black;
      min-width: 150px;
      font-size: 1em;
      align-self: flex-end;

      &:hover {
        background-color: var(--cta-color-hover);
      }
    }

    input[type="search"] {
      margin-left: 1rem;
    }
  }

  .tagline {
    display: inline-block;

    .subtext {
      font-size: 1rem;

      a {
        color: white;
        text-decoration: none;

        &:hover {
          text-decoration: underline;
        }
      }
    }
  }
}

.littleheader {
  min-height: 325px;
  clip-path: polygon(0 0, 100% 0, 100% 190px, 0 100%);
}

#maincontent {
  background: var(--main-bg-color);
  margin-top: 2rem;

  p {
    line-height: 145%;
    letter-spacing:;
  }

  blockquote {
    font-family: var(--heading-font);
    font-size: calc(var(--body-font-size) * 1.4);
    /* font-style: italic; */
    font-weight: 600;
  }

  #homepage-intro {
    h2 {
      margin-top: 5rem;
      font-size: 3rem;
    }
  }

  .blockquote {
    border-left: 15px solid var(--body-bg-color);
    margin-left: 1rem;
    padding-left: 1rem;
    transform: skewX(-10deg);
  }

  .article-summary {
    font-size: 0.8em;
    min-height: 170px;

    a {
      color: var(--link-color-dark);
    }

    .article-title {
      /* min-height: 150px; */
      background-size: cover;

      h3 {
        align-self: flex-end;

        a {
          color: white;
          text-decoration: none;

          :hover {
            text-decoration: underline;
          }
        }
      }
    }
  }

  .edit-url {
    display: none;
  }

  .freeadvice-article {
    background-color: #cccccc;
    min-height: 225px;

    /* &:hover {
      background-color: white;
    } */

    h3 {
      color: white;
    }

    .advice-image {
      height: 200px;
      overflow: hidden;
      margin-top: 1rem;
      margin-bottom: 1rem;

      img {
        width: 100% !important;
        align-self: center;
      }
    }
  }

  .service {
    background-color: #eeeeee;
    font-size: 1rem;
  }
}

#pastwork {
  background-color: var(--cta-color);

  h2 {
    font-family: var(--heading-font);
    font-size: 3rem;
  }

  .pastworkintro {
    box-shadow: 3px 3px 4px #2f2e2e;
  }

  #pastworkcarousel {
    background-color: var(--accent-bg-color);

    h3 {
      font-family: var(--heading-font);
      font-size: 3rem;

      a {
        text-decoration: none;
        color: black;
        font-size: 2.5rem;
      }
    }
  }
}

footer {
  font-size: 1rem;
  margin-top: 4rem !important;

  a {
    text-decoration: none;
    color: var(--body-bg-color);
  }

  .nav-item {
    a {
      color: var(--body-bg-color);
    }
  }
}

@media only screen and (min-height: 852px) and (orientation: portrait) {
  .bigheader {
    outline: 1px solid red;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    min-height: 825px;
    height: auto;
    padding-bottom: 10rem;
  }
}
