/* ===== Bonitas Boutique — Custom Styles ===== */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background-color: #2e6e2e;
    color: white;
}

/* ===== Floating Card Animations ===== */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card-delayed {
    animation: float 4s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card,
    .floating-card-delayed {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        transition: none;
    }
}

/* ===== Navbar Scroll State ===== */
.nav-scrolled {
    box-shadow: 0 1px 0 rgba(46, 110, 46, 0.1);
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

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

/* ===== Smooth section transitions ===== */
section {
    position: relative;
}

/* ===== Focus styles ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2e6e2e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Button hover lift ===== */
a[href="#collection"],
a[href="#visit"],
button {
    transition: all 0.2s ease;
}

/* ===== Card hover effects ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ===== Subtle grid pattern for sections ===== */
.bg-grid-pattern {
    background-image: linear-gradient(to right, rgba(46, 110, 46, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(46, 110, 46, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FAFAF7;
}

::-webkit-scrollbar-thumb {
    background: #b8d9b9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2e6e2e;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 640px) {
    .floating-card {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin-bottom: 12px;
        width: 100%;
    }
    
    .floating-card-delayed {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin-bottom: 12px;
        width: 100%;
        animation-delay: 0s;
    }
}

/* ===== Print styles ===== */
@media print {
    nav, #mobile-menu, .floating-card, .floating-card-delayed {
        display: none;
    }
    
    body {
        color: #000;
        background: white;
    }
}
