/* Fred's Vacuum Cleaner Hospital — Custom Styles */

/* Base resets and custom properties */
:root {
    --color-burgundy-950: #3c0614;
    --color-burgundy-900: #6e132f;
    --color-burgundy-700: #a11436;
    --color-burgundy-600: #c7204a;
    --color-gold-500: #d4a017;
    --color-gold-400: #e6bc4a;
    --color-neutral-950: #0a0a0a;
    --color-neutral-900: #141414;
    --color-neutral-800: #262626;
}

/* Smooth scrolling and selection */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #fff;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Custom input autofill styling for dark theme */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0a0a0a inset !important;
    -webkit-text-fill-color: #fff !important;
}

/* Print styles */
@media print {
    .hero-gradient,
    .reveal {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    nav { display: none; }
}

/* Reduced motion - ensure content is visible without JS */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#mobile-menu.open {
    max-height: 500px;
}

/* Subtle gold shimmer on gradient text */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.text-gradient-gold {
    background: linear-gradient(90deg, #f0d078, #d4a017, #f5d76e, #d4a017, #f0d078);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Service card icon hover */
.service-card:hover .w-14 {
    transform: scale(1.05) rotate(-3deg);
    transition: transform 0.3s ease;
}

.service-card .w-14 {
    transition: transform 0.3s ease;
}

/* Navbar link underline animation */
nav a:not(.bg-gradient-to-r):hover {
    position: relative;
}
nav a:not(.bg-gradient-to-r):hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #d4a017, transparent);
}
