/* ================================================
   RADWOOD CUSTOM BLOCKS STYLES - MOBILE FIRST
   ================================================ */

/* ================================================
   BLOCK: MEDIA TEKST
   ================================================ */

.margin-bottom{
    margin-bottom: 50px;
}
.margin-top{
    margin-top: 50px;
}


.media_text {
    position: relative;
    overflow: hidden;
}

.media_text.margin-top {
    padding-top: 50px;
}

.media_text > .container {
    position: relative;
    z-index: 1;
}

.media_text .flex_content {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.media_text .media_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media_text .media_box img, 
.media_text .media_box video {
    margin-left: 20px;
    width: calc(100% - 40px);
}

.media_text .text_box {
    padding: 20px 0 0;
}

.media_text .text_box .btn {
    margin-bottom: 0 !important;
}

.media_text.outside .text_box {
    padding: 20px;
}

.media_text.outside > .container {
    max-width: none;
    padding: 0;
}

.media_text video {
    width: 100%;
    border-radius: 10px;
}

.media_text .media_box {
    width: calc(100% + 40px);
    transform: translateX(-20px);
}

/* Desktop: 992px+ */
@media (min-width: 992px) {
    
    .media_text.margin-top {
        padding-top: 80px;
    }
    
    .media_text .media_box img, 
    .media_text .media_box video {
        margin-left: 0;
        width: 100%;
    }
    
    .media_text .flex_content {
        flex-direction: row;
        align-items: stretch;
        gap: 5%;
    }
    
    .media_text.left .text_box {
        padding-left: 20px;
    }
    
    .media_text .media_box, 
    .media_text .text_box {
        flex: 1 1 50%;
        display: flex;
        align-items: center;
    }

    .media_text h2 {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .media_text.left .flex_content {
        flex-direction: row;
    }
    
    .media_text.right .flex_content {
        flex-direction: row-reverse;
    }
    
    .media_text.outside .wrapper {
        max-width: calc((1200px / 2) - 40px);
    }
    
    .media_text.right.outside .wrapper {
        margin-left: 40px;
    }
    
    .media_text.outside .text_box {
        padding: 0px;
    }
    
    .media_text.left.outside .wrapper {
        margin-left: 20px;
    }
    
    .media_text .media_box {
        width: 100%;
        transform: translateX(0px);
    }
}

@media (min-width: 1240px) {
    .media_text.right.outside .wrapper {
        margin-left: calc((100vw - 1220px) / 2);
    }
}

/* ================================================
   BLOCK: HERO SLIDER
   ================================================ */

.block-hero-slider .top {
    position: relative;
}

.block-hero-slider .media-box {
    position: relative;
}

.block-hero-slider .slide {
    position: relative;
    height: 80vh;
}

.block-hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.block-hero-slider .hero-img-mobile {
    display: block;
}

.block-hero-slider .hero-img-desktop {
    display: none;
}

.block-hero-slider .titles {
    position: absolute;
    top: calc(50% - 60px);
    z-index: 2;
    color: #fff;
}

.block-hero-slider .hero-content {
    color: #fff;
}

.block-hero-slider .hero-content h1, .block-hero-slider .hero-content h2, .block-hero-slider .hero-content h3, .block-hero-slider .hero-content h4, .block-hero-slider .hero-content h5, .block-hero-slider .hero-content h6 {
    color: #1b1b1b !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.block-hero-slider .hero-content h1 {
    font-size: 36px !important;
}

.block-hero-slider .hero-content h2 {
    font-size: 42px !important;
}

.block-hero-slider .hero-content h3 {
    font-size: 32px !important;
}

.block-hero-slider .hero-content p {
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1.5 !important;
    margin: 15px 0 0 0 !important;
}
.block-hero-slider .titles .btn {
    border: 2px solid #1b1b1b !important;
    color: #1b1b1b !important;
    background: transparent !important;
    margin-top: 30px !important;
    display: inline-block !important;
}

.block-hero-slider .titles .btn:hover {
    background: #fff !important;
    color: #1b1b1b !important;
}

.block-hero-slider .owl-dots {
    height: 80px !important;
    width: 100% !important;
    display: inline-block !important;
    position: absolute;
    bottom: 0;
    z-index: 3;
}

.block-hero-slider .owl-theme .owl-dots .owl-dot.active span,
.block-hero-slider .owl-theme .owl-dots .owl-dot:hover span {
    background: #1b1b1b !important;
}

.block-hero-slider .owl-theme .owl-dots .owl-dot span {
    background: #1b1b1b00 !important;
    border: 2px solid #1b1b1b !important;
}

.block-hero-slider .owl-theme .owl-dots .owl-dot {
    margin: 0 5px !important;
}

.block-hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 3;
    pointer-events: none;
}

.block-hero-slider .owl-nav button {
    pointer-events: auto;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    position: absolute;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.block-hero-slider .owl-nav button:hover {
    background: #fff !important;
}

.block-hero-slider .owl-nav .owl-prev {
    left: 20px;
}

.block-hero-slider .owl-nav .owl-next {
    right: 20px;
}

.block-hero-slider .owl-nav button span {
    font-size: 30px;
    line-height: 1;
    color: #1b1b1b;
}

/* Desktop: 992px+ */
@media (min-width: 992px) {
    .block-hero-slider .hero-img-mobile {
        display: none;
    }
    
    .block-hero-slider .hero-img-desktop {
        display: block;
    }
    
    .block-hero-slider .hero-content h1 {
        font-size: 60px !important;
        line-height: 65px !important;
    }
    
    .block-hero-slider .hero-content h2 {
        font-size: 60px !important;
        line-height: 65px !important;
    }
    
    .block-hero-slider .hero-content h3 {
        font-size: 48px !important;
    }
    
    .block-hero-slider .hero-content p {
        font-size: 20px !important;
    }
    
    .block-hero-slider .titles .btn {
        margin-top: 80px !important;
    }
}

/* ================================================
   BLOCK: TYTUŁ STRONY
   ================================================ */

.page-title ul.breadcrumb {
    list-style: none;
    color: #808080;
    width: 100%;
    text-align: left;
}

.page-title ul.breadcrumb li+li:before {
    color: #808080;
}

.page-title {
    margin-top: -120px;
}

/* ================================================
   BLOCK: FAQ
   ================================================ */

.block-faq {
    padding: 60px 0;
    background: #f5f5f5;
}

.block-faq.no-margin-top {
    padding-top: 0;
}

.block-faq.no-margin-bottom {
    padding-bottom: 0;
}

.block-faq .faq__header {
    text-align: center;
    margin-bottom: 40px;
}

.block-faq .faq__header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1B1B1B;
    margin: 0;
}

.block-faq .faq__items {
    max-width: 900px;
    margin: 0 auto;
}

.block-faq .faq__item {
    background: #fff;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.block-faq .faq__item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.block-faq .faq__question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.block-faq .faq__question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1B1B1B;
    margin: 0;
    padding-right: 20px;
    flex: 1;
    line-height: 24px;
}

.block-faq .faq__toggle {
    font-size: 28px;
    font-weight: 300;
    color: #B58B69;
    line-height: 1;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.block-faq .faq__answer {
    display: none;
    padding: 0 24px 24px 24px;
}

.block-faq .faq__answer p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Desktop: 992px+ */
@media (min-width: 992px) {
    .block-faq {
        padding: 100px 0;
    }
    
    .block-faq .faq__header {
        margin-bottom: 60px;
    }
    
    .block-faq .faq__header h2 {
        font-size: 42px;
    }
    
    .block-faq .faq__question {
        padding: 20px 32px;
    }
    
    .block-faq .faq__question h3 {
        font-size: 20px;
    }
    
    .block-faq .faq__answer {
        padding: 0 32px 32px 32px;
    }
    
    .block-faq .faq__answer p {
        font-size: 17px;
    }
}

/* ================================================
   DROPDOWN MENU STYLES
   ================================================ */

.header__menu .menu,
.header__menu ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header__menu .menu > li {
    position: relative;
}

.header__menu .sub-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: none;
    background: #fff;
}

/* Mobile: 0-992px */
@media (max-width: 991px) {
    .header__menu .menu > li.menu-item-has-children > a::after {
        content: ' ▼';
        font-size: 10px;
        margin-left: 5px;
    }
    
    .header__menu .menu > li.menu-item-has-children.active > a::after {
        content: ' ▲';
    }
    
    .header__menu .sub-menu {
        padding-left: 20px !important;
        background: transparent !important;
    }
    
    .header__menu .sub-menu li {
        display: block !important;
    }
    
    .header__menu .sub-menu li a {
        padding: 8px 15px !important;
        font-size: 24px !important;
        line-height: 50px !important;
    }
}

/* Desktop: 992px+ */
@media (min-width: 992px) {
    .header__menu .menu > li.menu-item-has-children > a::after {
        content: ' ▼';
        font-size: 10px;
        margin-left: 5px;
        transition: transform 0.3s ease;
    }
    
    .header__menu .menu > li.menu-item-has-children:hover > a::after {
        transform: rotate(180deg);
    }
    
    .header__menu .sub-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        min-width: 200px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        border-radius: 4px !important;
        overflow: hidden !important;
        z-index: 1000 !important;
        background: #fff !important;
    }
    
    .header__menu .menu > li:hover > .sub-menu {
        display: block !important;
    }
    
    .header__menu .sub-menu li {
        display: block !important;
        margin: 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .header__menu .sub-menu li:last-child {
        border-bottom: none !important;
    }
    
    .header__menu .sub-menu li a {
        display: block !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        line-height: 1.4 !important;
        color: #141414 !important;
        background-image: none !important;
        font-weight: 400 !important;
    }
    
    .header__menu .sub-menu li a:hover {
        background: #f5f5f5 !important;
        color: #B58B69 !important;
    }
}

/* ================================================
   BLOCK: REALIZACJE
   ================================================ */

.block-realizacje {
    padding: 60px 0;
    background: #1B1B1B;
}

.block-realizacje.no-margin-top {
    padding-top: 0;
}

.block-realizacje.no-margin-bottom {
    padding-bottom: 0;
}

.block-realizacje .item2.img {
    display: block;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.block-realizacje .item2.img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.block-realizacje .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.block-realizacje .owl-nav button {
    pointer-events: auto;
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    font-size: 24px !important;
    color: #1B1B1B !important;
    transition: all 0.3s ease;
}

.block-realizacje .owl-nav button:hover {
    background: #ff4d00 !important;
    color: #fff !important;
}

/* Desktop: 992px+ */
@media (min-width: 992px) {
    .block-realizacje {
        padding: 100px 0;
    }
    
    .block-realizacje .item2.img {
        height: 300px;
    }
}

/* ================================================
   BREADCRUMBS IN TYTUŁ STRONY
   ================================================ */

.block-tytul-strony .breadcrumb {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.block-tytul-strony .breadcrumb li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.block-tytul-strony .breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.block-tytul-strony .breadcrumb li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.block-tytul-strony .breadcrumb li a:hover {
    color: #fff;
}

/* Desktop: 992px+ */
@media (min-width: 992px) {
    .block-tytul-strony .breadcrumb li {
        font-size: 16px;
    }
}
