/* ========================================
   Luciana Campelo - Premium UI/UX Styles
   Nova paleta: burgundy-rose + gold + warm backgrounds
   ======================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography base */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-color: #fdf9f3;
}

/* ========================================
   Section gradient backgrounds
   ======================================== */

/* Hero: deep burgundy with purple-rose mesh */
.bg-hero {
    background: linear-gradient(135deg, #1a0610 0%, #4a1024 40%, #3a0d20 70%, #2d0a16 100%);
}

/* Dark sections: rich gradient */
.bg-dark-gradient {
    background: linear-gradient(160deg, #2d0a16 0%, #4a1024 50%, #3a0d20 100%);
}

/* Warm cream section */
.bg-warm-cream {
    background: linear-gradient(180deg, #fdf9f3 0%, #faf0e1 100%);
}

/* Soft rose section */
.bg-warm-rose {
    background: linear-gradient(180deg, #fdf2f4 0%, #fdf9f3 100%);
}

/* Warm white to cream */
.bg-warm-white {
    background: linear-gradient(180deg, #ffffff 0%, #fdf9f3 100%);
}

/* Gold accent bar */
.bg-gold-gradient {
    background: linear-gradient(90deg, #a67b2e, #c9973a, #ddb45e, #e8cb7a, #ddb45e, #c9973a, #a67b2e);
}

/* ========================================
   Animated gradient backgrounds
   ======================================== */
.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero animated mesh gradient (moves slowly) */
.hero-mesh {
    background:
        radial-gradient(ellipse at 15% 50%, rgba(201, 151, 58, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 20%, rgba(140, 45, 80, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(201, 151, 58, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(107, 29, 58, 0.2) 0%, transparent 40%);
    background-size: 200% 200%;
    animation: meshDrift 12s ease-in-out infinite;
}

@keyframes meshDrift {
    0%   { background-position: 0% 0%; }
    25%  { background-position: 50% 30%; }
    50%  { background-position: 100% 50%; }
    75%  { background-position: 30% 80%; }
    100% { background-position: 0% 0%; }
}

/* ========================================
   Hero: golden particles
   ======================================== */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(221, 180, 94, 1), rgba(201, 151, 58, 0.4), transparent);
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(201, 151, 58, 0.3);
    animation: particleRise linear infinite;
    opacity: 0;
}

@keyframes particleRise {
    0%   { transform: translateY(0) scale(0); opacity: 0; }
    8%   { opacity: 1; }
    50%  { opacity: 0.9; }
    85%  { opacity: 0.5; }
    100% { transform: translateY(-100vh) scale(1.2); opacity: 0; }
}

/* ========================================
   Hero: split text reveal (letter by letter)
   ======================================== */
.split-reveal {
    overflow: hidden;
    display: inline-block;
}

.split-reveal .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: charReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Hero: photo golden border draw
   ======================================== */
.photo-border-draw {
    position: relative;
}

.photo-border-draw::before,
.photo-border-draw::after {
    content: '';
    position: absolute;
    border-radius: 1.5rem;
    pointer-events: none;
    z-index: 2;
}

/* Top + Right border */
.photo-border-draw::before {
    top: -4px;
    right: -4px;
    width: 0;
    height: 0;
    border-top: 2px solid rgba(201, 151, 58, 0.5);
    border-right: 2px solid rgba(201, 151, 58, 0.5);
    border-radius: 0 1.5rem 0 0;
    animation: drawTopRight 1.2s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Bottom + Left border */
.photo-border-draw::after {
    bottom: -4px;
    left: -4px;
    width: 0;
    height: 0;
    border-bottom: 2px solid rgba(201, 151, 58, 0.3);
    border-left: 2px solid rgba(201, 151, 58, 0.3);
    border-radius: 0 0 0 1.5rem;
    animation: drawBottomLeft 1.2s 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawTopRight {
    to { width: 60%; height: 60%; }
}

@keyframes drawBottomLeft {
    to { width: 60%; height: 60%; }
}

/* ========================================
   Hero: cursor glow (desktop only)
   ======================================== */
.hero-cursor-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 151, 58, 0.18) 0%, rgba(140, 45, 80, 0.06) 40%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    mix-blend-mode: screen;
}

.hero-section:hover .hero-cursor-glow {
    opacity: 1;
}

/* ========================================
   Hero: photo parallax container
   ======================================== */
.hero-photo-parallax {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Hero spinning rings */
.hero-ring-1 {
    border: 1px solid rgba(201, 151, 58, 0.15);
    animation: spin 20s linear infinite;
}

.hero-ring-2 {
    border: 1px solid rgba(201, 151, 58, 0.1);
    animation: spin 25s linear infinite reverse;
}

.hero-ring-3 {
    border: 1px dashed rgba(201, 151, 58, 0.08);
    animation: spin 30s linear infinite;
}

.corner-accent-h {
    background: linear-gradient(90deg, rgba(201,151,58,0.5), transparent);
}

.corner-accent-v {
    background: linear-gradient(180deg, rgba(201,151,58,0.5), transparent);
}

.hero-light-streak {
    background: linear-gradient(180deg, transparent 0%, rgba(201,151,58,0.06) 30%, rgba(201,151,58,0.1) 50%, rgba(201,151,58,0.06) 70%, transparent 100%);
    transform: rotate(15deg);
    transform-origin: top;
}

/* ========================================
   Glassmorphism
   ======================================== */
.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(74, 16, 36, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ========================================
   Card effects
   ======================================== */
.card-lift {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(74, 16, 36, 0.18);
}

.card-glow {
    position: relative;
    overflow: hidden;
}

.card-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(201, 151, 58, 0.4), rgba(140, 45, 80, 0.2), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card-glow:hover::before {
    opacity: 1;
}

/* ========================================
   Gradient text
   ======================================== */
.text-gradient-gold {
    background: linear-gradient(135deg, #a67b2e, #ddb45e, #e8cb7a, #ddb45e, #a67b2e);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 4s ease infinite;
}

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

.text-gradient-white {
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-rose {
    background: linear-gradient(135deg, #4a1024, #8c2d50, #c9973a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Button effects
   ======================================== */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-shine:hover::after {
    transform: rotate(30deg) translateX(100%);
}

.btn-pulse {
    animation: btnPulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 151, 58, 0.4); }
    50% { box-shadow: 0 0 0 14px rgba(201, 151, 58, 0); }
}

/* Gradient button */
.btn-gradient {
    background: linear-gradient(135deg, #c9973a, #ddb45e, #c9973a);
    background-size: 200% auto;
    transition: background-position 0.4s ease, box-shadow 0.4s ease;
}

.btn-gradient:hover {
    background-position: right center;
}

/* ========================================
   Scroll-reveal animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.5s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Floating particles (decorative)
   ======================================== */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.floating-orb:nth-child(2) { animation-delay: -2s; animation-duration: 10s; }
.floating-orb:nth-child(3) { animation-delay: -4s; animation-duration: 12s; }
.floating-orb:nth-child(4) { animation-delay: -6s; animation-duration: 14s; }

.floating-orb.blur-lg { filter: blur(70px); }
.floating-orb.blur-xl { filter: blur(80px); }
.floating-orb.blur-2xl { filter: blur(100px); }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* ========================================
   Section dividers (gradient lines)
   ======================================== */
.divider-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9973a40, #ddb45e60, #c9973a40, transparent);
}

.divider-rose {
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a102420, #8c2d5030, #4a102420, transparent);
}

/* ========================================
   Decorative line accent
   ======================================== */
.line-accent {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #a67b2e, #ddb45e, #e8cb7a);
    border-radius: 2px;
}

/* ========================================
   Badge styles
   ======================================== */
.badge-glow {
    position: relative;
}

.badge-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #c9973a, #ddb45e);
    opacity: 0.3;
    filter: blur(8px);
    z-index: -1;
}

/* ========================================
   Prose styling for modals
   ======================================== */
.prose h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #4a1024;
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.prose ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.prose li {
    margin-bottom: 0.25rem;
}

/* ========================================
   Marquee animation
   ======================================== */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 20s linear infinite;
}

/* ========================================
   Custom scrollbar for modals
   ======================================== */
.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(74, 16, 36, 0.2);
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 16, 36, 0.4);
}

/* ========================================
   Focus styles (warm gold ring)
   ======================================== */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(201, 151, 58, 0.18);
}

/* ========================================
   Star fill for testimonials
   ======================================== */
[data-lucide="star"].fill-secondary {
    fill: #c9973a;
}

/* ========================================
   Alpine.js cloak
   ======================================== */
[x-cloak] {
    display: none !important;
}

/* ========================================
   Counter animation
   ======================================== */
.counter-value {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ========================================
   Noise texture overlay (subtle)
   ======================================== */
.noise-overlay {
    position: relative;
}

.noise-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   Testimonial quote marks
   ======================================== */
.quote-mark {
    font-family: 'Georgia', serif;
    font-size: 4rem;
    line-height: 1;
    background: linear-gradient(135deg, #c9973a, #ddb45e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
}

/* ========================================
   Image hover zoom
   ======================================== */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* ========================================
   Pricing card highlight (animated gradient border)
   ======================================== */
.pricing-highlight {
    position: relative;
}

.pricing-highlight::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #c9973a, #4a1024, #ddb45e, #8c2d50, #c9973a);
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    z-index: -1;
}

/* ========================================
   Dot pattern background (warm tone)
   ======================================== */
.dot-pattern {
    background-image: radial-gradient(circle, rgba(74, 16, 36, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ========================================
   WhatsApp floating button
   ======================================== */
.whatsapp-float {
    animation: whatsappBounce 2s ease infinite;
}

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

/* ========================================
   Urgency / countdown styles
   ======================================== */
.urgency-badge {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.countdown-digit {
    font-variant-numeric: tabular-nums;
    min-width: 2.5rem;
    text-align: center;
}

/* ========================================
   Comparison table styles
   ======================================== */
.comparison-card {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.comparison-card:hover {
    transform: translateY(-4px);
}

.comparison-card.recommended {
    border: 2px solid #c9973a;
}

.comparison-card.recommended::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(201, 151, 58, 0.25), rgba(140, 45, 80, 0.1), transparent 60%);
    z-index: -1;
    filter: blur(8px);
}

/* ========================================
   Result number highlight
   ======================================== */
.result-number {
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #4a1024, #8c2d50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Gradient icon wrappers
   ======================================== */
.icon-gradient {
    background: linear-gradient(135deg, rgba(201, 151, 58, 0.15), rgba(201, 151, 58, 0.05));
}

.icon-gradient-dark {
    background: linear-gradient(135deg, #4a1024, #6b1d3a);
}

/* ========================================
   Mobile performance optimizations
   ======================================== */
@media (max-width: 768px) {
    .floating-orb {
        animation: none !important;
        opacity: 0.5;
    }

    .animate-spin-slow {
        animation: none !important;
        display: none;
    }

    .btn-pulse {
        animation: none !important;
    }

    .noise-overlay::before {
        display: none;
    }

    .card-glow::before {
        display: none;
    }

    [data-parallax] {
        transform: none !important;
    }

    /* Hero: disable heavy animations on mobile */
    .hero-mesh {
        animation: none !important;
    }

    .hero-particles,
    .hero-cursor-glow {
        display: none !important;
    }

    .photo-border-draw::before,
    .photo-border-draw::after {
        display: none;
    }

    .hero-photo-parallax {
        transform: none !important;
    }

    [data-magnetic] {
        transform: none !important;
    }
}

/* ========================================
   Form validation visual feedback
   ======================================== */
/* Show red border on invalid fields after user interacts */
input:user-invalid,
textarea:user-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Green border on valid filled fields */
input:not(:placeholder-shown):valid:not(:focus),
textarea:not(:placeholder-shown):valid:not(:focus) {
    border-color: #22c55e;
}

/* ========================================
   Responsive tweaks
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
    }
    .stagger-children > * {
        opacity: 1;
        transform: none;
    }
    .text-gradient-gold {
        animation: none;
    }
}
