/* TEMPUR North Frontend Styles */

.row-1 {
	margin-left: 0;
	margin-right: 0;
	display: table;
	width: 100%;
}

.col-1 {
	margin: 0;
	padding: 0;
	display: table-cell;
}

.block {
	padding: 30px;
	box-sizing: border-box;
}

/* Typography */

h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

h2 {
	font-size: 1.5em;
	margin: 0.83em 0;
}

h3 {
	font-size: 1.17em;
	margin: 1em 0;
}

.h1, .h2, .h3, h1, h2, h3 {
	margin-top: 0;
	font-weight: normal;
}

p {
	margin: 0 0 10px 0;
}

p:last-child {
	margin-bottom: 0;
}

strong {
	font-weight: bold;
}

/* Buttons */

.button {
	display: inline-block;
	padding: 0.6em 2em;
	background: #002069;
	border: 1px solid #010101;
	border-radius: 3px;
	color: #FFF;
	text-decoration: none;
	text-transform: uppercase;
}

.button:hover{
	background: #0F1F44;
	color: #FFF;
	border-color: #010101;
}

.button .fa {
	padding-right: 0.2em;
}

/* Header */

#header {
	width: 100%;
	float: left;
	clear: both;
	text-align: center;
	position: fixed;
	top: 0;
	left: 0;
	background: #53565A;
	z-index: 1;
}

#logo {
	margin: 11px;
	display: block;
	text-indent: -9999px;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: contain;
	background-image: url(../images/tempur-logo.png);
	height: 50px;
}

#nav {
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
}

#nav ul {
	position: absolute;
	top: 50%;
	left: 0;
	margin: -0.7em 0 0 0;
	padding: 0;
	width: 100%;
	list-style: none;
}

#nav li {
	margin: 0;
	padding: 0 25px;
}

#nav-nearest {
	float: left;
}

#nav-return {
	float: right;
}

#nav a {
	text-shadow: 1px 1px 0 rgba(0,0,0,0.25);
	color: #CCC;
	text-decoration: none;
}

#nav a:hover {
	color: #FFF;
}

/* Lead Video / Responsive iFrame */

.video-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
}

.video-container iframe,
.video-container object,
.video-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Row 1 */

#row-1 .col-1 {
	width: 50%;
}

#row-1 .col-1:nth-child(1) {
	vertical-align: bottom;
	background: #CED3CF url(../images/snowy-landscape.jpg) 50% 0 no-repeat;
	background-size: contain;
	padding-top: 15%;
}

#row-1 .col-1:nth-child(2) {
	background: url(../images/paw-print-snow.jpg) 50% 100% no-repeat;
	background-size: contain;
	padding-bottom: 15%;
}

#north-by-name {
	color: #53565A;
}

#north-by-name .block {
	background: #D9D1CA;
}

#north-by-name .block .button {
	margin-top: 15px;
}

#description-elegant {
	color: #53565A;
}

#description-elegant .block {
	background: #CDCBCD;
}

#designed-to-please {
	position: relative;
	background: url(../images/trees.jpg) 100% 100% no-repeat;
	background-size: contain;
}

#designed-to-please .block {
	background: #53565A;
	width: 50%;
}

#designed-to-please .block:before {
	content: '';
	display: block;
	width: 50%;
	height: 50%;
	background: url(../images/bed-corner-joint.jpg) 100% 100% no-repeat;
	background-size: cover;
	position: absolute;
	top: 0;
	left: 50%;
}

#designed-to-please .block:after {
	content: '';
	position: absolute;
	top: 25%;
	left: 50%;
	margin-top: -20px;
	width: 0;
	height: 0;
	border-left: 20px solid #53565A;
	border-top: 20px solid transparent;
	border-bottom: 20px solid transparent;
}

/* Row 2 */

#row-2 .col-1:nth-child(1) {
	width: 25%;
	vertical-align: bottom;
	background: url(../images/headboard-corner.jpg) no-repeat;
	background-size: contain;
	padding-top: 15%;
}

#row-2 .col-1:nth-child(2) {
	width: 25%;
	background: #575756;
}

#row-2 .col-1:nth-child(3) {
	width: 50%;
	vertical-align: bottom;
	background: url(../images/tempur-label.jpg) 100% 0 no-repeat;
	background-size: cover;
}

#description-shape {
	color: #53565A;
}

#description-shape .block {
	background: url(../images/wood-grain.jpg) no-repeat;
	background-size: cover;
}

#bed-collection .block {
	width: 50%;
	padding: 0;
	float: right;
	background: url(../images/mattress-topper.jpg) 50% 50% no-repeat;
	background-size: cover;
}

#bed-collection .block a {
	display: block;
	background: #D9D1CA;
	position: relative;
	left: -100%;
	width: 100%;
	padding: 50px 30px 50px 4.5em;
	box-sizing: border-box;
	color: #53565A;
	text-decoration: none;
	font-size: 130%;
}

#bed-collection .block a:hover {
	background: #EBE5E0;
}

#bed-collection .block a:after {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 52px;
	margin-left: -20px;
	width: 0;
	height: 0;
	border-bottom: 20px solid #D9D1CA;
	border-right: 20px solid transparent;
	border-left: 20px solid transparent;
}

#bed-collection .block a:hover:after {
	border-bottom-color: #EBE5E0;
}

#bed-collection .block a strong,
#bed-collection .block a em {
	display: block;
	line-height: 1.2em;
}

#bed-collection .block a em {
	font-size: 66%;
	font-style: normal;
}

#bed-collection .block a .fa-stack {
	position: absolute;
	left: 30px;
	top: 50%;
	margin-top: -1em;
}

#bed-collection .block a .fa-stack-1x {
	line-height: 2.1em;
}

/* Row 3 */

#row-3 .col-1:nth-child(1) {
	width: 100%;
	background: url(../images/woman-floating-bed.jpg) 100% 50% no-repeat;
	background-size: cover;
}

#weightless .block {
	float: right;
	width: 33.33%;
	background: #A39381;
	position: relative;
}

#weightless .block:before {
	content: '';
	position: absolute;
	left: 33.33%;
	right: 0;
	top: 0;
	bottom: 0;
}

#weightless .block:after {
	content: '';
	position: absolute;
	top: 50%;
	right: 100%;
	margin-top: -20px;
	width: 0;
	height: 0;
	border-right: 20px solid #A39381;
	border-top: 20px solid transparent;
	border-bottom: 20px solid transparent;
}

#weightless .block h2 {
	font-size: 2em;
	line-height: 1.4em;
}

#weightless .block .button {
	margin-top: 25%;
}

/* Row 4 */

#row-4 .col-1:nth-child(1) {
	width: 100%;
}

#bed-range {
	position: relative;
}

#bed-range .block {
	width: 40%;
	background: #53565A;
}

#bed-range .block:after {
	content: '';
	position: absolute;
	left: 40%;
	right: 0;
	top: 0;
	bottom: 0;
	background: url(../images/bed.jpg) 100% 50% no-repeat;
	background-size: cover;
}

#bed-range .block h2 {
	font-size: 2em;
	line-height: 1.4em;
	margin-bottom: 50px;
}

#bed-range .block strong,
#bed-range .block em {
	display: block;
	font-style: normal;
}

/* Row 5 */

#row-5 .col-1:nth-child(1) {
	width: 100%;
}

#featured-items {
	display: table;
	width: 100%;
	list-style: none;
	margin: 0;
	padding: 0;
}

#featured-items .item {
	display: table-cell;
	margin: 0;
	padding: 15px;
	background: #FFF;
	box-sizing: border-box;
	border-right: 1px solid #53565A;
}

#featured-items.items-x1 .item {
	width: 100%;
}

#featured-items.items-x2 .item {
	width: 50%;
}

#featured-items.items-x3 .item {
	width: 33.33%;
}

#featured-items.items-x4 .item {
	width: 25%;
}

#featured-items.items-x5 .item {
	width: 20%;
}

#featured-items .item:last-child {
	border-right: none;
}

#featured-items .item h3 {
	display: none;
}

#featured-items .item .feature {
	margin: 0 auto;
	padding: 0;
	max-width: 600px;
}

#featured-items .item .feature img {
	width: 100%;
	display: block;
	margin-bottom: 15px;
}

/* Row 6 */

#row-6 .col-1:nth-child(1) {
	width: 100%;
}

#assembly h2 {
	padding: 30px;
	margin: 0;
}

#assembly img {
	display: block;
	width: 100%;
}

/* Small Screens */

@media (max-width: 768px) {
	
	/* Basics */
	
	#main {
		padding-top: 52px;
	}
	
	.row-1,
	.col-1 {
		display: block;
	}
	
	/* Header */
	
	#logo {
		height: 30px;
	}
	
	#nav a .label {
		display: none;
	}
	
	/* Row 1 */
	
	#row-1 .col-1 {
		width: 100%;
	}
	
	#row-1 .col-1:nth-child(1) {
		padding-top: 0;
		padding-bottom: 30%;
		background-position: 50% 250%;
		background-size: auto;
	}
	
	#row-1 .col-1:nth-child(2) {
		padding-bottom: 30%;
	}
	
	#designed-to-please {
		background: none;
	}
	
	#designed-to-please .block {
		width: 100%;
	}
	
	#designed-to-please .block:before,
	#designed-to-please .block:after {
		display: none;
	}
	
	/* Row 2 */
	
	#row-2 .col-1:nth-child(1),
	#row-2 .col-1:nth-child(2),
	#row-2 .col-1:nth-child(3) {
		width: 100%;
	}
	
	#row-2 .col-1:nth-child(1) {
		padding-top: 0;
	}
	
	#row-2 .col-1:nth-child(3) {
		vertical-align: top;
		padding-bottom: 40%;
		background-position: 0 50px;
	}
	
	#bed-collection .block {
		float: none;
		width: 100%;
	}
	
	#bed-collection .block a {
		left: 0;
	}
	
	#bed-collection .block a:after {
		display: none;
	}
	
	/* Row 3 */
	
	#row-3 .col-1:nth-child(1) {
		background-position: 0 110%;
		background-size: contain;
	}
	
	#weightless {
		padding-bottom: 30%;
	}
	
	#weightless .block {
		width: 100%;
		float: none;
	}
	
	#weightless .block:after {
		left: 50%;
		top: 100%;
		margin-top: 0;
		margin-left: -20px;
		border-left: 20px solid transparent;
		border-right: 20px solid transparent;
		border-top: 20px solid #A39381;
		border-bottom: none;
	}
	
	#weightless .block .button {
		margin-top: 15px;
	}
	
	/* Row 4 */
	
	#bed-range .block {
		width: 100%;
	}
	
	#bed-range .block:after {
		display: none;
	}
	
	#bed-range .block h2 {
		margin-bottom: 15px;
	}
	
	/* Row 5 */
	
	#featured-items,
	#featured-items .item {
		display: block;
	}
	
	#featured-items .item {
		border-right: none;
		border-bottom: 1px solid #53565A;
	}
	
	#featured-items.items-x1 .item,
	#featured-items.items-x2 .item,
	#featured-items.items-x3 .item,
	#featured-items.items-x4 .item,
	#featured-items.items-x5 .item {
		width: 100%;
	}
	
	#featured-items .item:last-child {
		border-bottom: none;
	}
	
	/* Row 6 */
	
	#row-6 .fa {
		display: none;
	}
	
}