/* ==========================================================================
   ESTILOS DA HOME PAGE - Vale das Cachoeiras
   ========================================================================== */

/* --- HERO SECTION REVISADA --- */
.hero {
    position: relative;
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 0;
    background-color: var(--color-primary);
}

/* Wrapper do fundo parallax */
.hero__bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%; /* Extra altura para permitir o scroll de parallax */
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

/* Imagem de fundo com Ken Burns animado */
.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    animation: kenBurns 20s ease-in-out infinite;
}

/* Overlay de contraste escuro para legibilidade da tipografia */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(23, 76, 56, 0.95) 0%, rgba(23, 76, 56, 0.8) 50%, rgba(23, 76, 56, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Ajuste do gradiente em mobile */
@media (max-width: 768px) {
    .hero__overlay {
        background: linear-gradient(to bottom, rgba(23, 76, 56, 0.95) 0%, rgba(23, 76, 56, 0.85) 60%, rgba(23, 76, 56, 0.5) 100%);
    }
}

/* Ken Burns Keyframes */
@keyframes kenBurns {
    0%, 100% {
        transform: scale(1.03) translate(0, 0);
    }
    50% {
        transform: scale(1.10) translate(-1%, -0.5%);
    }
}

.hero__container {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__content {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.35s forwards;
}

.hero__tagline {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero__title {
    font-size: 3.5rem;
    color: var(--color-creme);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero__title span {
    display: block;
    font-size: 1.75rem;
    font-family: var(--font-primary);
    font-weight: 300;
    color: rgba(249, 241, 228, 0.9);
    margin-top: 0.5rem;
}

.hero__desc {
    font-size: 1.15rem;
    color: rgba(249, 241, 228, 0.85);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero__image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1.2s ease;
    z-index: 3;
}

/* Moldura do logotipo flutuante na Hero */
.hero__logo-frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem;
    background: radial-gradient(circle, rgba(249, 241, 228, 0.04) 0%, rgba(249, 241, 228, 0) 75%);
}

.hero__logo-frame img {
    max-width: 85%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
    opacity: 0;
    transform: translateY(35px) scale(0.95);
    animation: revealLogo 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards, float-logo 5s ease-in-out infinite 0.85s;
    transition: transform var(--transition-smooth);
}

.hero__logo-frame:hover img {
    transform: scale(1.05) rotate(1deg);
}

@keyframes float-logo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Detalhe flutuante na Hero */
.hero__badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background-color: var(--color-creme);
    padding: 1.25rem 1.75rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    border: 1px solid rgba(23, 76, 56, 0.1);
    animation: float 4s ease-in-out infinite;
}

.hero__badge-icon {
    font-size: 2.25rem;
    color: var(--color-primary);
}

.hero__badge-text h4 {
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--color-primary);
    font-weight: 700;
}

.hero__badge-text p {
    font-size: 0.8rem;
    color: var(--color-secondary);
    margin: 0;
}

/* Keyframes de Animação */
@keyframes revealLogo {
    0% {
        opacity: 0;
        transform: translateY(35px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Acessibilidade: Reduz ou desativa animações para evitar desconforto visual */
@media (prefers-reduced-motion: reduce) {
    .hero__bg-img {
        animation: none !important;
        transform: scale(1.03) !important;
    }
    .hero__bg-wrapper {
        transform: none !important;
    }
    .hero__logo-frame img {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .hero__content {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .hero__badge {
        animation: none !important;
    }
}


/* --- PILARES DA MARCA --- */
.pillars {
    background-color: var(--color-creme);
}

.pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.pillar-card {
    background-color: var(--color-light);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(23, 76, 56, 0.05);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md), var(--shadow-green);
}

.pillar-card__icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(107, 149, 96, 0.12);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 2.25rem;
    transition: transform var(--transition-bounce), background-color var(--transition-fast);
}

.pillar-card:hover .pillar-card__icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--color-accent);
    color: var(--color-creme);
}

.pillar-card__title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.pillar-card__desc {
    font-size: 0.95rem;
    color: var(--color-secondary);
    margin: 0;
}


/* --- LINHAS DE PRODUTOS (VITRINE) --- */
.showcase {
    background-color: var(--color-white);
    position: relative;
}

.showcase::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background-image: url('../assets/brand/pattern.png');
    background-size: 200px;
    opacity: 0.03;
    pointer-events: none;
}

.showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}


/* --- DIFERENCIAIS (POR QUE VALE DAS CACHOEIRAS) --- */
.features {
    background-color: var(--color-creme);
}

.features__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.features__content h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
}

.features__list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
}

.feature-item__icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.feature-item__text h3 {
    font-size: 1.25rem;
    font-family: var(--font-primary);
    margin-bottom: 0.35rem;
}

.feature-item__text p {
    font-size: 0.95rem;
    color: var(--color-secondary);
    margin: 0;
}

.features__image-wrapper {
    position: relative;
}

.features__image-frame {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--color-white);
    aspect-ratio: 1;
    width: 100%;
}

.features__image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- PROVA SOCIAL / PARCEIROS --- */
.partners {
    background-color: var(--color-white);
    padding: 4rem 0;
    border-bottom: 1px solid rgba(67, 105, 91, 0.08);
}

.partners__title {
    text-align: center;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2.5rem;
}

.partners__grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.partners__logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.35;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.partners__logo:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.partners__logo i {
    font-size: 1.75rem;
    color: var(--color-accent);
}


/* --- LEADS / NEWSLETTER NEWS --- */
.leads-banner {
    background-color: var(--color-primary);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.leads-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/brand/pattern.png');
    background-size: 300px;
    opacity: 0.05;
    pointer-events: none;
}

.leads-banner__container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 5;
}

.leads-banner__content {
    color: var(--color-creme);
}

.leads-banner__content h2 {
    font-size: 2.5rem;
    color: var(--color-creme);
    margin-bottom: 1rem;
}

.leads-banner__content p {
    font-size: 1.1rem;
    color: rgba(249, 241, 228, 0.8);
    margin-bottom: 2rem;
}

.leads-banner__benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leads-banner__benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(249, 241, 228, 0.9);
}

.leads-banner__benefit-item i {
    color: var(--color-gold);
    font-size: 1.15rem;
}


/* --- REDES SOCIAIS --- */
.instagram {
    background-color: var(--color-creme);
}

.instagram__handle {
    display: block;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.instagram__handle i {
    margin-right: 0.5rem;
    color: var(--color-gold);
}

.instagram__handle:hover {
    color: var(--color-gold);
}

.instagram__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.instagram__post {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.instagram__post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.instagram__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 76, 56, 0.85);
    display: flex;
    flex-column: column;
    align-items: center;
    justify-content: center;
    color: var(--color-creme);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 5;
    font-size: 1rem;
    font-weight: 600;
}

.instagram__overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-gold);
}

.instagram__post:hover img {
    transform: scale(1.08);
}

.instagram__post:hover .instagram__overlay {
    opacity: 1;
}


/* --- RESPONSIVIDADE HOME --- */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 3rem;
    }
    .hero__container {
        gap: 2.5rem;
    }
    .pillars__grid {
        gap: 1.5rem;
    }
    .showcase__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .features__container {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 5rem;
    }
    .hero__container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    .hero__title {
        font-size: 2.5rem;
    }
    .hero__actions {
        justify-content: center;
    }
    .hero__image-wrapper {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    .hero__badge {
        bottom: -1rem;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }
    @keyframes float {
        0%, 100% { transform: translateY(0) translateX(-50%); }
        50% { transform: translateY(-10px) translateX(-50%); }
    }
    
    .pillars__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .pillar-card {
        padding: 2.5rem 1.5rem;
    }
    
    .showcase__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .features__container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .features__image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .leads-banner {
        padding: 4rem 0;
    }
    .leads-banner__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .leads-banner__content {
        text-align: center;
    }
    .leads-banner__benefit-item {
        justify-content: center;
    }
    
    .instagram__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .partners__grid {
        gap: 2rem;
    }
}
