/* Custom styles for Sergio Sells Homes */

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

/* Selection color */
::selection {
    background: #d94f2a;
    color: #ffffff;
}

/* Scroll reveal base - content always visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

/* Only apply animation when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal.animated {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.animated.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition for scroll */
.nav-link {
    position: relative;
}

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

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

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

/* Card hover effects */
.group:hover .group-hover\:bg-terracotta-500 {
    background-color: #d94f2a;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #d4a052;
    border-radius: 4px;
}

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

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

/* Form transitions */
input, textarea, select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Testimonial card shimmer on hover */
.bg-white\/5:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* CTA button scale */
button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Subtle pattern overlay for sections */
.bg-cream {
    background-image: radial-gradient(circle at 20% 50%, rgba(212, 160, 82, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(217, 79, 42, 0.03) 0%, transparent 50%);
}

/* Nav background on scroll */
#navbar.scrolled {
    background: rgba(26, 23, 20, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

/* Hero gradient animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

#hero {
    background-size: 200% 200%;
}

/* Loading state for form */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}
