/* ============================================
   Liberty Ag Feed and Supply — Custom Styles
   ============================================ */

/* 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(200, 164, 94, 0.3);
    color: #ffffff;
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-eyebrow {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subheadline {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-stats {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 1s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Product Section Animations
   ============================================ */
.product-header {
    opacity: 1;
}

.product-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, background-color 0.5s ease;
}

.product-card.reveal {
    opacity: 0;
    transform: translateY(2rem);
}

.product-card.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-cta {
    opacity: 1;
}

.product-cta.reveal {
    opacity: 0;
}

.product-cta.reveal.visible {
    opacity: 1;
}

/* ============================================
   About Section Animations
   ============================================ */
.about-image {
    opacity: 1;
}

.about-eyebrow,
.about-title,
.about-p1,
.about-p2,
.about-p3,
.about-prop {
    opacity: 1;
}

.about-content > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Services Animations
   ============================================ */
.services-header {
    opacity: 1;
}

.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, background-color 0.5s ease;
}

.service-card.reveal {
    opacity: 0;
    transform: translateY(2rem);
}

.service-card.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Contact Animations
   ============================================ */
.contact-info,
.contact-form-wrapper {
    opacity: 1;
}

/* ============================================
   Mobile Menu Transitions
   ============================================ */
#mobile-menu {
    transition: opacity 0.4s ease, pointer-events 0.4s ease;
}

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

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

.mobile-link {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ============================================
   Navbar Scroll State
   ============================================ */
#navbar.scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .menu-line {
    background-color: #ffffff;
}

/* ============================================
   Form Focus States
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(200, 164, 94, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 164, 94, 0.5);
}

/* ============================================
   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;
    }
    
    .product-card.reveal,
    .service-card.reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.75rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-content {
        order: 1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.25rem;
    }
    
    .product-title,
    .services-title,
    .contact-title {
        font-size: 2.25rem;
    }
}
