/**
 * NBS System - Custom Styles
 * @package nbs-theme
 */

/* Global Styles - Zaokrąglone rogi dla wszystkich elementów */
body {
    font-size: 16px;
}

img,
.btn,
.btn-primary,
.btn-outline,
.btn-white,
.btn-footer,
.card,
.category-card,
.project-card,
.blog-card,
.testimonial-card,
.hero-section,
.hero-slide,
.hero-tag,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
.form-control {
    border-radius: 12px;
}

/* Reset dla strony głównej */
.page-template-front-page #main {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Blog (archiwa + single) - pełna szerokość jak pozostałe podstrony */
.blog #main,
.category #main,
.tag #main,
.search #main,
.archive #main,
.single-post #main {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Header Adjustments - Container */
#header .container-fluid {
    max-width: 1320px;
    margin: 0 auto;
}

#header.fixed-top {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* =========================================
   MENU & NAVIGATION STYLES
   ========================================= */

/* --- 1. Navbar Container & Toggler --- */
#header {
    transition: all 0.3s ease;
}

#header .container-fluid {
    padding-left: 30px;
    padding-right: 30px;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    border-radius: 0;
}

/* Hamburger Menu Icon Animation */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1050; /* Above the mobile menu overlay */
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: none !important; /* Remove default Bootstrap SVG */
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s ease-in-out;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s ease-in-out;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* Hamburger Active State (X shape) */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Override Bootstrap Active State Globally for Dropdown Items */
.dropdown-item.active,
.dropdown-item:active {
    background-color: transparent !important;
    background-image: none !important;
    color: #E87722 !important;
    text-decoration: none !important;
}

/* --- 2. Desktop Menu (min-width: 992px) --- */
@media (min-width: 992px) {
    .navbar-nav {
        align-items: center;
    }

    .navbar-nav .nav-item {
        margin-left: 15px;
        position: relative;
    }

    .navbar-nav .nav-link {
        font-size: 15px;
        font-weight: 500;
        color: #1a1a1a;
        padding: 10px 0;
        position: relative;
        transition: color 0.3s ease;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active,
    .navbar-nav .current-menu-item > .nav-link {
        color: #E87722;
    }

    /* Desktop Submenu */
    .dropdown-menu {
        display: block; /* Always block for animation, visibility toggles it */
        visibility: hidden;
        opacity: 0;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 260px;
        background: #fff;
        border: none;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        padding: 15px 0;
        transform: translateY(20px);
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        margin-top: 0;
    }

    .nav-item.dropdown:hover .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .dropdown-item {
        font-size: 14px;
        padding: 10px 25px;
        color: #555;
        font-weight: 400;
        transition: all 0.2s ease;
        white-space: normal; /* Allow wrapping if needed */
    }

    .dropdown-item:hover,
    .dropdown-item:active,
    .dropdown-item.active {
        background-color: transparent !important;
        background-image: none !important;
        color: #E87722 !important;
        transform: translateX(5px);
    }

    /* Hide mobile toggle buttons on desktop */
    .submenu-toggle {
        display: none;
    }

    /* Caret rotation on hover */
    .nav-link .caret {
        display: inline-block;
        margin-left: 5px;
        vertical-align: 2px;
        border-top: 4px solid;
        border-right: 4px solid transparent;
        border-left: 4px solid transparent;
        transition: transform 0.3s ease;
    }

    .nav-item.dropdown:hover .nav-link .caret {
        transform: rotate(180deg);
    }
}

/* --- 3. Mobile Menu (max-width: 991px) --- */
@media (max-width: 991px) {
    /* Full Screen Overlay */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        z-index: 1040;
        padding: 80px 30px 40px; /* Space for header */
        overflow-y: auto;
        display: block !important; /* Override Bootstrap collapse display:none */
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        visibility: visible;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .navbar-nav {
        width: 100%;
        text-align: left;
    }

    .navbar-nav .nav-item {
        margin-bottom: 0;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start; /* Align items to the left */
        align-items: center;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    /* Staggered Animation for Links */
    .navbar-nav .nav-item {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: 0s;
    }

    .navbar-collapse.show .navbar-nav .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger delays manually for up to 10 items */
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(5) { transition-delay: 0.3s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(6) { transition-delay: 0.35s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(7) { transition-delay: 0.4s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(8) { transition-delay: 0.45s; }

    /* Mobile Links */
    .navbar-nav .nav-link {
        font-size: 22px;
        font-weight: 600;
        color: #1a1a1a;
        padding: 20px 0;
        width: auto; /* Allow auto width */
        flex-grow: 1; /* Take available space */
        text-align: left; /* Ensure text is left aligned */
    }

    .navbar-nav .nav-link.parent-link {
        width: auto; /* Allow space for toggle button */
        flex-grow: 1;
        text-align: left;
        padding-left: 0;
    }

    /* Mobile Submenu Toggle Button */
    .submenu-toggle {
        background: transparent;
        border: 1px solid #eee; /* Delikatna ramka */
        border-radius: 50%; /* Okrągły kształt */
        width: 40px; /* Zmniejszona szerokość */
        height: 40px; /* Zmniejszona wysokość */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px; /* Mniejsza strzałka */
        color: #E87722;
        transition: all 0.3s ease;
        margin-left: auto; /* Push to the right edge */
    }

    .submenu-toggle:hover {
        background-color: #f8f8f8;
    }

    /* Dodanie strzałki CSS jeśli brakuje w HTML */
    .submenu-toggle::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid currentColor;
        transition: transform 0.3s ease;
    }

    /* Ukrycie ewentualnego span caret wewnątrz buttona, jeśli jest, by użyć ::after */
    .submenu-toggle .caret {
        display: none;
    }

    .submenu-toggle[aria-expanded="true"] {
        transform: none; /* Reset rotacji całego przycisku */
        background-color: #E87722;
        color: #fff;
        border-color: #E87722;
    }

    .submenu-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }

    /* Mobile Submenu */
    .dropdown-menu {
        display: none; /* Hidden by default on mobile */
        width: 100%;
        background: #f9f9f9;
        border: none;
        border-radius: 8px;
        padding: 10px 0;
        margin-top: 0;
        box-shadow: none;
        text-align: left;
    }

    .dropdown-menu.show {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .dropdown-item {
        padding: 12px 20px;
        font-size: 16px;
        color: #555;
        border-bottom: 1px solid #eee;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Hide default caret in link text on mobile since we have a button */
    .nav-link .caret {
        display: none;
    }
}

/* Hero Section - Slider */
.hero-section {
    position: relative;
    margin: 40px auto 80px;
    max-width: 1320px;
    overflow: hidden;
    border-radius: 16px;
}

.hero-slider {
    position: relative;
}

.hero-slide {
    position: relative;
    height: 650px;
    background-size: cover;
    background-position: center;
    display: flex !important;
    align-items: center;
    border-radius: 16px;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    padding: 0 60px;
    z-index: 2;
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background-color: #E87722;
    color: white;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: lowercase;
    border-radius: 8px;
}

.hero-title {
    color: white;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 70%;
}

.hero-subtitle {
    color: white;
    font-size: 18px;
    line-height: 1.6;
    margin: 20px 0 30px;
    max-width: 50%;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-button-wrapper {
    margin-top: 30px;
}

/* Slick Slider Arrows - Hero */
.hero-slider .slick-prev,
.hero-slider .slick-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    z-index: 10;
    transition: all 0.3s ease;
}

.hero-slider .slick-prev:hover,
.hero-slider .slick-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-slider .slick-prev {
    left: 20px;
}

.hero-slider .slick-next {
    right: 20px;
}

.hero-slider .slick-prev:before,
.hero-slider .slick-next:before {
    display: none;
}

.hero-slider .slick-prev svg,
.hero-slider .slick-next svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* About Section */
.about-section {
    padding: 60px 0 80px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
    color: #1a1a1a;
}

.about-text {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: #E87722;
    color: white !important;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #E87722;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 10px;
}

.btn-primary:hover {
    background-color: #d66a1a;
    border-color: #d66a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 119, 34, 0.3);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #E87722 !important;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #E87722;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 10px;
}

.btn-outline:hover {
    background-color: #E87722;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 119, 34, 0.3);
}

.btn-white {
    display: inline-block;
    background-color: white;
    color: #E87722 !important;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 10px;
}

.btn-white:hover {
    background-color: transparent;
    color: white !important;
    border-color: white;
    transform: translateY(-2px);
}

/* Category Grid - Repeater ACF */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    height: 200px;
    transition: transform 0.3s ease;
}

/* Schodkowy efekt - każdy kolejny element niżej */
/* Pierwszy rząd (3 kolumny) - 15, 30, 45 */
.category-card:nth-child(1) {
    margin-top: 15px;
}

.category-card:nth-child(2) {
    margin-top: 30px;
}

.category-card:nth-child(3) {
    margin-top: 45px;
}

/* Drugi rząd (3 kolumny) - powtarzamy wzór 15, 30, 45 */
.category-card:nth-child(4) {
    margin-top: 15px;
}

.category-card:nth-child(5) {
    margin-top: 30px;
}

.category-card:nth-child(6) {
    margin-top: 45px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
}

.category-overlay h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

/* Icon Section */
.icon-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.icon-section .section-title-center {
    margin-bottom: 15px;
}

.icon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.icon-item {
    width: calc(25% - 23px);
    text-align: center;
    margin-bottom: 30px;
}

.icon-image img {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.icon-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.icon-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.icon-desc p {
    margin-bottom: 0;
}

.section-description {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    line-height: 1.7;
    color: #666;
}

/* Partners Section */
.partners-section {
    padding: 80px 0;
    background-color: #fff;
}

.partners-slider {
    position: relative;
    padding: 0 50px;
}

.partner-slide {
    padding: 0 15px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100px;
    outline: none;
}

.partner-slide img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    opacity: 0.7;
    border-radius: 0;
}

.partner-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Slick Slider Arrows - Partners */
.partners-slider .slick-prev,
.partners-slider .slick-next {
    width: 40px;
    height: 40px;
    background: #E87722;
    border-radius: 8px;
    z-index: 10;
    transition: all 0.3s ease;
}

.partners-slider .slick-prev:hover,
.partners-slider .slick-next:hover {
    background: #d66a1a;
}

.partners-slider .slick-prev {
    left: -20px;
}

.partners-slider .slick-next {
    right: -20px;
}

.partners-slider .slick-prev:before,
.partners-slider .slick-next:before {
    display: none;
}

.partners-slider .slick-prev svg,
.partners-slider .slick-next svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Projects Section - Custom Post Type */
.projects-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.section-title-center {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.projects-slider {
    position: relative;
    padding: 0 50px;
}

.projects-slider .slick-list {
    padding-top: 10px;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0 15px;
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.project-image-wrapper {
    position: relative;
}

.project-title-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 5;
}

.project-title-overlay h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.project-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #E87722;
    color: white;
    padding: 6px 15px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    z-index: 10;
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-content {
    padding: 20px;
}

.project-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* Slick Slider Arrows - Projects */
.projects-slider .slick-prev,
.projects-slider .slick-next {
    width: 40px;
    height: 40px;
    background: #E87722;
    border-radius: 8px;
    z-index: 10;
    transition: all 0.3s ease;
}

.projects-slider .slick-prev:hover,
.projects-slider .slick-next:hover {
    background: #d66a1a;
}

.projects-slider .slick-prev {
    left: -50px;
}

.projects-slider .slick-next {
    right: -50px;
}

.projects-slider .slick-prev:before,
.projects-slider .slick-next:before {
    display: none;
}

.projects-slider .slick-prev svg,
.projects-slider .slick-next svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* CTA Section */
.cta-section {
    background-color: #E87722;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Testimonials Section - Slider */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.testimonials-header .section-title {
    margin-bottom: 0;
}

.btn-testimonials {
    font-size: 12px;
    padding: 8px 16px;
    background-color: #ffffff;
    color: #ccc !important;
    border-color: #ccc;
}

.btn-testimonials:hover {
    color: #E87722 !important;
    border-color: #E87722;
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 119, 34, 0.2);
}

.testimonials-wrapper {
    position: relative;
}

.testimonials-slider {
    position: relative;
    padding: 0 60px;
    margin: 0 -15px;
}

.testimonial-slide {
    outline: none;
    padding: 0 15px;
}

.testimonials-slider .slick-slide:first-child {
    padding-left: 0;
}

.testimonials-slider .slick-slide:last-child {
    padding-right: 0;
}

.testimonial-card {
    background: #f8f8f8;
    padding: 35px;
    border-radius: 12px;
    margin-bottom: 0;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 25px;
}

.testimonial-author {
    font-size: 14px;
}

.testimonial-author strong {
    color: #1a1a1a;
    font-weight: 600;
}

.testimonial-author span {
    color: #999;
}

.testimonial-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Slick Slider Arrows - Testimonials */
.testimonials-slider .slick-prev,
.testimonials-slider .slick-next {
    width: 30px;
    height: 30px;
    background: #E87722;
    border-radius: 10px;
    z-index: 10;
    transition: all 0.3s ease;
}

.testimonials-slider .slick-prev:hover,
.testimonials-slider .slick-next:hover {
    background: #d66a1a;
}

.testimonials-slider .slick-prev {
    left: 10px;
}

.testimonials-slider .slick-next {
    right: 10px;
}

.testimonials-slider .slick-prev:before,
.testimonials-slider .slick-next:before {
    display: none;
}

.testimonials-slider .slick-prev svg,
.testimonials-slider .slick-next svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Footer Styles */
#footer {
    background-color: #1a1a1a;
    color: #ffffff;
}

.footer-logo img {
    border-radius: 0;
}

.footer-content {
    padding: 60px 0 40px;
}

.footer-content .container {
    max-width: 1320px;
}

.footer-brand {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-brand strong {
    font-weight: 700;
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 25px;
}

.btn-footer {
    display: inline-block;
    background-color: transparent;
    color: white !important;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border: 2px solid white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 10px;
}

.btn-footer:hover {
    background-color: white;
    color: #1a1a1a !important;
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #E87722;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: #E87722;
}

.footer-bottom {
    background-color: #0f0f0f;
    padding: 20px 0;
    border-top: 1px solid #333;
}

.footer-bottom .container {
    max-width: 1320px;
}

.copyright {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.copyright a {
    color: #999;
    text-decoration: none;
}

.copyright a:hover {
    color: #E87722;
}

.footer-menu-inline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-menu-inline li {
    display: inline-block;
}

.footer-menu-inline a {
    color: #999;
    text-decoration: none;
    font-size: 12px;
}

.footer-menu-inline a:hover {
    color: #E87722;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}

.mt-4 {
    margin-top: 30px;
}

.mb-4 {
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1199px) {
    .projects-slider {
        padding: 0 30px;
    }

    .projects-slider .slick-prev {
        left: -30px;
    }

    .projects-slider .slick-next {
        right: -30px;
    }

    .testimonials-slider {
        padding: 0 40px;
    }

    .testimonials-slider .slick-prev {
        left: 10px;
    }

    .testimonials-slider .slick-next {
        right: 10px;
    }

    .testimonials-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .testimonials-header .btn-testimonials {
        align-self: flex-end;
    }
}

@media (max-width: 991px) {
    .hero-slide {
        height: 550px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
        max-width: 80%;
    }

    .hero-content {
        padding: 0 40px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tablet - schodki dla 2 kolumn: 15,30 | 15,30 | 15,30 */
    .category-card:nth-child(1) {
        margin-top: 15px;
    }

    .category-card:nth-child(2) {
        margin-top: 30px;
    }

    .category-card:nth-child(3) {
        margin-top: 15px;
    }

    .category-card:nth-child(4) {
        margin-top: 30px;
    }

    .category-card:nth-child(5) {
        margin-top: 15px;
    }

    .category-card:nth-child(6) {
        margin-top: 30px;
    }

    .projects-slider {
        padding: 0 20px;
    }

    .projects-slider .slick-prev,
    .projects-slider .slick-next {
        width: 35px;
        height: 35px;
    }

    .projects-slider .slick-prev {
        left: -20px;
    }

    .projects-slider .slick-next {
        right: -20px;
    }

    .testimonials-slider {
        padding: 0;
    }

    .footer-content {
        padding: 40px 0 30px;
    }

    .icon-item {
        width: calc(50% - 15px);
    }
}

@media (max-width: 767px) {
    .hero-section {
        margin: 20px auto 40px;
        border-radius: 12px;
    }

    .hero-slide {
        height: 500px;
        border-radius: 12px;
    }

    .hero-content {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 28px;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 16px;
        max-width: 100%;
        margin: 15px 0 25px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-title-center {
        font-size: 28px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile - reset wszystkich schodków */
    .category-card:nth-child(2),
    .category-card:nth-child(3),
    .category-card:nth-child(4),
    .category-card:nth-child(5),
    .category-card:nth-child(6) {
        margin-top: 0;
    }

    .cta-title {
        font-size: 24px;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-menu-inline {
        justify-content: center;
        margin-top: 15px;
    }
}

/* ACF WYSIWYG Content Styling */
.acf-wysiwyg-content {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

.acf-wysiwyg-content p {
    margin-bottom: 1em;
}

.acf-wysiwyg-content h2,
.acf-wysiwyg-content h3,
.acf-wysiwyg-content h4 {
    color: #1a1a1a;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.acf-wysiwyg-content ul,
.acf-wysiwyg-content ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.acf-wysiwyg-content a {
    color: #E87722;
    text-decoration: none;
}

.acf-wysiwyg-content a:hover {
    text-decoration: underline;
}

/* Bramy Garażowe - Podstrona */
.page-template-page-bramy-garazowe #main {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.section-spacing {
    padding: 70px 0;
}

.garage-hero {
    position: relative;
    margin: 40px auto 0;
    max-width: 1320px;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.garage-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.garage-hero .container {
    position: relative;
    z-index: 2;
    padding-left: 30px;
    padding-right: 30px;
}

.garage-breadcrumbs {
    margin-bottom: 10px;
}

.garage-breadcrumbs #breadcrumbs {
    margin: 0;
    color: #fff;
    font-size: 13px;
}

.garage-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.garage-breadcrumbs a:hover {
    text-decoration: underline;
}

.garage-hero-title {
    color: white;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    margin: 0;
}

.garage-hero-subtitle,
.product-hero-subtitle {
    display: block;
    color: white;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 10px 0 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.garage-section-title {
    margin-bottom: 20px;
}

.garage-section-title-center {
    text-align: center;
    margin-bottom: 40px;
}

.garage-intro-text {
    max-width: 900px;
    margin-bottom: 35px;
}

.garage-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.garage-product-card {
    position: relative;
    display: block;
    min-height: 250px;
    background-color: #f2f2f2;
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.garage-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.garage-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.garage-product-overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.garage-product-tag {
    display: inline-block;
    width: fit-content;
    background-color: #E87722;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 10px;
}

.garage-product-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
}

.garage-product-card p {
    margin: 0;
    font-size: 13px;
    color: #f2f2f2;
}

.garage-feature {
    background: #f5f5f5;
}

.garage-feature-text {
    margin-bottom: 20px;
}

.garage-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.garage-feature-list li {
    margin-bottom: 16px;
}

.garage-feature-list strong {
    display: block;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.garage-feature-list p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.garage-feature-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.garage-realizations {
    background: #f8f8f8;
}

.garage-realizations-slider {
    position: relative;
    padding: 0 40px;
}

.garage-realizations-slider .project-card {
    margin: 0 10px;
}

.garage-realizations-slider .project-card img {
    height: 170px;
}

.garage-realizations-slider .slick-prev,
.garage-realizations-slider .slick-next {
    width: 40px;
    height: 40px;
    background: #E87722;
    border-radius: 8px;
    z-index: 10;
    transition: all 0.3s ease;
}

.garage-realizations-slider .slick-prev:hover,
.garage-realizations-slider .slick-next:hover {
    background: #d66a1a;
}

.garage-realizations-slider .slick-prev {
    left: -45px;
}

.garage-realizations-slider .slick-next {
    right: -45px;
}

.garage-realizations-slider .slick-prev:before,
.garage-realizations-slider .slick-next:before {
    display: none;
}

.garage-realizations-slider .slick-prev svg,
.garage-realizations-slider .slick-next svg {
    width: 20px;
    height: 20px;
    color: white;
}

.garage-cta-faq .garage-faq-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.garage-cta-faq .garage-faq-image .btn-white {
    color: #E87722 !important;
    background: white;
    border-color: white;
}

.garage-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #e5e5e5;
}

.garage-accordion .accordion-button {
    padding: 14px 0;
    font-weight: 600;
    box-shadow: none;
    background: transparent;
    color: #1a1a1a;
}

.garage-accordion .accordion-button:not(.collapsed) {
    color: #E87722;
    background: transparent;
}

.garage-accordion .accordion-body {
    padding: 0 0 16px;
    color: #666;
}

.garage-accordion .accordion-button::after {
    filter: brightness(0.1);
}

.garage-bottom-cta {
    background: #E87722;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.garage-bottom-cta-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.garage-bottom-cta-text {
    max-width: 740px;
    margin: 0 auto 18px;
}

.garage-bottom-cta .btn-white {
    color: #E87722 !important;
    background: white;
    border-color: white;
}

/* Podstrona produktowa */
.page-template-page-produkt #main {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.product-hero {
    position: relative;
    margin: 40px auto 0;
    max-width: 1320px;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.product-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.product-hero .container {
    position: relative;
    z-index: 2;
    padding-left: 30px;
    padding-right: 30px;
}

.product-breadcrumbs {
    margin-bottom: 12px;
}

.product-breadcrumbs #breadcrumbs {
    margin: 0;
    color: #fff;
    font-size: 13px;
}

.product-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.product-breadcrumbs a:hover {
    text-decoration: underline;
}

.product-hero-title {
    color: white;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    margin: 0;
}

.product-intro-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.product-details {
    background: #f8f8f8;
}

.product-color-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.product-color-list:not(.is-expanded) .product-color-item--more {
    display: none;
}

.product-color-show-more {
    margin-top: 10px;
}

.product-colors-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 16px;
    background: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 8px;
}

.product-colors-info-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
    color: #495057;
    background: #dee2e6;
    border-radius: 50%;
}

.product-colors-info-text {
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.product-colors-info-text p:last-child {
    margin-bottom: 0;
}

.product-color-item {
    text-align: center;
}

.product-color-swatch {
    position: relative;
    width: 78px;
    height: 78px;
    margin: 0 auto 8px;
}

.product-color-dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: #ddd;
}

.product-color-preview {
    position: absolute;
    left: 50%;
    top: -14px;
    transform: translate(-50%, -100%);
    width: 210px;
    height: 150px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
}

.product-color-preview.no-image {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    border: 2px solid #fff;
}

.product-color-swatch:hover .product-color-preview {
    opacity: 1;
    visibility: visible;
}

.product-color-name {
    display: block;
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
}

.product-downloads h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.download-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    color: #1a1a1a;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-item a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.download-meta strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.download-meta p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.download-icon {
    font-size: 18px;
    color: #E87722;
}

.product-spec-table {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.product-spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
}

.product-spec-row:last-child {
    border-bottom: none;
}

.product-spec-label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
}

.product-spec-value {
    text-align: right;
    color: #666;
    font-size: 13px;
}

.product-realizations {
    background: #fff;
}

.product-realizations-slider {
    position: relative;
    padding: 0 40px;
}

.product-realizations-slider .project-card {
    margin: 0 10px;
}

.product-realizations-slider .project-card img {
    height: 170px;
}

.product-realizations-slider .slick-prev,
.product-realizations-slider .slick-next {
    width: 40px;
    height: 40px;
    background: #E87722;
    border-radius: 8px;
    z-index: 10;
    transition: all 0.3s ease;
}

.product-realizations-slider .slick-prev:hover,
.product-realizations-slider .slick-next:hover {
    background: #d66a1a;
}

.product-realizations-slider .slick-prev {
    left: -45px;
}

.product-realizations-slider .slick-next {
    right: -45px;
}

.product-realizations-slider .slick-prev:before,
.product-realizations-slider .slick-next:before {
    display: none;
}

.product-realizations-slider .slick-prev svg,
.product-realizations-slider .slick-next svg {
    width: 20px;
    height: 20px;
    color: white;
}

.product-feature-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.product-faq-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.product-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #e5e5e5;
}

.product-accordion .accordion-button {
    padding: 14px 0;
    font-weight: 600;
    box-shadow: none;
    background: transparent;
    color: #1a1a1a;
}

.product-accordion .accordion-button:not(.collapsed) {
    color: #E87722;
    background: transparent;
}

.product-accordion .accordion-body {
    padding: 0 0 16px;
    color: #666;
}

.product-accordion .accordion-button::after {
    filter: brightness(0.1);
}

.product-bottom-cta {
    background: #E87722;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.product-bottom-cta-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-bottom-cta-text {
    max-width: 740px;
    margin: 0 auto 18px;
}

.product-bottom-cta .btn-white {
    color: #E87722 !important;
    background: white;
    border-color: white;
}

@media (max-width: 1200px) {
    .product-color-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-hero {
        height: 300px;
    }
}

@media (max-width: 992px) {
    .product-color-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-hero {
        height: 260px;
    }

    .product-spec-row {
        grid-template-columns: 1fr;
        row-gap: 6px;
    }

    .product-spec-value {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .product-color-list {
        grid-template-columns: 1fr;
        justify-items: flex-start;
    }

    .product-hero {
        margin: 20px auto 0;
        height: auto;
        padding: 15px 0px;
    }

    .product-realizations-slider {
        padding: 0 10px;
    }

    .product-realizations-slider .slick-prev,
    .product-realizations-slider .slick-next {
        display: none !important;
    }
}

/* Podstrona Kontakt */
.page-template-page-kontakt #main {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.contact-hero {
    position: relative;
    margin: 40px auto 0;
    max-width: 1320px;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.contact-hero .container {
    position: relative;
    z-index: 2;
    padding-left: 30px;
    padding-right: 30px;
}

.contact-breadcrumbs {
    margin-bottom: 10px;
}

.contact-breadcrumbs #breadcrumbs {
    margin: 0;
    color: #fff;
    font-size: 13px;
}

.contact-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.contact-breadcrumbs a:hover {
    text-decoration: underline;
}

.contact-hero-title {
    color: white;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    margin: 0 0 6px;
}

.contact-hero-subtitle {
    color: #f5f5f5;
    margin: 0;
}

.contact-intro-text {
    max-width: 960px;
    margin: 0 auto 35px;
}

.contact-intro.section-spacing {
    padding: 40px 0;
}

.contact-card-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid #ededed;
    padding-bottom: 16px;
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f4f4f4;
    display: grid;
    place-items: center;
}

.contact-card-icon img {
    max-width: 26px;
    max-height: 26px;
    border-radius: 0;
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.contact-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-card-list li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 6px;
    font-size: 14px;
}

.contact-card-list .label {
    color: #999;
}

.contact-card-list .value a {
    color: #E87722;
    text-decoration: none;
}

.contact-card-list .value a:hover {
    text-decoration: underline;
}

.contact-card-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 13px;
    color: #E87722;
    text-decoration: none;
}

.contact-card-link:hover {
    text-decoration: underline;
}

.contact-form-map {
    background: #f8f8f8;
}

.contact-form-card,
.contact-map-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-form-card-grey {
    background: #f2f2f2;
    box-shadow: none;
}

.contact-form-note {
    color: #666;
    margin-bottom: 15px;
}

.contact-map-embed {
    position: relative;
    padding-bottom: 60%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.contact-map-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-map-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.contact-map-full {
    background: #fff;
    padding: 50px 0 70px;
}

.contact-bottom-cta {
    background: #E87722;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.contact-bottom-cta-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-bottom-cta-text {
    max-width: 740px;
    margin: 0 auto 18px;
}

.contact-bottom-cta .btn-white {
    color: #E87722 !important;
    background: white;
    border-color: white;
}

@media (max-width: 1200px) {
    .contact-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-hero {
        height: 300px;
    }
}

@media (max-width: 992px) {
    .contact-card-list li {
        grid-template-columns: 1fr;
    }

    .contact-hero {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .contact-card-grid {
        grid-template-columns: 1fr;
    }

.contact-hero {
        margin: 20px auto 40px;
        height: 220px;
    }
}

/* Realizacje */
.realizacje-hero {
    padding: 0;
}

.realizacje-hero-bg {
    background-image: url('https://nbs.visiolab/wp-content/uploads/2025/11/slider-hero-home.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    margin: 40px auto 0;
    max-width: 1320px;
    position: relative;
    height: 260px;
    display: flex;
    align-items: center;
}

.realizacje-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.35) 100%);
}

.realizacje-hero-bg .container {
    position: relative;
    z-index: 2;
    padding-left: 30px;
    padding-right: 30px;
}

.realizacje-hero > .container {
    padding-top: 20px;
}

.post-type-archive-realizacje #main,
.tax-kategoria-realizacji #main,
.tax-tagi-realizacji #main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

.realizacje-hero .section-title {
    margin-bottom: 18px;
    color: #fff;
}

.realizacje-hero .realizacja-breadcrumbs {
    margin-bottom: 8px;
}

.realizacje-hero .realizacja-breadcrumbs #breadcrumbs {
    margin: 0;
    color: #f2f2f2;
    font-size: 13px;
}

.realizacje-hero .realizacja-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.realizacje-hero .realizacja-breadcrumbs a:hover {
    text-decoration: underline;
}

.realizacje-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.realizacje-filters .filter-btn {
    background: #f2f2f2;
    border: 1px solid #e5e5e5;
    color: #1a1a1a;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.realizacje-filters .filter-btn.active,
.realizacje-filters .filter-btn:hover {
    background: #E87722;
    color: #fff;
    border-color: #E87722;
}

.realizacje-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.realizacja-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.realizacja-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.realizacja-image {
    position: relative;
}

.realizacja-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.realizacja-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #E87722;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
}

.realizacja-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.realizacja-card:hover .realizacja-hover {
    opacity: 1;
}

.realizacja-hover h3 {
    color: #fff;
    margin: 0;
    font-size: 16px;
}

.realizacje-loadmore {
    margin-top: 30px;
}

.realizacje-loadmore .btn-outline.loading {
    opacity: 0.7;
    pointer-events: none;
}

.realizacja-hero {
    padding: 0;
}

.realizacja-hero-bg {
    background-image: url('https://nbs.visiolab/wp-content/uploads/2025/11/slider-hero-home.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    margin: 40px auto 0;
    max-width: 1320px;
    position: relative;
    height: 260px;
    display: flex;
    align-items: center;
}

.realizacja-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.35) 100%);
}

.realizacja-hero-bg .container {
    position: relative;
    z-index: 2;
}

.realizacja-hero .realizacja-breadcrumbs {
    margin-bottom: 10px;
}

.realizacja-hero .realizacja-breadcrumbs #breadcrumbs {
    margin: 0;
    color: #f2f2f2;
    font-size: 13px;
}

.realizacja-hero .realizacja-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.realizacja-hero .realizacja-breadcrumbs a:hover {
    text-decoration: underline;
}

.realizacja-hero .section-title {
    margin-bottom: 0;
    color: #fff;
}

.realizacja-single .section-title {
    margin-bottom: 18px;
}

.realizacja-meta {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
}

.realizacja-meta-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    gap: 10px;
    font-size: 14px;
    position: relative;
    padding-left: 16px;
}

.meta-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E87722;
}

.meta-label {
    color: #999;
    min-width: 110px;
}

.meta-value {
    color: #1a1a1a;
    font-weight: 600;
}

.realizacja-main-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.realizacja-gallery {
    margin-top: 40px;
}

.realizacja-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.realizacja-gallery-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
}

.realizacja-bottom-cta {
    background: #E87722;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.realizacja-related {
    padding-top: 10px;
    padding-bottom: 20px;
}

.realizacja-bottom-cta-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.realizacja-bottom-cta-text {
    max-width: 740px;
    margin: 0 auto 18px;
}

.realizacja-bottom-cta .btn-white {
    color: #E87722 !important;
    background: white;
    border-color: white;
}

/* Strona treściowa */
.page-template-page-tresciowa #main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

.content-hero {
    padding: 0;
}

.content-hero-bg {
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    margin: 40px auto 0;
    max-width: 1320px;
    position: relative;
    display: flex;
    align-items: center;
    height: 260px;
}

.content-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.35) 100%);
}

.content-hero-bg .container {
    position: relative;
    z-index: 2;
    padding-left: 30px;
    padding-right: 30px;
}

.content-breadcrumbs {
    margin-bottom: 8px;
}

.content-breadcrumbs #breadcrumbs {
    margin: 0;
    color: #f2f2f2;
    font-size: 13px;
}

.content-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.content-breadcrumbs a:hover {
    text-decoration: underline;
}

.content-hero .section-title {
    color: #fff;
    margin-bottom: 6px;
}

.content-hero-subtitle {
    color: #f8f8f8;
    margin: 0;
}

.content-text-image .section-title {
    margin-bottom: 18px;
}

.content-text-image-figure img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.content-gallery {
    background: #fff;
}

.content-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.content-gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.content-cta {
    background: #E87722;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.content-cta-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.content-cta-text {
    max-width: 740px;
    margin: 0 auto 18px;
}

.content-icons-subtitle {
    max-width: 800px;
    margin: 0 auto 12px;
    text-align: center;
    color: #666;
}

.content-icons-row {
    margin-top: 20px;
}

.content-icon-card {
    padding: 18px;
}

.content-icon-image img {
    max-width: 72px;
    max-height: 72px;
    margin-bottom: 10px;
}

.content-icon-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.content-icon-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .content-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .content-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-gallery-grid {
        grid-template-columns: 1fr;
    }

    .content-hero-bg {
        margin: 20px auto 40px;
    }
}
/* Blog */
.blog-hero { padding: 0; }
.post-hero { padding: 0 0 30px; }

.blog-hero-bg {
    background-image: url('https://nbs.visiolab/wp-content/uploads/2025/11/slider-hero-home.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    margin: 40px auto 0;
    max-width: 1320px;
    position: relative;
    height: 260px;
    display: flex;
    align-items: center;
}

.post-hero-bg {
    background-image: url('https://nbs.visiolab/wp-content/uploads/2025/11/slider-hero-home.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    background-repeat: no-repeat;
    padding: 40px 0;
    margin: 40px auto 20px;
    max-width: 1320px;
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
}

.blog-hero-bg::after,
.post-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.35) 100%);
}

.blog-hero-bg .container,
.post-hero-bg .container {
    position: relative;
    z-index: 2;
    padding-left: 30px;
    padding-right: 30px;
}

.realizacja-hero-bg .container {
    padding-left: 30px;
    padding-right: 30px;
}

.blog-hero .section-title,
.post-hero .section-title {
    color: #fff;
    margin-bottom: 6px;
}

.blog-breadcrumbs {
    margin-bottom: 8px;
}

.blog-breadcrumbs #breadcrumbs {
    margin: 0;
    color: #f2f2f2;
    font-size: 13px;
}

.blog-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.blog-breadcrumbs a:hover {
    text-decoration: underline;
}

.post-hero-tag {
    display: inline-block;
    background: #E87722;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    margin-bottom: 12px;
}

.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f2f2f2;
}

.post-hero-date {
    font-size: 13px;
}

.post-single.section-spacing {
    padding-top: 10px;
}

.blog-archive {
    background: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.blog-card-image {
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #E87722;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
}

.blog-card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
    opacity: 1;
    transition: opacity 0.25s ease;
}

.blog-card-hover h3 {
    color: #fff;
    margin: 0;
    font-size: 16px;
}

.blog-card-body {
    padding: 16px;
    background: #fff;
}

.blog-card-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 6px;
}

.blog-card-excerpt {
    margin: 0;
    color: #444;
    font-size: 14px;
}

.blog-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.blog-pagination .page-numbers {
    display: inline-block;
    margin: 0 6px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f2f2f2;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: #E87722;
    color: #fff;
}

.post-single .post-content {
    background: #fff;
    padding: 10px 0;
}

.post-tags {
    margin-top: 20px;
}

.post-tags .tag-title {
    font-weight: 700;
    margin-right: 6px;
}

.post-tags a {
    display: inline-block;
    background: #f2f2f2;
    color: #E87722;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    margin-right: 6px;
}

.post-tags a:hover {
    background: #E87722;
    color: #fff;
}

.post-nav {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.post-nav-link {
    display: block;
    padding: 16px;
    border-radius: 12px;
    background: #f8f8f8;
    color: #1a1a1a;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.post-nav-link .nav-label {
    display: block;
    color: #999;
    font-size: 12px;
    margin-bottom: 4px;
}

.post-nav-link strong {
    display: block;
    font-size: 15px;
    line-height: 1.4;
}

.post-nav-link.prev {
    text-align: left;
}

.post-nav-link.next {
    text-align: right;
}

@media (max-width: 768px) {
    .post-nav {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .blog-card-image img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero-bg { margin: 20px auto 40px; }
    .post-hero-bg { margin: 20px auto 20px; }
}

@media (max-width: 1200px) {
    .content-hero-bg,
    .blog-hero-bg,
    .realizacje-hero-bg,
    .realizacja-hero-bg {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .content-hero-bg,
    .blog-hero-bg,
    .realizacje-hero-bg,
    .realizacja-hero-bg {
        height: 220px;
    }

    .realizacje-hero-bg,
    .realizacja-hero-bg {
        margin: 20px auto 40px;
    }

    .realizacje-hero > .container {
        padding-top: 0;
    }
}
@media (max-width: 1200px) {
    .realizacje-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .realizacja-image img {
        height: 220px;
    }

    .realizacja-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .realizacje-grid {
        grid-template-columns: 1fr;
    }

    .realizacja-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .garage-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .garage-hero {
        height: 300px;
    }
}

@media (max-width: 992px) {
    .garage-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .garage-hero {
        height: 260px;
    }

    .section-spacing {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .garage-product-grid {
        grid-template-columns: 1fr;
    }

    .garage-hero {
        margin: 20px auto 40px;
        height: 220px;
    }

    .garage-realizations-slider {
        padding: 0 10px;
    }

    .garage-realizations-slider .slick-prev,
    .garage-realizations-slider .slick-next {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .icon-item {
        width: 100%;
    }
}
