@import url('../hero-default/hero-default.css');

body .hero-default-section.hero-default.green-theme .hero-default-title,
body .hero-default-section.hero-default.white-theme .hero-default-title {
    font-size: 40px;
}

.hero-default-section.hero-default .hero-default-content {
    max-width: 655px;
    display: flex;
    flex-direction: column;
    height: fit-content;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 68px 108px 85px 115px;
    z-index: 1;
}

.hero-default-section .hero-default {
    align-items: center;
}

.hero-default-section.hero-default .hero-default-title {
    width: 100%;
    margin: 0;
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: 0;
}

.hero-default-section.hero-default .hero-default-text {
    margin-top: 26px;
    color: #333;
    line-height: 1.4em;
}

.hero-default-section .hero-default-text p {
    margin: 0 0 26px;
}

.hero-default-section .hero-default-text strong {
    margin-bottom: 0;
    font-weight: 500;
}

.hero-default-section .hero-default-icon-title {
    font-size: var(--wp--preset--font-size--paragraph);
}

.hero-default-section .hero-default-image {
    position: relative;
}

.hero-default-section .hero-default-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-default-highlights {
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
}

.hero-default-highlight {
    position: absolute;
    top: var(--highlight-y);
    left: var(--highlight-x);
    width: 42px;
    height: 42px;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background-color: #009fe3;
    box-shadow: 0 2px 5px rgba(0, 32, 67, 0.25);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
}

.hero-default-highlight-plus::before,
.hero-default-highlight-plus::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    transform: translate(-50%, -50%);
    background-color: currentColor;
}

.hero-default-highlight-plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.hero-default-highlight-description {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: calc(100% + 10px);
    width: max-content;
    max-width: min(280px, 45vw);
    padding: 12px 16px;
    transform: translate(8px, -50%);
    background-color: #fff;
    box-shadow: 0 3px 12px rgba(0, 32, 67, 0.18);
    color: var(--wp--preset--color--primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.hero-default-highlight--align-left .hero-default-highlight-description {
    right: calc(100% + 10px);
    left: auto;
    transform: translate(-8px, -50%);
}

.hero-default-highlight:hover,
.hero-default-highlight:focus-visible {
    z-index: 3;
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.hero-default-highlight:hover .hero-default-highlight-description,
.hero-default-highlight:focus-visible .hero-default-highlight-description {
    transform: translate(0, -50%);
    opacity: 1;
    visibility: visible;
}

.hero-default-section .hero-default-section-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 27px;
    padding: 16px 28px;
    border: 1px solid transparent;
    border-radius: 3px;
    background-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.hero-default-section .hero-default-section-link svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}

.hero-default-section .hero-default-section-link svg path {
    stroke: currentColor;
}

.hero-default-section .hero-default-section-link:hover,
.hero-default-section .hero-default-section-link:focus-visible {
    border-color: var(--wp--preset--color--accent);
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--background);
}

.hero-default-section .hero-default-image img {
    max-height: 100%;
}

@media (min-width: 768px) {
    .hero-default-highlight {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 1280px) {

    .hero-default-section.hero-default .hero-default-inner {
        display: flex;
        flex-direction: column;
    }

    .hero-default-section.hero-default .hero-default-content {
        order: 1;
        width: 100%;
        padding: 56px 48px;
    }
    
    .hero-default-section.hero-default .hero-default-content{
        max-width: 100%;
    }

    .hero-default-section.hero-default .hero-default-image,
    .hero-default-section.hero-default.green-theme .hero-default-image {
        order: 2;
        width: 100%;
        aspect-ratio: auto;
    }

    .hero-default-section.hero-default .hero-default-image img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16/10;
        object-fit: cover;
        object-position: center;
    }

    .hero-default-section .hero-default-image picture {
        height: auto;
    }

    .hero-default-section.hero-default .hero-default-title,
    .hero-default-section.hero-default .hero-default-text {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    body .hero-default-section.hero-default.green-theme .hero-default-title,
    body .hero-default-section.hero-default.white-theme .hero-default-title {
        font-size: clamp(32px, 9vw, 40px);
    }

    .hero-default-section.hero-default .hero-default-content {
        padding: 40px 24px 48px;
    }

    .hero-default-section.hero-default .hero-default-title {
        line-height: 1.1;
    }

    .hero-default-section.hero-default .hero-default-text {
        margin-top: 24px;
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-default-section .hero-default-text p {
        margin-bottom: 22px;
    }

    .hero-default-section .hero-default-section-link {
        width: 100%;
        max-width: 402px;
        box-sizing: border-box;
        margin-top: 28px;
        font-size: 14px;
    }

    .hero-default-highlight-description {
        top: auto;
        bottom: calc(100% + 10px);
        left: 50%;
        width: max-content;
        max-width: min(240px, calc(100vw - 48px));
        transform: translate(-50%, -8px);
        font-size: 14px;
    }

    .hero-default-highlight--align-left .hero-default-highlight-description {
        right: 0;
        left: auto;
        transform: translate(0, -8px);
    }

    .hero-default-highlight:hover .hero-default-highlight-description,
    .hero-default-highlight:focus-visible .hero-default-highlight-description {
        transform: translate(-50%, 0);
    }

    .hero-default-highlight--align-left:hover .hero-default-highlight-description,
    .hero-default-highlight--align-left:focus-visible .hero-default-highlight-description {
        transform: translate(0, 0);
    }

    .hero-default-section.hero-default .hero-default-content {
        padding: 48px 24px;
    }
}

@media (max-width: 579px) {
    .hero-default-section.hero-default .hero-default-image img {
        height: 537px;
        aspect-ratio: auto;
        object-fit: cover;
    }

    .hero-default-highlight:nth-child(1) {
        --highlight-x: 13.5% !important;
        --highlight-y: 43.7% !important;
    }

    .hero-default-highlight:nth-child(2) {
        --highlight-x: 23% !important;
        --highlight-y: 66.2% !important;
    }

    .hero-default-highlight:nth-child(3) {
        --highlight-x: 83.2% !important;
        --highlight-y: 64.7% !important;
    }

    .hero-default-highlight:nth-child(4) {
        --highlight-x: 37.8% !important;
        --highlight-y: 71.6% !important;
    }

    .hero-default-highlight:nth-child(5) {
        --highlight-x: 24.3% !important;
        --highlight-y: 82.4% !important;
    }

    .hero-default-highlight:nth-child(6) {
        --highlight-x: 41.1% !important;
        --highlight-y: 80.7% !important;
    }

    .hero-default-highlight:nth-child(7) {
        --highlight-x: 59.2% !important;
        --highlight-y: 84.3% !important;
    }

    .hero-default-highlight:nth-child(8) {
        --highlight-x: 50.8% !important;
        --highlight-y: 95.1% !important;
    }

    .hero-default-highlight:nth-child(1) .hero-default-highlight-description,
    .hero-default-highlight:nth-child(2) .hero-default-highlight-description,
    .hero-default-highlight:nth-child(5) .hero-default-highlight-description {
        left: 0;
        transform: translate(0, -8px);
    }

    .hero-default-highlight:nth-child(1):hover .hero-default-highlight-description,
    .hero-default-highlight:nth-child(1):focus-visible .hero-default-highlight-description,
    .hero-default-highlight:nth-child(2):hover .hero-default-highlight-description,
    .hero-default-highlight:nth-child(2):focus-visible .hero-default-highlight-description,
    .hero-default-highlight:nth-child(5):hover .hero-default-highlight-description,
    .hero-default-highlight:nth-child(5):focus-visible .hero-default-highlight-description {
        transform: translate(0, 0);
    }

    .hero-default-highlight:nth-child(3) .hero-default-highlight-description {
        right: 0;
        left: auto;
        transform: translate(0, -8px);
    }

    .hero-default-highlight:nth-child(3):hover .hero-default-highlight-description,
    .hero-default-highlight:nth-child(3):focus-visible .hero-default-highlight-description {
        transform: translate(0, 0);
    }
}

@media (max-width: 479px) {
    .hero-default-highlight {
        width: 42px;
        height: 42px;
        border-width: 4px;
    }

    .hero-default-highlight-plus::before,
    .hero-default-highlight-plus::after {
        width: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-default-highlight-description {
        transition: none;
    }
}
