

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: inherit;
    background: #f8fff8;
    color: #333;
}


/* =========================
   Header
========================= */

.planting-header {
    min-height: 380px;
    padding: 30px 8%;

    background: linear-gradient(
        135deg,
        #e8f5e9,
        #f5fff6
    );

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}


/* دکمه بازگشت */

.back-btn {
    position: absolute;

    top: 30px;
    right: 8%;

    text-decoration: none;

    color: #2e7d32;

    padding: 10px 20px;

    border: 1px solid #a5d6a7;

    border-radius: 30px;

    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #2e7d32;
    color: white;

    transform: translateY(-2px);
}


/* محتوای Header */

.planting-header-content {
    max-width: 700px;

    animation: headerAppear 1s ease forwards;
}

.planting-icon {
    display: inline-block;

    font-size: 70px;

    animation: plantFloat 3s ease-in-out infinite;
}

.planting-header h1 {
    margin: 15px 0;

    font-size: 48px;

    color: #1b5e20;
}

.planting-header p {
    margin: 0;

    font-size: 19px;

    color: #558b5a;
}


/* =========================
   Main
========================= */

.planting-page {
    width: min(1100px, 90%);

    margin: auto;

    padding: 80px 0;
}


/* =========================
   Introduction
========================= */

.planting-intro {
    max-width: 750px;

    margin: 0 auto 70px;

    text-align: center;

    animation: fadeUp 0.8s ease forwards;
}

.section-badge {
    display: inline-block;

    padding: 8px 18px;

    margin-bottom: 15px;

    border-radius: 30px;

    background: #e8f5e9;

    color: #2e7d32;

    font-size: 14px;
}

.planting-intro h2 {
    margin: 0 0 20px;

    font-size: 36px;

    color: #1b5e20;
}

.planting-intro p {
    margin: 0;

    color: #666;

    line-height: 2;

    font-size: 17px;
}


/* =========================
   Steps
========================= */

.planting-steps {
    display: grid;

    gap: 20px;
}


/* کارت هر مرحله */

.planting-step {
    display: flex;

    align-items: flex-start;

    gap: 25px;

    padding: 30px;

    background: white;

    border-radius: 20px;

    border: 1px solid #e8f5e9;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06);

    /* وضعیت اولیه انیمیشن */

    opacity: 0;

    transform: translateY(50px);

    animation: stepAppear 0.8s ease forwards;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* تأخیر مرحله‌ها */

.planting-step:nth-child(1) {
    animation-delay: 0.3s;
}

.planting-step:nth-child(2) {
    animation-delay: 0.6s;
}

.planting-step:nth-child(3) {
    animation-delay: 0.9s;
}

.planting-step:nth-child(4) {
    animation-delay: 1.2s;
}

.planting-step:nth-child(5) {
    animation-delay: 1.5s;
}


/* Hover */

.planting-step:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 35px rgba(46, 125, 50, 0.12);
}


/* شماره مرحله */

.step-number {
    flex-shrink: 0;

    width: 65px;
    height: 65px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #2e7d32;

    color: white;

    font-size: 18px;

    font-weight: bold;

    box-shadow:
        0 8px 20px rgba(46, 125, 50, 0.2);

    transition: all 0.3s ease;
}


/* چرخش کوچک شماره هنگام Hover */

.planting-step:hover .step-number {
    transform: rotate(8deg) scale(1.08);
}


/* عنوان */

.planting-step h3 {
    margin: 0 0 10px;

    color: #1b5e20;

    font-size: 22px;
}


/* توضیحات */

.planting-step p {
    margin: 0;

    color: #666;

    line-height: 1.9;

    font-size: 16px;
}


/* =========================
   Tips
========================= */

.planting-tips {
    margin-top: 100px;

    animation: fadeUp 1s ease 1.8s forwards;

    opacity: 0;
}

.planting-tips h2 {
    margin-bottom: 40px;

    text-align: center;

    color: #1b5e20;

    font-size: 32px;
}


/* Grid */

.tips-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}


/* کارت نکته */

.tip {
    padding: 30px 20px;

    text-align: center;

    background: #f8fff8;

    border-radius: 20px;

    border: 1px solid #e0f2e1;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.tip:hover {
    transform: translateY(-7px);

    box-shadow:
        0 12px 30px rgba(46, 125, 50, 0.1);
}

.tip span {
    display: inline-block;

    font-size: 45px;

    margin-bottom: 10px;

    transition: transform 0.3s ease;
}

.tip:hover span {
    transform: scale(1.15);
}

.tip h3 {
    margin: 10px 0;

    color: #2e7d32;
}

.tip p {
    margin: 0;

    color: #777;

    line-height: 1.8;
}


/* =========================
   Animations
========================= */


/* ورود Header */

@keyframes headerAppear {

    from {
        opacity: 0;

        transform: translateY(-30px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* ورود بخش‌ها */

@keyframes fadeUp {

    from {
        opacity: 0;

        transform: translateY(30px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* ورود مرحله‌ها */

@keyframes stepAppear {

    from {
        opacity: 0;

        transform: translateY(50px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* شناور بودن گیاه */

@keyframes plantFloat {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }

}


/* =========================
   Tablet
========================= */

@media (max-width: 768px) {

    .planting-header {
        min-height: 330px;
    }

    .planting-header h1 {
        font-size: 36px;
    }

    .planting-header p {
        font-size: 17px;
    }

    .planting-intro h2 {
        font-size: 28px;
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .planting-step {
        padding: 22px;
    }

}


/* =========================
   Mobile
========================= */

@media (max-width: 500px) {

    .planting-header {
        padding: 80px 20px 40px;
    }

    .back-btn {
        top: 20px;
        right: 20px;
    }

    .planting-icon {
        font-size: 55px;
    }

    .planting-header h1 {
        font-size: 30px;
    }

    .planting-page {
        width: 92%;

        padding: 55px 0;
    }

    .planting-step {
        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }

    .step-number {
        width: 55px;
        height: 55px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================
   Reduce Motion
========================= */

@media (prefers-reduced-motion: reduce) {

    .planting-step,
    .planting-intro,
    .planting-tips,
    .planting-header-content,
    .planting-icon {
        animation: none;

        opacity: 1;

        transform: none;
    }

}
