/*
Theme Name: Elastimper Premium FAQ
Theme URI: https://elastimper.ind.br
Description: Tema WordPress premium para FAQ da Elastimper. Design profissional que transmite confiança e autoridade com identidade visual "Elastimper Resolve".
Version: 2.0.0
Author: Elastimper
Author URI: https://elastimper.ind.br
Text Domain: elastimper-premium
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: faq, custom-post-types, responsive, professional, business

Este tema foi desenvolvido especificamente para o site FAQ da Elastimper,
com foco em transmitir confiança, autoridade e profissionalismo.
*/

/* ========================================
   RESET E BASE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Principais - Identidade Elastimper */
    --primary-blue: #4A90D9;
    --primary-dark: #2C5F8D;
    --primary-light: #6BA8E5;
    
    /* Cores Secundárias */
    --secondary-gray: #4A5568;
    --secondary-light: #718096;
    
    /* Cores de Fundo */
    --bg-white: #FFFFFF;
    --bg-light: #F7FAFC;
    --bg-gray: #EDF2F7;
    
    /* Cores de Texto */
    --text-dark: #2D3748;
    --text-medium: #4A5568;
    --text-light: #718096;
    
    /* Cores de Destaque */
    --success: #48BB78;
    --warning: #ED8936;
    --danger: #F56565;
    --info: #4299E1;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Bordas */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Tipografia */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Inter', var(--font-sans);
    
    /* Transições */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.site-logo img {
    height: 60px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.main-navigation a {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.main-navigation a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.header-cta {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-header {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.btn-header-primary {
    background: white;
    color: var(--primary-blue);
}

.btn-header-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-header-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-header-secondary:hover {
    background: white;
    color: var(--primary-blue);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, var(--primary-blue) 100%);
    color: white;
    padding: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    font-weight: 400;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   SEARCH BAR
   ======================================== */

.search-container {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-light);
    font-size: 1.25rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    font-size: 1.125rem;
    border: 3px solid transparent;
    border-radius: var(--radius-lg);
    background: white;
    color: var(--text-dark);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.1), var(--shadow-xl);
}

.search-input::placeholder {
    color: var(--text-light);
}

/* ========================================
   CATEGORY FILTERS
   ======================================== */

.category-filters {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
    position: sticky;
    top: 100px;
    z-index: 100;
}

.filter-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-medium);
    margin-bottom: var(--spacing-sm);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--bg-gray);
    background: white;
    color: var(--text-medium);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-blue);
    background: rgba(74, 144, 217, 0.05);
}

.filter-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.filter-btn .count {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 0.75rem;
}

.filter-btn.active .count {
    background: rgba(255, 255, 255, 0.25);
}

/* ========================================
   FAQ LIST
   ======================================== */

.faq-list {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.faq-header {
    padding: var(--spacing-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    flex: 1;
}

.faq-category-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--bg-gray);
    color: var(--text-medium);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.faq-toggle-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.open .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.open .faq-content {
    max-height: 5000px;
}

.faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.8;
}

.faq-answer h4 {
    color: var(--primary-dark);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.faq-answer ul, .faq-answer ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: var(--text-dark);
    font-weight: 700;
}

.faq-video {
    margin-top: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.faq-video iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ========================================
   SINGLE FAQ PAGE
   ======================================== */

.single-faq-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: white;
    padding: var(--spacing-xl) 0;
}

.single-faq-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.single-faq-meta {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.single-faq-content {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: calc(var(--spacing-xl) * -1) auto var(--spacing-xl);
    max-width: 900px;
}

.single-faq-answer {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-medium);
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.sidebar-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--primary-blue);
}

.related-faqs {
    list-style: none;
}

.related-faq-item {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--bg-gray);
}

.related-faq-item:last-child {
    border-bottom: none;
}

.related-faq-link {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    transition: all var(--transition-base);
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.related-faq-link:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
    padding-left: var(--spacing-sm);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-base);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.disclaimer-section {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.disclaimer-section h4 {
    color: var(--warning);
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

.disclaimer-section p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

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

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.hidden { display: none; }
.visible { display: block; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-2xl: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-cta {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        text-align: left;
    }
    
    .category-filters {
        position: static;
    }
    
    .faq-question {
        font-size: 1.125rem;
    }
    
    .faq-header {
        padding: var(--spacing-md);
    }
    
    .faq-answer {
        padding: 0 var(--spacing-md) var(--spacing-md);
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-logo img {
        height: 45px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 1rem 1rem 1rem 3rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-down {
    animation: slideDown 0.4s ease-out;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .site-header,
    .category-filters,
    .footer-section,
    .mobile-menu-toggle {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .faq-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
