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

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

body {
    min-height: 100vh;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── Scroll Reveal (progressive enhancement) ─────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Always visible fallback */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Hero ────────────────────────────────────────── */
.hero-img {
    animation: heroZoom 20s ease-in-out infinite alternate;
    will-change: transform;
}

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

.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(15, 36, 27, 0.55) 0%,
        rgba(27, 67, 50, 0.70) 40%,
        rgba(22, 56, 41, 0.80) 70%,
        rgba(15, 36, 27, 0.90) 100%
    );
}

.hero-title {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* Hero entrance — only below the fold content is animated, hero is always visible */
.hero-tag    { animation: fadeDown 1s 0.3s both; }
.hero-title  { animation: fadeUp 1s 0.5s both; }
.hero-subtitle { animation: fadeUp 1s 0.7s both; }
.hero-ctas   { animation: fadeUp 1s 0.9s both; }

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

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

/* Scroll line animation */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50%       { opacity: 0.7; transform: scaleY(1.2); }
}

/* ── Buttons ─────────────────────────────────────── */
.btn-primary {
    box-shadow: 0 4px 20px rgba(27, 67, 50, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(27, 67, 50, 0.4);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: rgba(253, 251, 247, 0.08);
    transform: translateY(-2px);
}

/* ── Tags / Labels ───────────────────────────────── */
.tag-label {
    letter-spacing: 0.3em;
}

.tag-label-inline {
    letter-spacing: 0.3em;
}

/* ── Product Cards ───────────────────────────────── */
.product-card {
    background: rgba(253, 251, 247, 0.04);
    border: 1px solid rgba(253, 251, 247, 0.08);
    border-radius: 4px;
    padding: 8px;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.product-card:hover {
    background: rgba(253, 251, 247, 0.08);
    border-color: rgba(253, 251, 247, 0.15);
}

/* ── Gallery Images ──────────────────────────────── */
.gallery-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-overlay {
    transition: opacity 0.5s ease;
}

/* ── Header Scroll State ─────────────────────────── */
#site-header.scrolled {
    background: rgba(15, 36, 27, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(253, 251, 247, 0.06);
}

/* ── Mobile Menu ─────────────────────────────────── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Utility ─────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ── Focus Styles ────────────────────────────────── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid theme('colors.forest.300');
    outline-offset: 4px;
    border-radius: 2px;
}

/* ── Print ───────────────────────────────────────── */
@media print {
    #site-header,
    .scroll-line,
    .gallery-overlay {
        display: none;
    }

    body {
        color: #1a1a1a;
        background: white;
    }
}
