/*! HTML5 Boilerplate v5.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #585857;
  font-size: 16px;
  line-height: 1;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #007ebd;
  color: #aee2fa;
  text-shadow: none;
}

::selection {
  background: #007ebd;
  color: #aee2fa;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   ESP Bookkeeping
   ========================================================================== */

*, *:before, *:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  color: #1d1d1b;
  scroll-behavior: smooth;
  height: -webkit-fill-available;
}

html.with-fancybox {
  scroll-behavior: auto;
}

a {
  text-decoration: none;
  color: #89804a;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

* {
  font-variant-ligatures: none;
}

body, input, textarea {
  font-family: 'Lufga', serif;
  font-weight: normal;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

strong {
  font-weight: bold;
}

em {
  font-style: normal;
}

ul, li, p, h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: normal;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
}

ul {
  list-style: none;
}

button,
a {
  transition: all 0.25s;
}

.container {
  max-width: 1160px; /* 1080px */
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

header {
  position: relative;
  background-image: linear-gradient(to right, #006e63 0, #006e63 50%, #00756a 50%, #00756a 100%);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 56px 0;
}

.header ul {
  display: flex;
  align-items: flex-start;
  align-items: center;
}

.header ul li {
  margin-right: 40px;
  font-size: 1rem;
  font-weight: bold;
}

.header ul li:last-of-type {
  margin-right: 0;
}

.header ul li a {
  display: block;
  color: #fff;
}

.header ul li:last-of-type a {
  background-color: #6abf4b;
  padding: 16px 28px;
  border-radius: 24px;
}

.header ul li:last-of-type a:hover {
  background-color: #fff;
  color: #6abf4b;
}

.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: calc(100vh - 196px);
}

.banner__text {
  width: 50%;
  padding-right: 64px;
}

.banner__text h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.25;
  letter-spacing: -0.0125em;
}

.banner__text p {
  color: #fff;
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 48px;
}

.banner__image {
  width: 50%;
  height: calc(100vh - 196px);
  overflow: hidden;
}

.banner__image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__social {
  position: absolute;
  top: 50%;
  right: -64px;
}

.banner__social .social {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.banner__social .social a {
  display: block;
  margin-bottom: 16px;
}

.banner__social .social a:last-of-type {
  margin-bottom: 0;
}

.contactDetails {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.contactDetails > a {
  display: block;
  margin-right: 28px;
  font-size: 1rem;
  font-weight: bold;
  background-color: #6abf4b;
  padding: 16px 28px;
  border-radius: 24px;
  color: #fff;
}

.contactDetails > a:hover {
  background-color: #fff;
  color: #6abf4b;
}

.contactDetails__call {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.contactDetails__call > img {
  margin-right: 12px;
}

.contactDetails__call h4 {
  font-size: 0.75rem;
  color: #6abf4b;
  font-weight: normal;
  margin-bottom: 8px;
}

.contactDetails__call h3 {
  font-size: 1.125rem;
}

.contactDetails__call h3 span {
  padding: 0 4px;
  font-weight: normal;
  color: #6abf4b;
}

.contactDetails__call h3 a {
  color: #fff;
}

.text {
  background-color: #f9faf5;
  background-position: left 40px bottom 40px;
  background-repeat: no-repeat;
  background-image: url(/img/bg.svg);
  padding: 80px 0;
}

.text--noBg {
  background: #f9faf5;
}

.text__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  margin-bottom: 40px;
}

.text__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  margin-bottom: 40px;
}

.text__button {
  display: flex;
  justify-content: center;
}

.text__button > a {
  display: block;
  margin-right: 28px;
  font-size: 1rem;
  font-weight: bold;
  background-color: #6abf4b;
  padding: 16px 28px;
  border-radius: 24px;
  color: #fff;
}

.text__button > a:hover {
  background-color: #006e63;
}

.body h2 {
  color: #006e63;
  font-size: 2rem;
  line-height: 1.375;
  max-width: 564px;
  margin: 0 auto 24px;
}

.body h3 {
  color: #006e63;
  font-size: 1.625rem;
  line-height: 1.5;
  max-width: 724px;
  margin: 0 auto 24px;
}

.body h4 {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.025em;
  color: #6abf4b;
  margin-bottom: 24px;
  font-weight: normal;
}

.body p {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 24px;
}

.body p a {
  color: #006e63;
}

.body > :last-child,
.body > div :last-child {
  margin-bottom: 0;
}

.textImage {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  background-color: #f9faf5;
}

.textImage__body {
  display: flex;
  align-items: flex-end;
}

.textImage__body .body {
  background-color: #006e63;
  height: calc(100% - 40px);
  padding: 64px 64px 64px 0;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.textImage__body .body > div {
  width: 100%;
  max-width: 520px;
  padding-left: 40px;
}

.textImage__body .body > div > * {
  color: #fff;
}

.textImage__image {
  overflow: hidden;
}

.textImage__image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icons {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-column-gap: 28px;
  grid-row-gap: 48px;
}

.icons__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.icons__item > img {
  margin-bottom: 20px;
}

.icons__item > h3 {
  font-size: 1rem;
  color: #006e63;
}

.contact {
  padding: 80px 0;
  background-color: #006e63;
}

.contact__main {
  margin-bottom: 64px;
}

.contact__main__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.contact__main__body.body h3,
.contact__main__body.body p {
  color: #fff;
}

.contact__main__body.body p a {
  color: #fff;
}

.contact__main__body.body p span {
  padding: 0 8px;
  color: #6abf4b;
}

.contact__main__body.body .social {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact__main__body.body .social > a {
  display: block;
  margin-right: 12px;
}

.contact__main__body.body .social > a:last-of-type {
  margin-right: 0;
}

.contact__form__heading {
  display: flex;
  justify-content: center;
  border-top: 1px solid #348a7f;
  margin-bottom: 64px;
}

.contact__form__heading h2 {
  color: #fff;
  background-color: #006e63;
  padding: 0 24px;
  margin-top: -14px;
  font-size: 1.75rem;
}

.contact__form__smallPrint.body {
  text-align: center;
}

.contact__form__smallPrint.body p {
  color: #fff;
  font-size: 0.875rem;
}

.contact__form__smallPrint.body p a {
  color: #6abf4b;
}

.contact__form__smallPrint.body p a:hover {
  color: #fff;
}

.contact__form__smallPrint.body p span {
  color: rgba(255,255,255,.25);
  padding: 0 8px;
}

.contact__form__form {
  max-width: 624px;
  margin: 0 auto 64px;
}

.inputs {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.inputs > div {
  width: calc(50% - 24px);
}

.pure-form input[type="text"],
.pure-form input[type="email"] {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #fff;
  font-size: 0.875rem;
  color: #000;
  border-radius: 26px;
  width: 100%;
}

.pure-form label {
  display: block;
  margin: 0 0 12px;
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
}

.pure-form textarea {
  padding: 16px 20px;
  border: 1px solid #fff;
  font-size: 0.875rem;
  color: #000;
  border-radius: 26px;
  width: 100%;
  height: 180px;
  line-height: 1.75;
}

.buttons {
  display: flex;
  justify-content: center;
}

.pure-form button {
  border: 1px solid #fff;
  font-size: 1rem;
  font-weight: bold;
  background-color: transparent;
  border-radius: 26px;
  padding: 16px 40px;
  color: #fff;
}

.textarea {
  margin-bottom: 40px;
}

.accreditationsAndMemberships {
  padding: 48px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.accreditationsAndMemberships div {
  margin-right: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.accreditationsAndMemberships div:last-of-type {
  margin-right: 0;
}

.accreditationsAndMemberships a {
  display: block;
  height: 92px;
  overflow: hidden;
}

.accreditationsAndMemberships a img {
  width: 100%;
  height: 100%;
  max-width: 168px;
  max-height: 92px;
  object-fit: contain;
}

.accreditationsAndMemberships span {
  display: block;
  font-size: 0.75rem;
  margin-top: 8px;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 */

.hidden {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *  `contenteditable` attribute is included anywhere else in the document.
 *  Otherwise it causes space to appear at the top and bottom of elements
 *  that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *  `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
     (-webkit-min-device-pixel-ratio: 1.25),
     (-o-min-device-pixel-ratio: 5/4),
     (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important; /* Black prints faster:
                   http://www.sanbeiji.com/archives/953 */
    -webkit-box-shadow: none !important;
            box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */

  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * http://css-discuss.incutio.com/wiki/Printing_Tables
   */

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
