/* Custom styles for Cane Manor */

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

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

/* Scroll reveal animations — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        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);
    }
}

/* Hero entrance animations */
@media (prefers-reduced-motion: no-preference) {
    .hero-headline {
        opacity: 1;
        transform: none;
        transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
    }
    
    .hero-subtitle {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
    }
    
    .hero-desc {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s;
    }
    
    .hero-cta {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s;
    }
}

/* Navbar states */
.navbar-scrolled {
    background: rgba(46, 16, 9, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar-scrolled .nav-link {
    color: rgba(250, 248, 245, 0.8);
}

.navbar-scrolled .nav-logo-text {
    color: #faf8f5;
}

.navbar-scrolled .nav-logo-sub {
    color: rgba(250, 248, 245, 0.6);
}

.navbar-default .nav-logo-stroke {
    stroke: #faf8f5;
}

.navbar-default .nav-logo-fill {
    fill: #c94e28;
}

.navbar-scrolled .nav-logo-stroke {
    stroke: #faf8f5;
}

.navbar-scrolled .nav-logo-fill {
    fill: #f3b7a0;
}

/* Hero default state (visible without JS) */
.hero-headline {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.hero-desc {
    opacity: 1;
    transform: translateY(0);
}

.hero-cta {
    opacity: 1;
    transform: translateY(0);
}

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

.mobile-link {
    opacity: 1;
}

/* Menu button animations */
.menu-line {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.menu-open .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 100% !important;
}

/* Selection color */
::selection {
    background: rgba(201, 78, 40, 0.2);
    color: #541f11;
}

/* Subtle image hover parallax */
.group img {
    will-change: transform;
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #c94e28;
    outline-offset: 2px;
}

/* Form focus transitions */
input:focus, textarea:focus {
    border-color: #c94e28 !important;
    box-shadow: 0 0 0 3px rgba(201, 78, 40, 0.1);
}
