/* Custom styles for SnoBiz Griffin */

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

/* Custom selection color */
::selection {
    background: #C1694F;
    color: #fff;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(193, 105, 79, 0.1);
    box-shadow: 0 1px 20px rgba(61, 37, 23, 0.06);
}

.nav-scrolled .nav-link {
    color: #6B5B4F;
}

.nav-scrolled #navbar a:not(.bg-terra-500) {
    color: #3D2517;
}

/* Hero badge animation */
.hero-badge {
    animation: fadeInDown 0.8s ease-out both;
}

/* Hero text animation */
#hero h1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

#hero p {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

#hero > div > div:last-child {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

#hero > div > div:last-child > div {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Feature cards */
.feature-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Section animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Menu items */
.menu-section .space-y-4 li {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-section .space-y-4 li.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

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

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 400px;
    }
}

/* Subtle parallax on hero decorative blobs */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -15px) scale(1.02); }
}

/* Responsive tweaks */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.75rem;
    }
    
    .feature-card {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    header, #contact, footer {
        display: none;
    }
    
    body {
        background: white;
        color: #3D2517;
    }
}
