/*
Theme Name:     mytheme
Author:         Amigos Banditos
Version:        1.0.0
Author URI: 	https://ivanbarta.cz/
Description: 	šablona
Tags: 			blog, news
Text Domain: 	mytheme
*/

@charset "UTF-8";
:root {
    --color-primary: #6cb962;
    --color-accent: #5e78ce;
    --color-text: #686868;
    --color-shadow: #2222226c;
    --color-button: #0000003b;
    --color-button-hover: #00000000;
    --color-white: #ebebeb;
    --color-white-dark: #b4b4b4;
    --color-grey-light: #96969638;
    --color-grey-dark: #00000077;
    --color-primary-light: #c9ad336e;
    --color-primary-dark: #85721f67;
    --size-button: 0.7rem;
}

* {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
}

body {
    font-family: "Asap", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    min-height: 100vh;
}

/* ---------------------------------------------
0 - 424px:      Phone             (432 / 16 = 27em)
------------------------------------------------
424 - 768px:    Tablet portrait   (768px / 16 = 48em)
----------------------------------------------*/
h1 {
    font-size: 4.4rem;
    font-weight: 400;
}

h2 {
    font-size: 3.4rem;
    font-weight: 400;
}

h3 {
    font-size: 2rem;
    font-weight: 400;
    color: #797979;
}

h4 {
    font-size: calc(0.7vw + 0.7rem);
    line-height: calc(0.8vw + 1.2rem);
    font-weight: 400;
    color: #797979;
}

@media only screen and (max-width: 27em) {
    h4 {
        font-size: calc(1.4vw + 1rem);
        line-height: calc(1.68vw + 1.2rem);
    }
}

p {
    font-size: calc(0.4vw + 1rem);
    line-height: calc(1.12vw + 0.8rem);
    color: #797979;
}

@media only screen and (max-width: 27em) {
    p {
        font-size: 1.6rem;
        line-height: calc(1.4vw + 1.5rem);
    }
}

.titulek,
.nazev-bloku {
    color: var(--color-text);
}

.titulek {
    padding-top: 6rem;
    padding-bottom: 1rem;
}

@media only screen and (max-width: 27em) {
    .titulek {
        padding-top: 1rem;
        font-size: 4rem;
    }
}

.nazev-bloku {
    padding-top: 6rem;
}

@media only screen and (max-width: 27em) {
    .nazev-bloku {
        padding-top: 1rem;
        font-size: 3rem;
    }
}

.text-center {
    text-align: center;
}

.heading-primary {
    color: var(--color-white);
    margin-bottom: 2rem;
}

@media only screen and (max-width: 27em) {
    .heading-primary {
        text-align: center;
    }
}

.heading-primary--main {
    display: block;
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 1.2rem;
    margin-right: -1.2rem;
}

@media only screen and (max-width: 27em) {
    .heading-primary--main {
        font-size: 3rem;
        line-height: 1.4;
        letter-spacing: 0.6rem;
        margin-bottom: 1rem;
    }
}

.heading-primary--sub {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 1.4rem;
    margin-right: -1.4rem;
}

@media only screen and (max-width: 27em) {
    .heading-primary--sub {
        font-size: 1.8rem;
        letter-spacing: 0.6rem;
        margin-bottom: 1rem;
    }
}

.btn,
.btn:link,
.btn:visited {
    position: relative;
    display: inline-block;
    font-family: "Asap", sans-serif;
    font-weight: 400;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.6rem 1.6rem;
    margin-top: 1rem;
    transition: all 0.2s;
    /* zpomalí ostatní states jako hover a visted */
    font-size: 2.2rem;
    background-color: var(--color-button);
    color: var(--color-white-dark);
    border: 1px solid var(--color-white-dark);
    cursor: pointer;
}

.btn:hover {
    color: var(--color-white);
    border: 1px solid var(--color-white);
    background-color: var(--color-button-hover);
    transform: translateY(-0.3rem);
    box-shadow: 0.4rem 0.6rem 1.5rem var(--color-shadow);
}

.btn:hover::after {
    transform: scaleX(1.4) scaleY(1.6);
    opacity: 0;
}

.btn:active,
.btn:focus {
    outline: none;
    transform: translateY(-0.1rem);
    color: var(--color-primary-light);
    box-shadow: 0 0.5rem 1rem var(--color-shadow);
}

footer {
    position: fixed; /**/
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    grid-column: 1/-1;
    grid-row: 3/4;
    align-self: flex-end;
    display: flex;
    padding: 0 1rem 0.5rem;
    align-items: flex-end;
    justify-content: space-between;
}

@media only screen and (max-width: 27em) {
    footer {
        position: static; /**/
        flex-direction: column;
        grid-column: 1/-1;
        grid-row: 4/-1;
    }
}

footer .third {
    width: 33%;
}

footer .third p {
    font-size: 1.4rem;
}

@media only screen and (max-width: 27em) {
    footer .third {
        width: 100%;
        text-align: center;
    }
}

@media only screen and (max-width: 27em) {
    footer .third p a {
        display: block;
    }
}

@media only screen and (max-width: 27em) {
    footer .third p span {
        display: none;
    }
}

footer .third a {
    color: var(--color-text);
    text-decoration: none;
}

footer .third a:hover {
    opacity: 0.6;
}

footer .third a img {
    width: 3rem;
    height: 3rem;
}

@media only screen and (max-width: 27em) {
    footer .third a img {
        width: 4rem;
        height: 4rem;
    }
}

footer .third a img:hover {
    opacity: 0.5;
    transform: scale(1.3);
    transition: all 0.5s ease-out;
}

footer * :not(:last-child) {
    margin-right: 0.8rem;
}

.prostred {
    text-align: center;
}

.vpravo {
    text-align: right;
    padding-top: 1rem;
}

.galerie {
    padding: 4rem 0;
    display: grid;
    justify-content: center;
    grid-template-rows: repeat(1, minmax(100px, min-content));
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    column-gap: 4rem; /**/
    row-gap: 4rem; /**/
}

.galerie img {
    width: 100%;
    height: auto; /**/
    box-shadow: 8px 4px 10px rgba(0, 0, 0, 0.2);
}

.galerie img:hover {
    opacity: 0.7;
    box-shadow: 4px 8px 14px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
    transition: all 0.4s ease-out;
}

/* ------------------- Photoswipe Custom CSS ------------------------- */
.galerie li {
    list-style-type: none; /* odstranění bullet pooints */
}

.pswp__bg {
    opacity: 0.85 !important;
}

.pswp__img {
    margin-top: 2rem;
}

@media only screen and (max-width: 27em) {
    .pswp__img {
        padding: 0.5rem;
    }
}

/* Popisek obrázku */
.pswp__caption__text {
    color: #9a9a9a;
    font-size: 2rem;
    font-weight: 100;
    line-height: 2.4rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.pswp__caption__desc {
    color: #9a9a9a;
    font-size: 1.4rem;
    font-weight: 100;
    line-height: 2rem;
    margin-bottom: 1.4rem;
}

@media only screen and (max-width: 27em) {
    .pswp__caption__center {
        /*font-size: 1.8rem;*/
        line-height: 2rem;
    }
}

/* --------------------------------------------------------------------- */
.vsechny_fotografie {
    text-align: end;
    margin-bottom: 6rem;
}

@media only screen and (max-width: 27em) {
    .vsechny_fotografie {
        text-align: center;
    }
}

.galerie-magazine {
    padding: 4rem 0;
    display: block;
    justify-items: center;
    /* grid-template-rows: repeat(2, minmax(100px, min-content));
    grid-template-columns: repeat(auto-fit, minmax(64rem, 1fr));
    column-gap: 6rem;
    row-gap: 6rem; */
}

.galerie-magazine .img-mag img {
    width: 100%;
    height: 100%;
    margin-bottom: 4rem;
    box-shadow: 4px 8px 14px rgba(0, 0, 0, 0.3);
}

.card {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 1rem 0 1rem;
    color: white;
    background-color: rgba(180, 180, 180, 0.3);
    box-shadow: 8px 4px 10px rgba(0, 0, 0, 0.2);
}

.card:hover {
    background-color: whitesmoke;
    box-shadow: 4px 8px 14px rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
    transition: all 0.8s ease-out;
}

.card:hover h4 {
    background-color: white;
    border-top: 1px solid gainsboro;
    border-bottom: 1px solid gainsboro;
    box-shadow: 4px 8px 14px rgba(0, 0, 0, 0.1);
    padding: 2rem 1rem 2rem; /* */
    opacity: 1;
    transition: all 0.5s ease-out;
}

.card:hover img {
    opacity: 0.05; /* */
    transition: all 0.5s ease-out;
}

.card img {
    width: 100%;
    height: 100%;
    padding: 1rem 0;
}

.card h4 {
    position: absolute;
    width: 100%;
    padding: 2rem 1rem 2rem; /* */
    top: 8rem;
    left: 0;
    opacity: 0;
}

.card h4 span {
    font-weight: 700;
}

.header {
    grid-column: 1/-1;
    grid-row: 2/3;
    height: auto;
    background-image: linear-gradient(to right bottom, #8b646400, #96969633),
    url("/wp-content/themes/mytheme/img/hero_01.jpg");
    background-size: cover;
    background-position: center;
    /* obrázek se při resizing přilepí na střed */
}

.header__left {
    grid-row: 2/3;
    grid-column: 1/2;
    z-index: 50;
}

.header__right {
    grid-row: 2/3;
    grid-column: 2/3;
    background-color: var(--color-grey-dark);
    padding: 46% 4rem 10% 12rem;
    text-align: right;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%);
    z-index: 50;
}

@media only screen and (max-width: 27em) {
    .header__right {
        grid-row: 2/3;
        grid-column: 1/3;
        padding: 5rem 2rem 22vh;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        clip-path: polygon(0 0, 100% 0, 100% 65%, 0% 50%);
        text-align: center;
    }
}

.header__box {
    background-color: var(--color-grey-dark);
}

@media only screen and (max-width: 27em) {
    .header__box {
        text-align: center;
        padding: 16% 3% 0;
    }
}

.wpml-ls-legacy-dropdown a {
    font-size: 1.4rem;
    color: rgb(129, 129, 129);
}

@media only screen and (max-width: 27em) {
    .wpml-ls-legacy-dropdown a {
        font-size: 1.8rem;
        color: rgb(155, 155, 155);
    }
}

.navi-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 0 2rem;
    background-color: rgba(255, 255, 255, 0.85);
}

@media only screen and (max-width: 27em) {
    .navi-bar {
        display: none;
    }
}

#nav {
    position: fixed;
    grid-column: 1/-1;
    grid-row: 1/2;
    justify-self: right;
    align-self: flex-end;
    padding-right: 5rem;
    font-size: 1.8rem;
    letter-spacing: 0.8px;
    top: 0;
    right: 0;
}

@media only screen and (max-width: 27em) {
    #nav {
        display: none;
    }
}

#nav ul li {
    position: relative;
    float: left;
    list-style: none;

}

#nav ul li a {
    display: block;
    color: var(--color-text);
    padding: 1rem 2rem;
    text-decoration: none;
}

#nav ul li ul {
    display: block;
    position: absolute;
    background-color: rgba(230, 230, 230, 0.88);
    box-shadow: 1px 8px 10px rgba(46, 46, 46, 0.329);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-0.8rem);
    transition: all 0.4s ease;
    z-index: 100;
}

#nav > ul > li > a:hover {
    opacity: 0.5;
}

#nav ul li:hover ul {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0rem);
}

#nav ul li ul li {
    width: 14rem;
}

#nav ul li ul li a {
    padding: 0.5rem 1.4rem;
}

#nav ul li ul li a:hover {
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--color-white);
    transition: all 0.2s ease;
}

#mobil {
    display: none;
    list-style: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background-color: rgba(236, 236, 236, 0.904);
    text-align: center;
    font-size: 2.8rem;
    z-index: 1000;
    transform: translateX(100%);
    transition: all 0.5s ease-out;
}

@media only screen and (max-width: 27em) {
    #mobil {
        display: block;
    }
}

#mobil ul {
    margin-top: 30%;
}

#mobil ul li {
    position: relative;
    display: inline-block;
    color: #333;
    padding: 1rem;
}

@media only screen and (max-width: 27em) {
    #mobil ul li {
        display: block;
    }
}

#mobil ul li a {
    color: #333;
    text-decoration: none;
}

#mobil ul li ul {
    display: none;
}

#mobil ul li:hover {
    cursor: pointer;
}

#mobil ul li:hover a {
    color: #fff;
}

#mobil ul li:hover ul {
    display: block;
    position: absolute;
    left: 0;
    width: 200px;
    margin-top: 1rem;
}

@media only screen and (max-width: 27em) {
    #mobil ul li:hover ul {
        width: 100%;
        position: relative;
    }
}

#mobil ul li:hover ul li {
    display: block;
    background: #ffffff8e;
}

#mobil ul li:hover ul li a {
    color: #333;
}

#mobil ul li:hover ul li:hover {
    background: #c5c5c5;
    color: inherit;
}

/* ikonka telefonu se zobrazuje jen na homepage na mobilu - proto je na front-page.php inline style "display: flex;" */
.telefon {
    display: none;
    position: fixed;
    opacity: 0.6;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    text-align: center;
    cursor: pointer;
}

.telefon a {
    padding: 0 1.2rem;
    text-decoration: none;
    font-size: 2.4rem;
    color: var(--color-text);
}

.telefon img {
    width: 3rem;
    height: 3rem;
}

/* ------ LANGUAGE SWITCHER -------- */
.lang-switch {
    position: fixed;
    top: 0;
    left: 0;
}

@media only screen and (max-width: 27em) {
    .lang-switch {
        left: 50%;
        transform: translateX(-50%);
    }
}

.hamburger {
    display: none;
}

@media only screen and (max-width: 27em) {
    .hamburger {
        display: block;
    }
}

.hamburger__checkbox {
    display: none;
}

.hamburger__button {
    background-color: white;
    height: 5rem;
    width: 5rem;
    border-radius: 5px;
    position: fixed;
    top: 1rem;
    right: 2rem;
    z-index: 2000;
    text-align: center;
    cursor: pointer;
}

.hamburger__icon {
    position: relative;
    margin-top: 2.4rem;
}

.hamburger__icon,
.hamburger__icon::before,
.hamburger__icon::after {
    width: 3rem;
    height: 2px;
    background-color: #111;
    display: inline-block;
}

.hamburger__icon::before,
.hamburger__icon::after {
    content: "";
    position: absolute;
    left: 0;
    transition: all 0.4s;
}

.hamburger__icon::before {
    top: -0.8rem;
}

.hamburger__icon::after {
    top: 0.8rem;
}

.hamburger__button:hover .hamburger__icon::before {
    top: -1rem;
}

.hamburger__button:hover .hamburger__icon::after {
    top: 1rem;
}

.hamburger__checkbox:checked + .hamburger__button .hamburger__icon {
    background-color: transparent;
}

.hamburger__checkbox:checked + .hamburger__button .hamburger__icon::before {
    transform: rotate(135deg);
    top: 0;
}

.hamburger__checkbox:checked + .hamburger__button .hamburger__icon::after {
    transform: rotate(-135deg);
    top: 0;
}

#mobil.show-navi {
    transform: translateX(0);
    transition: all 0.5s ease-out;
}

#mobil.navi-remove {
    transform: translateX(100%);
    transition: all 0.5s ease-out;
}

/* šipky u odkazů v menu ---------------------------------------------------------------------- */
.custom-arrow {
    height: 2rem;
    width: 2rem;
    align-self: center;
    pointer-events: none;
    /* odstraní z elementu reakci na klik, takže reaguje až vrstva pod ním */
    margin-top: 0.2rem;
    margin-right: 0.6rem;
    margin-left: -1.2rem;
}

@media only screen and (max-width: 27em) {
    .custom-arrow {
        display: none;
    }
}

.custom-arrow::before {
    content: "";
    position: absolute;
    top: 100%;
    border-left: var(--size-button) solid transparent;
    border-right: var(--size-button) solid transparent;
    border-top: var(--size-button) solid var(--color-text);
    transition: all 0.3s ease;
}

@media only screen and (max-width: 27em) {
    .custom-arrow::before {
        display: none;
    }
}

#nav ul li:hover + .custom-arrow::before {
    border-top: none;
    border-bottom: var(--size-button) solid var(--color-text);
    opacity: 0.5;
}

/* ---------------------------------------------------------------------- */
.page-layout {
    display: grid;
    grid-template-rows: 14vh 70vh 16vh;
    grid-template-columns: 52% 48%;
}

@media only screen and (max-width: 48em) {
    .page-layout {
        grid-template-columns: 30% 70%;
    }
}

@media only screen and (max-width: 27em) {
    .page-layout {
        grid-template-rows: 7rem 66% 19%;
    }
}

.line {
    margin: 0.1rem auto 6rem;
    border-top: 0.5px solid #e4e4e4;
    align-items: center;
}

.no-scrollbar {
    overflow: hidden;
    /* Hide scrollbars */
}

.container {
    grid-column: 1/-1;
    /* musí být kvůli dalšímu obsahu kromě homepage a hero image, např. page-galerie.php */
    width: 76%;
    margin: 8rem auto 10rem;
}

.container a {
    color: var(--color-text);
}

@media only screen and (max-width: 48em) {
    .container {
        width: 90%;
    }
}

@media only screen and (max-width: 27em) {
    .container {
        width: 94%; /**/
        margin: 0 auto 10rem;
    }
}

.o-me {
    display: flex;
    margin-top: 5rem;
    /*width: 100%;*/
}

@media only screen and (max-width: 48em) {
    .o-me {
        flex-direction: column;
    }
}

@media only screen and (max-width: 27em) {
    .o-me {
        flex-direction: column;
    }
}

.o-me .right-o-mne img {
    width: 18vw;
    height: auto;
    margin-top: 2rem;
}

@media only screen and (max-width: 27em) {
    .o-me .right-o-mne img {
        width: 100%;
    }
}

.portrait {
    padding: 0 4rem 0 1rem;
}

.portrait img {
    width: 36vw;
    height: auto;
}

@media only screen and (max-width: 48em) {
    .portrait {
        padding-right: 2rem;
        margin-bottom: 2rem;
    }
}

@media only screen and (max-width: 27em) {
    .portrait {
        padding: 0;
    }
}

@media only screen and (max-width: 48em) {
    .portrait img {
        width: 100%;
    }
}

@media only screen and (max-width: 27em) {
    .portrait img {
        width: 100%;
    }
}

.kontakt {
    text-align: center;
    height: 24rem;
}

.kontakt h4 a {
    /* text-decoration: none; */
    color: var(--color-text);
    line-height: 2;
}

@media only screen and (max-width: 27em) {
    .kontakt h4 {
        font-size: 2rem;
    }
}

.reference {
    display: grid;
    justify-content: center;
    grid-template-rows: repeat(2, minmax(100px, min-content));
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    column-gap: 4rem;
    row-gap: 4rem;
}

@media only screen and (max-width: 27em) {
    .reference {
        row-gap: 1rem;
    }
}

.reference img {
    width: 100%;
}

/* SEOPRESS COOKIE BAR */
/* Message */
.seopress-user-message {
    margin-bottom: 6rem;
    border-radius: 6px;
    font-size: 3rem;
}

/* Accept Button */
#seopress-user-consent-accept {
    margin-left: 2rem;
    cursor: pointer;
    font-size: 2.2rem;
    border-radius: 6px;
    border: none;
}

#seopress-user-consent-accept:hover {
    opacity: 0.5;
    transition: 0.2s ease-out;
}

/* Close Button */
#seopress-user-consent-close {
    font-size: 1.6rem;
    font-weight: 200 !important;
    padding: 1rem;
    border-radius: 6px;
    margin-left: 8rem !important;
}

#seopress-user-consent-close:hover {
    background-color: hsla(0, 0%, 70%, 0.5) !important;
}
