/*
 Theme Name:   Twenty Twenty-One Minibagřík
 Description:  Kompletní design a úpravy pro web Minibagr Kuta
 Author:       Robůtek
 Template:     twentytwentyone
 Version:      1.1.0
*/

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* 1. POZADÍ, MŘÍŽKA A STRUKTURA */
body {
    background-color: #f4f4f4;
    background-image: linear-gradient(#e5e5e5 1px, transparent 1px), linear-gradient(90deg, #e5e5e5 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
}
#page {
    background-color: #ffffff;
    max-width: 1300px;
    margin: 0 auto;
    box-shadow: 0 0 25px rgba(0,0,0,0.1);
    position: relative;
}
.site-header { padding-bottom: calc(1.2 * var(--global--spacing-vertical)); }
.no-widgets .site-footer { margin-top: calc(1 * var(--global--spacing-vertical)); }

/* 2. HORNÍ STAVEBNÍ PÁSKA A LOGO */
.construction-strip {
    width: 100%; height: 12px;
    background: repeating-linear-gradient(45deg, #ff9900, #ff9900 20px, #333333 20px, #333333 40px);
    position: relative; z-index: 100;
}
.custom-logo-header { text-align: center; padding: 30px 15px; background-color: #ffffff; border-bottom: 4px solid #ff9900; }
.logo-img-custom {
    max-width: 280px; width: 100%; height: auto; display: inline-block;
    filter: drop-shadow(0px 5px 10px rgba(0,0,0,0.15));
    animation: dropBounce 1s ease-out; transition: transform 0.3s ease;
}
.logo-img-custom:hover { transform: scale(1.05) rotate(-2deg); }
@keyframes dropBounce {
    0% { transform: translateY(-100px); opacity: 0; }
    60% { transform: translateY(15px); opacity: 1; }
    80% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* 3. KONTAKTNÍ FORMULÁŘ (CF7) */
.minibagr-form-cf7 {
    background-color: #f9f9f9; padding: 30px; border-left: 6px solid #ff9900; border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); font-family: 'Open Sans', sans-serif; max-width: 700px; margin: 0 auto;
}
.minibagr-form-cf7 label { font-weight: 700; font-size: 15px; color: #333; margin-bottom: 6px; display: block; }
.minibagr-form-cf7 .form-control {
    width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 4px;
    background: #fff; font-size: 16px; color: #333; margin-bottom: 10px; box-sizing: border-box; transition: all 0.3s ease;
}
.minibagr-form-cf7 .form-control:focus { border-color: #ff9900; outline: none; box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2); }
.form-row-flex { display: flex; gap: 20px; }
.form-col-half { width: 50%; }

input.wpcf7-form-control.wpcf7-submit {
    background-color: #ff9900 !important; color: #ffffff !important; font-family: 'Oswald', sans-serif !important;
    font-size: 22px !important; font-weight: 700 !important; text-transform: uppercase !important;
    padding: 16px 30px !important; border: none !important; border-radius: 5px !important;
    width: 100%; margin-top: 20px; cursor: pointer; box-shadow: 0 5px 0 #cc7a00 !important; transition: all 0.1s ease !important;
}
input.wpcf7-form-control.wpcf7-submit:hover { background-color: #e68a00 !important; box-shadow: 0 5px 0 #b36b00 !important; }
input.wpcf7-form-control.wpcf7-submit:active { transform: translateY(4px) !important; box-shadow: 0 1px 0 #b36b00 !important; background-color: #333 !important; }

/* Úprava pro mobily a tablety */
@media (max-width: 768px) {
    input.wpcf7-form-control.wpcf7-submit {
        font-size: 18px !important;    /* Zmenšení písma */
        padding: 12px 15px !important; /* Zmenšení vnitřního prostoru */
        white-space: normal !important; /* Povolí zalomení textu, pokud by byl stále dlouhý */
        height: auto !important;       /* Výška se přizpůsobí obsahu */
    }

    /* Bonus: Úprava sloupců vedle sebe, aby se na mobilu naskládaly pod sebe */
    .form-row-flex {
        flex-direction: column;
        gap: 0;
    }
    .form-col-half {
        width: 100%;
    }
}

/* 4. GLOBÁLNÍ RESET A PŘÍSTUPNOST */
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) {
    background: transparent !important; text-decoration: none !important; outline: none !important; box-shadow: none !important; color: inherit !important;
}
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) img { outline: none !important; box-shadow: none !important; border: none !important; }
.site a::after, .site a::before { box-shadow: none !important; display: none !important; }