/* ============================================================
   VARIÁVEIS E CONFIGURAÇÕES GERAIS
   ============================================================ */
:root {
    --verde-principal: #008d44;
    --verde-escuro: #006b33;
    --azul-marinho: #013875;
    --amarelo: #ffde00;
    --branco: #ffffff;
    --cinza-fundo: #f8f9fa;
    --preto: #000000;
    --azul-claro: #0dbcf3;
    --sombra-suave: 0 10px 30px rgba(0,0,0,0.08);
}

html {
    scroll-behavior: smooth;
}

/* Evita que o menu esconda o título da seção ao navegar */
section[id] {
    scroll-margin-top: 100px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #212529; 
    line-height: 1.6;
    background-color: var(--branco);
}

/* ============================================================
   HEADER E NAVEGAÇÃO
   ============================================================ */
.top-header {
    background: var(--branco);
    padding: 15px 0;
    text-align: center;
}

.nav-custom {
    background: var(--azul-marinho);
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-link {
    color: var(--branco) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--branco) !important;
}

.navbar-toggler {
    border-color: rgb(255, 255, 255); /* Cor da borda do botão */
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}
.fa-bars {
    font-weight: 300; 
}

/* ============================================================
   HERO SECTION (BANNER INICIAL)
   ============================================================ */
.hero-section {
    /* A cor de fundo deve vir por último ou em uma linha separada */
    background-image: linear-gradient(rgba(255,255,255,0.85), rgba(255, 255, 255, 0)), 
                      url('fotos/foto01.webp');
    background-color: var(--branco); /* Cor de fundo de segurança */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll; /* Melhora performance no celular */
        padding: 50px 0;
    }
}

.form-orcamento {
    background: var(--branco);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--sombra-suave);
    border-top: 8px solid var(--azul-marinho);
}

/* ============================================================
   DIFERENCIAIS (CARDS COM FOTO)
   ============================================================ */
.section-diferenciais {
    background: var(--azul-marinho);
    padding: 60px 0;
}

.card-diferencial {
    background: var(--branco);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    height: 100%;
    border-bottom: 6px solid var(--azul-marinho);
    transition: all 0.3s ease;
}

.card-diferencial:hover {
    transform: translateY(-10px);
}

.card-diferencial img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.card-diferencial p {
    padding: 18px;
    font-weight: 700;
    color: var(--azul-marinho);
    margin: 0;
}

/* ============================================================
   FAIXA AMARELA (CTA)
   ============================================================ */
.faixa-amarela {
    background: var(--amarelo);
    padding: 45px 0;
    text-align: center;
}

.btn-tel {
    background: var(--verde-escuro);
    color: var(--branco) !important;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.4rem;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* ============================================================
   SERVIÇOS (COM A SOMBRA VERDE NA FOTO)
   ============================================================ */
.img-servico-principal {
    border-radius: 18px;
    box-shadow: 20px 20px 0px var(--azul-marinho);
    max-width: 90%;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.check-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--azul-marinho);
    font-size: 1.3rem;
}

/* ============================================================
   BANNER COMPROMISSO (EFEITO PARALLAX)
   ============================================================ */
.section-compromisso {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url(fotos/vazamento.svg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Isso cria o efeito da imagem "parada" ao rolar */
    padding: 100px 0;
}

.btn-whats-app {
    background-color: #25d366;
    color: white !important;
    border-radius: 50px;
    font-weight: 800;
    border: 3px solid white;
    padding: 15px 40px;
    text-transform: uppercase;
}

/* ============================================================
   MAPA E GRID DE ÍCONES
   ============================================================ */
.section-mapa {
    background: var(--azul-marinho);
    background-image: url('fotos/mapa.webp');
    padding: 60px 0;    
    background-position: center;
}

.card-servico {
    background: var(--branco);
    border: 1px solid #eee;
    padding: 45px 25px;
    border-radius: 18px;
    text-align: center;
    transition: 0.3s ease;
    height: 100%;
}

.card-servico i {
    font-size: 45px;
    color: var(--azul-marinho);
    margin-bottom: 20px;
}

.card-servico.destaque-verde {
    background: var(--azul-marinho);
    color: var(--branco);
}

.card-servico.destaque-verde i, 
.card-servico.destaque-verde h5 {
    color: var(--branco);
}

/* ============================================================
   RODAPÉ (FOOTER)
   ============================================================ */
.main-footer {
    background: var(--branco);
    border-top: 10px solid var(--azul-marinho);
    padding: 70px 0 30px;
}

.footer-title {
    color: var(--azul-marinho);
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.footer-bottom {
    background: var(--azul-marinho); 
    font-size: 14px;
    color: #eee;
    
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
}

.dev-link {
    color: #ffffff !important; 
    text-decoration: none;      
    transition: opacity 0.3s;  
}

.dev-link:hover {
    color: #ffffff;
    opacity: 0.8;              
    text-decoration: underline;
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-display: swap;
}

.section-mapa .btn {
    margin-top: 10px;
    display: inline-block;
    min-width: 230px; /* Garante um tamanho bom para o polegar no celular */
}

/* Melhora o foco para navegação por teclado (Acessibilidade) */
a:focus, button:focus {
    outline: 2px solid var(--amarelo) !important;
    outline-offset: 3px;
}

/* Garante que o texto do menu tenha leitura perfeita */
.nav-link {
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

/* Ajuste de Alvos de Toque no Rodapé (PageSpeed) */
.main-footer p, .main-footer a {
    padding: 5px 0;
    display: inline-block;
}

/* Correção de Alvos de Toque no Rodapé para o PageSpeed */
.main-footer a, .main-footer p {
    margin-bottom: 12px !important; /* Dá mais espaço entre as linhas de contato */
    display: block;
}

/* Garante que o ícone do FontAwesome não atrase a renderização */
.fas, .fab {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}