/* Color Variables */
:root {
    /* Cores Oficiais Lamisul */
    --primary-orange: #f19e44;
    --primary-orange-hover: #e08a3a;
    --primary-orange-shadow: rgba(241, 158, 68, 0.3);
    --primary-orange-light: rgba(241, 158, 68, 0.1);
    --primary-orange-medium: rgba(241, 158, 68, 0.2);
    
    --primary-brown: #524642;
    --primary-brown-light: #4A322B;
    --secondary-brown: #9E795C;
    
    --primary-white: #fff;
    --primary-beige: #ebebe6;
    --primary-beige-light: #F8F7F3;
    
    --primary-green: #459f7b;
    
    /* Cores de Texto */
    --text-dark: var(--primary-brown);
    --text-light: #fff;
    --text-gray: #666;
    --text-gray-light: #333;
    
    /* Cores de Interface */
    --border-light: #E0E0E0;
    --background-light: #ebebe6;
    --background-dark: var(--primary-brown);
    
    /* Cores de Fundo dos Slides */
    --hero-wood-bg: var(--primary-brown);
    --hero-sustainability-bg: #228B22;
    --hero-heritage-bg: #654321;
    
    /* Cores de Produtos */
    --product-bg: #D2B48C;
}

/* Reset and Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden;}
body { font-family: "raleway", sans-serif; font-weight: 400; line-height: 1.6; color: var(--text-gray-light);overflow-x: hidden;max-width: 2560px;margin: 0 auto;background-color: var(--primary-brown)}
h1, h2, h3, h4, h5, h6, p em { font-family: "poppins", sans-serif; }
h2 { font-size: 48px; font-weight: 600; }
h3 { font-size: 28px; font-weight: 300; font-style: italic; }
p { font-size: 28px; font-weight: 400; }
a { text-decoration: none; color: inherit; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
header .container { width: 1200px; max-width: 90%;}
/* Header Styles */
.header { position: absolute; top: 0; left: 0; right: 0; background: transparent; /*backdrop-filter: blur(10px);*/ z-index: 1000; padding: 0; }
.header-home { backdrop-filter: none;}
.header-home .top {background-image: url('images/wood-top.jpg'); background-size: cover; width: 100%; height: 75px; }
.header .container { display: flex; align-items: start; justify-content: space-between; padding: 15px 0; }
.logo { display: flex; align-items: center; text-decoration: none; color: inherit; transition: opacity 0.3s ease; }
.logo:hover { opacity: 0.8; }
.logo-image { height: 160px; width: auto; max-width: 200px; }
.nav { display: flex; gap: 30px; border-bottom: solid 1px var(--primary-white); margin: 0 1em; padding: 1em 0;text-align: center;}
.nav a { text-decoration: none; color: var(--text-light); font-weight: 400; font-size: 14px; transition: color 0.3s ease; }
.nav a:hover { color: var(--primary-orange); }
.nav a.active { color: var(--primary-orange); font-weight: 700; }
.language-flags { display: flex; gap: 10px; }
.flag { 
    width: 45px; 
    height: 45px; 
    margin-top: 10px;
    border-radius: 50%; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    overflow: hidden; 
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-decoration: none;
}

.flag:hover { 
    transform: translateY(-3px) scale(1.05); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.flag::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); 
    transition: left 0.5s; 
    z-index: 1;
}

.flag:hover::before { 
    left: 100%; 
}
.flag.portugues { background-image: url('images/portugues.png'); }
.flag.ingles { background-image: url('images/ingles.png'); }
.flag.espanhol { background-image: url('images/espanhol.png'); }
/* Hero Carousel */
.hero-carousel { position: relative; height: 100vh; overflow: hidden; background-color: var(--hero-wood-bg); }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0; transition: opacity 0.8s ease-in-out; }
.hero-slide .container { position:relative; display: flex; align-items: center; height: 100%; width: 85%;padding: 15% 0 10%;}
.hero-slide.active { opacity: 1; }
.hero-wood-veneers { background-image: url('images/hero-wood-veneers.jpg'); background-color: var(--hero-wood-bg); }
.hero-sustainability { background-image: url('images/hero-sustainability.jpg'); background-color: var(--hero-sustainability-bg); }
.hero-heritage { position:relative; background-image: url('images/hero-heritage.jpg'); background-color: var(--hero-heritage-bg); }
.hero-heritage .container { padding-top:40%; }

/* Layout específico para cada banner */
.hero-wood-veneers .container { justify-content: flex-start; }
.hero-wood-veneers .hero-content.left { text-align: left; }
.hero-wood-veneers .hero-content.right { text-align: right; }

.hero-sustainability .container { justify-content: flex-end; }
.hero-sustainability .hero-content.right { text-align: center; }

.hero-heritage .container { justify-content: space-between; }
.hero-heritage .hero-content.left { text-align: left; }
.hero-heritage .hero-content.right { text-align: right;}

/* Carousel Navigation */
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.2); border: none; color: var(--primary-white); font-size: 15px; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 10; }
.carousel-nav:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-50%) scale(1.1); }
.carousel-prev { left: 30px; }
.carousel-next { right: 30px; }

/* Carousel Indicators */
.carousel-indicators { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; z-index: 10; }
.indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.3s ease; }
.indicator.active { background: var(--primary-orange); transform: scale(1.2); }
.indicator:hover { background: rgba(255, 255, 255, 0.8); }
.hero-content { position: relative; z-index: 2; max-width: 50%; }
.hero-content.right { margin-left: auto; text-align: center; }
.hero-content.left { margin-right: auto; text-align: left; }
.hero-title { font-size: 48px; font-weight: 800; color: var(--primary-white); margin-bottom: 30px; line-height: 1.2; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }
.hero-description { color: var(--primary-white); margin-bottom: 30px; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); }
.cta-button { background: var(--primary-orange); color: var(--primary-white); border: none; padding: 20px 30px; font-size: 22px; font-weight: 400; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 12px var(--primary-brown-light); }
.cta-button:hover { background: var(--primary-orange-hover); transform: translateY(-2px); }
.cta-button a { color: inherit; text-decoration: none;}
.hero-subtitle { position: absolute; top: 73%; left:0; right:0; text-align: center; z-index: 2; }
.separator { height: 6px; background: var(--primary-orange); margin: 0 auto 15px; }
.hero-subtitle p {  color: var(--primary-white); font-size: 32px; font-weight: 400; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); width: 80%; margin: 0 auto;}

/* About Us Page Styles */
.about-hero { position: relative; }
.about-hero img { width: 100%; height: auto; display: block; }
.about-hero-content { padding: 40px; width: 100%; display: flex; justify-content: space-between; align-items: center; border-radius: 8px; }
.about-hero-text h2, .about-hero-text h3 { color: var(--primary-white); margin-bottom: 10px; }
.about-hero-text p {  color: var(--primary-white); }
.about-hero-image img { max-width: 180px;}
.about-content { padding: 1px 0 60px 0; background-image: url('images/fundo-madeira.png'); background-size: cover; background-position: center; background-repeat: no-repeat; }
.about-content .container { display: flex; flex-direction: column; gap: 40px; }
.about-content .about-hero-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.about-content .about-text { display: grid; gap: 60px; grid-template-columns: 1fr; }
.about-content .cta-button { margin: 8em auto; display: block; background: var(--primary-orange); color: var(--primary-white); }
.about-text { padding-bottom: 8em;}
.about-text-block { display: grid; grid-template-columns: 1fr 67px 1fr; margin-bottom: 30px; align-items: center; }
.about-text-block .accent-line { width: 7px; height: 180px; background: var(--primary-orange); margin: 30px; flex-shrink: 0; }
.about-text-block p { color: var(--primary-white); line-height: 1.6; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); }
.about-text-block:first-child { margin-bottom: -60px;}
.about-text-block:last-child { margin-top: -60px;}
.about-text-block p:first-child { text-align: right; padding-left: 20%;}
.about-text-block p:last-child { text-align: left; padding-right:20%;}

.about-text-block-image { background-color: var(--secondary-brown) ; width: 100%; position: relative;}
.about-text-block-image div {width: auto;}
.about-text-block-image:first-child div { float:right;position:relative;}
.about-text-block-image:last-child div { position: relative; float:left;}
.about-text-block-image:first-child div::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; box-shadow: inset 80px 0 60px -20px rgba(0, 0, 0, 0.9); pointer-events: none;z-index: 2;}
.about-text-block-image:last-child div::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; box-shadow: inset -80px 0 60px -20px rgba(0, 0, 0, 0.9); pointer-events: none;z-index: 2;}
.about-text-block-image img {display: block;max-width: 100%;}
.about-items-content { background: var(--primary-white); align-content: initial;}
.about-items-values p { 
    padding: 50px 25px; 
    font-size: 26px;
    color: var(--primary-brown); 
    background-color: var(--primary-white);
    position: relative;
}

.about-items-values {
    background: var(--primary-white); 
    padding: 0; 
    text-align: center; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    justify-content: center; 
    gap: 50px;
    opacity: 0;
    transform: scaleY(0.2);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-items-values.animate-in {
    opacity: 1;
    transform: scaleY(1);
}
.about-items-values p:nth-child(2n-1) {
    clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%);
    padding-right: 75px;
}
.about-items-values p:nth-child(3) {z-index: 2;}
.about-items-values p:nth-child(2n) {
    clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
    padding-left: 75px;
}
.about-items-values p:nth-child(2n-1) {margin-top: -40px;margin-right:-100px;}
.about-items-values p:nth-child(2n) {margin-bottom: -40px; margin-left:-100px}
.about-items-values p img {width: 80px;display: block;margin: 0.5em auto;}

/* Environment Page Styles */
.env-hero { position: relative; /*background: url('images/meio-ambiente.jpg'); */background-size: cover; background-position: center; width: 100%; overflow: hidden; aspect-ratio: 1.358;}
.env-hero h2 { color: var(--text-dark); margin-bottom: 20px; }
.env-hero p {  color: var(--text-dark); }
.env-hero-content {padding: 6em 0;text-align: center;color:var(--primary-brown); background: url('images/fundo-madeira-clara.png'); background-size: cover; background-position: center;}
#meio-ambiente { padding-top:11em;}
#meio-ambiente-image + * { padding-top: 10em;}
#meio-ambiente-image {display: none;}

.env-content { 
    background: var(--primary-green); 
    color: var(--primary-white); 
    position: relative; 
    display: grid; 
    grid-template-columns: 0.7fr 1.3fr;
    text-align: center;
}

.env-content h3 {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.env-content h3.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.env-content p {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.env-content p.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.env-content img {
    width: 100%;
    display: block;
}

.env-content {
    position: relative;
    overflow: hidden;
}

.env-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s ease;
    z-index: 2;
    pointer-events: none;
}

.env-content.animate-in::before {
    left: 100%;
}
.env-content img:first-child {text-align:right; border-top-right-radius: 40% 30%;}
.env-content img:last-child {border-bottom-left-radius: 40% 30%;}
.env-content:has(h3:first-child) {grid-template-columns: 1fr 1fr;}

.env-content h3 { align-content: center; margin: 4.5em 1.5em;padding: 0.2em 0.5em;border-right: solid 6px var(--primary-orange);font-weight: 300;font-family: "raleway", sans-sefir;; font-style: normal;}
.env-content p { line-height: 1.8; align-content: center; padding: 1em 1em 0;margin-bottom:1em;border-bottom: solid 6px var(--primary-orange); border-bottom: none; position: relative;height: 88%;}
.env-content p::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50%; height: 6px; background: var(--primary-orange); }
.env-commitments { background: var(--primary-beige); padding: 60px 0; }
.env-commitments-content { display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.env-commitments-list { flex: 1; }
.env-commitments-list h3 { color: var(--primary-brown); margin-bottom: 30px; }
.commitment-item { display: flex; align-items: center; margin-bottom: 20px; }
.commitment-item .accent-line { width: 4px; height: 20px; background: var(--primary-orange); margin-right: 15px; flex-shrink: 0; }
.commitment-item p {  color: var(--primary-brown); margin: 0; }
.env-cta { flex: 0 0 auto; }
.env-cta .cta-button { background: var(--primary-orange); color: var(--primary-white); border: none; padding: 15px 30px; font-size: 16px; font-weight: 600; cursor: pointer; text-transform: uppercase; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
.env-footer-strip { height: 15px; background: var(--primary-orange); }
.env-image-container { overflow-y: visible; overflow-x: hidden; width: 100%;margin: -7em 0;}
#meio-ambiente-image, #meio-ambiente-image-sm {  max-width: 100%; width:100%;}


/* Products Page Styles */
.products-hero { 
    background: var(--primary-brown); 
    background-image: url('images/fundo-madeira.png'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    padding: 5em 0; 
    position: relative; 
    overflow: hidden; 
}

.products-hero::after { 
    content: ""; 
    position: absolute; 
    left: 0; 
    top: 0; 
    right: 0; 
    bottom: 0; 
    background: url('images/laminas.png'); 
    background-size: auto 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    transform: translateX(100%);
    transition: transform 1.2s ease;
}

.products-hero.animate-in::after {
    transform: translateX(0);
}
.products-hero-content { 
    position: relative; 
    z-index: 2; 
    min-height: 200px;
}

.products-hero-text { 
    color: var(--primary-white); 
    padding-right: 40%;
    box-sizing: border-box;
}

.products-hero-text h2 { margin-bottom: 20px; }
.products-hero-text h3 { margin-bottom: 20px; }
.products-hero-text .description { margin-bottom: 30px; max-width: 85%;}
.products-selection { background: url('images/fundo-textura.png') var(--primary-beige); padding: 80px 0; }
.products-selection h2 { color: var(--primary-brown); margin-bottom: 60px; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 60px; position: relative; }
.product-item { text-align: center; position: relative; cursor: ew-resize;}
.product-image { width: 100%; aspect-ratio: 1; background: var(--product-bg); border-radius: 8px; margin-bottom: 15px; background-size: cover; background-position: center; position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.product-image::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%); opacity: 0; transition: opacity 0.3s ease; }
.product-item:hover .product-image::before { opacity: 1; }
.product-label { background: rgba(255, 255, 255, 0.9); padding: 8px 12px; border-radius: 4px; color: var(--primary-brown); font-size: 20px; font-weight: 400; border: 1px solid var(--border-light); position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); backdrop-filter: blur(5px); width:90%; }
.products-navigation { position: absolute; top: 45%; transform: translateY(-50%); width: 50px; height: 50px; background: var(--primary-orange); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--primary-white); transition: all 0.3s ease; z-index: 10; }
.products-navigation:hover { background: var(--primary-orange-hover); color: var(--primary-white); }

/* Animação das setinhas quando entram na tela */
.products-navigation.animate-in {
    animation: arrowAttention 1.2s ease-in-out 2;
}

@keyframes arrowAttention {
    0%, 100% { 
        background: var(--primary-orange); 
        color: var(--primary-white); 
        transform: translateY(-50%) scale(1);
    }
    25%, 75% { 
        background: var(--primary-orange-hover); 
        color: var(--primary-white); 
        transform: translateY(-50%) scale(1.1);
    }
    50% { 
        background: var(--primary-orange-hover); 
        color: var(--primary-white); 
        transform: translateY(-50%) scale(1.2);
    }
}
.products-nav-left { left: -70px; }
.products-nav-right { right: -70px; }
.products-actions { text-align: center; margin-bottom: 40px; }
.view-all-link { text-decoration: none; font-size: 24px; display: block; align-items: center; gap: 10px; background: transparent; color: inherit;font-style: italic;font-family: 'poppins', sans-serif;margin: 1em auto;}
.view-all-link img {width: 50px;vertical-align: middle;margin:1em 0;}
/* Estilos para quando todos os produtos estão visíveis */
.products-view-all .products-navigation {display: none !important;}
.products-view-all .products-row {justify-content: center;}
.products-view-all .product-item {opacity: 1 !important;transform: none !important;}
.products-view-all .view-all-link {display: none !important;}


.why-choose { background: var(--primary-brown); background-image: url('images/fundo-madeira.png'); background-size: cover; background-position: center; background-repeat: no-repeat; padding: 80px 0; position: relative; overflow: hidden; }
.why-choose-content { position: relative; z-index: 2; text-align: center; color: var(--primary-white); }
.why-choose h2 { margin-bottom: 20px; }
.why-choose h3, .why-choose h2 {text-align: left;}
.why-choose .subtitle {  font-size: 24px; font-weight: 400; margin-bottom: 60px; opacity: 0.9; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin: 90px 0; }
.feature-card { text-align: center; background-color: var(--secondary-brown); cursor: auto;}
.feature-card img {width: 100%;display: block;margin: 0 0 2em;position: relative;}
.feature-card::before {content: '';position: absolute;top: 0;left: 0;right: 0;box-shadow: inset 0 -80px 60px -60px rgba(0, 0, 0, 1);pointer-events: none;z-index: 1;aspect-ratio: 1.0001;}
.feature-card h3::after { position: absolute; top: -140px; left: 0; right: 0; bottom: 0; align-content: initial;scale: 0.5;z-index:2;}
.feature-card.sustentabilidade h3::after {content: url('images/selo-sustentabilidade.png');}
.feature-card.variedade h3::after {content: url('images/selo-variedade.png');}
.feature-card.durabilidade h3::after {content: url('images/selo-durabilidade.png');}
.feature-card.reconhecimento-internacional h3::after {content: url('images/selo-reconhecimento-internacional.png');}
.feature-card:nth-child(2n) {margin-top: 4em;}
.feature-card:nth-child(2n-1) {margin-bottom: 4em;}
.feature-card h3, .feature-card p { padding: 0.5em 0.5em;}
.feature-card p { padding-bottom: 2em;}
.feature-card h3 { font-family: 'raleway', sans-serif; font-weight: 600; font-style: normal; margin-bottom: 15px; text-align: center; height: 100px;align-content: center;position: relative;}
.feature-card p { opacity: 0.8; line-height: 1.5; }

/* Contact Page Styles */
.contact-hero { background-image: url('images/fundo-textura-madeira.jpg'); background-size: cover; background-color: var(--primary-beige); padding: 80px 0; }
.contact-hero h2 { color: var(--primary-brown); margin-bottom: 20px; }
.contact-hero h3 { font-weight: 600; margin-bottom: 50px;font-style: normal;}
.contact-hero .subtitle {  font-size: 20px; color: var(--primary-brown); font-style: italic; font-weight: 300; margin-bottom: 40px; }

/* Animações da seção de contato */
.contact-hero h2 {
    opacity: 1;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.contact-hero h3 {
    opacity: 1;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.contact-address-buttons {
    opacity: 1;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.contact-hero h2.animate-in {
    opacity: 1;
    transform: translateX(0) !important;
}

.contact-hero h3.animate-in {
    opacity: 1;
    transform: translateX(0) !important;
}

.contact-address-buttons.animate-in {
    opacity: 1;
    transform: translateY(0) !important;
}

/* Garantir que a posição final seja sempre translateX(0) */
.contact-hero h2.animate-in,
.contact-hero h3.animate-in {
    transform: translateX(0) !important;
}

.contact-address-buttons.animate-in {
    transform: translateY(0) !important;
}
.contact-info p { color: var(--primary-brown); margin: 0; }
.contact-hours { display: flex; justify-content: space-between; align-items: center; padding: 40px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.contact-hours h3 { color: var(--primary-brown); margin-bottom: 10px; }
.contact-hours p { color: var(--primary-brown); margin: 0; }
.contact-address { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.contact-address-buttons { display: flex; flex-direction: column; align-items: center; gap: 50px; margin-top: -30px;}
.contact-address h3 { color: var(--primary-brown); margin-bottom: 10px; }
.contact-address p { color: var(--primary-brown); margin: 0; }
.social-icons { display: flex; gap: 35px; filter: brightness(1.1);}
.social-icons img {max-width: 100%;}
.social-icon { width: 50px; height: 50px; background: var(--primary-orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-white); font-size: 20px; text-decoration: none; transition: all 0.3s ease; }
.social-icon:hover { background: var(--primary-orange-hover); transform: translateY(-2px); }
.contact-map { width: 100%; height: 700px; background-image: url('images/fundo-textura-madeira.jpg'); background-size: cover; background-color: var(--border-light); }
.contact-map div { border-top: 15px solid var(--primary-orange); border-bottom: 15px solid var(--primary-orange); position: relative; overflow: hidden; height: 600px;}

/* Additional Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInFromRight { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInFromLeft { from { opacity: 0; transform: translateX(-100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleInFade { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }


/* Enhanced Product Grid */
.products-carousel-container { display: flex; flex-direction: column; gap: 40px; }
.products-row { 
    position: relative; 
    display: flex; 
    align-items: center; 
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.products-row.animate-in {
    opacity: 1;
    transform: translateX(0);
}
.products-grid { transition: transform 0.3s ease; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; flex: 1; margin: 0; }
.product-item { transition: all 0.3s ease; cursor: ew-resize; }
.product-item:hover { transform: scale(1.02); }
.product-item:hover .product-image { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); }
.products-actions { margin: 60px auto 0; }

/* Enhanced CTA Buttons */
.cta-button { position: relative; overflow: hidden; transition: all 0.3s ease; }
.cta-button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s; }
.cta-button:hover::before { left: 100%; }

/* Enhanced Header */
.header { transition: all 0.3s ease; }
.header.scrolled { background: rgba(89, 67, 63, 0.75); box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); backdrop-filter: blur(4px); }
.header.scrolled.opened { backdrop-filter: none;}

/* Enhanced Hero Sections */
.hero-content, .hero-subtitle { animation: fadeInUp 1s ease 0.5s both; }
.hero-content.right { animation: slideInRight 1s ease 0.5s both; }
.hero-content.left { animation: slideInLeft 1s ease 0.5s both; }

/* Enhanced About Section */
.about-text-block { 
    opacity: 0; 
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Ímpares (1, 3, 5...) vêm da esquerda */
.about-text-block:nth-child(odd) { 
    transform: translateX(-50px); 
}

.about-text-block:nth-child(odd).animate-in { 
    opacity: 1; 
    transform: translateX(0); 
}

/* Pares (2, 4, 6...) vêm da direita */
.about-text-block:nth-child(even) { 
    transform: translateX(50px); 
}

.about-text-block:nth-child(even).animate-in { 
    opacity: 1; 
    transform: translateX(0); 
}

/* Enhanced Feature Cards */
.feature-card { 
    transition: all 0.3s ease; 
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, all 0.3s ease;
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover { transform: translateY(-10px); }
.feature-card:hover .feature-icon { transform: scale(1.1); background: var(--primary-orange-medium); }
.feature-icon { transition: all 0.3s ease; }

/* Enhanced Contact Section */
.social-icon { transition: all 0.3s ease; }
.social-icon:hover { transform: translateY(-3px) scale(1.1); box-shadow: 0 5px 15px var(--primary-orange-shadow); }

/* Scroll to Top Button */
.scroll-to-top { 
    position: fixed; 
    bottom: 20px; 
    left: 20px; 
    width: 70px; 
    height: 70px; 
    background: var(--primary-orange); 
    color: var(--primary-white); 
    border: none; 
    border-radius: 50%; 
    cursor: pointer; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    font-size: 28px; 
    transition: opacity 0.3s ease, transform 0.3s ease; 
    z-index: 1000; 
    opacity: 0;
    transform: scale(0.8);
}

.scroll-to-top.show {
    opacity: 1;
    transform: scale(1);
}

.scroll-to-top:hover { background: var(--primary-orange-hover); transform: scale(1) translateY(-2px); }

/* Preloader */
.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary-beige); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.5s ease; }
.preloader .logo { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* Mobile Menu */
.mobile-menu-button { 
    display: none; 
    flex-direction: column; 
    cursor: pointer; 
    padding: 8px; 
    background: transparent;
    border: none;
    z-index: 1001;
}

.mobile-menu-button span { 
    width: 26px; 
    height: 3px; 
    background: var(--primary-white); 
    margin: 3px 0; 
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-button.active span:nth-child(1) { 
    transform: rotate(-45deg) translate(-6px, 6px) scale(1.3); 
    background: var(--primary-orange);
}

.mobile-menu-button.active span:nth-child(2) { 
    opacity: 0; 
}

.mobile-menu-button.active span:nth-child(3) { 
    transform: rotate(45deg) translate(-7px, -6px) scale(1.3); 
    background: var(--primary-orange);
}

.mobile-menu { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(82, 70, 66, 0.98); 
    backdrop-filter: blur(10px);
    padding: 100px 20px 40px; 
    z-index: 1000;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
}

.mobile-menu.active { 
    display: flex; 
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a { 
    display: block; 
    padding: 20px 0; 
    color: var(--primary-white);
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary-orange);
    transform: translateX(10px);
}

.mobile-language-flags {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.mobile-language-flags .flag {
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-decoration: none;
}

.mobile-language-flags .flag:hover { 
    transform: translateY(-3px) scale(1.05); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.mobile-language-flags .flag::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); 
    transition: left 0.5s; 
    z-index: 1;
}

.mobile-language-flags .flag:hover::before { 
    left: 100%; 
}

/* Responsive Design */
@media (max-width: 1280px) {
    .env-content:has(h3:first-child) { grid-template-columns: 1.2fr 0.8fr; }
    .products-nav-left { left: 15px; }
    .products-nav-right { right: 15px; }

}

@media (max-width: 1200px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .env-content { grid-template-columns: 0.8fr 1.2fr; }
    .env-content p, .env-content h3 { font-size: 20px; }
    /*.env-content h3:first-child { margin: 2.5em 1.5em; }*/
    .cta-button { font-size: 20px; }
    .hero-title { font-size: 38px; }
}

@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 25px; }
    .products-hero::after {background-position: 640px center;}
}

@media (max-height: 980px) {
    .products-hero-text { padding-right: 20%; }
    .about-text-block p { font-size: 20px; }

}

@media (max-width: 800px) {
    .products-hero::after {background-position: 500px center;}
    .env-content { grid-template-columns: 1fr !important; flex-direction: row-reverse !important;}
    .env-content p, .env-content h3 { padding: 2em 1.5em; margin:1.5em;}
    .env-content p { order: -1 }
    .env-content h3 { order: 1 }
    .env-content img { order: 0 }
    .cta-button { font-size: 18px; }
    .hero-title { font-size: 32px; }
    #meio-ambiente-image { max-width: 110%; width:110%; margin-left:0;margin-right:-10%;}
}

@media (max-width: 768px) {
    p { font-size: 24px; }
    .header .container { 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center;
        position: relative;
    }
    .nav { display: none; }
    .logo-image { height: 140px; }
    .language-flags { display: none; }
    .mobile-menu-button { display: flex; }
    .hero-title { font-size: 32px; }
    .about-content { flex-direction: column; }
    .about-content .about-hero-content { flex-direction: column-reverse; gap: 50px;text-align: center;}
    .about-items-values { grid-template-columns: 1fr; gap: 10px;}
    .about-items-values p { padding: 2em !important; margin: 0 1em !important;}
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .contact-hours, .contact-address { flex-direction: column; align-items: flex-start; gap: 20px; }
    .hero-slide .container { flex-direction: column; justify-content: center; align-items: center; width: 90%; max-width: 90%; padding: 40% 20px 10%; }
    .hero-heritage .container { flex-direction: column-reverse; gap: 20px; }
    .hero-slide { background-position-x: 41%; }
    .hero-content { max-width: 100%; text-align: center !important; margin: 1em 0 !important; }
    .hero-content button { margin: 1em 0 !important;}
    .hero-content.left, .hero-content.right { margin: 0 !important; text-align: center !important; }
    .hero-wood-veneers .container, .hero-sustainability .container, .hero-heritage .container { justify-content: center; }
    .hero-sustainability .container { padding-top: 40%; }
    .hero-heritage .container { padding-top: 90%; }
    .hero-title { font-size: 32px; margin-bottom: 0; }
    .hero-description { font-size: 18px; margin-bottom: 20px;text-shadow: 1px 1px 2px #000000; }
    .cta-button { margin-top: 20px; font-size: 16px; }
    .why-choose h3, .why-choose h2 {text-align: center;}
    .carousel-prev { left: 15px; }
    .carousel-next { right: 15px; }
    .hero-subtitle { top: 80%; }
    .hero-subtitle p { font-size: 18px; width: 95%; }
    .products-hero-text { padding-right: 20%; }
    .products-hero::after {background-position: 520px center;}
    .products-selection h2 { text-align: center; }
    .about-text-block { grid-template-columns: 1fr; }
    .accent-line { display: none; }
    .about-content .about-text{ gap: 0; }
    .about-text-block p { margin: 1em; padding: 1em; }
    .about-text-block p:last-child { border-left: solid 6px var(--primary-orange); }
    .about-text-block:last-child { margin-top: 0; }
    .about-text-block p:first-child { border-right: solid 6px var(--primary-orange);}
    .about-text-block:first-child { margin-bottom: 0; }
    #meio-ambiente-image {display: block;}
    #meio-ambiente-image-sm {display: none;}
    #meio-ambiente-image { max-width: 130%; width:130%; margin-left:-10%;margin-right:-20%;}
    .contact-address-buttons { margin: 1em auto !important;}

}

@media (max-width: 600px) {
    .features-grid, .products-grid { grid-template-columns: 1fr; }
    .feature-card { margin: 0 !important;}
    .products-hero::after {background-position: 400px center;}
    #meio-ambiente-image { max-width: 140%; width:140%; margin-left:-15%;margin-right:-25%;}
}

@media (max-width: 500px) {
    .products-hero::after {background-position: 350px center;}
}

@media (max-width: 480px) {
    .hero-title { font-size: 31px; }
    .mobile-menu a { font-size: 20px; padding: 15px 0; }
    .mobile-language-flags { gap: 15px; }
    .mobile-language-flags .flag { width: 40px; height: 40px; }
    .products-hero-text { padding-right: 15%; }
    .products-hero::after {background-position: 320px center;}
    #meio-ambiente-image { max-width: 180%; width:180%; margin-left:-30%;margin-right:-50%;}

}

@media (max-width: 420px) {
    .products-hero::after {background-position: 300px center;}
    
    /* WhatsApp Button Mobile */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float:hover {
        width: 180px;
    }
    
    .whatsapp-icon {
        width: 25px;
        height: 25px;
        left: 15px;
    }
    
    .whatsapp-text {
        left: 45px;
        font-size: 12px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: #25D366;
    border-radius: 50%;
    display: none; /* Inicia oculto, será mostrado via JavaScript */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8);
}

.whatsapp-float.show {
    opacity: 1;
    transform: scale(1);
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    width: 200px;
    border-radius: 30px;
}

.whatsapp-icon {
    position: absolute;
    width: 35px;
    height: 35px;
    transition: all 0.3s ease;
    left: 17.5px;
}

.whatsapp-text {
    position: absolute;
    color: white;
    font-family: "poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
}

.whatsapp-float:hover .whatsapp-icon {
    transform: scale(0.9);
}

/* Animação de pulso */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: #25D366;
    animation: whatsappPulse 2s infinite;
    z-index: -1;
}

.whatsapp-float:hover::before {
    animation: none;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}