﻿/* =========================================
   PLANTS PAGE
========================================= */

.plants-page {
    width: 100%;
    padding: 70px 5%;
    background: #f7fbf8;
}


/* =========================================
   PAGE HEADER
========================================= */

.plants-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 70px;
}

.plants-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #249555;
    margin-bottom: 12px;
}

.plants-header h1 {
    margin: 0 0 15px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    font-weight: 800;
    color: #163b24;
}

.plants-header p {
    margin: 0 auto;
    max-width: 680px;
    color: #68776e;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================
   CATEGORY SECTION
========================================= */

.plant-category-section {
    max-width: 1250px;
    margin: 0 auto 75px;
}


/* =========================================
   CATEGORY HEADING
========================================= */

.category-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 22px;
}

    .category-heading h2 {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        color: #163b24;
        font-size: 28px;
        font-weight: 800;
    }

    .category-heading p {
        margin: 7px 0 0 42px;
        color: #748078;
        font-size: 14px;
    }

.category-icon {
    font-size: 27px;
}


/* =========================================
   VIEW ALL
========================================= */

.view-all {
    color: #249555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.25s ease;
}

    .view-all span {
        margin-left: 5px;
        transition: margin-left 0.25s ease;
    }

    .view-all:hover {
        color: #176d3d;
    }

        .view-all:hover span {
            margin-left: 10px;
        }


/* =========================================
   CARD GRID
========================================= */

.plant-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}


/* =========================================
   CARD
========================================= */

.plant-category-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dce9e0;
    box-shadow: 0 8px 25px rgba(36, 149, 85, 0.08);
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

    .plant-category-card:hover {
        transform: translateY(-7px);
        border-color: rgba(36, 149, 85, 0.35);
        box-shadow: 0 18px 35px rgba(36, 149, 85, 0.16);
    }


/* =========================================
   IMAGE
========================================= */

.plant-image {
    position: relative;
    width: 100%;
    height: 245px;
    overflow: hidden;
}

    .plant-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 0.55s ease;
    }

.plant-category-card:hover .plant-image img {
    transform: scale(1.08);
}


/* =========================================
   IMAGE OVERLAY
========================================= */

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(36, 149, 85, 0.02) 20%, rgba(20, 70, 38, 0.12) 45%, rgba(8, 35, 18, 0.90) 100% );
}


/* =========================================
   CARD CONTENT
========================================= */

.plant-card-content {
    position: absolute;
    left: 17px;
    right: 17px;
    bottom: 16px;
    color: #ffffff;
}


/* =========================================
   BADGE
========================================= */

.plant-badge {
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 8px;
    border-radius: 50px;
    background: rgba(36, 149, 85, 0.80);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(7px);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* =========================================
   CARD TITLE
========================================= */

.plant-card-content h3 {
    margin: 0 0 4px;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
}

.plant-card-content p {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
}


/* =========================================
   CATEGORY COLOR ACCENTS
========================================= */

/* Fruit */

.plant-category-section:nth-of-type(2)
.category-heading h2 {
    color: #249555;
}


/* Flower */

.plant-category-section:nth-of-type(3)
.category-heading h2 {
    color: #249555;
}


/* Show Plants */

.plant-category-section:nth-of-type(4)
.category-heading h2 {
    color: #249555;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .plant-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =========================================
   SMALL TABLET
========================================= */

@media (max-width: 750px) {

    .plants-page {
        padding: 55px 4%;
    }

    .plant-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plant-image {
        height: 230px;
    }

    .category-heading h2 {
        font-size: 24px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 500px) {

    .plants-page {
        padding: 45px 20px;
    }

    .plants-header {
        margin-bottom: 50px;
    }

        .plants-header h1 {
            font-size: 32px;
        }

        .plants-header p {
            font-size: 14px;
        }

    .category-heading {
        align-items: flex-start;
    }

        .category-heading p {
            margin-left: 0;
            margin-top: 5px;
        }

        .category-heading h2 {
            font-size: 22px;
        }

    .category-icon {
        font-size: 23px;
    }

    .view-all {
        font-size: 12px;
    }

    .plant-category-grid {
        grid-template-columns: 1fr;
    }

    .plant-image {
        height: 260px;
    }
}
