/*
Theme Name: PrecPago Theme
Description: Tema personalizado para PrecPago - Compra e Venda de Precatórios com máscaras e validação de formulários integradas.
Author: Claude Code
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: precpago-theme
Domain Path: /languages
Tags: business, finance, forms, responsive, custom-post-types
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* 
===============================================
FONTES LOCAIS
===============================================
*/
@font-face {
    font-display: swap;
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400;
    src: url("assets/fonts/manrope/manrope-regular.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Manrope";
    font-style: normal;
    font-weight: 500;
    src: url("assets/fonts/manrope/manrope-500.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Manrope";
    font-style: normal;
    font-weight: 600;
    src: url("assets/fonts/manrope/manrope-600.woff2") format("woff2");
}

/* 
===============================================
RESET E BASE
===============================================
*/
* {
    box-sizing: border-box;
}

body {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* 
===============================================
VALIDAÇÃO DE FORMULÁRIOS - ESTILOS INCORPORADOS
===============================================
*/
input.valid {
    border-color: #28a745 !important;
    background-color: #f8fff9 !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1) !important;
}

input.invalid {
    border-color: #ff6900 !important;
    background-color: #fff8f6 !important;
    box-shadow: 0 0 0 2px rgba(255, 105, 0, 0.1) !important;
}

.wpcf7-not-valid-tip {
    color: #ff6900 !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-weight: 500 !important;
}

.form-submission-warning {
    background: #ff6900 !important;
    color: white !important;
    padding: 15px !important;
    border-radius: 5px !important;
    margin: 15px 0 !important;
    text-align: center !important;
    font-weight: bold !important;
    animation: shake 0.5s ease-in-out !important;
    border: 2px solid #e55a00 !important;
    box-shadow: 0 4px 8px rgba(255, 105, 0, 0.3) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 
===============================================
WORDPRESS CORE STYLES
===============================================
*/
.alignleft {
    float: left;
    margin-right: 1em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin: 0 auto 1em;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-top: 0.5em;
}

/* 
===============================================
CLASSES UTILITÁRIAS
===============================================
*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* 
===============================================
RESPONSIVIDADE
===============================================
*/
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .alignleft,
    .alignright {
        float: none;
        display: block;
        margin: 0 auto 1em;
    }
}

/* 
===============================================
CORES DO TEMA
===============================================
*/
:root {
    --primary-color: #ff6900;
    --primary-dark: #e55a00;
    --success-color: #28a745;
    --error-color: #ff6900;
    --text-color: #333;
    --text-light: #666;
    --background-color: #fff;
    --border-color: #e1e5e9;
}

/* 
===============================================
BOTÕES PADRÃO
===============================================
*/
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.3);
}

/* 
===============================================
FORMULÁRIOS
===============================================
*/
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 
===============================================
TEMA COMPLETO SERÁ IMPORTADO NO FUNCTIONS.PHP
===============================================
*/