/* Hero Banner */
.hero-banner {
    position: relative;
    isolation: isolate;
    color: #fff;

    background-color: transparent;

    display: block;
    overflow: hidden;
}

/* Rendered media background for responsive srcset/sizes. */
.hero-banner__bg-media {
    position: relative;
    display: block;
    width: 100%;
    z-index: 0;
}

.hero-banner__bg {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    /* The <img> markup hard-codes width="1920" height="1080" (a 16:9 ratio), but
       the real hero artwork is wider/shorter. That mismatched attribute ratio made
       the box taller than the image, so object-fit:contain letterboxed the extra
       height to the bottom (object-position: center top) → a white gap below the
       image on wide screens. aspect-ratio:auto makes the box follow the loaded
       image's actual ratio, so the wrapper collapses exactly to the image height:
       full width, no crop, no letterbox, no gap. */
    aspect-ratio: auto;
    object-fit: contain;
    object-position: var(--hero-banner-bg-position, center top);
    pointer-events: none;
}

/* overlay */
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(255, 201, 209, 0.25) 0%,
        rgba(223, 142, 156, 0.18) 40%,
        rgba(185, 102, 121, 0.10) 100%
    );
}

.hero-banner__inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    padding-left: var(--page-gutter-left, 1rem);
    padding-right: var(--page-gutter-right, 1rem);
    z-index: 2;
}

.hero-banner__content {
    display: grid;
    gap: 1rem;
    max-width: 800px;
}

.hero-banner__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: var(--wp--preset--font-size--caption);
    opacity: 0.85;
    margin: 0;
}

.hero-banner__title {
    margin: 0;
    line-height: normal;
    display: grid;
    gap: 0.35rem;
    font-size: var(--wp--preset--font-size--h-1);
    font-weight: 400;
    white-space: pre-line;
    font-family: var(--wp--preset--font-family--poppins);
    letter-spacing: var(--noyona-letter-spacing-bugfix);
    color: #fff;
    max-width: 700px;
}

.hero-banner__title-line--accent {
    font-style: italic;
    font-weight: 400;
    
}

.hero-banner__title-line span,
.hero-banner__title .hero-banner__accent {
    font-family: var(--wp--preset--font-family--poppins);
    font-style: italic;
    font-weight: 400;
}

.hero-banner__title .hero-banner__accent-green {
    position: relative;
    display: inline-block;
    color: #97ab75;
    font-family: var(--wp--preset--font-family--poppins);
    font-style: italic;
    font-weight: 400;
    line-height: normal;
    padding-bottom: 0.24em;
}

.hero-banner__title .hero-banner__accent-green::after {
    content: "";
    position: absolute;
    left: -4%;
    bottom: 0.02em;
    width: 112%;
    height: 0.075em;
    background: var(--noyona-color-pink-muted-rose);
    border-radius: 999px;
    transform: rotate(-4deg);
    transform-origin: left center;
}

.hero-banner__title .hero-banner__title-white {
    color: #fff;
    font-family: var(--wp--preset--font-family--poppins);
    font-style: normal;
    font-weight: 400;
}

.hero-banner__title .hero-banner__title-white .hero-banner__accent {
    color: #fff;
}

.hero-banner__body {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--wp--preset--font-size--body);
    width: 100%;
    /* max-width: 733px; */
    line-height: normal;
    letter-spacing: var(--noyona-letter-spacing-bugfix);
    font-family: var(--wp--preset--font-family--poppins);
    font-weight: 400;
}

.hero-banner__search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 800px;
    width: min(
        800px,
        calc(100vw - var(--page-gutter-left, 1rem) - var(--page-gutter-right, 1rem))
    );
    background: #ffffff;
    border-radius: var(--noyona-radius-cta) !important;
    padding: clamp(0.2rem, 0.35vw, 0.3rem) clamp(0.4rem, 0.9vw, 0.7rem) clamp(0.2rem, 0.35vw, 0.3rem) clamp(0.75rem, 1.5vw, 1rem);
    min-height: clamp(44px, 4.2vw, 54px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    /* margin-top: 10rem; */
    box-sizing: border-box;
}

.hero-banner__search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: clamp(15px, 1.2vw, 18px);
    padding: clamp(0.3rem, 0.7vw, 0.45rem) 0.1rem;
    background: transparent;
    color: #333;
    min-width: 0;
}

.hero-banner__search-input::placeholder {
    color: #8f8f8f;
}

.hero-banner__search-input::-webkit-search-cancel-button,
.hero-banner__search-input::-webkit-search-decoration,
.hero-banner__search-input::-webkit-search-results-button,
.hero-banner__search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.hero-banner__search-btn {
    border: none;
    background: transparent;
    color: #767676;
    width: clamp(28px, 2.2vw, 34px);
    height: clamp(28px, 2.2vw, 34px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hero-banner__search-btn:hover,
.hero-banner__search-btn:focus-visible {
    color: #4f4f4f;
}

.hero-banner__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 1.1vw, 0.85rem) clamp(1rem, 1.8vw, 1.4rem);
    background: var(--noyona-cta-primary-bg);
    color: var(--noyona-cta-primary-text);
    border: 1px solid var(--noyona-cta-primary-border);
    border-radius: 16px !important;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-width: clamp(160px, 20vw, 250px);
    max-width: 100%;
}

.hero-banner--button-center .hero-banner__cta {
    justify-self: center;
}

.hero-banner--button-right .hero-banner__cta {
    justify-self: end;
}

.hero-banner--button-center .hero-banner__inner,
.hero-banner--button-right .hero-banner__inner {
    width: 100%;
}

.hero-banner--button-center .hero-banner__content,
.hero-banner--button-right .hero-banner__content {
    width: 100%;
}

@media (min-width: 768px) {
    .hero-banner--button-center .hero-banner__inner {
        align-items: center;
        justify-content: center;
    }
}

.hero-banner__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
    color: var(--noyona-cta-primary-hover-text);
    background: var(--noyona-cta-primary-hover-bg);
    border: 1px solid var(--noyona-cta-primary-hover-border);
}

@media (max-width: 980px) {
    .hero-banner.hero-banner--has-search .hero-banner__inner {
        justify-content: center;
    }

    .hero-banner.hero-banner--has-search .hero-banner__content {
        justify-items: center;
        text-align: center;
    }

    .hero-banner.hero-banner--has-search .hero-banner__title,
    .hero-banner.hero-banner--has-search .hero-banner__body {
        text-align: center;
    }

    .hero-banner.hero-banner--has-search .hero-banner__search {
        margin-inline: auto;
    }
}

@media (max-width: 1280px) {
    .hero-banner__inner {
        padding-inline: clamp(18px, 3vw, 28px);
    }
}

@media (max-width: 1024px) {
    .hero-banner__bg {
        object-position: var(--hero-banner-bg-position-mobile, center top);
    }

    .hero-banner__inner {
        max-width: none;
        padding-inline: clamp(16px, 4vw, 24px);
        padding-block: clamp(1.5rem, 4vh, 2.5rem);
    }

    .hero-banner__search {
        margin-inline: auto;
    }
}

/* If the viewport is short/landscape, reduce padding/height a bit so the hero doesn't feel cramped. */
@media (max-width: 1024px) and (max-height: 700px) {
    .hero-banner__inner {
        padding-block: clamp(1rem, 3vh, 1.75rem);
    }
}

@media (max-width: 767px) {
    .hero-banner {
        /* optional: if alignfull, border-radius can show page background at corners */
        border-radius: 0;
        padding-block: 0;
    }

    .hero-banner--button-center .hero-banner__inner {
        align-items: flex-end;
        justify-content: center;
        padding-bottom: clamp(16px, 5vw, 28px);
    }

    .hero-banner--button-center .hero-banner__content {
        justify-items: center;
    }
}

