/* Hero */
/* ensure hero is positioned for absolute children */
.hero {
    position: relative;
    /* REQUIRED for hero__leaf */
    overflow: hidden;
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    color: #fff;
    /* hero background: unsplash random green nature image (https) */
    /* background: linear-gradient(135deg, rgba(92, 176, 92, 0.85), rgba(162, 211, 156, 0.65)),
        url("https://source.unsplash.com/1600x900/?green,nature,leaves") center/cover no-repeat; */
    background: linear-gradient(135deg, #c8e6c9 60%, #81c784 30%, #4caf50 10%);
}

/* leaf container covers hero but doesn't block content */
.hero__leaf-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    /* behind hero content which must have higher z-index */
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero__cta {
    background: #fff;
    color: #2E7D32;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.hero__cta:hover {
    background: #6CC070;
    color: #fff;
}

/* leaf */
.hero__leaf {
    position: absolute;
    top: -40px;
    /* start slightly above */
    background-image: url('https://www.svgrepo.com/show/530298/leaf.svg');
    /* CC0 / free SVG */
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.95;
    transform-origin: center;
    animation: heroLeafFall 10s linear infinite;
    z-index: 1;
}

/* ensure the text/content sits above leaves */
.hero__content {
    position: relative;
    z-index: 2;
}

/* keyframes: falling + gentle rotate + slight horizontal drift */
@keyframes heroLeafFall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateY(50vh) rotate(180deg) translateX(20px);
        opacity: 0.75;
    }

    100% {
        transform: translateY(0) rotate(360deg) translateX(-10px);
        opacity: 1;
    }
}

/* Products */

.section-title {
    margin-top: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card__img {
    width: 100%;
    border-radius: 10px;
}

.product-card__title {
    margin: 1rem 0 0.5rem;
    color: #2E7D32;
}

.product-card__price {
    color: #6CC070;
    margin-bottom: 1rem;
}

.product-card__btn {
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    background: #6CC070;
    color: #fff;
    border-radius: 5px;
    transition: 0.3s;
}

.product-card__btn:hover {
    background: #2E7D32;
}

/* About */
.about__content {
    text-align: center;
    margin-bottom: 4rem;
}

.about__text {
    max-width: 800px;
    margin: 1rem auto;
    color: #333;
    line-height: 1.6;
}

/* Benefits */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.benefit-card {
    background: #F4F1EB;
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
}

.benefit-card__icon {
    width: 60px;
    margin-bottom: 1rem;
}

.benefit-card__title {
    color: #2E7D32;
    margin-bottom: 0.5rem;
}

.benefit-card__desc {
    color: #333;
    font-size: 0.95rem;
}

/* Newsletter */
.newsletter__content {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #A2D39C 60%, #F4F1EB 40%);
    border-radius: 10px;
    margin-bottom: 4rem;
}

.newsletter__form {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 0.5rem;
}

.newsletter__input {
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    flex: 1;
}

.newsletter__btn {
    padding: 0.8rem 1.5rem;
    background: #2E7D32;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.newsletter__btn:hover {
    background: #6CC070;
}