/*
Theme Name: Bordado da Jú
Theme URI: https://bordadodaju.com
Author: Fernando Calegari
Author URI: https://calegari.art.br
Description: Tema WordPress moderno e otimizado para Elementor. Totalmente editável, responsivo e focado em performance. Perfeito para sites de artesanato e e-commerce.
Version: 1.0.0
Requires at least: 6.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
Text Domain: ebordadodaju
Tags: elementor, full-site-editing, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, e-commerce

Bordado da Jú - Tema profissional otimizado para Elementor
*/

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--e-global-typography-text-font-family, 'Lato', sans-serif);
    font-size: var(--e-global-typography-text-font-size, 16px);
    line-height: 1.6;
    color: var(--e-global-color-text, #3d3632);
    background-color: var(--e-global-color-background, #fcfbfa);
}

/* ==========================================================================
   ELEMENTOR GLOBAL COLORS FALLBACKS
   ========================================================================== */

:root {
    /* Cores Primárias */
    --theme-primary: #ff6961;
    --theme-primary-dark: #e85a52;
    --theme-primary-light: #ffb3ae;
    
    /* Cores Secundárias */
    --theme-secondary: #f5eee6;
    --theme-accent: #b8d4c8;
    --theme-gold: #c9a54a;
    --theme-rose: #c97a7a;
    
    /* Neutros */
    --theme-background: #fcfbfa;
    --theme-foreground: #3d3632;
    --theme-muted: #8a8078;
    --theme-border: #e8e0d8;
    
    /* Sombras */
    --theme-shadow-sm: 0 2px 8px rgba(61, 54, 50, 0.08);
    --theme-shadow-md: 0 8px 24px rgba(61, 54, 50, 0.12);
    --theme-shadow-lg: 0 16px 48px rgba(61, 54, 50, 0.16);
    
    /* Transições */
    --theme-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Bordas */
    --theme-radius-sm: 8px;
    --theme-radius-md: 12px;
    --theme-radius-lg: 16px;
    --theme-radius-xl: 24px;
}

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--e-global-typography-primary-font-family, 'Cormorant Garamond', serif);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--e-global-color-primary, var(--theme-foreground));
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin: 0 0 1rem;
}

a {
    color: var(--e-global-color-accent, var(--theme-primary));
    text-decoration: none;
    transition: var(--theme-transition);
}

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

/* ==========================================================================
   CONTAINER
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

/* ==========================================================================
   HEADER STYLES (quando não usar Elementor Header)
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(252, 251, 250, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--theme-border);
    transition: var(--theme-transition);
}

.site-header.scrolled {
    box-shadow: var(--theme-shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--theme-foreground);
}

.site-logo svg {
    color: var(--theme-primary);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--theme-foreground);
    padding: 8px 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--theme-primary);
    transition: var(--theme-transition);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--theme-foreground);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--theme-background);
        padding: 40px 20px;
        transform: translateX(-100%);
        transition: var(--theme-transition);
        z-index: 999;
    }
    
    .main-navigation.active {
        transform: translateX(0);
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .main-navigation a {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   FOOTER STYLES (quando não usar Elementor Footer)
   ========================================================================== */

.site-footer {
    background: var(--theme-foreground);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--theme-primary-light);
}

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

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--theme-radius-lg);
    cursor: pointer;
    transition: var(--theme-transition);
}

.btn-primary {
    background: var(--theme-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--theme-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--theme-foreground);
    border: 2px solid var(--theme-border);
}

.btn-outline:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

.btn-secondary {
    background: var(--theme-secondary);
    color: var(--theme-foreground);
}

.btn-secondary:hover {
    background: var(--theme-accent);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: #fff;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    background: #fff;
    border-radius: var(--theme-radius-xl);
    overflow: hidden;
    box-shadow: var(--theme-shadow-sm);
    transition: var(--theme-transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--theme-shadow-lg);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--theme-primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 24px;
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.card-description {
    color: var(--theme-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.card-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--theme-primary);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--theme-muted);
    margin-top: 8px;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
    padding: 100px 0;
}

.section-sm {
    padding: 60px 0;
}

.section-lg {
    padding: 140px 0;
}

.section-bg-cream {
    background: var(--theme-secondary);
}

.section-bg-secondary {
    background: linear-gradient(135deg, var(--theme-secondary) 0%, rgba(184, 212, 200, 0.2) 100%);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 16px;
}

.section-title span {
    color: var(--theme-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--theme-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ==========================================================================
   GRIDS
   ========================================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--theme-foreground);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid var(--theme-border);
    border-radius: var(--theme-radius-md);
    background: #fff;
    transition: var(--theme-transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 4px rgba(255, 105, 97, 0.1);
}

.form-control::placeholder {
    color: var(--theme-muted);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238a8078' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 48px;
}

/* ==========================================================================
   SIMULADOR / CALCULADORA (SHORTCODE)
   ========================================================================== */

.simulador-widget {
    background: linear-gradient(135deg, #fff 0%, var(--theme-secondary) 100%);
    border-radius: var(--theme-radius-xl);
    padding: 40px;
    box-shadow: var(--theme-shadow-md);
    max-width: 500px;
    margin: 0 auto;
}

.simulador-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 8px;
    color: var(--theme-foreground);
}

.simulador-subtitle {
    text-align: center;
    color: var(--theme-muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.simulador-form .form-group {
    margin-bottom: 24px;
}

.simulador-resultado {
    background: var(--theme-foreground);
    color: #fff;
    border-radius: var(--theme-radius-lg);
    padding: 32px;
    text-align: center;
    margin-top: 24px;
    display: none;
}

.simulador-resultado.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

.simulador-resultado-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.simulador-resultado-valor {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--theme-primary-light);
}

.simulador-resultado-info {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 16px;
}

.simulador-resultado-cta {
    margin-top: 24px;
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--theme-transition);
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* ==========================================================================
   ELEMENTOR COMPATIBILITY
   ========================================================================== */

/* Respeitar cores globais do Elementor */
.elementor-kit-* {
    --e-global-color-primary: var(--theme-primary);
    --e-global-color-secondary: var(--theme-secondary);
    --e-global-color-text: var(--theme-foreground);
    --e-global-color-accent: var(--theme-accent);
}

/* Garantir que Elementor Canvas funcione */
.elementor-template-full-width .site-header,
.elementor-template-full-width .site-footer {
    display: none;
}

/* Ajustes para Elementor sections */
.elementor-section {
    position: relative;
}

.elementor-section.elementor-section-full_width {
    max-width: 100%;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

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

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.hidden { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.animate-slide-up {
    animation: slideUp 0.6s ease forwards;
}

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

@media print {
    .site-header,
    .site-footer,
    .whatsapp-float {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        background: #fff;
        color: #000;
    }
}
