/* Custom styles for MujUp */

.visible {
  z-index: 2;
  position: relative;
}
.hide {
    display: none;
}
.negativ-left-50 {
  margin-left: -50px;
}
.negativ-left-300 {
    margin-left: -300px;
}

.equal-height-columns {
    display: flex;
    gap: var(--wp--style--block-gap, 2rem); /* zachová mezeru mezi sloupci */
}  
.equal-height-columns > .wp-block-column {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}
.wp-block-image {
    text-align: initial;
}
@media only screen and (max-width: 781px) {
    .wp-image-9796 {
        display: none;
    }
}
.orange-btn a {
    color: var(--wp--preset--color--white-fg);
    font-weight: bold;
    background-color: var(--wp--preset--color--primary-orange);
    padding: 9px 24px !important;
    border-radius: 12px;
    line-height: var(--wp--custom--button--typography--line-height);
}
.orange-btn a:hover {
    background-color: var(--wp--preset--color--accent-orange);
    color: var(--wp--preset--color--white-fg) !important;
    text-decoration: none;
}
li::marker {
    color: var(--wp--preset--color--primary-orange);
}
@media screen {
    .d-none {
        display: none;
    }   
}
@media (min-width: 782px) {
    .d-sm-none {
        display: none;
    }
    .d-sm-table-cell {
        display: table-cell;
    }
}
.wp-block-cover, .wp-block-cover-image {
    min-height: 310px;
}
.grecaptcha-badge {
    display: none;
}
a:not(.ab-item):not(.screen-reader-shortcut):active, a:not(.ab-item):not(.screen-reader-shortcut):focus {
    outline: none;
}
footer.site-footer-container.wp-block-template-part {
    margin-block-start: 0;
}

/* Responsive styles */
@media (max-width: 781px) {
    .hide-on-mobile {
        display: none !important;
    }
    .no-bg-mobile {
        background-image: none !important;
    }
    .wp-site-blocks .site-header .wp-block-site-logo {
        flex-basis: initial;
        margin-bottom: unset;
        margin-top: calc( var(--wp--custom--gap--vertical) / 2 );
        text-align: center;
    }
    .entry-content > .wp-block-group.has-background {
        padding: var(--wp--custom--gap--vertical) var(--wp--custom--gap--horizontal) !important;
    }
    .entry-content > .wp-block-group > .wp-block-columns > .wp-block-column > .wp-block-group {
        min-height: 79vw !important;
    }
    .wp-container-core-group-is-layout-9dde13e5 {
        margin-top: 0;
    }
    .center-mobile .wp-block-group > * {
        text-align: center !important;
        max-width: 100% !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important; 
    }
    .wp-container-core-group-is-layout-6b856653 {
        margin-top: 70px !important;
    }
}

/* Navigation and Top bar */
nav .wp-block-search__inside-wrapper {
    background-color: transparent;
}
nav .wp-block-search__button.has-icon {
    color: var(--wp--preset--color--white-fg);
    background: transparent;
    padding: 0.5rem;
}
nav .wp-block-search__button.has-icon:hover svg {
    border-bottom: 1px solid var(--wp--preset--color--primary-orange);
}
@media (min-width: 782px) {
    nav .wp-block-search:not(.wp-block-search__searchfield-hidden) {
        position: absolute;
        top: 65px;
        background: var(--wp--preset--color--black-bg);
        border-radius: 16px;
        padding: 15px 0px 15px 15px;
    }
}
.wp-site-blocks > div.is-position-sticky {
    padding: var(--wp--custom--gap--vertical) var(--wp--custom--gap--horizontal);
}

/* Homepage */
@media only screen and (min-width: 782px) {
    .home-cards {
        margin-top: -85px;
    }
    .home-cards > .wp-block-columns > .wp-block-column > .wp-block-group {
        margin-top: 23px;
    }
    .cols-up {
       margin-top: -8rem;
  }
}
.home-benefit {
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: bottom;
}
@media only screen and (max-width: 781px) {
    .home-benefit {
        background-image: none !important;
    }
}
.small-icons .wp-block-media-text {
    grid-template-columns: 8% auto !important;
}
.small-icons figure.wp-block-media-text__media > img {
    width: 24px;
}
.small-icons .wp-block-media-text__content {
    padding: 0;
}
.small-icons .wp-block-media-text__content > p {
    margin-top: 0;
}
.accent-hover:hover {
    background-color: var(--wp--preset--color--accent-orange);
    border-radius: 12px;
}
@media only screen and (max-width: 781px) {
    .stats > .wp-block-column {
        padding: 0 0 25px 0 !important;
    }
}
.home .slider {
    padding-top: 112px !important;
    background-image: url(https://www.mujup.cz/wp-content/smush-webp/2025/03/Background-1024x372.png.webp);
    background-position: center;
    background-size: cover;
}
.home .slider h1 {
    font-size: 3rem;
}
@media (max-width: 768px) {
  .home .slider {
    padding-top: 40px !important;
    background-image: none;
  }
  .home .slider h1 {
    font-size: 2.5rem;
  }
}

/* Final Optimization Hacks */
.slider .wp-image-1457 {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: cover;
  aspect-ratio: 585 / 486;
}
.slider .wp-block-columns .wp-block-column:last-child {
  content-visibility: auto;
  contain: layout style;
  overflow: hidden;
}
.slider .wp-block-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

#mam-zajem {
    background-size: inherit !important;
    background-repeat: no-repeat;
    background-position: bottom left;
}
.bg-contain-right {
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: right;
}
@media only screen and (max-width: 781px) {
    #mam-zajem, .bg-contain-right {
        background-image: none !important;
    }
    .loga .wp-block-image {
        width: 45%;
    }
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Contact form */
.wpcf7-list-item {
    margin: 0;
}
.wpcf7 a {
    text-decoration: underline;
}
.wpcf7 label {
    font-weight: bold;
    margin-top: 8px;
    display: inline-block;
}
.wpcf7 .wpcf7-list-item label {
    margin-top: 0;
}
.wpcf7 .wpcf7-form-control.wpcf7-text, .wpcf7 textarea, .wpcf7 select {
    color: var(--wp--preset--color--black-bg);
    background: var(--wp--custom--form--border--color);
    border: none;
    width: 95%;
    padding: 11px 12px;
    border-radius: 12px;
    margin-top: -8px;
}
.c-forms__input.c-forms__input--radio {
    margin-top: -8px;
}
.wpcf7 .row {
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.wpcf7 .col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}
@media (min-width: 782px) {
  .wpcf7 .col-md-6 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
}
.wpcf7 .wpcf7-submit {
    background: var(--wp--preset--color--primary-orange);
    color: #fff;
    border-radius: 12px;
    font-weight: bold;
    width: 100%;
    padding: 18px;
    border-style: none;
    background-image: url(/wp-content/uploads/2025/06/bx-send-1.svg);
    background-repeat: no-repeat;
    background-position: 30%;
}
.narrow .wpcf7 .wpcf7-submit {
    background-position: 80%;
} 
@media (max-width: 781px) {
  .wpcf7 .wpcf7-submit {
    background-position: 15%;
  }
}
:is(.wp-block-search__button, .wp-block-button__link):is(:hover, :active, :focus) {
    color: #fff;
}
.wp-block-button.is-style-fill .wp-block-button__link:focus,
.wp-block-button.is-style-fill .wp-block-button__link:active {
    background-color: var(--wp--preset--color--primary-orange) !important;
    outline: none;
}
.wp-block-button.is-style-fill .wp-block-button__link:active {
    background-color: var(--wp--preset--color--accent-orange) !important;
    outline: none;
}

/* Animace a efekty - pouze desktop */
@media only screen and (min-width: 782px) {        
    @keyframes slideUpFadeIn {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
    }
    .animate-up {
        animation: slideUpFadeIn 1s ease-out forwards;
        opacity: 0;
        animation-delay: 0.5s;
    }
    
    @keyframes jiggle {
        0%   { transform: scale(1) rotate(0deg); }
        25%  { transform: scale(1.05) rotate(-5deg); }
        50%  { transform: scale(1.05) rotate(5deg); }
        75%  { transform: scale(1.05) rotate(-3deg); }
        100% { transform: scale(1) rotate(0deg); }
    }  
    .jiggle-on-scroll.animate > img {
        animation: jiggle 1s ease-in-out !important;
        transform-origin: center center !important;
    }
}
