/**
 * @license MIT, https://opensource.org/license/MIT
 */

.hero {
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: clamp(1.5rem, 4vw, 3rem);
    background-color: var(--pico-background-color);
    -webkit-mask: var(--paws-edge) bottom / 100% 100% no-repeat;
    mask: var(--paws-edge) bottom / 100% 100% no-repeat;
}

.hero .background {
    position: absolute;
    inset: 0;
    margin: 0;
    z-index: -1;
}

.hero .background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes hero-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@media (prefers-reduced-motion: no-preference) {
    .hero .background.zoom img {
        animation: hero-zoom 10s ease-in-out infinite alternate;
    }
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem min(5%, 2rem) 4rem;
}

.hero:has(.background) {
    background-color: var(--paws-dark);
}

.cms-content > .hero:not(:has(.background)) {
    background-color: var(--paws-peach);
}

.hero:not(:has(.background)) h1 {
    color: var(--pico-contrast);
}

.hero:not(:has(.background)) p {
    color: var(--pico-color);
}

.hero:has(.background)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--paws-dots), linear-gradient(90deg, #16324FF2 0%, #16324FD9 45%, #16324F59 100%);
}

.hero:has(.background) :is(h1, p, .cms-text) {
    color: #FFFFFF;
}

.hero:has(.background) .btn:not(:first-child) {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.hero:has(.background) .btn:not(:first-child):hover {
    color: var(--pico-contrast);
    background-color: #FFFFFF;
}

.hero .first {
    text-align: start;
    width: 100%;
}

.hero .second {
    display: block;
    width: 100%;
    margin: auto;
}

.hero h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    max-width: 18ch;
    font-size: calc(var(--pico-font-size) * 2.75);
    font-weight: 600;
    line-height: 1.05;
}

.hero .subtitle {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.375rem 0.875rem;
    color: var(--pico-primary);
    font-size: calc(var(--pico-font-size) * 0.75);
    font-weight: 700;
    border-radius: 999px;
    background-color: #FFFFFF;
}

.hero:has(.background) .subtitle {
    color: var(--pico-secondary-inverse);
    background-color: var(--pico-secondary);
}

.hero p {
    line-height: 1.6;
    color: var(--pico-muted-color);
    font-size: calc(var(--pico-font-size) * 0.85);
    font-weight: 400;
    max-width: 38rem;
}

.hero .actions {
    padding: 1.5rem 0;
}

.hero .btn {
    margin: 0.5rem 0.75rem 0.5rem 0;
}

.hero picture {
    margin-top: 3rem;
}

.hero .second picture {
    border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%;
    overflow: hidden;
    box-shadow: 0 1.5rem 3rem -1rem #16324F59;
    width: fit-content;
    margin: 3rem 0 0;
    display: block;
}

.hero .second img {
    display: block;
}

.hero .second:not(.multiple) img {
    aspect-ratio: 1;
    object-fit: cover;
}

.hero .second.multiple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
    gap: 1rem;
    max-width: 54rem;
    margin-top: 3rem;
}

.hero .second.multiple.swiffy-slider {
    --swiffy-slider-item-ratio: 4 / 3;
    display: block;
}

.hero .second.multiple picture,
.hero .second.multiple video {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.hero .second.multiple picture {
    aspect-ratio: 4 / 3;
    border-radius: calc(var(--pico-border-radius) * 2);
}

.hero .second.multiple img,
.hero .second.multiple video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
    object-fit: cover;
}

@media screen and (min-width: 768px) {
    .hero .container {
        padding: 7.5rem min(5%, 2rem) 6rem;
    }

    .hero h1 {
        font-size: calc(var(--pico-font-size) * 4.25);
    }

    .hero p {
        font-size: calc(var(--pico-font-size) * 1);
    }
}

@media screen and (min-width: 992px) {
    .hero .container:has(> .first + .second:not(.multiple)) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 4rem;
    }

    .hero .first + .second:not(.multiple) picture {
        margin: 0;
    }
}
