:root {
    --primary-color: #0056b3; /* Azul principal */
    --secondary-color: #e0f0ff; /* Azul claro para fundo geral */
    --accent-color-light: #66b2ff; /* Azul intermediário para detalhes */
    --accent-color-dark: #003d80; /* Azul escuro para cabeçalho e rodapé */
    --text-color: #333333;
    --light-text-color: #ffffff;
    --dark-bg-color: #1a1a1a;
    --card-bg-color: #ffffff;
    --border-color: #66b2ff;
    --shadow-color: rgba(0, 0, 0, 0.15);
}

/* Reset e tipografia global */
html { background-color: var(--card-bg-color); }
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Roboto', sans-serif;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }
.section-padding { padding: 60px 0; }
#about, #contact { background-color: var(--card-bg-color); }
#services { background-color: var(--secondary-color); }

/* Cabeçalho */
.site-header {
    background-color: var(--accent-color-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 500;
    width: 100%;
    box-shadow: 0 4px 8px var(--shadow-color);
}
.site-header .container {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.site-nav ul li { margin-left: 25px; }
.site-nav ul li a {
    text-decoration: none;
    color: var(--light-text-color);
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
}
.site-nav ul li a:hover { color: var(--accent-color-light); transform: translateY(-2px); }
.menu-toggle { display: none; background: none; border: none; font-size: 30px; cursor: pointer; color: var(--light-text-color); }

/* Hero */
#hero {
    background: url('assets/hero-background.jpg') no-repeat center center/cover;
    color: var(--light-text-color);
    padding: 100px 15px;
    padding-top: calc(100px + 60px);
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.55);
    z-index: 1;
}
#hero .container { z-index: 2; }
.hero-left-logo { position: absolute; top: 20px; left: 20px; z-index: 3; }
.hero-left-logo img { width: 400px; height: auto; max-width: calc(100% - 40px); opacity: 1; }
.hero-content h1 { font-size: 3.2em; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.3em; margin-bottom: 30px; }

/* Botões */
.button {
    display: inline-block; padding: 14px 30px; border-radius: 8px;
    text-decoration: none; font-weight: 700; font-size: 1.1em;
    transition: all 0.3s ease; border: none; cursor: pointer; text-transform: uppercase;
}
.primary-button { background-color: var(--primary-color); color: var(--light-text-color); box-shadow: 0 4px 8px rgba(0,0,0,0.2);}
.primary-button:hover { background-color: var(--accent-color-dark); transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.3); }
.secondary-button { background-color: var(--dark-bg-color); color: var(--light-text-color); margin-left: 10px; }
.secondary-button:hover { background-color: #000; transform: translateY(-2px); }

/* About */
#about h2 { text-align:center; font-size:3em; color:var(--primary-color); font-weight:700; }
#about .intro-text { text-align:center; font-size:1.25em; font-weight:600; margin-bottom:30px; color:var(--primary-color);}
#about h3 { font-size:2em; color:var(--accent-color-dark); margin-top:40px; margin-bottom:15px; border-bottom:3px solid var(--border-color); padding-bottom:10px; text-align:center; }
#about ul { list-style:none; padding-left:0; margin-bottom:25px; }
#about ul li { position:relative; padding-left:30px; margin-bottom:12px; font-size:1.05em; }
#about ul li:before { content:'★'; color: var(--primary-color); position:absolute; left:0; font-size:1.4em; line-height:1.6; }
#about ul ul li:before { content:'›'; font-size:1.2em; }

/* Serviços */
.service-category-heading {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
}
.service-category-heading h3 {
    font-size: 2.5em;
    color: var(--accent-color-dark);
    border-bottom: 4px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 0;
}
.service-card {
    background-color: var(--card-bg-color);
    padding:30px;
    border-radius:12px;
    box-shadow:0 6px 15px var(--shadow-color);
    display:flex; flex-direction:column;
    height:auto;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border:1px solid var(--border-color);
}
.service-card:hover { transform: translateY(-8px) scale(1.02); box-shadow:0 10px 25px rgba(0,0,0,0.25);}
.service-card h4 { font-size:1.4em; color:var(--primary-color); margin-bottom:15px; text-align:center; font-weight:800; text-transform:uppercase; letter-spacing:0.5px;}
.service-card p { font-size:1.05em; line-height:1.7; color:var(--text-color); text-align:center; margin-bottom:0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Contato */
#contact .contact-flex { display:flex; gap:40px; flex-wrap:wrap; margin-top:30px; text-align:left; }
#contact .contact-info, #contact .contact-form-map { flex:1; min-width:300px;}
#contact form input, #contact form textarea {
    width:100%; padding:12px; margin-bottom:18px; border:1px solid var(--border-color);
    border-radius:6px; font-size:1.05em; transition:all 0.3s ease;
}
#contact form input:focus, #contact form textarea:focus {
    outline:none; border-color:var(--primary-color); box-shadow:0 0 0 3px rgba(0,86,179,0.2);
}

/* Rodapé */
.site-footer { background-color: var(--accent-color-dark); color: var(--light-text-color); padding:30px 0; text-align:center; box-shadow:0 -4px 8px rgba(0,0,0,0.1); }

/* Redes Sociais */
.social-links img {
    width: 58px; height: 58px; object-fit: contain; transition: transform 0.3s ease;
}
.social-links img:hover { transform: scale(1.1); }

/* Botão flutuante WhatsApp */
.whatsapp-button {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-button img { width: 100%; height: 100%; }
.whatsapp-button:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }

iframe {
    max-width: 100%;
    overflow: hidden;
}

/* ==================================== */
/* MEDIA QUERIES (RESPONSIVIDADE) */
/* ==================================== */
/* ====================== */
/* Ajuste final mobile     */
/* ====================== */
/* ==================================== */
/* MEDIA QUERIES (RESPONSIVIDADE) */
/* ==================================== */
@media (max-width: 768px) {
    #contact form {
        max-width: 230px; /* um pouco menor, evita esticar demais */
        width: 100%;
        padding: 0 10px;
        margin: 0 auto;
    }

    .hero-left-logo img {
        width: 150px; /* diminui da 200px para caber melhor no mobile */
        max-width: 90%; /* garante que nunca ultrapasse a tela */
    }

    .hero-content h1 {
        font-size: 1.8em; /* ajusta título para mobile */
    }

    .hero-content p {
        font-size: 0.95em; /* ajusta texto */
    }

    .whatsapp-button {
        width: 45px;
        height: 45px;
        bottom: 12px;
        right: 12px;
    }

    /* Ajuste do mapa no mobile */
    #contact iframe {
        width: 100%;
        height: 250px; /* menor pra caber bem */
        border-radius: 10px;
        display: block;
        margin: 0 auto;
        box-sizing: border-box;
    }
}

/* ====================== */
/* Animação Serviços      */
/* ====================== */
.service-card {
    opacity: 0;
    transform: translateY(30px); /* desce 30px inicialmente */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Classe adicionada pelo JS quando entra na tela */
.service-card.visible {
    opacity: 1;
    transform: translateY(0); /* volta à posição normal */
}
