/* ========================================
   SEO & Performance Enhancements
   ======================================== */

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

/* Optimize font loading */
@font-face {
    font-family: 'Gilroy';
    font-display: swap;
}

/* ========================================
   Conversion Optimization
   ======================================== */

/* Trust badges */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #128C7E;
}

.trust-badge i {
    font-size: 18px;
}

/* Urgency indicators */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #856404;
}

/* Social proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-left: 4px solid #25D366;
    border-radius: 8px;
}

.social-proof-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

/* ========================================
   Enhanced Buttons & CTAs
   ======================================== */

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(228, 3, 44, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(228, 3, 44, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(228, 3, 44, 0);
    }
}

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

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-glow:hover::before {
    width: 300px;
    height: 300px;
}

/* ========================================
   Accessibility Improvements
   ======================================== */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* ========================================
   Loading States
   ======================================== */

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Micro-interactions
   ======================================== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.hover-grow {
    transition: transform 0.3s ease;
}

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

/* ========================================
   Content Sections
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .section-subtitle {
    color: #e4032c;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-header .section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 1rem;
}

.section-header .section-description {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Stats / Numbers Section
   ======================================== */

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #e4032c;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* ========================================
   Testimonial Enhancements
   ======================================== */

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 18px;
}

/* ========================================
   Form Enhancements
   ======================================== */

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-label {
    font-weight: 500;
    color: #2d3748;
}

.form-helper-text {
    font-size: 13px;
    color: #718096;
    margin-top: 0.25rem;
}

/* ========================================
   Mobile Optimizations
   ======================================== */

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header .section-title {
        font-size: 28px;
    }
    
    .section-header .section-description {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .floating-contact-buttons,
    .header-top,
    .mobile-menu-button,
    .services-navigation,
    .swiper-pagination,
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }
}

/* ========================================
   Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
