/* Variáveis do Tema ClimaWatts Premium */
:root {
    --primary: #0ba360;       
    --primary-hover: #08824c;
    --primary-light: #e6f5ee;
    --dark: #1c4d34;          
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f0f7f3;      
    --white: #ffffff;
    --border: #d5e9df;        
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset e Prevenção de Quebras */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-wrap: break-word; /* Evita que textos longos explodam o layout */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px; /* Impede que o menu cubra os títulos ao clicar nos links */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden; /* Trava a rolagem horizontal indesejada */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, .btn-primary, .btn-secondary {
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ================= Navbar (Fundo Branco Sólido) ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff; /* Corrigido para branco sólido para mesclar com a logo */
    border-bottom: 1px solid rgba(213, 233, 223, 0.5);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
}

.logo img {
    height: 70px; 
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

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

.btn-nav {
    text-decoration: none;
    background: var(--primary-light);
    color: var(--primary-hover);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Oculta o link mobile no computador para evitar duplicidade */
.btn-nav-mobile {
    display: none; 
}

/* Menu Mobile Toggle */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: var(--dark);
    cursor: pointer;
}

/* ================= Banner Principal (Hero) ================= */
.hero {
    padding: 180px 0 140px;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), 
                url('assets/hero-bg.png') center/cover no-repeat;
    background-color: #0f172a; 
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    background: rgba(255,255,255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: dotPulse 2s infinite;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); 
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap; 
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(11, 163, 96, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(11, 163, 96, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ================= Features (Diferenciais) ================= */
.features-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: -60px; 
    z-index: 10;
    position: relative;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--dark);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* ================= Serviços ================= */
.services {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--dark);
    margin-bottom: 16px;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.service-image {
    width: 100%;
    height: 240px;
    position: relative;
    background-color: #cbd5e1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

.service-content {
    padding: 40px 32px 32px;
    position: relative;
    flex-grow: 1;
}

.service-icon {
    font-size: 22px;
    color: var(--white);
    background: var(--primary);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -27px; 
    right: 32px;
    box-shadow: 0 4px 10px rgba(11, 163, 96, 0.4);
    border: 4px solid var(--white);
}

.service-content h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-content p {
    color: var(--text-light);
}

/* ================= Sobre Nós ================= */
.about {
    background: var(--white);
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 4px solid var(--white);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Poppins';
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 5px;
}

.subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--dark);
    margin-bottom: 24px;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.about-list {
    list-style: none;
    margin-top: 32px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--dark);
}

.about-list i {
    color: var(--primary);
    background: var(--primary-light);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* ================= Footer ================= */
.footer {
    background: #0f172a;
    color: var(--white);
    padding: 80px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.logo-footer img {
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
    background: white; 
    padding: 5px;
}

.footer-brand p {
    color: #cbd5e1;
    max-width: 300px;
    margin-top: 20px;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    font-family: 'Poppins';
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-contact p {
    color: #cbd5e1;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 4px;
}

.social-link {
    color: #cbd5e1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ================= WhatsApp Flutuante ================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    animation: whatsappPulse 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Animações */
@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ================= Responsividade ================= */
@media (max-width: 992px) {
    .features-wrapper {
        grid-template-columns: repeat(1, 1fr);
        margin-top: 40px; 
    }
    .about-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .experience-badge {
        right: 20px;
        bottom: -20px;
    }
}

@media (max-width: 768px) {
    .nav-content {
        min-height: 80px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        transition: left 0.3s ease;
        border-top: 1px solid var(--border);
    }

    .nav-links.active {
        left: 0;
    }

    .btn-nav {
        display: none; 
    }

    /* Mostra o link mobile apenas quando estiver na tela menor */
    .btn-nav-mobile {
        display: block; 
    }

    .hero {
        padding: 140px 0 100px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-image img {
        height: 400px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}