/**
 * É bordado da Jú - Elementor Theme
 * CSS adicional com variáveis que respeitam as configurações do Elementor
 *
 * @package EBordadoDaJu_Elementor
 * @version 1.0.0
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (VARIÁVEIS)
   Estas variáveis podem ser sobrescritas pelas configurações globais do Elementor
   ========================================================================== */

:root {
    /* ===== CORES PRIMÁRIAS ===== */
    --theme-primary: #ff6961;           /* Rosa Coral - Cor principal */
    --theme-primary-rgb: 255, 105, 97;  /* RGB para transparências */
    --theme-primary-dark: #e85a52;      /* Hover/Active */
    --theme-primary-light: #ffb3ae;     /* Tons claros */
    
    /* ===== CORES SECUNDÁRIAS ===== */
    --theme-secondary: #f5eee6;         /* Creme - Background alternativo */
    --theme-accent: #b8d4c8;            /* Verde Sálvia - Destaque */
    --theme-gold: #c9a54a;              /* Dourado - Premium */
    --theme-rose: #c97a7a;              /* Rosa escuro */
    
    /* ===== CORES NEUTRAS ===== */
    --theme-background: #fcfbfa;        /* Fundo principal */
    --theme-foreground: #3d3632;        /* Texto principal */
    --theme-muted: #8a8078;             /* Texto secundário */
    --theme-border: #e8e0d8;            /* Bordas e divisores */
    --theme-white: #ffffff;
    --theme-black: #1a1817;
    
    /* ===== TIPOGRAFIA ===== */
    --font-primary: 'Cormorant Garamond', 'Georgia', serif;
    --font-secondary: 'Lato', 'Helvetica Neue', sans-serif;
    
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 2rem;       /* 32px */
    --text-4xl: 2.5rem;     /* 40px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 4rem;       /* 64px */
    
    /* ===== ESPAÇAMENTO ===== */
    --space-1: 0.25rem;     /* 4px */
    --space-2: 0.5rem;      /* 8px */
    --space-3: 0.75rem;     /* 12px */
    --space-4: 1rem;        /* 16px */
    --space-5: 1.25rem;     /* 20px */
    --space-6: 1.5rem;      /* 24px */
    --space-8: 2rem;        /* 32px */
    --space-10: 2.5rem;     /* 40px */
    --space-12: 3rem;       /* 48px */
    --space-16: 4rem;       /* 64px */
    --space-20: 5rem;       /* 80px */
    --space-24: 6rem;       /* 96px */
    
    /* ===== BORDER RADIUS ===== */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* ===== SOMBRAS ===== */
    --shadow-xs: 0 1px 2px rgba(61, 54, 50, 0.05);
    --shadow-sm: 0 2px 8px rgba(61, 54, 50, 0.08);
    --shadow-md: 0 8px 24px rgba(61, 54, 50, 0.12);
    --shadow-lg: 0 16px 48px rgba(61, 54, 50, 0.16);
    --shadow-xl: 0 24px 64px rgba(61, 54, 50, 0.2);
    --shadow-glow: 0 0 40px rgba(255, 105, 97, 0.3);
    
    /* ===== TRANSIÇÕES ===== */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ===== Z-INDEX ===== */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
    --z-max: 9999;
    
    /* ===== CONTAINER ===== */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    --container-2xl: 1400px;
}

/* ==========================================================================
   INTEGRAÇÃO COM ELEMENTOR GLOBAL SETTINGS
   ========================================================================== */

/* Mapear cores do Elementor para variáveis do tema */
.elementor-kit-* {
    --e-global-color-primary: var(--theme-primary);
    --e-global-color-secondary: var(--theme-foreground);
    --e-global-color-text: var(--theme-foreground);
    --e-global-color-accent: var(--theme-accent);
}

/* Fontes do Elementor */
.elementor-kit-* {
    --e-global-typography-primary-font-family: var(--font-primary);
    --e-global-typography-secondary-font-family: var(--font-secondary);
    --e-global-typography-text-font-family: var(--font-secondary);
}

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

.hero-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--theme-background) 0%, var(--theme-secondary) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: var(--theme-secondary);
    color: var(--theme-foreground);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-6);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--theme-foreground);
}

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

.hero-description {
    font-size: var(--text-lg);
    color: var(--theme-muted);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

.hero-stats {
    display: flex;
    gap: var(--space-10);
}

@media (max-width: 576px) {
    .hero-stats {
        gap: var(--space-6);
    }
}

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

.hero-stat strong {
    display: block;
    font-family: var(--font-primary);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--theme-primary);
}

.hero-stat span {
    font-size: var(--text-sm);
    color: var(--theme-muted);
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.hero-image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--theme-primary);
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0.3;
}

/* ==========================================================================
   ABOUT SECTION STYLES
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
}

.about-content p {
    font-size: var(--text-lg);
    color: var(--theme-muted);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

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

.step-card {
    text-align: center;
    padding: var(--space-8);
    background: var(--theme-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

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

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
    color: var(--theme-white);
    font-family: var(--font-primary);
    font-size: var(--text-2xl);
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-5);
}

.step-title {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    color: var(--theme-foreground);
}

.step-description {
    font-size: var(--text-sm);
    color: var(--theme-muted);
    line-height: 1.6;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--theme-foreground) 0%, var(--theme-black) 100%);
    color: var(--theme-white);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--theme-white);
    margin-bottom: var(--space-4);
}

.cta-description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-8);
}

/* ==========================================================================
   POSTS GRID
   ========================================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

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

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

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination-wrapper {
    margin-top: var(--space-12);
    text-align: center;
}

.pagination-wrapper .nav-links {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-4);
    background: var(--theme-white);
    color: var(--theme-foreground);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition-base);
}

.pagination-wrapper a:hover {
    background: var(--theme-primary);
    color: var(--theme-white);
}

.pagination-wrapper .current {
    background: var(--theme-primary);
    color: var(--theme-white);
}

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

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS REFERENCE
   ========================================================================== */

/*
 * Mobile First Approach:
 * 
 * xs: 0 - 575px (default)
 * sm: 576px+
 * md: 768px+
 * lg: 992px+
 * xl: 1200px+
 * 2xl: 1400px+
 */

/* ==========================================================================
   ELEMENTOR OVERRIDE HELPERS
   ========================================================================== */

/* Quando precisar sobrescrever estilos do Elementor */
.elementor-widget-container {
    /* Garante que widgets herdem as variáveis */
}

/* Botões do Elementor usando cores do tema */
.elementor-button.theme-primary {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
}

.elementor-button.theme-primary:hover {
    background-color: var(--theme-primary-dark) !important;
    border-color: var(--theme-primary-dark) !important;
}

/* Headings do Elementor */
.elementor-heading-title.theme-primary {
    color: var(--theme-primary) !important;
}

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

@media print {
    .hero-section,
    .cta-section {
        background: var(--theme-white) !important;
        color: var(--theme-black) !important;
    }
    
    .hero-image-decoration,
    .whatsapp-float {
        display: none !important;
    }
}
