/* Homepage hero */
.home-header-banner {
    overflow: visible;
    border-bottom: 0;
    background:
        radial-gradient(circle at calc(100% + 5rem) calc(100% + 4rem),
            rgba(var(--secondary_color), 0.22) 0%,
            rgba(var(--secondary_color), 0.18) 18%,
            transparent 54%),
        radial-gradient(circle at top right, rgba(var(--secondary_color), 0.24), transparent 30%),
        linear-gradient(90deg,
            rgb(var(--primary_color)) 0%,
            rgba(var(--primary_color), 0.9) 32%,
            rgba(var(--footer_text_color), 0.58) 68%,
            rgb(var(--secondary_color)) 100%);
}

.home-header-banner::before,
.home-header-banner::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.home-header-banner::before {
    top: -110px;
    inset-inline-start: clamp(-70px, -2vw, -24px);
    width: clamp(220px, 24vw, 320px);
    height: clamp(220px, 24vw, 320px);
    background: rgba(var(--elements_background_color), 0.1);
    filter: blur(18px);
}

.home-header-banner::after {
    content: none;
}

.home-header-banner .home-hero-shell {
    position: relative;
    z-index: 1;
    padding-top: clamp(0px, 0vw, 88px);
    padding-bottom: clamp(0px, 0vw, 76px);
}

.home-hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
    align-items: center;
    gap: clamp(12px, 2vw, 34px);
    min-height: clamp(440px, 38vw, 560px);
}

.home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    text-align: start;
}

.home-hero-copy {
    margin-bottom: 32px;
}

.home-header-banner .home-hero-title {
    margin-bottom: 18px;
    color: rgb(var(--footer_heading_color));
    font-size: clamp(2.75rem, 5vw, 4.9rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.home-header-banner .home-hero-title .hero-title-emphasis {
    color: rgb(var(--secondary_color));
}

.home-header-banner .home-hero-text {
    margin-bottom: 0;
    max-width: 600px;
    color: rgba(var(--footer_heading_color), 0.88);
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.75;
}

.home-header-banner .home-search-wrap {
    width: 100%;
    max-width: 600px;
    margin-top: 0;
    align-self: flex-start;
}

.home-header-banner .home-hero-search,
.home-header-banner .home-search,
.home-header-banner .header-search {
    position: relative;
    z-index: 1200;
}

.home-header-banner .header-search .search-input input {
    min-height: 72px;
    padding-left: 28px !important;
    padding-right: 88px;
    padding-inline-start: 28px !important;
    padding-inline-end: 88px;
    border: 1px solid rgba(var(--elements_background_color), 0.24);
    background: rgba(var(--elements_background_color), 0.96);
    box-shadow: 0 24px 50px rgba(var(--primary_color), 0.22);
}

.home-header-banner .header-search .search-input input::placeholder {
    color: rgba(var(--primary_color), 0.52);
}

.home-header-banner .header-search .search-input .icon {
    top: 8px;
    right: 10px;
    transform: none;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgb(var(--primary_color)) 0%, rgba(var(--primary_color), 0.82) 100%);
    box-shadow: 0 16px 30px rgba(var(--primary_color), 0.34);
}

.home-header-banner .header-search .search-results {
    top: calc(100% + 10px);
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    z-index: 1250;
    box-shadow: 0 26px 52px rgba(var(--primary_color), 0.18);
}

.home-hero-media {
    position: relative;
    align-self: end;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: clamp(470px, 44vw, 620px);
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.home-hero-media::after {
    content: none;
}

.home-hero-media-bg,
.home-hero-media-image {
    display: block;
    height: 100%;
}

.home-hero-media-bg {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.home-hero-media-image {
    position: relative;
    z-index: 1;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: right bottom;
    transform: translateX(3%) scale(1.1);
    transform-origin: bottom right;
}

@media (max-width: 1199.98px) {
    .home-hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
        gap: 20px;
    }

    .home-hero-content {
        max-width: 660px;
    }

    .home-header-banner .home-hero-title {
        font-size: clamp(2.5rem, 4.8vw, 4rem);
    }

    .home-hero-media {
        height: clamp(430px, 42vw, 560px);
    }

    .home-hero-media-image {
        height: 116%;
        max-width: 114%;
        transform: translateX(2%) scale(1.08);
    }
}

@media (max-width: 991.98px) {
    .home-header-banner .home-hero-shell {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .home-hero-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        overflow: visible;
        border-radius: 32px;
        isolation: isolate;
    }

    .home-hero-layout::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        border-radius: inherit;
        background: linear-gradient(90deg,
            rgba(var(--text_color), 0.92) 0%,
            rgba(var(--primary_color), 0.84) 38%,
            rgba(var(--primary_color), 0.54) 68%,
            rgba(var(--primary_color), 0.14) 100%);
    }

    .home-hero-content {
        padding: 28px;
        max-width: 100%;
        border-radius: 28px;
        background: rgba(var(--primary_color), 0.16);
        backdrop-filter: blur(4px);
    }

    .home-hero-media {
        position: absolute;
        inset: 0;
        inset-inline-start: 20%;
        height: auto;
        min-height: 100%;
        border-radius: inherit;
        overflow: hidden;
        clip-path: inset(0 round 32px);
        box-shadow: none;
    }

    .home-hero-media::after {
        content: none;
    }

    .home-hero-media-bg {
        display: block;
        inset: auto -10% -6% auto;
        width: auto;
        height: 118%;
        opacity: 0.24;
        filter: blur(28px) saturate(0.86);
        object-fit: contain;
        object-position: right bottom;
        transform: scale(1.12);
        transform-origin: bottom right;
    }

    .home-hero-media-image {
        position: absolute;
        inset: auto -6% -3% auto;
        width: auto;
        height: 104%;
        max-width: none;
        opacity: 0.28;
        object-fit: contain;
        object-position: right bottom;
        transform: scale(1.1);
        transform-origin: bottom right;
    }
}

@media (max-width: 575.98px) {
    .home-header-banner .home-hero-shell {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .home-hero-layout {
        border-radius: 24px;
    }

    .home-hero-media {
        inset-inline-start: 8%;
        clip-path: inset(0 round 24px);
    }

    .home-hero-content {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .home-header-banner .home-hero-title {
        font-size: clamp(2.15rem, 10vw, 3rem);
    }

    .home-header-banner .home-search-wrap {
        max-width: 100%;
    }

    .home-header-banner .header-search .search-input input {
        min-height: 66px;
        padding-left: 22px !important;
        padding-right: 76px;
        padding-inline-start: 22px !important;
        padding-inline-end: 76px;
    }

    .home-header-banner .header-search .search-input .icon {
        top: 8px;
        right: 8px;
        width: 50px;
        height: 50px;
    }

    .home-hero-media-bg {
        inset-inline-end: -22%;
        inset-block-end: -8%;
        height: 110%;
        opacity: 0.2;
    }

    .home-hero-media-image {
        inset-inline-end: -16%;
        inset-block-end: -4%;
        height: 92%;
        opacity: 0.2;
    }
}

/* Business homepage hero */
.business-hero-banner {
    overflow: hidden;
    border-bottom: 0;
    background:
        radial-gradient(circle at top right, rgba(var(--business_button_color), 0.22), transparent 30%),
        linear-gradient(90deg,
            rgb(var(--primary_color)) 0%,
            rgba(var(--primary_color), 0.9) 32%,
            rgba(var(--footer_text_color), 0.58) 68%,
            rgb(var(--business_button_color)) 100%);
}

.business-hero-banner::before,
.business-hero-banner::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.business-hero-banner::before {
    top: -120px;
    inset-inline-start: clamp(-72px, -2vw, -24px);
    width: clamp(220px, 24vw, 320px);
    height: clamp(220px, 24vw, 320px);
    background: rgba(var(--elements_background_color), 0.1);
    filter: blur(18px);
}

.business-hero-banner::after {
    bottom: -150px;
    inset-inline-end: clamp(-72px, -3vw, -24px);
    width: clamp(250px, 27vw, 370px);
    height: clamp(250px, 27vw, 370px);
    background: rgba(var(--business_button_color), 0.22);
    filter: blur(24px);
}

.business-hero-banner .business-hero-shell {
    position: relative;
    z-index: 1;
    padding-top: clamp(0px, 0vw, 92px);
    padding-bottom: clamp(0px, 0vw, 78px);
}

.business-hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(300px, 0.86fr);
    align-items: center;
    gap: clamp(30px, 3.8vw, 68px);
    min-height: clamp(430px, 37vw, 540px);
}

.business-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    text-align: start;
}

.business-hero-copy {
    margin-bottom: 30px;
}

.business-hero-banner .business-hero-title {
    margin-bottom: 18px;
    color: rgb(var(--footer_heading_color));
    font-size: clamp(2.75rem, 5vw, 4.85rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.business-hero-banner .business-hero-title .hero-title-emphasis {
    color: rgb(var(--business_button_color));
}

.business-hero-banner .business-hero-text {
    margin-bottom: 0;
    max-width: 600px;
    color: rgba(var(--footer_heading_color), 0.88);
    font-size: clamp(1rem, 1.42vw, 1.18rem);
    line-height: 1.75;
}

.business-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.business-hero-actions .business-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding-inline: 1.6rem;
    border-radius: 999px;
    box-shadow: 0 18px 34px rgba(var(--primary_color), 0.2);
}

.business-hero-actions .business-hero-btn-alt {
    border-width: 1.5px;
    background: rgba(var(--elements_background_color), 0.08);
    color: rgb(var(--footer_heading_color));
}

.business-hero-actions .business-hero-btn-alt:hover,
.business-hero-actions .business-hero-btn-alt:focus {
    background: rgba(var(--elements_background_color), 0.16);
    color: rgb(var(--footer_heading_color));
}

.business-hero-media {
    position: relative;
    align-self: end;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: clamp(430px, 40vw, 560px);
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.business-hero-media::after {
    content: none;
}

.business-hero-media-bg,
.business-hero-media-image {
    display: block;
    width: 100%;
    height: 100%;
}

.business-hero-media-bg {
    display: none;
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center bottom;
}

.business-hero-media-image {
    position: relative;
    z-index: 1;
    width: auto;
    height: 110%;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
    padding-top: 0;
    transform: scale(1.04);
    transform-origin: bottom center;
}

@media (max-width: 1199.98px) {
    .business-hero-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
        gap: 32px;
    }

    .business-hero-content {
        max-width: 650px;
    }

    .business-hero-banner .business-hero-title {
        font-size: clamp(2.45rem, 4.7vw, 4rem);
    }
}

@media (max-width: 991.98px) {
    .business-hero-banner .business-hero-shell {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .business-hero-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        overflow: hidden;
        border-radius: 32px;
        isolation: isolate;
    }

    .business-hero-layout::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        border-radius: inherit;
        background: linear-gradient(90deg,
            rgba(var(--text_color), 0.94) 0%,
            rgba(var(--primary_color), 0.86) 38%,
            rgba(var(--primary_color), 0.58) 68%,
            rgba(var(--primary_color), 0.16) 100%);
    }

    .business-hero-content {
        max-width: 100%;
        padding: 30px 28px;
        border-radius: 28px;
        background: rgba(var(--primary_color), 0.16);
        backdrop-filter: blur(4px);
    }

    .business-hero-media {
        position: absolute;
        inset: 0;
        height: auto;
        min-height: 100%;
        border-radius: inherit;
        overflow: hidden;
        box-shadow: none;
    }

    .business-hero-media::after {
        content: none;
    }

    .business-hero-media-bg {
        display: block;
        filter: blur(14px) saturate(0.88);
        opacity: 0.44;
        transform: scale(1.08);
    }

    .business-hero-media-image {
        opacity: 0;
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .business-hero-banner .business-hero-shell {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .business-hero-layout {
        border-radius: 24px;
    }

    .business-hero-content {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .business-hero-banner .business-hero-title {
        font-size: clamp(2.1rem, 10vw, 3rem);
    }

    .business-hero-actions {
        gap: 12px;
    }

    .business-hero-actions .business-hero-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Blog index hero copy */
.blog-header-row-featured .blog-header-copy-col,
.blog-header-row-featured .blog-header-search-col {
    position: relative;
    z-index: 1;
}

.blog-header-row-featured .blog-header-copy {
    max-width: 360px;
}

.blog-header-row-featured .blog-header-feature-title {
    color: rgb(var(--footer_heading_color));
    font-size: clamp(1.75rem, 2vw, 2.3rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.blog-header-row-featured .blog-header-feature-text {
    color: rgb(var(--secondary_color));
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    font-weight: 600;
    line-height: 1.45;
}

@media (min-width: 992px) {
    .blog-header-row-featured .blog-header-copy-col {
        display: flex;
        justify-content: flex-end;
    }

    .blog-header-row-featured .blog-header-search-col {
        inset-inline-start: 32px;
    }
}

@media (max-width: 991.98px) {
    .blog-header-row-featured .blog-header-copy {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .blog-header-row-featured .blog-header-feature-title {
        font-size: clamp(1.35rem, 5.5vw, 1.8rem);
    }
}
