/* ============================================
   Harrington Maple Products — Custom Styles
   ============================================ */

/* ---- Base & Typography ---- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(123, 45, 59, 0.2);
    color: inherit;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F5;
}
::-webkit-scrollbar-thumb {
    background: #d4a8bc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8284d;
}

/* ---- Navigation ---- */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #7B2D3B;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    position: relative;
}

/* ---- Header scroll state ---- */
#site-header.scrolled {
    background: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.1);
}

#site-header.scrolled .font-display,
#site-header.scrolled .text-burgundy-800 {
    color: #7B2D3B;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceSlow {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-8px); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-bounce-slow {
    animation: bounceSlow 2s ease-in-out infinite;
}

/* ---- Product Cards ---- */
.product-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover {
    transform: translateY(-4px);
}

/* ---- Process Steps ---- */
.process-step {
    transition: transform 0.3s ease;
}
.process-step:hover {
    transform: translateY(-4px);
}

/* ---- Gallery Items ---- */
.gallery-item {
    cursor: pointer;
}

/* ---- Scroll Reveal (below fold only) ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal-delay-1 { transition-delay: 0.1s; }
.reveal.reveal-delay-2 { transition-delay: 0.2s; }
.reveal.reveal-delay-3 { transition-delay: 0.3s; }
.reveal.reveal-delay-4 { transition-delay: 0.4s; }

/* 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; }
    .reveal { opacity: 1; transform: none; }
}

/* ---- Mobile Menu ---- */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ---- Select styling ---- */
select option {
    background: #3a1219;
    color: #f9d0d9;
}

/* ---- Focus visible ---- */
:focus-visible {
    outline: 2px solid #d4456e;
    outline-offset: 2px;
}

/* ---- Utility ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
