/*
 * Hero da home do BentoCupons.
 * Fundo continuo, duas colunas equilibradas no desktop e so o texto no celular.
 * Carregado depois do CSS compilado para nao exigir build.
 */

#main-content:has(> .home-hero--illustrated) {
    padding-top: 0;
}

.home-hero.home-hero--illustrated {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 32px;
    min-height: 0;
    margin: 0 0 40px;
    padding: 56px 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.home-hero--illustrated::before {
    content: "";
    position: absolute;
    z-index: -2;
    top: 0;
    bottom: -72px;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    pointer-events: none;
    /* Some aos poucos no fundo da pagina: sem linha de divisao. */
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 100%);
    background:
        radial-gradient(ellipse 42% 85% at 80% 50%, rgba(200, 172, 255, .30) 0, transparent 78%),
        linear-gradient(110deg, #fff 0%, #fdfbff 48%, #f5efff 100%);
}

/* Uma coluna de texto com largura unica: tudo termina no mesmo ponto. */
.home-hero--illustrated .home-hero-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 520px;
}

.home-hero--illustrated .home-hero-copy > .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: #efe9ff;
    color: #5d43c8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .045em;
}

.home-hero--illustrated h1 {
    margin-top: 16px;
    color: #18181b;
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.045em;
}

.home-hero--illustrated h1 span {
    color: #5d43c8;
}

.home-hero--illustrated .home-hero-description {
    margin: 16px 0 28px;
    max-width: none;
    color: #52525b;
    font-size: 17px;
    line-height: 1.6;
}

.home-hero-actions {
    display: flex;
}

.home-hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s, transform .2s;
}

.home-hero-actions a:hover {
    transform: translateY(-2px);
}

.home-hero-actions a:focus-visible {
    outline: 2px solid #5d43c8;
    outline-offset: 4px;
}

.home-hero-primary-cta {
    background: #5d43c8;
    color: #fff;
    box-shadow: 0 12px 26px -15px rgba(61, 38, 153, .8);
}

.home-hero-primary-cta:hover {
    background: #4932a7;
}

.home-hero-primary-cta span {
    margin-left: 2px;
    font-size: 20px;
    font-weight: 500;
}

.home-hero-quick-search {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #ece6f8;
}

.home-hero-search-label {
    margin-bottom: 10px;
    color: #52525b;
    font-size: 13px;
    font-weight: 600;
}

.home-hero-quick-search .store-search-field {
    min-height: 50px;
    padding: 4px 5px 4px 14px;
    border-color: #e3daee;
    border-radius: 12px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 6px 25px -18px rgba(40, 23, 92, .35);
}

.home-hero-quick-search .store-search-field input {
    height: 40px;
    font-size: 14px;
}

.home-hero-quick-search .store-search-field button {
    min-height: 40px;
    padding-inline: 16px;
}

/* A imagem ja vem recortada e com bordas suaves: pode passar um pouco da
   coluna sem aparecer quina. */
.home-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin: -40px -4% -40px 0;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.home-hero-mascot {
    display: block;
    width: 118%;
    max-width: 760px;
    height: auto;
    /* Base da arte se desfaz no fundo, sem corte reto. */
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 72%, transparent 100%);
}

@media (max-width: 1023px) {
    .home-hero.home-hero--illustrated {
        gap: 28px;
        padding: 44px 0;
    }

    .home-hero--illustrated h1 {
        font-size: clamp(34px, 4.6vw, 44px);
    }

    .home-hero--illustrated .home-hero-description {
        font-size: 16px;
    }
}

/* Celular: so o texto, a busca e o botao. */
@media (max-width: 767px) {
    .home-hero.home-hero--illustrated {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin-bottom: 28px;
        padding: 28px 0 24px;
    }

    .home-hero--illustrated::before {
        background: linear-gradient(175deg, #fff 5%, #f7f2ff 85%, #fff 100%);
    }

    .home-hero--illustrated .home-hero-copy {
        max-width: none;
    }

    .home-hero--illustrated h1 {
        font-size: clamp(30px, 8.4vw, 38px);
    }

    .home-hero--illustrated .home-hero-description {
        margin: 12px 0 20px;
        font-size: 15px;
    }

    .home-hero-actions a {
        flex: 1 1 auto;
        min-height: 48px;
        font-size: 15px;
    }

    .home-hero-quick-search {
        margin-top: 20px;
        padding-top: 18px;
    }

    .home-hero-visual {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-actions a { transition: none; }
    .home-hero-actions a:hover { transform: none; }
}
