/* Custom styles for Bardwell's Appliance */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #9fb3c8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

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

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

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

.animate-float-delayed {
    animation: float-delayed 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Scroll reveal base styles - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Scroll reveal when animated - only applied via JS */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

/* Button hover effects */
a:hover {
    transition: all 0.3s ease;
}

/* Card hover effects */
.group:hover .group-hover\\:bg-gold-500 {
    transition: background-color 0.3s ease;
}

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

/* Ensure hero text is always readable */
#hero h1,
#hero p {
    position: relative;
    z-index: 10;
}

/* Mobile navigation link styling */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #d9e2ec;
}

.mobile-link:last-of-type {
    border-bottom: none;
}

/* Ensure all text has proper contrast */
.text-navy-900 { color: #102a43; }
.text-navy-800 { color: #243b53; }
.text-navy-700 { color: #334e68; }
.text-navy-600 { color: #486581; }
.text-navy-500 { color: #627d98; }
.text-navy-400 { color: #829ab1; }
.text-navy-300 { color: #9fb3c8; }
.text-navy-200 { color: #bcccdc; }
.text-navy-100 { color: #d9e2ec; }
.text-navy-50 { color: #f0f4f8; }

.text-gold-900 { color: #763e14; }
.text-gold-800 { color: #934b15; }
.text-gold-700 { color: #b55d17; }
.text-gold-600 { color: #d4741f; }
.text-gold-500 { color: #e8892e; }
.text-gold-400 { color: #ee9f47; }
.text-gold-300 { color: #f4bc78; }
.text-gold-200 { color: #f9d4a8; }
.text-gold-100 { color: #fce8d0; }
.text-gold-50 { color: #fdf8f0; }

/* Ensure proper stacking */
.relative {
    position: relative;
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
    }
}
