/* ===== Blair's Marine & Sports — 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;
    min-height: 100vh;
}

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

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

.card-top {
    animation-delay: 0s;
}

.card-mid {
    animation-delay: -1.3s;
}

.card-bottom {
    animation-delay: -2.6s;
}

.card-accent {
    animation-delay: -0.8s;
}

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

/* ===== Gold shimmer accent line ===== */
.gold-line {
    background: linear-gradient(90deg, transparent, #f5c842, transparent);
    height: 1px;
}

/* ===== Button focus styles ===== */
a:focus-visible, button:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ===== Selection color ===== */
::selection {
    background-color: rgba(20, 184, 166, 0.3);
    color: #f1f5f9;
}

/* ===== Mobile menu transitions ===== */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ===== Navbar scroll state ===== */
#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ===== Card hover glow ===== */
.group:hover .group-hover\:shadow-teal-500\/10 {
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.1);
}

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

/* ===== Responsive tweaks ===== */
@media (max-width: 640px) {
    .floating-card {
        display: none;
    }

    #hero {
        min-height: 100vh;
        padding-top: 100px;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .floating-card {
        display: none;
    }
}
