/* Maple & Pine Custom Styles */

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

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Gentle Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

.float-slow {
    animation: floatSlow 8s ease-in-out infinite;
}

/* Wavy separator */
.wavy-separator {
    position: relative;
    width: 100%;
    height: 60px;
    overflow: hidden;
}

.wavy-separator svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* Organic blob shapes */
.blob-shape {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.blob-shape-alt {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

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

/* Hover effects for links */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 50%;
    background-color: #8A4B50;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

nav a:hover::after {
    width: 80%;
}

/* Custom button hover effects */
button,
a[class*="bg-"] {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 100px;
}

/* Mobile responsiveness for floating elements */
@media (max-width: 768px) {
    .float,
    .float-slow {
        display: none;
    }
}

/* Newsletter form focus states */
input:focus {
    box-shadow: 0 0 0 3px rgba(62, 87, 66, 0.1);
}

/* Decorative elements */
.decorative-branch {
    position: relative;
}

.decorative-branch::before {
    content: '🌿';
    position: absolute;
    top: -20px;
    left: -30px;
    font-size: 2rem;
    opacity: 0.3;
}

/* Loading state for forms */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #FAF3E0;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    nav,
    footer,
    #newsletter {
        display: none;
    }
}
