/* PALETA DE CORES DEFINIDA */
:root {
    --primary-dark: #284754;   /* Verde-azulado Escuro (Principal) */
    --secondary-petrol: #397A91; /* Azul-petróleo (Destaque/CTA) */
    --tertiary-moss: #3E5949;  /* Verde-musgo (Acento) */
    --text-color: #3A3B3E;      /* Cinza Escuro (Texto) */
    --bg-light-soft: #F4F8F9; /* Fundo Suave para seções */
}

/* Tipografia */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
}

/* Efeito de Carregamento (Preloader) */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

#preloader .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--secondary-petrol) !important;
}


/* --- HEADER/NAVBAR --- */
.main-header {
    transition: background-color 0.3s, box-shadow 0.3s;
    z-index: 1001 !important;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-dark) !important;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-petrol) !important;
}

.cta-header {
    /* Destaca o CTA no menu */
    color: var(--secondary-petrol) !important;
    border: 2px solid var(--secondary-petrol);
    border-radius: 5px;
    margin-left: 15px;
    padding: 6px 15px !important;
    font-weight: 700;
}

.cta-header:hover {
    background-color: var(--secondary-petrol);
    color: #fff !important;
}


/* --- SEÇÃO 1: HERO --- */
.hero-section {
    position: relative;
    
    /* Ajuste de padding para compensar o header fixo */
    padding-top: 100px !important; 
    padding-bottom: 120px;
    min-height: 80vh; 
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* --- OVERLAY DE GRADIENTE RADIAL ANIMADO (HOLOFOTE) --- */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    
    background-image: radial-gradient(
        circle at 50% 50%, 
        /* Cor 1: O Centro (Totalmente Transparente) */
        rgba(255, 255, 255, 0) 10%, 
        /* Cor 2: A Borda */
        rgba(40, 71, 84, 0.95) 60% /* AJUSTADO PARA 0.95 */
    );
    
    /* Usamos um background-color de fallback e para garantir a escuridão mínima */
    background-color: rgba(40, 71, 84, 0.6);

    background-size: 200% 200%;
    background-position: 0% 50%;
    animation: radial-shift 15s ease-in-out infinite alternate;
}

/* O @keyframes radial-shift (mantido) */
@keyframes radial-shift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.hero-section .container {
    z-index: 3;
}

.hero-section h1 {
    font-weight: 900;
    font-size: 3.8rem;
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* AJUSTES PARA ANIMAÇÃO DE FADE NO BACKGROUND */

.hero-background-fader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Deve ficar abaixo do overlay (z-index: 2) */
}

/* Redefine as regras de posicionamento para as imagens dentro do fader */
.hero-background-fader .hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 2s ease-in-out; /* Duração do fade mais longa para um toque de charme */
    /* Remove a regra z-index: 1 do .hero-bg-image, pois agora o pai (.hero-background-fader) tem z-index 1 */
}

.hero-background-fader .img-overlay {
    opacity: 0; /* Começa invisível */
}

.hero-background-fader .img-overlay.active {
    opacity: 1; /* Torna a imagem visível suavemente */
}

.cta-button-main {
    background-color: var(--secondary-petrol);
    border-color: var(--secondary-petrol);
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px; /* Botão arredondado para charme */
    transition: all 0.3s;
}

.cta-button-main:hover {
    background-color: var(--tertiary-moss);
    border-color: var(--tertiary-moss);
    transform: translateY(-3px); /* Efeito sutil de levantar */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* --- SEÇÕES DE CONTEÚDO (Imagem e Texto) --- */
/* Card de Imagem */
.image-card-shadow {
    min-height: 450px;
    background-size: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(40, 71, 84, 0.25); /* Sombra mais destacada */
    background-color: var(--tertiary-moss); /* Fallback */
}

.image-card-top{
    background-position: top center;
}

.image-card-center{
    background-position: center center;
}

.bg-primary-dark {
    background-color: var(--primary-dark) !important;
}

.bg-light-soft {
    background-color: var(--bg-light-soft) !important;
}


/* --- SEÇÃO 4: VALORES --- */
.value-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border-bottom: 5px solid var(--secondary-petrol); /* Detalhe colorido */
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-dark);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-petrol);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 10px rgba(57, 122, 145, 0.4);
}

/* --- SEÇÃO 5: CONTATO --- */
.card-form {
    border-radius: 10px;
}

.form-control {
    border-radius: 5px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--secondary-petrol);
    box-shadow: 0 0 0 0.25rem rgba(57, 122, 145, 0.25);
}

.social-links a {
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-petrol) !important;
}

/* --- ESTILO PARA ANIMAÇÃO DE TROCA DE IMAGEM (FADE) --- */

.fade-image-container {
    position: relative;
    /* Adicione estas duas linhas para garantir que o contêiner de sombra funcione como base */
    width: 100%; 
    height: 100%;
}

#abordagem .image-card-shadow {
    /* Anula o background-color do fallback marrom */
    background-color: transparent !important; 
    position: relative; /* Garante que os filhos absolutos (.img-fade-item) funcionem */
    overflow: hidden;
}

.img-fade-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;

    opacity: 0; /* Começa invisível */
    transition: opacity 1.5s ease-in-out; /* Duração do fade */
}

.img-fade-item.active {
    opacity: 1; /* Torna a imagem ativa visível */
}


/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .hero-section {
        min-height: 60vh;
        padding-top: 100px;
        padding-bottom: 80px;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }
    .image-card-shadow {
        min-height: 300px;
    }
}