:root {
    --header-bg: #577855;
    --header-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    --hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .25) 30%, rgba(0, 0, 0, .15) 60%, rgba(0, 0, 0, .35) 100%);
    --green: #2f7f3d;
    --green-2: #86a531;
}

body {
    font-family: "Montserrat", sans-serif;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    background: transparent;
    box-shadow: none;
    transition: background-color .35s ease, box-shadow .35s ease;
    will-change: background-color, box-shadow;
    transform: translateZ(0);
}

.site-header .navbar-brand img {
    height: 75px;
    margin: 10px 0px;
}

.navbar-toggler {
    background: #fff;
    margin-right: 20px;
}

.site-header .nav-link {
    font-weight: 600;
    letter-spacing: .2px;
    color: #fff;
    text-transform: uppercase;
}

.site-header .social {
    color: #000;
    opacity: .9;
}

/* ===== STATS BAND ===== */
.stats-band {
    position: relative;
    background: #2c7e3a;
    color: #fff;
    min-height: 340px;
    margin-top: -64px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.site-header .social:hover {
    opacity: 1;
}

.site-header.scrolled {
    background: var(--header-bg);
    box-shadow: var(--header-shadow);
    backdrop-filter: saturate(120%) blur(4px);
}

/* Mobile: header sempre branco */
@media (max-width: 991.98px) {
    .site-header {
        background: var(--header-bg) !important;
        box-shadow: var(--header-shadow) !important;
    }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.produtos_hero {
    min-height: 150px;
    max-height: 150px;
}

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

.hero .hero-bg .carousel,
.hero .hero-bg .carousel-inner,
.hero .hero-bg .carousel-item {
    height: 100%;
}

.hero .bg-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero .bg-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
}

/* Indicadores do carousel (bolinhas) */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .6);
    border: 0;
    margin: 0 6px;
}

.carousel-indicators .active {
    background-color: #BBD134;
}

/* Conteúdo em primeiro plano */
.hero-foreground {
    position: sticky;
    top: 120px;
    min-height: 50vh;
    display: grid;
    place-items: center;
    z-index: 2;
}

@supports (height: 100svh) {
    .hero-foreground {
        top: 20svh;
    }
}

.hero-content {
    pointer-events: auto;
}

.headline {
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}

.headline h1 {
    font-size: 35px;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: .75rem;
}

.headline h1 strong {
    font-weight: 700;
}

.headline p {
    font-size: clamp(1rem, .6vw + .8rem, 1.25rem);
    opacity: .95;
}

.cta-btn {
    background: #BBD134;
    color: #000;
    border: none;
    font-weight: 700;
    padding: .9rem 1.25rem;
    border-radius: 0px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    transition: transform .2s ease, box-shadow .2s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.hero-character {
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35));
    bottom: -150px;
    z-index: 1001;
    position: absolute;
    right: 20%;
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: min(6vw, 64px);
}

@media (max-width: 991.98px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .headline h1 {
        text-shadow: none;
    }

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

/* ===== SEÇÕES ===== */
.section-pad {
    padding: 50px 0px 0px 0px;
}

.eyebrow {
    color: #2c8a57;
    font-weight: 500;
    margin-top: 30px;
    font-size: 20px;
}

.about-mark {
    width: 26px;
    height: 26px;
    background:
        conic-gradient(#3baa5b 0 25%, transparent 0 50%, #86bf4f 0 75%, transparent 0);
    position: relative;
    display: inline-block;
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 1.25rem;
}

/* ===== GALERIA ===== */
.gallery-row {
    min-height: 350px;
}

.gallery-img {
    height: 100%;
    min-height: 350px;
    /* altura base */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (min-width: 992px) {
    .gallery-img {
        min-height: 350px;
    }
}

.separador_banner {
    position: relative;
    background-image: url('../../assets/img/separador_banner.png');
    background-repeat: no-repeat;
    height: 119px;
    margin-top: -30px;
    z-index: 1000;
}



.stats-band .stat .count {
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    font-weight: 700;
    line-height: 1;
    display: inline-block;
    color: #BBD134;
}

.stats-band .stat .label {
    margin-top: 6px;
    opacity: .95;
    font-size: 20px;
}

.stats-band-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    height: 36px;
    background: var(--green-2);
    clip-path: polygon(0 35%, 100% 0, 100% 100%, 0% 100%);
}

/* Personagem sobreposto à direita */
.mascot {
    position: absolute;
    right: 15%;
    bottom: -40px;
    width: clamp(220px, 24vw, 420px);
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35));
    z-index: 10;
}

/* ===== PRODUTOS ===== */
.products .lead {
    font-size: 1.05rem;
}

.btn-green {
    background: #9ec33b;
    color: #fff;
    font-weight: 600;
    border: none;
    padding: .9rem 1.2rem;
    border-radius: 0px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.btn-green:hover {
    filter: brightness(1.05);
    color: #111;
}

/* ===== PRODUTOS (ajustes para 5 cards colados) ===== */

/* grid base: 5 colunas no desktop, sem gap; em telas menores volta gap */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* fallback */
    gap: 24px;
    /* mobile/tablet */
}

/* desktop largo: 5 colunas e SEM gap (grudados) */
@media (min-width: 1200px) {
    .product-grid--tight {
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
    }
}

/* responsividade menor */
@media (max-width: 1199.98px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* card base (mantém padding interno) */
.product-card {
    position: relative;
    min-height: 330px;
    border-radius: 0;
    /* borda reta para colar sem frestas */
    padding: clamp(18px, 2.2vw, 28px);
    padding-bottom: 30px;
    text-align: center;
}

/* card base (mantém padding interno) */
.product-card:hover .can {
    top: -36px;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
    -ms-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}

/* imagem padrão posicionada à DIREITA */
.product-card .can {
    width: 71%;
    z-index: 1000;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .35));
    user-select: none;
    pointer-events: none;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

/* títulos/cores seguem o que já tinha */
.product-card .copy {
    position: relative;
    width: 100%;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}

.product-card .kicker {
    font-weight: 400;
    display: block;
    font-size: 20px;
    line-height: 20px;
    margin-bottom: 10px;
}

.product-card .title {
    margin: .25rem 0 0;
    font-weight: 900;
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    line-height: .85;
    text-transform: uppercase;
}

.product-card .sub {
    margin-top: .35rem;
    opacity: .95;
}

.product-card .break {
    display: block;
}

/* fundos (reaproveitando os já definidos) */
.card-forest {
    background: #3e6d3e;
    background-image: linear-gradient(8deg, rgba(255, 255, 255, .06), transparent 45%),
        radial-gradient(1200px 400px at -10% 120%, rgba(255, 255, 255, .05), transparent 60%);
}

.card-green {
    background: #3f8b3f;
    background-image: linear-gradient(8deg, rgba(255, 255, 255, .06), transparent 45%),
        radial-gradient(1000px 380px at 10% 120%, rgba(255, 255, 255, .05), transparent 60%);
}

.card-dark {
    background: #2c5f35;
    background-image: linear-gradient(8deg, rgba(255, 255, 255, .06), transparent 45%),
        radial-gradient(1200px 380px at 20% 120%, rgba(255, 255, 255, .05), transparent 60%);
}

.card-olive {
    background: #9eb53a;
}

.card-title {
    font-weight: 600;
}

.card_list_products {
    -webkit-box-shadow: 0px 0px 21px 7px rgba(0, 0, 0, 0.06);
    box-shadow: 0px 0px 21px 7px rgba(0, 0, 0, 0.06);
    border: 0px;
}

/* ===== CONTATO ===== */
.contact-bg {
    /* leve textura pontilhada como no layout */
    background:
        radial-gradient(rgba(0, 0, 0, .03) 1px, transparent 1px) 0 0/14px 14px,
        #f5f5f5;
}

.form-control,
.form-select {
    background: #fff;
    border: 1px solid #dbdfE4;
    border-radius: 0px;
    box-shadow: none;
    padding: .95rem 1rem;
}

.contact-form .form-control:focus {
    border-color: #b7c2cc;
    box-shadow: 0 0 0 .2rem rgba(50, 150, 50, .08);
}

.contact-list .icon {
    width: 68px;
    height: 68px;
    border: 2px solid #d5dadf;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 30px;
    color: #222;
    background: #fff;
}

.contact-link {
    color: #111;
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

#contato .btn-green {
    font-weight: 800;
}


/* ===== FOOTER ===== */
footer {
    background: #f7f7f9;
}

.link_whatsapp {
    width: 60px;
    height: 60px;
    display: block;
    position: fixed;
    background-color: #349143;
    color: #fff;
    z-index: 1000;
    bottom: 20px;
    right: 20px;
    font-size: 30px;
    text-align: center;
    border-radius: 100%;
    padding-top: 7px;
}

/* Mantém suave e evita flicker/composição estranha */
#headlineText {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* SAI para a esquerda (única animação) */
.headline-exit-left {
    animation: headlineExitLeft 0.6s ease forwards;
}

.card-body span {
    font-weight: 600;
    color: #2c8a57;
}

@keyframes headlineExitLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-48px);
        opacity: 0;
    }
}

/* ENTRA da direita (única animação) */
.headline-enter-right {
    animation: headlineEnterRight 0.6s ease forwards;
}

@keyframes headlineEnterRight {
    from {
        transform: translateX(48px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Fase sem animação para preparar a entrada (evita flash) */
.is-pre-enter {
    opacity: 0 !important;
    transform: translateX(48px) !important;
}

@media (min-width: 768px) {
    .site-header .nav-link {
        color: #fff;
    }

    .site-header .social {
        color: #fff;
    }

    /* ===== STATS BAND ===== */
    .stats-band {
        background: transparent;
        background-image: url('../../assets/img/fundo_numeros.png');
        background-repeat: no-repeat;
        padding-top: 113px;
        padding-bottom: 113px;
    }

    .hero-character {
        display: block;
    }

    .list-unstyled {
        padding-left: 50px;
    }

    .card-forest {
        margin-bottom: 30px;
    }

    .card-olive {
        margin-top: 30px;
    }

    .card-dark {
        margin-bottom: 30px;
    }

    .card-green {
        margin-top: 30px;
    }

    .product-card {
        display: flex;
        align-items: flex-end;
        isolation: isolate;
        text-align: left;
    }

    /* imagem padrão posicionada à DIREITA */
    .product-card .can {
        top: -25px;
        position: absolute;
    }

}

.carousel-indicators {
    bottom: 30px;
    z-index: 100000;
}

.carousel-indicators [data-bs-target] {
    border-radius: 0px !important;
}