/* BATES v0.26.157 – homepage refinement */

/* Pull trust strip slightly deeper into hero for a cleaner transition. */
.bates-home-trust {
    margin-top: -40px;
    padding-bottom: 10px;
}

.bates-home-trust-item {
    padding-top: 18px;
    padding-bottom: 18px;
}

/* Lower visual weight of the small benefit chips inside hero. */
.bates-home-hero .hero-highlights {
    opacity: .88;
}

.bates-home-hero .hero-highlights > div {
    background: rgba(255,255,255,.055);
}

/*
 * Replaces the visually busy "Odborné zastrešenie" band.
 * The original CMS section remains in the DOM but is hidden after JS
 * identifies it by its heading. This avoids changing CMS/database content.
 */
.bates-home-expertise-original {
    display: none !important;
}

.bates-home-expertise {
    position: relative;
    padding: 54px 0 64px;
    background:
        linear-gradient(180deg, #fff 0%, #f8faff 100%);
}

.bates-home-expertise::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 0%, rgba(47,91,177,.055), transparent 29%);
}

.bates-home-expertise-inner {
    position: relative;
}

.bates-home-expertise-head {
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: center;
}

.bates-home-expertise-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
    color: #2f5bb1;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bates-home-expertise-kicker::before {
    content: "";
    width: 26px;
    height: 2px;
    background: #d71920;
    border-radius: 999px;
}

.bates-home-expertise-head h2 {
    margin: 0;
    color: #13203c;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.bates-home-expertise-head p {
    margin: 13px auto 0;
    max-width: 640px;
    color: #68738a;
    font-size: 15px;
    line-height: 1.6;
}

.bates-home-expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 1120px;
    margin: 0 auto;
}

.bates-home-expertise-card {
    min-width: 0;
    padding: 24px 22px 22px;
    border: 1px solid rgba(47,91,177,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 24px rgba(19,32,60,.045);
}

.bates-home-expertise-number {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 17px;
    border-radius: 9px;
    background: #eef3ff;
    color: #2f5bb1;
    font-size: 11px;
    font-weight: 900;
}

.bates-home-expertise-card:nth-child(2) .bates-home-expertise-number {
    color: #d71920;
    background: #fff1f2;
}

.bates-home-expertise-card h3 {
    margin: 0 0 8px;
    color: #13203c;
    font-size: 18px;
    line-height: 1.25;
}

.bates-home-expertise-card p {
    margin: 0;
    color: #68738a;
    font-size: 13px;
    line-height: 1.55;
}

.bates-home-expertise-link {
    display: inline-flex;
    margin-top: 16px;
    color: #2f5bb1;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.bates-home-expertise-link:hover,
.bates-home-expertise-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

/* Keep this transition intentionally static/lightweight. */
.bates-home-expertise-card {
    transition: border-color .16s ease, box-shadow .16s ease;
}

.bates-home-expertise-card:hover {
    border-color: rgba(47,91,177,.24);
    box-shadow: 0 10px 28px rgba(19,32,60,.065);
}

@media (max-width: 900px) {
    .bates-home-expertise-grid {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .bates-home-expertise-card {
        padding: 20px;
    }
}

@media (max-width: 760px) {
    .bates-home-trust {
        margin-top: -24px;
    }

    .bates-home-expertise {
        padding: 42px 0 48px;
    }

    .bates-home-expertise-head {
        text-align: left;
        margin-bottom: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bates-home-expertise-card {
        transition: none !important;
    }
}
