/* === Variáveis de Cores e Estilo Geral === */
:root {
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --bg-dark: #343a40;
    --text-main: #333;
    --primary-orange: #f97316;
    --primary-orange-hover: #ea580c;
    --white: #ffffff;
    --transition-speed: 0.3s;
    --focus-ring: rgba(249, 115, 22, 0.6); /* Cor para acessibilidade */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Otimização de Acessibilidade (A11y) para o Google Lighthouse */
*:focus-visible {
    outline: 3px solid var(--primary-orange);
    outline-offset: 3px;
    border-radius: 4px;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    /* Melhora a renderização de fontes */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform; /* Avisa a GPU para otimizar essa animação */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === Navegação (Nav) === */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 80px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo span {
    color: #bbb;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: "Poller One", sans-serif;
    font-weight: 400;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.logo img {
    padding: 5px;
    height: 85px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo a:hover img {
    transform: scale(1.05);
}

.logo a:hover span {
    color: var(--primary-orange);
}

.nav-links {
    list-style: none;
    display: flex;
    height: 100%;
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    color: #bbb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
}

.nav-links a:hover, .nav-links a:focus-visible {
    color: var(--white);
    background-color: var(--primary-orange);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* === Botões Padrão === */
.btn {
    display: inline-block;
    background-color: var(--primary-orange);
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
}

.btn:hover, .btn:focus-visible {
    background-color: var(--primary-orange-hover);
    transform: translateY(-2px);
    color: #ffffff;
}

/* === Header (Carrossel) === */
header {
    margin-top: 80px; /* Corrigido para bater com a altura exata do Nav */
    height: calc(100vh - 80px); /* Garante que ocupe a tela sem gerar rolagem fantasma */
    min-height: 500px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark); /* Cor de fundo caso a imagem demore a carregar (LCP) */
}

.carousel-container {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-color: var(--bg-dark);
}

/* Placeholders para as imagens do carrossel */
.slide-1 { background: url('img/foto_landing.png') center/cover no-repeat; }
.slide-2 { background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat; }

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.80);
    padding: 2rem;
    border-radius: 8px;
    width: 90%; /* Ajuste para evitar quebra no mobile */
    max-width: 600px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5); /* Aumentado o contraste para Acessibilidade */
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover, .carousel-btn:focus-visible { 
    background: var(--primary-orange); 
}
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* === Seções Gerais === */
section {
    padding: 5rem 5%;
    contain: content; /* Dica de performance forte: isola a renderização de cada seção */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--bg-dark);
    text-transform: uppercase;
}
.section-title span {
    color: var(--primary-orange);
}

/* === Quem Somos Nós === */
#quem-somos { background-color: var(--bg-light); }

.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--bg-dark);
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background: url('img/equipe.JPG') center/cover no-repeat;
    background-color: var(--bg-gray); /* Fallback */
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* === Seção de Serviços === */
#servicos { background-color: var(--bg-light); }

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.servico-card {
    background-color: var(--bg-gray);
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    border-bottom: 4px solid transparent;
    transition: transform var(--transition-speed), background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.servico-card i {
    font-size: 3rem;
    color: var(--bg-dark);
    margin-bottom: 20px;
    transition: color var(--transition-speed);
}

.servico-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--bg-dark);
}

.servico-card p {
    color: #555; /* Aumentado o contraste para passar no teste de leitura do Google */
    font-size: 0.95rem;
}

.servico-card:hover {
    transform: translateY(-10px);
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--primary-orange);
}

.servico-card:hover i {
    color: var(--primary-orange);
}
.raio-ajustado{
    transform: translate(25px, -5px);
    color: var(--primary-orange);
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff;
}

/* === Seção Como Trabalhamos === */
#como-trabalhamos {
    background-color: var(--bg-gray);
}

.trabalho-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.trabalho-text {
    flex: 1;
    min-width: 320px;
}

.trabalho-text p {
    margin-bottom: 1.5rem;
    color: #444; /* Mais legibilidade */
}

.trabalho-image {
    flex: 1;
    min-width: 320px;
    height: 450px;
    background: url('img/planejamento.png') center/cover no-repeat;
    background-color: var(--bg-dark);
    border-radius: 8px;
    box-shadow: -15px 15px 0px var(--primary-orange);
}

.lista-passos {
    list-style: none;
    margin-bottom: 2rem;
}

.lista-passos li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lista-passos li i {
    color: var(--primary-orange);
    font-size: 1.2rem;
}

/* === Portfólio === */
#portfolio { background-color: var(--bg-gray); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    position: relative;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    /* Correção do bug de z-index no hover do Safari */
    transform: translateZ(0); 
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    background-color: #ccc; /* Previne CLS visual */
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(234, 88, 12, 0.95), rgba(52, 58, 64, 0.8));
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
}

.card:hover .card-img, .card:focus-within .card-img {
    transform: scale(1.1);
}

.card:hover .card-content, .card:focus-within .card-content {
    opacity: 1;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

        /* === Seção de Avaliações === */
#avaliacoes {
    background-color: var(--bg-light);
    overflow: hidden;
    padding-bottom: 5rem;
}

.reviews-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.reviews-carousel {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.review-item {
    min-width: calc(100% - 50px); /* Exibe 3 por vez em telas grandes */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--bg-gray);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: block; /* Garante que o link ocupe todo o espaço */
    background-color: var(--white);
}

.review-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

/* Overlay que aparece no Hover */
.review-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(249, 115, 22, 0.9); /* Laranja com transparência */
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.review-item:hover .review-overlay {
    opacity: 1;
}

.review-item:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
}

/* Botões de controle */
.review-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.review-controls button {
    background: var(--bg-dark);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.review-controls button:hover {
    background: var(--primary-orange);
}

/* Responsividade */
@media (max-width: 900px) {
    .review-item { min-width: calc(50% - 10px); } /* 2 por vez */
}
@media (max-width: 600px) {
    .review-item { min-width: 100%; } /* 1 por vez */
}

/* === Contato === */
#contato {
    background-color: #1a1a1a;
    text-align: center;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-header { margin-bottom: 4rem; }

.section-titles {
    color: var(--bg-light);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-titles span { color: var(--primary-orange); }

.contact-header p {
    color: #e0e0e0;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, border-color 0.4s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary-orange);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--white);
    font-size: 1rem;
}

.contact-card:hover, .contact-card:focus-visible {
    background: rgba(234, 88, 12, 0.1);
    border-color: var(--primary-orange);
    transform: translateY(-5px);
}

.btn-contact {
    margin-top: 30px;
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--primary-orange);
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 4px;
}

.btn-contact:hover, .btn-contact:focus-visible {
    background-color: transparent;
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.3);
}

/* === Footer === */
footer {
    background-color: #0a0a0a;
    padding: 3rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 3px;
    text-transform: uppercase;
}

footer p {
    color: #888;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-align: center;
}

/* === WhatsApp Flutuante Otimizado === */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-orange);
    border: 2px solid var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--white); 
    text-decoration: none;
}

/* Otimização de Animação: Usar pseudo-elemento em vez de box-shadow economiza CPU */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-orange);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-neon 2s infinite ease-out;
}

.whatsapp-icon {
    width: 55%;
    height: 55%;
    fill: var(--white);
}

.whatsapp-float:hover, .whatsapp-float:focus-visible {
    background-color: var(--primary-orange-hover);
    transform: scale(1.1);
}

.whatsapp-float:hover::before {
    animation: none;
}

@keyframes pulse-neon {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* === Responsividade (Media Queries Consolidadas) === */
.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .review-item { min-width: calc(50% - 10px); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 80px; /* Ajustado para a altura do nav */
        right: -100%; 
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(30, 30, 30, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding-top: 3rem;
        transition: right 0.4s ease;
        z-index: 1000;
        overflow-y: auto; 
    }

    .nav-links.active { right: 0; }
    .nav-links li { width: 100%; justify-content: center; }
    
    .carousel-content h1 { font-size: 1.8rem; }
    
    .trabalho-container { flex-direction: column; }
    .trabalho-image { height: 300px; box-shadow: none; }
    
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .review-item { min-width: 100%; margin-right: 0; }
}

/* Acessibilidade: Desliga animações para usuários que ativam "Reduzir Movimento" no Windows/Celular */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
/* Carrocel serviços*/
