* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;
  color: #404040;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

ul {
  padding-left: 1em;
}

a {
  color: #0272ba;
  text-decoration: none;
  font-weight: 700;
  transform: color 250ms;
}

a:hover {
  border-bottom: 2px solid #0272ba;
}

/* ================
	Typography
=================== */
h1,
h2,
strong {
  font-weight: 700;
}

.hero-title {
  font-size: 2.8rem;
  margin: 0;
}

.accent-color {
  color: #0272ba;
  font-weight: 700;
}

.section-title {
  font-size: 1.75rem;
  color: #000;
  align-self: start;
}

.section-title::after {
  content: '';
  display: block; /* so it shows up */
  width: 50px;
  height: 3px;
  background: #0272ba;
  margin: 10px auto 0 auto;
}

.section-title-center::after {
  margin-left: auto;
  margin-right: auto;
}

.page-title {
  font-size: 2.5rem;
  justify-self: center;
  color: #000;
}

.page-title::after {
  content: '';
  display: block;
  width: 100%;
  height: 5px;
  background-color: #0272ba;
}

.subtitle {
  font-size: 1.125rem;
  grid-column: 2/-2;
}

/* buttons */
.btn {
  padding: 0.5em 1.75em;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.5em;
  border: 0;
}

.btn-primary {
  background: #0272ba;
  color: #fff;
  justify-self: start;
  transition: background-color 250ms;
}

.btn-primary:hover,
.btn-primary:active {
  background-color: #045e96;
  border-bottom: none;
}

@media (min-width: 600px) {
  .section-title::after {
    margin: 10px 0 0;
  }
}

/* ================
	General Layout
=================== */
.main-grid {
  display: grid;
  grid-template-columns: minmax(1em, 1fr) minmax(0px, 500px) minmax(1em, 1fr);
  grid-gap: 0 2em;
}

@media (min-width: 600px) {
  .hero,
  .how-it-works,
  .resources,
  .who-we-are,
  .contact {
    font-size: 120%;
  }

  .main-grid {
    grid-template-columns: minmax(1em, 1fr) repeat(3, minmax(150px, 420px)) minmax(
        1em,
        1fr
      );
  }
}

/* navigation */
.header {
  background: #0272ba;
}

.header-fixed {
  position: fixed;
  z-index: 100;
  width: 100%;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-column: 2 / -2;
  padding: 1em 0;
}

.logo-link {
  text-decoration: none;
}

.logo-link:hover {
  border-bottom: none;
}

.logo {
  display: block;
}

.nav {
  position: fixed;
  background: black;
  width: 100%;
  top: 0;
  left: 100%;
  right: 0;
  bottom: 0;
  transform: translateX(0);
  transition: transform 250ms;
  z-index: 100;
  text-transform: uppercase;
}

.nav-contact {
  display: none;
  color: #fff;
  font-weight: 700;
  margin-right: 2em;
  position: relative;
  top: -10px;
}

.nav-contact i {
  display: inline-block;
  border-radius: 60px;
  color: #888;
  font-size: 0.9rem;
  box-shadow: 0 0 2px #888;
  padding: 0.5em 0.5em;
  margin-right: 5px;
}

.nav-open {
  transform: translateX(-100%);
}

.nav-list {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  transform: color 250ms;
  padding: 0.5em 1.5em;
}

.active {
  border-bottom: 2px solid #eca127;
}

.nav-link:hover,
.nav-link:active {
  background-color: #0272ba;
  color: #fff;
  border: 0;
}

.close-nav {
  border: 0;
  background: 0;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  padding: 0.5em;
  cursor: pointer;
  position: absolute;
  z-index: inherit;
}

.open-nav {
  border: 0;
  background: 0;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  padding: 0.5em;
}

@media (min-width: 850px) {
  .nav {
    position: initial;
    background: 0;
  }

  .nav-contact {
    display: flex;
    justify-content: flex-end;
  }

  /* this fixes a display bug. if you open the menu in mobile view then you maximize your screen, this will make the nav to be the default view for large screen */
  .nav.nav-open {
    position: initial;
    transform: translateX(0);
  }

  .open-nav,
  .close-nav {
    display: none;
  }

  .nav-list {
    flex-direction: row;
    justify-content: flex-end;
  }

  .nav-item {
    margin-left: 2em;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0;
    padding-bottom: 3px;
  }

  .nav-link:hover {
    border-bottom: 2px solid #eca127;
  }
}

/* footer */
.footer {
  background: #ebebeb;
  padding: 4em 0;
  text-align: center;

  grid-template-areas:
    '. social .'
    '. main .';
}

.footer-text,
.footer-fineprint {
  opacity: 0.6;
  margin-bottom: 0;
}

.footer-fineprint {
  margin-top: 0;
}

.footer-main,
.social-list {
  grid-column: 2/-2;
}

.footer-main {
  grid-area: main;
}

.social-list {
  grid-area: social;
  order: -1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  margin-bottom: 2em;
}

.social-link {
  color: #000;
  font-size: 1.5rem;
  margin: 0 0.5em;
}

.social-link:hover,
.social-link:active {
  color: #0272ba;
}

@media (min-width: 600px) {
  .footer {
    grid-template-areas: ' . main main social .';
    text-align: left;
  }

  .social-list {
    justify-content: flex-end;
  }
}

/* Template Page */
.main-template {
  padding: 4em 0;
  text-align: center;
}

.main-template > * {
  grid-column: 2 / -2;
}

.main-image {
  margin-bottom: 2em;
  box-shadow: 5px 5px 0 black, 10px 10px 0 #0272ba;
}

@media (min-width: 600px) {
  .main-template {
    padding: 6em 0 5em;
    text-align: left;
  }

  .main-text p:first-child {
    margin-top: 0;
  }

  .main-image {
    grid-column: 2 / 3;
  }

  .main-text {
    grid-column: 3 / span 2;
  }
}

/* ================
	Hero Area
=================== */
.hero {
  background: #000;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)),
    url('../img/hero-bg.jpg');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  padding: 10em 0 5em;
  text-align: center;
}

.hero > * {
  grid-column: 2/-2;
}

.hero .btn {
  justify-self: center;
}

@media (min-width: 600px) {
  .hero {
    text-align: center;
    padding: 15em 0;
    /* height: 100vh;
    max-height: 100%; */
  }

  .hero .btn {
    justify-self: center;
  }
}

@media (min-width: 768px) {
  .hero {
    background-position: center center;
  }

  .hero > * {
    grid-column: 2 / -2;
    /* margin-right: 10%; */
  }
}

/* ================
	Who We Are Section
=================== */

@media (min-width: 600px) {
  .who-we-are {
    padding: 4em 0;
  }
}

/* ================
	How It Works Section
=================== */
.how-it-works {
  text-align: center;
  padding-top: 6em;
}

.links {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  margin-top: 1em;
  padding: 0;
  justify-content: space-between;
}

.link-item {
  margin-top: 1em;
}

.link {
  font-weight: bold;
  color: #0272ba;
  text-decoration: none;
  border-bottom: 2px solid #0272ba;
}

@media (min-width: 600px) {
  .how-it-works {
    text-align: left;
  }

  .links {
    flex-direction: row;
  }
}

/* ================
	Contact Us
=================== */
.contact {
  text-align: center;
}

.contact .page-title {
  margin-bottom: 0;
}

.contact p {
  text-align: center;
  margin-bottom: 2em;
}

.contact .subtitle {
  margin-bottom: 1em;
}

.contact .phone-numbers {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 1em;
}

.contact .phone-numbers-content {
  margin-bottom: 1em;
}

div.AuthorizeNetSeal a {
  border: none;
}

.contact-form {
  display: grid;
  text-align: left;
}

label {
  font-weight: 700;
}

input {
  margin-bottom: 0.75em;
  padding: 0.5em;
  font-family: inherit;
}

.contact .btn {
  align-self: start;
}

.contact-message {
  font-weight: bold;
  justify-self: start;
  align-self: start;
}

.contact-message-success {
  color: green;
}

.contact-message-fail {
  color: red;
}

@media (min-width: 600px) {
  .contact {
    text-align: left;
    padding-top: 6em;
    padding-bottom: 8em;
  }
  
    .contact .phone-numbers {
    flex-direction: row;
    align-items: center;
  }

  .contact .phone-numbers-content {
    margin-bottom: 0em;
    margin-right: 3em;
  }

  .contact-form {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: dense;
    grid-gap: 0 2em;
  }

  .fname-label,
  .fname-input,
  .lname-label,
  .lname-input,
  .email-label,
  .email-input {
    grid-column: 1;
  }

  .fr-label,
  .fr-input,
  .lr-label,
  .lr-input,
  .er-label,
  .er-input {
    grid-column: 2;
  }

  .contact-message {
    margin-top: 0;
  }
}

/* ================
	Resources
=================== */
.resources {
  text-align: center;
  padding-top: 6em;
}

@media (min-width: 600px) {
  .resources {
    text-align: left;
  }
}

/* ================
	Services
=================== */
.services {
  text-align: center;
  padding-top: 6em;
}

@media (min-width: 600px) {
  .services {
    text-align: left;
  }
}

/* ================
	404
=================== */
.error-404 {
  text-align: center;
}

@media (min-width: 600px) {
  .error-404 {
    padding-bottom: 22em;
  }
}

