/* Dodatkowe klsay */

.mw-fit-content {
    max-width: fit-content !important;
}

.text-yellow {
    color: var(--tp-theme-1);
}


/* Header */

#menu-menu-glowne > .menu-item > a {
    transition: color 0.2s;
}

#menu-menu-glowne > .menu-item > a:hover,
#menu-menu-glowne > .current-menu-item > a,
#menu-menu-glowne > .current-page-parent > a {
    color: var(--tp-theme-1);
}

ul .menu-item:has(.sub-menu):hover .sub-menu {
    opacity: 1;
    visibility: visible;
    -webkit-transform: scaleY(1);
    -moz-transform: scaleY(1);
    -ms-transform: scaleY(1);
    -o-transform: scaleY(1);
    transform: scaleY(1);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: -5px;
    width: 240px;
    z-index: 999;
    padding: 30px 40px;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    transform: scaleY(0);
    transform-origin: top center;
    text-align: start;
    background-color: var(--tp-common-white);
    border-top: 5px solid var(--tp-theme-1);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    list-style: none;
    padding: 1rem;
    margin: 0;
    color: black;
}

.sub-menu .menu-item a {
    display: block;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

.sub-menu .menu-item a:hover {
    color: var(--tp-theme-1);
}

.tp-header-info-area {
    background-color: #F8F8F8 !important;
}

.tp-header-info-area * {
    color: black !important;
}

.tp-header-info-area svg,
.tp-header-info-area svg path {
    fill: black;
}

.tp-header-info-height {
    padding: 8px 0;
}

.header-sticky .tp-header-main-menu nav ul li > a {
    padding: 0.25rem 0.5rem !important;
}

.tp-header-main-menu > nav > ul > li {
    padding-block: 1rem;
}

/* Front page i kontakt */

.tp-header-social::after {
    top: -4px;
    height: 82px;
}

.tp-header-main-menu > nav > ul > li > a {
    padding: 20px 0;
}

.tp-main-menu-content ul .bottom-border {
    position: relative;
}

.tp-main-menu-content ul .bottom-border a::after {
    content: '';
    position: absolute;
    top: 52px;
    left: -5px;
    right: -5px;
    height: 3px;
    background-color: var(--tp-theme-1);
}

.tp-feature-item:not(:last-child, :nth-child(3))::after {
    right: 0% !important;
}

.tp-feature-item:nth-child(3)::after {
    display: none;
}

.tp-blog-thumb img {
    width: 100%;
    height: 100%;
    aspect-ratio: 5/3;
    object-fit: cover;
}

.square-area .tp-blog-content {
    padding: 0.5rem 1rem;
}

.square-area .tp-blog-content h4 {
    color: #eeeeee;
}

.tp-slider-height {
    height: 450px;
}

.tp-slider-content {
    padding-top: 200px;
}

.tp-feature-area {
    border-bottom: 1px solid #f0f1f1;
}

.tp-brand-ptb {
    border-top: 1px solid var(--tp-border-3);
}

.tp-brand-ptb > .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.tp-blog-meta {
    justify-content: space-between;
}

.single-door {
    height: 100%;
}

.single-door h5 {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid black;
    min-height: 57px;
}

.contact-gallery-1 > div,
.contact-gallery-1 > div > img {
    height: 100%;
}

.contact-gallery-1 > div > img {
    object-fit: cover;
    object-position: center;
    aspect-ratio: 5/3;
}

.tp-header-main-menu::after {
    left: 4%;
}

.tp-testimonial-avata img {
    aspect-ratio: 1 !important;
    max-width: 120px !important;
    object-fit: cover;
}

.tp-section-title {
    font-size: 36px;
    text-transform: none !important;
}

.tp-footer-contact span a {
    font-size: 1.2rem;
}

.tp-footer-contact span:nth-child(2) a {
    word-wrap: break-word;
}

.breadcrumb__content {
    padding-top: 74px;
}

.tp-slider-text-wrap {
    max-width: 500px;
}

.tp-slider-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tp-slider-text a {
    max-width: fit-content;
}

.tp-brand-item {
    height: auto;
}

.tp-brand-item img {
    height: 100%;
    object-fit: contain;
}

.tp-brand-slider-wrap .swiper-slide {
    display: flex;
    align-items: center;
}

.tp-slider-title {
    font-size: 54px;
}

.tpoffcanvas {
    padding: 100px 50px 50px 50px;
}

.tp-header-info-height {
    position: relative;
    z-index: 2;
}

.contact-images img {
    aspect-ratio: 2/1;
    object-fit: cover;
}

.tp-map-box iframe {
    height: 650px;
}

ul li:has(.submenu) {
    position: relative;
}

ul li:has(.sub-menu)::before {
    content: '';
    width: 6px;
    height: 6px;
    position: absolute;
    top: 50%;
    left: -12px;
    transform: translateY(-50%);
    border-radius: 50%;
    background-color: var(--tp-theme-1);
}

.tp-header-main-menu > nav > ul > li .sub-menu {
    width: max-content;
}

.tp-slider-wrapper .swiper-slide.swiper-slide-active .tp-slider-bg {
    -webkit-transform: scale(1);
    transform: scale(1);
}

.tp-slider-wrapper .swiper-slide .tp-slider-bg {
    background-position: center;
}

.tp-contact-inner p {
    margin-bottom: 40px;
}

.breadcrumb__height {
    height: 100%;
}

.breadcrumb__content {
    padding-top: 16px;
}

.doors-details > img {
    width: 100%;
    max-width: 225px;
    aspect-ratio: 1/2;
}

.doors-details__content p {
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.doors-details__content p:last-child {
    margin-bottom: 0;
}


@media only screen and (min-width: 1600px) and (max-width: 1700px) {
    .tp-slider-title {
        font-size: 54px;
    }
}

@media only screen and (min-width: 1400px) and (max-width: 1599px) {
    .tp-slider-height {
        height: 450px;
    }

    .tp-section-title {
        font-size: 36px;
    }

    .tp-slider-title {
        font-size: 54px;
    }

    .tp-slider-content {
        padding-top: 180px;
    }
}

@media only screen and (min-width: 1200.01px) and (max-width: 1399px) {
    .tp-slider-title {
        font-size: 48px;
    }

    .swiper-slide:nth-child(2) .tp-slider-content {
        padding-top: 170px;
    }

    .tp-slider-text-wrap {
        right: 2%;
    }
}

@media (min-width: 992.01px) and (max-width: 1199px) {
    .tp-slider-text-wrap {
        left: 2%;
    }
}

@media only screen and (min-width: 576px) and (max-width: 767px), (max-width: 767px) {
    .tp-contact-item {
        margin-bottom: 0;
    }
}

@media (min-width: 992.01px) {
    .tp-feature-item:not(:nth-child(1), :nth-child(2), :nth-child(3))::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: #f0f1f1;
    }

    .tp-slider-title {
        font-size: 52px
    }
    
    .tp-contact-form,
    .contact-images {
        margin-left: 3rem;
    }
}

@media (min-width: 768.01px) {
    .mt-md-25 {
        margin-top: 25px !important;
    }
}

@media (min-width: 576.01px) {
    .tp-slider-title {
        font-size: 40px;
    }
}

@media (max-width: 1199px) {
    .tp-slider-height {
        height: 550px;
    } 

    .tp-slider-content {
        padding-top: 0;
    }

    .tp-slider-text-wrap {
        position: relative;
    }

    .tp-slider-title {
        font-size: 42px;
    }
}

@media (max-width: 991px) {
    .tp-slider-text-wrap {
        left: 0;
    }
}

@media (max-width: 767px) {
    .tp-feature-item {
        width: 100% !important;
        justify-content: inherit !important;
    }
}

@media (max-width: 576px) {
    .tp-slider-title {
        font-size: 32px;
    }
}

@media(max-width: 420px) {
    .single-door h5 {
        font-size: 1rem;
    }

    .doors-details__content p {
        font-size: 0.9rem;
    }
}


/* PAGE ID 34 */

.page-id-34 .custom-colum-1 .tp-project-2-item {
    height: 100% !important;
}

.page-id-34 .custom-colum-2 .tp-project-2-item {
    height: 50% !important;
}

.page-id-34 .tp-project-2-item img {
    height: 100% !important;
    object-fit: cover !important;
}

.page-id-34 .tp-about-number span {
    font-size: 78px;
}

@media(min-width: 992px) {
    .page-id-34 .tp-about-number {
        top: -90px;
    }
}

@media(max-width: 991.98px) {
    .page-id-34 .tp-about-number span {
        font-size: clamp(65px, 8vw, 75px);
    } 
}

@media(max-width: 575.98px) {
    .page-id-34 .tp-about-number span {
        font-size: clamp(46px, 9vw, 75px)
        ;
    }
}


/* Template Subpage */

.subpage-thumbnail__wrapper img {
    height: 100%;
    aspect-ratio: 5/3;
    object-fit: cover;
}

.subpage-content__wrapper ul,
.page__content ul,
.offer__content ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 2rem;
    list-style-image: url('../img/service/checkmark.svg');
    margin-bottom: 1rem;
}

.subpage-content__wrapper h2,
.page__content h2 {
    font-size: 2.25rem;
    margin-block: 2.3rem 1.5rem;
}

.subpage-content__wrapper h3,
.page__content h3 {
    font-size: 2rem;
    margin-block: 2.15rem 1.4rem;
}

.subpage-content__wrapper h4,
.page__content h4 {
    font-size: 1.8rem;
    margin-block: 2rem 1.3rem;
}

.subpage-content__wrapper h5,
.subpage-content__wrapper h6,
.page__content h5,
.page__content h6 {
    font-size: 1.65rem;
    margin-block: 1.85rem 1.2rem;
}

.tp-sv-details-gallery > img {
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
}


/* PAGE.PHP */

.page__content,
.offer__content {
    padding: 2rem;
    margin-block: 2rem;
    margin-inline: auto;
    max-width: 1000px;
    box-shadow: 2px 4px 16px rgba(0,0,0,0.25);
}

.page__content h1,
.offer__content h1 {
    font-size: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 0.5rem;
    text-align: center;
    border-bottom: 2px solid black;
}

.page__content p,
.offer__content p,
.page__content ul,
.offer__content ul {
    color: black;
}

.page__content ul li,
.offer__content ul li {
    margin-bottom: 0.5rem;
}

/* OFFER TEMPLATE */

.offer__content {
    padding: 2rem 4rem;
    max-width: fit-content;
}

@media(max-width: 575.98px) {
    .offer__content {
        padding: 1rem;
        font-size: 1rem;
    }

    .offer__content h1 {
        font-size: 2.5rem;
    }

    .offer__content h2 {
        font-size: 30px;
    }

    .offer__content h3 {
        font-size: 26px;
    }

    .offer__content p {
        font-size: 1rem;
    }
}

@media(max-width: 767.98px) {
    .offer__content {
        padding: 1rem 2rem;
    }
}


/* SINGLE POST */

.post-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.post-info p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tp-theme-1);
    padding-right: 0 !important;
}


/* HOME PHP */

.posts__wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-block: 4rem;
}

.posts__wrapper .single-post {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.posts__wrapper .single-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/2;
}

.posts__wrapper .single-post p {
    margin-top: -0.25rem;
    margin-bottom: 0;
}

.posts__wrapper .read-more-btn {
    max-width: fit-content;
    height: 42px;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* OPINIE */

.map-wrapper > iframe {
    width: 100% !important;
    height: clamp(300px, 40vw, 500px);
    margin-block: 4rem 0.25rem;
}

.review-info {
    margin-bottom: 4rem;
    text-align: center;
}

/* RÓŻNE */

@media(max-width: 1198.98px) {
    .sub-menu {
        display: none !important;
    }
}

@media(max-width: 767.98px) {
    .tp-header-height {
        height: 80px !important;
    }
}