/* ----------- Google Fonts - Work Sans ----------- */

@import url('https://fonts.googleapis.com/css?family=Work+Sans:400,600');

body {
 	font-family: 'Work Sans', sans-serif;
	font-size: 16px;
  font-weight: 400;
	line-height: 1.5;
	
	background-color: #f5f5f5;
	color: #616161;
}

/* ----------- Typography ----------- */

/* Font Weight */
h1, h2, h3, h4, blockquote {  
  font-weight: 600;
}
/* Line Height */
h1, h2, h3, h4  {
  line-height: 1.2em;
}
blockquote, .lead {
  line-height: 1.4em;
}
/* Font Size */
h1 {
	font-size: 3.052em;
}
h2 {
  font-size: 2.441em;
}
h3 {
  font-size: 1.953em;
}
h4, blockquote, .lead, .label {
  font-size: 1.563em;
}
p {
  font-size: 1.25em;
}
.fine-print {
  font-size: 0.8em;
}
/* Color */
.hero, .bg-primary {
  color: #fff;
}
h2, h3, h4, blockquote {
  color: #212121;
}

/* ----------- Background Colors ----------- */

.bg-white {
  background-color: #fff;
}
.bg-primary {
  background-color: #29519f;
}
.bg-secondary {
  background-color: #fafafa;
}

/* ----------- Style by Section -----------*/

/* Header */
header {
  padding: 0 120px;
  background-color: #fff;
}
nav {
  height: 120px;
  
  /* Flexbox */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.logo-module {
  height: 60px;
  width: auto;
}
a .logo-large {
  height: 60px;
  width: auto;
}
a .logo-small, a .logo-icon {
  height: 50px;
  width: auto;
}
a {
  position: relative;
  /* display: inline-block; */
  font-size: 18px; 
  line-height: 1em;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
.button-round {
  background-color: #224486;
  color: #fff;  
	padding: 20.25px 40px;
  border-radius: 30px;
  
  /* Background color transitions for hover states */
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
}
.button-round:hover {
  background-color: #1a3365;
}
.icon {
  height: 18px;
  width: auto;
  padding-right: 10px;
  
  vertical-align: middle;	/* Centers image vertically relative to the button text */
}

/* Hero */
.hero {  
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('a-suburban-neighborhood-street-with-lens-flare.jpg');
 
  height: calc(100vh - 120px); /* Sets the section height based on the viewport */
  
  /* Background image position, repeat and size */
  background-position: center;
  background-repeat:  no-repeat;
  background-size: 100vw auto;
}
.hero-image {  
  width: 100vw;
  height: auto;
}
.hero-content {
  height: 100%;
  
  /* Flexbox */
  display: flex;
  flex-direction: row;
	align-items: center;
  justify-content: center;
}
.hero-text {
  width: 486px;
  margin: 0 126px 0 0;
  
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);	/* Text shadow */
}
.thanks .hero-text {
  width: 1200px;
  margin: 0;
}
.hero-text h1 {
  margin-bottom: 20px;
}
.form-table {
  width: 588px;
}

/* What and Why Sections */
section:not(.hero) {
  padding: 120px 0;
}
.headline-text, .section-content {
  position: relative;
  display: flex;
  flex-direction: row;
	align-items: center;
  justify-content: center;
}
.headline-text {
  margin-bottom: 90px;
}
.headline-text h2 {
  width: 1200px;
}
.text-block {
  width: 588px;
  margin: 0 126px 0 0;
}
.text-block h2, p:not(:last-child) {
  margin-bottom: 30px;
}
.image-block :first-child {
  position: relative;
  z-index: 1;
}
img {
  width: 486px;
  height: auto;
}
.square-1, .square-2, .square-3, .square-4, .square-5, .square-6 {
  position: absolute;
  top: 50%;
}
.square-1, .square-4 {
  height: 216px;
  width: 216px;
}
.square-2, .square-5 {
  height: 432px;
  width: 432px;
  background-color: #f5f5f5;

  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);  /* Box shadow */
}
.square-3, .square-6 {
  height: 396px;
  width: 396px;
  background-color: #e0e0e0;
}
.square-1 {
  background-color: #ffab00;
  
  transform: translate(-54px, -45px); /* Changes the square's postion */
}
.square-2 {
  transform: translate(-36px, -279px);  /* Changes the square's postion */
}
.square-3 {
  transform: translate(-18px, -261px);  /* Changes the square's postion */
}
.square-4 {
  background-color: #224486;
  
  transform: translate(324px, -45px); /* Changes the square's postion */
}
.square-5 {
  transform: translate(90px, -279px);  /* Changes the square's postion */
}
.square-6 {
  transform: translate(108px, -261px);  /* Changes the square's postion */
}
.image-block.left img {
  margin: 0 126px 0 0;
}
.text-column .text-block {
  margin: 0 0 50px 0;
}
.text-column .text-block:last-child {
  margin-bottom: 0;
}
.text-column .text-block h3 {
  margin-bottom: 20px;
}

/* Testimonials Section */
.testimonial {
  padding: 40px;
  margin: 0 126px 0 0;
  background-color: #eee;
  border-radius: 3px;
}
.testimonial:last-child {
  margin: 0 102px 0 0;
}
.avatar {
  display: flex;
  flex-direction: row;
	align-items: center;
}
.avatar img {
  width: 150px;
  height: auto;
  margin: 0 30px 0 0;
  border-radius: 75px;

  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);	/* Box shadow */
}
.label-text {
  width: 226px;
}
h4 {
  margin-bottom: 5px;
}
blockquote {
  width: 406px;
  margin-top: 50px;
}

/* CTA Section */
.bg-primary h1 {
  width: 690px;
  margin: 0 64px 0 0;
}
.button-square {
  background-color: #ff8f00;
  color: #fff;  
	padding: 21px 40px;
  margin-right: 64px;
  border-radius: 3px;
      
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25); /* Box shadow */
  
  /* Background color transitions for hover states */
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
}
.button-square:hover {
  background-color: #ffa533;
}

/* Footer */
footer {
  height: 60px;
  background-color: #212121;
  color: #fff;
  
  text-align: center; /* Center aligns footer fine print */
}
.fine-print {
  padding: 20.5px 0;
}