/* Custom styles for Total Lawn Care by Wynn */

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

/* Base typography */
body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #18181b;
    line-height: 1.6;
}

/* Serif font for headings */
.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

/* Delay classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

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

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

/* Button styles */
.btn-primary {
    background-color: #ff6b4a;
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #f04a28;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 74, 0.3);
}

.btn-secondary {
    border: 1px solid #27272a;
    color: #27272a;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #27272a;
    color: #ffffff;
}

/* Card styles */
.card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

/* Gradient backgrounds */
.gradient-coral {
    background: linear-gradient(135deg, #ff6b4a 0%, #f04a28 100%);
}

.gradient-charcoal {
    background: linear-gradient(135deg, #27272a 0%, #18181b 100%);
}

/* Text styles */
.text-gradient {
    background: linear-gradient(135deg, #ff6b4a 0%, #f04a28 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Border styles */
.border-gradient {
    border-image: linear-gradient(135deg, #ff6b4a 0%, #f04a28 100%) 1;
}

/* Shadow styles */
.shadow-soft {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.shadow-coral {
    box-shadow: 0 10px 40px rgba(255, 107, 74, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: #c7c7cc;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background-color: #ff6b4a;
    color: #ffffff;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Form styles */
input[type="text"],
input[type="tel"],
input[type="email"],
textarea,
select {
    appearance: none;
    background-clip: padding-box;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Utility classes */
.container-padding {
    padding-left: 1rem;
    padding-right: 1rem;
}

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

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