/* ═══════════════════════════════════════════════════════════
   Granny's Greenhouse & Nursery — Custom Styles
   ═══════════════════════════════════════════════════════════ */

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

body {
    overflow-x: hidden;
}

/* ── Selection Color ── */
::selection {
    background-color: #e5a820;
    color: #0d1423;
}

/* ── Scrollbar Styling ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
    background: #b3c1df;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8da2cf;
}

/* ── Scroll Reveal Animations ── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-state="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

.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 Scroll State ── */
nav.scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(13, 20, 35, 0.08);
}

nav.scrolled .nav-logo-text {
    color: #0d1423 !important;
}

nav.scrolled .nav-link {
    color: #1a2846 !important;
}

nav.scrolled .mobile-link {
    color: #0d1423 !important;
}

nav.scrolled #menu-line-1,
nav.scrolled #menu-line-2,
nav.scrolled #menu-line-3 {
    background: #0d1423 !important;
}

/* ── Mobile Menu Active State ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Button Focus Styles ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #e5a820;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ── Image Loading ── */
img {
    background-color: #d9e0ef;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .reveal[data-state="hidden"] {
        opacity: 1 !important;
        transform: none !important;
    }
    img, .group img {
        transition: none !important;
    }
    .animate-pulse {
        animation: none !important;
    }
}

/* ── Responsive Tweaks ── */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
