/* Hero inspirado na direção editorial da referência enviada. */
.hero-refresh {
    --hero-green: #005654;
    --hero-green-dark: #004440;
    --hero-yellow: #f6c66b;
    --hero-yellow-hover: #ffb32b;
    --hero-light: #f3f8f7;
    --hero-soft: #dceeea;
    --hero-text: #173735;
    --hero-muted: #334155;

    position: relative;
    min-height: calc(100svh - 7rem);
    box-sizing: border-box;
    padding: clamp(2.25rem, 4vw, 3.75rem) 0 clamp(2.75rem, 5vw, 4rem) !important;
    overflow: hidden;
    color: var(--hero-text);
    text-align: left !important;
    background-color: var(--hero-light) !important;
    background-image:
        linear-gradient(160deg, transparent 0 53%, var(--hero-soft) 53%),
        radial-gradient(rgba(0, 86, 84, 0.16) 1px, transparent 1px) !important;
    background-size: auto, 22px 22px !important;
    background-position: center, 0 0 !important;
}

/* Círculo de contorno no canto, como na composição de referência. */
.hero-refresh::after {
    content: "";
    position: absolute;
    right: -150px;
    bottom: -185px;
    width: 470px;
    height: 470px;
    border: 2px solid rgba(0, 86, 84, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

/* Desliga o overlay verde do hero anterior. */
.hero-refresh > .absolute.inset-0 {
    display: none;
}

.hero-refresh > .container-custom {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 1120px;
    flex-direction: column;
    align-items: flex-start;
}

/* O selo sobe e passa a funcionar como eyebrow editorial. */
.hero-refresh > .container-custom > .inline-flex {
    order: 1;
    gap: 0.6rem;
    margin: 0 0 0.8rem;
    padding: 0;
    color: var(--hero-green);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.hero-refresh > .container-custom > .inline-flex::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    flex: 0 0 auto;
    background: var(--hero-yellow-hover);
    border-radius: 50%;
}

/* Esconde apenas os dois pontos tipográficos que envolviam o selo. */
.hero-refresh > .container-custom > .inline-flex {
    font-size: 0;
}

.hero-refresh > .container-custom > .inline-flex span {
    font-size: 0.78rem;
}

.hero-refresh h1 {
    order: 2;
    max-width: 940px;
    margin: 0 0 1.15rem;
    color: var(--hero-text) !important;
    font-size: clamp(3.75rem, 6.4vw, 6rem) !important;
    font-weight: 400;
    line-height: 0.98 !important;
    letter-spacing: -0.018em;
    text-align: left;
    text-shadow: none !important;
    filter: none !important;
}

.hero-refresh h1 span {
    display: block;
    color: var(--hero-green) !important;
}

.hero-refresh > .container-custom > p {
    order: 3;
    max-width: 690px;
    margin: 0 0 1.4rem;
    color: #202020 !important;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem) !important;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
}

.hero-refresh > .container-custom > .flex:last-child {
    order: 4;
    display: grid;
    width: 100%;
    max-width: 920px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.75rem);
    margin: 0;
}

/* As duas escolhas deixam de parecer cards e viram blocos editoriais. */
.hero-refresh > .container-custom > .flex:last-child > div {
    min-width: 0;
    padding: 0;
    color: var(--hero-text);
    text-align: left;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transform: none !important;
}

.hero-refresh > .container-custom > .flex:last-child > div + div {
    padding-left: clamp(1.5rem, 3vw, 2.75rem);
    border-left: 1px solid rgba(0, 86, 84, 0.22) !important;
}

.hero-refresh h3,
.hero-refresh > .container-custom > .flex:last-child > div:last-child h3 {
    margin: 0 0 0.45rem;
    color: var(--hero-green-dark) !important;
    font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
    font-weight: 400;
    line-height: 1.18;
}

.hero-refresh > .container-custom > .flex:last-child p,
.hero-refresh > .container-custom > .flex:last-child > div:last-child p {
    min-height: 3.2em;
    margin: 0 0 1rem;
    color: var(--hero-muted) !important;
    font-size: 0.96rem;
    line-height: 1.6;
}

.hero-refresh .btn-brand,
.hero-refresh .btn-outline {
    width: auto !important;
    min-height: 52px;
    padding: 0.85rem 1.4rem;
    border-radius: 7px;
    font-weight: 400;
    letter-spacing: 0.055em;
    box-shadow: none;
}

.hero-refresh .btn-brand,
.hero-refresh .group:hover .btn-brand {
    color: var(--hero-green-dark) !important;
    background: var(--hero-yellow) !important;
    border: 0 !important;
    box-shadow: 0 8px 20px rgba(0, 66, 64, 0.12);
}

.hero-refresh .btn-brand:hover,
.hero-refresh .group:hover .btn-brand:hover {
    background: var(--hero-yellow-hover) !important;
    transform: translateY(-2px) !important;
}

.hero-refresh .btn-outline {
    color: var(--hero-green) !important;
    background: transparent !important;
    border: 1px solid var(--hero-green) !important;
}

.hero-refresh .btn-outline:hover {
    color: white !important;
    background: var(--hero-green) !important;
    transform: translateY(-2px) !important;
}

.hero-refresh :focus-visible {
    outline: 3px solid #a26700 !important;
    outline-offset: 4px;
}

/* A seção seguinte não invade a primeira dobra do hero. */
.hero-refresh + #sobre {
    margin-top: 0 !important;
}

@media (max-width: 767px) {
    .hero-refresh {
        min-height: auto;
        padding: 3rem 0 4.5rem !important;
        background-image:
            linear-gradient(165deg, transparent 0 66%, var(--hero-soft) 66%),
            radial-gradient(rgba(0, 86, 84, 0.14) 1px, transparent 1px) !important;
    }

    .hero-refresh::after {
        right: -170px;
        bottom: -210px;
        width: 360px;
        height: 360px;
    }

    .hero-refresh h1 {
        font-size: clamp(3rem, 14vw, 4.6rem) !important;
        line-height: 1 !important;
    }

    .hero-refresh h1 br {
        display: none;
    }

    .hero-refresh > .container-custom > p {
        margin-bottom: 2rem;
    }

    .hero-refresh > .container-custom > .flex:last-child {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .hero-refresh > .container-custom > .flex:last-child > div + div {
        padding-top: 1.75rem;
        padding-left: 0;
        border-top: 1px solid rgba(0, 86, 84, 0.22) !important;
        border-left: 0 !important;
    }

    .hero-refresh > .container-custom > .flex:last-child p {
        min-height: 0;
    }

    .hero-refresh .btn-brand,
    .hero-refresh .btn-outline {
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-refresh *,
    .hero-refresh *::before,
    .hero-refresh *::after {
        transition-duration: 0.01ms !important;
    }
}
