/* =========================
   Category tabs wrapper
   ========================= */

.kontaktum-category-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 22px auto 0;
}

/* =========================
   Single category tab
   ========================= */

.kontaktum-category-tab {
    position: relative;

    display: flex !important;
    align-items: center;
    justify-content: flex-start;

    gap: 18px;

    flex: 1 1 0;
    min-width: 0;
    min-height: 120px;

    padding: 0 18px !important;

    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(15, 42, 76, 0.14);
    box-sizing: border-box;
    text-align: left;

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.kontaktum-category-tab:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(15, 42, 76, 0.18);
}

/* =========================
   Icons
   ========================= */

.kontaktum-category-tab > svg {
    width: 34px;
    height: 34px;
    padding: 12px;

    border-radius: 50%;
    color: #ffffff;
    box-sizing: content-box;
    margin: 0;

    flex: 0 0 auto;
}

.kontaktum-category-tab:nth-child(1) > svg {
    background: #2563eb;
}

.kontaktum-category-tab:nth-child(2) > svg {
    background: #f97316;
}

.kontaktum-category-tab:nth-child(3) > svg {
    background: #16a34a;
}

/* =========================
   Text group
   ========================= */

.kontaktum-category-tab > .wp-block-group {
    display: flex !important;
    flex-direction: column;
    justify-content: center;

    gap: 4px;

    min-width: 0;
    width: 100%;

    margin: 0 !important;
    padding: 0 !important;
}

/* =========================
   Titles
   ========================= */

.kontaktum-category-tab h2,
.kontaktum-category-tab .wp-block-heading {
    width: 100%;
    max-width: 100%;

    margin: 0 !important;

    color: #0f2a4c;

    font-size: clamp(22px, 1.35vw, 26px);
    font-weight: 800;
    line-height: 1.12;

    text-align: left !important;

    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.kontaktum-category-tab h2 a,
.kontaktum-category-tab .wp-block-heading a {
    display: block;
    width: 100%;

    color: inherit;
    font-size: inherit;
    line-height: inherit;
    text-decoration: none;
    text-align: left !important;
}

.kontaktum-category-tab h2 a:hover,
.kontaktum-category-tab .wp-block-heading a:hover {
    color: #2563eb;
}

/* =========================
   Description
   ========================= */

.kontaktum-category-tab p {
    width: 100%;
    max-width: 100%;

    margin: 0 !important;

    color: #4b5d73 !important;

    font-size: clamp(14px, 1vw, 16px) !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;

    text-align: left !important;

    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

/* =========================
   Gutenberg reset
   ========================= */

.kontaktum-category-tab > * {
    margin-top: 0;
    margin-bottom: 0;
}

/* =========================
   Tablet / mobile stacked cards
   ========================= */

@media (max-width: 980px) {
    .kontaktum-home-hero .kontaktum-category-tabs {
        display: grid !important;
        grid-template-columns: 1fr !important;

        width: calc(100% - 48px);
        max-width: 520px;

        margin-left: auto;
        margin-right: auto;

        gap: 16px;
    }

    .kontaktum-home-hero .kontaktum-category-tab {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;

        min-height: 154px;

        gap: 18px;
        padding: 0 18px !important;

        text-align: left !important;
    }

    .kontaktum-home-hero .kontaktum-category-tab > svg {
        width: 34px;
        height: 34px;
        padding: 12px;

        flex: 0 0 auto;
    }

    .kontaktum-home-hero .kontaktum-category-tab > .wp-block-group {
        display: flex !important;
        flex-direction: column;
        justify-content: center;

        gap: 4px;

        min-width: 0;
        width: 100%;

        margin: 0 !important;
        padding: 0 !important;
    }

    .kontaktum-home-hero .kontaktum-category-tab h2,
    .kontaktum-home-hero .kontaktum-category-tab .wp-block-heading {
        width: 100% !important;
        margin: 0 !important;

        font-size: clamp(22px, 4vw, 25px);
        line-height: 1.12;

        text-align: left !important;
    }

    .kontaktum-home-hero .kontaktum-category-tab p {
        width: 100% !important;
        margin: 0 !important;

        font-size: clamp(13px, 2.5vw, 15px) !important;
        line-height: 1.35 !important;

        text-align: left !important;
    }
}
