

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Kompenzace pro fixn hlaviku (sticky-top) */
}
/* PREMIUM UX CSS FOR ZACHRANNASIT.CZ */

/* Původní barvy a fonty */
:root {
    --brand-red: #e6153d;
    --brand-blue: #0263aa;
    --brand-yellow: #ffd541;
    --brand-dark: #333333;
    --brand-gray: #f4f4f4;
}

body {
    font-family: 'Dosis', sans-serif;
    color: var(--brand-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Vylepšení nadpisů */
h1, h2 {
    font-family: 'Amatic SC', cursive;
    font-weight: 700;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--brand-dark);
}

h2 {
    letter-spacing: 1px;
}

/* Redukce velkých mezer */
.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}
.mt-5 {
    margin-top: 2rem !important;
}
.mb-5 {
    margin-bottom: 2rem !important;
}

/* Zúžení hlavičky (redukce prázdného místa v navigačním pruhu) */
.navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Odsazení hlavního nadpisu (Hero section) více dolů */
header .row > .col-sm-7 {
    padding-top: 2rem;
}

@media (min-width: 768px) {
    .py-5 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
}

/* Hero sekce */
#hero {
    background: url('../img/house.webp') center center no-repeat;
    background-size: contain;
    min-height: 400px;
}

/* Automatický kontrast na tmavých a modrých pozadích */
.bg-primary, .bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary p, .bg-primary li, .bg-primary .lead, .bg-primary span, .bg-primary div,
.bg-dark, .bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark p, .bg-dark li, .bg-dark .lead, .bg-dark span, .bg-dark div {
    color: #ffffff !important;
}

.bg-primary .btn, .bg-dark .btn {
    color: var(--brand-dark) !important;
}
.bg-primary input, .bg-dark input {
    color: var(--brand-dark) !important;
}

/* Tlačítka s micro-animací a lepším kontrastem */
.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 50px; /* Modernější zaoblení */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-warning.btn {
    background-color: var(--brand-yellow) !important;
    border-color: var(--brand-yellow) !important;
    color: var(--brand-dark) !important;
}

.bg-warning.btn:hover {
    background-color: #f0c330 !important;
}

/* Glassmorphism a měkké stíny pro boxy (formuláře) */
.card, .bg-light {
    background: rgba(244, 244, 244, 0.9) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Karty 'Co umíme řešit' (červené pozadí, modrý nadpis, stejná výška) */
.solution-box {
    background-color: var(--brand-red) !important;
    color: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Zarovnání do roviny (flex stretch) */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Zajišťuje, aby hlavička respektovala zaoblení */
}

.solution-box h3 {
    margin-top: 0; /* Zarovnání nahoru */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.solution-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Srovnávací karty (Rychlý výkup) */
.comparison-card {
    background-color: #ffffff !important;
    color: var(--brand-dark) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.comparison-card-danger {
    border: 3px solid var(--brand-red);
}

.comparison-card-success {
    border: 3px solid #198754; /* Bootstrap success green */
}

.comparison-card .list-group-item {
    background-color: transparent;
    border: none;
    padding: 0.75rem 0;
    color: var(--brand-dark);
    font-size: 1.1rem;
}


/* Moderní vstupy formulářů */
.form-control {
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-control:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(2, 99, 170, 0.15);
    outline: none;
}

/* Cookie lišta - Vlastní styl */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-text {
    flex: 1 1 60%;
    margin-right: 20px;
    min-width: 300px;
}

.cookie-text p {
    margin: 0;
    font-size: 1rem;
    color: #eee;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex: 0 1 auto;
    margin-top: 10px;
}

.btn-cookie-accept {
    background-color: var(--brand-yellow);
    color: var(--brand-dark);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    background-color: #f0c330;
}

.btn-cookie-reject {
    background-color: transparent;
    color: #ccc;
    border: 1px solid #777;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie-reject:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-text {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}
