/* ── Pages Hero ── */

/*
 * Dotyczy: Strony WordPress (O nas, Kontakt, Regulamin...) + archiwa kategorii
 * Wykluczone: Front page, WooCommerce, Przepisy, Baza Wiedzy, Blog/single posts
 */

/* Hide GP Element "Video HERO BG pages" on pages covered by this hero */
.page:not(.home):not(.woocommerce-checkout):not(.woocommerce-cart) .gb-container-813904f8 {
    display: none !important;
}

/* Reset GP container spacing */
.page:not(.home):not(.woocommerce-checkout):not(.woocommerce-cart) .site-content {
    padding-top: 0 !important;
}

/* Hide default page title (title is in hero) */
.page:not(.home):not(.woocommerce-checkout):not(.woocommerce-cart) .entry-header,
.page:not(.home):not(.woocommerce-checkout):not(.woocommerce-cart) .page-header {
    display: none;
}

.pages-hero {
    position: relative;
    overflow: hidden;
    padding: 68px 20px 56px;
    text-align: center;
    color: #fff;
}

/* Background — video or image */
.pages-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.pages-hero-bg-image {
    background-size: cover;
    background-position: center;
}

/* Dark overlay */
.pages-hero-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

/* Content wrapper */
.pages-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

/* SVG icon */
.pages-hero-icon {
    margin-bottom: 16px;
}
.pages-hero-icon svg {
    width: 72px;
    height: 72px;
    color: rgba(255,255,255,0.85);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

/* Title */
.pages-hero-title {
    font-family: Poppins, sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

/* Subtitle */
.pages-hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

/* Decorative bottom lines */
.pages-hero-lines {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
}
.pages-hero-line {
    display: block;
    height: 3px;
}
.pages-hero-line:first-child {
    background: #59983E;
}
.pages-hero-line:last-child {
    background: #F6BD4D;
    height: 2px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .pages-hero {
        padding: 48px 16px 40px;
    }
    .pages-hero-icon svg {
        width: 56px;
        height: 56px;
    }
    .pages-hero-title {
        font-size: 30px;
    }
    .pages-hero-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pages-hero {
        padding: 36px 14px 32px;
    }
    .pages-hero-title {
        font-size: 26px;
    }
    .pages-hero-icon svg {
        width: 48px;
        height: 48px;
    }
}
