/* Paleta de Cores e Fontes */
:root {
    --primary-color: #1a73e8; /* Azul primário forte */
    --secondary-color: #4CAF50; /* Verde de destaque */
    --text-color: #333;
    --bg-color: #f5f5f5; /* Fundo claro */
    --surface-color: #ffffff; /* Superfície dos cards */
    --poppins: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--poppins);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Tipografia */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--primary-color); text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }
p { font-size: 1rem; }

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-cta, .btn-submit {
    background-color: var(--secondary-color);
    color: #fff;
    border: 2px solid var(--secondary-color);
}

.btn-cta:hover, .btn-submit:hover {
    background-color: #3e8e41; /* Verde mais escuro */
    transform: translateY(-2px);
}

/* Cabeçalho e Menu */
header {
    background-color: var(--surface-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu a {
    margin-left: 20px;
    color: var(--text-color);
}

.hamburger-menu {
    display: none; /* Escondido por padrão em desktop */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

/* Seções e Cards */
section {
    padding: 6rem 0;
}

.card {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.grid-2-cols, .grid-3-cols, .grid-sobre {
    display: grid;
    gap: 2rem;
}

/* Hero Section */
.hero {
    background: var(--primary-color) url('./images/1-Fundo-da-Secao-Hero.png') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding-top: 10rem;
    padding-bottom: 8rem;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* Estilização dos ícones de serviço (nova regra) */
.card-servico {
    text-align: center;
}

.card-servico img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

/* Seção de Contato */
.contato {
    text-align: center;
    background-color: #fff;
}

.contato form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contato input, .contato textarea {
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* Feedback do Formulário */
.form-feedback {
    background-color: #e8f5e9;
    color: #388e3c;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 30px auto;
}

.form-feedback h3 {
    color: #388e3c;
    margin-bottom: 15px;
}

.form-feedback .btn {
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
}

/* Seção Sobre */
.sobre-img img {
    border-radius: 8px;
    max-width: 300px; /* Garante que a imagem não seja muito grande */
    height: auto;
    width: 100%;
}

/* Mobile First (Layouts para telas pequenas) */
@media (max-width: 768px) {
    /* Header */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }

    .nav-menu a {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-menu.active {
        display: flex;
    }

    /* Seções */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .grid-2-cols, .grid-3-cols, .grid-sobre {
        grid-template-columns: 1fr;
    }
    
    .sobre-img {
        text-align: center;
    }

    .sobre-img img {
        max-width: 200px;
    }
}