/*
 * HTML5 Boilerplate
 *
 * 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
   ========================================================================== */

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    background: #eee;
    color: #000;
    padding: 8px;
    text-align: center;
}
	.chromeframe a { font-weight: bold; }

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body { position: relative; } /* fix for affix: github.com/twitter/bootstrap/issues/4647 */

h1, h2, h3, h4, h5 { margin-top: 0; }

p, a, blockquote { line-height: 1.6em; }

.green { color: #437e3a; }
.blue { color: #2479b7; }

.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }

img.hero {
	border-radius: 4px;
	margin-bottom: 20px;
}

.btn {
	text-transform: uppercase;
	font-weight: bold;
}

.divider { height: 40px; clear: both; }
	.divider.small { height: 20px; }

blockquote {
	font-size: 18px;
	font-style: italic;
}

form {

}
	form .control-group:last-child { margin-bottom: 0; }
	form .btn-link {
		text-transform: none;
		font-weight: normal;
	}

p { margin: 0 0 20px 0; }
	p.intro { font-size: 16px; }
	p a { border-bottom: 1px solid #d4dfea; }
	p:last-child { margin-bottom: 0; }

.pop {
	color: #437e3a;
	cursor: help;
}

i.hint {
	display: inline-block;
	width: 12px;
	height: 12px;
	background: url(../img/icon-question-mini.png) no-repeat center center;
}

header .row {
	padding-top: 40px;
	padding-bottom: 40px;
	height: 36px;
}
	header .row div { line-height: 36px; }

	header .logo {
		background-image: url(../img/Taupo-Access-Hire-Logo.png);
		width: 234px;
		height: 55px;

		margin: -18px 0 0 0;
	}
		header.small .logo {

		}

	header .tagline {
		color: #437e3a;
		font-size: 22px;
		line-height: 40px;
		margin: 0 0 0 0;
	}

nav.main {
	background-color: #2479b7;
	margin-bottom: 40px;
}
	nav.main ul {
		margin: 0;
	}
		nav.main ul li {
			float: left;
			display: block;

			border-left: 1px solid #208dcf;
			border-right: 1px solid #004b79;

			font-size: 18px;
			text-transform: uppercase;
			font-weight: bold;
			color: #fff;
		}
			nav.main ul li:first-child { border-left: 1px solid #004b79; }
				nav.main ul li:first-child a { border-left: 1px solid #208dcf; }

			nav.main ul li:last-child { border-right: 1px solid #208dcf; }
				nav.main ul li:last-child a { border-right: 1px solid #004b79; }

			nav.main ul li a {
				display: block;
				padding: 0 20px;

				height: 48px;
				line-height: 47px;

				color: #fff;
				text-decoration: none;
			}
				nav.main ul li a:hover {
					background-color: #006eb0;
				}
				nav.main ul li.active a {
					background-color: #006eb0;
				}

nav.submenu {
	width: 280px;
}
	nav.submenu.affix,
	nav.submenu.affix-top {
		top: 20px;
	}
	nav.submenu.affix-bottom {
		position: fixed;
		top: auto;
		bottom: 360px;
	}

	nav.submenu ul li {
		border-bottom: 1px solid #bcc9c9;
		padding: 0 0 0 20px;
	}
		nav.submenu ul li.active {
			padding-left: 16px;
			border-left: 4px solid #2fabf6;
		}
		nav.submenu ul li a {
			line-height: 40px;
			font-size: 16px;
			font-weight: bold;
		}

section.banner {

}
	section.banner .carousel {
		margin-bottom: 0;
	}
		section.banner .carousel .carousel-control-wrapper {
			position: absolute;
			right: 40px;
			bottom: 40px;
		}
		section.banner .carousel .carousel-control {
			position: static;
			display: inline-block;

			font-weight: bold;
			font-size: 48px;

			left: auto;
			top: auto;
			margin: 0 0 0 10px;
		}
			section.banner .carousel .carousel-control.right {
				right: 40px;
			}

		section.banner .carousel .item {
			height: 350px;
			background-repeat: no-repeat;
			background-position: top center;
      background-size: cover;
		}
			section.banner .carousel .carousel-caption {
				background: none;
				padding: 20px 30px;
			}
				section.banner .carousel .carousel-caption.contrast {
					background: rgba(0, 0, 0, 0.35);
				}
				section.banner .carousel .carousel-caption h3,
				section.banner .carousel .carousel-caption p {
					color: #fff;
					text-shadow: 0 0 5px rgba(0,0,0,.5); /* drop shadow */
					font-size: 20px;
					line-height: 1.7em;
				}
					section.banner .carousel .carousel-caption h3 {
						font-weight: bold;
						text-transform: uppercase;
						font-size: 36px;
						margin-bottom: 0;
					}


section.content {
	margin-top: 40px;
}

	h4 + p,
	h3 + p,
	h2 + p { margin-top: -10px; }

	img.responsive {
		width: 100%;
		height: auto;
	}

	.categories {
		margin-bottom: 2em;
	}
		.categories .responsive {
			margin: 0 0 20px 0;
		}
		.categories h3 {
			margin-bottom: 10px;
		}

		.categories h4 {
			margin-bottom: 0;
		}

		.categories h4 + p {
			margin-top: 10px;
		}

			.categories span.subtitle {
				display: inline-block;
				margin-bottom: 10px;
				font-weight: bold;
				text-transform: uppercase;
				color: #777;
			}

		/*.categories img.responsive {
			max-height: 140px;
			width: auto;
		}*/

    .announcement {
      padding: 1em;
      background: #fff8ad;
      border: 2px solid #fef377;
      margin-bottom: 2em;
      border-radius: 4px;
    }

    .responsive.cycle {
      position: relative;
      width: 100%;
      margin-bottom: 0;
    }
      .responsive.cycle a {
        position: absolute;
      }
        .responsive.cycle a:first-child { z-index: 99; }
        .responsive.cycle img {
          width: 100%;
          height: auto;
        }

    .thumbnail {
      float: left;
      position: relative;
      width: 50%;
      height: 250px;
      overflow: hidden;
    }
      .thumbnail img {
        position: absolute;
        left: 50%;
        top: 50%;
        height: 100%;
        width: auto;
        -webkit-transform: translate(-50%,-50%);
            -ms-transform: translate(-50%,-50%);
                transform: translate(-50%,-50%);
      }

	.sidebar {
    position: relative;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
		*behavior: url(/js/boxsizing.htc);

		padding-left: 20px;
	}
    .sidebar nav.affix {
      position: fixed;
      top: 20px;
    }
		.sidebar .tiles {
			overflow: hidden;
		}
			.sidebar .tiles a {
				display: block;
				float: left;
				width: 46%;
				height: auto;
				margin: 0 5.999% 5.999% 0;
			}
				.sidebar .tiles a:nth-child(even) { margin-right: 0; }
				.sidebar .tiles a img {
					width: 100%;
					height: auto;
				}
    .sidebar h4 {
      font-size: 1.2em;
      font-weight: bold;
    }
    .sidebar .divider {
      height: 1em;
    }
    .sidebar ul {
      margin-top: -10px !important;
    }

	.box {
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
		*behavior: url(/js/boxsizing.htc);

		border: 1px solid #bcc9c9;
		border-radius: 4px;

		padding: 20px;
		margin-bottom: 20px;
	}
		.box .focus {
			font-size: 22px;
			font-weight: bold;
		}

footer {
	background-color: #ededed;
	border-top: 1px solid #dedddd;

	padding: 40px 0;
	margin-top: 40px;
}
	footer .logo {
		background-image: url(../img/Taupo-Access-Hire-Logo.png);

		width: 234px;
		height: 55px;
	}
	footer .map iframe {
		width: 100%;
		min-height: 180px;
		height: 100%;
	}
	footer h4 {
		margin-bottom: 5px;
	}
	footer .vcard {

	}
		footer .vcard > div {
			margin: 0 0 5px 0;
		}
		footer .vcard .type {
			text-transform: uppercase;
			font-size: 0.8rem;
			color: #999;
			font-weight: bold;
			padding: 0 5px 0 0;
		}
  .bandit {
    color: #777;
    margin-bottom: 0;
  }













/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

/* classes for widescreen or mobile only elements */
@media only screen and (min-width: 1061px) {
	.mob { display: none !important; }
}
@media only screen and (max-width: 1060px) {
  .ws { display: none !important; }
  header .buttons {
		position: absolute;
		top: 40px;
		right: 40px;
		width: auto;
	}
  h2.tagline { text-align: right; }
}

/* special cases */
@media only screen and (max-width: 980px) {
	nav.main { background: none; }
	nav.main ul li {
		border: 0;
		padding: 2px 3px;
		border-radius: 4px;
		background-color: #2479b7;
		margin: 0 6px 6px 0;
	}
		nav.main ul li.active,
		nav.main ul li:hover { background-color: #006eb0; }
			nav.main ul a {
				background-color: none !important;
				border: 0 !important;
			}

  section.banner .carousel .carousel-control-wrapper {
  	bottom: auto;
  	right: auto;
  	top: 40px;
  	left: 40px;
  }
}

@media (max-width: 767px) {
  .sidebar nav.affix {
    position: static !important;
    top: auto;
  }
  h2.tagline { display: none; }
  footer { padding: 20px; }
  footer .container {
		width: auto;
		padding: 0;
	}
  .row.categories > div {
    margin-bottom: 20px;
  }
}

@media only screen and (max-width: 600px) {
	section.banner { display: none; }
}

@media only screen and (max-width: 400px) {
	header .row {
		height: auto;
		padding-bottom: 20px;
	}
		header .buttons {
			padding: 20px 0 0 0;
			position: static;
			width: auto;
			text-align: center;
		}

	nav.main ul li { float: none; }

	.sidebar { padding-left: 0; }

	table.compare th,
	table.compare td { padding-left: 0; padding-right: 0; }
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* vendor */
/*! fancyBox v2.1.4 */
.fancybox-wrap,
.fancybox-skin,
.fancybox-outer,
.fancybox-inner,
.fancybox-image,
.fancybox-wrap iframe,
.fancybox-wrap object,
.fancybox-nav,
.fancybox-nav span,
.fancybox-tmp
{
	padding: 0;
	margin: 0;
	border: 0;
	outline: none;
	vertical-align: top;
}

.fancybox-wrap {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 8020;
}

.fancybox-skin {
	position: relative;
	background: #f9f9f9;
	color: #444;
	text-shadow: none;
	-webkit-border-radius: 4px;
	   -moz-border-radius: 4px;
	        border-radius: 4px;
}

.fancybox-opened {
	z-index: 8030;
}

.fancybox-opened .fancybox-skin {
	-webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
	   -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
	        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.fancybox-outer, .fancybox-inner {
	position: relative;
}

.fancybox-inner {
	overflow: hidden;
}

.fancybox-type-iframe .fancybox-inner {
	-webkit-overflow-scrolling: touch;
}

.fancybox-error {
	color: #444;
	font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
	margin: 0;
	padding: 15px;
	white-space: nowrap;
}

.fancybox-image, .fancybox-iframe {
	display: block;
	width: 100%;
	height: 100%;
}

.fancybox-image {
	max-width: 100%;
	max-height: 100%;
}

#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
	background-image: url('../img/fancybox_sprite.png');
}

#fancybox-loading {
	position: fixed;
	top: 50%;
	left: 50%;
	margin-top: -22px;
	margin-left: -22px;
	background-position: 0 -108px;
	opacity: 0.8;
	cursor: pointer;
	z-index: 8060;
}

#fancybox-loading div {
	width: 44px;
	height: 44px;
	background: url('../img/fancybox_loading.gif') center center no-repeat;
}

.fancybox-close {
	position: absolute;
	top: -18px;
	right: -18px;
	width: 36px;
	height: 36px;
	cursor: pointer;
	z-index: 8040;
}

.fancybox-nav {
	position: absolute;
	top: 0;
	width: 40%;
	height: 100%;
	cursor: pointer;
	text-decoration: none;
	background: transparent url('../img/blank.gif'); /* helps IE */
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	z-index: 8040;
}

.fancybox-prev {
	left: 0;
}

.fancybox-next {
	right: 0;
}

.fancybox-nav span {
	position: absolute;
	top: 50%;
	width: 36px;
	height: 34px;
	margin-top: -18px;
	cursor: pointer;
	z-index: 8040;
	visibility: hidden;
}

.fancybox-prev span {
	left: 10px;
	background-position: 0 -36px;
}

.fancybox-next span {
	right: 10px;
	background-position: 0 -72px;
}

.fancybox-nav:hover span {
	visibility: visible;
}

.fancybox-tmp {
	position: absolute;
	top: -99999px;
	left: -99999px;
	visibility: hidden;
	max-width: 99999px;
	max-height: 99999px;
	overflow: visible !important;
}

/* Overlay helper */

.fancybox-lock {
	overflow: hidden;
}

.fancybox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	display: none;
	z-index: 8010;
	background: url('../img/fancybox_overlay.png');
}

.fancybox-overlay-fixed {
	position: fixed;
	bottom: 0;
	right: 0;
}

.fancybox-lock .fancybox-overlay {
	overflow: auto;
	overflow-y: scroll;
}

/* Title helper */

.fancybox-title {
	visibility: hidden;
	font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
	position: relative;
	text-shadow: none;
	z-index: 8050;
}

.fancybox-opened .fancybox-title {
	visibility: visible;
}

.fancybox-title-float-wrap {
	position: absolute;
	bottom: 0;
	right: 50%;
	margin-bottom: -35px;
	z-index: 8050;
	text-align: center;
}

.fancybox-title-float-wrap .child {
	display: inline-block;
	margin-right: -100%;
	padding: 2px 20px;
	background: transparent; /* Fallback for web browsers that doesn't support RGBa */
	background: rgba(0, 0, 0, 0.8);
	-webkit-border-radius: 15px;
	   -moz-border-radius: 15px;
	        border-radius: 15px;
	text-shadow: 0 1px 2px #222;
	color: #FFF;
	font-weight: bold;
	line-height: 24px;
	white-space: nowrap;
}

.fancybox-title-outside-wrap {
	position: relative;
	margin-top: 10px;
	color: #fff;
}

.fancybox-title-inside-wrap {
	padding-top: 10px;
}

.fancybox-title-over-wrap {
	position: absolute;
	bottom: 0;
	left: 0;
	color: #fff;
	padding: 10px;
	background: #000;
	background: rgba(0, 0, 0, .8);
}
