@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --azul-escuro: #0a2b3e;
    --azul-profundo: #0d3b55;
    --azul-claro: #1e88e5;
    --azul-ceu: #4fc3f7;
    --amarelo-sol: #ffc107;
    --amarelo-dourado: #ffb300;
    --laranja-energia: #ff9800;
    --branco: #ffffff;
    --cinza-claro: #f5f7fa;
    --cinza: #e0e5ec;
    --preto-suave: #1a1a2e;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--cinza-claro);
    color: #2d3436;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
header {
    background: rgba(10, 43, 62, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
}

header.scrolled {
    padding: 10px 0;
    background: rgba(10, 43, 62, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    height: 55px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

nav a {
    color: white;
    margin-left: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amarelo-sol);
    transition: width 0.3s;
}

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

/* ==================== HERO SECTION ==================== */
/* ==================== HERO SECTION COM CARROSSEL ==================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 0;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

/* Carrossel de imagens */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Overlay escuro para contraste do texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 43, 62, 0.85), rgba(13, 59, 85, 0.8));
    z-index: 2;
}

/* Conteúdo do hero */
.hero .container {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
    white-space: nowrap; /* Impede quebra de linha */
}

.hero h1 span {
    color: var(--amarelo-sol);
    display: inline-block;
    animation: pulse 2s infinite;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* Indicadores do carrossel */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    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(--amarelo-sol);
    width: 30px;
    border-radius: 10px;
}

.indicator:hover {
    background: var(--amarelo-sol);
    transform: scale(1.2);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); text-shadow: 0 0 20px rgba(255,193,7,0.5); }
}

/* Responsivo */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 80px 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        white-space: normal; /* Permite quebrar em mobile se necessário */
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .indicator.active {
        width: 20px;
    }
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--amarelo-sol), var(--amarelo-dourado));
    color: var(--azul-escuro);
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255,193,7,0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,193,7,0.5);
    background: linear-gradient(135deg, var(--amarelo-dourado), var(--laranja-energia));
}

/* ==================== SEÇÕES GERAIS ==================== */
section {
    padding: 80px 0;
}

.sobre {
    background: white;
    position: relative;
}

.sobre::after {
    content: '☀️';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 80px;
    opacity: 0.03;
    pointer-events: none;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    color: var(--azul-escuro);
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--amarelo-sol), var(--azul-claro));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ==================== CARDS ==================== */
.servicos {
    background: linear-gradient(135deg, var(--cinza-claro), white);
}

.cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    flex: 1;
    min-width: 280px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 4px solid var(--amarelo-sol);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--amarelo-sol), var(--azul-claro));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card:hover::before {
    opacity: 0.05;
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s;
}

.card:hover .icon {
    transform: scale(1.1);
}

.card h3 {
    color: var(--azul-escuro);
    margin-bottom: 15px;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.card p {
    color: #555;
    position: relative;
    z-index: 1;
}

/* ==================== FORMULÁRIOS ==================== */
.form-section {
    background: linear-gradient(135deg, var(--azul-profundo), var(--azul-escuro));
    position: relative;
    color: white;
}

.form-section h2 {
    color: white;
}

.form-section h2::after {
    background: var(--amarelo-sol);
}

.form-section form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.form-section form input,
.form-section form textarea {
    width: 100%;
    margin: 12px 0;
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid var(--cinza);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.form-section form input:focus,
.form-section form textarea:focus {
    outline: none;
    border-color: var(--amarelo-sol);
    box-shadow: 0 0 0 3px rgba(255,193,7,0.2);
}

.form-section form button {
    background: linear-gradient(135deg, var(--amarelo-sol), var(--amarelo-dourado));
    color: var(--azul-escuro);
    font-weight: bold;
    margin-top: 20px;
    border: none;
    font-size: 1.1rem;
    padding: 14px;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--azul-escuro);
    color: white;
    text-align: center;
    padding: 40px 0;
    border-top: 3px solid var(--amarelo-sol);
}

footer p {
    margin: 10px 0;
}

footer p:first-child {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==================== ALERTAS ==================== */
.alert {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    animation: slideIn 0.3s ease, fadeOut 5s forwards 4.5s;
    z-index: 2000;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.alert.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.alert.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

/* ==================== BOTÃO TOPO ==================== */
.btn-topo {
    position: fixed;
    bottom: 110px; /* Fica acima do WhatsApp */
    right: 30px;
    background: linear-gradient(135deg, var(--amarelo-sol), var(--amarelo-dourado));
    color: var(--azul-escuro);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-topo.visible {
    opacity: 1;
    visibility: visible;
}

/* ==================== RESPONSIVO ==================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    header .container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--azul-escuro);
        padding: 15px 0;
        margin-top: 15px;
    }
    
    nav.mobile-open {
        display: flex !important;
    }
    
    nav a {
        margin: 10px 0;
        text-align: center;
        padding: 8px;
    }
    
    .menu-mobile-btn {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
        width: auto;
        padding: 5px 15px;
    }
    
    .card {
        min-width: 100%;
    }
    
    .form-section form {
        padding: 25px;
        margin: 0 15px;
    }
    
     .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
    }
    
    .btn-topo {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 90px; /* Ajustado para mobile */
    }
}

/* Efeito de brilho nos inputs */
@keyframes glow {
    0% { box-shadow: 0 0 0px rgba(255,193,7,0); }
    100% { box-shadow: 0 0 15px rgba(255,193,7,0.4); }
}

input:focus, textarea:focus {
    animation: glow 0.5s ease-in-out infinite alternate;
}
/* Botão menu mobile - ESTILOS GARANTIDOS */
.menu-mobile-btn {
    display: none;
    background: transparent;
    border: 2px solid var(--amarelo-sol);
    color: var(--amarelo-sol);
    font-size: 28px;
    cursor: pointer;
    width: auto;
    min-width: 50px;
    height: 50px;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.menu-mobile-btn:hover {
    background: var(--amarelo-sol);
    color: var(--azul-escuro);
    transform: scale(1.05);
}

/* Responsivo - mostra botão em telas pequenas */
@media (max-width: 768px) {
    .menu-mobile-btn {
        display: block;
    }
    
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--azul-escuro);
        padding: 20px 0;
        margin-top: 15px;
        border-radius: 15px;
        border-top: 2px solid var(--amarelo-sol);
    }
    
    nav.mobile-open {
        display: flex !important;
    }
    
    nav a {
        margin: 8px 20px;
        text-align: center;
        padding: 12px;
        border-radius: 10px;
        transition: background 0.3s;
    }
    
    nav a:hover {
        background: rgba(255,193,7,0.2);
    }
    
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
}
/* ==================== SEPARADOR ENTRE FORMULÁRIOS ==================== */
.separador-energia {
    background: linear-gradient(135deg, var(--azul-escuro), var(--azul-profundo));
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.separador-energia::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    background-attachment: fixed;
}

.separador-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.separador-imagem {
    flex: 1;
    min-width: 280px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.5s ease;
}

.separador-imagem:hover {
    transform: scale(1.02);
}

.separador-imagem img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.separador-texto {
    flex: 1;
    color: white;
    padding: 20px;
}

.separador-tag {
    display: inline-block;
    background: var(--amarelo-sol);
    color: var(--azul-escuro);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.separador-texto h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.separador-texto p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.separador-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.separador-stats div {
    text-align: center;
}

.separador-stats span {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--amarelo-sol);
    display: block;
}

@media (max-width: 768px) {
    .separador-content {
        flex-direction: column;
        text-align: center;
    }
    
    .separador-texto h3 {
        font-size: 1.5rem;
    }
    
    .separador-stats {
        justify-content: center;
    }
}
/* ==================== BOTÃO FLUTUANTE WHATSAPP ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #128C7E, #075E54);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* Tooltip (texto que aparece ao passar o mouse) */
.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: var(--azul-escuro);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--azul-escuro);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 85px;
}

/* Animação de pulsação */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsivo - ajuste para mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}
/* ==================== FOOTER MODERNO ==================== */
.footer-moderno {
    background: #0a1a2c;
    color: #b0c4de;
    padding: 60px 0 0;
    position: relative;
    border-top: none;
}

.footer-moderno::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--amarelo-sol), var(--azul-claro), var(--amarelo-sol));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--amarelo-sol);
}

.footer-logo {
    height: 45px;
    filter: brightness(0) invert(1);
    margin-bottom: 15px;
}

.footer-col p {
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Redes sociais */
.footer-redes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-redes a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-redes a:hover {
    background: var(--amarelo-sol);
    color: var(--azul-escuro);
    transform: translateY(-3px);
}

/* Listas de links */
.footer-links, .footer-contacto {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-contacto li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0c4de;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 12px;
    color: var(--amarelo-sol);
}

.footer-links a:hover {
    color: var(--amarelo-sol);
    transform: translateX(5px);
}

.footer-contacto li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.footer-contacto li i {
    width: 20px;
    color: var(--amarelo-sol);
}

.footer-contacto a {
    color: #b0c4de;
    text-decoration: none;
}

.footer-contacto a:hover {
    color: var(--amarelo-sol);
}

/* Newsletter */
.footer-newsletter h4 {
    margin-bottom: 10px;
}

.footer-newsletter p {
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: #8ba0bc;
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
}

.newsletter-form button {
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--amarelo-sol), var(--amarelo-dourado));
    border: none;
    border-radius: 8px;
    color: var(--azul-escuro);
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    margin: 0;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    background: var(--amarelo-dourado);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    font-size: 0.8rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #b0c4de;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--amarelo-sol);
}

/* Responsivo */
@media (max-width: 768px) {
    .footer-grid {
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-redes {
        justify-content: center;
    }
    
    .footer-links li a {
        justify-content: center;
    }
    
    .footer-contacto li {
        justify-content: center;
    }
    
    .newsletter-form {
        max-width: 300px;
        margin: 0 auto;
    }
}