/* Custom editorial styles for 45 Rooter and Plumbing */

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

/* Editorial decorative line */
.editorial-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f5a623, #d4810a);
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

.float-animation-delay-1 {
    animation-delay: 0.5s;
}

.float-animation-delay-2 {
    animation-delay: 1s;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c44d6c, #74253a);
    border-radius: 5px;
}

/* Hover effects for service cards */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(58, 15, 25, 0.15);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #a83552, #74253a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Primary button styles */
.btn-primary {
    background: linear-gradient(135deg, #f5a623, #d4810a);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d4810a, #b06308);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 129, 10, 0.3);
}

/* Navigation link hover effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: #f5a623;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu animation */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Form focus states */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #c44d6c;
    box-shadow: 0 0 0 3px rgba(196, 77, 108, 0.1);
}

/* Decorative background pattern */
.pattern-bg {
    background-image: radial-gradient(circle at 2px 2px, rgba(180, 77, 108, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Ensure all text is readable */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive typography */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .float-animation,
    .service-card,
    .btn-primary,
    .nav-link::after,
    .form-input {
        animation: none;
        transition: none;
    }
}
