/* ============================================
   Growing Tx Greens Emporium — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

/* --- Selection --- */
::selection {
    background-color: #a3e635;
    color: #0a2410;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ee;
}
::-webkit-scrollbar-thumb {
    background: #1a5c2a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #144a21;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 92, 42, 0.08);
}

#navbar.scrolled .font-display {
    color: #0a2410 !important;
}

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

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

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .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; }
}

/* --- Button ripple on focus --- */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #a3e635;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Form inputs --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* --- Image lazy-load placeholder --- */
img {
    background-color: #d5e8d5;
}

/* --- Utility: hide mobile menu button when open --- */
#menu-icon-close.hidden {
    display: none;
}
#menu-icon-open.hidden {
    display: none;
}
