* {
  margin: 0;
  padding: 0;
}

html { height: 100%; }

body {
  background-color: #fff;
  box-sizing: border-box;
  font: 300 18px "Fira Sans", sans-serif;
  min-height: 100%;
  padding-bottom: 418px;
  position: relative;
}

h1 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 1em;
}

h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 0.667em;
  text-transform: uppercase;
}

h3 {
  font: 400 36px "Libre Caslon Text", serif;
  margin-bottom: 0.8em;
}

h4 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

h5 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 0.75em;
  text-transform: uppercase;
}

p {
  line-height: 1.6em;
  margin: 1em 0;
}

p:first-of-type { margin-top: 0; }

p:last-of-type { margin-bottom: 0; }

p.larger {
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
}

img { vertical-align: middle; }

a { transition: 300ms; }

.button {
  background-color: #243756;
  box-sizing: border-box;
	color: #fff !important;
	display: inline-block;
  font-size: 18px;
  font-weight: 400;
	padding: 15px 30px;
  text-align: center;
	text-decoration: none;
  text-transform: uppercase;
}

.button:hover { background-color: #3a4f70; }

.button-wrapper { margin-top: 2em; }

.hide { opacity: 0; }

/* ==========================================================================
   Header
   ========================================================================== */

header {
  margin: 0 auto;
  max-width: 1600px;
  padding: 40px 20px;
  position: absolute;
    top: 0;
    right: 0;
    left: 0;
  z-index: 100;
}

nav {
  display: grid;
  gap: 20px;
  grid-template-columns: max-content 1fr;
  place-items: center end;
}

nav a {
  color: #fff;
  display: block;
  text-decoration: none;
}

#menu-main-menu {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  gap: 20px 60px;
  list-style: none;
}

#menu-main-menu a {
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
}

#menu-main-menu a:not(.button)::after {
  border-bottom: 3px solid #243756;
  content: '';
  display: block;
  margin-bottom: -5px;
  padding-bottom: 5px;
  transform: scaleX(0);
  transition: transform 300ms ease-in-out;
}

#menu-main-menu a:not(.button):hover::after { transform: scaleX(0.9); }

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

#mainMenu {
  background-color: #1f1f1f;
  height: 100vh;
  overflow-x: hidden;
  position: fixed;
    top: 0;
    right: 0;
  transition: 1s;
  width: 0;
  z-index: 998;
}

#mainMenu.show { width: 100%; }

#mainMenu ul { list-style: none; }

#mainMenu .mobile-menu { margin: 0 30px; }

#mainMenu .mobile-menu:first-child { margin-top: 30px; }

.mobile-menu li ul {
  display: none;
  margin-bottom: 15px;
}

.mobile-menu a {
  color: #fff;
  display: block;
  font-size: 18px;
  font-weight: 400;
  margin: 20px 0;
  text-decoration: none;
  white-space: nowrap;
}

/* ==========================================================================
    Mobile Menu Toggle
   ========================================================================== */
  
#openMenu {
  background-color: #1f1f1f;
  display: none;
  padding: 20px 15px;
  position: fixed;
    top: 0;
    right: 0;
  transition: .5s;
  width: 41px;
  z-index: 999;
}

#openMenu.open {
  background-color: #1f1f1f;
  color: #fff;
}

#menuTitle {
  position: relative;
  text-align: center;
  transition: .5s;
}
  
/* ==========================================================================
    Mobile Menu Icon Transition Effect
   ========================================================================== */
  
#btn {
  cursor: pointer;
  display: block;
  height: 30px;
  position: relative;
  transition: .5s;
  z-index: 200;
}

#btn .icon,
#btn .icon::before,
#btn .icon::after {
  background: #fff;
  content: '';
  display: block;
  height: 2px;
  position: absolute;
  transition: top ease .5s .5s, transform ease .5s;
  width: 41px;
}

#btn .icon {
  top: 14px;
  left: 2px;
}

#btn .icon::before { top: -8px; }

#btn .icon::after { top: 8px; }

#btn.active .icon { background: transparent; }

#btn.active .icon::before { transform: rotate(45deg); }

#btn.active .icon::after { transform: rotate(-45deg); }

#btn.active .icon::before,
#btn.active .icon::after {
  background-color: #fff;
  top: 0;
  transition: top ease .5s, transform ease .5s .5s;
}

/* ==========================================================================
   Banner
   ========================================================================== */

.banner {
  position: relative;
  z-index: 0;
}

.banner img { max-width: 100%; }

/* ==========================================================================
   Content
   ========================================================================== */

.frontpage {
  margin: 120px auto;
  max-width: 1600px;
  padding: 0 20px;
}

.intro {
  margin: 0 auto 80px;
  max-width: 900px;
  text-align: center;
}

.frontpage .grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.frontpage .grid-item { position: relative; }

.frontpage .text {
  background-color: #f6f6f6;
  padding: 40px 40px 92px;
  text-align: center;
}

.frontpage .button-wrapper {
  margin: 0;
  position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
}

.frontpage .button { width: 100%; }

.frontpage img { max-width: 100%; }

.content {
  margin: 120px auto;
  max-width: 1600px;
  padding: 0 20px;
}

.content img { max-width: 100%; }

.left-image {
  align-items: center;
  display: grid;
  gap: 80px;
  grid-template-columns: 10fr 9fr;
}

.right-image {
  align-items: center;
  display: grid;
  gap: 80px;
  grid-template-columns: 9fr 10fr;
}

/* ==========================================================================
   Section 1
   ========================================================================== */

.section1 {
  background: url("../images/bg.jpg") left top repeat;
  border-top: 20px solid #fff;
  border-bottom: 20px solid #fff;
  margin: 120px auto;
  padding: 0 20px;
  text-align: center;
}

.section1 .video { margin: -20px 0; }

/* ==========================================================================
   Section 2
   ========================================================================== */

.section2 {
  margin: 120px auto;
  max-width: 1600px;
  padding: 0 20px;
}

.section2 img { max-width: 100%; }

/* ==========================================================================
   Section 3
   ========================================================================== */

.section3-wrapper {
  background: #999 url("../images/eifs-council-certified.jpg") right center no-repeat;
  background-size: auto 100%;
  color: #fff;
}

.section3 {
  margin: 120px auto;
  max-width: 1600px;
  padding: 120px 20px;
}

.section3 .text { max-width: 50%; }

/* ==========================================================================
   Section 4
   ========================================================================== */

.section4 {
  margin: 120px auto;
  max-width: 1600px;
  padding: 0 20px;
}

.section4 h2 { text-align: center; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-wrapper {
  background-color: #38383b;
  color: #fff;
  position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
}

.footer-wrapper a {
  color: #fff;
  text-decoration: none;
}

.footer-wrapper a:hover { color: #c3c3c7; }

.footer {
  display: grid;
  gap: 30px 120px;
  grid-template-columns: 500px 1fr max-content;
  margin: 0 auto;
  max-width: 1600px;
  padding: 60px 20px;
}

.footer .menu {
  line-height: 1.5em;
  list-style: none;
}

.footer .tagline { margin: 30px 0; }

.footer .social {
  display: flex;
  flex-flow: row nowrap;
  gap: 10px;
}

.footer .social .fa-brands {
  background-color: #fff;
  border-radius: 16px;
  box-sizing: border-box;
  color: #38383b;
  padding: 7px;
  text-align: center;
  transition: 300ms;
  width: 32px;
}

.footer .social .fa-brands:hover { background-color: #c3c3c7; }

.copyright {
  border-top: 1px solid #606062;
  padding: 20px;
  text-align: center;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media only screen  
and (max-width : 1199px) {

body { padding-bottom: 0; }

h2 { font-size: 44px; }

nav {
  grid-template-columns: auto;
  justify-items: center;
}

.frontpage,
.content,
[class*="wrapper"] [class*="section"] { margin: 80px auto; }

.section3 {
  background-color: rgba(153,153,153,0.7);
  padding: 80px 20px;
}

.section3 .text { max-width: none; }

.intro { margin: 0 auto 60px; }

.frontpage .grid { gap: 20px; }

.frontpage .text { padding: 20px 20px 72px; }

.left-image,
.right-image { gap: 60px; }

.footer-wrapper { position: relative; }

.footer { grid-template-columns: repeat(2, 1fr); }

.branding { grid-column: 1 / span 2; }

}

@media only screen  
and (max-width : 1023px) {

#menu-main-menu { gap: 20px 40px; }

.section1 img { max-width: 100%; }

.left-image,
.right-image { grid-template-columns: auto; }

}

@media only screen  
and (max-width : 767px) {

h2 { font-size: 36px; }

header .logo { margin-right: 71px; }

.logo img { max-width: 100%; }

nav { justify-items: start; }

.main-menu { display: none; }

#openMenu { display: block; }

.banner .image {
  width: 100%;
  overflow: hidden;
}

.banner img {
  height: 300px;
  max-width: none;
}

.frontpage,
.content,
[class*="wrapper"] [class*="section"] { margin: 60px auto; }

.section3 { padding: 60px 20px; }

.intro { margin-bottom: 40px; }

.left-image,
.right-image { gap: 40px; }

.footer { grid-template-columns: auto; }

.branding { grid-column: auto; }

}

@media only screen  
and (max-width : 479px) {

.banner img { height: 200px; }

.frontpage .grid { grid-template-columns: auto; }

}