/* Importação das fontes do Google Fonts */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #F8F8F8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #333333;
    line-height: 1.2;
}
/* Animações de Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}


/* Variáveis CSS para cores */
:root {
    --primary-red: #DC143C; /* Crimson */
    --secondary-red: #B22222; /* Firebrick */
    --text-dark: #333333;
    --bg-light: #F8F8F8;
    --white: #FFFFFF;
}

/* Estilos Globais */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

a {
    text-decoration: none;
    color: var(--primary-red);
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

.btn-secondary {
    background-color: var(--text-dark);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #555555;
    color: var(--white);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-red);
    padding: 0;
    font-weight: 600;
}

.btn-link:hover {
    color: var(--secondary-red);
}

/* Header */
.main-header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Estilos para o Logotipo de Imagem */
.logo img {
    height: 50px; /* Ajuste esta altura conforme necessário para o seu logo */
    width: auto; /* Mantém a proporção da imagem */
    display: block; /* Remove espaços extras comuns em imagens */
}
.logo a {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-red);
}
/* Opcional: Se a sua classe .logo tiver padding/margin, verifique se está bom com a imagem */
.logo {
    display: flex; /* Garante que a imagem se alinha bem */
    align-items: center; /* Centraliza verticalmente se o header for mais alto */
}
.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-red);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}
/* Animações de Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Pode adicionar mais: slide-left, slide-right, zoom-in etc. */

/* Menu Toggle (para mobile) */
.menu-toggle {
    display: none; /* Escondido por padrão em desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}
/* Estado de ativo para o ícone de hambúrguer (opcional para animação visual do X) */
.menu-toggle.is-active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* Carrossel da Hero Section */
.hero-section {
    position: relative;
    overflow: hidden; /* Garante que as imagens que não estão ativas ficam escondidas */
    padding: 0; /* Remove padding que estava no .hero-section original */
    min-height: 550px; /* Altura mínima para o carrossel */
    display: flex; /* Para centralizar o conteúdo do slide */
    align-items: center;
    justify-content: center;
}

.hero-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease-in-out; /* Para animação de slide */
}

.carousel-item {
    min-width: 100%; /* Cada item ocupa a largura total */
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cobre todo o espaço */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0; /* Abaixo do overlay e do conteúdo */
}

.carousel-item::before { /* Overlay escuro */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Acima do overlay */
    max-width: 800px;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.8em; /* Ajuste para caber bem no carrossel */
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.carousel-nav .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-nav .dot.active {
    background-color: var(--primary-red);
    transform: scale(1.2);
}

/* About Brief Section */
.about-brief {
    text-align: center;
    padding: 60px 0;
    background-color: var(--white);
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.about-brief h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-red);
}

.about-brief p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Services Section */
.featured-services {
    padding: 60px 0;
    text-align: center;
}

.featured-services h2 {
    font-size: 2.8em;
    margin-bottom: 50px;
    color: var(--primary-red);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--secondary-red);
}

.service-item p {
    font-size: 1em;
    margin-bottom: 20px;
}

/* Footer */
.main-footer {
    background-color: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.main-footer a {
    color: var(--primary-red);
}

.main-footer a:hover {
    color: var(--white);
}

/* Estilos para Páginas Internas (page-hero, content-section, etc.) */
.page-hero {
    background-color: var(--secondary-red); /* Um vermelho mais escuro */
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.page-hero h1 {
    font-size: 3.5em;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.content-section {
    padding: 40px 0;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.content-section .intro-text {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* --- Estilos para SOBRE NÓS --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px;
}

.about-item {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.about-item h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 1.8em;
}

.about-item ul {
    text-align: left;
    margin-top: 15px;
}

.about-item ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-item ul li i { /* Ícones de checkmark, precisa de Font Awesome */
    color: var(--primary-red);
    font-size: 1.2em;
}

.team-section {
    text-align: center;
    margin-top: 60px;
    padding: 0 20px;
}

.team-section h2 {
    color: var(--secondary-red);
    margin-bottom: 20px;
    font-size: 2.5em;
}


/* --- Estilos para SERVIÇOS (Geral) --- */
.services-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.service-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.service-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-red);
    font-size: 2em;
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 25px;
    flex-grow: 1; /* Para que todos os parágrafos tenham a mesma altura */
}


/* --- Estilos para PORTFÓLIO --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.portfolio-item {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden; /* Para a imagem não sair dos limites */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Para as imagens preencherem o espaço */
    display: block;
}

.portfolio-item .item-info {
    padding: 20px;
}

.portfolio-item .item-info h3 {
    color: var(--secondary-red);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.portfolio-item .item-info p {
    font-size: 0.95em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.portfolio-item .item-info span {
    display: block;
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

/* --- Estilos para CONTACTO --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas em desktop */
    gap: 50px;
    padding: 0 20px;
}
.contact-form, .contact-info {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-form h3, .contact-info h3 {
    color: var(--primary-red);
    margin-bottom: 25px;
    font-size: 2em;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
}

.form-group textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    margin-top: 15px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

.contact-info p i { /* Ícones (envelope, telefone, localização) - precisa de Font Awesome */
    color: var(--primary-red);
    font-size: 1.3em;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block; /* Remove espaço extra abaixo do iframe */
}
/* --- Estilos para Páginas Detalhadas de Serviço --- */
.service-detail-section {
    padding-top: 20px; /* Ajusta o padding para a intro-text logo abaixo do page-hero */
}

.service-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    padding: 0 20px;
}

.service-point-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-point-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.service-point-item h3 {
    color: var(--secondary-red);
    font-size: 1.8em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.service-point-item h3 i {
    font-size: 1.5em;
    color: var(--primary-red);
}

.service-point-item p {
    font-size: 1em;
}

.service-gallery {
    margin-top: 80px;
    text-align: center;
    padding: 0 20px;
}

.service-gallery h2 {
    font-size: 2.8em;
    color: var(--primary-red);
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

.cta-bottom {
    text-align: center;
    background-color: var(--bg-light);
    padding: 50px 20px;
    border-radius: 8px;
    margin-top: 80px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.cta-bottom p {
    font-size: 1.5em;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.4;
}

.cta-bottom .btn {
    font-size: 1.2em;
    padding: 15px 35px;
}


/* Media Queries para Responsividade */
@media (max-width: 992px) {
    .main-nav {
        display: none; /* Esconde o menu de navegação em telas menores */
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 80px; /* Ajuste conforme a altura do seu header */
        left: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 1000;
        /* Adicione estas linhas para transição suave */
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .main-nav.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .main-nav a {
        font-size: 1.2em;
        padding: 10px 0;
        display: block;
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: flex; /* Mostra o ícone do menu hambúrguer */
    }

    .hero-content h1 {
        font-size: 3em;
    }
    .hero-content p {
        font-size: 1.3em;
    }

    .about-brief h2, .featured-services h2 {
        font-size: 2em;
    }
    .hero-content h1 {
        font-size: 3em;
    }
    .hero-content p {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 40px; /* Um pouco menor para telas pequenas */
    }
    .hero-section {
        min-height: 450px;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }
    .hero-section {
        min-height: 450px;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1.1em;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas muito pequenas */
    }
    .contact-grid {
        grid-template-columns: 1fr; /* Uma coluna em mobile */
    }
    .page-hero h1 {
        font-size: 2.5em;
    }
     .service-points-grid {
        grid-template-columns: 1fr;
    }

    .service-gallery h2 {
        font-size: 2.2em;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .cta-bottom p {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 350px;
    }
    .hero-content h1 {
        font-size: 1.8em;
    }
    .hero-content p {
        font-size: 0.9em;
    }
    .carousel-nav .dot {
        width: 10px;
        height: 10px;
    }
    
    
     .hero-section {
        min-height: 350px;
    }
    .hero-content h1 {
        font-size: 1.8em;
    }
    .hero-content p {
        font-size: 0.9em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-hero h1 {
        font-size: 2em;
    }
    .content-section .intro-text {
        font-size: 1em;
    }
    .about-item h3, .contact-form h3, .contact-info h3 {
        font-size: 1.8em;
    }
    .service-point-item h3 {
        font-size: 1.5em;
    }
    .cta-bottom p {
        font-size: 1em;
    }
}