/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@font-face {
	font-family: 'NexaRustSans-Black-01';
	src: url('../fonts/NexaRustSans-Black-01.eot');
	src: local('☺'), url('../fonts/NexaRustSans-Black-01.woff') format('woff'), url('../fonts/NexaRustSans-Black-01.ttf') format('truetype'), url('../fonts/NexaRustSans-Black-01.svg') format('svg');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'NexaRustSans-Black';
	src: url('../fonts/NexaRustSans-Black.eot');
	src: local('☺'), url('../fonts/NexaRustSans-Black.woff') format('woff'), url('../fonts/NexaRustSans-Black.ttf') format('truetype'), url('../fonts/NexaRustSans-Black.svg') format('svg');
	font-weight: normal;
	font-style: normal;
}

body {
	background: #161719;
	font-family: 'Montserrat', sans-serif;
	font-weight: 300;
}

.grid-container {
    padding: 0;
}

section.grid-container > .grid-x {
    max-width: 1000px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

section.grid-container, section.grid-container > .grid-x.otherServices {
	padding: 16.892% 0 0;
	position: relative;
}

section:first-of-type.grid-container {
	padding: 33.784% 0 0;
}

section:nth-of-type(1).grid-container {
	background-image: url(../img/forest01.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: bottom center;
	margin-top: -60px;
}

section:nth-of-type(2) {
	background-image: url(../img/forest02.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: bottom center;
}

section:nth-of-type(3) {
	background-image: url(../img/forest03.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: bottom center;
}

section:nth-of-type(1):before, section:nth-of-type(2):before, section:nth-of-type(3):before {
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 50%;
	content: '';
	background-image: -webkit-gradient(linear, left bottom, left top, from(rgba(22, 23, 25, 1)), to(rgb(22,23,25,0)));
	background-image: linear-gradient(0deg, rgba(22, 23, 25, 1), rgba(22, 23, 25, 0));
}

section:nth-of-type(2):after, section:nth-of-type(3):after {
	position: absolute;
	top: 0;
	width: 100%;
	height: 25%;
	content: '';
	background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(22, 23, 25, 1)), to(rgba(22, 23, 25, 0)));
	background-image: linear-gradient(180deg, rgba(22, 23, 25, 1), rgba(22, 23, 25, 0));
}

.grid-container >.grid-padding-x.whiteBox {
	background: white;
	margin: 0 auto;
}

.grid-container >.grid-padding-x.whiteBox.packages {
	padding: 40px 20px;
}

.whiteBox .cell {
	padding: 0;
}

.whiteBox.packages .cell {
	padding: 0 20px;
	text-align: center;
}

.whiteBox .cell.padded {
	padding: 40px;
}

h1, h2, h3, h4, h5 {
	text-transform: uppercase;
	line-height: 1.4;
}

p {
	line-height: 1.4;
}

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

h2 {
	color: white;
	font-family: 'NexaRustSans-Black-01', sans-serif;
	font-size: 4rem;
    line-height: 0.7;
    margin: 0;
}

h3 {
	font-family: 'NexaRustSans-Black-01', sans-serif;
    line-height: 1;
    font-size: 2.5rem;
    margin: 0;
}

h4 {
	font-family: 'NexaRustSans-Black-01', sans-serif;
    line-height: 1;
    font-size: 1.875rem;
    margin: 0;
}

h5 {
	margin-bottom: 30px;
}

figcaption h4, figcaption h3 {
	width: 100%;
}

.blueBox {
	background: #007CBA;
}

.blueBox p {
	color: white;
}

.packages article > ul {
	border-left: 4px solid #00b2e3;
    padding: 0 20px;
    margin: 20px 0 0;
    list-style: none;
}

.packages article > ul li {
	font-size: 0.875rem;
	line-height: 1.2;
    margin-bottom: 10px;
}

.packages article > ul li:last-of-type {
	margin-bottom: 0;
}

.squares {
	position: relative;
	margin-bottom: 20px;
	cursor: pointer;
}

.squares:before {
	background: rgba(0,124,186,0.7);
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	-webkit-transition: all .25s ease-out;
	transition: all .25s ease-out;
}

.squares:hover:before, .squares:hover:focus {
	background: rgba(0,124,186,1);
}

.squares figcaption {
	position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: white;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -ms-flex-line-pack: center;
        align-content: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
	padding: 0 10px;
}

.button {
	font-size: 1.5rem;
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	margin: 40px auto 0;
    padding: 17px 62px;
	background-color: #007cba;
}

.button:focus, .button:hover {
    background-color: #00b2e3;
    color: white;
}

[type=color], [type=date], [type=datetime-local], [type=datetime], [type=email], [type=month], [type=number], [type=password], [type=search], [type=tel], [type=text], [type=time], [type=url], [type=week], textarea {
	border: 1px solid #00b2e3;
	margin: 6px 0 0;
}

[type=color]:focus, [type=date]:focus, [type=datetime-local]:focus, [type=datetime]:focus, [type=email]:focus, [type=month]:focus, [type=number]:focus, [type=password]:focus, [type=search]:focus, [type=tel]:focus, [type=text]:focus, [type=time]:focus, [type=url]:focus, [type=week]:focus, textarea:focus {
    border: 1px solid #007cba;
    -webkit-box-shadow: 0 0 5px #00b2e3;
            box-shadow: 0 0 5px #00b2e3;
}

select {
    border: 1px solid #00b2e3;
	margin: 6px 0 0;
}

select:focus {
    border: 1px solid #007cba;
    -webkit-box-shadow: 0 0 5px #00b2e3;
            box-shadow: 0 0 5px #00b2e3;
}

label {
	text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 24px;
}

form .grid-container >.grid-padding-x {
	margin: 0 auto;
}

form .grid-x > div:nth-of-type(1), form .grid-x > div:nth-of-type(3) {
	padding-right: 20px;
}

form .grid-x > div:nth-of-type(2), form .grid-x > div:nth-of-type(4) {
	padding-left: 20px;
}

form .button {
	margin-top: 0;
}

a {
	color: #007cba;
}

a:focus, a:hover {
    color: #00b2e3;
}

form a {
	color: #161719;
}

form a:focus, form a:hover {
    color: #007cba;
}

.copyright {
	color: white;
	font-size: 0.75rem;
	margin: 40px auto 20px;
}

header {
	background-color: rgba(0,124,186,0.7);
    color: white;
    height: 60px;
    z-index: 1000 !important;
    position: relative;
    margin-top: 0 !important;
    top: 0 !important;
}

nav img {
	width: 100%;
	max-width: 326px;
}

#menu {
	font-size: 1.25rem;
    text-transform: uppercase;
    font-weight: normal;
    margin-left: 20px;
	margin-top: 15px;
	cursor: pointer;
}

nav a {
	font-size: 1.25rem;
	color: white;
	display: inline-block;
	margin: 15px 10px;
}

nav a:first-of-type {
	margin-right: 0;
}

nav a:focus, nav a:hover {
    color: white;
}

nav h1 {
	margin: 10px auto 0;
}

nav h1 a {
	margin: 0;
}

.off-canvas {
    background: #161719;
}

.off-canvas.is-transition-overlap {
	z-index: 1001;
}

.js-off-canvas-overlay {
    background: rgba(22,23,25,.6);
}

#offCanvas a {
	display: block;
    width: 100%;
    text-transform: uppercase;
    font-weight: bolder;
    font-size: 1.25rem;
    padding: 20px;
}

.close-button {
    z-index: 2000;
}

.close-button:focus, .close-button:hover {
    color: #00b2e3;
	outline: none;
}

.menu.vertical {
	margin-top: 20px;
}

span.finePrint {
font-size: 0.875rem;
font-style: italic;
}

div.finePrint > p {
font-size: 0.875rem;
    line-height: 1.2;
    margin-top: 20px;
}

.servicesContent > div.cell.padded:nth-of-type(3) {
padding-top: 0; padding-bottom: 0;
}

.servicesContent > div.cell.padded:nth-of-type(4), .servicesContent > div.cell.padded:nth-of-type(5) {
padding-top: 0;
}

@media screen and (max-width: 63.9375em) {
	.whiteBox.packages article.cell {
		margin-bottom: 40px;
	}
	
	.button {
		margin: 0 auto;
	}
}

@media screen and (max-width: 39.9375em) {
	h2 {
		font-size: 2.5rem;
		text-align: center;
	}
	
	.button {
		padding: 17px 42px;
		width: 100%;
	}
	
	form .grid-x > div:nth-of-type(1), form .grid-x > div:nth-of-type(3) {
		padding-right: 0;
	}
	
	form .grid-x > div:nth-of-type(2), form .grid-x > div:nth-of-type(4) {
		padding-left: 0;
	}
	
	.contact {
		text-align: center;
	}
	
	form .button {
		margin: 15px auto;
	}
	
	nav h1 {
		margin: 6px auto 0;
	}
	
	nav a {
		margin: 15px 10px;
	}
	
	.sticky.is-anchored {
    	position: fixed;
		max-width: 100% !important;
		width: 100%;
	}

.servicesContent > div.cell.padded:nth-of-type(1), .servicesContent > div.cell.padded:nth-of-type(4) {
padding-bottom: 0;
}

.servicesContent > div.cell.padded:nth-of-type(1) > ul, .servicesContent > div.cell.padded:nth-of-type(4) > ul {
margin-bottom: 0;
}

div.finePrint > p {
    margin-top: 0;
    margin-bottom: 20px;
}
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
