/* =================================
   GERAL, VARIÁVEIS E FONTES
   ================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #ba3538;
    --primary-hover: #d85052;
    --dark-bg: #111827;
    --dark-card-bg: rgba(31, 41, 55, 0.5);
    --light-bg: #f8f9fa;
    --text-light: #f9fafb;
    --text-dark: #374151;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-title, .page-header-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.section-title span, .page-header-title span {
    color: var(--primary-color);
}

/* =================================
   HEADER
   ================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 40px;
}

.logo h2 {
    color: var(--text-light);
    font-size: 1.6rem;
    font-weight: 800;
}
.logo span {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 400;
    margin-left: 8px;
}

.nav-menu { display: flex; gap: 40px; }
.nav-link { color: var(--text-light); font-weight: 500; transition: color 0.3s ease; position: relative; padding: 5px 0; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary-color); transition: width 0.3s ease; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.hamburger { display: none; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 3px; background: var(--text-light); margin: 5px 0; transition: all 0.3s ease; }


/* =================================
   HERO & PAGE HEADERS https://images.unsplash.com/photo-1529792083865-d23889753466?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D
   ================================= */
.hero { padding-top: 80px; background: linear-gradient(rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.95)), url('https://i.imgur.com/FiAHdCe.jpeg') no-repeat center center; background-size: cover; }
.hero-main { min-height: 100vh; display: flex; align-items: center; }
.page-header { min-height: 40vh; display: flex; align-items: center; justify-content: center; }

.hero-content { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.page-header-content { text-align: center; }

.hero-text h1, .page-header-title { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-text h1 span, .page-header-title span { background: linear-gradient(45deg, var(--primary-color), var(--primary-hover)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text p { font-size: 1.1rem; color: #d1d5db; margin-bottom: 40px; }

.hero-buttons { display: flex; gap: 20px; }
.cta-button { padding: 15px 10px; border-radius: 5px; font-weight: 600; transition: all 0.3s ease; text-align: center; border: 2px solid transparent; }
.cta-button.primary { background-color: var(--primary-color); color: var(--text-light); }
.cta-button.primary:hover { background-color: var(--primary-hover); transform: translateY(-3px); }
.cta-button.secondary { background-color: transparent; color: var(--text-light); border-color: var(--primary-color); }
.cta-button.secondary:hover { background-color: var(--primary-color); }

.hero-image img { width: 100%; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

/* =================================
   CARDS (SERVICES, TESTIMONIALS, ETC)
   ================================= */
.services-section, .testimonials-section, .mission-section, .gallery-section, .contact-page-section { background-color: #1f2937; }
.about-us-section { background-color: var(--dark-bg); }

.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--dark-card-bg); padding: 40px 30px; border-radius: 10px; text-align: center; border: 1px solid var(--border-color); transition: all 0.3s ease; backdrop-filter: blur(10px); }
.card:hover { transform: translateY(-10px); border-color: var(--primary-color); }
.card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 25px; }
.card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--text-light); }
.card p { color: #d1d5db; font-size: 0.95rem; }

.testimonial-card p { font-style: italic; margin-bottom: 20px; }
.testimonial-card h3 { font-weight: 600; color: var(--primary-color); }

/* =================================
   PÁGINAS INTERNAS (SOBRE, SERVIÇOS)
   ================================= */
.content-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.content-grid img { width: 100%; border-radius: 10px; }
.content-grid h2, .service-detail-item h3 { font-size: 2rem; color: var(--primary-color); margin-bottom: 20px; }
.content-grid p, .service-detail-item p { color: #d1d5db; margin-bottom: 20px; }
.content-grid ul, .service-detail-item ul { padding-left: 5px; }
.content-grid ul li, .service-detail-item ul li { margin-bottom: 10px; color: #d1d5db; display: flex; align-items: flex-start; }
.content-grid ul li i, .service-detail-item ul li i { color: var(--primary-color); margin-right: 15px; margin-top: 5px; }

.service-detail-item { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 100px; }
.service-detail-item.alt-layout .service-detail-image { grid-column: 2; }

/* =================================
   GALERIA
   ================================= */
.gallery-filter { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; flex-wrap: wrap; }
.filter-btn { padding: 12px 30px; background: transparent; border: 2px solid var(--primary-color); color: var(--text-light); border-radius: 5px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; }
.filter-btn:hover, .filter-btn.active { background: var(--primary-color); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.gallery-item img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.4s ease; display: block; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(186, 53, 56, 0.9), transparent); color: var(--text-light); display: flex; flex-direction: column; justify-content: flex-end; padding: 25px; opacity: 0; transition: opacity 0.4s ease; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3 { font-size: 1.4rem; transform: translateY(20px); transition: transform 0.4s ease; }
.gallery-item:hover .gallery-overlay h3 { transform: translateY(0); }

/* =================================
   PÁGINA DE CONTATO
   ================================= */
.contact-content-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; background: var(--dark-bg); padding: 60px; border-radius: 10px; }
.contact-form .form-group { margin-bottom: 25px; }
.contact-form label { display: block; margin-bottom: 8px; color: #d1d5db; font-weight: 500; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 15px; background: #1f2937; border: 1px solid #4b5563; border-radius: 5px; color: var(--text-light); font-size: 1rem; transition: border-color 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--primary-color); }
.contact-form textarea { height: 150px; resize: vertical; }

.contact-info-section h2 { color: var(--text-light); margin-bottom: 30px; }
.info-item { display: flex; align-items: center; margin-bottom: 25px; }
.info-item i { font-size: 1.8rem; color: var(--primary-color); margin-right: 20px; width: 40px; }
.info-item h4 { color: var(--text-light); margin-bottom: 5px; }
.info-item p, .info-item a { color: #d1d5db; text-decoration: none; transition: color 0.3s; }
.info-item a:hover { color: var(--primary-color); }

/* =================================
   FOOTER
   ================================= */
.footer { background-color: #1f2937; padding: 80px 0 30px 0; border-top: 1px solid var(--border-color); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 60px; }
.footer-section h3 { color: var(--text-light); font-size: 1.2rem; margin-bottom: 25px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 40px; height: 3px; background: var(--primary-color); }
.footer-section p, .footer-section li { color: #9ca3af; margin-bottom: 12px; }
.footer-section ul li a { color: #9ca3af; transition: all 0.3s ease; }
.footer-section ul li a:hover { color: var(--primary-color); padding-left: 5px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #374151; border-radius: 50%; color: var(--text-light); font-size: 1.1rem; transition: all 0.3s ease; }
.social-links a:hover { background: var(--primary-color); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid #374151; padding-top: 30px; text-align: center; color: #9ca3af; }


/* =================================
   RESPONSIVIDADE
   ================================= */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-image { display: none; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .content-grid, .service-detail-item, .service-detail-item.alt-layout, .contact-content-grid { grid-template-columns: 1fr; }
    .service-detail-item.alt-layout .service-detail-image { grid-row: 1; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; flex-direction: column; }
    .nav-container { padding: 0 20px; }
    .nav-menu { position: fixed; left: -100%; top: 80px; flex-direction: column; background-color: var(--dark-bg); width: 100%; height: calc(100vh - 80px); text-align: center; transition: 0.3s; padding-top: 60px; gap: 50px; }
    .nav-menu.active { left: 0; }
    .hero-text h1, .page-header-title { font-size: 2.5rem; }
    .footer-content { grid-template-columns: 1fr; }
}

/* =================================
   CLASSES DE ANIMAÇÃO
   ================================= */
.reveal {
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: 1s all ease-out;
}
.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* =================================================== */
/* ===== COLE ESTE BLOCO NO SEU ARQUIVO style.css ===== */
/* =================================================== */

/* ESTILOS PARA SEÇÃO DE NÚMEROS */
.numbers-section {
    background-color: var(--dark-bg);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.number-item {
    text-align: center;
}

.number-item .count-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.number-item .count-label {
    font-size: 1rem;
    color: #d1d5db;
}


/* ESTILOS PARA SEÇÃO DE PROCESSO DE TRABALHO */
.process-section {
    background-color: #1f2937;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    margin-top: 40px;
}

.process-step .icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--dark-card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.process-step:hover .icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-color);
}

.process-step .icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.process-step p {
    font-size: 0.9rem;
    color: #d1d5db;
}

/* Linha pontilhada para telas maiores */
.process-grid::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    width: 70%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--border-color), var(--border-color) 10px, transparent 10px, transparent 20px);
    z-index: -1;
}

/* Remove a linha em telas menores */
@media (max-width: 992px) {
    .process-grid::after {
        display: none;
    }
}

/* =================================
   PÁGINA DE ERRO 404
   ================================= */
.error-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 80px); /* Tira a altura do header */
}

.error-content {
    max-width: 600px;
    background: var(--dark-card-bg);
    padding: 60px 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.error-content .icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.error-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.error-content p {
    color: #d1d5db;
    margin-bottom: 40px;
}