/* ---- GERAL & RESET ---- */
:root {
    --primary-color: #0D6EFD; /* Azul principal do logo */
    --primary-hover-color: #0B5ED7; /* Tom mais escuro para hover */
    --secondary-color: #2c3e50;
    --light-color: #f4f4f4;
    --dark-color: #333;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

h1, h2 {
    text-align: center;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

section {
    padding: 4rem 0;
}

/* ---- HEADER & HERO ---- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/header-bg.webp') no-repeat center center/cover;
    color: #fff;
    height: 100vh;
    position: relative;
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Espaçamento entre o ícone e o texto */
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    height: 40px; /* Ajuste a altura do seu logo aqui */
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 85%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {

    display: inline-flex;
    align-items: center; 
    justify-content: center;
    gap: 15px;
    
    background-color: #25D366;
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;

    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px; 
    
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-\color: #128C7E; 
    transform: scale(1.05);   
}

.cta-button img {
    height: 30px; 
    width: auto;
}

/* ---- GRUPO DE BOTÕES CTA (HERO) ---- */
.cta-group {
    margin-top: 2rem; /* Espaço acima da frase "Entre em contato" */
}

.cta-intro {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons-container {
    display: flex;
    justify-content: center; /* Centraliza os botões no container */
    align-items: stretch;    /* Faz os botões terem a mesma altura */
    gap: 20px;               /* Espaço entre os botões */
    flex-wrap: wrap;         /* Permite que os botões quebrem a linha em telas pequenas */
}

/* Garante que os botões tenham o mesmo tamanho */
.cta-button {
    min-width: 280px; /* Define uma largura mínima para ambos os botões */
}

/* Estilo para o ícone de telefone */
.cta-button i {
    font-size: 1.5rem; /* Ajusta o tamanho do ícone de telefone */
}

.phone-button:hover {
    background-color: #1a2531; /* Um tom mais escuro do secondary-color */
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.services-section {
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.service-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-item h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* ---- GALERIA / CARROSSEL (FULL WIDTH) ---- */
.gallery-section {
    background-color: #fff;
    /* Removemos o padding vertical para que o carrossel dite a altura */
    padding: 0; 
}

.full-width-carousel {
    position: relative;
    width: 100%; /* Ocupa 100% da largura da viewport */
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    display: block;
    height: 600px; /* Define uma altura fixa para o carrossel */
    object-fit: cover; /* ESSENCIAL: Cobre a área sem distorcer a imagem */
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Posição dos botões melhorada para o layout full-width */
.carousel-control.prev {
    left: 2rem;
}

.carousel-control.next {
    right: 2rem;
}

/* ---- RESPONSIVIDADE PARA O CARROSSEL ---- */
@media (max-width: 768px) {
    .carousel-item img {
        height: 400px; /* Altura menor para tablets e celulares */
    }

    .carousel-control.prev {
        left: 1rem;
    }

    .carousel-control.next {
        right: 1rem;
    }
}

/* ---- ÁREA DE ATENDIMENTO ---- */
.coverage-section {
    background-color: var(--light-color);
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.coverage-item {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.coverage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background-color: var(--primary-hover-color);
}

/* ---- CONTATO ---- */
.contact-section {
    background: var(--secondary-color);
    color: #fff;
    text-align: center;
}

.contact-section h2 {
    color: #fff;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.contact-item:hover {
    background-color: var(--primary-color);
}

.contact-item i {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* ---- FOOTER ---- */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

/* ---- ESTILOS PARA SUBPÁGINAS (CORRIGIDO) ---- */
.hero-subpage {
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Efeito Parallax */
    color: #fff;
    height: 60vh;
    position: relative; /* Contexto de posicionamento para o sombreado */
    display: flex; /* Adicionado para ajudar no alinhamento vertical */
    flex-direction: column; /* Organiza a nav e o conteúdo em coluna */
}

/* 1. O sombreado agora é um pseudo-elemento */
/* Ele cobre 100% do header, por baixo de tudo. */
.hero-subpage::before {
    content: ''; /* Necessário para o pseudo-elemento existir */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* O nosso sombreado */
    z-index: 1; /* Garante que ele fique abaixo do conteúdo */
}

/* 2. Garantimos que a navbar e o conteúdo fiquem ACIMA do sombreado */
.hero-subpage .navbar, .hero-subpage .hero-subpage-content {
    position: relative;
    z-index: 2;
}

.hero-subpage-content {
    /* Removemos o fundo daqui, pois agora ele está no ::before */
    flex-grow: 1; /* Faz este container ocupar o espaço restante */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-subpage-content h1 {
    font-size: 3rem;
}

.content-section .container {
    display: flex;
    flex-direction: column; 
    align-items: center;   
}

/* ---- RESPONSIVIDADE ---- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: var(--secondary-color);
        position: absolute;
        top: 60px;
        left: 0;
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

@media (max-width: 768px) {
    .hero-subpage {
        height: 50vh;
    }
    .hero-subpage-content h1 {
        font-size: 2.2rem;
    }
}

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

@media (max-width: 500px) {
    .logo {
        font-size: 1.2rem;
    }
    .logo img {
        height: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
}
