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

/* Reset básico e variáveis de cores */
:root {
    --primary-color: #004d99; /* Azul escuro principal */
    --secondary-color: #007bff; /* Azul secundário (para botões e links) */
    --accent-color: #ff9900; /* Laranja para destaque */
    --background-color: #f0f2f5;
    --text-color: #333;
    --light-text-color: #555;
    --white-color: #fff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Tipografia */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5em;
    position: relative;
    padding-bottom: 0.5em;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

p {
    color: var(--light-text-color);
}

/* Header e Navegação */
header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 3em 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 3.5rem;
    margin: 0;
    color: var(--white-color);
}

header p {
    font-size: 1.2rem;
    margin-top: 0.5em;
    color: rgba(255, 255, 255, 0.9);
}

nav {
    background-color: var(--secondary-color);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: var(--white-color);
    padding: 1em 1.5em;
    display: inline-block;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: var(--accent-color);
}

/* Seções e Estrutura */
.container {
    max-width: 1100px;
    margin: 2em auto;
    padding: 2.5em;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

section {
    padding: 2em 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5em 0;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.2em;
    background: linear-gradient(90deg, var(--primary-color), #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2em;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 1.2em 3em;
    border-radius: 50px;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Grid de Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
}

.service-item {
    background-color: #f9f9f9;
    padding: 2.5em;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-item h3 {
    font-size: 1.6rem;
    margin-top: 0;
    color: var(--primary-color);
}

.service-item p {
    font-size: 0.95rem;
}

/* Seção de Depoimentos */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
}

.testimonial-item {
    background-color: #e9ecef;
    padding: 2em;
    border-radius: 10px;
    font-style: italic;
    border-left: 5px solid var(--secondary-color);
}

.testimonial-item h4 {
    margin-top: 1em;
    color: var(--primary-color);
}

/* Seção de Contato */
.contact-info {
    text-align: center;
    margin-bottom: 2em;
}

.contact-info p {
    margin: 0.5em 0;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.contact-info i {
    margin-right: 0.5em;
    color: var(--primary-color);
}

/* Rodapé */
footer {
    text-align: center;
    padding: 2em 0;
    background-color: #222;
    color: #bbb;
    margin-top: 3em;
}

footer p {
    margin: 0;
    color: #bbb;
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366; /* Cor oficial do WhatsApp */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0,0,0,0.5);
}

/* ========================================= */
/* Media Queries para Responsividade Móvel */
/* ========================================= */

/* Para telas menores que 768px (tablets e smartphones) */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1rem;
    }

    nav {
        display: flex; /* Transforma em flexbox para melhor controle */
        flex-wrap: wrap; /* Permite que os itens quebrem a linha */
        justify-content: center; /* Centraliza os links */
        padding: 0.5em 0;
    }

    nav a {
        padding: 0.8em 1em; /* Menor padding para links de navegação */
        font-size: 0.9rem; /* Fonte um pouco menor */
    }

    .container {
        margin: 1em auto;
        padding: 1.5em;
    }

    .hero h1 {
        font-size: 2.8rem; /* Tamanho da fonte do título principal */
    }

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

    .cta-button {
        padding: 1em 2em; /* Menor padding para o botão CTA */
        font-size: 0.9rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 1em;
    }
    
    /* Grids de serviços e depoimentos para empilhar em telas menores */
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr; /* Cada item ocupa a largura total */
        gap: 1.5em;
    }

    .service-item, .testimonial-item {
        padding: 2em;
    }

    .contact-info {
        font-size: 0.95rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 2rem;
        bottom: 15px;
        right: 15px;
    }
}

/* Para telas muito pequenas (smartphones pequenos) */
@media (max-width: 480px) {
    header {
        padding: 2em 0;
    }
    
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 0.9rem;
    }

    nav a {
        padding: 0.7em 0.8em;
        font-size: 0.8rem;
    }

    .hero {
        padding: 3em 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8em 1.5em;
        font-size: 0.85rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 1em;
    }

    .testimonial-item p, .service-item p {
        font-size: 0.9rem;
    }
}