/* ==========================================================================
   1. VARIÁVEIS E TEMA
   ========================================================================== */
:root {
    --primary: #0078D4;
    --primary-hover: #005A9E;
    --accent-info: #38bdf8;
    --bg-body: #F8FAFC;
    --text-heading: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --bg-soft-blue: #F0F7FF;
    --glass-bg: rgba(15, 23, 42, 0.15);
    --overlay-gradient: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
}

/* ==========================================================================
   2. RESET E PADRÕES
   ========================================================================== */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
}

/* ==========================================================================
   3. NAVEGAÇÃO
   ========================================================================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #E2E8F0;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

.nav-link {
    color: var(--text-body) !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* ==========================================================================
   4. HERO SECTION (MODO PREMIUM)
   ========================================================================== */
.hero-wrapper {
    min-height: 85vh;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-gradient);
    z-index: 1;
}

/* Caixa de Conteúdo "Glassmorphism" Ampliada */
.hero-content-box {
    position: relative;
    z-index: 10;
    
    /* 1. Fundo de vidro límpido (sem desfoque) */
    /* Aumentamos levemente para 0.15 para o texto não sumir na foto */
    background: rgba(15, 23, 42, 0.15) !important;
    
    /* 2. Removemos o blur, mas mantemos o brilho e contraste para o efeito 'Mirror' */
    backdrop-filter: brightness(1.3) contrast(1.1) saturate(140%);
    -webkit-backdrop-filter: brightness(1.3) contrast(1.1) saturate(140%);
    
    /* 3. Borda fina que define o corte do vidro */
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-left: none; /* Mantém encostado na borda da tela */
    
    padding: 4rem !important;
    border-radius: 0 24px 24px 0;
    margin-left: 0 !important;
    max-width: 680px;

    /* 4. Sombra para destacar a lâmina de vidro da imagem de fundo */
    box-shadow: 15px 0 35px rgba(0, 0, 0, 0.2);
}

/* Sombra no texto é essencial sem o blur para garantir leitura */
.hero-content-box h1 {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.hero-content-box p.lead {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9) !important;
}
/* Ajuste no título para brilhar sobre o vidro */
.hero-content-box h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Sombra suave para dar profundidade sem escurecer a caixa */
.hero-content-box.shadow-lg {
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2) !important;
}
/* Garante que o carrossel de fundo ignore qualquer margem também */
.hero-wrapper {
    margin: 0;
    padding: 0;
    width: 100%;
}

.hero-content-box h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--white);
}

.hero-content-box p.lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem !important;
}

/* Zoom suave nas imagens do fundo */
.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

/* ==========================================================================
   5. COMPONENTES (CARDS, BOTÕES, FORMS)
   ========================================================================== */

/* Feature Cards (Recursos) */
.feature-card {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    overflow: hidden;
    height: 100%;
}

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

.feature-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover img {
    transform: scale(1.05);
}

/* Planos */
.plan-card {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 3rem 2rem;
    transition: transform 0.3s ease;
}

.plan-featured {
    border: 2px solid var(--primary);
    box-shadow: 0 15px 35px rgba(0, 120, 212, 0.15);
    transform: scale(1.05);
}

/* Botões */
.btn-primary {
    background-color: var(--primary);
    border: none;
    padding: 0.9rem 2.2rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}


.btn-success {
    background-color: #25d366 !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #128c7e !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3) !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

/* Filtros */
.filter-btn {
    border-radius: 50px;
    padding: 0.6rem 1.6rem;
    font-weight: 600;
}

/* Formulários */
.form-control-lg {
    font-size: 1rem;
    border-color: #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
}

.form-control-lg:focus {
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.1);
    border-color: var(--primary);
}


/* Faz com que a linha (row) se comporte como flexbox puro */
#demonstracao .row {
    display: flex;
    align-items: stretch; /* Força as colunas a terem o mesmo tamanho */
}

/* Container da imagem ocupa toda a altura da coluna */
.img-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* A imagem preenche o espaço sem distorcer */
.img-full-height {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Corta a imagem para preencher o espaço mantendo a proporção */
    object-position: center; /* Mantém a secretária centralizada no corte */
}

/* Estilo do botão verde WhatsApp */
.btn-success {
    background-color: #25d366 !important;
    border: none !important;
}

/* Seleciona todos os campos de texto e a área de mensagem */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
select, 
textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    
    /* A borda fina e cinza que você pediu */
    border: 1px solid #d1d5db; 
    border-radius: 6px; /* Borda levemente arredondada para suavizar */
    
    background-color: #ffffff;
    color: #374151;
    font-size: 16px;
    
    /* Remove o contorno padrão azul/preto grosso do navegador */
    outline: none;
    
    /* Transição suave para quando o usuário clicar */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Efeito quando o usuário clica no campo (Focus) */
input:focus, textarea:focus {
    border-color: #9ca3af; /* Um cinza um pouco mais escuro */
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.1); /* Um brilho sutil */
}


/* ==========================================================================
   6. UTILITÁRIOS E AJUSTES FINAIS
   ========================================================================== */
.text-primary { color: var(--primary) !important; }
.text-info { color: var(--accent-info) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-soft-blue { background-color: var(--bg-soft-blue); }
.resource-item.hide { display: none; }
.object-fit-cover { object-fit: cover; }

/* Ajustes de Carrossel de Segmentos */
#segmentosCarousel .carousel-item { padding: 3rem 0; }
#segmentosCarousel .carousel-indicators button {
    width: 10px; height: 10px; border-radius: 50%;
    background-color: var(--primary); opacity: 0.3;
}
#segmentosCarousel .carousel-indicators button.active { opacity: 1; }

/* Responsividade para o Hero */
@media (max-width: 991px) {
    .hero-content-box {
        padding: 2.5rem !important;
        margin: 1rem;
        text-align: center;
    }
    .hero-content-box h1 { font-size: 2.5rem; }
    .hero-content-box .d-flex { justify-content: center; }
}