/* Set the main AgriReach colors and typography for all pages. */
:root {
    --green:#216b43;
    --dark:#153c2b;
    --mint:#eff8f0;
    --cream:#fffaf0;
    --ink:#26352e;
    --muted:#66776c;
}

* {
    box-sizing:border-box;
}

body {
    font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
    color:var(--ink);
    background:#fff;
}

h1,h2,h3 {
    letter-spacing:-.035em;
}

a {
    transition:color .15s,background-color .15s,transform .15s;
}

.btn {
    border-radius:10px;
    font-weight:600;
    padding:.65rem 1.1rem;
}

.btn-success {
    background:var(--green);
    border-color:var(--green);
}

.btn-success:hover {
    background:#165333;
    border-color:#165333;
}

.btn-outline-success {
    color:var(--green);
    border-color:var(--green);
}

.btn-outline-success:hover {
    background:var(--green);
    border-color:var(--green);
}

.text-success,.brand-green {
    color:var(--green)!important;
}

.navbar {
    min-height:78px;
}

.navbar-brand {
    font-size:1.45rem;
    letter-spacing:-.05em;
}

    .brand-logo{ 
        height: 48px;
        width: auto;
}

.nav-link {
    font-weight:600;
    color:#405448;
}

.nav-link.active,.nav-link:hover {
    color:var(--green)!important;
}

.section-space {
    padding:76px 0;
}

.eyebrow {
    font-size:.75rem;
    font-weight:800;
    letter-spacing:.13em;
    color:#358653;
}

.section-heading {
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:1rem;
    margin-bottom:28px;
}

.section-heading h2 {
    font-size:clamp(1.8rem,3vw,2.5rem);
    font-weight:800;
    margin:.5rem 0;
}

.bg-soft {
    background:#f7faf6;
}

/* Style the homepage hero and its decorative produce illustration. */
.hero {
    background:linear-gradient(115deg,#eff8ed 0%,#f8f8e8 100%);
    padding:85px 0 95px;
    overflow:hidden;
}

.hero h1 {
    font-weight:850;
    font-size:clamp(2.6rem,5vw,4.7rem);
    line-height:1.1;
    margin:20px 0;
}

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

.hero .lead {
    color:#586d60;
    max-width:600px;
    line-height:1.75;
}

.hero-trust {
    color:#476b51;
    font-size:.87rem;
    font-weight:600;
    margin-top:32px;
}

.hero-image + .hero-art-label {
    position: static;
    display: inline-block;
    transform: none;
    margin-top: 18px;
}

.hero-art>span {
    font-size:5.5rem;
    filter:drop-shadow(0 10px 7px #0002);
}

.hero-art-label {
    position:absolute;
    bottom:10px;
    background:#fff;
    border-radius:20px;
    padding:10px 20px;
    color:var(--green);
    font-weight:700;
    box-shadow:0 5px 25px #0002;
    transform:rotate(3deg);
}



/* Style category links and reusable product listing cards. */
.category-card {
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:7px;
    text-decoration:none;
    color:var(--ink);
    border:1px solid #e3ebe3;
    border-radius:18px;
    padding:28px 15px;
    background:#fff;
}

.category-card:hover {
    transform:translateY(-4px);
    border-color:#a8cfb2;
    box-shadow:0 12px 28px #193c2710;
}

.category-card span {
    font-size:3.3rem;
}

.category-card strong {
    font-size:1.15rem;
}

.category-card small {
    color:var(--muted);
}

.product-card {
    background:#fff;
    border:1px solid #e6eee7;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 6px 25px #193c2709;
    transition:transform .2s,box-shadow .2s;
}

.product-card:hover {
    transform:translateY(-4px);
    box-shadow:0 15px 35px #193c2718;
}

.product-image {
    height:205px;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    text-decoration:none;
    background:linear-gradient(145deg,#edf4df,#d9e9cc);
}

.product-emoji {
    font-size:6rem;
    filter:drop-shadow(0 8px 6px #0002);
}

.category-pill {
    position:absolute;
    top:14px;
    left:14px;
    background:#fff;
    border-radius:30px;
    color:var(--green);
    font-weight:700;
    font-size:.75rem;
    padding:7px 12px;
}

.join-banner {
    background:var(--dark);
    color:#fff;
    border-radius:24px;
    padding:45px 50px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

.join-banner h2 {
    font-weight:800;
    max-width:520px;
}

.join-banner p {
    color:#d8e7dc;
}

.join-banner .eyebrow {
    color:#b5e4bd;
}

.join-icon {
    font-size:8rem;
}

.page-banner {
    background:linear-gradient(110deg,#eff8ed,#f8f8e8);
    padding:65px 0;
}

.page-banner h1 {
    font-size:clamp(2rem,4vw,3.3rem);
    font-weight:800;
    margin:10px 0;
}

.page-banner p {
    color:#587260;
    max-width:650px;
    font-size:1.1rem;
}

.filter-bar {
    background:#f7faf7;
    border:1px solid #e2eee4;
    padding:22px;
    border-radius:16px;
}

.empty-state {
    text-align:center;
    padding:70px 20px;
    background:#f7faf7;
    border-radius:20px;
}

.product-detail-art {
    height:460px;
    border-radius:25px;
    background:linear-gradient(140deg,#e5f1da,#b7dca8);
    display:flex;
    align-items:center;
    justify-content:center;
}

.product-detail-art span {
    font-size:11rem;
}

.detail-price {
    font-size:2rem;
    color:var(--green);
    font-weight:800;
}

.detail-price small {
    font-size:1rem;
    color:var(--muted);
}

.detail-facts p {
    margin-bottom:10px;
}

.about-art {
    min-height:260px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:4rem;
    background:var(--mint);
    border-radius:24px;
}

.info-card {
    padding:30px;
    background:#f7faf7;
    border:1px solid #e5eee5;
    border-radius:18px;
    height:100%;
}

.info-card h3 {
    font-size:1.2rem;
    font-weight:700;
}

.info-card p {
    color:var(--muted);
    margin:0;
}

/* Style login, registration, and dashboard preview screens. */
.auth-section {
    padding:70px 0;
    background:linear-gradient(130deg,#f0f7ed,#fffaf0);
    min-height:70vh;
}

.auth-card {
    background:#fff;
    border:1px solid #e1eae0;
    border-radius:22px;
    padding:38px;
    max-width:480px;
    margin:auto;
    box-shadow:0 16px 45px #153c2b0d;
}

.auth-card-wide {
    max-width:650px;
}

.auth-icon {
    font-size:2.5rem;
}

.form-control,.form-select {
    border-radius:9px;
    padding:.75rem;
}

.form-control:focus,.form-select:focus {
    border-color:#83b695;
    box-shadow:0 0 0 .2rem #216b4322;
}

.stat-card {
    background:#f7faf7;
    border:1px solid #e4eee4;
    border-radius:16px;
    padding:25px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.stat-card span {
    color:var(--muted);
    font-weight:600;
}

.stat-card strong {
    font-size:2.2rem;
    color:var(--green);
}

.stat-card small {
    color:var(--muted);
}

/* Style the shared footer and adapt layouts for smaller screens. */
.site-footer {
    background:#173c2c;
    color:#edf7ef;
}

.site-footer a {
    display:block;
    color:#c6e2ce;
    text-decoration:none;
    margin:9px 0;
}

.site-footer a:hover {
    color:#fff;
}

.site-footer p,.site-footer small {
    color:#c6e2ce;
}

.site-footer hr {
    border-color:#ffffff44;
}

@media(max-width:991px) {
    .nav-actions {
        padding:14px 0;
    }
    .hero-art {
        height:300px;
    }
    .hero-art>span {
        font-size:4.5rem;
    }
}

@media(max-width:767px) {
    .section-space {
        padding:50px 0;
    }
    .hero {
        padding:60px 0;
    }
    .hero-art {
        height:260px;
    }
    .hero-art>span {
        font-size:3.7rem;
    }
    .section-heading {
        align-items:start;
        flex-direction:column;
    }
    .join-banner {
        padding:30px;
    }
    .join-icon {
        display:none;
    }
    .product-detail-art {
        height:290px;
    }
    .product-detail-art span {
        font-size:7rem;
    }
    .auth-card {
        padding:25px;
    }
}