/*
 * Style dla Custom Hero
 */

.ch-hero {
    position: relative;
    z-index: 100;
    width: 100%;
    padding-top: 17vh;
    padding-bottom: 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--wp--preset--color--white);
    overflow: visible;
    font-family: var(--wp--preset--font-family--archivo);
    border-bottom: #FF3200 3px solid;
    box-sizing: border-box;
}

.ch-hero *,
.ch-hero *::before,
.ch-hero *::after {
    box-sizing: border-box;
}

.ch-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ch-container {
    position: relative;
    z-index: 2;
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.ch-hero-text {
    max-width: 775px;
}

.ch-title {
    font-family: var(--wp--preset--font-family--gilroy);
    font-size: var(--wp--preset--font-size--heading-2);
    line-height: 1.2;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

.ch-subtitle {
    font-family: var(--wp--preset--font-family--gilroy);
    font-size: var(--wp--preset--font-size--text);
    line-height: 1.8;
    margin: 0;
}

.ch-subtitle-1 {
    margin-bottom: 8px;
    font-size: 24px;
}

.ch-subtitle-2 {
    margin-top: 0;
    font-family: var(--wp--preset--font-family--archivo);
    font-weight: 400;
}

.ch-text-orange {
    color: var(--wp--preset--color--orange);
}

.ch-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 90%;
    max-width: 100%;
}

.ch-stat-box {
    background: #40434840;
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    box-sizing: border-box;
}

.ch-stat-icon {
    display: flex;
    justify-content: center;
}

.ch-stat-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.ch-stat-heading {
    font-family: var(--wp--preset--font-family--gilroy);
    font-size: var(--wp--preset--font-size--text);
    text-transform: uppercase;
    text-align: center;
}

.ch-stat-text {
    font-family: var(--wp--preset--font-family--archivo);
    font-size: var(--wp--preset--font-size--text);
    line-height: 1.6;
    text-align: center;
}

.ch-hero-footer {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.ch-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 8px;
    background: var(--wp--preset--color--orange);
    color: var(--wp--preset--color--white);
    text-decoration: none;
    font-family: var(--wp--preset--font-family--gilroy);
    font-size: var(--wp--preset--font-size--text);
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid transparent;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.ch-hero-button:hover {
    background-color: rgba(255, 50, 0, 0.1);
    color: #ffffff;
    cursor: pointer;
    border-color: #fff;
}

.ch-socials {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.ch-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--wp--preset--color--white);
    text-decoration: none;
}

.ch-social-link:hover {
    color: var(--wp--preset--color--orange);
}

.ch-social-link span {
    font-size: 0;
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.icon-facebook { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M279.1 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.4 0 225.4 0c-73.22 0-121.1 44.38-121.1 124.7v70.62H22.89V288h81.39v224h100.2V288z'/%3E%3C/svg%3E"); }
.icon-instagram { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E"); }
.icon-x { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.6 318.1 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E"); }
.icon-youtube { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z'/%3E%3C/svg%3E"); }
.icon-linkedin { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z'/%3E%3C/svg%3E"); }

@media (max-width: 992px) {
    .ch-hero {
        padding-top: 120px;
    }

    .ch-container {
        gap: 40px;
    }

    .ch-hero-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .ch-socials {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .ch-stats-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        width: 100%;
    }

    .ch-stat-box {
        width: 100%;
        max-width: 420px;
        text-align: center;
    }
    .ch-hero-button {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        text-align: center;
    }
}
