/* Custom Styles for H & R Sod Co-the Hawthorns */

/* Base Reset & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: rgba(255, 107, 46, 0.3);
    color: #fff;
}

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

::-webkit-scrollbar-track {
    background: #1a1b1e;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #5f6169;
}

/* Floating Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1.5s;
}

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

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

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(13, 14, 16, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(60, 61, 65, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Button Hover Effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

/* Input Styles */
input, select, textarea {
    font-family: 'Inter', sans-serif;
}

/* Mobile Menu Transitions */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobileMenu.open {
    max-height: 500px;
    opacity: 1;
}

/* Card Hover Glow */
.group:hover .group-hover\:bg-coral-500\/25 {
    background-color: rgba(255, 107, 46, 0.25);
}

/* Image Hover Zoom */
.group:hover img {
    transform: scale(1.1);
}

/* Gradient Text (if needed) */
.gradient-text {
    background: linear-gradient(135deg, #ff8a52 0%, #ff6b2e 50%, #c93705 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Prevent Layout Shift */
img {
    max-width: 100%;
    height: auto;
}

/* Aspect Ratio Support */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    nav, #mobileMenu, .scroll-reveal {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
