/* ============================================
   Garrett Farms — Custom Styles
   Classic & Elegant | Charcoal + Coral
   ============================================ */

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

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

/* Selection color */
::selection {
    background-color: #e8735a;
    color: #1a1a1a;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f6;
}
::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Navbar transition states */
#navbar.scrolled {
    background: rgba(246, 246, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Scroll-reveal base states (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Only apply hidden state when JS is available and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(32px);
    }
    .reveal-hidden.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered reveal delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Image hover container */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Subtle card lift on hover */
.group:hover {
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.12);
}

/* Form styles */
input, textarea {
    width: 100%;
    border: 1px solid #d1d1d1;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #1a1a1a;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

input:focus, textarea:focus {
    border-color: #e8735a;
    box-shadow: 0 0 0 3px rgba(232, 115, 90, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #b0b0b0;
}

/* Success message animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .group-hover\:scale-105 {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
