/* =====================================================================
   home.css - Fáze 3: Hero sekce + moderní filtr kategorií
   Barevné schéma klienta: zelená rgb(46,151,107) / #28a745
   ===================================================================== */

:root {
    --eg-green: rgb(46, 151, 107);
    --eg-green-dark: rgb(35, 116, 82);
    --eg-green-light: rgb(91, 175, 113);
}

/* ---------- HERO ---------- */
.eg-hero {
    position: relative;
    background-image: url('Images/title_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: .5rem .5rem 0 0;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
}

    /* Zelený overlay pro čitelnost textu přes klientův obrázek */
    .eg-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, rgba(35, 116, 82, .78) 0%, rgba(46, 151, 107, .45) 55%, rgba(46, 151, 107, .10) 100%);
        z-index: 1;
    }

.eg-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2.5rem 2rem;
    color: #fff;
}

.eg-hero-title {
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: .75rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.eg-hero-subtitle {
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.35rem);
    max-width: 42rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.eg-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    color: var(--eg-green-dark);
    font-weight: 700;
    padding: .7rem 1.6rem;
    border-radius: 50rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

    .eg-hero-cta:hover,
    .eg-hero-cta:focus {
        background: var(--eg-green);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
        text-decoration: none;
    }

/* Pruh s claimem pod hero */
.eg-hero-claim {
    background-color: var(--eg-green);
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: .65rem 1rem;
    border-radius: 0 0 .5rem .5rem;
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .eg-hero {
        min-height: 220px;
    }

    .eg-hero-content {
        padding: 1.75rem 1.15rem;
    }
}

/* ---------- FILTR KATEGORIÍ (pills) ---------- */
.eg-catfilter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    padding: .75rem .25rem;
    margin: 0 0 .5rem;
}

.eg-catpill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 8.5rem;
    padding: .55rem 1.1rem;
    border: 2px solid var(--eg-green);
    border-radius: 50rem;
    background: #fff;
    color: var(--eg-green-dark);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

    .eg-catpill:hover,
    .eg-catpill:focus {
        background: var(--eg-green-light);
        color: #fff;
        text-decoration: none;
        transform: translateY(-1px);
    }

    .eg-catpill .eg-catpill-desc {
        font-weight: 300;
        font-size: .75rem;
        opacity: .85;
        line-height: 1.1;
        margin-top: .1rem;
    }

    .eg-catpill.is-active {
        background: var(--eg-green);
        color: #fff;
        box-shadow: 0 3px 10px rgba(46, 151, 107, .35);
    }

        .eg-catpill.is-active .eg-catpill-close {
            font-weight: 700;
            margin-left: .35rem;
        }

@media (max-width: 575.98px) {
    .eg-catpill {
        min-width: 7rem;
        padding: .45rem .85rem;
        font-size: .9rem;
    }
}
