/* IT4Time — poprawki wyglądu i mobile dla statycznej wersji (nadpisuje motyw cmsmart printshop) */

:root {
    --it4-accent: #25bce9;
    --it4-accent-dark: #0092e8;
    --it4-ink: #1d2430;
    --it4-muted: #5b6573;
    --it4-line: #e6e9ee;
    --it4-bg-soft: #f5f7fa;
    --it4-radius: 10px;
    --it4-shadow: 0 6px 24px rgba(17, 30, 50, .08);
    --it4-shadow-hover: 0 12px 32px rgba(17, 30, 50, .16);
}

/* --- Fonty: motyw używa nazw "Roboto Regular"/"Roboto Bold", których nigdzie nie definiował (→ Times) --- */
@font-face {
    font-family: 'Roboto Regular';
    font-weight: 100 900;
    font-display: swap;
    src: url(fonts/roboto-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Roboto Regular';
    font-weight: 100 900;
    font-display: swap;
    src: url(fonts/roboto-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Roboto Bold';
    font-weight: 100 900;
    font-display: swap;
    src: url(fonts/roboto-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Roboto Bold';
    font-weight: 100 900;
    font-display: swap;
    src: url(fonts/roboto-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
h1.ct-header, #breadcrumbs h2 { font-weight: 700; }

/* --- Typografia: wszędzie Roboto --- */
body, p, span, li, td, input, textarea, button, h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}
body { color: var(--it4-ink); -webkit-font-smoothing: antialiased; }
p { line-height: 1.65; }
img { max-width: 100%; height: auto; }

/* --- Nagłówek: przyklejony, z cieniem po przewinięciu --- */
header#header, header.header, body > .wrapper > .page > header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: #fff;
    transition: box-shadow .25s ease;
}
/* overflow:hidden na .page blokował sticky; clip przycina tak samo, ale nie tworzy kontenera przewijania */
.wrapper > .page { overflow: clip; }
body.it4-scrolled header {
    box-shadow: 0 2px 16px rgba(17, 30, 50, .10);
}
.nav-exploded > li > a span {
    letter-spacing: .04em;
    transition: color .2s ease;
}
.nav-exploded > li > a:hover span { color: var(--it4-accent); }

/* --- Kafelki oferty pod sliderem --- */
.home-category .thumb > a.image,
.home-category .thumb5 > a.image {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--it4-radius);
    box-shadow: var(--it4-shadow);
}
.home-category .thumb > a.image img {
    display: block;
    width: 100%;
    transition: transform .6s ease;
}
.home-category .thumb > a.image:hover img { transform: scale(1.05); }
.home-category .category_baner_title {
    background: linear-gradient(180deg, rgba(10, 18, 30, 0) 0%, rgba(10, 18, 30, .82) 100%) !important;
    letter-spacing: .03em;
    line-height: 1.3;
}

/* --- Sekcje i nagłówki sekcji --- */
.block-title-w .block-title { letter-spacing: .06em; }
.block-title-w .sub-title { color: var(--it4-muted); }

/* --- "Czym się zajmujemy": karty --- */
.or-service .or-block { margin-bottom: 30px; }
.or-service .or-block .or-image a {
    display: block;
    overflow: hidden;
    border-radius: var(--it4-radius);
    box-shadow: var(--it4-shadow);
    transition: box-shadow .3s ease, transform .3s ease;
}
.or-service .or-block:hover .or-image a {
    box-shadow: var(--it4-shadow-hover);
    transform: translateY(-4px);
}
.or-service .or-text {
    height: auto !important;
    overflow: visible !important;
}
.or-service .or-text p {
    height: auto !important;
    min-height: 0;
    color: var(--it4-muted);
}
.or-service .or-image a, .or-service .or-title a { cursor: default; }

/* --- Przyciski-tagi w opisach rozwiązań --- */
.cms-index-index .btn, .std a.button-tag {
    border-radius: 6px;
}

/* --- Kontakt --- */
.contact-map { display: none; }
.cms-contact-page .col-main section, body.cms-page-view .contact-info {
    padding-top: 20px;
}
.contact-page-it4 {
    width: 100%;
    max-width: 720px;
    float: none;
    margin: 10px auto 60px;
    padding: 28px 32px;
    background: var(--it4-bg-soft);
    border-radius: var(--it4-radius);
    box-shadow: var(--it4-shadow);
}
.contact-page-it4 .address, .contact-page-it4 .phone, .contact-page-it4 .website {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--it4-line);
}
.contact-page-it4 .website { border-bottom: 0; }
.contact-page-it4 i.fa {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: var(--it4-accent);
    color: #fff;
    font-size: 18px;
    margin: 0 !important;
    position: static !important;
}
.contact-page-it4 p { margin: 0; font-size: 16px; padding: 0 !important; }
.contact-page-it4 a { color: var(--it4-accent-dark); }

/* --- Blog: ikony społecznościowe bez adresów (href="#") --- */
.block_social_blog { display: none !important; }

/* --- Stopka --- */
footer .footer-main a { transition: color .2s ease; }
footer .footer-main a:hover { color: var(--it4-accent) !important; }

/* --- Menu mobilne (własne, zastępuje niedziałające z motywu) --- */
#custommenu-mobile, #menu-content { display: none !important; }
.it4-mnav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    background: #fff;
    z-index: 10001;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
    box-shadow: -8px 0 32px rgba(17, 30, 50, .18);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}
.it4-mnav-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px 16px;
    border-bottom: 1px solid var(--it4-line);
}
.it4-mnav-head img { height: 34px; width: auto; }
.it4-mnav-close {
    border: 0;
    background: none;
    font-size: 30px;
    line-height: 1;
    color: var(--it4-ink);
    padding: 4px 8px;
    cursor: pointer;
}
.it4-mnav a.it4-mnav-link {
    display: block;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 500;
    color: var(--it4-ink);
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--it4-line);
    text-decoration: none;
}
.it4-mnav a.it4-mnav-link:active, .it4-mnav a.it4-mnav-link:hover { color: var(--it4-accent); background: var(--it4-bg-soft); }
.it4-mnav-contact { margin-top: auto; padding: 20px 24px 0; color: var(--it4-muted); font-size: 14px; line-height: 1.8; }
.it4-mnav-contact a { color: var(--it4-accent-dark); }
.it4-mnav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 30, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 10000;
}
body.it4-menu-open .it4-mnav { transform: translateX(0); visibility: visible; }
body.it4-menu-open .it4-mnav-overlay { opacity: 1; visibility: visible; }
body.it4-menu-open { overflow: hidden; }
.mbmenu-icon-w { cursor: pointer; }
.mbmenu-icon-w .fa-bars { font-size: 26px; padding: 6px; }

/* --- Telefon i mały tablet --- */
@media (max-width: 767px) {
    .container { padding-left: 16px; padding-right: 16px; }

    /* Kafelki oferty: jedna kolumna, niskie banery zamiast wysokich zdjęć */
    .home-category .cate-banner-col,
    .home-category .cate-banner-col + div,
    .home-category [class*="col-xs-"] {
        width: 100% !important;
        float: none;
    }
    .home-category .thumb, .home-category .thumb5 { margin-bottom: 14px; padding-left: 0; padding-right: 0; }
    .home-category .row { margin-left: 0; margin-right: 0; }
    .home-category .thumb > a.image img,
    .home-category .thumb5 > a.image img {
        height: 170px !important;
        object-fit: cover;
    }
    .home-category .category_baner_title {
        font-size: 17px !important;
        padding: 14px 16px !important;
        white-space: normal !important;
        height: auto !important;
    }

    /* Czym się zajmujemy: jedna kolumna z pełnymi opisami */
    .or-service .or-block { width: 100% !important; float: none; text-align: center; }
    .or-service .or-block .or-image img { width: 100%; max-height: 220px; object-fit: cover; }
    .or-service .or-title a { font-size: 18px; }

    .block-title-w .block-title { font-size: 22px; }

    /* Kontakt */
    .contact-page-it4 { width: auto; padding: 20px; margin: 10px 16px 40px; }

    /* Stopka */
    footer .footer-col { margin-bottom: 24px; text-align: left; }
}
