* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative; /* necessário para centralizar menu absoluto */
}

/* Menu centralizado horizontalmente */
nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .menu li a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        padding: 8px 0;
        position: relative;
        transition: color 0.3s ease;
    }

        /* Linha animada dourada */
        .menu li a::after {
            content: '';
            position: absolute;
            width: 0%;
            height: 3px;
            bottom: 0;
            left: 0;
            background-color: #ffcc00;
            transition: width 0.3s ease;
        }

        .menu li a:hover::after {
            width: 100%;
        }

        .menu li a:hover {
            color: #ffcc00;
        }

/* Botão WhatsApp topo */
.btn-whatsapp-top {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #25d366;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: opacity .3s ease, transform .3s ease;
}

    .btn-whatsapp-top:hover {
        opacity: 0.9;
        transform: scale(1.05);
    }

/* Responsivo */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav {
        position: static;
        transform: none;
    }

    .menu {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

        .menu li a {
            font-size: 18px;
        }
}
/* HEADER */
header {
    background: #111;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.4);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.logo span {
    color: #ffcc00;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
}

.btn-whatsapp-top {
    background: #25d366;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: opacity .3s ease, transform .3s ease;
}

.btn-whatsapp-top:hover {
    opacity: 0.9;
    transform: scale(1.03);
}
.logo img {
    max-height: 200px;
    width: auto;
    display: block;
    filter: invert(1); /* inverte cores do logo para aparecer no fundo preto */
}

/* HERO */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-eletricista.png') center/cover no-repeat;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.trust {
    margin: 15px 0;
    font-weight: bold;
}

.cta-button {
    display: inline-block;
    background: #ffcc00;
    color: #000;
    padding: 15px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity .3s ease, transform .3s ease;
}

.cta-button:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

/* SERVICES */
.section-title {
    text-align: center;
    margin: 50px 0 30px;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

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

.card i {
    font-size: 40px;
    color: #ffcc00;
    margin-bottom: 15px;
}

/* FORM */
.orcamento-section {
    background: #f1f1f1;
    padding: 50px 0;
    margin-top: 50px;
}

.form-style {
    max-width: 600px;
    margin: auto;
}

.form-style input,
.form-style textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
}

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

.send-button {
    width: 100%;
    background: #111;
    color: #fff;
    padding: 15px;
    border: none;
    cursor: pointer;
    transition: opacity .3s ease, transform .3s ease;
}

.send-button:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

/* FOOTER */
footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,.4);
}

/* FLOAT WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}
/* ======= MOBILE ======= */
@media (max-width: 768px) {

    /* HEADER */
    .header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    nav ul li {
        width: 100%;
    }

    nav a {
        display: block;
        padding: 8px 0;
        font-size: 18px;
    }

    .btn-whatsapp-top {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    /* HERO */
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 16px;
    }

    /* GRID SERVICES */
    .grid-services {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 20px;
    }

    .card i {
        font-size: 36px;
        margin-bottom: 10px;
    }

    /* FORM */
    .form-group {
        flex-direction: column;
        gap: 10px;
    }

    .form-style input,
    .form-style textarea,
    .send-button,
    .btn-whatsapp-form {
        font-size: 16px;
    }

    /* Footer */
    footer {
        font-size: 14px;
        padding: 15px;
    }

    /* WhatsApp flutuante */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 15px;
        right: 15px;
    }
}
/* Logo */
.logo img {
    max-height: 150px; /* Altura máxima do logo no cabeçalho */
    width: auto;       /* Mantém proporção da imagem */
    display: block;    /* Remove pequenos espaços abaixo da imagem */
}

/* Se quiser centralizar verticalmente em relação ao nav */
.header-flex {
    display: flex;
    align-items: center; /* Centraliza verticalmente logo e menu */
    justify-content: space-between; /* Mantém espaço entre logo, menu e WhatsApp */
}

/* Responsivo para telas pequenas */
@media (max-width: 768px) {
    .logo img {
        max-height: 100px; /* Reduz o logo em dispositivos móveis */
    }
}
/* Container para redes sociais flutuantes */
.social-float {
    position: fixed;
    bottom: 100px; /* distância do rodapé/WhatsApp */
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

/* Ícones sociais */
.social-float a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Cores específicas das redes */
.facebook-float {
    background: #3b5998; /* azul Facebook */
}

.instagram-float {
    background: #e1306c; /* rosa Instagram */
}

/* Hover */
.social-float a:hover {
    transform: scale(1.2);
    filter: brightness(1.1);
}

/* Responsivo */
@media (max-width: 768px) {
    .social-float {
        bottom: 120px; /* ajusta para mobile */
        right: 15px;
    }

    .social-float a {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}
