/* ============================================
   In Full Bloom Flower Farm — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* ============================================
   Scroll Reveal — Progressive Enhancement
   Default state: visible (no JS = fully readable)
   Animated state: added via JS for below-fold content
   ============================================ */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

    .reveal-img {
        opacity: 1;
        transform: scale(1);
    }

    .reveal-img.reveal-visible {
        opacity: 1;
        transform: scale(1);
    }

    /* Staggered delays */
    .reveal:nth-child(1) { transition-delay: 0s; }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-blur-md;
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

/* ============================================
   Hero Stat Cards
   ============================================ */
.stat-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(27, 67, 50, 0.15);
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

/* ============================================
   Gallery Images
   ============================================ */
.reveal-img {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7fa886;
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background: #2d6a4f;
    color: #faf9f6;
}

/* ============================================
   Focus Styles
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2d6a4f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Form Inputs
   ============================================ */
input, textarea {
    font-family: 'Lato', system-ui, sans-serif;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar, #contact-form, .reveal {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
