/* ==========================================================================
   1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --cor-primaria: #0052cc;
    --cor-primaria-dark: #003366;
    --cor-secundaria: #ff6a00;
    --cor-secundaria-hover: #e65c00;
    --cor-fundo: #f8f9fa;
    --cor-fundo-secao: #ffffff;
    --cor-texto: #343a40;
    --cor-texto-claro: #6c757d;
    --cor-branco: #ffffff;
    --sombra-padrao: 0 8px 24px rgba(0, 82, 204, 0.1);
    --border-radius-padrao: 12px;

    /* Novas variáveis para o Slider */
    --slider-track-color: #e0e0e0;
    --slider-fill-color-start: var(--cor-secundaria);
    --slider-fill-color-end: #ff8c33;
    --slider-thumb-color: var(--cor-primaria);
    --slider-thumb-shadow: 0 2px 8px rgba(0, 82, 204, 0.3);
}

/* ==========================================================================
   2. ESTILOS DE BASE (RESET E TIPOGRAFIA)
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    color: var(--cor-primaria-dark);
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: var(--cor-texto-claro);
    font-size: 1.1rem;
}

/* ==========================================================================
   3. LAYOUT E COMPONENTES GERAIS (UTILITIES)
   ========================================================================== */

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

.flex {
    display: flex;
    align-items: center;
}

.between {
    justify-content: space-between;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   4. HEADER
   ========================================================================== */

.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header .logo img {
    max-height: 45px;
}

.header .menu ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header .menu a {
    color: var(--cor-primaria-dark);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.header .menu a:hover::after {
    width: 100%;
}

.header .menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cor-secundaria);
    transition: width 0.3s ease;
}

/* --- Botão CTA (Simule Grátis) --- */
.btn-cta {
    background: var(--cor-secundaria);
    color: var(--cor-branco);
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    user-select: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 106, 0, 0.2);
}

.btn-cta:hover {
    background: var(--cor-secundaria-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}

.btn-cta:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(255, 106, 0, 0.3);
}

/* Regras específicas para o CTA dentro do menu */
.header .menu li.header-cta a {
    padding: 12px 25px;
}

.header .menu li.header-cta a::after {
    display: none;
}

.header .menu a.btn-cta,
.header .menu a.btn-cta:hover {
    color: var(--cor-branco);
}

/* --- Botão Menu Hamburguer (Mobile) --- */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--cor-primaria-dark);
    cursor: pointer;
    z-index: 1001;
}

/* ==========================================================================
   5. SEÇÃO HERO
   ========================================================================== */

.hero {
    background: var(--cor-fundo);
    padding: 60px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.15rem;
    color: var(--cor-texto-claro);
    margin-bottom: 2rem;
    max-width: 550px;
}

.btn-hero {
    background: var(--cor-primaria);
    color: var(--cor-branco);
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-hero:hover {
    background: var(--cor-primaria-dark);
    transform: translateY(-3px);
    box-shadow: var(--sombra-padrao);
}

/* ==========================================================================
   6. SEÇÃO SERVIÇOS
   ========================================================================== */

.servicos {
    padding: 80px 0;
    background: var(--cor-fundo-secao);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.servico-card {
    background: var(--cor-fundo);
    padding: 2rem;
    border-radius: var(--border-radius-padrao);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.servico-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-padrao);
}

.servico-card img {
    height: 50px;
    margin: 0 auto 1.5rem auto;
}

.servico-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.servico-card p {
    color: var(--cor-texto-claro);
    font-size: 0.95rem;
}

/* ==========================================================================
   7. SEÇÃO QUEM SOMOS
   ========================================================================== */

.sobre {
    padding: 80px 0;
    background: var(--cor-fundo);
}

.sobre .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.sobre-image {
    flex: 1;
}

.sobre-image img {
    border-radius: var(--border-radius-padrao);
    box-shadow: var(--sombra-padrao);
}

.sobre-content {
    flex: 1;
}

.sobre-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.sobre-content p {
    font-size: 1.1rem;
    color: var(--cor-texto-claro);
}

/* ==========================================================================
   8. SEÇÃO BENEFÍCIOS
   ========================================================================== */

.beneficios {
    padding: 80px 0;
    background: var(--cor-fundo-secao);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.beneficio-card {
    text-align: left;
}

.beneficio-card img {
    height: 40px;
    margin-bottom: 1rem;
}

.beneficio-card h3 {
    margin-bottom: 0.5rem;
}

.beneficio-card p {
    color: var(--cor-texto-claro);
}

/* ========================================================================== 
   9. SEÇÃO FORMULÁRIO (AJUSTADO COM SELECT)
   ========================================================================== */

.formulario-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-primaria-dark));
}

.formulario-container {
    max-width: 600px;
    margin: auto;
    background: var(--cor-fundo-secao);
    padding: 3rem;
    border-radius: var(--border-radius-padrao);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.formulario-section h2, .formulario-section p {
    color: var(--cor-primaria-dark);
}

.formulario-section p {
    color: var(--cor-texto-claro);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Inputs, Textarea e Select padronizados */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    color: var(--cor-texto);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Ícone da setinha do select */
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%230052cc' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    cursor: pointer;
}

/* Foco */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.2);
}

/* Botão de envio */
.btn-submit {
    width: 100%;
    background: var(--cor-secundaria);
    color: var(--cor-branco);
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-submit:hover {
    background: var(--cor-secundaria-hover);
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

/* ==========================================================================
   10. SEÇÃO PÁGINA SIMULADOR
   ========================================================================== */

.simulador-section {
    padding: 30px 0;
    background: var(--cor-fundo);
}

.simulador-container {
    display: flex;
    gap: 3rem;
    background: var(--cor-fundo-secao);
    padding: 3rem;
    border-radius: var(--border-radius-padrao);
    box-shadow: var(--sombra-padrao);
    margin-top: 2rem;
    align-items: flex-start;
}

.simulador-form {
    flex: 1;
    max-width: 450px;
    padding-right: 1.5rem;
    border-right: 1px solid #f0f0f0;
}

.simulador-resultado {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-left: 1.5rem;
}
.simulador-section h1 {
    text-align: center;
    margin-bottom: 1rem;
}
/* Seção SEO - Simulador */
.seo-text {
  background: #ffffff;
  padding: 60px 20px;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.seo-text .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.seo-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 25px;
}

.seo-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 15px;
}

.seo-text strong {
  color: #0d47a1;
  font-weight: 600;
}

.seo-text em {
  font-style: normal;
  color: #1565c0;
  font-weight: 500;
}

.seo-text a {
  color: #ff6600;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.seo-text a:hover {
  color: #e25500;
}



/* --- Estilos dos Sliders --- */
.slider-group {
    margin-bottom: 2.5rem;
    position: relative;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 8px;
    background: var(--slider-track-color);
    border-radius: 5px;
    margin-top: 1rem;
    overflow: hidden;
}

.slider-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--slider-fill-percentage, 0%);
    background: linear-gradient(to right, var(--slider-fill-color-start), var(--slider-fill-color-end));
    border-radius: 5px;
    transition: width 0.1s ease-out;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: transparent;
    border-radius: 5px;
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    z-index: 2;
    cursor: grab;
}

input[type="range"]:active {
    cursor: grabbing;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--slider-thumb-color);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: var(--slider-thumb-shadow);
    border: 3px solid var(--cor-branco);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    transform: scale(1);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--slider-thumb-color);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: var(--slider-thumb-shadow);
    border: 3px solid var(--cor-branco);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    transform: scale(1);
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.4);
}

.slider-value {
    display: flex;
    justify-content: center;
    align-items: baseline;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cor-primaria-dark);
    margin-top: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

.slider-value span:first-child {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 8px;
    color: var(--cor-texto-claro);
}

/* --- Estilos do Select de Banco --- */
.select-banco {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.1rem;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%230052cc' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.select-banco:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.2);
}

/* --- Estilos do Resultado --- */
.simulador-resultado h3 {
    color: var(--cor-primaria-dark);
    margin-bottom: 1.5rem;
}

.resultado-box {
    background: linear-gradient(145deg, #eaf2ff, #f0f8ff);
    border-radius: var(--border-radius-padrao);
    padding: 2.5rem 2rem;
    margin: 1.5rem 0 2rem 0;
    border: 1px solid #dbe9ff;
    box-shadow: inset 0 1px 3px rgba(0, 82, 204, 0.05), var(--sombra-padrao);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.label-resultado {
    color: var(--cor-texto-claro);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.valor-destaque {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--cor-primaria);
    animation: fadeIn 0.4s ease-out;
}

.resultado-box hr {
    border: 0;
    height: 1px;
    background-color: #cddff8;
    margin: 2rem 0;
}

.resultado-detalhes {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: auto;
}

.resultado-detalhes div {
    flex: 1;
    padding: 0 1rem;
}

.resultado-detalhes p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cor-primaria-dark);
}

.resultado-detalhes p.label-resultado {
    font-weight: 500;
    color: var(--cor-texto-claro);
}

.btn-full-width {
    width: 100%;
    margin-top: 1rem;
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--cor-texto-claro);
    margin-top: 1.5rem;
    line-height: 1.4;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.footer {
    background: var(--cor-primaria-dark);
    color: #e9ecef;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #1a4a7f;
}

.footer-logo {
    max-height: 40px;
    margin-bottom: 1rem;
}

.footer-col h3 {
    color: var(--cor-branco);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col p, .footer-col a {
    color: #ced4da;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col a:hover {
    color: var(--cor-secundaria);
}

.contact-icon {
    width: 16px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #adb5bd;
}
.developer-info {
      text-align: center;
      font-size: 12px;
      margin-top: 10px;
    }
    
    .developer-info a {
      text-decoration: none;
      color: inherit;
    }
/* ==========================================================================
   12. ANIMAÇÕES
   ========================================================================== */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   13. RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */

/* --- Telas Médias (Tablets) --- */
@media (max-width: 992px) {
    h2 { font-size: 2rem; }
    .hero h1 { font-size: 2.5rem; }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text { order: 2; }
    .hero-image {
        order: 1;
        max-width: 400px;
        margin-bottom: 2rem;
    }
    .hero p { margin-left: auto; margin-right: auto; }

    .sobre .container { flex-direction: column; }
    .sobre-content h2 { text-align: center; }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col p, .footer-col a { justify-content: center; }
    
    .footer-col:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Simulador */
    .simulador-container {
        flex-direction: column;
        padding: 2rem;
        align-items: center;
    }
    
    .simulador-form {
        max-width: 100%;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
    .simulador-resultado {
        padding-left: 0;
    }
    .resultado-detalhes {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- Telas Pequenas (Celulares) --- */
@media (max-width: 768px) {
    h2 { font-size: 1.8rem; }
    .hero h1 { font-size: 2rem; }
    .formulario-container { padding: 2rem; }
    
    /* --- Header Responsivo --- */
    .header .menu {
        display: none;
    }

    .header-controls {
        display: flex;
        align-items: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* --- Menu Mobile Aberto --- */
    nav.menu.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--cor-fundo-secao);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        animation: slideDown 0.3s ease-out;
        padding-top: 10px;
    }

    nav.menu.mobile-active ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    nav.menu.mobile-active li {
        width: 100%;
        text-align: center;
    }

    nav.menu.mobile-active li a:not(.btn-cta) {
        padding: 1rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    nav.menu.mobile-active li a:not(.btn-cta):hover {
        background: #f8f9fa;
        color: var(--cor-secundaria);
    }

    nav.menu.mobile-active li.header-cta {
        order: -1;
        padding: 1rem 1.5rem;
        border-bottom: 2px solid #eee;
    }

    nav.menu.mobile-active li.header-cta .btn-cta {
        width: 100%;
        display: block;
        font-size: 1.1rem;
        padding: 14px;
    }

    /* --- Simulador Responsivo --- */
    .simulador-section {
        padding: 40px 0;
    }
    .simulador-container {
        padding: 1.5rem;
        box-shadow: none;
    }
    .valor-destaque {
        font-size: 2.5rem;
    }
    .slider-value {
        font-size: 2rem;
    }
    .slider-value span:first-child {
        font-size: 1.2rem;
    }
}