/* ======================================================
   NBV ENERGIA - ESTILOS PRINCIPAIS
   ====================================================== */

   :root {
    --primary-color: #00a76c;
    --secondary-color: #5c6e58 ; /*#00847e;*/
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f9f9f9;
    --sobre-bg: #f8f9fa;
    --servicos-bg: #ebebeb;
    --cases-bg: #f8f9fa;
    --contato-bg: #ebebeb;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}

/* ======================================================
   RESET BÁSICO
   ====================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================================================
   HEADER
   ====================================================== */

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    /* transition: all 0.3s ease; */
    height: 110px;
    top: 0;
}

.header-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 80px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.whatsapp-header {
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-header:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: white;
}

/* ======================================================
   WHATSAPP FLUTUANTE
   ====================================================== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 28px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20b954;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ======================================================
   SEÇÃO HERO
   ====================================================== */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 5s ease-in-out;
}

.hero-bg.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(0, 151, 75, 0.8), rgba(0, 128, 32, 0.6)); */
    background: linear-gradient(135deg, rgba(92, 110, 88, 0.6), rgba(92, 110, 88, 0.6));
    /* background: rgba(0, 167, 108, 0.8), rgba(92, 110, 88, 0.6); */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-height: 70vh;
    align-items: center;
}

.hero-logo {
    max-height: 30vh;
    width: auto;
    height: auto;
    margin-bottom: 2vh;
    margin-top: 2vh;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero h1 {
    font-size: 3.2em;
    margin-bottom: 2vh;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 2vh;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-highlight {
    font-size: 1.5em;
    margin-bottom: 2vh;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 20px rgba(0,0,0,0.8);
    color:#00f39d;
    font-weight: 400;
}

/* ======================================================
   SEÇÕES GERAIS
   ====================================================== */

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ======================================================
   SEÇÃO SOBRE
   ====================================================== */

#sobre {
    background-color: var(--sobre-bg);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.sobre-text {
    font-size: 1.1em;
    line-height: 1.8;
}

.sobre-text p {
    margin-bottom: 20px;
}

.sobre-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-light);
    font-weight: 500;
}

/* ======================================================
   SEÇÃO SERVIÇOS
   ====================================================== */

#servicos {
    background-color: var(--servicos-bg);
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: block;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 600;
}

.service-card p {
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-light);
}

.btn-saiba-mais {
    display: inline-block;
    margin-top: auto;
    padding: 12px 25px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 50%;
    align-self: center;
}

.btn-saiba-mais:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ======================================================
   SEÇÃO CASOS DE SUCESSO
   ====================================================== */

#cases {
    background-color: var(--cases-bg);
}

.cases-placeholder {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.cases-placeholder i {
    font-size: 4em;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.cases-placeholder h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cases-placeholder p {
    font-size: 1.1em;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ======================================================
   SEÇÃO CONTATO
   ====================================================== */

#contato {
    background-color: var(--contato-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: rgba(0,151,116,0.05);
}

.contact-icon {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-size: 0.9em;
    color: var(--text-light);
    display: block;
}

.contact-value {
    font-weight: 600;
    color: var(--text-color);
}

/* ======================================================
   BOTÕES
   ====================================================== */

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,151,116,0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,151,116,0.4);
}

/* ======================================================
   FOOTER
   ====================================================== */

footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    margin-top: 20px;
}

/* ======================================================
   EFEITOS DE ANIMAÇÃO
   ====================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ======================================================
   LAYOUT DE SEÇÕES DUPLAS
   ====================================================== */

.dual-sections {
    display: flex;
    flex-direction: row;
    width: 100%;
    background: var(--cases-bg);
}

.half-section {
    width: 50%;
    padding: 80px 0;
}

.half-section:first-child {
    border-right: 1px solid rgba(0,0,0,0.05);
}

.half-section .section-title {
    font-size: 2.4em;
}

.half-section .cases-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 20px;
}

/* ======================================================
   RESPONSIVIDADE
   ====================================================== */

@media (max-width: 992px) {

    /* .header {
        display: none;
    } */

    .dual-sections {
        flex-direction: column;
    }
    
    .half-section {
        width: 100%;
        padding: 60px 0;
    }
    
    .half-section:first-child {
        padding-bottom: 30px;
    }
    
    .half-section:last-child {
        padding-top: 30px;
    }
}

@media (max-width: 768px) {

    .header {
        background: transparent;
    }

    .header-content {
        position: relative;
    }

    nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    nav.active {
        display: block !important;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .whatsapp-header {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .hero-logo {
        max-width: 250px;
    }

    .section-title {
        font-size: 2.2em;
    }

    .sobre-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sobre-stats {
        grid-template-columns: 1fr;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .section {
        padding: 60px 0;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Evita zoom no iOS */
    }
}

@media (max-width: 480px) {

    .header {
        background-color: transparent;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .section-title {
        font-size: 1.8em;
    }

    .service-card,
    .contact-form,
    .contact-info {
        padding: 25px 20px;
    }
}

/* ======================================================
   BANNER DE CONSENTIMENTO LGPD
   ====================================================== */

   .consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 1001;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.consent-banner.hidden {
    transform: translateY(100%);
    opacity: 0;
}

.consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.consent-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.consent-text {
    flex: 1;
    min-width: 300px;
}

.consent-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.consent-text p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.consent-text a {
    color: #00f39d;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.consent-text a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
    font-family: 'Poppins', sans-serif;
}

.consent-btn-primary {
    background: linear-gradient(135deg, #00f39d 0%, #00a76c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 167, 108, 0.3);
}

.consent-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 167, 108, 0.4);
}

.consent-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.consent-btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.consent-btn-settings {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 13px;
    padding: 8px 16px;
    min-width: auto;
}

.consent-btn-settings:hover {
    color: white;
    border-color: rgba(255,255,255,0.5);
}

.consent-status {
    position: fixed;
    top: 130px; /* Abaixo do header fixo */
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 167, 108, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 1002;
}

.consent-status.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividade */
@media (max-width: 768px) {
    .consent-container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .consent-text {
        min-width: auto;
    }

    .consent-actions {
        justify-content: center;
        width: 100%;
    }

    .consent-btn {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .consent-banner {
        padding: 16px;
    }

    .consent-actions {
        flex-direction: column;
    }

    .consent-btn {
        width: 100%;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.consent-banner.show {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}