/* =================================================================
   CONFIGURAÇÕES GERAIS E FONTE
   ================================================================= */

body { 
    font-family: 'Inter', sans-serif; 
}

/* =================================================================
   ESTILOS DO MENU DE NAVEGAÇÃO (HEADER)
   ================================================================= */

.nav-link { 
    position: relative; 
    transition: color 0.3s ease; 
}

.nav-link::after { 
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px; 
    bottom: -4px; 
    left: 50%; 
    transform: translateX(-50%); 
    background-color: #DC2626; /* Cor do sublinhado (vermelho) */
    transition: width 0.3s ease; 
}

.nav-link:hover::after { 
    width: 100%; 
}

/* =================================================================
   BOTÃO FLUTUANTE DO WHATSAPP
   ================================================================= */

.whatsapp-button { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    background-color: #25D366; 
    color: white; 
    border-radius: 50%; 
    width: 60px; 
    height: 60px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); 
    z-index: 1000; 
    transition: transform 0.3s ease; 
}

.whatsapp-button:hover { 
    transform: scale(1.1); 
}

/* =================================================================
   ANIMAÇÃO DO FAQ (PERGUNTAS FREQUENTES)
   ================================================================= */

.faq-answer { 
    transition: max-height 0.3s ease-out; 
    overflow: hidden; 
    max-height: 0; 
}

.faq-answer.open { 
    max-height: 200px; /* Altura suficiente para a resposta. Ajuste se necessário. */
}

/* =================================================================
   ESTILOS DOS CARDS DA PÁGINA DE FERRAMENTAS
   ================================================================= */

.calculator-card-link {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 0.75rem; /* Adicionado para a sombra seguir a borda */
}

.calculator-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.calculator-card {
    background-color: #f9fafb; /* bg-gray-50 */
    border: 1px solid #e5e7eb; /* border-gray-200 */
    border-radius: 0.75rem; /* rounded-xl */
    padding: 1.5rem; /* p-6 */
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.card-title {
    color: #991b1b; /* text-red-800 */
    font-weight: 600; /* font-semibold */
    font-size: 1.125rem; /* text-lg */
    margin-bottom: 0.5rem; /* mb-2 */
}

.card-description {
    color: #4b5563; /* text-gray-600 */
    font-size: 0.875rem; /* text-sm */
    flex-grow: 1; /* Faz a descrição ocupar o espaço disponível */
}

.card-button {
    background-color: #ef4444; /* bg-red-500 */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem; /* rounded-lg */
    text-align: center;
    margin-top: 1rem; /* mt-4 */
    font-weight: 600; /* font-semibold */
    transition: background-color 0.2s;
}

.calculator-card-link:hover .card-button {
    background-color: #dc2626; /* bg-red-600 */
}

/* =================================================================
   ESTILOS PARA O CONTEÚDO DOS ARTIGOS DO BLOG
   ================================================================= */

.article-content h2 {
    font-size: 1.875rem; /* 30px */
    line-height: 2.25rem; /* 36px */
    font-weight: 700;
    margin-top: 2.5rem; /* 40px */
    margin-bottom: 1rem; /* 16px */
}

.article-content p {
    margin-bottom: 1.25rem; /* 20px */
    line-height: 1.75;
}

.article-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid #DC2626; /* Cor vermelha do site */
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4B5563; /* Cinza escuro */
}

/* =================================================================
   ESTILOS PARA OS FORMULÁRIOS DAS CALCULADORAS
   ================================================================= */

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #D1D5DB; /* Borda cinza */
    border-radius: 0.5rem; /* cantos arredondados */
    background-color: #fff;
    transition: box-shadow 0.2s;
}

.input-group:focus-within {
    border-color: #DC2626; /* Borda vermelha ao focar */
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.input-prefix {
    padding: 0.75rem;
    font-weight: 600;
    color: #4B5563; /* Cinza escuro */
    background-color: #F3F4F6; /* Fundo cinza claro */
    border-right: 1px solid #D1D5DB;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.input-field {
    width: 100%;
    padding: 0.75rem;
    border: none;
    background: none;
    outline: none;
    font-size: 1rem;
}

.input-field-full {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    background-color: #fff;
    outline: none;
    font-size: 1rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.input-field-full:focus {
    border-color: #DC2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}