/* ========================================
   Hometown Bottle and Can Return
   Custom Styles — Bold Editorial Design
   ======================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #7B2D3B;
    color: #fff;
}

/* --- Floating Animations (progressive enhancement) --- */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .animate-float-slow {
        animation: float-slow 6s ease-in-out infinite;
    }
    .animate-float-medium {
        animation: float-medium 4.5s ease-in-out infinite;
    }
    .animate-float-fast {
        animation: float-fast 3.5s ease-in-out infinite;
    }
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Staggered delays for grid items --- */
.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; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Navbar --- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

/* --- Service Cards --- */
.service-card {
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: rgba(123, 45, 59, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(123, 45, 59, 0.12);
}

/* --- Button hover effects --- */
a {
    text-decoration: none;
}

/* --- Smooth image loading --- */
img {
    display: block;
    max-width: 100%;
}

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

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

/* --- Focus styles for accessibility --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #f49aa1;
}

/* --- Print styles --- */
@media print {
    #navbar,
    .animate-float-slow,
    .animate-float-medium,
    .animate-float-fast {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
