/* ── Custom Styles ────────────────────────────────────────────── */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: #3d7a4f;
    color: #fdfcf8;
}

/* ── Navigation ───────────────────────────────────────────────── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(45, 90, 61, 0.08);
}

#navbar.scrolled .nav-link {
    color: #2d5a3d;
}

#navbar.scrolled .font-display {
    color: #2d5a3d;
}

#navbar.scrolled .text-forest-500 {
    color: #5e9a6e;
}

/* ── Section Labels ───────────────────────────────────────────── */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #5e9a6e;
    position: relative;
    padding-left: 2rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 2px;
    background: linear-gradient(90deg, #3d7a4f, #8fba96);
    border-radius: 2px;
}

/* ── Section Titles ───────────────────────────────────────────── */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1c3826;
    line-height: 1.15;
}

/* ── Section Text ─────────────────────────────────────────────── */
.section-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #5e9a6e;
}

/* ── Hero Animations ──────────────────────────────────────────── */
.hero-bg {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.hero-title {
    animation: fadeUp 1s ease-out 0.3s both;
}

.hero-subtitle {
    animation: fadeUp 1s ease-out 0.5s both;
}

.hero-cta {
    animation: fadeUp 1s ease-out 0.7s both;
}

.hero-badge {
    animation: fadeUp 1s ease-out 0.1s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Scroll Reveal ────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Product Cards ────────────────────────────────────────────── */
.product-card {
    perspective: 1000px;
}

/* ── Stats ────────────────────────────────────────────────────── */
.stat-number {
    display: block;
}

.stat-label {
    font-family: 'Inter', system-ui, sans-serif;
}

/* ── Scroll Indicator ─────────────────────────────────────────── */
.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
}

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

/* ── Mobile Menu ──────────────────────────────────────────────── */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 56, 38, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

/* ── Testimonial Cards ────────────────────────────────────────── */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(45, 90, 61, 0.1);
}

/* ── Form Styles ──────────────────────────────────────────────── */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(61, 122, 79, 0.15);
}

/* ── Utility ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
