/* Custom styles for Garden Canyon Family Mobile Home */

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

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* Navbar transition states */
.nav-scrolled {
    background: rgba(22, 15, 9, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Geometric shape styles */
.shape-diamond {
    transform: rotate(45deg);
}

.shape-diamond > * {
    transform: rotate(-45deg);
}

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

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

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

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

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff8e8 inset !important;
    -webkit-text-fill-color: #2a1d14 !important;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #e85c28;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #f9d0b5;
    color: #410f05;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Gradient text fallback */
.text-gradient {
    background: linear-gradient(135deg, #e85c28, #ffd147);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism utility */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Loading state for form */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #ffefc8 25%, #fce8dd 50%, #ffefc8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

img[src] {
    animation: none;
    background: none;
}

/* Ensure above-the-fold content is always visible */
#hero, #hero * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Nav link active state */
.nav-link.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
}
