/* VARIÁVEIS E RESET */
:root {
    --vermelho: #FF0000;
    --amarelo: #FFC400;
    --azul-eletrico: #0033A0;
    --branco: #FFFFFF;
    --cinza-claro: #F8F9FA;
    --cinza-escuro: #333333;
    --sombra: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transicao: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--cinza-escuro);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--vermelho);
}

section {
    padding: 5rem 2rem;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transicao);
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primario {
    background: var(--vermelho);
    color: var(--branco);
}

.btn-primario:hover {
    background: #cc0000;
    transform: translateY(-3px);
    box-shadow: var(--sombra);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--branco);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: var(--sombra);
}

/* HEADER E NAVEGAÇÃO */
header {
    background: var(--amarelo);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transicao);
}

.header-scrolled {
    padding: 10px 0;
    background: rgba(255, 215, 0, 0.95);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--cinza-escuro);
}

.logo-raio {
    color: var(--vermelho);
    margin: 0 8px;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--cinza-escuro);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transicao);
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--vermelho);
    transition: var(--transicao);
}

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

.nav-links a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1001;
    padding: 10px; 
}

/* PREVENIR FLASH DO MENU MOBILE DURANTE CARREGAMENTO */
.nav-links {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Garantir que o menu esteja oculto inicialmente no mobile */
@media (max-width: 768px) {
    .nav-links {
        opacity: 0;
        transform: translateY(-100%);
        pointer-events: none;
    }
    
    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }
}

/* HERO SECTION */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1544724569-5f546fd6f2b5?q=80&w=387&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--branco);
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--branco);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* SERVIÇOS */
.servicos {
    background: var(--branco);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.servico-card {
    background: var(--branco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: var(--transicao);
    text-align: center;
    padding: 2rem 1.5rem;
}

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

.servico-icon {
    font-size: 3rem;
    color: var(--vermelho);
    margin-bottom: 1.5rem;
}

.servico-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* DIFERENCIAIS */
.diferenciais {
    background: var(--cinza-claro);
}

.diferenciais-lista {
    max-width: 800px;
    margin: 0 auto;
}

.diferencial-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--branco);
    border-radius: 10px;
    box-shadow: var(--sombra);
    transition: var(--transicao);
}

.diferencial-item:hover {
    transform: translateX(10px);
}

.diferencial-icon {
    font-size: 2.5rem;
    color: var(--vermelho);
    margin-right: 1.5rem;
    min-width: 60px;
}

.diferencial-text h3 {
    margin-bottom: 0.5rem;
}

/* SOBRE */
.sobre {
    background: var(--branco);
}

.sobre-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.sobre-text {
    flex: 1;
    min-width: 300px;
}

.sobre-imagem {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra);
}

.sobre-imagem img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transicao);
}

.sobre-imagem:hover img {
    transform: scale(1.05);
}

/* DEPOIMENTOS */
.depoimentos {
    background: var(--cinza-claro);
}

.depoimentos-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.depoimento {
    min-width: 100%;
    padding: 2rem;
    background: var(--branco);
    border-radius: 10px;
    box-shadow: var(--sombra);
    text-align: center;
}

.depoimento-texto {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.depoimento-texto:before,
.depoimento-texto:after {
    content: '"';
    font-size: 3rem;
    color: var(--vermelho);
    position: absolute;
    opacity: 0.3;
}

.depoimento-texto:before {
    top: -20px;
    left: -10px;
}

.depoimento-texto:after {
    bottom: -40px;
    right: -10px;
}

.avaliacao {
    color: var(--amarelo);
    margin-bottom: 1rem;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: var(--transicao);
}

.carousel-dot.active {
    background: var(--vermelho);
}

/* CONTATO */
.contato {
    background: var(--branco);
}

.contato-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.emergencia-texto {
    color: var(--vermelho);
    font-weight: 600;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--vermelho);
    min-width: 30px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transicao);
}

.form-control:focus {
    border-color: var(--vermelho);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* FOOTER */
footer {
    background: var(--cinza-escuro);
    color: var(--branco);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links h3 {
    color: var(--branco);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transicao);
    display: block;
    border: none;
    outline: none;
    /* Garantir que não tenha nenhum estilo de link */
    background: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    /* Remover qualquer sublinhado ou decoração */
    text-decoration: none !important;
    text-underline: none;
    -webkit-text-decoration: none;
    -moz-text-decoration: none;
}

.footer-links a:hover {
    color: var(--branco);
    padding-left: 5px;
    /* Garantir que não apareça sublinhado no hover */
    text-decoration: none !important;
    background: none;
}

/* Remover estilos de foco que possam causar aparência de link */
.footer-links a:focus {
    outline: none;
    text-decoration: none;
    background: none;
}

.footer-links a:visited {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:active {
    color: var(--branco);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--branco);
    text-decoration: none;
    transition: var(--transicao);
}

.social-links a:hover {
    background: var(--vermelho);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    color: #ccc;
    font-size: 0.9rem;
}

/* BOTÕES FLUTUANTES */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: var(--transicao);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
}

@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);
    }
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--vermelho);
    color: var(--branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--sombra);
    z-index: 100;
    transition: var(--transicao);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #cc0000;
    transform: translateY(-3px);
}

/* ANIMAÇÕES */

/* ANIMAÇÃO DO RAIO DA LOGO */
@keyframes raio-brilhante {
    0%, 100% {
        text-shadow: 0 0 5px var(--vermelho);
    }
    50% {
        text-shadow: 0 0 15px var(--vermelho), 0 0 20px var(--amarelo);
    }
}

.logo-raio {
    animation: raio-brilhante 2s infinite;
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--branco);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transicao);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 1rem;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .hero {
        height: 80vh;
    }
    
    .servicos-grid {
        grid-template-columns: 1fr;
    }
    
    .diferencial-item {
        flex-direction: column;
        text-align: center;
    }
    
    .diferencial-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* CORREÇÃO HERO SECTION PARA MOBILE */
@media (max-width: 768px) {
    /* Ajuste do navbar para mobile */
    .navbar {
        padding: 1rem;
        min-height: 70px; /* Altura fixa */
    }
    
    /* Ajuste do hero para mobile */
    .hero {
        padding-top: 70px; /* Altura do navbar mobile */
        height: calc(100vh - 70px); /* Ajuste de altura navbar */
        min-height: 500px; /* Altura mínima para evitar cortes */
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        padding-top: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Ajuste dos botões no mobile */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
    .hero {
        padding-top: 60px;
        height: calc(100vh - 60px);
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
}
