/*
Theme Name: QCM
Theme URI: https://www.qcm.cz
Author: Tealake
Author URI: https://www.tealake.cz/
Description: WP theme created for QCM website.
Version: 1.0
License: proprietary
License URI: none
Tags:
Text Domain: qcm
*/

/* common */
body {
    margin: 0; padding: 0;
    font-family: 'Fira Sans', sans-serif;
}

.inner {
    max-width: 1265px;
    margin: 0 auto;

}

@media all and (min-width: 1440px) {
    .inner {
        padding-left: 87px;
        padding-right: 88px;
    }
}

#Navigation {
    min-height: 80px;
    position: relative;
    background-color: #ffffff;
}

#Navigation .inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

#Navigation .logo,
#Navigation .menu,
#Navigation .search,
#Navigation .support {
    background-color: #ffffff;
}

#Navigation .logo {
    order: 1;
    padding: 23px 0 0;
    height: 57px;
    min-width: 100%;
    flex-grow: 1;
    text-align: center;
}

#Navigation .logo svg {
    height: 35px;
    width: auto;
}

#Navigation .logo svg .c, .m, .q {
    fill: #1d1d1b;
}

#Navigation .logo svg .foot {
    fill: #d70929;
}

#Navigation .hamburger {
    order: 4;
}

#Navigation .menu-main-container {
    order: 5;
    min-width: 80%;
    flex-grow: 1;
}

#Navigation .menu {

    height: 80px;
    list-style-type: none;
    padding-left: 0px;
    margin: 0;
}

#Navigation .menu li {
    padding: 0 20px;
    background-color: white;
    display: none;
}

#Navigation .menu li.mobileMenuSwitch {
    display: block;
    border-bottom: none;

}

#Navigation .menu li.mobileMenuSwitch a {
    display: block;
    background: url('media/bars-solid.svg') 0 center no-repeat;
    color: transparent;
    background-size: 24px 24px;
}

#Navigation .menu.open li {
    display: block;
}

#Navigation .menu > li {
    border-bottom: 1px solid #e1e1e1;
}

#Navigation .menu > li:first-of-type {
    padding-top: 24px;
}

#Navigation .menu li ul {
    list-style-type: none;
    padding-left: 20px;
}

#Navigation .menu li ul a {
    text-transform: none;
}

#Navigation .menu a {
    text-transform: uppercase;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.05rem;
    text-decoration: none;
    color: black;
    line-height: 40px;
}

#Navigation .search {
    order: 6;
    width: 60px;
    height: 80px;
    background: #ffffff;
    transition: width 0.5s ease-in-out;
    position: relative;
}

#Navigation .search.open {
    min-width: 100%;
    position: absolute;
    top: 160px;
}

#Navigation .search button#ShowSearchInput {
    border: none;
    background: #ffffff;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 26px;
    outline: none;
}

#Navigation .search button#CloseSearchInput {
    display: none;
}

#Navigation .search.open button#CloseSearchInput {
    display: block;
    border: none;
    background: #ffffff;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 20px;
    outline: none;
    font-size: 20px;
    text-align: center;

}

#Navigation .search input {
    border: none;
    border-bottom: 2px solid #000000;
    display: none;
    position: absolute;
    width: 540px;
    max-width: 80%;
    font-size: 1.5rem;
    padding: 0.2rem 0.5rem;
    outline: none;
    left: 10px;
    bottom: 20px;
}

#Navigation .search.open input {
    display: block;
}

#Navigation .search.open button#ShowSearchInput {
    top: 40px;
}

#Navigation .support {
    min-width: 100%;
    text-align: center;
    order: 2;
    height: 64px;
    position: relative;
    padding: 16px 0 0;
}

#Navigation .support p {
    margin: 0;
    line-height: 24px;
}

#Navigation .support .phone a {
    color: #666666;
    text-decoration: none;
}

#Navigation .support .phone a:hover,
#Navigation .support .mail a
{
    color: #dd1936;
    text-decoration: none;
}

#Navigation .support .mail a:hover {
    text-decoration: underline;
}

#Navigation .jump {
    position: relative;
}

#Navigation .jump input[type="submit"] {
    border: none;
    position: absolute;
    right: 0;
    top: 0;
    height: 30px;
    width: 30px;
    color: transparent;
    background: #e2e2e2 url('media/arrow-black.svg') center center no-repeat;
    cursor: pointer;
    margin-top: -2px;
}

#Navigation .jump input[type="password"] {
    background: transparent;
    border: none;
    width: 130px;
    border-bottom: 1px solid #000;
    color: #666666;
    outline: none;
    margin-right: 37px;
}

#Navigation .jump input[type="password"]::placeholder {
    color: #ffffff;
}

@media all and (min-width: 450px){
    #Navigation .support {
        min-width: 40%;
        text-align: right;
    }

    #Navigation .logo {
        padding: 23px 10px 0;
        min-width: 40%;
        text-align: left;
    }

    #Navigation .search.open {
        min-width: 450px;
        max-width: 600px;
        position: absolute;
        top: 80px;
        right: 0;
    }
}

@media all and (min-width: 790px) {
    #Navigation {
        background-position-y: 700px;
    }

    #Navigation .menu-main-container {
        order: 4;
    }
    #Navigation .menu {
        padding-left: 0;
    }
    #Navigation .menu li {
        padding: 0 10px;
        height: 80px;
        display: inline-block;
        background-color: transparent;
    }
    #Navigation .menu > li {
        border-bottom: none;
    }
    #Navigation .menu > li:first-of-type {
        padding-top: 0;
    }
    #Navigation .menu li.mobileMenuSwitch {
        display: none;
    }
    #Navigation .menu a {
        line-height: 80px;
    }
    #Navigation .menu ul {
        display: none;
        position: absolute;
        background: #ffffff;
        margin-left: -30px;
    }
    #Navigation .menu li.menu-item-has-children {
        background: url('media/arrow-down.svg') center right no-repeat;
        padding-right: 25px;
    }

    #Navigation .menu li.menu-item-has-children.open  {
        background: url('media/arrow-up.svg') center right no-repeat;
    }

    #Navigation .menu li.current-menu-item
    {
        background: url('media/sq.svg') bottom center no-repeat;
    }

    #Navigation .menu li ul li.current-menu-item {
        background-image: none;
    }

    #Navigation .menu .open ul {
        display: block;
        padding: 20px 0 20px 15px;
    }

    #Navigation .menu ul li {
        display: block;
        height: 60px;
        padding-right: 125px;
    }

    #Navigation .menu ul li a {
        line-height: 60px;
        text-transform: none;
    }
    #Navigation .search {
        order: 5;
    }
    #Navigation .support {
        order: 2;
        min-width: auto;
        padding: 16px 20px 0;
    }

    #Navigation .jump {
        order: 3;
    }
}

@media all and (min-width: 1200px) {
    #Navigation {
        background-position-y: 700px;
    }
    #Navigation .inner {
        flex-wrap: nowrap;
    }

    #Navigation .logo {
        min-width: 120px;
    }
    #Navigation .menu-main-container {
        order: 2;
        flex-grow: 1;
        min-width: auto;
    }
    #Navigation .menu-main-container.searchOpen ul {
        padding-right: 60px;
    }
    #Navigation .search {
        order: 3;
    }
    #Navigation .search.open {
        top: 80px;
        right: 180px;
    }

    #Navigation .support {
        order: 4;
        text-align: left;
    }

    #Navigation .jump {
        order: 5;
    }
}

#Flavour {
    color: #ffffff;
    height: 400px;
    background-image: url('media/bg1200.jpg');
    background-size: cover;
    background-position-y: center;
}

@media all and (min-width: 1200px){
    #Flavour {
        background-image: url('media/bg1600.jpg');
    }
}

@media all and (min-width: 1600px){
    #Flavour {
        background-image: url('media/bg2400.jpg');
    }
}

#Flavour.smaller
{
    height: 170px;
}

#Flavour p {
    margin: 0 auto;
    padding-top: 100px;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    max-width: 70%;
}

#Flavour.smaller h1
{
    margin: 0 auto;
    padding-top: 50px;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    max-width: 70%;
}


#Leading {
    text-align: center;
}

#Leading .inner {
    padding-top: 65px;
    padding-bottom: 65px;
}

#Leading h3,
#News .heading h3
{
    font-size: 2rem;
}

#Leading p {
    color: #666666;
}

#Products .inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#Products .product

{
    min-width: 315px;
    max-width: 315px;
    border-right: 1px solid #e2e2e2;
    border-left: 1px solid #e2e2e2;
    position: relative;
    height: 310px;
    margin-left: -1px;
}

#Products .product img,
#Content .product img,
#Content .service img
{
    margin: 10px auto;
    display: block;
}

#Products .product h3
{
    position: absolute;
    top: 100px;
    width: 275px;
    text-align: center;
    margin: 20px;
}

#Products .product .link
{
    position: absolute;
    top: 200px;
    text-align: center;
    width: 275px;
    margin: 20px;
}

#Products a,
#Content .product a,
#News .heading a,
.oneArticle a
{
    color: #dd1936;
    font-weight: bold;
    text-decoration: none;
}

#Products a span,
#Content .product a span,
#News .heading a span,
.oneArticle a span
{
    display: inline-block;
    width: 16px; height: 16px;
    background-image: url('media/arrow.svg');
    background-size: 16px 16px;
    color: transparent;
}

#News {
    background: linear-gradient(to bottom, #f6f6f6, #ffffff);
    padding-bottom: 100px;
}

#News > .inner {
    padding-top: 100px;
    display: flex;
    flex-wrap: wrap;
}

#News .heading {
    margin-left: 20px;
    margin-bottom: 50px;
    max-width: 315px;
    min-width: 315px;
}

#News .heading h3 {
    margin-top: 0;
}

#News ol {
    flex-grow: 1;
    margin-top: 2px;
    margin-right: 20px;
    margin-left: 0;
    padding-left: 0;
    list-style-type: none;
}

.oneArticle {
    position: relative;
    border-bottom: 1px solid #e2e2e2;
    margin-bottom: 50px;
}

.oneArticle .date {
    color: #666666;
}

.oneArticle h4 {
    margin: 20px 120px 20px 0;
}

.oneArticle .link {
    position: absolute;
    right: 0;
}

.oneArticle .excerpt {
    color: #666666;
    padding-right: 120px;
}

#Banner {
    background-color: #ffffff;
}

#Banner .banner {
    text-align: center;
    margin: 100px 20px 100px;
    max-width: 1094px;
    padding: 9px;
    border: 1px solid #e2e2e2;
    font-size: 0;

}

#Banner .banner img {

    height: auto;
    width: auto;
    max-width: 100%;

}

@media all and (min-width: 1300px){
    #News .heading {
        margin-left: 0;
    }
}

@media all and (min-width: 1134px){
    #Banner .banner {
        margin: 100px auto 100px;
    }
}

@media all and (min-width: 960px){
    #Flavour p {
        font-size: 4rem;
    }
}

@media all and (min-width: 800px){
    #News ol {
        margin-right: 140px;
    }
}

#Footer {
    background-color: #0c0c0c;
    color: #f9f9f9;
}

#Footer .inner {
    padding: 80px 20px 140px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#Footer .inner > div {
}

#Footer .widget h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
}

#Footer .textwidget {
    line-height: 180%;
    margin-right: 50px;
}

#Footer .addresses,
#Footer .links
{
    display: flex;
    flex-wrap: wrap;
}

#Footer .addresses {
    order: 2;
}
#Footer .links {
    order: 3;
}

#Footer .addresses .widget,
#Footer .links .widget
{
}

#Footer .links a {
    color: #f9f9f9;
    text-decoration: none;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 2px;
}

#Footer .links a:hover {
    border-color: #dd1936;
}

#Footer .contacts {
    order: 1;
    text-align: center;
    margin-bottom: 150px;
}

#Footer .contacts .email a {
    color: #ffffff;
    font-size: 1.5rem;
    text-decoration: none;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 2px;
}

#Footer .contacts .phone a {
    color: #ffffff;
    font-size: 1.7rem;
    text-decoration: none;
}

#Footer .contacts .email a:hover {
    border-color: #dd1936;
}

#Footer .contacts .phone a:hover {
    color: #dd1936;
}

#Footer .logo {
    margin-top: 50px;
}

#Footer .logo svg {
    width: 90px;
}

#Footer .logo .q,
#Footer .logo .c,
#Footer .logo .m
{
    fill: #ffffff;
}

#Footer .logo .foot {
    fill: #d70929;
}

#Footer .social {
    margin-top: 80px;
}

#Footer .social a {
    display: inline-block;
    text-decoration: none;
    min-width: 50px;
}




#Footer .social svg path {
    fill: #444;
}

#Footer .social a:hover svg path {
    fill: #666;
}

@media all and (min-width: 700px){
    #Footer .contacts {
        text-align: left;
    }
}

@media all and (min-width: 1200px){
    #Footer .addresses {
        order: 1;
    }
    #Footer .links {
        order: 2;
    }
    #Footer .contacts {
        order: 3;
    }
}

#Content .products,
#Content .services
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#Content .product img,
#Content .service img
{
    margin: 100px auto 30px;
}

#Content .product,
#Content .service
{
    min-width: 315px;
    max-width: 315px;
    border-right: 1px solid #e2e2e2;
    border-left: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
    position: relative;
    min-height: 630px;
    margin-left: -1px;
}

#Content .service:first-of-type {
}

#Content .product h3
{
    text-align: center;
    margin: 30px;
    font-size: 1.2rem;
}

#Content .service h3
{
    text-align: center;
    margin: 30px;
    font-size: 1.2rem;
}

#Content .service p,
#Content .product p
{
    margin: 20px 30px 30px;
    line-height: 180%;
}

#Content .service .link,
#Content .product .link
{
    text-align: center;
    margin: 30px 30px 100px;
}

#Content .service a,
#Content .product a
{
    color: #dd1936;
    font-weight: bold;
    text-decoration: none;
}

#Content .service a span,
#Content .product a span
{
    display: inline-block;
    width: 16px; height: 16px;
    background-image: url('media/arrow.svg');
    background-size: 16px 16px;
    color: transparent;
}

#Content .service a:hover,
#Content .product a:hover
{
    border-bottom: 1px solid #000000;
    padding-bottom: 3px;
}

#Content .service a:hover span,
#Content .product a:hover span
{
    background-image: url('media/arrow-black.svg');
    color: transparent;
}

#Content .entry {
    max-width: 600px;
    margin: 100px 10px;
}

body.page-template-singular-fullWidth #Content .entry {
    max-width: none;
    margin: 10px;
}

#Content .entry h2 {
    margin: 3rem 0 1rem;
}

#Content p,
#Content ol li,
#Content ul li
{
    line-height: 180%;
    color: #666666;
}

#Content p a {
    color: #dd1936;
    text-decoration: none;
}

#Content p a:hover {
    text-decoration: underline;
}

#Content a.largeLink
{
    display: inline-block;
    color: #dd1936;
    font-weight: bold;
    text-decoration: none;
    margin-left: 4rem;
    padding-bottom: 1px;
}

#Content a.largeLink span
{
    display: inline-block;
    width: 16px;
    margin-left: 1.5rem;
    background: url('media/arrow.svg') center center no-repeat;
    background-size: 16px 16px;
    color: transparent;
}

#Content a.largeLink:hover
{
    border-bottom: 1px solid #000000;
    padding-bottom: 0;
    text-decoration: none;
}

#Content a.largeLink:hover span
{
    background-image: url('media/arrow-black.svg');
}

/* taby v referencích */

#Content .tabs {
    display: none;
    border-left: 1px solid #e2e2e2;
}

#Content .tab
{
    width: 420px;
    display: inline-block;
    border-right: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
    position: relative;
    min-height: 230px;
    cursor: pointer;
}

#Content .tabContent .mobileHeading
{
    display: block;
    position: relative;
    min-height: 110px;
    cursor: pointer;
    border-bottom: 1px solid #e2e2e2;
}

#Content .tab h3
{
    text-align: center;
    margin: 80px 30px 30px;
    font-size: 1.2rem;
    color: #dd1936;
}

#Content .tabContent .mobileHeading h3
{
    text-align: center;
    font-size: 1.2rem;
    color: #dd1936;

}


#Content .tab h3 a,
#Content .tabContent .mobileHeading h3 a
{
    text-decoration: none;
    color: #dd1936;
}

#Content .tab span
{
    display: none;
    position: absolute;
    bottom: 50px;
    left: 50%;
    margin-left: -8px;
}

#Content .tabContent .mobileHeading span
{
    display: none;
    position: absolute;
    left: 50%;
    margin-left: -8px;
}


#Content .tab.active {
    border-bottom: 1px solid transparent;
}

#Content .tab.active span,
#Content .tabContent.active .mobileHeading span
{
    display: block;
}

#Content .tab.active h3,
#Content .tabContent.active .mobileHeading h3
{
    color: black;
}

#Content .tab span svg,
#Content .tabContent .mobileHeading span svg
{
    transform: rotate(90deg);
}

#Content .tabContent {

    border-left: 1px solid #e2e2e2;
    border-right: 1px solid #e2e2e2;
    padding: 80px;
    max-width: 1102px;
}

#Content .tabContent.linkOnly {

    padding: 20px;
    max-width: 1102px;
}

#Content .tabContent.linkOnly .content {
    display: none;
}

#Content .tab .content p
{
    margin: 20px 30px 30px;
    line-height: 180%;
}

@media all and (min-width: 700px){
    #Content .tabs {
        display: flex;
    }

    #Content .tabContent {
        display: none;
    }

    #Content .tabContent.active {
        display: block;
    }

    #Content .tabContent .mobileHeading {
        display: none;
    }
}

#Content .service .link,
#Content .product .link
{
    text-align: center;
    margin: 30px 30px 100px;
}

#Content .service a,
#Content .product a
{
    color: #dd1936;
    font-weight: bold;
    text-decoration: none;
}

#Content .service a span,
#Content .product a span
{
    display: inline-block;
    width: 16px; height: 16px;
    background-image: url('media/arrow.svg');
    background-size: 16px 16px;
    color: transparent;
}

#Content .service a:hover,
#Content .product a:hover
{
    border-bottom: 1px solid #000000;
    padding-bottom: 3px;
}

#Content .service a:hover span,
#Content .product a:hover span
{
    background-image: url('media/arrow-black.svg');
    color: transparent;
}

#Content .collapsible {
    border-bottom: 1px solid #e2e2e2;
    padding-top: 1rem;
    padding-bottom: 2rem;
    max-height: 48px;
    overflow: hidden;
    padding-left: 60px;
    transition: max-height 1s ease-in-out;
}

#Content .collapsible.visible {
    max-height: 2000px;
}


#Content .collapsible h2 {
    color: #dd1936;
    padding-left: 60px;
    margin: 1rem 0 2rem -60px;
    cursor: pointer;
}

#Content .collapsed h2 {
    background: url('media/plus.svg') 20px center no-repeat;
}

#Content .visible h2 {
    background: url('media/minus.svg') 20px center no-repeat;
}

#Content a.buttonlike {
    margin-top: 0.5rem;
    display: inline-block;
    background: #dd1936;
    color: #ffffff;
    text-transform: uppercase;
    padding: 0 26px;
    line-height: 42px;
}

#Content a.buttonlike:hover {
    text-decoration: none;
}

/* kontakty */

#Content .entry .row {
    display: flex;
    margin-bottom: 60px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

#Content .entry .row .col {
    min-width: 305px;
    max-width: 305px;
}

#Content .entry .row .col .inner {
    padding: 0;
}

#Content .entry .row .col.noTitle .inner {
    padding-top: 43px;
}



#Articles .entry {
    max-width: 600px;
    margin: 100px 10px;
}

#Articles ol {
    margin-top: 3rem;
    padding-left: 0;
    list-style-type: none;
}


.pagination {
    padding: 1rem 0 0 0;
    margin: 2rem 0 0 0;
    display: flex;
}

.pagination a
{
    margin: 30px 30px 100px;
    color: #dd1936;
    font-weight: bold;
    text-decoration: none;
}

.pagination a svg
{
    display: inline-block;
    width: 16px; height: 16px;
    background-size: 16px 16px;
    color: transparent;
}

.pagination > div {
    width: 50%;
}

.pagination .prev a svg
{
    transform: rotate(180deg);
}

.pagination .next {
    text-align: right;
}

.pagination a:hover
{
    border-bottom: 1px solid #000000;
    padding-bottom: 3px;
}

.pagination a:hover svg path
{
    fill: #000000;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery br {
    display: none; /* fixes stupid WP columns */
}

.gallery-item {
    margin: 20px;
}

.gallery-item dt {
    text-align: center;
}

.gallery-item dt img {
    display: inline-block;
}

.gallery-item dd {
    margin: 0;
    text-align: center;
}

@media all and (min-width: 620px ) {
    #Content .entry {
        margin: 100px auto;
    }
    #Articles .entry {
        margin: 100px auto;
    }
}

.frontTabs {

}

.frontTabs .handles {
    font-size: 0;
}

.frontTabs .handles span {
    display: inline-block;
    padding: 20px;
    font-size: 2rem;
    font-weight: 700;
    color: #dd1936;
    cursor: pointer;
    border: 1px solid #e2e2e2;
    border-left: 0;
}

.frontTabs .handles span:first-of-type {
    border-left: 1px solid #e2e2e2;
}

.frontTabs .handles span.current {
    color: black;
    border-bottom: 1px solid transparent;
}

.frontTabs .morelink {
    font-weight: 700;
    color: #dd1936;
    text-decoration: none;
}

.frontTabs .panels {
    border-left: 1px solid #e2e2e2;
}

.frontTabs .panels .panel {
    display: none;
}

.frontTabs .panels .panel.current {
    display: block;
}

.frontTabs .panel .inner {
    padding: 20px;
}

#News .covers,
#Articles .covers
{
    margin-top:80px;
    margin-right: 0;
    display: flex;  
    flex-wrap: wrap;  
}

#News .covers li,
#Articles .covers li
{
    flex: 1;
    margin-right: 26px;
    margin-bottom: 26px;
    width: 218px;
    flex-grow: 0;
}

.oneNewsletter .title {
    margin-top: 12px;
    text-align: center;
}

.oneNewsletter .title a {
    text-decoration: none;
    color: #686968;
    font-size: 0.9rem;
}

#NewsletterForm {
    max-width: 306px;
    margin: 1rem auto;
}

#NewsletterForm legend {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#NewsletterForm input {
    display: inline-block;
}

#NewsletterForm input[type=email] {
    height: 40px;
    width: 260px;
    box-sizing: border-box;
    padding: 10px 16px;
    border: 1px solid #e2e2e2;
}

#NewsletterForm input[type=submit] {
    cursor: pointer;
    color: transparent;
    height: 40px;
    width: 40px;
    box-sizing: border-box;
    border: 1px solid #e2e2e2;
    background: #dd1936 url('media/obalka.png') center center no-repeat;
}

.galleryLink {
    color: #dd1936;
    text-decoration: none;
    margin-top: 12px;
    display: inline-block;
}

.galleryLink:hover {
    text-decoration: underline;
}