/* Custom Styles for Semple Yardworks */

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

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

/* Navbar Scroll State */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

@keyframes heroScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-fade {
    animation: heroFadeUp 0.8s ease-out forwards;
}

.hero-fade:nth-child(1) { animation-delay: 0.1s; }
.hero-fade:nth-child(2) { animation-delay: 0.3s; }
.hero-fade:nth-child(3) { animation-delay: 0.5s; }
.hero-fade:nth-child(4) { animation-delay: 0.7s; }
.hero-fade:nth-child(5) { animation-delay: 0.9s; }

.hero-headline {
    animation: heroFadeUp 0.9s ease-out 0.2s both;
}

.hero-subtitle {
    animation: heroFadeUp 0.9s ease-out 0.4s both;
}

.hero-cta {
    animation: heroFadeUp 0.9s ease-out 0.6s both;
}

.hero-scroll {
    animation: heroFadeUp 0.9s ease-out 0.8s both;
}

.hero-badge {
    animation: heroFadeUp 0.7s ease-out 0.1s both;
}

/* CTA Animations */
.cta-fade {
    animation: heroScale 1.2s ease-out forwards;
}

.cta-fade:nth-child(1) { animation-delay: 0.3s; }
.cta-fade:nth-child(2) { animation-delay: 0.6s; }

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

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(30px);
}

/* Service Card Hover */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery Item Hover */
.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mobile Menu */
#mobileMenu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-link {
    font-size: 1.125rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 300;
}

/* Menu Button Animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg);
}

/* Selection Color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #0a1628;
}

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

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

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

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .gallery-item img {
        transition: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}

/* Service Label */
.service-label {
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
}

/* Border for badge */
.border-gold-500/30 {
    border-color: rgba(201, 168, 76, 0.3);
}

/* Backdrop */
.bg-white\/8 {
    background-color: rgba(255, 255, 255, 0.08);
}

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

/* Aspect ratio utilities for gallery */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}
