.cd-header {
position: absolute;
z-index: 2;
top: 0;
left: 0;
width: 100%;
height: 50px;
background-color: #21272c;
}
.cd-hero-mask {
background-color: rgba(0, 1, 1, 0.4);
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
@media only screen and (min-width: 768px) {
.cd-header {
height: 70px;
background-color: transparent;
}
}
.cd-header__logo {
float: left;
margin: 13px 0 0 5%;
}
.cd-header__logo img {
display: block;
}
@media only screen and (min-width: 768px) {
.cd-header__logo {
margin: 23px 0 0 5%;
}
}
.cd-header__nav { float: right;
margin-right: 5%;
width: 44px;
height: 100%;
background: url(//www.menydesign.se/wp-content/themes/menydesign_theme/assets/cd-icon-menu.svg) no-repeat center center;
}
.cd-header__nav ul {
position: absolute;
top: 0;
left: 0;
width: 100%;
-webkit-transform: translateY(-100%);
-ms-transform: translateY(-100%);
transform: translateY(-100%);
}
.cd-header__nav ul.cd-is-visible {
-webkit-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
-webkit-transform: translateY(50px);
-ms-transform: translateY(50px);
transform: translateY(50px);
}
.cd-header__nav a {
display: block;
height: 50px;
line-height: 50px;
padding-left: 5%;
background: #21272c;
border-top: 1px solid #333c44;
color: #ffffff;
}
@media only screen and (min-width: 768px) {
.cd-header__nav { width: auto;
height: auto;
background: none;
}
.cd-header__nav ul {
position: static;
width: auto;
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0);
line-height: 70px;
}
.cd-header__nav ul.cd-is-visible {
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0);
}
.cd-header__nav li {
display: inline-block;
margin-left: 1em;
}
.cd-header__nav a {
display: inline-block;
height: auto;
line-height: normal;
background: transparent;
padding: .6em 1em;
border-top: none;
}
} .cd-hero {
position: relative;
}
.cd-hero__slider {
margin: 0;
padding: 0;
position: relative;
height: 360px;
width: 100%;
overflow: hidden;
}
.cd-hero__slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%; -webkit-transform: translateZ(0px);
transform: translateZ(0px);
will-change: transform;
-webkit-transform: translateX(100%);
-ms-transform: translateX(100%);
transform: translateX(100%);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.cd-hero__slide.cd-hero__slide--selected { -webkit-transform: translateX(0);
-ms-transform: translateX(0);
transform: translateX(0);
}
.cd-hero__slide.cd-hero__slide--move-left { -webkit-transform: translateX(-100%);
-ms-transform: translateX(-100%);
transform: translateX(-100%);
}
.cd-hero__slide.cd-hero__slide--is-moving,
.cd-hero__slide.cd-hero__slide--selected { -webkit-transition: -webkit-transform 0.5s;
transition: -webkit-transform 0.5s;
transition: transform 0.5s;
transition: transform 0.5s, -webkit-transform 0.5s;
}
@media only screen and (min-width: 768px) {
.cd-hero__slider {
height: 500px;
}
}
@media only screen and (min-width: 1170px) {
.cd-hero__slider {
height: 680px;
}
} .cd-hero__slide {
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
background-color: #000;
}
.cd-hero__content.cd-hero__content--full-width,
.cd-hero__content.cd-hero__content--half-width {
position: absolute;
width: 100%;
height: 100%;
z-index: 1;
left: 0;
top: 0; padding-top: 100px;
text-align: center; -webkit-transform: translateZ(0);
transform: translateZ(0);
will-change: transform;
}
.cd-hero__content h2,
.cd-hero__content p,
.cd-hero__btn,
.cd-hero__content--img img { -webkit-transform: translateZ(0);
transform: translateZ(0);
will-change: transform;
}
.cd-hero__content.cd-hero__content--img { display: none;
}
.cd-hero__content--img img {
position: absolute;
left: 50%;
top: 50%;
bottom: auto;
right: auto;
-webkit-transform: translateX(-50%) translateY(-50%);
-ms-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
}
.cd-hero__content {
color: #fff;
}
.cd-hero__content h2 {
font-size: 2.5rem;
line-height: 3.2rem;
font-weight: 600;
margin-bottom: 1.8rem;
}
.cd-hero__content p {
font-size: 1.2rem;
line-height: 1.7rem;
}
.cd-hero__btn {
-webkit-transition: background-color 0.2s;
transition: background-color 0.2s;
}
@media only screen and (min-width: 768px) {
.cd-hero__content.cd-hero__content--full-width,
.cd-hero__content.cd-hero__content--half-width {
padding-top: 150px;
}
.cd-hero__content.cd-hero__content--bg-video {
display: block;
}
.cd-hero__content.cd-hero__content--half-width {
width: 45%;
}
.cd-hero__content.cd-hero__content--half-width:first-of-type {
left: 5%;
}
.cd-hero__content.cd-hero__content--half-width:nth-of-type(2) {
right: 5%;
left: auto;
}
.cd-hero__content.cd-hero__content--img {
display: block;
}
.cd-hero__content h2, .cd-hero__content p {
max-width: 100%;
}
}
@media only screen and (min-width: 1170px) {
.cd-hero__content.cd-hero__content--full-width,
.cd-hero__content.cd-hero__content--half-width {
padding-top: 265px;
}
} @media only screen and (min-width: 768px) {
.cd-hero__content.cd-hero__content--half-width {
opacity: 0;
-webkit-transform: translateX(40px);
-ms-transform: translateX(40px);
transform: translateX(40px);
}
.cd-hero__slide--move-left .cd-hero__content.cd-hero__content--half-width {
-webkit-transform: translateX(-40px);
-ms-transform: translateX(-40px);
transform: translateX(-40px);
}
.cd-hero__slide--selected .cd-hero__content.cd-hero__content--half-width { opacity: 1;
-webkit-transform: translateX(0);
-ms-transform: translateX(0);
transform: translateX(0);
}
.cd-hero__slide--is-moving .cd-hero__content.cd-hero__content--half-width { -webkit-transition: opacity 0s 0.5s, -webkit-transform 0s 0.5s;
transition: opacity 0s 0.5s, -webkit-transform 0s 0.5s;
transition: opacity 0s 0.5s, transform 0s 0.5s;
transition: opacity 0s 0.5s, transform 0s 0.5s, -webkit-transform 0s 0.5s;
}
.cd-hero__slide--from-left.cd-hero__slide--selected .cd-hero__content.cd-hero__content--half-width:nth-of-type(2),
.cd-hero__slide--from-right.cd-hero__slide--selected .cd-hero__content.cd-hero__content--half-width:first-of-type { -webkit-transition: opacity 0.4s 0.2s, -webkit-transform 0.5s 0.2s;
transition: opacity 0.4s 0.2s, -webkit-transform 0.5s 0.2s;
transition: opacity 0.4s 0.2s, transform 0.5s 0.2s;
transition: opacity 0.4s 0.2s, transform 0.5s 0.2s, -webkit-transform 0.5s 0.2s;
}
.cd-hero__slide--from-left.cd-hero__slide--selected .cd-hero__content.cd-hero__content--half-width:first-of-type,
.cd-hero__slide--from-right.cd-hero__slide--selected .cd-hero__content.cd-hero__content--half-width:nth-of-type(2) { -webkit-transition: opacity 0.4s 0.4s, -webkit-transform 0.5s 0.4s;
transition: opacity 0.4s 0.4s, -webkit-transform 0.5s 0.4s;
transition: opacity 0.4s 0.4s, transform 0.5s 0.4s;
transition: opacity 0.4s 0.4s, transform 0.5s 0.4s, -webkit-transform 0.5s 0.4s;
}
.cd-hero__content--full-width h2,
.cd-hero__content--full-width p,
.cd-hero__content--full-width .cd-hero__btn {
-webkit-transform: translateX(100px);
-ms-transform: translateX(100px);
transform: translateX(100px);
}
.cd-hero__slide--move-left .cd-hero__content--full-width h2,
.cd-hero__slide--move-left .cd-hero__content--full-width p,
.cd-hero__slide--move-left .cd-hero__content--full-width .cd-hero__btn {
-webkit-transform: translateX(-100px);
-ms-transform: translateX(-100px);
transform: translateX(-100px);
}
.cd-hero__slide--selected .cd-hero__content--full-width h2,
.cd-hero__slide--selected .cd-hero__content--full-width p,
.cd-hero__slide--selected .cd-hero__content--full-width .cd-hero__btn { -webkit-transform: translateX(0);
-ms-transform: translateX(0);
transform: translateX(0);
}
.cd-hero__slide--is-moving .cd-hero__content--full-width h2,
.cd-hero__slide--is-moving .cd-hero__content--full-width p,
.cd-hero__slide--is-moving .cd-hero__content--full-width .cd-hero__btn { -webkit-transition: -webkit-transform 0s 0.5s;
transition: -webkit-transform 0s 0.5s;
transition: transform 0s 0.5s;
transition: transform 0s 0.5s, -webkit-transform 0s 0.5s;
}
.cd-hero__slide--selected h2 {
-webkit-transition: -webkit-transform 0.5s 0.2s;
transition: -webkit-transform 0.5s 0.2s;
transition: transform 0.5s 0.2s;
transition: transform 0.5s 0.2s, -webkit-transform 0.5s 0.2s;
}
.cd-hero__slide--selected p {
-webkit-transition: -webkit-transform 0.5s 0.3s;
transition: -webkit-transform 0.5s 0.3s;
transition: transform 0.5s 0.3s;
transition: transform 0.5s 0.3s, -webkit-transform 0.5s 0.3s;
}
.cd-hero__slide--selected .cd-hero__btn {
-webkit-transition: background-color 0.2s 0s, -webkit-transform 0.5s 0.4s;
transition: background-color 0.2s 0s, -webkit-transform 0.5s 0.4s;
transition: transform 0.5s 0.4s, background-color 0.2s 0s;
transition: transform 0.5s 0.4s, background-color 0.2s 0s, -webkit-transform 0.5s 0.4s;
}
} .cd-hero__nav {
position: absolute;
width: 100%;
bottom: 0;
z-index: 2;
text-align: center;
height: 55px;
background-color: rgba(0, 1, 1, 0.5);
}
.cd-hero__nav nav,
.cd-hero__nav ul,
.cd-hero__nav li,
.cd-hero__nav a {
height: 100%;
margin: 0;
padding: 0;
}
.cd-hero__nav nav,
.cd-hero__nav ul {
width: 100%;
}
.cd-hero__nav nav {
display: inline-block;
position: relative;
}
.cd-hero__marker {
position: absolute;
bottom: 0;
left: 0;
height: 100%;
color: #d44457;
background-color: #ffffff;
-webkit-box-shadow: inset 0 2px 0 currentColor;
box-shadow: inset 0 2px 0 currentColor;
-webkit-transition: -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
transition: -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
transition: transform 0.2s, box-shadow 0.2s;
transition: transform 0.2s, box-shadow 0.2s, -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
}
.cd-hero__marker.cd-hero__marker--item-2 {
-webkit-transform: translateX(100%);
-ms-transform: translateX(100%);
transform: translateX(100%);
}
.cd-hero__marker.cd-hero__marker--item-3 {
-webkit-transform: translateX(200%);
-ms-transform: translateX(200%);
transform: translateX(200%);
}
.cd-hero__marker.cd-hero__marker--item-4 {
-webkit-transform: translateX(300%);
-ms-transform: translateX(300%);
transform: translateX(300%);
}
.cd-hero__marker.cd-hero__marker--item-5 {
-webkit-transform: translateX(400%);
-ms-transform: translateX(400%);
transform: translateX(400%);
}
.cd-hero__nav ul::after {
clear: both;
content: "";
display: table;
}
.cd-hero__nav li {
display: inline-block;
min-width:200px;
}
.cd-hero__nav li a {
padding: 1.4rem;
font-size: 80%;
line-height: 40px;
border-top: 3px solid #000;
}
.cd-hero__nav .cd-selected a,
.cd-hero__nav a:hover,
.cd-hero__nav a:focus {
color: #fff;
background: #000;
border-top: 3px solid #333;
}
.cd-hero__nav .cd-selected a {
border-top: 3px solid #af9121;
line-height: 40px;
}
.cd-hero__nav a {
display: block;
letter-spacing: 0.1rem;
position: relative;
padding: 2rem 2rem 0 2rem;
font-size: 1rem;
font-weight: 700;
color: #a8b4be;
-webkit-transition: background-color 0.2s;
transition: background-color 0.2s;
}
.cd-hero__nav a:hover {
background-color: rgba(0, 1, 1, 0.5);
text-decoration: none;
}
.cd-hero__nav li:first-of-type a::before {
background-position: 0 0;
}
.cd-hero__nav li.cd-selected:first-of-type a::before {
background-position: 0 -24px;
}
.cd-hero__nav li:nth-of-type(2) a::before {
background-position: -24px 0;
}
.cd-hero__nav li.cd-selected:nth-of-type(2) a::before {
background-position: -24px -24px;
}
.cd-hero__nav li:nth-of-type(3) a::before {
background-position: -48px 0;
}
.cd-hero__nav li.cd-selected:nth-of-type(3) a::before {
background-position: -48px -24px;
}
.cd-hero__nav li:nth-of-type(4) a::before {
background-position: -72px 0;
}
.cd-hero__nav li.cd-selected:nth-of-type(4) a::before {
background-position: -72px -24px;
}
.cd-hero__nav li:nth-of-type(5) a::before {
background-position: -96px 0;
}
.cd-hero__nav li.cd-selected:nth-of-type(5) a::before {
background-position: -96px -24px;
}
@media only screen and (min-width: 768px) {
.cd-hero__nav {
height: 80px;
}
.cd-hero__nav a {
font-size: 0.85rem;
text-transform: uppercase;
}
}
@media only screen and (max-width: 768px) {
.cd-hero__slider {
height: 600px;
}
.cd-hero__content h2 {
font-size: 1.6rem;
line-height: 2.2rem;
}
.cd-hero__content p {
font-size: 1rem;
}
.cd-hero__content.cd-hero__content--full-width {
padding-top: 10rem;
}
.cd-hero__nav {
height: 75px;
}
.cd-hero__nav li {
min-width: inherit;
width: 49%;
}
.cd-hero__nav li a {
padding: 1rem;
font-size: 65%;
}
} .cd-main-content {
width: 90%;
max-width: 768px;
margin: 0 auto;
padding: 2em 0;
}
.cd-main-content p {
font-size: 1.4rem;
line-height: 1.8;
color: #999999;
margin: 2em 0;
}
@media only screen and (min-width: 1170px) {
.cd-main-content {
padding: 3em 0;
}
} .no-js .cd-hero__slide {
display: none;
}
.no-js .cd-hero__slide.cd-hero__slide--selected {
display: block;
}
.no-js .cd-hero__nav {
display: none;
}.owl-carousel,.owl-carousel .owl-item{-webkit-tap-highlight-color:transparent;position:relative}.owl-carousel{display:none;width:100%;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;-moz-backface-visibility:hidden}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-carousel .owl-item{min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.no-js .owl-carousel,.owl-carousel.owl-loaded{display:block}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;cursor:hand;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{visibility:hidden}.owl-carousel.owl-drag .owl-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item img.owl-lazy{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(//www.menydesign.se/wp-content/themes/menydesign_theme/css/owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%}