/* Landing: szklane ściany działowe (page-glass-walls.php)
   Ładowany tylko na tym szablonie. Kolory i typografia jak w sass/_variables.scss. */

/* ---------- kotwice pod stałym nagłówkiem ---------- */
.lp_section,
.page-template-page-glass-walls .puaro-planner,
.page-template-page-glass-walls .puaro-calc-results {
    scroll-margin-top: 110px;
}

/* ---------- wysuwany spis treści: przyciski zamiast div/span, panel niedostępny z klawiatury, gdy zamknięty ---------- */
button.toc-toggle-btn {
    border: 0;
    padding: 0;
}

button.toc-close {
    background: none;
    border: 0;
    padding: 0;
    color: #fff;
    line-height: 1;
}

.page-template-page-glass-walls .toc-sidebar {
    visibility: hidden;
    transition: left .3s ease, visibility 0s linear .3s;
}

.page-template-page-glass-walls .toc-sidebar.active {
    visibility: visible;
    transition: left .3s ease;
}

.toc-header .toc-title {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
}

/* ---------- hero ---------- */
.sub_banner.lp_hero {
    padding: 7rem 0 5.5rem;
    overflow: hidden;
    background-color: #1A2B3C;
}

.lp_hero_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.lp_hero:before {
    content: ' ';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(90deg, rgba(26, 43, 60, .9) 0%, rgba(26, 43, 60, .72) 45%, rgba(26, 43, 60, .15) 100%);
}

.lp_hero .page_title {
    text-wrap: balance;
}

/* pod hero jest ciemny pasek liczb, więc narożny kwadrat ma jego kolor */
.lp_hero .right_down_square_white {
    background: #1A2B3C;
}

.lp_hero_lead {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.6;
    text-align: left;
    max-width: 38rem;
    margin: 1.6rem 0 1rem;
}

.lp_hero_points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
    color: #fff;
}

.lp_hero_points li {
    position: relative;
    padding: .15rem 0 .15rem 1.3rem;
    font-weight: 600;
}

.lp_hero_points li:before {
    content: ' ';
    position: absolute;
    left: 0;
    top: .7rem;
    width: .5rem;
    height: .5rem;
    background: #FF6B35;
}

.lp_hero_btns {
    gap: .8rem 1rem;
}

.lp_hero_btns a {
    border: 1px solid transparent;
}

.lp_hero_btns .lp_white_border_btn {
    color: #fff;
    border-color: #fff;
    padding: .5rem 2rem;
    display: inline-block;
    text-transform: uppercase;
}

.lp_hero_btns .lp_white_border_btn:hover,
.lp_hero_btns .lp_white_border_btn:focus {
    background: #fff;
    color: #1A2B3C;
}

/* ---------- pasek liczb ---------- */
.lp_facts {
    background: #1A2B3C;
    padding: 2.2rem 0;
}

.lp_fact {
    text-align: center;
    padding: .8rem 0;
}

.lp_fact_value {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.2;
    white-space: nowrap;
    color: #FF6B35;
}

.lp_fact_label {
    display: block;
    font-size: .95rem;
    line-height: 1.4;
    margin-top: .3rem;
    color: #E0E5E9;
}

/* ---------- treść: linki, lead, spis treści ---------- */
.lp_prose a:not([class]) {
    color: #1A2B3C;
    text-decoration: underline;
    text-decoration-color: #FF6B35;
    text-underline-offset: 3px;
}

.lp_prose a:not([class]):hover,
.lp_prose a:not([class]):focus {
    color: #D5362A;
}

.lp_lead {
    font-size: 1.1rem;
    line-height: 1.7;
}

.lp_intro {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.lp_intro p {
    text-align: center;
}

/* spis treści w treści strony: kafle z numerem i ikoną */
.lp_toc {
    margin-top: 3.5rem;
}

.lp_toc_head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .3rem 2rem;
    padding-bottom: .9rem;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid #1A2B3C;
}

.lp_toc_title {
    position: relative;
    margin: 0;
    padding-left: 1.4rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1A2B3C;
    font-size: 1.35rem;
    line-height: 1.25;
    text-align: left;
}

.lp_toc_title:before {
    content: ' ';
    position: absolute;
    left: 0;
    top: .42em;
    width: .7rem;
    height: .7rem;
    background: #FF6B35;
}

.lp_toc_hint {
    margin: 0;
    font-size: .95rem;
    color: #555;
    text-align: left;
}

.lp_toc_list {
    list-style: none;
    counter-reset: lptoc;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .8rem;
    margin: 0;
    padding: 0;
}

.lp_toc_list li {
    counter-increment: lptoc;
}

.lp_toc_list a {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 6.4rem;
    padding: .9rem 1rem 1rem;
    background: #F5F7FA;
    border-bottom: 3px solid #E0E5E9;
    color: #1A2B3C;
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.35;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.lp_toc_list a:before {
    content: counter(lptoc, decimal-leading-zero);
    margin-bottom: .9rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1;
    color: #FF6B35;
}

.lp_toc_list a i {
    position: absolute;
    top: .85rem;
    right: 1rem;
    font-size: 1.05rem;
    color: #9AA7B4;
    transition: color .2s;
}

.lp_toc_list a span {
    text-wrap: balance;
}

.lp_toc_list a:hover,
.lp_toc_list a:focus-visible {
    background: #1A2B3C;
    border-color: #FF6B35;
    color: #fff;
    transform: translateY(-3px);
}

.lp_toc_list a:hover i,
.lp_toc_list a:focus-visible i {
    color: #FF6B35;
}

@media (prefers-reduced-motion: reduce) {
    .lp_toc_list a {
        transition: none;
    }

    .lp_toc_list a:hover,
    .lp_toc_list a:focus-visible {
        transform: none;
    }
}

/* ---------- kolumny przyklejane przy przewijaniu (desktop) ---------- */
/* Motyw ma body{overflow:hidden}, co wyłącza position:sticky. Wartość clip przycina tak samo,
   ale nie tworzy kontenera przewijania. Przeglądarki bez clip zostają przy zwykłym układzie. */
@supports (overflow: clip) {
    @media all and (min-width: 992px) {
        body.page-template-page-glass-walls {
            overflow: clip;
        }

        .lp_sticky {
            position: sticky;
            top: 120px;
            align-self: flex-start;
        }

        /* klasa z JS: zawartość wyższa niż okno pod nagłówkiem */
        .lp_sticky.lp_sticky_off {
            position: static;
            align-self: auto;
        }
    }
}

/* ---------- karty ---------- */
.lp_cards {
    row-gap: 1.5rem;
}

.lp_card {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid #E0E5E9;
    padding: 1.8rem 1.6rem 2rem;
}

.lp_card h3 {
    font-size: 1.25rem;
    margin-bottom: .7rem;
}

.lp_card p {
    text-align: left;
    font-size: .95rem;
    margin: .4rem 0;
}

.lp_card_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    background: #1A2B3C;
    color: #fff;
    font-size: 1.2rem;
}

.lp_card_tag {
    display: inline-block;
    margin-top: .6rem;
    padding: .15rem .6rem;
    background: #dff7ff;
    color: #1A2B3C;
    font-size: .86rem;
    font-weight: 600;
}

.lp_note {
    max-width: 900px;
    margin: 2.5rem auto 0;
    padding: 1.2rem 1.6rem;
    background: #fff;
    border-left: 4px solid #1A2B3C;
}

.lp_note p {
    text-align: left;
    margin: 0;
}

/* ---------- przekroje serii ---------- */
.lp_series {
    row-gap: 2rem;
    margin-top: 3rem;
}

.lp_series figure {
    margin: 0;
    text-align: center;
}

.lp_series img {
    display: block;
    height: 230px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 1rem;
}

.lp_series figcaption {
    font-size: .95rem;
    line-height: 1.5;
    color: #333;
}

.lp_series figcaption strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #1A2B3C;
}

/* ---------- tabele ---------- */
.lp_table_wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.lp_table {
    width: 100%;
    margin-top: 0;
    border-collapse: collapse;
    background: #fff;
}

.lp_table th,
.lp_table td {
    border: 1px solid #D9D9D9;
    padding: .75rem .9rem;
    vertical-align: top;
    font-size: .95rem;
    line-height: 1.5;
    text-align: left;
}

.lp_table thead th {
    background: #1A2B3C;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.lp_table tbody th {
    background: #F5F7FA;
    color: #1A2B3C;
    font-weight: 600;
}

.lp_table tbody th a {
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-color: #FF6B35;
    text-underline-offset: 3px;
}

.lp_table tbody th a:hover,
.lp_table tbody th a:focus {
    color: #D5362A;
}

.lp_table_note {
    font-size: .9rem;
    line-height: 1.5;
    color: #555;
    text-align: left;
    margin: .8rem 0 0;
}

/* ---------- lista numerowana i ramka ---------- */
.lp_num_list {
    list-style: none;
    counter-reset: lp;
    padding: 0;
    margin: 1.5rem 0 0;
}

.lp_num_list li {
    counter-increment: lp;
    position: relative;
    padding: 0 0 1.2rem 3.2rem;
}

.lp_num_list li:before {
    content: counter(lp, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: -.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.4;
    color: #FF6B35;
}

.lp_num_list strong {
    display: block;
    color: #1A2B3C;
}

.lp_box {
    background: #fff;
    border-top: 4px solid #FF6B35;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.lp_box h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.lp_box p {
    text-align: left;
}

/* ---------- etapy ---------- */
.lp_stages .stage_text h3 {
    font-size: 1.3rem;
}

/* ---------- pas ze zdjęciem i wezwaniem ---------- */
.lp_band {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0;
    background-color: #1A2B3C;
}

.lp_band_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.lp_band:before {
    content: ' ';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(26, 43, 60, .82);
}

.lp_band .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.lp_band p {
    color: #E0E5E9;
    font-size: 1.1rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.lp_band .lp_band_title {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.1rem;
    line-height: 125%;
    max-width: 800px;
    margin: 0 auto 1rem;
}

/* ---------- galeria ---------- */
.lp_gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.lp_gallery figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #E0E5E9;
}

.lp_gallery img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform .5s;
}

.lp_gallery figure:hover img {
    transform: scale(1.03);
}

.lp_gallery figcaption {
    position: absolute;
    left: 0;
    bottom: 0;
    max-width: 100%;
    padding: .4rem .8rem;
    background: rgba(26, 43, 60, .88);
    color: #fff;
    font-size: .9rem;
    line-height: 1.4;
}

/* ---------- logotypy certyfikatów (kwadratowe pliki, motyw ogranicza je do 120 x 70) ---------- */
.lp_logos .gallery_img_logo {
    width: auto;
    height: 70px;
}

/* ---------- artykuły ---------- */
.lp_articles {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
}

.lp_articles a {
    display: block;
    height: 100%;
    padding: 1rem 1.2rem;
    background: #fff;
    border: 1px solid #E0E5E9;
    border-left: 4px solid #FF6B35;
    color: #1A2B3C;
    font-weight: 600;
    line-height: 1.4;
}

.lp_articles a span {
    display: block;
    margin-top: .2rem;
    font-weight: 400;
    font-size: .9rem;
    color: #555;
}

.lp_articles a:hover,
.lp_articles a:focus {
    background: #1A2B3C;
    color: #fff;
}

.lp_articles a:hover span,
.lp_articles a:focus span {
    color: #E0E5E9;
}

/* ---------- FAQ ---------- */
.lp_faq .accordion-body p {
    text-align: left;
}

.lp_faq .accordion-body p:first-child {
    margin-top: 0;
}

.lp_faq .accordion-body p:last-child {
    margin-bottom: 0;
}

/* ---------- kalkulator i planner osadzone na landingu ---------- */
.lp_tool_intro p {
    text-align: center;
}

.puaro-step-header h3 {
    color: #1A2B3C;
    font-size: 26px;
    margin: 0 0 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.puaro-calculator .puaro-calc-header p,
.puaro-calculator .puaro-result-cta p {
    text-align: center;
}

.puaro-calculator .puaro-result-system p {
    text-align: left;
}

.puaro-details-table table {
    margin-top: 0;
}

.puaro-details-table td {
    border-width: 0 0 1px;
}

.puaro-details-table tr:last-child td {
    border-bottom: 0;
}

.lp_planner {
    background: #F5F7FA;
}

/* ---------- responsywność ---------- */
@media all and (max-width: 992px) {
    .sub_banner.lp_hero {
        padding: 5rem 0 4rem;
    }

    .lp_hero:before {
        background: rgba(26, 43, 60, .8);
    }

    .lp_band {
        padding: 3.5rem 0;
    }

    .lp_band .lp_band_title {
        font-size: 1.8rem;
    }

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

    .lp_box {
        margin-top: 2rem;
    }
}

@media all and (max-width: 991px) {
    .lp_section.about_left_img .img_cont {
        margin-top: 2rem;
    }

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

    /* tabele jako karty */
    .lp_table_stack thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .lp_table_stack,
    .lp_table_stack tbody,
    .lp_table_stack tr,
    .lp_table_stack th,
    .lp_table_stack td {
        display: block;
        width: 100%;
    }

    .lp_table_stack {
        background: transparent;
    }

    .lp_table_stack tr {
        margin-bottom: 1.2rem;
        border: 1px solid #D9D9D9;
        background: #fff;
    }

    .lp_table_stack tbody th {
        border: 0;
        background: #1A2B3C;
        color: #fff;
        font-size: 1.05rem;
    }

    .lp_table_stack tbody th a {
        color: #fff;
    }

    .lp_table_stack tbody th a:hover,
    .lp_table_stack tbody th a:focus {
        color: #FF6B35;
    }

    .lp_table_stack td {
        border: 0;
        border-top: 1px solid #E0E5E9;
    }

    .lp_table_stack td:before {
        content: attr(data-label);
        display: block;
        margin-bottom: .15rem;
        font-size: .86rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: #666;
    }
}

@media all and (max-width: 767px) {
    .lp_section .about_block {
        padding: 0;
    }

    .lp_hero_lead {
        font-size: 1.1rem;
    }

    .lp_fact_value {
        font-size: clamp(.95rem, 4.3vw, 1.6rem);
    }

    .lp_toc {
        margin-top: 2.5rem;
    }

    .lp_toc_list {
        grid-template-columns: repeat(2, 1fr);
        gap: .6rem;
    }

    .lp_toc_list a {
        min-height: 5.8rem;
        padding: .8rem .8rem .9rem;
        font-size: .95rem;
    }

    .lp_toc_list a i {
        top: .75rem;
        right: .8rem;
    }

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

@media all and (max-width: 600px) {
    .puaro-step-header h3 {
        font-size: 22px;
    }
}

@media all and (max-width: 480px) {
    .sub_banner.lp_hero {
        padding-bottom: 5rem;
    }

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

    .lp_hero_btns a {
        width: 100%;
        text-align: center;
    }
}
