/* Ekozub / Lightwire overrides — brand red from design */
:root {
    --ekozub-red: #E40C18;
    --ekozub-bg-gray: #f7f7f7;
    --ekozub-bg-white: #ffffff;
}

#preloader {
    background-color: #fff;
}

/* Section backgrounds — match switch.org.pl/EKOZUB/V1
 *
 * Ważne: body musi być przezroczysty. parallax.js na desktopie wkłada
 * .parallax-mirror (position:fixed; z-index:-100) — nieprzezroczyste tło body
 * zasłania lustro (na iOS/Android działa, bo tło idzie na samą sekcję).
 */
html {
    background-color: var(--ekozub-bg-gray);
}

body {
    background-color: transparent;
}

.section-empty:not(.bg-white):not(.ekozub-bg-white) {
    background-color: var(--ekozub-bg-gray);
}

/* Sekcja z parallaxem — bez zasłaniania lustra tłem rodzica */
.section-empty:has(.section-bg-image[data-parallax]),
.section-empty:has([data-parallax="scroll"].section-bg-image),
.section-empty:has(.parallax-window[data-parallax]) {
    background-color: transparent !important;
}

.section-bg-image[data-parallax] > .content,
.parallax-window[data-parallax] > .content {
    position: relative;
    z-index: 1;
}

/* Fallback tła z data-image-src (gdy lustro nie widać / brak JS) */
.section-bg-image[data-image-src] {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.bg-white,
.ekozub-bg-white,
.section-empty.bg-white,
.section-empty.ekozub-bg-white {
    background-color: var(--ekozub-bg-white) !important;
}

.ekozub-bg-gray,
.section-empty.ekozub-bg-gray {
    background-color: var(--ekozub-bg-gray) !important;
}

footer.footer-base {
    background-color: var(--ekozub-bg-gray);
}

footer.footer-base .copy-row:before {
    background-color: #f0f0f0;
}

/* ensure yellow template accents use brand red */
.btn-border.btn-yellow,
.text-color,
.btn-text.text-color {
    color: #E40C18 !important;
}

.btn-border.btn-yellow {
    border-color: #E40C18 !important;
}

.white .btn.btn-yellow,
.btn-border.btn-yellow:hover {
    background-color: #E40C18 !important;
    border-color: #E40C18 !important;
    color: #fff !important;
}

.navbar .navbar-nav > li:hover > a,
.btn:before,
.progress-bar,
.bg-color,
.section-bg-color,
.flex-control-paging li a.flex-active,
.advs-box-multiple div.circle {
    background-color: #E40C18 !important;
}

.btn:not(.btn-border),
.btn-border:hover {
    border-color: #E40C18 !important;
}

.btn:not(.btn-border) {
    background-color: #E40C18;
}

.btn:not(.btn-border):hover {
    background-color: #C70A14;
}

/* CTA under Technical Industrial Solutions */
.ekozub-references-cta {
    background-color: var(--ekozub-bg-gray);
    padding-top: 20px;
    padding-bottom: 20px;
}

.ekozub-references-cta .content {
    padding-top: 0;
    padding-bottom: 0;
}

.ekozub-references-cta__title {
    margin: 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #222;
    line-height: 1.3;
}

.ekozub-references-cta__btn {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: #fff !important;
    color: #E40C18 !important;
    border: 1px solid #E40C18 !important;
    padding: 12px 28px;
}

.ekozub-references-cta__btn:hover,
.ekozub-references-cta__btn:focus {
    background: #E40C18 !important;
    color: #fff !important;
    border-color: #E40C18 !important;
}

@media (max-width: 767px) {
    .ekozub-references-cta__title {
        font-size: 18px;
    }

    .ekozub-references-cta__btn {
        display: inline-block;
        width: 100%;
        text-align: center;
    }
}

/* Contact strip: Zadzwoń / Napisz / Spotkaj się */
.ekozub-contact-strip .advs-box-top-icon {
    margin-bottom: 0;
}

.ekozub-contact-strip .advs-box-top-icon .icon {
    font-size: 42px;
    margin-bottom: 18px;
}

.ekozub-contact-strip .advs-box-top-icon h3 {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    color: #222;
}

.ekozub-contact-strip .advs-box-top-icon p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.ekozub-contact-strip .advs-box-top-icon a {
    color: #666;
}

.ekozub-contact-strip .advs-box-top-icon a:hover {
    color: #E40C18;
}

@media (max-width: 767px) {
    .ekozub-contact-strip .col-md-4 + .col-md-4 {
        margin-top: 40px;
    }
}

/* Aktualności — advs-box-side grid like project */
.ekozub-news-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -15px;
    margin-right: -15px;
}

.ekozub-news-grid.grid-box {
    margin-left: -15px;
    margin-right: -15px;
    width: auto;
}

.ekozub-news-grid > [class*="col-md-"],
.ekozub-news-grid.grid-box > .grid-item {
    float: none;
    display: flex;
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 992px) {
    .ekozub-news-grid > .col-md-4,
    .ekozub-news-grid.grid-box > .grid-item.col-md-4 {
        width: 33.33333333%;
        max-width: 33.33333333%;
        flex: 0 0 33.33333333%;
    }

    .ekozub-news-card {
        min-height: 262px;
        height: 100%;
    }
}

/* Karta: zdjęcie po lewej (stretch), tytuł + 1. akapit + link po prawej */
.ekozub-news-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-height: 180px;
    margin: 0;
    padding: 0;
    background-color: #fff;
    border: 1px solid #ececec;
    border-top: 3px solid #E40C18;
    box-sizing: border-box;
    overflow: hidden;
}

.ekozub-news-card .ekozub-news-media {
    position: relative;
    flex: 0 0 42%;
    order: 1;
    width: 42%;
    max-width: 42%;
    min-width: 120px;
    align-self: stretch;
    display: block;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #e8e8e8;
}

.ekozub-news-card .ekozub-news-body {
    flex: 1 1 58%;
    order: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 18px;
    box-sizing: border-box;
}

.ekozub-news-card .ekozub-news-media img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    object-fit: cover !important;
    object-position: center center !important;
}

.ekozub-news-card .ekozub-news-body h3 {
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
}

.ekozub-news-card .ekozub-news-body h3 a {
    color: #222;
}

.ekozub-news-card .ekozub-news-body h3 a:hover {
    color: #E40C18;
}

.ekozub-news-card .ekozub-news-excerpt {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #666;
}

.ekozub-news-card .ekozub-news-excerpt p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.ekozub-news-card .ekozub-news-body .btn-text {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #999 !important;
    border-bottom-color: #ccc;
    align-self: flex-start;
}

.ekozub-news-card .ekozub-news-body .btn-text:hover {
    color: #E40C18 !important;
    border-bottom-color: #E40C18;
}


/* Legacy: stare karty advs-box-side (jeśli coś jeszcze zostało) */
.ekozub-news-grid .advs-box-side.boxed-inverse {
    background-color: #fff;
    height: 100%;
    margin: 0;
    border: 1px solid #ececec;
    border-top: none;
    padding: 0;
}

.ekozub-news-all-btn {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: transparent !important;
    color: #E40C18 !important;
    border: 1px solid #E40C18 !important;
    padding: 12px 28px;
}


.ekozub-news-all-btn:hover,
.ekozub-news-all-btn:focus {
    background: #E40C18 !important;
    color: #fff !important;
}

/* Lista aktualności — tytuł zawsze na środku (skin h2.text-center ma max-width:700px) */
.ekozub-post-list .ekozub-post-list__title,
.ekozub-post-list > .content > h2,
.ekozub-post-list > .container > h2,
.widget-posts-list > .content > h2,
.widget-posts-list > .container > h2 {
    text-align: center !important;
    max-width: none !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #222;
    margin-top: 0;
    margin-bottom: 0;
}

/* Posty zawsze w .container — bez rozciągania na 100vw */
.ekozub-post-list > .container,
.widget-posts-list > .container {
    width: 100%;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
}

.ekozub-post-list__pagination.list-nav,
.ekozub-page-has-post > .list-nav {
    margin-top: 40px;
}

.ekozub-post-list__pagination .pagination {
    display: inline-flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

.ekozub-post-list__pagination .pagination > li > a {
    color: #666;
}

.ekozub-post-list__pagination .pagination > li.page.active > a,
.ekozub-post-list__pagination .pagination > li.page:hover > a,
.ekozub-post-list__pagination .pagination > li.active > a {
    color: #fff;
    background-color: #E40C18;
    border-color: #E40C18;
}

.ekozub-post-list__pagination .pagination > li.disabled > a {
    opacity: 0.35;
    pointer-events: none;
}

/* Single post — Lightwire post-2 */
.ekozub-post-show__body {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.ekozub-post-show .niche-box-post {
    margin-bottom: 25px;
}

/* Miniaturka u góry — bez wysokiego slidera */
.ekozub-post-show__thumb {
    display: block;
    width: 100%;
    max-height: 280px;
    overflow: hidden;
}

.ekozub-post-show__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 280px;
    object-fit: cover;
    object-position: center center;
}

.ekozub-post-show__gallery .maso-item {
    margin-bottom: 10px;
}

.ekozub-post-show__gallery .maso-item .img-box {
    display: block;
    overflow: hidden;
}

.ekozub-post-show__gallery .maso-item .img-box img {
    display: block;
    width: 100%;
    height: auto;
}

/* Lightbox — bez scrolla, zdjęcie w oknie viewportu */
html.mfp-ready,
html.mfp-ready body {
    overflow: hidden !important;
}

.mfp-wrap {
    overflow: hidden !important;
}

.mfp-container {
    overflow: hidden !important;
    padding: 0 !important;
}

.mfp-image-holder .mfp-content {
    max-height: 100vh !important;
    max-width: 100% !important;
}

.mfp-figure {
    max-height: 100vh;
    line-height: 0;
}

.mfp-figure:after {
    top: 0 !important;
    bottom: 0 !important;
}

img.mfp-img {
    box-sizing: border-box !important;
    max-height: 92vh !important;
    max-width: 92vw !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

.ekozub-header-breadcrumbs {
    background-color: #2a2a2a;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: left !important;
}

.ekozub-header-breadcrumbs .title-base,
.ekozub-header-breadcrumbs .title-base.text-left {
    text-align: left !important;
}

.ekozub-header-breadcrumbs .title-base h1 {
    margin-bottom: 10px;
    text-align: left;
}

.ekozub-header-breadcrumbs .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    text-align: left !important;
    float: none;
}

.ekozub-header-breadcrumbs .breadcrumb > li {
    display: inline-block;
    float: none;
}

.ekozub-header-breadcrumbs .breadcrumb > li + li:before {
    padding: 0 6px;
    color: rgba(255, 255, 255, 0.7);
    content: "/\00a0";
}

.ekozub-header-breadcrumbs .breadcrumb a {
    color: #fff;
}

.ekozub-header-breadcrumbs .breadcrumb > .active,
.ekozub-header-breadcrumbs .breadcrumb > li:last-child a {
    color: rgba(255, 255, 255, 0.85);
}

/* Footer — Przydatne linki (katalog + strony, drzewko z skin .footer-menu) */
.ekozub-footer-menu__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #222;
}

.ekozub-footer-menu.footer-menu {
    margin-top: 0;
    border-left-color: #c8c8c8;
}

.ekozub-footer-menu.footer-menu a {
    text-transform: uppercase;
    color: #888;
    font-size: 13px;
    letter-spacing: 0.02em;
    padding-top: 8px;
    padding-bottom: 8px;
}

.ekozub-footer-menu.footer-menu a:before {
    background: #c8c8c8;
    top: 16px;
}

.ekozub-footer-menu.footer-menu a:hover {
    color: #E40C18;
}

@media (max-width: 991px) {
    .ekozub-news-card {
        flex-direction: column;
        min-height: 0;
    }

    .ekozub-news-card .ekozub-news-media {
        order: 1;
        flex: none;
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 10;
        max-height: min(42vw, 220px);
    }

    .ekozub-news-card .ekozub-news-body {
        order: 2;
        padding: 16px 18px 18px;
    }

    .ekozub-post-show__thumb,
    .ekozub-post-show__thumb img {
        max-height: min(42vh, 220px);
    }
}

/* Mapa naszych realizacji */
.ekozub-map-realizations__title {
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

.ekozub-map-tabs {
    display: inline-flex;
    gap: 0;
}

.ekozub-map-tab {
    appearance: none;
    border: 1px solid #ddd;
    background: #ececec;
    color: #333;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    padding: 12px 37px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.ekozub-map-tab:first-child {
    border-right: 0;
}

.ekozub-map-tab.is-active {
    background: #E40C18;
    border-color: #E40C18;
    color: #fff;
}

.ekozub-map-tab:not(.is-active):hover {
    background: #e2e2e2;
}

.ekozub-map-list-btn {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 12px;
    background: #fff !important;
    color: #E40C18 !important;
    border: 1px solid #E40C18 !important;
    padding: 12px 18px;
    display: inline-block;
    white-space: normal;
    text-align: center;
    max-width: 100%;
}

.ekozub-map-list-btn:hover,
.ekozub-map-list-btn:focus {
    background: #E40C18 !important;
    color: #fff !important;
}

/* Mapa: wysokość dopasowana do proporcji world map (bez pustego letterboxu góra/dół) */
.ekozub-map-realizations > .container.content {
    padding-top: 40px;
    padding-bottom: 40px;
}

.ekozub-map-realizations__canvas {
    position: relative;
    display: block;
    width: 100%;
    height: 480px;
    min-height: 480px;
    overflow: hidden;
}

/* jsvectormap dokłada .jvm-container na ten sam element — trzymaj stałą wysokość */
.ekozub-map-realizations__canvas.jvm-container {
    width: 100% !important;
    height: 480px !important;
    min-height: 480px !important;
}

.ekozub-map-realizations__canvas.is-mode-poland,
.ekozub-map-realizations__canvas.is-mode-poland.jvm-container {
    height: 560px !important;
    min-height: 560px !important;
}

.ekozub-map-realizations__canvas svg {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.ekozub-map-realizations__canvas .jvm-zoomin,
.ekozub-map-realizations__canvas .jvm-zoomout {
    border-color: #cfd5dc;
    border-radius: 0 !important;
    top: auto !important;
    left: 10px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center;
    box-sizing: border-box;
}

.ekozub-map-realizations__canvas .jvm-zoom-btn.jvm-zoomin {
    bottom: 153px !important;
}

.ekozub-map-realizations__canvas .jvm-zoom-btn.jvm-zoomout {
    bottom: 131px !important;
}

/* Nazwa realizacji tylko w tooltipie (hover), nie na mapie */
.ekozub-map-realizations .jvm-markers-labels-group,
.ekozub-map-realizations text.jvm-marker {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.jvm-tooltip {
    background: #222;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.3;
    max-width: 260px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    z-index: 10050;
}

/* Wbudowany tooltip jsvectormap wyłączony (nazwy krajów) — własny tip markerów */
.ekozub-map-realizations ~ .jvm-tooltip,
.jvm-tooltip {
    display: none !important;
}

.ekozub-map-marker-tip {
    position: fixed;
    z-index: 10060;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.3;
    max-width: 260px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    white-space: nowrap;
}

.ekozub-map-marker-tip[hidden] {
    display: none !important;
}

.ekozub-map-realizations__empty {
    margin-top: 12px;
}

.ekozub-map-country-list h3 {
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
}

.ekozub-map-country-list__name {
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #222;
}

.ekozub-map-country-list__items {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.ekozub-map-country-list__items li {
    margin-bottom: 6px;
}

.ekozub-map-country-list__items a {
    color: #555;
}

.ekozub-map-country-list__items a:hover {
    color: #E40C18;
}

@media (max-width: 767px) {
    .ekozub-map-realizations > .container.content {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .ekozub-map-realizations__canvas,
    .ekozub-map-realizations__canvas.jvm-container {
        height: 300px !important;
        min-height: 300px !important;
    }

    .ekozub-map-realizations__canvas.is-mode-poland,
    .ekozub-map-realizations__canvas.is-mode-poland.jvm-container {
        height: 360px !important;
        min-height: 360px !important;
    }

    .ekozub-map-tabs {
        width: 100%;
    }

    .ekozub-map-tab {
        flex: 1;
        text-align: center;
    }
}

/* Header top contact bar */
.ekozub-header-top {
    background-color: #2f2f2f !important;
    border-bottom: none !important;
    color: #cfcfcf;
}

.ekozub-header-top__contacts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    float: left;
    padding: 8px 0;
}

.ekozub-header-top__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #cfcfcf;
}

.ekozub-header-top__item i {
    font-size: 14px;
    color: #fff;
    position: relative;
    top: 1px;
}

.ekozub-header-top__item a {
    color: #cfcfcf;
    text-decoration: none;
}

.ekozub-header-top__item a:hover {
    color: #fff;
}

.ekozub-header-top__sep {
    display: inline-block;
    margin: 0 14px;
    color: #777;
    font-weight: 300;
}

.ekozub-header-top .navbar-right {
    padding: 4px 0;
}

/* Przełącznik języków — odstępy + biały tekst na hover (nadpisuje skin.css) */
.navbar .ekozub-header-top .navbar-nav.lan-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar .ekozub-header-top .navbar-nav.lan-menu > li {
    float: none;
    height: auto !important;
}

.navbar .ekozub-header-top .navbar-nav.lan-menu > li > a,
.navbar .ekozub-header-top .navbar-nav.lan-menu > li > a.dropdown-toggle {
    position: relative;
    z-index: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px !important;
    margin: 0 !important;
    color: #fff !important;
    border: none !important;
    border-right: none !important;
    line-height: 1 !important;
    min-width: 36px;
    height: auto !important;
    width: auto !important;
    text-align: center;
    background: transparent !important;
    background-color: transparent !important;
}

.navbar .ekozub-header-top .navbar-nav.lan-menu > li > a:before,
.navbar .ekozub-header-top .navbar-nav.lan-menu > li:hover > a:before {
    content: none !important;
    display: none !important;
}

.navbar .ekozub-header-top .navbar-nav.lan-menu > li > a img {
    display: inline-block;
    width: 14px;
    height: auto;
    margin: 0 !important;
}

/* skin.css ustawia color:#E40C18 !important na a:hover — stąd „puste” EN */
.navbar .ekozub-header-top .navbar-nav.lan-menu > li > a:hover,
.navbar .ekozub-header-top .navbar-nav.lan-menu > li:hover > a,
.navbar .ekozub-header-top .navbar-nav.lan-menu > li.active > a,
.navbar .ekozub-header-top .navbar-nav.lan-menu > li.active > a:hover {
    background: #E40C18 !important;
    background-color: #E40C18 !important;
    color: #fff !important;
}

@media (max-width: 767px) {
    .ekozub-header-top__contacts {
        float: none;
        width: 100%;
        justify-content: center;
        padding: 6px 0 2px;
    }

    .ekozub-header-top__sep {
        margin: 0 10px;
    }

    .ekozub-header-top .navbar-right {
        float: none;
        text-align: center;
        width: 100%;
    }
}

