/* Custom Styles for Camacho's Concrete */

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

/* Base Typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

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

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Default state for scroll reveals - visible for progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Only apply animation class when JS is active and motion preferred */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.animated.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Image Gradient Overlay */
.hero-image-overlay {
    position: relative;
}

.hero-image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

/* Gold Accent Line */
.gold-accent {
    position: relative;
}

.gold-accent::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #d4a574, #c2410c);
    margin-top: 1rem;
}

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Card Hover Effect */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(194, 65, 12, 0.15);
}

/* Input Focus Effect */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.2);
}

/* Image Hover Zoom */
.gallery-image {
    transition: transform 0.5s ease;
}

.gallery-image:hover {
    transform: scale(1.1);
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Loading State for Form */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Subtle Pattern Background */
.pattern-bg {
    background-image: radial-gradient(circle at 1px 1px, rgba(212, 165, 116, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}
