/* Custom styles for Simonds Guest House */

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F5;
}
::-webkit-scrollbar-thumb {
    background: #a1334e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #822a44;
}

/* Nav transition states */
.nav-scrolled .nav-logo-text {
    color: #320e17 !important;
}

.nav-scrolled .nav-link {
    color: #5c2335 !important;
}

/* Active nav link */
.nav-link.active {
    color: #822a44 !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #a1334e;
    border-radius: 1px;
}

/* Mobile menu animation */
.mobile-menu-open #mobile-menu {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Menu bar animation */
.menu-bar-open .menu-bar:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-bar-open .menu-bar:nth-child(2) {
    opacity: 0;
}
.menu-bar-open .menu-bar:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Scroll reveal base state (visible by default for progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.visible {
        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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Room cards hover effect */
.room-card:hover .room-card-img {
    transform: scale(1.05);
}

/* Gallery hover */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Testimonial card hover */
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Decorative geometric shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.3;
}

/* Gradient text effect for hero */
.hero-gradient-text {
    background: linear-gradient(135deg, #822a44 0%, #a1334e 50%, #c24a68 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse animation for status dot */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Form focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(161, 51, 78, 0.15);
}

/* Print styles */
@media print {
    nav, .mobile-menu, #contact-form, #form-success {
        display: none !important;
    }
    body {
        color: #000 !important;
        background: #fff !important;
    }
}
