* {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

body {
    margin: 0;
}

/* Structure/layout */

.container,
.top-nav {
    width: 100%;
}

header,
main,
section,
footer {
    width: 100%;
}

.inner {
    margin: 0 auto;
    width: 95%;
    max-width: 800px;
    padding: 2rem 0;
}

.inner-flex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
}

.col-4 { -ms-flex-preferred-size: 33.33%; flex-basis: 33.33%; }
.col-6 { -ms-flex-preferred-size: 50%; flex-basis: 50%; }
.col-8 { -ms-flex-preferred-size: 66.66%; flex-basis: 66.66%; }
.col-12 { -ms-flex-preferred-size: 100%; flex-basis: 100%; }

/* Default Typography */

h1, h2, h3 {
    font-family: 'Oswald', 'Helvetica', 'Arial', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

p, a, small, ul, ol, h4, h5, h6 {
    font-family: 'Poppins', 'Helvetica', 'Arial', sans-serif;
    font-weight: 300;
}

h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1.1rem; }

a {
    font-weight: 500;
    text-decoration: underline;
}

a:hover {
    opacity: 0.8;
}

strong {
    font-weight: 500;
}

.type-regular h2, .type-regular h3, .type-regular h4 {
    color: #333;
}

.type-regular p, .type-regular small {
    color: #555;
}

.type-regular a {
    color: #00A0D1;
}

.type-inverted h2, .type-inverted h3, .type-inverted h4,
.type-inverted p, .type-inverted small, .type-inverted a {
    color: #fff;
}

/* Navigation */

.top-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    height: 100px;
    padding: 0 2rem;
    position: absolute;
    top: 0;
    left: 0;
}

.top-nav-links {
    color: #555;
    padding: 0;
}

.top-nav-links li {
    border-bottom: 2px solid rgba(255,255,255,0);
    cursor: pointer;
    display: inline;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    text-transform: uppercase;
}

.top-nav-links li:nth-child(1):hover { border-bottom-color: #00A0D1; }
.top-nav-links li:nth-child(2):hover { border-bottom-color: #97BF0D; }
.top-nav-links li:nth-child(3):hover { border-bottom-color: #EF8214; }

/* Header */

header {
    background-image: url('../img/scene.svg');
    background-size: 100%;
    background-position: bottom;
    background-repeat: no-repeat;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    height: 100vh;
    min-height: 500px;
    padding-top: 100px;
}

.hero-text {
    color: #555;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.4;
    margin-top: -100px;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.hero-blue { color: #00A0D1; }
.hero-green { color: #97BF0D; }
.hero-orange { color: #EF8214; }

/* Call to Action */

.cta-description {
    color: #555;
    font-size: 0.9rem;
    text-align: center;
    text-transform: uppercase;
}

.cta-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.cta-button {
    border: 2px solid #333;
    color: #fff;
    font-family: 'Oswald', 'Helvetica', 'Arial', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    margin: 0 1rem;
    padding: 0.5rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    min-width: 240px;
}

.btn-blue { background-color: #00A0D1; }
.btn-green { background-color: #97BF0D; }
.btn-orange { background-color: #EF8214; }

/* What Is Storehouse? */

.what-is-storehouse {
    background-color: #97BF0D;
    color: #fff;
    -webkit-transform: translateY(-3px);
        -ms-transform: translateY(-3px);
            transform: translateY(-3px);
}

.what-is-storehouse .inner {
    margin: 0rem auto 1rem auto;
    padding-top: 5rem;
    max-width: 600px;
}

.what-is-storehouse h2 {
    text-align: right;
}

.what-is-storehouse p {
    font-size: 1.1rem;
    margin-left: 3rem;
}

.what-is-storehouse h2:nth-child(1),
.what-is-storehouse p:nth-child(1) {
    margin-top: 0px;
}

.what-is-storehouse::after {
    content: '';
    display: block;
    background-image:url('../img/swirl-white.svg');
    background-repeat: no-repeat;
    background-size: 100%;
    height: 20px;
    -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
            transform: rotate(180deg);
    width: 100%;
}

/* How does it work? */ 

.how-does-it-work h2 {
    margin-top: 4rem;
    text-align: center;
}

.how-does-it-work .inner-flex .col-6 {
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    padding: 1rem 2rem;
}

.how-does-it-work .inner-flex:nth-child(odd) {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
            flex-direction: row-reverse;
}

.how-does-it-work .inner-flex:nth-child(odd) div:nth-child(2) {
    text-align: right;
}

.how-does-it-work .inner-flex:nth-child(even) div:nth-child(1) {
    text-align: right;
}

/* Styles relevant to 3 different orange sections */

.section-orange {
    background-color: #EF8214;
}

.section-orange::before {
    content: '';
    display: block;
    background-image:url('../img/swirl-white.svg');
    background-repeat: no-repeat;
    background-size: 100%;
    height: 20px;
    width: 100%;
}

.section-orange::after {
    content: '';
    display: block;
    background-image:url('../img/swirl-white.svg');
    background-repeat: no-repeat;
    background-size: 100%;
    height: 20px;
    -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
            transform: rotate(180deg);
    width: 100%;
}

/* Quotes */

.quote {
    background-image: url('../img/icon-quote-marks.svg');
    background-repeat: no-repeat;
    background-position: 10% 30%;
    text-align: center;
}

.quote .inner {
    margin: 4rem auto;
    max-width: 700px;
}

.quote p {
    font-size: 1.3rem;
    font-weight: 500;
}

/* Become a Referrer */

.become-a-referrer .inner {
    margin: 4rem auto 2rem auto;
    max-width: 700px;
}

.become-a-referrer h2 {
    text-align: right;
    margin-top: 0;
}

.become-a-referrer p {
    font-size: 1.1rem;
    margin-top: 0;
    margin-left: 3rem;
}

/* Audience specific info sections */

.icon-container {
    text-align: center;
}

/* More Information */

.more-information {
    padding-bottom: 4rem;
}

/* Contact */

.section-blue {
    background-color: #00A0D1;
}

.section-blue::before {
    content: '';
    display: block;
    background-image:url('../img/swirl-white.svg');
    background-repeat: no-repeat;
    background-size: 100%;
    height: 20px;
    width: 100%;
}

.section-blue::after {
    content: '';
    display: block;
    background-image:url('../img/swirl-white.svg');
    background-repeat: no-repeat;
    background-size: 100%;
    height: 20px;
    -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
            transform: rotate(180deg);
    width: 100%;
}

.contact h2 {
    margin-top: 4rem;
    text-align: center;
}

.contact-form-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-icon {
    display: block;
    margin: 10px auto;
    max-width: 200px;
}

.launch-contact-form {
    color: #EF8214 !important;
    display:block;
    background-color: #fff;
    padding: 10px 40px;
    text-decoration: none;
    text-align: center;
}

/* Contact Form */

input,
textarea {
    background-color: #fff;
    border: 2px solid #007CA3;
    font-family: 'Poppins', 'Helvetica', 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    padding: 0.3rem;
    resize: none;
    width: 100%;
}

label {
    color: #fff;
    font-family: 'Poppins', 'Helvetica', 'Arial', sans-serif;
    font-size: 0.8rem;
}

input:hover,
textarea:hover {
    background-color: #f3f3f3;
}

#form-verify,
#form-verify-label {
    display: block;
    position: absolute;
    top: -10000px;
    right: -10000px;
}

input[type="submit"] {
    cursor: pointer;
}

#form-messages {
    color: #fff;
    font-family: 'Poppins', 'Poppins', 'Helvetica', 'Arial', sans-serif;
    font-size: 0.8rem;
    text-align: center;
    width: 100%;
}

#form-messages.error {
    
}

#form-messages.error {
    
}


/* Google map */

#map {
    background-color: #aaa;
    height: 300px;
    margin-bottom: 3rem;
}

/* Footer */

.logo-bottom {
    text-align: center;
}

footer .inner-flex {
    padding-top: 3rem;
}

footer .inner-flex .col-4,
footer .inner-flex .col-8 {
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    font-size: 1.4rem;
}

.copy-text {
    text-align: center;
}

.footer-image {
    background-image: url('../img/clothes.jpg');
    background-position: center top;
    background-size: cover;
    height: 500px;
    margin-top: -100px;
    width: 100%;
}

/* Loader */

.loader-container {
    background-color: #eee;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9999;
    -webkit-transition: all ease 0s;
    -o-transition: all ease 0s;
    transition: all ease 0s;
}

.loader {
  background-color: #fff;
  border-radius: 50%;
  position: relative;
  height: 30px;
  width: 30px;
  -webkit-animation: spin infinite 1s linear;
          animation: spin infinite 1s linear;
}

.loader-dot {
  background-color: #47C2E9;
  border-radius: 50%;
  position: absolute;
  top: 7px; left: 7px;
  height: 7px;
  width: 7px;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes spin {
  0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

.animation-waiting {
    opacity: 0;
}

.animation-complete {
    opacity: 1;
}

@media ( max-width: 850px ) {
    
    .logo-top {
        width: 150px;
    }
    
    .top-nav-links li {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-text {
        font-size: 1.6rem;
    }
    
    .cta-button {
        font-size: 1rem;
        margin: 0.3rem;
        min-width: 180px;
    }
    
    .footer-image {
        background-image: url('../img/clothes_850.jpg');
        height: 300px;
        margin-top: -20px;
    }
    
}

@media ( max-width: 650px ) {
    
    h2 {
        font-size: 1.8rem;
    }
    
    .top-nav {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        padding-top: 1.5rem;
    }
    
    .logo-top {
        width: 200px;
    }
    
    .hero-text {
        margin-top: 0;
        font-size: 1.7rem;
    }
    
    .cta-section {
        margin: 0 auto;
        width: 75%;
    }
    
    .cta-buttons {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        margin: 0 auto;
        width: 80%;
    }
    
    .cta-button {
        font-size: 1.1rem;
    }
    
    .inner {
        padding: 1rem 0;
        width: 80%;
    }
    
    .inner-flex {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    
    .what-is-storehouse .inner {
        padding-top: 3rem;
    }
    
    .what-is-storehouse h2 {
        padding-top: 2rem;
        text-align: center;
    }
    
    .what-is-storehouse p {
        margin-left: initial;
    }
    
    .how-does-it-work h2 {
        margin-top: 3rem;
        text-align: center;
    }
    
    .how-does-it-work img {
        width: 110px;
    }

    .how-does-it-work .inner-flex .col-6 {
        -ms-flex-item-align: center;
            -ms-grid-row-align: center;
            align-self: center;
        padding: 0.5rem 0;
    }

    .how-does-it-work .inner-flex:nth-child(odd) {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }

    .how-does-it-work .inner-flex:nth-child(odd) div:nth-child(1),
    .how-does-it-work .inner-flex:nth-child(even) div:nth-child(1),
    .how-does-it-work .inner-flex:nth-child(odd) div:nth-child(2),
    .how-does-it-work .inner-flex:nth-child(even) div:nth-child(2) {
        text-align: center;
    }
    
    .become-a-referrer h2,
    .become-a-referrer p {
        margin-left: 0;
        text-align: left;
    }
    
    .who-is-eligible img,
    .what-can-i-expect img,
    .how-can-i-help img {
        width: 160px;
        padding: 1rem;
    }
    
    footer p {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .logo-bottom img {
        width: 120px;
    }
    
    .footer-image {
        background-image: url('../img/clothes_650.jpg');
        height: 200px;
        margin-top: 0;
    }
    
}

@media ( max-width: 500px ) {
    
    .top-nav-links {
        display: none;
    }
    
    .logo-top {
        width: 240px;
    }
    
    .hero-text {
        font-size: 1.4rem;
    }
    
    .footer-p {
        font-size: 1.1rem;
    }
    
    .footer-image {
        background-image: url('../img/clothes_500.jpg');
        height: 100px;
        margin-top: 0;
    }
    
}