/* Reset Básico e Variáveis Globais */
:root {
    --primary-color: #007bff; /* Azul vibrante */
    --secondary-color: #6c757d; /* Cinza */
    --accent-color: #28a745; /* Verde para sucesso/destaque */
    --background-color: #f8f9fa; /* Cinza claro de fundo */
    --text-color: #333;
    --light-text-color: #fff;
    --card-bg: #fff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth; /* Rolagem suave para âncoras */
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden; /* Prevenir scroll horizontal */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Cabeçalho e Navegação */
#header {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
}

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

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.logo:hover {
    color: var(--accent-color);
}

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

#navbar ul li {
    margin-left: 25px;
}

#navbar ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-primary);
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

#navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

#navbar ul li a:hover,
#navbar ul li a.active { /* Classe 'active' será adicionada via JS */
    color: var(--primary-color);
}

#navbar ul li a:hover::after,
#navbar ul li a.active::after {
    width: 100%;
}

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


/* Estilo para cabeçalho quando scrollado */
#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}


/* Seções */
.content-section {
    padding: 80px 0;
}
.content-section:nth-child(even) { /* Cor de fundo alternada para algumas seções */
    background-color: #e9ecef;
}

.content-section h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}
.content-section h2::after { /* Detalhe abaixo do título */
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

/* Seção Hero (Início) */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text-color);
    padding-top: 80px; /* Para não ficar sob o header fixo */
}

.hero-section h1 {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}
.btn-primary:hover {
    background-color: #0056b3; /* Tom mais escuro do primário */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--light-text-color);
}
.btn-secondary:hover {
    background-color: #1e7e34; /* Tom mais escuro do accent */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
}

/* Seção Sobre */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.about-image {
    width: 45%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.about-text {
    width: 55%;
}
.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Seção Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-card img { /* Imagem ilustrativa de fundo para o card */
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-bottom: 15px;
    opacity: 0.7;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

/* Seção Produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden; /* Para o hover da imagem */
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}
.product-card:hover img {
    transform: scale(1.05);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin: 15px 0 10px;
}

.product-card .price {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 15px;
}

/* Seção Contato */
.contact-wrapper {
    display: flex;
    gap: 40px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.contact-info, .contact-form {
    width: 50%;
}
.contact-info h3, .contact-form h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.contact-info p i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px; /* Alinhamento */
}
.contact-info h4 {
    margin-top: 20px;
    margin-bottom: 5px;
    font-family: var(--font-primary);
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.form-group textarea {
    resize: vertical;
}

/* Rodapé */
#footer {
    background-color: #343a40; /* Cinza escuro */
    color: var(--light-text-color);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}
#footer p {
    margin-bottom: 5px;
}
#footer .fa-heart {
    color: #e25555; /* Coração vermelho */
}

/* Animações de Scroll */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.fade-in {
    transform: translateY(30px);
}
.animate-on-scroll.slide-up {
    transform: translateY(50px);
}
.animate-on-scroll.is-visible { /* Classe adicionada pelo JS */
    opacity: 1;
    transform: translateY(0);
}
/* Delays para animações em cascata */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }
.delay-5 { transition-delay: 1.0s; }


/* Responsividade */
@media (max-width: 992px) {
    .hero-section h1 { font-size: 2.8rem; }
    .hero-section p { font-size: 1.2rem; }
    .content-section h2 { font-size: 2rem; }

    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-image, .about-text {
        width: 100%;
        max-width: 500px; /* Limitar tamanho da imagem no mobile */
    }
}

@media (max-width: 768px) {
    #navbar {
        display: none; /* Esconde o menu normal */
        position: absolute;
        top: 100%; /* Abaixo do header */
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 10px 0;
    }
    #navbar.active { /* Mostra o menu quando 'active' */
        display: flex;
    }
    #navbar ul {
        flex-direction: column;
        width: 100%;
    }
    #navbar ul li {
        margin: 0;
        text-align: center;
    }
    #navbar ul li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
    #navbar ul li a::after { display: none; } /* Remove underline animado no mobile */
    
    #mobile-menu-toggle {
        display: block; /* Mostra o botão hamburger */
    }

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

    .contact-wrapper {
        flex-direction: column;
    }
    .contact-info, .contact-form {
        width: 100%;
    }
    .contact-info { margin-bottom: 30px; }
}

@media (max-width: 480px) {
    .container { width: 95%; }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section p { font-size: 1rem; }
    .content-section h2 { font-size: 1.8rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }

    .service-card { padding: 20px; }
    .service-icon { font-size: 2.5rem; }
    .service-card h3 { font-size: 1.3rem; }

    .product-card h3 { font-size: 1.1rem; }
    .product-card .price { font-size: 1rem; }
}