/*
	Responsive layout, Open Sans typography and visual polish shared by all pages.
	Load after style.css (and Main.css where used). Companion script: js/responsive.js.
*/

/* ---- Typography and visual polish (all screen sizes) ---- */
body,
input,
textarea,
select,
button,
h1, h2, h3, h4, h5, h6,
#access .menu,
#access div.menu ul,
#site-title,
.content h2,
#home-clients,
#home-clients h2 {
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
body {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
img {
	max-width: 100%;
	height: auto;
}
.tour_scn img {
	max-width: none;
}
#content,
.content {
	font-size: 14px;
	line-height: 1.7;
	color: #444;
}
.content p,
.content td {
	color: #444;
}
.content h2,
#content h2 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #333;
}
.content h2.heading {
	margin-bottom: 12px;
}
.content h2 + p {
	margin-top: 8px;
}
.content li,
#content li {
	margin-bottom: 4px;
}
#welcome {
	background: #f1f1f1;
	border-left: 4px solid #a02321;
}
#welcome .text {
	padding: 14px 16px;
}
.ios-business {
	font-size: 13px;
}
a:focus-visible,
button:focus-visible {
	outline: 2px solid #a02321;
	outline-offset: 2px;
}

/* ---- Header and menu ---- */
#branding {
	position: relative;
}
/* Logo: 300px-wide source shown at 102px, so it stays sharp on Retina screens */
#site-title img {
	display: block;
	width: 102px;
	height: auto;
}
#site-description {
	margin: 54px 0 0;
}
#access a {
	font-size: 13px;
	letter-spacing: .02em;
	transition: color .15s ease, background-color .15s ease;
}
/* Submenu hover/focus: white text on a darker red so it never matches the background */
#access ul.sub-menu li:hover > a,
#access ul.sub-menu li > a:hover,
#access ul.sub-menu li > a:focus,
#access ul.sub-menu li.current_page_item > a:hover {
	background: #7d1b19;
	color: #fff;
}
.nav-toggle,
.sub-toggle {
	display: none;
}
a.btn-demo,
a.btn-demo:link,
a.btn-demo:visited {
	position: absolute;
	top: -5px;
	right: 0;
	display: inline-block;
	padding: 9px 22px;
	background: #a02321;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0,0,0,.25);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .15s ease, box-shadow .15s ease;
}
a.btn-demo:hover,
a.btn-demo:active,
a.btn-demo:focus {
	background: #7d1b19;
	box-shadow: 0 2px 6px rgba(0,0,0,.3);
	color: #fff;
}

/* ---- Product gallery (Default*.aspx) ---- */
#gallery {
	height: 350px;
}
#nextpre {
	margin: 0 auto;
	width: 1000px;
}
#pre {
	float: left;
	position: relative;
	z-index: 1000;
	top: -210px;
	left: -85px;
	background: #000;
}
#next {
	float: right;
	position: relative;
	z-index: 1000;
	top: -210px;
	right: -85px;
	background: #000;
}

/* Section navigation under the gallery */
ul.nav li a {
	background: #d9d9d9;
	color: #333;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background-color .15s ease, color .15s ease;
}
ul.nav li a:hover,
ul.nav li a.active {
	background: #a02321;
	color: #fff;
}
/* Short label shown only on small phones (see max-width: 480px) */
ul.nav .nav-short {
	display: none;
}

/* ---- Footer ---- */
#fc .footer,
#mc .footer,
#lc .footer {
	background: #545454;
}

/* ---- Contact / demo form ---- */
#contact-mc [class*="formlabel"] {
	color: #333;
	font: 600 14px/1.4 'Open Sans', Arial, Helvetica, sans-serif;
}
#contact-mc .error,
#contact-mc .required {
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
	font-size: 13px;
}
#recaptchaError:not(:empty) {
	padding-top: 6px;
}
#contact-mc input[type="text"],
#contact-mc input[type="email"],
#contact-mc input[type="tel"],
#contact-mc textarea,
#contact-mc select {
	max-width: 100%;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid #aaa;
	border-radius: 4px;
	box-sizing: border-box;
	box-shadow: none;
	color: #333;
	font-size: 14px;
}
#contact-mc input[type="text"],
#contact-mc input[type="email"],
#contact-mc input[type="tel"] {
	height: 28px;
	padding-top: 4px;
	padding-bottom: 4px;
}
#contact-mc table td {
	padding-bottom: 12px;
}
#contact-mc input[type="text"]:focus,
#contact-mc input[type="email"]:focus,
#contact-mc input[type="tel"]:focus,
#contact-mc textarea:focus,
#contact-mc select:focus {
	border-color: #a02321;
	outline: 2px solid rgba(160,35,33,.25);
}
#contact-mc input[type="submit"],
#contact-mc input[type="button"],
#contact-mc button {
	width: auto;
	min-width: 160px;
	min-height: 40px;
	padding: 10px 24px;
	box-sizing: border-box;
	text-align: center;
	text-indent: .04em;
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
	background: #a02321;
	border: 0;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0,0,0,.25);
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	transition: background-color .15s ease;
}
#contact-mc input[type="submit"]:hover,
#contact-mc input[type="button"]:hover,
#contact-mc button:hover {
	background: #7d1b19;
}
#contact-mc {
	vertical-align: top;
}
#contact-mc input[type="submit"],
#contact-mc input[type="button"],
#contact-mc button {
	height: auto;
	line-height: 1.2;
}
/* The generated button panel has inline text-align:center and height:25px */
#contact-mc [id$="_ButtonPanel"] {
	height: auto !important;
	overflow: visible !important;
	text-align: left !important;
}
/* Don't let a fixed-height or overflow:hidden wrapper clip the button */
#contact-mc :has(> input[type="submit"], > input[type="button"], > button) {
	height: auto !important;
	overflow: visible !important;
}

/* ---- Hero banner: background image, dark overlay, stacked title badges, subtext box ---- */
.hero-banner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	clear: both;
	box-sizing: border-box;
	min-height: 400px;
	padding: 48px 24px;
	padding-left: max(88px, calc((100% - 960px) / 2));
	padding-right: max(88px, calc((100% - 960px) / 2));
	background-color: #1c2d4a;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: #fff;
}
.hero-banner:before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.6));
}
.hero-banner > * {
	position: relative;
}
.hero-banner,
.hero-title,
.hero-subtext {
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.hero-title {
	margin: 0;
	color: #fff;
	font-size: 56px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: none;
}
.hero-title span {
	display: block;
	width: -moz-fit-content;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 6px;
	padding: 4px 16px;
	background: rgba(166, 38, 38, 0.88);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
}
.hero-title span:last-child {
	margin-bottom: 0;
}
.hero-banner .hero-subtext {
	max-width: 720px;
	margin: 24px 0 0;
	padding: 20px 24px;
	background: rgba(28, 45, 74, 0.88);
	border-radius: 4px;
	color: #fff;
	font-size: 17px;
	line-height: 1.6;
}
.hero-banner .hero-prev,
.hero-banner .hero-next {
	position: absolute;
	top: 50%;
	z-index: 2;
	line-height: 0;
	background: rgba(0,0,0,.5);
	border-radius: 4px;
	transform: translateY(-50%);
}
.hero-banner .hero-prev {
	left: 16px;
}
.hero-banner .hero-next {
	right: 16px;
}
.hero-banner .hero-prev img,
.hero-banner .hero-next img {
	display: block;
}
@media (min-width: 1001px) {
	.hero-banner + #slider-nav {
		margin-top: 8px;
		margin-bottom: 36px;
	}
}
@media (max-width: 1000px) {
	.hero-banner {
		padding-top: 72px;
		padding-bottom: 72px;
		padding-left: 20px;
		padding-right: 20px;
	}
	.hero-title {
		font-size: 44px;
	}
	.hero-banner .hero-subtext {
		margin-top: 18px;
	}
	.hero-banner .hero-prev,
	.hero-banner .hero-next {
		top: auto;
		bottom: 16px;
		transform: none;
	}
}
@media (max-width: 768px) {
	.hero-banner {
		padding-top: 60px;
		padding-bottom: 60px;
		padding-left: 16px;
		padding-right: 16px;
	}
	.hero-title {
		font-size: 32px;
	}
	.hero-banner .hero-prev img,
	.hero-banner .hero-next img {
		width: 32px;
		height: 32px;
	}
	.hero-title span {
		padding: 3px 12px;
	}
	.hero-banner .hero-subtext {
		max-width: none;
		padding: 16px 18px;
		font-size: 15px;
	}
}
@media (max-width: 480px) {
	.hero-title {
		font-size: 26px;
	}
	.hero-banner .hero-subtext {
		padding: 14px 16px;
		font-size: 14px;
	}
	ul.nav .nav-full {
		display: none;
	}
	ul.nav .nav-short {
		display: inline;
	}
}
@media (max-width: 360px) {
	.hero-banner {
		padding-top: 52px;
		padding-bottom: 52px;
	}
}
/* Compact variant for inner pages (title only, no subtext or arrows) */
.hero-banner.hero-compact {
	min-height: 250px;
	padding-top: 40px;
	padding-bottom: 40px;
}
.hero-banner + #wrapper {
	margin-top: 24px;
}
@media (max-width: 1000px) {
	.hero-banner.hero-compact {
		min-height: 220px;
		padding-top: 40px;
		padding-bottom: 40px;
	}
}
@media (max-width: 768px) {
	.hero-banner.hero-compact {
		min-height: 180px;
		padding-top: 32px;
		padding-bottom: 32px;
	}
}
@media (max-width: 360px) {
	.hero-banner.hero-compact {
		padding-top: 28px;
		padding-bottom: 28px;
	}
}

/* ---- Tablet and mobile: single fluid column ---- */
@media (max-width: 1000px) {
	#wrapper,
	#main,
	#colophon,
	#branding,
	#header,
	#slider-nav {
		width: auto;
	}
	#wrapper {
		padding: 0 16px;
	}
	#header {
		height: auto;
		padding: 12px 16px;
	}
	#branding {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}
	#site-title {
		float: none;
		line-height: 1;
	}
	#site-title img {
		display: block;
		width: 72px;
		height: auto;
	}
	a.btn-demo,
	a.btn-demo:link,
	a.btn-demo:visited {
		position: static;
		padding: 12px 18px;
	}
	#site-description {
		flex: 0 0 100%;
		float: none;
		clear: both;
		margin: 10px 0 0;
	}
	#access {
		float: none;
	}
	#access .menu-header > ul {
		display: flex;
		flex-wrap: wrap;
	}
	#access a {
		line-height: 44px;
	}

	/* Gallery; !important beats the inline styles still present on some pages */
	#bottom {
		height: auto;
	}
	#gallery {
		position: relative;
		height: auto !important;
	}
	#gallery center {
		display: block;
	}
	#gallery img {
		display: block;
		width: 100%;
		height: auto;
	}
	#nextpre {
		position: absolute;
		top: 50%;
		left: 0;
		right: 0;
		width: auto !important;
		height: 0;
		margin: 0 !important;
	}
	#pre,
	#next {
		float: none !important;
		position: absolute !important;
		top: 0 !important;
		transform: translateY(-50%);
		background: rgba(0,0,0,.5) !important;
		border-radius: 4px;
	}
	#pre {
		left: 8px !important;
	}
	#next {
		left: auto !important;
		right: 8px !important;
	}
	#pre img,
	#next img {
		width: 40px;
		height: 40px;
	}

	#slider-nav {
		height: auto;
		margin: 0;
		padding: 0;
	}
	.nav-wrapper {
		position: static;
		width: auto;
		height: auto;
		opacity: 1;
	}
	ul.nav {
		display: flex;
		flex-wrap: wrap;
	}
	ul.nav li {
		display: block;
		flex: 1 1 33.33%;
	}
	ul.nav li a {
		float: none;
		width: auto;
		height: auto;
		padding: 12px 6px;
		font-size: 12px;
		line-height: 1.3;
		white-space: normal;
		border-left: 0;
		border-right: 0;
		box-shadow: inset 0 0 0 1px #fff;
	}

	#main {
		overflow: visible;
	}
	#container {
		float: none;
		margin: 0;
		width: auto;
	}
	#content {
		float: none;
		max-width: 720px;
		margin: 24px auto 10px;
	}
	#content table {
		max-width: 100%;
	}
	#content .content table {
		width: 100%;
	}

	/* Quick Tour tables: description above screenshot */
	#content .content table,
	#content .content tbody,
	#content .content tr,
	#content .content td {
		display: block;
		width: auto;
	}
	#content .content tr td {
		padding: 0;
	}
	#content .content tr {
		margin-bottom: 28px;
	}
	.tour_scn {
		margin-top: 12px;
	}
	.tour_scn img {
		max-width: 100%;
	}
	.column,
	#colophon .column,
	#fc,
	#mc,
	#lc,
	#contact-mc {
		display: block;
		float: none;
		width: auto;
		height: auto;
		margin: 0 0 28px;
	}
	#fc .content,
	#mc .content,
	#lc .content {
		width: auto;
	}
	#colophon {
		overflow: visible;
		padding: 0 0 18px;
	}
	#colophon #mc,
	#colophon #lc {
		display: none;
	}
	#colophon #fc {
		margin: 0;
	}
	#fc .footer {
		display: block;
		width: auto;
		height: auto;
		padding: 12px;
		line-height: 1.4;
	}
}

/* ---- Phones ---- */
@media (max-width: 768px) {
	#site-title img {
		width: 60px;
	}
	body,
	#content,
	.content {
		font-size: 16px;
	}
	#content,
	.content {
		line-height: 1.65;
	}
	.content h2,
	#content h2 {
		font-size: 21px;
	}
	.content h2 br {
		display: none;
	}
	#pre img,
	#next img {
		width: 32px;
		height: 32px;
	}
	.ios-business {
		font-size: 14px;
	}
	#welcome .text {
		padding: 14px;
	}
	.content li,
	#content li {
		margin-bottom: 8px;
	}

	/* Menu: collapsible with per-item submenu toggles (script adds the buttons) */
	.js .nav-toggle {
		display: block;
		width: 100%;
		min-height: 44px;
		padding: 10px 16px;
		background: #333;
		border: 0;
		border-radius: 4px;
		color: #fff;
		cursor: pointer;
		font-size: 15px;
		font-weight: 600;
		text-align: left;
	}
	.js .nav-toggle:before {
		content: '\2630\00a0\00a0';
	}
	.js #access .menu-header {
		display: none;
	}
	.js #access.open .menu-header {
		display: block;
	}
	#access .menu-header > ul {
		display: block;
		margin: 0;
	}
	#access .menu-header li {
		float: none;
	}
	#access a {
		padding: 0 12px;
		border-bottom: 1px solid #e5e5e5;
		font-size: 14px;
		line-height: 48px;
	}
	#access ul ul,
	.sub-menu {
		display: block;
		float: none;
		position: static;
		width: auto;
		padding-top: 0;
		background: none;
	}
	.js #access li.menu-item-has-children > ul {
		display: none;
	}
	.js #access li.menu-item-has-children.open > ul {
		display: block;
	}
	#access li.menu-item-has-children {
		position: relative;
	}
	.js .sub-toggle {
		display: block;
	}
	.sub-toggle {
		position: absolute;
		top: 0;
		right: 0;
		width: 48px;
		height: 48px;
		padding: 0;
		background: none;
		border: 0;
		color: #333;
		cursor: pointer;
		font-size: 22px;
		line-height: 1;
	}
	.sub-toggle:before {
		content: '\25BE';
		display: inline-block;
		transition: transform .15s ease;
	}
	.open > .sub-toggle:before {
		transform: rotate(180deg);
	}
	#access ul ul li {
		min-width: 0;
	}
	#access ul ul a {
		width: auto;
		padding: 0 12px 0 28px;
		background: #f6f6f6;
		color: #333;
		font-size: 13px;
		line-height: 44px;
	}

	ul.nav li {
		flex-basis: 50%;
	}
	ul.nav li a {
		font-size: 13px;
	}

	/* Form: stack labels above fields, full-width inputs */
	#contact-mc * {
		max-width: 100%;
	}
	#contact-mc table,
	#contact-mc tbody,
	#contact-mc tr,
	#contact-mc td,
	#contact-mc .rTable,
	#contact-mc .rTableTop,
	#contact-mc .rTableCell {
		display: block;
		width: auto !important;
	}
	#contact-mc input[type="text"],
	#contact-mc input[type="email"],
	#contact-mc input[type="tel"],
	#contact-mc textarea,
	#contact-mc select {
		width: 100% !important;
		padding: 12px;
		font-size: 16px;
	}
	#contact-mc input[type="text"],
	#contact-mc input[type="email"],
	#contact-mc input[type="tel"] {
		height: 44px;
	}
	#contact-mc input[type="submit"],
	#contact-mc input[type="button"],
	#contact-mc button {
		width: 100%;
		min-height: 48px;
		font-size: 15px;
	}
	.g-recaptcha {
		padding-left: 0 !important;
		margin: 12px 0;
	}
}

@media (max-width: 360px) {
	ul.nav li a {
		padding-left: 4px;
		padding-right: 4px;
		font-size: 11px;
	}
	.g-recaptcha {
		transform: scale(.88);
		transform-origin: 0 0;
	}
}
