/* Custom styles for Dangerfield, Kacey website */

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

/* Base font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 247, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(128, 29, 53, 0.08);
}

.navbar-scrolled .nav-link {
    color: #711d31 !important;
}

.navbar-scrolled .brand-text {
    color: #711d31 !important;
}

/* Selection color */
::selection {
    background: #be2749;
    color: #fef7f6;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9f1c38;
}

/* Scroll reveal animations - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Service card hover effect */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #be2749;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Testimonial card hover */
.testimonial-card {
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero gradient animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Decorative element float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Pulse animation for the dot */
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Form success animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#form-success {
    animation: fadeInUp 0.5s ease-out;
}

/* Reduce motion preference */
@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;
    }
}
