/*
Theme Name: Estilei
Theme URI: https://estilei.app
Author: Estilei Team
Author URI: https://estilei.app
Description: Tema WordPress personalizado para o Estilei.app — Armário Digital. Design limpo e moderno com paleta malva, totalmente editável via Customizer. Sem dependência de page builders.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tema-estilei
Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
*/

/* ============================================
   ESTILEI THEME — Base Styles
   ============================================ */

:root {
    --estilei-primary: #B47E8B;
    --estilei-primary-dark: #96657A;
    --estilei-primary-light: #C99AAD;
    --estilei-black: #0f0f11;
    --estilei-dark: #18181b;
    --estilei-gray: #e4e4e7;
    --estilei-mid: #d4d4d8;
    --estilei-light: #f4f4f5;
    --estilei-white: #fafafa;
    --estilei-sage: #7C9A82;
    --estilei-coral: #F97316;
    --estilei-emerald: #10B981;
    --estilei-violet: #8B5CF6;
    --estilei-amber: #EAB308;
    --estilei-radius: 0.5rem;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--estilei-white);
    color: var(--estilei-black);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

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

ul, ol {
    list-style: none;
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--estilei-light);
}

::-webkit-scrollbar-thumb {
    background: var(--estilei-mid);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

/* ============================================
   Container
   ============================================ */

.estilei-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .estilei-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .estilei-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--estilei-primary);
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: var(--estilei-primary-dark);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(180,126,139,0.4);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(180,126,139,0.08);
    color: #7a4f60;
    border: 1px solid rgba(180,126,139,0.25);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: rgba(180,126,139,0.15);
    border-color: rgba(180,126,139,0.5);
    transform: scale(1.05);
}

/* ============================================
   Gradient Text
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, var(--estilei-primary), var(--estilei-violet), var(--estilei-sage), var(--estilei-primary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   Card Hover
   ============================================ */

.card-hover {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 25px 50px -12px rgba(180,126,139,0.15);
    border-color: rgba(180,126,139,0.4);
}

/* ============================================
   Pulse Glow
   ============================================ */

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(180,126,139,0.25); }
    50% { box-shadow: 0 0 40px rgba(180,126,139,0.5); }
}

/* ============================================
   Float Animation
   ============================================ */

.float-anim {
    animation: float 4s ease-in-out infinite;
}

.float-anim-delay {
    animation: float 4s ease-in-out 1s infinite;
}

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

/* ============================================
   Shimmer
   ============================================ */

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(180,124,139,0.06), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================
   Animate on Scroll
   ============================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}

/* ============================================
   Animations In
   ============================================ */

.anim-in {
    animation: animationIn 0.8s ease-out both;
}

.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.3s; }
.anim-d4 { animation-delay: 0.4s; }
.anim-d5 { animation-delay: 0.5s; }
.anim-d6 { animation-delay: 0.6s; }
.anim-d7 { animation-delay: 0.7s; }

@keyframes animationIn {
    0% { opacity: 0; transform: translateY(30px); filter: blur(8px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0px); }
}

/* ============================================
   Marquee
   ============================================ */

.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-inner {
    display: inline-flex;
    animation: marquee 35s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   FAQ Accordion
   ============================================ */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-answer.open {
    max-height: 300px;
    padding: 0.75rem 1.5rem 1.25rem;
}

/* ============================================
   Phone Mockup
   ============================================ */

.phone-mockup {
    background: linear-gradient(145deg, #ffffff, var(--estilei-light));
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 2.5rem;
    padding: 0.5rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12), 0 0 40px rgba(180,126,139,0.1);
}

.phone-screen {
    border-radius: 2rem;
    overflow: hidden;
    background: var(--estilei-black);
}

/* ============================================
   Toast
   ============================================ */

.estilei-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #ffffff;
    border: 1px solid rgba(180,126,139,0.3);
    color: var(--estilei-black);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.estilei-toast.show {
    transform: translateY(0);
}

/* ============================================
   Section Dividers
   ============================================ */

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(234,179,8,0.4), transparent);
}

/* ============================================
   Feature Icon Backgrounds
   ============================================ */

.feature-icon-bg {
    background: linear-gradient(135deg, rgba(180,126,139,0.15), rgba(139,92,246,0.08));
}

.feature-icon-bg-sage {
    background: linear-gradient(135deg, rgba(124,154,130,0.15), rgba(124,154,130,0.05));
}

.feature-icon-bg-emerald {
    background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.04));
}

/* ============================================
   Hero Grid Background
   ============================================ */

.hero-grid {
    background-image:
        linear-gradient(rgba(180,126,139,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180,126,139,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ============================================
   Step Line
   ============================================ */

.step-line {
    background: linear-gradient(to bottom, var(--estilei-primary), transparent);
}
