/*! HTML5 Boilerplate v5.0.0 | MIT License | http://h5bp.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
   ========================================================================== */
@import url("../fonts/fonts.css");
html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

*,
*:after,
*:before {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * 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: 2px;
  border: 0;
  border-top: 1px solid #01346c;
  margin: 0.5em 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
   ========================================================================== */
/*Imports*/
/*FONTS*/
/*COLORS*/
/*GRID*/
/*@include add-gutter(1/3);*/
/*BREAK POINTS*/
/*MIXINS*/
nav {
  display: block;
  margin-top: 48px;
  text-align: center;
  font-family: "BodoniEgyptianPro-ExtBold", serif;
  font-size: 1.2em;
}
nav ul.full {
  display: none;
}
@media only screen and (min-width: 775px) {
  nav {
    top: 70px;
    right: 0;
    position: absolute;
    margin-top: 0;
    max-width: 620px;
    padding-right: 24px;
  }
  nav ul.full {
    display: block;
  }
  nav ul.mobile {
    display: none;
  }
}
nav ul {
  list-style: none;
  padding: 0;
}
nav li {
  display: block;
  color: #f8d982;
}
@media only screen and (min-width: 775px) {
  nav li:not(:last-child)::after {
    content: '  /  ';
    white-space: pre;
  }
}
nav li a {
  color: inherit;
  text-decoration: none;
  font-size: 1.7em;
  letter-spacing: 1px;
  letter-spacing: 4px;
}
nav li a:hover {
  color: #6d9da7;
}
nav li a.active {
  color: #6d9da7;
}
@media only screen and (min-width: 775px) {
  nav li a {
    font-size: 1em;
  }
}
@media only screen and (min-width: 775px) {
  nav li {
    display: inline-block;
  }
}

/* Position mobile nav button 
.menu-btn {
	position: absolute;
	top: 0.1em;
	right: 0.1em;
	cursor: pointer;
	font-size: 1.3em;
	color: white;
	padding: 4px 6px 3px 6px;
	background-color: rgba(0, 24, 49, 0.6);
	@include border-radius(5px);
	
    @include breakpoint ($tablet) {
		display: none;
    }
}*/
/*structure*/
h1 {
  font-family: "BodoniEgyptianPro-ExtBold", serif;
  font-size: 2.2em;
  letter-spacing: 3px;
  color: #305c65;
  margin-bottom: 0;
}

h2 {
  font-family: "BodoniEgyptianPro-Bold", serif;
  font-size: 1.5em;
  letter-spacing: 4px;
  color: #305c65;
  margin-bottom: 0;
}

h3 {
  font-family: "BodoniEgyptianPro-ExtBold", serif;
  font-size: 1.6em;
  color: #231f20;
}

p {
  font-family: "BodoniEgyptianPro-Regular", serif;
  font-size: 1.33em;
  color: #231f20;
  line-height: 1.6em;
  letter-spacing: 1px;
}

strong {
  font-family: "BodoniEgyptianPro-Bold", serif;
}

h1 + p, h2 + p {
  margin-top: 0;
}

ul {
  font-family: "BodoniEgyptianPro-Regular", serif;
  color: #231f20;
}

/*Utility*/
.teal {
  color: #305c65;
}

.blacktext {
  color: #231f20;
}

.upper {
  text-transform: uppercase;
  font-family: "BodoniEgyptianPro-ExtBold", serif;
}

.clear {
  clear: both;
}

.nobreak {
  white-space: pre;
}

.center {
  text-align: center;
}

.nounderline {
  text-decoration: none;
}

.underline {
  text-decoration: underline;
}

.leftmargin {
  margin-left: 1em;
}

.center {
  text-align: center;
}

/* Remove focus highlighting */
input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

html {
  font-size: 0.80em;
  /* Scale type for mobile */
}
@media (min-width: 775px) {
  html {
    font-size: .95em;
  }
}

body {
  background-color: #fcf4dc;
}

a {
  color: #305c65;
}
a:hover {
  color: #6d9da7;
}

#container {
  margin: 0 auto;
  position: relative;
}

header {
  position: absolute;
  text-align: center;
  z-index: 3;
  width: 100%;
}
@media only screen and (min-width: 775px) {
  header {
    position: fixed;
    background-color: #003a44;
    height: 190px;
    opacity: 0.9;
  }
}
header .spread {
  margin: 0 auto;
  position: relative;
  max-width: 820px;
}
header .spread .logo {
  margin: 0 auto;
  display: block;
  margin-top: 40px;
  width: 180px;
}
@media only screen and (min-width: 775px) {
  header .spread .logo {
    position: absolute;
    margin-top: 0;
    left: 0;
    top: 30px;
    /*width: 180px;*/
  }
}

#content {
  position: relative;
  margin: 0 auto;
  top: -190;
  left: 0;
  right: 0;
}

.banner {
  position: relative;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  /* ensures the image is always in the h-middle */
  overflow: hidden;
  /* hide the cropped portion */
}
.banner img {
  position: relative;
  /* allows repositioning */
  left: 100%;
  /* move the whole width of the image to the right */
  margin-left: -200%;
  /* magic */
  max-height: 508px;
}
@media only screen and (min-width: 775px) {
  .banner img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #003a44;
  opacity: 0.9;
  z-index: 2;
}
@media only screen and (min-width: 775px) {
  .overlay {
    opacity: 0;
  }
}

#hoursbar {
  margin: 0 auto;
  width: 100%;
  position: absolute;
  z-index: 99;
  bottom: 0;
  opacity: 0.9;
  background-color: #003a44;
  padding: 0.5em 5%;
}
#hoursbar p {
  text-align: center;
  color: #f7e7bc;
  font-family: "BodoniEgyptianPro-Bold", serif;
  font-size: 1.4em;
  letter-spacing: 1px;
}

#contactbar {
  background-color: #f7e7bc;
  padding: 0.5em 5%;
}
#contactbar p {
  text-align: center;
  color: #305c65;
  font-family: "BodoniEgyptianPro-Bold", serif;
  font-size: 1.2em;
  letter-spacing: 2px;
}

.hours {
  display: none;
}

.map {
  display: none;
  margin: 0 auto;
  max-width: 800px;
  text-align: left;
  display: none;
}
.map img {
  width: 100%;
  height: auto;
}

button {
  background: none;
  border: none;
  letter-spacing: 2px;
}

.booksend {
  background: none;
  border: none;
  background-color: #2e5c66;
  padding: 0.7em 1.5em;
  letter-spacing: 1px;
  color: #fcf4dc;
}

.pagebody {
  margin: 0 auto;
  padding: 0 5%;
}
@media only screen and (min-width: 855px) {
  .pagebody {
    width: 66.10169%;
    float: left;
    margin-right: -100%;
    margin-left: 16.94915%;
    clear: none;
    /* clear the grid for subsequent pagebody sections */
    clear: both;
    padding: 0;
  }
  .pagebody.left {
    width: 40.67797%;
    float: left;
    margin-right: -100%;
    margin-left: 16.94915%;
    clear: none;
    padding: 0;
  }
  .pagebody.right {
    width: 32.20339%;
    float: left;
    margin-right: -100%;
    margin-left: 59.32203%;
    clear: none;
    padding: 0;
  }
}
@media only screen and (min-width: 1200px) {
  .pagebody {
    width: 49.15254%;
    float: left;
    margin-right: -100%;
    margin-left: 25.42373%;
    clear: none;
    /* clear the grid for subsequent pagebody sections */
    clear: both;
    padding: 0;
  }
  .pagebody.left {
    width: 32.20339%;
    float: left;
    margin-right: -100%;
    margin-left: 25.42373%;
    clear: none;
    padding: 0;
  }
  .pagebody.right {
    width: 32.20339%;
    float: left;
    margin-right: -100%;
    margin-left: 59.32203%;
    clear: none;
    padding: 0;
  }
}

.right-side {
  margin: 0 auto;
  padding: 0 5%;
}
@media only screen and (min-width: 855px) {
  .right-side {
    padding: 0;
    width: 66.10169%;
    float: left;
    margin-right: -100%;
    margin-left: 16.94915%;
    clear: none;
    clear: both;
  }
}
@media only screen and (min-width: 1200px) {
  .right-side {
    width: 23.72881%;
    float: right;
    margin-left: 0;
    margin-right: 0;
    clear: none;
  }
}

.news p {
  margin: 0;
}
.news a {
  text-decoration: none;
}

.menu {
  text-align: center;
}
.menu p {
  margin: 0em;
}
.menu h1, .menu h2 {
  margin-bottom: 0.5em;
}

.quote {
  padding: 2em 0 0 0;
}

.quotetext {
  font-family: "BodoniEgyptianPro-RegularIta", serif;
  font-size: 1.42em;
  color: #305c65;
}

.instagram {
  margin: 0 auto;
  padding: 4em 1em 0 1em;
  max-width: 671px;
  clear: both;
}

.instagram > a {
  display: inline-block;
  margin: 0 10px 6px 0;
}

.instapic {
  float: left;
  /*margin: 0 9px 9px 0;*/
  width: 100%;
  height: auto;
}
@media only screen and (min-width: 775px) {
  .instapic {
    max-width: 190px;
  }
}

.instagram:last-child {
  margin: 0 0 6px 0;
}

.icon-GRAFT-instagram {
  margin-top: 0;
}

@media only screen and (min-width: 775px) {
  .featureblock {
    float: left;
    margin: 1.6em 1em 0.5em 0;
  }
}

.mailform {
  position: relative;
  min-height: 2em;
}

.signup {
  position: relative;
  top: 4px;
  background-image: url("../images/GRAFT-envelope-full.svg");
  background-repeat: no-repeat;
  background-color: transparent;
  background-size: 100%;
  border: none;
  width: 32px;
  height: 20px;
}
.signup:hover {
  background-image: url("../images/GRAFT-envelope-h.svg");
}

.email {
  background-color: #fcf4dc;
  border: none;
}
.email::-webkit-input-placeholder {
  font-family: "BodoniEgyptianPro-ExtBold", serif;
  color: #305c65;
}
.email::-moz-placeholder {
  /* Firefox 19+ */
  font-family: "BodoniEgyptianPro-ExtBold", serif;
  color: #305c65;
}
.email:-ms-input-placeholder {
  font-family: "BodoniEgyptianPro-ExtBold", serif;
  color: #305c65;
}

footer {
  text-align: center;
}
footer .patternbar {
  height: 50px;
  /* Need to implement PNG fallback for SVG image*/
  background-image: url("../images/GRAFT-Footer-Pattern.svg");
  background-size: 100px 50px;
  background-repeat: repeat-x;
}

.footimage {
  margin: 48px 0 24px 0;
}

/* Hide Honeypot form field */
#preferredItem {
  display: none;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */
/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none.php
 */
.hidden {
  display: none !important;
  visibility: hidden;
}
@media only screen and (max-width: 1200px) {
  .hidden {
    display: inline !important;
    visibility: visible;
  }
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/*
 * 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;
}

/*
 * 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, (-o-min-device-pixel-ratio: 5 / 4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}
/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */
@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster:
       http://www.sanbeiji.com/archives/953 */
    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,
  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;
  }

  img {
    max-width: 100% !important;
  }

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

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