/* ===== Custom Styles for Lakeland Perk ===== */

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

/* Custom selection color */
::selection {
    background-color: #d4623f;
    color: #FAF7F2;
}

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
    background-color: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(61, 43, 31, 0.08);
}

#navbar.scrolled .nav-link {
    color: rgba(61, 43, 31, 0.8);
}

/* ===== Reveal 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.revealed {
    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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== Image Hover Effects ===== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ===== Mobile Menu Transitions ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Hamburger Animation */
#menuBtn.active #bar1 {
    transform: translateY(6px) rotate(45deg);
}

#menuBtn.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active #bar3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===== Typography Enhancements ===== */
.font-serif {
    text-rendering: optimizeLegibility;
}

/* ===== Subtle Grain Texture Overlay ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4623f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Form Input Transitions ===== */
input,
textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: #d4623f !important;
    box-shadow: 0 0 0 3px rgba(212, 98, 63, 0.1);
}

/* ===== Button Hover Lift ===== */
button,
a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Mobile Link Hover ===== */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #d4623f;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-link:hover::after {
    width: 100%;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .reveal {
        transform: translateY(24px);
    }
}

/* ===== Print Styles ===== */
@media print {
    #navbar,
    #mobileMenu,
    .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* ===== 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;
    }
}
