/* #Fonts
================================================== */

@import url("https://use.typekit.net/zrf7tbb.css");
@import "fontawesome/all.css";

/* #Reset & Basics 
================================================== */
	*, *::before, *::after {
		box-sizing: border-box;
	}
	
	img, picture, video, canvas, svg {
		display: block;
		max-width: 100%;
	}
	
	input, button, textarea, select {
		font: inherit;
		color: inherit;
	}
	
	table {
		border-collapse: collapse;
		border-spacing: 0;
		width: 100%;
	}
	
	blockquote, q {
		quotes: none;
	}
	
	blockquote::before,
	blockquote::after,
	q::before,
	q::after {
		content: "";
	}
	
	sub, sup {
		font-size: 75%;
		line-height: 0;
		position: relative;
		vertical-align: baseline;
	}
	
	sup { top: -0.5em; }
	sub { bottom: -0.25em; }


/* #Basic Styles
================================================== */
	html, body {
		margin: 0;
		padding: 0;
		background: #fff;
		text-align: center;
	}
	
	body {
		font: 300 17px/1 "open-sans", sans-serif;
		color: #444;
		-webkit-font-smoothing: antialiased; 
		-moz-osx-font-smoothing: grayscale;
		-webkit-text-size-adjust: 100%;
		margin: 0 auto;    
		padding: 10px;  
	}
	
	::-moz-selection { background: #142948; color: #fff; text-shadow: none; }
	::selection { background: #142948; color: #fff; text-shadow: none; }


/* #Typography
================================================== */
	h1, h2, h3, h4, .headtitle {
		color: #181818;
		font-family: 'ff-tisa-web-pro', serif;
		font-weight: 300; }
	h1 a, h2 a, h3 a, h4 a { font-weight: inherit; color:inherit; text-decoration: inherit; }
	h1 strong, h2 strong, h3 strong, h4 strong { font-weight: normal; }
	
	/* Min Font Size */
	h1 { font-size: 35px; line-height: 1; margin-bottom: 40px; letter-spacing: -1px;  }
	h2 { font-size: 30px; line-height: 1; margin-bottom: 15px; }
	h3 { font-size: 25px; line-height: 1; margin-bottom: 15px; }
	
	h1 small { display: block; font-size: 20px}

	p { margin: 0 0 20px 0; }
	p img { margin: 0; }

	em { font-style: italic; }
	strong { font-weight: 400;  }
	small { font-size: 80%; }
	
	.headtitle {
		font-size: 45px;
		font-weight: 600;
		text-align: center;
		padding: 90px 25% 40px;
	}

/*	Blockquotes   */
	blockquote p { font-size: 22px; line-height: 1.3; color: #fff; }

	blockquote cite { 
		display: block; 
		font: 300 30px/1 'ff-tisa-web-pro', serif ; 
		color: #fff; 
	}
	blockquote cite a,
	blockquote cite a:hover {
		text-decoration: none;
		color: #fff; 
	} 



	hr { border: solid #ddd; border-width: 1px 0 0; clear: both; margin: 10px 0 20px; height: 0; }


/* #Links
================================================== */
	a { color: #333; text-decoration: underline; outline: 0; }
	a:hover, a:focus { color: #000; }
	p a { line-height: inherit; }


/* #Images
================================================== */

	img { -ms-interpolation-mode: bicubic; max-width: 100%; height: auto !important }
	
	.image, .image img { object-fit: cover; width: 100%; height: 100% !important; }


	

/* #Forms
================================================== */

	
	form, fieldset {
		margin: 0;
		padding: 0;
		border: 0;
	}
	
	fieldset,	
	form p {
		margin-bottom: 1rem;
		position: relative;
	}
	
	input[type="text"],
	input[type="password"],
	input[type="email"],
	input[type="date"],
	textarea,
	select {
		display: block;
		width: 100%;
		margin: 0;
		padding: 0.75rem 1rem;
		font: 300 16px/1.4 "open-sans", sans-serif;
		color: #222;
		border: 1px solid #ccc;
		border-radius: 6px;
		background: #fff;
		box-sizing: border-box;
		transition: border-color 0.2s ease, box-shadow 0.2s ease;
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
	}
	
	input[type="text"]:focus,
	input[type="password"]:focus,
	input[type="email"]:focus,
	input[type="date"]:focus,
	textarea:focus,
	select:focus {
		border-color: #1a3965;
		box-shadow: 0 0 0 3px rgba(26, 57, 101, 0.2);
		outline: none;
	}
	
	textarea {
		min-height: 120px;
		resize: vertical;
	}
	
	select {
		line-height: 1.4;
		padding-right: 2rem;
		background: #fff url('data:image/svg+xml;utf8,<svg fill="%23222" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 0.75rem center/16px;
	}
	
	select[multiple] {
		background-image: none;
	}
	
	label,
	legend {
		display: block;
		font-size: 14px;
		font-weight: 500;
		color: #333;
		margin-bottom: 0.25rem;
	}
		
	input[type=checkbox ] + label { margin-left: 25px; } 
	input[type="checkbox"] {
		display: inline;
		float: left; }
	label span,
	legend span {
		font-weight: normal;
		font-size: 13px;
		color: #444; }
		
	::placeholder {
		color: #999;
	}
	
	.contactCheck {
		position: absolute; 
		left: -9999px;
	}
	
	input[type=date]:after,
	.fa-calendar:after {
		color: #494a4a;
		font: 300 30px/0.7 'Font Awesome 5 Pro';
		margin-right: 25px;
		text-decoration: none;
		content: '\f073';
		position: absolute;
		right: 0;
		bottom: 9px;
		pointer-events: none;
	}
	
	input[type="date"]::-webkit-datetime-edit-text { color: #b9b9b9; }
	input[type="date"]::-webkit-inner-spin-button,
	input[type="date"]::-webkit-calendar-picker-indicator {
	   opacity: 0;
	}

	
	/* Ajax & Error Checking */
	
	.formerror input,
	.formerror textarea,
	.formerror select {
		border-color: #d11010;
		background-color: #fff0f0;
		color: #d11010;
	}
	
	.formerror input:focus,
	.formerror textarea:focus,
	.formerror select:focus {
		box-shadow: 0 0 0 3px rgba(209, 16, 16, 0.2);
	}
	
	.formerror label:after,
	.formerror legend:after {
		color: #d11010;
		content: " *";
		position: absolute;
		top: 0;
		left: -10px;
	}
	
	.formerror legend+label:after,
	.formerror legend+label+label:after {
		content: " " ; 
	}
	
	.formerror label,
	.formerror legend {
		color: #d11010;
	}
	
	.formerror ::placeholder { color: rgba(255,255,255,0.5); }
	
	.formerror input[type=date]:after,
	.formerror .fa-calendar:after { color: #fff; }
	
	#submitButton {
		margin: 0;
		padding: 0;
	}
	
	.error {
		color: #d11010;
		text-align: left !important;
	}
	.message {
		color: #fff;
		background: #1a3965;
		padding: 10px 15px 5px;
		margin-bottom: 15px;
	}
	.message a {
		color: #fff;
	}
	#waiting {
		position: absolute;
		text-align: center;
		background: url(/_img/layup/loading.svg) no-repeat center center;
		background-size: 100px;
	}
	
	
 
	
/* #Tables
================================================== */	
	
	table {
		margin-bottom: 10px;
		max-width: 100% !important;
	}
	table[border="1"] td {
		border: 1px solid #b9b8b6;
	}
	td, th {
		padding: 6px;
		text-align: left;
		vertical-align: top;
	}
	th {
		background: #a8a8a8;
		color: #fff;
	}
	
	

/* #Clearing
================================================== */

    .clear {
		clear: both;
		display: block;
		overflow: hidden;
		visibility: hidden;
		width: 0;
		height: 0;
		line-height: 0;
    }
	
/*	alt .clear  {
		content: '\0020';
		display: block;
		overflow: hidden;
		visibility: hidden;
		width: 0;
		height: 0; 
	}
*/


/* #Base Animations
================================================== */

.shake {	
    animation: shake 1s ;
}

@keyframes shake {
  from, to {
    transform: translate3d(0, 0, 0);
  }

  10%, 30%, 50%, 70%, 90% {
    transform: translate3d(-10px, 0, 0);
  }

  20%, 40%, 60%, 80% {
    transform: translate3d(10px, 0, 0);
  }
}
