/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #2c3e50; /* Azul Escuro */
    --secondary-color: #3498db; /* Azul Claro */
    --accent-color: #e74c3c; /* Vermelho (para botões/destaques) */
    --text-color: #333;
    --light-bg: #ecf0f1;
    --dark-bg: #2c3e50;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f4f7f9;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Componentes Globais --- */

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #2980b9;
}

.btn-secondary {
    background: var(--primary-color);
}

.btn-secondary:hover {
    background: #1e2a36;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Header --- */

.header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar li {
    margin-left: 25px;
}

.navbar a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--secondary-color);
}

/* --- Seções --- */

section {
    padding: 80px 0;
}

.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://via.placeholder.com/1500x800.png?text=Fundo+Funilaria') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 0;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.services, .about, .contact {
    background-color: #fff;
    text-align: center;
}

.services h3, .about h3, .contact h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.service-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-item h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* --- Sobre Nós --- */

.about {
    background-color: var(--light-bg);
}

.about .container {
    text-align: left;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-text, .about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* --- Formulário de Contato --- */

.contact form {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* Estilo do input de foto */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-info {
    border: 2px dashed #ccc;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    background-color: var(--light-bg);
    pointer-events: none; /* Para não bloquear o input[file] */
}

.image-preview {
    margin-top: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    display: none;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 5px;
}

/* --- WhatsApp Flutuante --- */

.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: var(--shadow);
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* --- Rodapé --- */

.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

/* --- Media Queries (Responsividade) --- */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .navbar ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar li {
        margin: 5px 10px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
}