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

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

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Navigation ── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.nav-scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(45, 80, 36, 0.1);
}

.nav-line {
    transition: all 0.3s ease;
}

#menu-btn.active .nav-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .nav-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .nav-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile Menu ── */
.mobile-menu {
    z-index: 99;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(45, 80, 36, 0.1);
    transition: color 0.2s ease;
}

.mobile-menu-link:hover {
    color: #4f823e;
}

/* ── Hero ── */
.hero {
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-img {
    will-change: transform;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.hero-loaded .hero-img {
    transform: scale(1);
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-loaded .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-label {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.hero-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.hero-actions {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

.hero-loaded .hero-label,
.hero-loaded .hero-title,
.hero-loaded .hero-subtitle,
.hero-loaded .hero-actions {
    opacity: 1;
    transform: translateY(0);
}

/* ── Section Components ── */
.section-eyebrow {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-title {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.section-subtitle {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.reveal-visible .section-eyebrow,
.reveal-visible .section-title,
.reveal-visible .section-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* ── Product Cards ── */
.product-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-visible .product-card:nth-child(1) { transition-delay: 0s; }
.reveal-visible .product-card:nth-child(2) { transition-delay: 0.1s; }
.reveal-visible .product-card:nth-child(3) { transition-delay: 0.2s; }
.reveal-visible .product-card:nth-child(4) { transition-delay: 0.3s; }
.reveal-visible .product-card:nth-child(5) { transition-delay: 0.4s; }
.reveal-visible .product-card:nth-child(6) { transition-delay: 0.5s; }

.product-img-wrap {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.product-card:hover .product-img-wrap {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* ── About Section ── */
.about-eyebrow {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-title {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.about-images {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.about-text {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

.about-stats {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

.about-reveal-visible .about-eyebrow,
.about-reveal-visible .about-title {
    opacity: 1;
    transform: translateY(0);
}

.about-reveal-visible .about-images {
    opacity: 1;
    transform: translateX(0);
}

.about-reveal-visible .about-text {
    opacity: 1;
    transform: translateX(0);
}

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

.about-img {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ── Buttons ── */
.btn-primary {
    box-shadow: 0 4px 14px rgba(45, 80, 36, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 36, 0.4);
}

.btn-secondary {
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(254, 253, 248, 0.1);
}

.btn-cta {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ── Form ── */
.form-label {
    display: block;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(45, 80, 36, 0.2);
    border-radius: 0.75rem;
    background: #fefdf8;
    color: #1e3319;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: #99c087;
}

.form-input:focus {
    border-color: #4f823e;
    box-shadow: 0 0 0 3px rgba(79, 130, 62, 0.15);
}

/* ── Scroll Indicator ── */
.hero-scroll {
    opacity: 0.7;
    animation: fadeInUp 1s ease 1.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 0.7;
        transform: translate(-50%, 0);
    }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

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

    .hero-content,
    .hero-label,
    .hero-title,
    .hero-subtitle,
    .hero-actions {
        opacity: 1;
        transform: none;
    }

    .product-card,
    .section-eyebrow,
    .section-title,
    .section-subtitle,
    .about-eyebrow,
    .about-title,
    .about-images,
    .about-text,
    .about-stats {
        opacity: 1;
        transform: none;
    }
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .about-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 4rem;
    }
}
