/* ── Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ── Section Label ──────────────────────────────────── */
.section-label {
    display: block;
}

/* ── Divider Line ───────────────────────────────────── */
.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 78, 59, 0.15), transparent);
}

/* ── Navbar ─────────────────────────────────────────── */
#navbar {
    background: rgba(253, 249, 243, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.06);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* ── Hero Animations ────────────────────────────────── */
.hero-subtitle {
    animation: heroFadeUp 0.8s ease forwards 0.3s;
}
.hero-title {
    animation: heroFadeUp 0.8s ease forwards 0.5s;
}
.hero-description {
    animation: heroFadeUp 0.8s ease forwards 0.7s;
}
.hero-cta {
    animation: heroFadeUp 0.8s ease forwards 0.9s;
}

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

/* ── Scroll Reveal (below the fold only) ───────────── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-hidden {
    opacity: 0;
    transform: translateY(24px);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal.is-hidden {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
    .animate-bounce { animation: none; }
}

/* ── Heritage Section ───────────────────────────────── */
.heritage-content { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; }
.heritage-image  { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease 0.15s; }

.heritage-content.is-hidden { opacity: 0; transform: translateY(24px); }
.heritage-image.is-hidden   { opacity: 0; transform: translateY(24px); }

/* ── Craft Section ──────────────────────────────────── */
.craft-header { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; }
.craft-card   { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; }

.craft-header.is-hidden { opacity: 0; transform: translateY(24px); }
.craft-card.is-hidden   { opacity: 0; transform: translateY(24px); }
.craft-card:nth-child(2).is-hidden { transition-delay: 0.1s; }
.craft-card:nth-child(3).is-hidden { transition-delay: 0.2s; }

/* ── Products Section ───────────────────────────────── */
.products-header { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; }
.product-card    { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }

.products-header.is-hidden { opacity: 0; transform: translateY(24px); }
.product-card.is-hidden    { opacity: 0; transform: translateY(20px); }
.product-card:nth-child(2).is-hidden { transition-delay: 0.05s; }
.product-card:nth-child(3).is-hidden { transition-delay: 0.1s; }
.product-card:nth-child(4).is-hidden { transition-delay: 0.15s; }
.product-card:nth-child(5).is-hidden { transition-delay: 0.2s; }
.product-card:nth-child(6).is-hidden { transition-delay: 0.25s; }
.product-card:nth-child(7).is-hidden { transition-delay: 0.3s; }
.product-card:nth-child(8).is-hidden { transition-delay: 0.35s; }

/* ── Visit Section ──────────────────────────────────── */
.visit-content { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; }
.visit-image-grid { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease 0.15s; }

.visit-content.is-hidden  { opacity: 0; transform: translateY(24px); }
.visit-image-grid.is-hidden { opacity: 0; transform: translateY(24px); }

/* ── Contact Section ────────────────────────────────── */
.contact-info  { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; }
.contact-form-wrap { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease 0.15s; }

.contact-info.is-hidden { opacity: 0; transform: translateY(24px); }
.contact-form-wrap.is-hidden { opacity: 0; transform: translateY(24px); }

/* ── Mobile Menu ────────────────────────────────────── */
#mobile-menu.open { transform: translateX(0); }

.mobile-nav-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: rgb(6, 78, 59);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-link:hover {
    opacity: 0.7;
}

/* ── Utility ────────────────────────────────────────── */
::selection {
    background: rgba(6, 78, 59, 0.15);
    color: rgb(6, 78, 59);
}
