/* =========================================
   CropCare
   Main Stylesheet
========================================= */


/* =========================================
   Reset
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f9f5;
    color: #1f2d24;
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

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

button,
input,
select {
    font-family: inherit;
}


/* =========================================
   Variables
========================================= */

:root {
    --green-dark: #173b28;
    --green: #2f6b43;
    --green-light: #e7f1e8;

    --cream: #f7f9f5;
    --white: #ffffff;

    --text-dark: #1f2d24;
    --text-muted: #66736a;

    --border: #dfe7df;

    --shadow:
        0 15px 40px rgba(31, 45, 36, 0.08);

    --radius: 18px;
}


/* =========================================
   Container
========================================= */

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================
   Navigation
========================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--green-dark);
    font-size: 1.3rem;
    font-weight: 800;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    padding: 9px 15px;

    border-radius: 9px;

    color: var(--text-muted);

    font-size: 0.95rem;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

nav a:hover,
nav a.active {
    background: var(--green-light);
    color: var(--green-dark);
}

.menu-toggle {
    display: none;

    border: none;
    background: transparent;

    font-size: 1.5rem;
    cursor: pointer;
}


/* =========================================
   Hero
========================================= */

.hero {
    background:
        linear-gradient(
            135deg,
            #edf5ed 0%,
            #f8faf5 55%,
            #e7f0e5 100%
        );

    padding: 90px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 70px;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--green);

    font-size: 0.78rem;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 22px;

    color: var(--green-dark);

    font-size: clamp(2.7rem, 6vw, 4.7rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h1 span {
    color: var(--green);
}

.hero p {
    max-width: 600px;

    margin-bottom: 30px;

    color: var(--text-muted);

    font-size: 1.08rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* =========================================
   Buttons
========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 21px;

    border-radius: 11px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--green-dark);
    color: var(--white);

    box-shadow: 0 8px 20px rgba(23, 59, 40, 0.18);
}

.btn-primary:hover {
    background: var(--green);
}

.btn-secondary {
    background: var(--white);
    color: var(--green-dark);

    border: 1px solid var(--border);
}

.btn-light {
    background: var(--white);
    color: var(--green-dark);
}


/* =========================================
   Hero Visual
========================================= */

.hero-visual {
    min-height: 360px;

    position: relative;

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

.plant-card {
    width: min(100%, 390px);

    padding: 45px 35px;

    display: flex;
    align-items: center;
    gap: 22px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 28px;

    box-shadow: var(--shadow);

    transform: rotate(2deg);
}

.plant-icon {
    width: 95px;
    height: 95px;

    flex-shrink: 0;

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

    background: var(--green-light);

    border-radius: 25px;

    font-size: 3.5rem;
}

.plant-card span {
    display: block;

    margin-bottom: 5px;

    color: var(--green);

    font-size: 0.8rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.plant-card strong {
    display: block;

    color: var(--green-dark);

    font-size: 1.25rem;
    line-height: 1.3;
}

.floating-card {
    position: absolute;

    padding: 13px 18px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: 0 12px 25px rgba(31, 45, 36, 0.1);

    font-weight: 700;
}

.floating-card-one {
    top: 40px;
    right: 0;
}

.floating-card-two {
    bottom: 40px;
    left: 0;
}


/* =========================================
   Sections
========================================= */

.section {
    padding: 90px 0;
}

.featured-section {
    background: var(--white);
}

.section-heading {
    margin-bottom: 35px;
}

.section-heading h2 {
    margin-bottom: 8px;

    color: var(--green-dark);

    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
}

.section-heading p {
    color: var(--text-muted);
}

.heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.view-all {
    color: var(--green);

    font-weight: 700;
}

.view-all:hover {
    text-decoration: underline;
}


/* =========================================
   Crop Cards
========================================= */

.crop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.crop-card {
    padding: 30px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: 0 5px 20px rgba(31, 45, 36, 0.04);

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

.crop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.crop-icon {
    width: 60px;
    height: 60px;

    margin-bottom: 20px;

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

    background: var(--green-light);

    border-radius: 16px;

    font-size: 2rem;
}

.crop-card h3 {
    margin-bottom: 6px;

    color: var(--green-dark);

    font-size: 1.35rem;
}

.crop-card p {
    margin-bottom: 18px;

    color: var(--text-muted);
}

.crop-card span {
    color: var(--green);

    font-size: 0.9rem;
    font-weight: 700;
}


/* =========================================
   Disease Cards
========================================= */

.disease-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.disease-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: 0 5px 20px rgba(31, 45, 36, 0.04);

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

.disease-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.disease-card-top {
    min-height: 130px;

    padding: 22px;

    display: flex;
    align-items: start;
    justify-content: space-between;

    background: var(--green-light);
}

.disease-icon {
    width: 58px;
    height: 58px;

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

    background: var(--white);

    border-radius: 16px;

    font-size: 2rem;
}

.disease-type {
    display: inline-block;

    padding: 5px 9px;

    background: var(--white);

    border-radius: 20px;

    color: var(--green);

    font-size: 0.7rem;
    font-weight: 800;

    text-transform: uppercase;
}

.disease-card-body {
    padding: 25px;
}

.crop-label {
    display: inline-block;

    margin-bottom: 7px;

    color: var(--green);

    font-size: 0.78rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.disease-card h3 {
    margin-bottom: 10px;

    color: var(--green-dark);

    font-size: 1.4rem;
}

.disease-card p {
    min-height: 78px;

    margin-bottom: 20px;

    color: var(--text-muted);

    font-size: 0.92rem;
}

.learn-more {
    padding: 0;

    border: none;
    background: none;

    color: var(--green);

    cursor: pointer;

    font-size: 0.9rem;
    font-weight: 800;
}

.learn-more:hover {
    text-decoration: underline;
}


/* =========================================
   Information Strip
========================================= */

.info-strip {
    padding: 60px 0;

    background: var(--green-dark);

    color: var(--white);
}

.info-strip-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.info-strip .eyebrow {
    color: #b7d7be;
}

.info-strip h2 {
    max-width: 650px;

    font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 1.2;
}


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

.page-header {
    padding: 75px 0;

    background:
        linear-gradient(
            135deg,
            #edf5ed,
            #f7f9f5
        );

    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    margin-bottom: 12px;

    color: var(--green-dark);

    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
}

.page-header p {
    max-width: 680px;

    color: var(--text-muted);

    font-size: 1.05rem;
}


/* =========================================
   Explorer
========================================= */

.explorer {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 20px;

    margin-bottom: 30px;

    padding: 25px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: 0 5px 20px rgba(31, 45, 36, 0.04);
}

.explorer label {
    display: block;

    margin-bottom: 8px;

    color: var(--green-dark);

    font-size: 0.85rem;
    font-weight: 800;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0 15px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--cream);
}

.search-box span {
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    height: 48px;

    border: none;
    outline: none;

    background: transparent;

    color: var(--text-dark);

    font-size: 0.95rem;
}

.filter-wrapper select {
    width: 100%;
    height: 48px;

    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;

    background: var(--cream);

    color: var(--text-dark);

    cursor: pointer;
}

.results-info {
    margin-bottom: 20px;

    color: var(--text-muted);

    font-size: 0.9rem;
    font-weight: 700;
}


/* =========================================
   No Results
========================================= */

.no-results {
    padding: 70px 20px;

    text-align: center;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.no-results > div {
    margin-bottom: 10px;

    font-size: 2.5rem;
}

.no-results h3 {
    margin-bottom: 5px;

    color: var(--green-dark);
}

.no-results p {
    color: var(--text-muted);
}


/* =========================================
   Modal
========================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;

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

    padding: 25px;

    background: rgba(18, 35, 25, 0.7);

    backdrop-filter: blur(5px);
}

.modal {
    width: min(750px, 100%);
    max-height: 90vh;

    position: relative;

    overflow-y: auto;

    padding: 35px;

    background: var(--white);

    border-radius: 22px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 18px;

    width: 38px;
    height: 38px;

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

    border: none;
    border-radius: 50%;

    background: var(--green-light);

    color: var(--green-dark);

    cursor: pointer;

    font-size: 1.5rem;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 18px;

    padding-right: 45px;

    margin-bottom: 20px;
}

.modal-disease-icon {
    width: 70px;
    height: 70px;

    flex-shrink: 0;

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

    background: var(--green-light);

    border-radius: 18px;

    font-size: 2.5rem;
}

.modal-header h2 {
    color: var(--green-dark);

    font-size: 2rem;
    line-height: 1.15;
}

.modal-description {
    margin-bottom: 25px;

    color: var(--text-muted);
}

.detail-section {
    padding: 20px 0;

    border-top: 1px solid var(--border);
}

.detail-section h3 {
    margin-bottom: 12px;

    color: var(--green-dark);

    font-size: 1.1rem;
}

.detail-section ul {
    padding-left: 20px;

    color: var(--text-muted);
}

.detail-section li {
    margin-bottom: 7px;
}

.modal-notice {
    margin-top: 10px;

    padding: 15px;

    background: var(--green-light);

    border-radius: 12px;

    color: var(--green-dark);

    font-size: 0.85rem;
    font-weight: 600;
}


/* =========================================
   About
========================================= */

.about-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}

.about-main h2 {
    margin-bottom: 20px;

    color: var(--green-dark);

    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.about-main p {
    margin-bottom: 18px;

    color: var(--text-muted);
}

.about-cards {
    display: grid;
    gap: 16px;
}

.about-card {
    padding: 25px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.about-card-icon {
    margin-bottom: 12px;

    font-size: 2rem;
}

.about-card h3 {
    margin-bottom: 6px;

    color: var(--green-dark);
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}


/* =========================================
   Notice
========================================= */

.notice-section {
    padding: 0 0 90px;
}

.notice {
    display: flex;
    gap: 18px;

    padding: 25px;

    background: var(--green-light);

    border: 1px solid #d5e5d6;
    border-radius: var(--radius);
}

.notice-icon {
    font-size: 1.6rem;
}

.notice h3 {
    margin-bottom: 5px;

    color: var(--green-dark);
}

.notice p {
    color: #52665a;
}


/* =========================================
   Footer
========================================= */

.footer {
    padding-top: 45px;

    background: #102a1c;

    color: #dbe8de;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding-bottom: 35px;
}

.footer-logo {
    color: var(--white);
}

.footer-content p {
    margin-top: 7px;

    color: #a9b9ae;

    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #c9d7cc;

    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    padding: 20px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    color: #8ea294;

    font-size: 0.78rem;
}


/* =========================================
   Utility
========================================= */

.hidden {
    display: none !important;
}


/* =========================================
   Responsive
========================================= */

@media (max-width: 900px) {

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 300px;
    }

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

    .about-content {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .container {
        width: min(100% - 28px, 1120px);
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;

        position: absolute;
        top: 74px;
        left: 0;
        right: 0;

        padding: 15px;

        flex-direction: column;
        align-items: stretch;

        background: var(--white);

        border-bottom: 1px solid var(--border);

        box-shadow: 0 10px 25px rgba(31, 45, 36, 0.08);
    }

    nav.show {
        display: flex;
    }

    nav a {
        padding: 12px;
    }

    .hero {
        padding: 65px 0;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .hero-visual {
        min-height: 250px;
    }

    .plant-card {
        padding: 25px;
    }

    .plant-icon {
        width: 70px;
        height: 70px;

        font-size: 2.5rem;
    }

    .floating-card-one {
        top: 15px;
        right: 0;
    }

    .floating-card-two {
        bottom: 15px;
        left: 0;
    }

    .section {
        padding: 65px 0;
    }

    .crop-grid,
    .disease-grid {
        grid-template-columns: 1fr;
    }

    .heading-row {
        align-items: start;
        flex-direction: column;
    }

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

    .info-strip-content {
        align-items: start;
        flex-direction: column;
    }

    .footer-content {
        align-items: start;
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .modal {
        padding: 25px;

        max-height: 92vh;
    }

    .modal-header {
        align-items: start;
    }

    .modal-header h2 {
        font-size: 1.6rem;
    }

}


@media (max-width: 450px) {

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .plant-card {
        flex-direction: column;
        text-align: center;
    }

    .floating-card {
        font-size: 0.8rem;
    }

}

/* -----------------------------
   CropCare Tip
----------------------------- */

.tip-section {
    padding-top: 20px;
}

.tip-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px;
    border-radius: 18px;
    background: #f4f8f1;
    border: 1px solid #dce8d6;
}

.tip-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.tip-content .eyebrow {
    display: block;
    margin-bottom: 8px;
}

.tip-content h2 {
    margin: 0 0 10px;
}

.tip-content p {
    margin: 0;
    line-height: 1.7;
}


/* Mobile */
@media (max-width: 600px) {

    .tip-card {
        align-items: flex-start;
        padding: 22px;
        gap: 16px;
    }

    .tip-icon {
        font-size: 2.2rem;
    }

}