/* Hero Section Block Styles */
section.hero-section,
.editor-styles-wrapper section.hero-section,
.block-editor-block-list__layout section.hero-section,
.hero-section,
.editor-styles-wrapper .hero-section,
.block-editor-block-list__layout .hero-section {
    width: 100vw;
    height: auto;
    position: relative;
    padding: 64px 0 0px 0;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -64px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    min-height: 532px;
}

body.wp-admin .editor-styles-wrapper section.hero-section,
body.wp-admin .editor-styles-wrapper .hero-section,
body.wp-admin .block-editor-block-list__layout section.hero-section,
body.wp-admin .block-editor-block-list__layout .hero-section {
    overflow: hidden;
}

/* Border zielony po przestrzeni z góry (70px nad kreską) */
.hero-section::after,
.editor-styles-wrapper .hero-section::after,
.block-editor-block-list__layout .hero-section::after {
    content: '' !important;
    position: absolute !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: rgba(46, 204, 113, 0.7) !important;
    z-index: 10 !important;
}

/* Tło sekcji - warstwa 2 */
.hero-background-image,
.editor-styles-wrapper .hero-background-image,
.block-editor-block-list__layout .hero-background-image {
    position: absolute !important;
    top: -80px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100% + 80px) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    section.hero-section,
    .editor-styles-wrapper section.hero-section,
    .block-editor-block-list__layout section.hero-section,
    .hero-section,
    .editor-styles-wrapper .hero-section,
    .block-editor-block-list__layout .hero-section {
        overflow: hidden;
    }

    .hero-background-image,
    .editor-styles-wrapper .hero-background-image,
    .block-editor-block-list__layout .hero-background-image {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: calc(100% + 80px) !important;
        background-size: cover !important;
        background-position: left top !important;
    }

    .hero-container,
    .editor-styles-wrapper .hero-container,
    .block-editor-block-list__layout .hero-container,
    div.hero-container,
    .hero-section .hero-container,
    section.hero-section > div.hero-container {
        gap: 2rem;
    }

    .hero-heading,
    .editor-styles-wrapper .hero-heading {
        margin-bottom: 21px;
    }
}

.hero-container,
.editor-styles-wrapper .hero-container,
.block-editor-block-list__layout .hero-container,
div.hero-container,
.hero-section .hero-container,
section.hero-section > div.hero-container {
    max-width: 1200px;
    min-height: 350px;
    height: 100%;
    min-height: 532px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    position: relative;
}

/* Left Column - Text Content - warstwa 3 */
.hero-content,
.editor-styles-wrapper .hero-content,
.block-editor-block-list__layout .hero-content {
    color: white;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 30px;
    padding-bottom: 45px;
    max-width: 1340px;
}

.hero-heading,
.editor-styles-wrapper .hero-heading {
    color: #FFF;
    font-family: Lexend;
    font-size: 60px;
    font-style: normal;
    font-weight: 300;
    line-height: 110%;
    margin: 0 0 42px 0;
    padding: 0 0 10px 0;
}

/* Heading size variations */
.hero-heading--small,
.editor-styles-wrapper .hero-heading--small {
    font-size: 44px;
}

.hero-heading--medium,
.editor-styles-wrapper .hero-heading--medium {
    font-size: 52px;
}

.hero-heading--large,
.editor-styles-wrapper .hero-heading--large {
    font-size: 60px;
}

.hero-heading .char,
.editor-styles-wrapper .hero-heading .char {
    display: inline-block;
    opacity: 0;
    filter: blur(6px);
    transform: none;
    will-change: filter, opacity;
    animation: heroCharIn 500ms cubic-bezier(.22,.8,.26,1) forwards;
}

@keyframes heroCharIn {
    0% {
        opacity: 0;
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
    }
}

.hero-description,
.editor-styles-wrapper .hero-description {
    color: #FFF;
    font-family: Lexend;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 24px;
    margin: 0;
    padding-bottom: 15px;
    max-width: 480px;
}

.hero-description p,
.editor-styles-wrapper .hero-description p {
    margin: 0 0 1.25rem 0;
}

.hero-description p:last-child,
.editor-styles-wrapper .hero-description p:last-child {
    margin-bottom: 0;
}

.hero-cta,
.editor-styles-wrapper .hero-cta {
    margin-top: 32px;
    display: inline-flex;
    align-items: center;
}

.hero-description b,
.hero-description strong,
.editor-styles-wrapper .hero-description b,
.editor-styles-wrapper .hero-description strong {
    color: #FFF !important;
    font-family: Lexend !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 24px !important;
}

/* Right Column - Image - warstwa 3 (ponad tło) */
.hero-image,
.editor-styles-wrapper .hero-image,
.block-editor-block-list__layout .hero-image {
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 0;
    height: 100%;
}

.hero-image img,
.editor-styles-wrapper .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 3;
    border-left: 1px solid rgba(46, 204, 113, 0.7);
    border-right: 1px solid rgba(46, 204, 113, 0.7);
    border-bottom: 1px solid rgba(46, 204, 113, 0.7);
    border-top: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-section,
    .editor-styles-wrapper .hero-section,
    .block-editor-block-list__layout .hero-section {
        min-height: unset !important;
    }

    .hero-container,
    .editor-styles-wrapper .hero-container {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .hero-content,
    .editor-styles-wrapper .hero-content {
        order: 1 !important;
        padding: 64px 30px 0 30px !important;
    }
    
    .hero-image,
    .editor-styles-wrapper .hero-image {
        order: 2 !important;
        width: 100% !important;
        height: 306px !important;
        margin: 16px 0 0 0 !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        border-top: 1px solid rgba(46, 204, 113, 0.7) !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    .hero-heading,
    .editor-styles-wrapper .hero-heading {
        font-size: 48px !important;
    }
    
    .hero-heading--small,
    .editor-styles-wrapper .hero-heading--small {
        font-size: 36px !important;
    }
    
    .hero-heading--medium,
    .editor-styles-wrapper .hero-heading--medium {
        font-size: 42px !important;
    }
    
    .hero-heading--large,
    .editor-styles-wrapper .hero-heading--large {
        font-size: 48px !important;
    }

    .hero-image img,
    .editor-styles-wrapper .hero-image img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
    }
}

@media (max-width: 768px) {
    .hero-section,
    .editor-styles-wrapper .hero-section {
        padding: 0;
        min-height: 400px;
    }
    
    .hero-container,
    .editor-styles-wrapper .hero-container,
    div.hero-container,
    .hero-section .hero-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .hero-content,
    .editor-styles-wrapper .hero-content {
        padding: 64px 30px 0 30px;
    }
    
    .hero-image,
    .editor-styles-wrapper .hero-image {
        width: 100% !important;
        height: 306px !important;
        margin: 16px auto 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        border-top: 1px solid rgba(46, 204, 113, 0.7) !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    .hero-image img,
    .editor-styles-wrapper .hero-image img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        object-fit: cover !important;
    }
    
    .hero-heading,
    .editor-styles-wrapper .hero-heading {
        font-size: 36px;
    }
    
    .hero-heading--small,
    .editor-styles-wrapper .hero-heading--small {
        font-size: 28px;
    }
    
    .hero-heading--medium,
    .editor-styles-wrapper .hero-heading--medium {
        font-size: 32px;
    }
    
    .hero-heading--large,
    .editor-styles-wrapper .hero-heading--large {
        font-size: 36px;
    }
    
    .hero-description,
    .editor-styles-wrapper .hero-description {
        font-size: 16px;
    }
}
