/* Custom styles for The Workman House */

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .card-hover,
    .room-card:hover img,
    .btn-primary,
    .btn-secondary {
        transition: none;
    }
}

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

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

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #E8634B 0%, #D4513A 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #D4513A 0%, #B8432F 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 99, 75, 0.3);
}

.btn-secondary {
    border: 2px solid #E8634B;
    color: #E8634B;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #E8634B;
    color: white;
}

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

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 29, 35, 0.15);
}

/* Room card image zoom */
.room-card img {
    transition: transform 0.5s ease;
}

.room-card:hover img {
    transform: scale(1.05);
}

/* Navigation link underline animation */
.nav-link {
    position: relative;
}

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

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

/* Section divider */
.section-divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, #E8634B, #FFA898);
    border-radius: 2px;
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: #E8634B !important;
    box-shadow: 0 0 0 3px rgba(232, 99, 75, 0.1) !important;
}

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

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

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

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

/* Accessibility: focus visible */
*:focus-visible {
    outline: 2px solid #E8634B;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-overlay {
        background: rgba(255, 255, 255, 0.9);
    }
}
