/* ========================================
   HERO BUTTON REDESIGN - OPTIMIZED & RESPONSIVE
   ======================================== */

/* Reset and Base Styles */
.hero-wrapper .btn,
.hero-style1 .btn,
.hero-style2 .btn,
.hero-style3 .btn,
.hero-style4 .btn,
.btn-group .btn {
    /* Reset all existing styles */
    all: unset !important;
    
    /* Core Structure */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    
    /* Typography - Optimized for Performance */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    text-align: center !important;
    
    /* Responsive Sizing - Fixed for Better Performance */
    min-height: 50px !important;
    padding: 15px 32px !important;
    min-width: 180px !important;
    max-width: 300px !important;
    width: auto !important;
    
    /* Bright Blue Themed Design - #0273df */
    background: linear-gradient(135deg, #0273df 0%, #2563eb 50%, #60a5fa 100%) !important;
    
    /* Reduced Blur for Performance */
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    
    /* Border System */
    border: 2px solid rgba(2, 115, 223, 0.3) !important;
    border-radius: 30px !important;
    
    /* Color */
    color: #ffffff !important;
    
    /* Bright Blue Themed Shadow System */
    box-shadow: 0 4px 20px rgba(2, 115, 223, 0.4) !important;
    
    /* Optimized Transitions */
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    
    /* Z-index Management */
    z-index: 10 !important;
    
    /* Prevent text selection */
    user-select: none !important;
    -webkit-user-select: none !important;
    
    /* Performance Optimization */
    will-change: transform !important;
    transform: translateZ(0) !important;
}

/* Bright Blue Themed Hover States */
.hero-wrapper .btn:hover,
.hero-style1 .btn:hover,
.hero-style2 .btn:hover,
.hero-style3 .btn:hover,
.hero-style4 .btn:hover,
.btn-group .btn:hover {
    /* Simple Transform */
    transform: translateY(-2px) translateZ(0) !important;
    
    /* Enhanced Bright Blue Shadow */
    box-shadow: 0 8px 30px rgba(2, 115, 223, 0.5) !important;
}

/* Bright Blue Themed Active/Focus States */
.hero-wrapper .btn:active,
.hero-style1 .btn:active,
.hero-style2 .btn:active,
.hero-style3 .btn:active,
.hero-style4 .btn:active,
.btn-group .btn:active,
.hero-wrapper .btn:focus,
.hero-style1 .btn:focus,
.hero-style2 .btn:focus,
.hero-style3 .btn:focus,
.hero-style4 .btn:focus,
.btn-group .btn:focus {
    transform: translateY(0) translateZ(0) !important;
    outline: 2px solid rgba(2, 115, 223, 0.6) !important;
    outline-offset: 2px !important;
}

/* Fixed Link Effect - Properly Handle Text Duplication */
.hero-wrapper .btn .link-effect,
.hero-style1 .btn .link-effect,
.hero-style2 .btn .link-effect,
.hero-style3 .btn .link-effect,
.hero-style4 .btn .link-effect,
.btn-group .btn .link-effect {
    color: inherit !important;
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    height: 1.4em !important;
    line-height: 1.4 !important;
}

.hero-wrapper .btn .link-effect .effect-1,
.hero-style1 .btn .link-effect .effect-1,
.hero-style2 .btn .link-effect .effect-1,
.hero-style3 .btn .link-effect .effect-1,
.hero-style4 .btn .link-effect .effect-1,
.btn-group .btn .link-effect .effect-1 {
    color: inherit !important;
    display: block !important;
    height: 100% !important;
    position: relative !important;
    top: 0 !important;
    transition: top 0.3s ease !important;
}

/* Hide the second span by default - only show first one */
.hero-wrapper .btn .link-effect .effect-1:nth-child(2),
.hero-style1 .btn .link-effect .effect-1:nth-child(2),
.hero-style2 .btn .link-effect .effect-1:nth-child(2),
.hero-style3 .btn .link-effect .effect-1:nth-child(2),
.hero-style4 .btn .link-effect .effect-1:nth-child(2),
.btn-group .btn .link-effect .effect-1:nth-child(2) {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
}

/* Hover effect - slide first span up and second span into view */
/* REMOVED HOVER ANIMATIONS
.hero-wrapper .btn:hover .link-effect .effect-1:nth-child(1),
.hero-style1 .btn:hover .link-effect .effect-1:nth-child(1),
.hero-style2 .btn:hover .link-effect .effect-1:nth-child(1),
.hero-style3 .btn:hover .link-effect .effect-1:nth-child(1),
.hero-style4 .btn:hover .link-effect .effect-1:nth-child(1),
.btn-group .btn:hover .link-effect .effect-1:nth-child(1) {
    top: -100% !important;
}

.hero-wrapper .btn:hover .link-effect .effect-1:nth-child(2),
.hero-style1 .btn:hover .link-effect .effect-1:nth-child(2),
.hero-style2 .btn:hover .link-effect .effect-1:nth-child(2),
.hero-style3 .btn:hover .link-effect .effect-1:nth-child(2),
.hero-style4 .btn:hover .link-effect .effect-1:nth-child(2),
.btn-group .btn:hover .link-effect .effect-1:nth-child(2) {
    top: 0 !important;
}
*/

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .hero-wrapper .btn,
    .hero-style1 .btn,
    .hero-style2 .btn,
    .hero-style3 .btn,
    .hero-style4 .btn,
    .btn-group .btn {
        font-size: 14px !important;
        padding: 12px 24px !important;
        min-width: 160px !important;
        max-width: 250px !important;
        min-height: 44px !important;
    }
}

@media (max-width: 480px) {
    .hero-wrapper .btn,
    .hero-style1 .btn,
    .hero-style2 .btn,
    .hero-style3 .btn,
    .hero-style4 .btn,
    .btn-group .btn {
        font-size: 13px !important;
        padding: 10px 20px !important;
        min-width: 140px !important;
        max-width: 220px !important;
        min-height: 42px !important;
        letter-spacing: 0.3px !important;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    .hero-wrapper .btn,
    .hero-style1 .btn,
    .hero-style2 .btn,
    .hero-style3 .btn,
    .hero-style4 .btn,
    .btn-group .btn {
        transition: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hero-wrapper .btn,
    .hero-style1 .btn,
    .hero-style2 .btn,
    .hero-style3 .btn,
    .hero-style4 .btn,
    .btn-group .btn {
        border: 3px solid #ffffff !important;
        background: #000000 !important;
        color: #ffffff !important;
    }
}

/* Theme-Specific Adjustments */
.hero-4 .btn,
.hero-style4 .btn {
    margin-top: 0 !important;
    position: relative !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-style2 .btn {
    margin-bottom: 0 !important;
}

/* Button Group Styling */
.btn-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.btn-group .btn {
    flex: 0 0 auto !important;
    margin: 0 !important;
}