/* Custom styles for High Rolls General Store */

/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF5EF;
}
::-webkit-scrollbar-thumb {
    background: #DEB270;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C4704B;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Navbar styles */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-scrolled .font-display {
    color: #1C1917 !important;
}

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

/* Menu line animation */
.menu-open .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-open .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

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

/* Card hover effects */
.group:hover .group-hover\:shadow-xl {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* Contact form focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(196, 112, 75, 0.1);
}

/* Selection color */
::selection {
    background: #F5DDD3;
    color: #96472F;
}

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

/* Print styles */
@media print {
    nav, #contact, footer {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
