/* ===== CUSTOM STYLES FOR JOSIE"PLANTAS ===== */

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

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: #ff6b4a;
    color: #ffffff;
}

/* ===== NAVBAR ===== */
#navbar.scrolled {
    background-color: rgba(247, 247, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .font-serif {
    color: #1e1e1e !important;
}

/* Mobile menu animation */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.close {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Hamburger animation */
#menuBtn.active #menuLine1 {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active #menuLine2 {
    opacity: 0;
}

#menuBtn.active #menuLine3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* ===== HERO ===== */
#hero {
    position: relative;
}

/* ===== PLANT CARDS ===== */
.plant-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.plant-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Image hover effect */
.plant-card img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== SCROLL REVEAL (below-fold only) ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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.reveal-hidden {
    opacity: 0;
    transform: translateY(24px);
}

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

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

/* Staggered reveal delays */
.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; }

/* ===== COUNTER ANIMATION ===== */
.stat-number {
    display: inline-block;
}

/* ===== BUTTON HOVER EFFECTS ===== */
a[class*="transition-colors"] {
    position: relative;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ff6b4a;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    .floating-card {
        position: relative;
        margin-top: 1rem;
        margin-left: 0;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    #navbar,
    #menuBtn,
    .reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
