:root {
    --primary-color: #004D25;
    /* Verde Bandeira Profundo - Mais sóbrio e premium */
    --primary-light: #006b3c;
    /* Variação mais clara para hovers */
    --secondary-color: #FFFFFF;
    --text-color: #1F2937;
    /* Cinza escuro suave */
    --text-light: #6B7280;
    /* Cinza médio para textos secundários */
    --accent-color: #00E676;
    /* Verde vibrante para destaques */
    --light-bg: #F3F4F6;
    /* Fundo cinza muito claro */
    --dark-bg: #111827;
    /* Quase preto para contrastes fortes */
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    /* Melhor renderização de fonte */
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.9);
    /* Transparência para efeito vidro */
    backdrop-filter: blur(10px);
    /* Efeito de vidro fosco */
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-speed);
}

.logo-container img {
    height: 40px;
    /* Mais discreto e elegante */
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: color var(--transition-speed);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Video */
.hero-video {
    position: relative;
    height: 90vh;
    width: 100%;
    margin-top: -76px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

#bgVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Tom escuro para visibilidade */
    z-index: -1;
}

.hero-content {
    z-index: 10;
    max-width: 900px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.btn-outline {
    background: transparent !important;
    border: 2px solid var(--accent-color) !important;
    color: var(--accent-color) !important;
    box-shadow: none !important;
}

.btn-outline:hover {
    background: var(--accent-color) !important;
    color: var(--primary-color) !important;
}

.fade-in {
    animation: fadeIn 1.2s ease-out;
}

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

/* Hero Slider (Legacy - mantenha se quiser usar em outras páginas, mas oculto aqui) */
.hero-slider {
    position: relative;
    height: 90vh;
    /* Mais imersivo */
    overflow: hidden;
    width: 100%;
    margin-top: -76px;
    /* Para ficar atrás do header transparente (ajustar conforme altura do header) */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 77, 37, 0.4) 100%);
    /* Gradiente mais moderno */
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 900px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease-out 0.4s;
    /* Delay para entrar depois do slide */
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    /* Arredondado moderno */
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
}

/* Highlight Cards */
.highlights {
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: -100px;
    /* Sobreposição interessante */
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

.card {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 3rem 2rem;
    border-radius: 20px;
    width: 320px;
    /* Um pouco mais largo */
    text-align: left;
    /* Alinhamento à esquerda é mais moderno para leitura */
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    background: rgba(0, 230, 118, 0.1);
    /* Fundo sutil no ícone */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #e5e7eb;
    padding: 5rem 5% 2rem;
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    border-top: 5px solid var(--accent-color);
    justify-content: center;
    /* Centraliza os blocos do footer */
    text-align: center;
    /* Centraliza o texto dentro dos blocos */
}

.footer-section {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    /* Limita a largura para não ficar muito espalhado */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centraliza itens flexíveis (como ícones sociais se houver) */
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color var(--transition-speed);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    /* Pequeno movimento ao hover */
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    font-size: 1.2rem;
    margin-right: 1.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.social-icons a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 1.2rem;
        text-align: center;
    }

    .logo-container img {
        height: 35px;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.75rem;
    }

    .hero-video {
        height: 60vh; /* Altura reduzida para mobile */
        margin-top: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem; /* Fonte menor e legível */
        letter-spacing: -1px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .hero-btns .btn {
        margin-left: 0 !important;
        width: 100%;
        max-width: 250px;
    }

    .highlights {
        margin-top: 0;
        padding: 3rem 5%;
        gap: 1.5rem;
    }

    .card {
        width: 100%;
        padding: 2.5rem 1.5rem;
    }

    .about-section h2 {
        font-size: 2rem !important;
    }

    footer {
        padding: 4rem 5% 2rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .catalog {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Calculadora de Consumo */
.calc-modal {
    display: none;
    align-items: center;
    justify-content: center;
}

.calc-body {
    max-width: 600px !important;
    display: block !important;
    padding: 2rem !important;
}

.calc-content h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.calc-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.calc-form {
    animation: fadeIn 0.4s ease-out;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.input-group input[type="number"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.result-box {
    background: #f0fdf4;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
    border: 1px solid var(--accent-color);
}

.result-box span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

.result-box strong {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.calc-footer {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

.calc-footer .btn {
    margin-top: 1rem;
    width: 100%;
}

@media (max-width: 768px) {
    .calc-body {
        margin: 10px !important;
        max-height: 95vh;
        overflow-y: auto;
        width: 100% !important;
    }
    .input-grid {
        grid-template-columns: 1fr;
    }
}

/* Testimonials */
.testimonial-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    text-align: left;
    position: relative;
    border-top: 4px solid var(--accent-color);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.testimonial-author strong {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Calculadora de Consumo */
.calc-modal {
    display: none;
    align-items: center;
    justify-content: center;
}

.calc-body {
    max-width: 600px !important;
    display: block !important;
    padding: 2rem !important;
}

.calc-content h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.calc-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.calc-form {
    animation: fadeIn 0.4s ease-out;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.input-group input[type="number"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.result-box {
    background: #f0fdf4;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
    border: 1px solid var(--accent-color);
}

.result-box span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

.result-box strong {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.calc-footer {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

.calc-footer .btn {
    margin-top: 1rem;
    width: 100%;
}

@media (max-width: 768px) {
    .calc-body {
        margin: 10px !important;
        max-height: 95vh;
        overflow-y: auto;
        width: 100% !important;
    }
    .input-grid {
        grid-template-columns: 1fr;
    }
}