/***************************************
Table of Contents:
[1.0] Base
[1.1] Header & Navigation
[1.2] Footer
[4.0] Product Gallery
[5.0] Product Page
[6.0] Our Services
[7.0] About Us
[8.0] Contact Us
***************************************/



/***************************************
[?] Green Button
***************************************/

.green-button {
    display: inline-block;
    border-radius: 40px;
    padding: 12px 24px;
    background: #6ed138;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.blue-link {
    color: #1a6ec0;
    text-decoration: none;
    border-bottom: 1px dotted;
}

/***************************************
[1.0] Page
***************************************/

/* TODO: only apply flex on mobile */
.page {
  font-family: "Open Sans", "Arial", "sans-serif";
  line-height: 1.5;
  color: #282828;
  background: white;
  font-size: 16px;
}

.page h1, .page h2, .page h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    color: #404040;
    letter-spacing: 1px;
}

.page h1 { margin: 10px 0; }
.page h2 { margin: 5px 0; }

.page h3 { margin: 5px 0; }
.page p { margin: 5px 0; }

.page-content {
    margin: 20px 0;
    padding: 0 20px;
}

@media (min-width: 600px) {
    .page {
        display: flex;
        min-height: 100vh;
        flex-direction: column;  
    }

    .page-content {
        flex: 1 0 auto;
    }
}

/***************************************
[2.0] Header & Navigation
***************************************/

.page-header {
    margin: 20px 0;
    padding: 0 20px;
}

.nav-menu-button {
	position: absolute;
	top: 20px;
	right: 20px;
	padding: 10px;

	background: #268bd1;
	color: white;
	font-weight: bold;
	text-decoration: none;
	text-transform: uppercase;
}

.page-nav {
    display: none;
	position: absolute;
	top: 64px;
	right: 20px;
	width: 240px;
    padding: 0;
	border: 1px solid #808080;
	background: white;
}

.page-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-nav li {
	margin: 0 20px;
	text-align: center;
	padding: 15px 15px;
}

.page-nav li {
	border-top: 1px solid #808080;
}

.page-nav li:first-of-type {
	border-top: none;
}

.page-nav a,
.page-nav a:visited {
    text-decoration: none;
    color: #282828;
    font-size: 20px;
}

.page-nav a:hover,
.page-nav .is-active-nav {
    border-bottom: solid 2px #4996ce;
}

@media (min-width: 600px) {
    .page-header { text-align: center; }
    .page-header .layout-row { display: block; }

    .page-nav {
        display: block;
    	position: static;
    	width: inherit;
        margin-top: 0;
        padding: 10px 0;
        border: none;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
    }


    .nav-menu-button { display: none; }

    .page-nav ul { display: flex;  }

    .page-nav li {
        flex: 1 1 auto;
        margin: 0;
        padding: 0;
        border-top: none;
    }

    .page-nav a { padding: 10px; }
}

@media (min-width: 900px) {
    .page-header { text-align: left; }
    .page-header .layout-row { display: flex; }

    .page-nav {
        margin-top: 30px;
        border: none;
    }

    .page-nav li { margin-right: 0; }
    .page-nav li:nth-of-type(n+1) { margin-left: 40px; }
    .page-nav a { padding: 0 2px; }
}

/***************************************
[3.0] Footer
***************************************/

.page-footer {
    margin-top: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-top: solid #e2e2e2 1px;
    font-size: 14px;
    text-align: center;
}

.page-footer a {
    color: #404040;
    font-weight: bold;
    text-decoration: none;
}

.page-footer a:hover {
    text-decoration: underline;
}

.page-footer ._footer-address {
    margin-bottom: 10px;
}

@media (min-width: 600px) {
    .page-footer ._footer-address {
        text-align: left;
        margin-bottom: 0;
    }

    .page-footer ._footer-extras {
        align-self: flex-end;
        text-align: right;
    }
}

/***************************************
[?] Home Page (Banners)
***************************************/

.main-banner {
    margin-bottom: 40px;
    align-items: center;
}

.main-banner ._banner-text {
    text-align: center;
}

.main-banner ._banner-text-proper {
    font-size: 22px;
    max-width: 400px;
    margin: 20px auto;
}

.box-banner {
    margin: 20px auto;
    padding: 0 20px;
    text-align: center;
    font-size: 18px;
    line-height: 1.75;
}

.box-banner  ._banner-photo {
    display: inline-block;
    height: 165px;
    margin: 20px 0 0;
    vertical-align: bottom;
    text-align: center;
}

.box-banner ._banner-text {
    border-top: 1px solid #e2e2e2;
    padding: 20px 10px;
}

@media (min-width: 600px) {
    .box-banner {
        border: 1px solid #e2e2e2;
        margin: 85px auto 20px;
        align-items: center;
    }

    .box-banner  ._banner-photo {
        margin: -65px 10px 0;
        align-self: flex-end;
    }

    .box-banner ._banner-text {
        border-top: none;
        margin: 20px 10px;
        padding: 0;
    }
}

.yellow-banner {
    margin: 40px auto 20px;
    padding: 0 20px;
    text-align: center;
    font-size: 18px;
    line-height: 1.75;
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
    background: #ffface;
}

.yellow-banner ._banner-text {
    padding: 20px 10px;
}

.blue-banner {
    margin: 20px auto 40px;
    font-size: 18px;
    text-align: center;
}

.blue-banner ._banner-photo,
.blue-banner ._banner-text {
    margin: 0 10px;
}

.blue-banner ._banner-photo {
    display: inline-block;
    margin: 20px 0 10px;
    vertical-align: bottom;
    text-align: center;
}

.blue-banner ._banner-header {
    font-size: 22px;
    font-weight: bold;
}

.blue-banner ._banner-text {
    border-radius: 8px;
    background: #e1f0fc;
    padding: 20px;
}

@media (min-width: 600px) {
    .blue-banner {
        margin-top: 60px;
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 8px;
        align-items: center;
        background: #e1f0fc;
        text-align: left;
    }

    .blue-banner ._banner-photo {
        margin: 0;
    }

    .blue-banner ._banner-text {
        padding: 0;
        border-radius: 0;
        background: transparent;
    }
}

/***************************************
[4.0] Product Gallery
***************************************/

.product-gallery ._gallery-item {
    margin: 20px auto 40px;
    text-align: center;
}

.product-gallery ._gallery-item a:hover {
    text-decoration: underline;
}

.product-gallery a {
    color: #282828;
    font-size: 18px;
    text-decoration: none;
}

.product-gallery ._dummy-thumbnail {
    width: 240px;
    height: 240px;
    margin: 0 auto 20px;
}

@media (min-width: 600px) {
    .product-gallery ._gallery-item {
        margin: 20px 20px 40px;
        flex: 1 0 auto;
    }
}

/***************************************
[5.0] Product Page
***************************************/

.product-info {
    font-size: 18px;
}

.product-info h1 {
    font-size: 32px;
}

.options-list {
    margin: 20px 0;
}

.options-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.options-list li {
    margin: 5px 0;
}

.return-to-gallery {
    margin: 40px 0;
    border-top: solid 1px #e0e0e0;
    padding-top: 10px;
    text-align: center;
}

.return-to-gallery a {
    color: #808080;
    text-decoration: none;
}

.return-to-gallery a:hover {
    color: #1a6ec0;
}

/***************************************
[6.0] Our Services
***************************************/

.service-entry {
    border-top: 1px solid #808080;
    margin-top: 25px;
    padding-bottom: 10px;
    line-height: 2;
}

.service-entry h2 {
    padding-top: 5px;
}

/***************************************
[7.0] About Us
***************************************/

.company-info,
.vision-block,
.mission-block,
.values-row {
    line-height: 2;
}

.vision-block,
.mission-block {
    text-align: center;
}

.vision-block h2,
.mission-block h2,
.values-header h2 {
    border-top: 1px solid #808080;
    border-bottom: 1px solid #808080;
    text-transform: uppercase;
    padding: 10px 0;
    margin: 25px 0 15px;
}

.values-header {
    text-align: center;
}

/***************************************
[8.0] Contact Us
***************************************/

.contact-address {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 40px;
}

.contact-address ._contact-block {
    padding: 10px;
    background: #f4f4f4;
    margin-bottom: 20px;
}

.contact-details {
    background: #e1f0fc;
    padding: 10px 25px 20px;
    margin-top: 20px;
}

.contact-details h2 {
    margin-top: 10px;
}

.contact-details ._contact-entry {
    margin-bottom: 10px;
}

/* iOS automatically converts phone numbers to links */
.contact-details a {
    color: #1a6ec0;
    text-decoration: none;
    border-bottom: 1px dotted;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 240px;
    border: 0;
}

.contact-form input {
    margin-bottom: 10px;
}

.contact-form textarea {
    min-height: 200px;
    margin-bottom: 15px;
}

.page label {
  font-size: 20px;
  margin-bottom: 2px;
}


@media (min-width: 600px) {
    .contact-location {
        margin-bottom: 20px;
        background: #f4f4f4;
    }

    .contact-address {
        text-align: left;
    }
    .contact-address ._contact-block {
        padding: 0;
    }

    .contact-map iframe {
        margin-left: -10px;
        height: 100%;
    }

    .contact-details {
        align-self: flex-start;
    }

    .contact-form {
        padding-right: 20px;
    }
}
