/*
Theme Name: wp_chaingers
Theme URI: https://lukaszwalaszczyk.pl/
Author: ŁW
Author URI: https://lukaszwalaszczyk.pl/
Description: Wordpress Template made by ŁW
Version: 1.1
Tags: lw
Text Domain: wp_chaingers
*/

html {
    scroll-behavior: smooth;
  }

.section.border-bottom-white {
    border-bottom: 1px solid #fff;
}

h1 .small-date {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.6rem;
    margin-top:1.3rem;
    font-weight: 400;
}

.ico.social.yt-footer {
    background-image: url(./images/yt-bg-footer.png);
}

.alignleft {
	float: left;
	margin-right: 15px;
	margin-bottom: 15px;
}

.alignright {
	float: right;
	margin-left: 15px;
	margin-bottom: 15px;
}

.drop-nav-cont {
    position: relative;
}

.drop-overlay {
    display: none;
}

html .wpcf7-form-control.wpcf7-submit {
    background-color: rgb(77,149,194);
    color: white;
    padding: 0.5em 0.7em 0.5em 0.7em;
    width: auto;
    min-width: auto;
    border: none;
}

html .wpcf7-form-control.wpcf7-submit:hover {
    border: none;
    background-color: rgb(243,147,37);
    color: white;
}


html .wpcf7 form .wpcf7-response-output {
    margin: 0px;
    padding: 0px;
    border: none;
    border-top: 1px solid #000 !important;
    padding-top: 10px;
}

html .wpcf7-not-valid-tip {
    font-size: 14px;
    margin-bottom: 10px;
}

html .wpcf7-form-control-wrap {
    display: block;
    height: auto;
}

html .wpcf7-list-item {
    margin-left: 0px;
}

html .wpcf7-form-control label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

html .wpcf7-form-control label input[type="checkbox"] {
    width: auto;
    min-width: auto;
    height: auto;
    margin-left: 0px;
    margin-right: 8px;
}

form.contact-form select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    border: 1px solid #ccc;
    padding: .7em .75em;
    cursor: pointer;
    background-color: inherit;
    margin-bottom: .5em;
    font-size: calc(16px +((100vw - 1920px) / 320 +(100vh - 1080px) / 180) / 2);
    line-height: 150%;
    font-family: din-regular;
    font-weight: normal;
}

html .mobile-header-1.mobile {
    display: none;
}

html .header {
    overflow: visible;
    z-index: 100;
    position: relative;
}

html .section.header-logo-menu {
    overflow: visible;
}

html .menu {
    display: flex;
    overflow: visible;
}

html .menu a {
    float: none;
}

.dropdown-navlink {
    position: relative;
}


.dropdown-navlink nav {
    position: absolute;
    top: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-top: 1px solid rgb(77,149,194);
    border-bottom: 1px solid rgb(77,149,194);
    text-align:left;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
}


.dropdown-navlink nav .dropdown-navlink > nav {
    top:-1px;
    left:100%;
    border-left-color: transparent;
}

.dropdown-navlink nav .dropdown-navlink > nav > a {
    position: relative;
}

.dropdown-navlink nav .dropdown-navlink > nav > a:before {
    content: '»';
    font-size: 33px;
    line-height: 0px;
    position: relative;
    bottom: -5px;
    left: -14px;
}

.dropdown-navlink:hover > nav {
    visibility: visible;
    opacity: 1;
}

.dropdown-navlink > nav > .dropdown-navlink:hover > a {
    border-right-color: #fff;
}

.dropdown-navlink nav a {
    text-align: left;
    text-wrap: nowrap;
    white-space: nowrap;
}

.dropdown-navlink > nav > .dropdown-navlink > a {
    border-left: 1px solid rgb(77,149,194);
    border-right: 1px solid rgb(77,149,194);
}

.dropdown-navlink > nav > .dropdown-navlink > nav {
    border-right: 1px solid rgb(77,149,194);
}

img {
    height: auto;
}

body {
    opacity: 0;
}

.gird-parent {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;
    margin-top: 30px;
}

.client-logo .gird-parent img {
    width: 100%;
    margin: 0px;
    float: none;
    height: 100%;
    object-fit: cover;
}

@media only screen and (max-width: 1100px) {
    html .menu {
        display: block;
    }

    .dropdown-navlink nav {
        border-left-width: 0px;
        border-right-width: 0px;
        -webkit-transition: all 0s ease;
        -moz-transition: all 0s ease;
        -ms-transition: all 0s ease;
        -o-transition: all 0s ease;
        transition: all 0s ease;
    }

    .dropdown-navlink:hover nav {
        position: relative;
    }

    .dropdown-navlink:hover nav {
        visibility: visible;
        opacity: 1;
    }

    .dropdown-navlink > nav > .dropdown-navlink:last-child > nav {
        border-bottom-width: 0px;
    }

    .dropdown-navlink nav .dropdown-navlink > nav {
        top:0px;
        left:0%;
    }

    .dropdown-navlink nav .dropdown-navlink > nav a {
        padding-left: 10%;
    }

    .dropdown-navlink > a {
        pointer-events: none;
    }

    .dropdown-navlink:active > a {
        pointer-events: auto;
    }

    .dropdown-navlink nav .dropdown-navlink > nav {
        border-top-width: 0px;
    }

    .drop-overlay {
        display: block;
        position: absolute;
        top:0;
        left:0;
        width:100%;
        height: 100%;
        z-index: 10;
        opacity: 1;
        visibility: visible;
        -webkit-transition: all 0.2s linear;
        -moz-transition: all 0.2s linear;
        -ms-transition: all 0.2s linear;
        -o-transition: all 0.2s linear;
        transition: all 0.2s linear;
    }

    .dropdown-navlink:hover > .drop-nav-cont > .drop-overlay {
        opacity: 0;
        visibility: hidden;
    }

    .dropdown-navlink > nav > .dropdown-navlink > a {
        border-left: none;
        border-right: none;
    }

    .dropdown-navlink > nav > .dropdown-navlink > nav {
        border-left: none;
        border-right: none;
    }
}

@media only screen and (max-width: 600px) {
    .gird-parent {
        grid-template-columns: repeat(3, 1fr);
    }
    
  }

/* PDF Downloads Section */
.pdf-downloads-section {
    margin-top: 2rem;
}

.pdf-downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1rem;
    max-width: 600px;
}

.pdf-download-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.pdf-download-item:hover {
    transform: translateY(-5px);
}

.pdf-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0px;
    transition: box-shadow 0.3s ease;
}

.pdf-download-item:hover .pdf-thumbnail {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.pdf-download-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(77, 149, 194, 0);
    transition: background-color 0.3s ease;
}

.pdf-download-item:hover .pdf-download-overlay {
    background-color: rgba(77, 149, 194, 0.15);
}

.pdf-download-icon {
    display: none;
}

.pdf-title {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
    text-align: center;
    font-weight: 500;
    padding: 0 0.25rem;
}

.pdf-download-item:hover .pdf-title {
    color: rgb(77, 149, 194);
}

/* Responsive adjustments */
@media only screen and (max-width: 1100px) {
    .pdf-downloads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media only screen and (max-width: 600px) {
    .pdf-downloads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .pdf-title {
        font-size: 0.85rem;
    }
    
}

/* Report popup */
body.report-popup-open {
    overflow: hidden;
}

#pobierz-plik {
    scroll-margin-top: 2rem;
}

.report-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.28s ease,
        visibility 0s linear 0.35s;
}

.report-popup.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.28s ease,
        visibility 0s linear 0s;
}

.report-popup[hidden] {
    display: none;
}

.report-popup__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(24, 34, 44, 0.82);
    cursor: default;
}

.report-popup__backdrop:hover {
    background: rgba(24, 34, 44, 0.82);
}

.report-popup__dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(340px, 0.9fr);
    width: min(1200px, 100%);
    max-height: calc(100vh - 4rem);
    overflow: auto;
    background: #fff;
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    transition:
        opacity 0.25s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.report-popup.is-visible .report-popup__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.report-popup__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #535e6b;
    font-size: 2rem;
    line-height: 1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.report-popup__close:hover,
.report-popup__close:focus-visible {
    background: #4d95c2;
    color: #fff;
}

.report-popup__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    aspect-ratio: 16 / 9;
    min-height: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    background: #1c2934;
}

.report-popup__image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.report-popup__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 2rem;
}

.report-popup__heading {
    margin: 0;
    padding: 0 0 0.75rem;
    color: #535e6b;
    font-family: din-bold;
    font-size: clamp(1.6rem, 2.2vw, 1.95rem);
    line-height: 1.12;
}

.report-popup__text {
    color: #535e6b;
    font-size: 1rem;
    line-height: 1.5;
}

.report-popup__text p {
    margin: 0;
    padding: 0 0 1rem;
}

.report-popup__cta {
    align-self: flex-start;
    display: inline-block;
    padding: 0.8em 1.15em;
    border-radius: 0.25rem;
    background: #4d95c2;
    color: #fff;
    font-family: din-bold;
    font-size: 1.1rem;
    line-height: 1.1;
    transition: background-color 0.2s ease;
}

.report-popup__cta:visited {
    color: #fff;
}

.report-popup__cta:hover,
.report-popup__cta:focus-visible {
    background: #f39325;
    color: #fff;
}

@media only screen and (max-width: 760px) {
    .report-popup {
        align-items: flex-start;
        padding: 1rem;
        overflow-y: auto;
    }

    .report-popup__dialog {
        grid-template-columns: 1fr;
        max-height: none;
        margin: auto 0;
    }

    .report-popup__visual {
        min-height: 0;
    }

    .report-popup__image {
        max-height: none;
    }

    .report-popup__content {
        padding: 2rem 1.5rem 1.75rem;
    }

    .report-popup__heading {
        padding-right: 2rem;
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .report-popup,
    .report-popup__dialog {
        transition: none;
    }

    .report-popup__dialog {
        transform: none;
    }
}
