/* Custom CSS for Carpe Diem Massage Therapy Landing Page */

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #2B5A4A;
    outline-offset: 2px;
}

/* Enhanced button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #2B5A4A 0%, #4A8870 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4A8870 0%, #2B5A4A 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(43, 90, 74, 0.3);
}

/* Service card hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Testimonial cards */
.testimonial-card {
    background: linear-gradient(135deg, #F8F6F3 0%, #FFFFFF 100%);
    border-left: 4px solid #D4AF37;
}

/* Form styling enhancements */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #E5E7EB;
}

.form-input:focus {
    border-color: #2B5A4A;
    box-shadow: 0 0 0 3px rgba(43, 90, 74, 0.1);
}

/* Trust indicators */
.trust-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(43, 90, 74, 0.1);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #2B5A4A;
    margin: 0.25rem;
}

/* Mobile-first responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .container-mobile {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Performance optimizations */
img {
    will-change: transform;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-muted {
        color: #374151 !important;
    }
    
    .border-gray-300 {
        border-color: #6B7280 !important;
    }
}

/* Reduced motion support */
@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;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Loading states */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: #2B5A4A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4A8870;
}

/* Gradient text effects */
.gradient-text {
    background: linear-gradient(135deg, #2B5A4A 0%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(43, 90, 74, 0.2);
}

/* Animated underlines */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, #2B5A4A, #D4AF37);
    transition: width 0.3s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* Glowing effects */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

/* Pulse animation for CTAs */
@keyframes pulse-primary {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(43, 90, 74, 0.7);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(43, 90, 74, 0);
    }
}

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

/* Background patterns */
.pattern-dots {
    background-image: radial-gradient(circle, #2B5A4A 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.pattern-grid {
    background-image: 
        linear-gradient(rgba(43, 90, 74, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 90, 74, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Enhanced mobile navigation */
@media (max-width: 640px) {
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #E5E7EB;
        padding: 1rem;
        z-index: 50;
    }
    
    .mobile-cta {
        display: flex;
        gap: 0.5rem;
    }
    
    .mobile-cta button {
        flex: 1;
        padding: 0.75rem;
        border-radius: 0.5rem;
        font-weight: 600;
    }
    
    /* Add padding to body for mobile CTA bar */
    body {
        padding-bottom: 80px;
    }
    
    .mobile-cta-bar {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Desktop - remove mobile padding */
@media (min-width: 641px) {
    body {
        padding-bottom: 0;
    }
}

/* Image optimization */
.hero-image {
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, #F8F6F3 0%, #E5E7EB 100%);
}

/* CTA optimization */
.cta-attention {
    position: relative;
    overflow: hidden;
}

.cta-attention::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.5s;
}

.cta-attention:hover::before {
    left: 100%;
}

/* Social proof enhancements */
.review-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
}

.review-stars .star {
    color: #D4AF37;
    font-size: 1rem;
}

/* Form validation styles */
.form-error {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-success {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Sticky header shadow on scroll */
.header-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98) !important;
}

/* Enhanced focus indicators for keyboard navigation */
.focus-visible:focus {
    outline: 2px solid #2B5A4A;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2B5A4A;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}