/* Custom styles for Allen Resources */

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

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

/* Hero animations */
.hero-headline {
    animation: heroFadeIn 1s ease-out 0.3s forwards;
}

.hero-subtitle {
    animation: heroFadeIn 1s ease-out 0.1s forwards;
}

.hero-description {
    animation: heroFadeIn 1s ease-out 0.5s forwards;
}

.hero-cta {
    animation: heroFadeIn 1s ease-out 0.7s forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator animation */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(8px);
        opacity: 0.5;
    }
}

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .hero-headline,
    .hero-subtitle,
    .hero-description,
    .hero-cta {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, border-color 0.4s ease-out;
}

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

/* Navbar transition states */
.nav-scrolled {
    background-color: rgba(254, 254, 254, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-scrolled .nav-text {
    color: #741638;
}

.nav-scrolled .nav-link {
    color: #4b5563;
}

.nav-scrolled .menu-line {
    background-color: #741638;
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Custom select styling */
select option {
    padding: 0.5rem;
}

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

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

/* Print styles */
@media print {
    nav,
    .scroll-indicator,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
