/* ==========================================================================
   Odra Serwis - Complete Custom CSS (custom.css)
   ========================================================================== */

/* Spacing utility */
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-80 { margin-bottom: 80px; }
.mb-100 { margin-bottom: 100px; }

/* ==========================================================================
   1. Realizacja / Storytelling & Tabela Specyfikacji
   ========================================================================== */

/* Kontrola odstępu od góry dla całej sekcji wpisu */
.portfolio-story-area {
    padding-top: 40px !important;
    padding-bottom: 80px;
}

/* Zmniejszenie odstępów między blokami realizacji na desktopie */
.portfolio-story-area .container.mb-100 {
    margin-bottom: 30px !important; /* <--- Odstęp na komputerach (zamiast 100px) */
}

/* Zmniejszenie odstępu na telefonach */
@media (max-width: 768px) {
    .portfolio-story-area .container.mb-100 {
        margin-bottom: 20px !important; /* <--- Odstęp na smartfonach */
    }
}

/* Tabela Specyfikacji */
.project-specs-table-wrapper {
    width: 100%;
    margin: 0 auto;
}

.project-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.project-specs-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.project-specs-table td {
    padding: 14px 0;
    font-size: 15px;
    text-align: left;
}

.project-specs-table td.spec-label {
    width: 35%;
    color: #898989;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-specs-table td.spec-value {
    width: 85%;
    padding-left: 25px;
    color: #181b24;
    font-weight: 600;
}

.parallax-hero-wrapper {
    position: relative;
    width: 100%;
    height: 350px; /* Elegancka wysokość wizjera na komputerze */
    overflow: hidden;
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
}

.parallax-hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% auto !important; /* Idealne dopasowanie na desktopie */
    will-change: transform;
    z-index: -1;
}

/* Przywrócenie ustawień na telefonach (do 768px) */
@media (max-width: 768px) {
    .parallax-hero-wrapper {
        height: 100px; /* Niższy pasek dopasowany do ekranu smartfona */
    }

    .parallax-hero-bg {
        background-size: cover !important; /* Wypełnienie całego kadru bez pustych pasów */
        background-position: center center !important;
    }
}

/* Storytelling & Kreska pod Nagłówkami */
.story-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 52px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0e3557;
    margin-bottom: 10px;
}

.divider-left {
    background: #0e3557 none repeat scroll 0 0;
    display: block;
    height: 2px;
    width: 40px;
    margin-bottom: 25px;
}

.quote-text {
    font-style: italic;
    color: #5a6069;
    font-size: 15px;
    line-height: 26px;
    margin-bottom: 20px;
}

.story-content-block p {
    line-height: 28px;
    color: #666;
}

.story-image-block img {
    width: 100%;
}

/* Film Anamorficzny 1920x1012 */
.project-video-wrapper {
    width: 100%;
    aspect-ratio: 1920 / 1012;
    background-color: #000000;
    overflow: hidden;
}

.project-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   2. Sekcja Usług (.service-two-area)
   ========================================================================== */

.service-two-area {
    padding-top: 10px;
    padding-bottom: 100px;
    background-color: transparent;
}

/* Nagłówek Sekcji Usług */
.service-two-area .section-title-light h5 {
    color: #0e3557;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.service-two-area .section-title-light h3 {
    color: #181b24;
    font-family: "Bebas Neue", sans-serif;
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.service-two-area .section-title-light p {
    color: #64666b;
    font-size: 16px;
    line-height: 20px;
    max-width: 750px;
    margin: 0 auto;
}

/* Karta Usługi - PRZEZROCZYSTE TŁO */
.service-two-area .single-service {
    padding: 40px 25px 35px 25px;
    position: relative;
    background: transparent !important;
    box-shadow: none !important;
    transition: all 0.3s ease-in-out;
}

.service-two-area .single-service p {
    color: #5a6069;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 25px;
}

/* Link Owijający Ikonę i Nagłówek */
.service-two-area .service-title-link,
.service-two-area h5 a.service-title-link {
    display: inline-block;
    text-decoration: none;
    color: #64666b;
    transition: color 0.3s ease;
}

.service-two-area .single-service h5,
.service-two-area .single-service h5 a {
    color: #1c1c1c;
    font-family: "Bebas Neue", sans-serif;
    font-size: 22px;
    letter-spacing: 0px;
    margin-top: 15px;
    margin-bottom: 15px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.service-two-area .srv-icon {
    display: inline-block;
    margin-bottom: 5px;
}

/* WYGLĄD IKONY: Brak filtra w stanie zwykłym (używa Twojego oryginalnego koloru #1c1c1c) */
.service-two-area .srv-icon img {
    max-height: 50px;
    width: auto;
    filter: none !important;
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Hover Efekty - Nagłówek i Ikona zmieniają kolor na Granatowy (#0e3557) */
.service-two-area .single-service:hover h5,
.service-two-area .single-service:hover h5 a,
.service-two-area .service-title-link:hover h5,
.service-two-area .service-title-link:hover h5 a {
    color: #0e3557 !important;
}

/* Filtr ikony po najechaniu: Zmiana koloru na Granat + powiększenie */
.service-two-area .single-service:hover .srv-icon img,
.service-two-area .service-title-link:hover .srv-icon img {
    filter: invert(15%) sepia(82%) saturate(1638%) hue-rotate(185deg) brightness(67%) contrast(97%) !important;
    transform: scale(1.05);
}

/* Kreska Dzieląca w Kafelku */
.service-two-area .divider {
    background: #181b24;
    display: block;
    height: 2px;
    width: 35px;
    margin: 0 auto 20px auto;
}

/* ==========================================================================
   3. Uniwersalne Przyciski (.advertise-btn)
   ========================================================================== */

.advertise-btn {
    padding-top: 10px;
    padding-bottom: 0;
}

/* Stan Zwykły: Granatowe tło (#0e3557), Biały tekst (#ffffff) */
.advertise-btn a,
.cta-boxed-wrapper .advertise-btn a {
    background: #0e3557 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-block;
    font-family: "Bebas Neue", sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
    padding: 12px 28px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

/* Stan Hover: Szare tło (#d3cdc7), Granatowy tekst (#0e3557) */
.advertise-btn a:hover,
.cta-boxed-wrapper .advertise-btn a:hover {
    background: #d3cdc7 !important;
    color: #0e3557 !important;
}

@media (max-width: 576px) {
    /* Wyrównanie kontenera przycisku do lewej */
    .advertise-btn {
        text-align: center !important;
    }

    /* Zapewnienie, że sam link nie ma zewnętrznych marginesów centrujących */
    .advertise-btn a {
        display: inline-block !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}

/* ==========================================================================
   4. Full-Width Banery Kategorii z Fotografiami
   ========================================================================== */

.category-banner-card {
    position: relative;
    width: 100%;
    min-height: 220px;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

.category-banner-overlay {
    position: relative;
    width: 100%;
    min-height: 220px;
    background: linear-gradient(90deg, rgba(14, 53, 87, 0.94) 0%, rgba(24, 27, 36, 0.82) 100%);
    display: flex;
    align-items: center;
    padding: 35px 0;
}

.category-banner-overlay .container {
    position: relative;
    z-index: 2;
}

.cat-badge {
    font-family: "Bebas Neue", sans-serif;
    font-size: 15px;
    color: #d3cdc7;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.cat-banner-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 36px;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.1;
}

.cat-banner-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 22px;
    margin: 0;
    max-width: 650px;
}

.service-two-area .single-service:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   5. Poprawka Siatki i Obramowań (2 Kolumny Desktop)
   ========================================================================== */

.service-two-area .category-grid .single-service:after,
.service-two-area .single-service:after {
    display: none !important;
}

.service-two-area .category-grid [class*="col-"] {
    position: relative;
}

.service-two-area .category-grid .single-service {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    height: 100%;
}

@media (min-width: 769px) {
    .service-two-area .category-grid .col-lg-6:nth-child(even) .single-service {
        border-left: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    .service-two-area .category-grid .col-lg-6:nth-last-child(1) .single-service,
    .service-two-area .category-grid .col-lg-6:nth-last-child(2) .single-service {
        border-bottom: 0 none;
    }

    .service-two-area .category-grid .col-lg-6:nth-child(n+3) .single-service {
        padding-top: 45px;
    }
}

/* ==========================================================================
   6. Kompaktowa Kasetka CTA z Granatową Ramką
   ========================================================================== */

.advertise-area.ptb-50 {
    padding-top: 10px !important;
    padding-bottom: 20px !important;
    background: transparent;
}

.cta-boxed-wrapper {
    border: 1px solid #0e3557;
    padding: 20px 35px !important;
    background: rgba(14, 53, 87, 0.02);
    border-radius: 1px;
}

.cta-boxed-wrapper .cta-subtitle {
    color: #0e3557 !important;
    font-family: "Bebas Neue", sans-serif;
    font-size: 15px;
    font-weight: 300 !important;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 4px;
    text-align: left !important;
}

.cta-boxed-wrapper .cta-title {
    color: #0e3557;
    font-family: "Bebas Neue", sans-serif;
    font-size: 26px;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 10px;
    text-align: left !important;
}

.cta-boxed-wrapper .cta-desc {
    color: #5a6069;
    font-size: 14px;
    line-height: 20px;
    margin: 0 !important;
    text-align: left !important;
}

@media (min-width: 769px) {
    .cta-boxed-wrapper .cta-text-col {
        border-right: 1px solid rgba(14, 53, 87, 0.15);
        padding-right: 30px;
    }
}

/* ==========================================================================
   7. Podstrona Kontakt (Kreski, Formularz, Mapa)
   ========================================================================== */

.single-c-info {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 10px 15px !important;
}

.single-c-info .c-divider,
.c-divider {
    background: #d3cdc7 !important;
    height: 2px !important;
    width: 35px !important;
    margin-top: 12px !important;
    margin-bottom: 18px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

@media (min-width: 769px) {
    .contact-info-row > div {
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
    .contact-info-row > div:last-child {
        border-right: 0 none !important;
    }
}

.page-title-area h5 {
    color: #0e3557;
    font-family: "Bebas Neue", sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
}

.page-title-area h2 {
    color: #181b24;
    font-family: "Bebas Neue", sans-serif;
    font-size: 36px;
    letter-spacing: 1px;
}

.custom-form-input,
.contact-form-wrapper input,
.contact-form-wrapper textarea {
    width: 100%;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 2px;
    padding: 14px 18px;
    font-size: 14px;
    color: #181b24;
    outline: none;
    box-shadow: none !important;
}

.custom-form-input:focus,
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    border-color: #0e3557 !important;
}

.btn-send-message,
.contact-form-wrapper button[type="submit"] {
    background: #0e3557 !important;
    color: #ffffff !important;
    font-family: "Bebas Neue", sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 12px 32px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-send-message:hover,
.contact-form-wrapper button[type="submit"]:hover {
    background: #d3cdc7 !important;
    color: #0e3557 !important;
}

/* Wygląd mapy */
.google-map-area #gmap_canvas {
    width: 100%;
    filter: grayscale(80%) contrast(105%) brightness(95%);
    transition: filter 0.4s ease;
}

.google-map-area #gmap_canvas:hover {
    filter: grayscale(0%);
}

/* Ograniczenie szerokości kontenera podstrony kontaktowej */
.page-title-area .container,
.contact-area .container {
    max-width: 1140px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* ==========================================================================
   8. RWD / Stylowanie Mobilne
   ========================================================================== */

@media (max-width: 768px) {
     .parallax-hero-wrapper {
        height: 250px;
        clip-path: inset(0 0 0 0);
        -webkit-clip-path: inset(0 0 0 0); /* wsparcie dla iOS Safari */
    }
    
    .parallax-hero-bg {
        position: fixed !important; /* ZACHOWANIE EFEKTU NA TELEFONACH */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        -webkit-transform: translateZ(0); /* wymuszenie renderowania na GPU (płynność) */
        transform: translateZ(0);
    }

    .story-title {
        font-size: 34px;
    }

    .category-banner-card {
        min-height: auto;
    }
    
    .category-banner-overlay {
        min-height: auto;
        padding: 30px 15px;
    }

    .cat-badge {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .cat-banner-title {
        font-size: 26px;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .cat-banner-desc {
        font-size: 14px;
        line-height: 20px;
    }

    .service-two-area {
        padding-top: 10px;
        padding-bottom: 50px;
    }

    .service-two-area .single-service {
        padding: 30px 15px 25px 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-left: 0 none !important;
    }

    .service-two-area .category-grid .col-lg-6:last-child .single-service {
        border-bottom: 0 none !important;
    }

    .service-two-area .section-title-light h2 {
        font-size: 26px;
    }

    .cta-boxed-wrapper {
        padding: 25px 20px !important;
    }
    
    .cta-boxed-wrapper .cta-title {
        font-size: 22px;
    }
}

/* Nagłówek podstrony kontaktowej */
.page-title-area {
    padding-top: 30px !important; /* Zmniejszony górny padding */
    padding-bottom: 20px !important;
}

.page-title-area h3 {
    color: #181b24;
    font-family: "Bebas Neue", sans-serif;
    font-size: 34px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: left !important;
}

.page-title-area p {
    color: #5a6069;
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 20px;
    text-align: left !important;
}

/* Zmiana koloru font-ikon na podstronie kontaktowej na granat (#0e3557) */
.single-c-info .icon,
.single-c-info [class*="icon-"] {
    color: #1b4060 !important;
}

.single-c-info span:not(.icon) {
    font-size: 16px !important; /* Wpisz docelową wielkość */
    line-height: 24px !important;
    color: #1b4060 !important;
}

/* ==========================================================================
   Moduł linków wewnętrznych pod artykułem (Czysty styl retro)
   ========================================================================== */
.blog-footer-module {
    margin-top: 50px !important;
    padding-top: 30px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-links-subtitle {
    font-family: "Bebas Neue", sans-serif;
    font-size: 15px;
    letter-spacing: 2px;
    color: #0e3557;
    display: block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Pojedynczy wiersz linku - czysta linia oddzielająca */
.blog-related-item {
    padding: 12px 0 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
}

.blog-related-item .item-tag {
    font-family: "Bebas Neue", sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    color: #898989;
    display: block;
    margin-bottom: 2px;
}

.blog-related-item a.item-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 21px;
    letter-spacing: 0.5px;
    color: #181b24;
    text-decoration: none !important;
    display: inline-block;
    transition: color 0.3s ease;
}

.blog-related-item a.item-title:hover {
    color: #0e3557;
}

.blog-related-item .item-desc {
    font-size: 14px;
    line-height: 20px;
    color: #5a6069;
    margin: 4px 0 0 0;
}

/* ==========================================================================
   Odra Serwis - Naprawa dolnej sekcji realizacji & Wideo 800px
   ========================================================================== */

/* Wideo dopasowane do szerokości treści (z zachowaniem proporcji) */
.project-showcase-video {
    width: 100%;
    height: 100%;
    background-color: #000000;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.showcase-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .project-showcase-video {
        height: 500px;
    }
}

@media (max-width: 576px) {
    .project-showcase-video {
        height: 130%;
    }
}

/* Naprawa sekcji "Opieka dedykowana" */
.story-cta-clean .cta-subtitle {
    color: #0e3557 !important;
    font-family: "Bebas Neue", sans-serif;
    font-size: 15px;
    font-weight: 300 !important;
    letter-spacing: 2px;
    margin-bottom: 2px;
    display: inline-block;
}

@media (max-width: 576px) {
    .story-cta-clean .cta-subtitle {
        margin-top: 40px;
        margin-bottom: 5px;
    }
}

.story-cta-clean .cta-title {
    color: #181b24;
    font-family: "Bebas Neue", sans-serif;
    font-size: 32px;
    letter-spacing: 1px;
    margin-top: 5px;
    margin-bottom: 12px;
}

.story-cta-clean .cta-desc {
    color: #5a6069;
    font-size: 15px;
    line-height: 24px;
    max-width: 800px;
    margin: 0 auto;
}

/* Szara linia rozdzielająca #d3cdc7 */
.cta-divider-full {
    height: 1px;
    background: #d3cdc7 !important;
    width: 100%;
    display: block;
}

.mb-50 {
    margin-bottom: 50px;
}

/* Dolny pasek pod kreską */
.cta-action-text .cta-heading {
    font-family: "Bebas Neue", sans-serif;
    font-size: 24px;
    letter-spacing: 1px;
    color: #181b24;
    margin-top: 4px;
    margin-bottom: 5px;
}

.cta-action-text .cta-subdesc {
    font-size: 14px;
    line-height: 20px;
    color: #5a6069;
    margin: 0;
}

