:root {
    --green: #173d24;
    --green2: #2f6b2f;
    --lime: #79b63a;
    --cream: #f5f4ea;
    --ink: #173323;
    --muted: #607064;
    --line: #dce3d8;
    --white: #fff;
    --shadow: 0 18px 50px rgba(20, 55, 30, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: Manrope, Inter, Arial, sans-serif;
    line-height: 1.12;
    margin: 0 0 16px;
}

h1 {
    font-size: clamp(2.6rem, 5vw, 5rem);
    letter-spacing: -0.055em;
}

h2 {
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    letter-spacing: -0.04em;
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 16px;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

/* =========================
   HEADER / NAVIGATION
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(20, 55, 30, 0.08);
}

.nav-wrap {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand img {
    width: 225px;
    height: auto;
    display: block;
}

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

.nav a {
    color: #142a1d;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    color: var(--green2);
}

.nav a.active {
    position: relative;
}

.nav a.active:after {
    content: "";
    position: absolute;
    height: 2px;
    left: 0;
    right: 0;
    bottom: -10px;
    background: var(--green2);
}

.nav-cta {
    background: var(--green);
    color: #fff !important;
    padding: 13px 20px;
    border-radius: 10px;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    width: 42px;
    height: 42px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--green);
    margin: 7px 4px;
}

/* =========================
   HERO
   ========================= */

.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: url("assets/hero-farm.png");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(247, 247, 239, 0.98) 0%,
        rgba(247, 247, 239, 0.9) 28%,
        rgba(247, 247, 239, 0.25) 54%,
        rgba(0, 0, 0, 0.02) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-copy {
    width: min(610px, 100%);
    padding: 80px 0;
}

.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    font-weight: 800;
    color: var(--green2);
    margin-bottom: 15px;
}

.hero .lead {
    font-size: 1.08rem;
    max-width: 590px;
    color: #385040;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--green);
    color: #fff;
}

.btn-primary:hover {
    background: #24572f;
}

.btn-light {
    background: #fff;
    color: var(--green);
    border-color: var(--green);
}

.btn span {
    font-size: 1.1em;
}

/* =========================
   SOLUTION STRIP
   ========================= */

.solution-strip {
    position: relative;
    margin-top: -58px;
    z-index: 4;
}

.strip-grid {
    background: var(--green);
    border-radius: 18px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    box-shadow: var(--shadow);
}

.strip-card {
    color: #fff;
    display: flex;
    gap: 14px;
    padding: 10px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.strip-card:last-child {
    border-right: 0;
}

.strip-card .icon {
    width: 54px;
    height: 54px;
    flex: none;
    border-radius: 50%;
    background: #f5f6ed;
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.strip-card h3 {
    font-size: 1rem;
    margin: 2px 0 6px;
}

.strip-card p {
    font-size: 0.75rem;
    line-height: 1.45;
    color: #e7efe6;
    margin: 0;
}

/* =========================
   GENERAL SECTIONS
   ========================= */

.section {
    padding: 105px 0;
}

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

.about p {
    max-width: 700px;
    color: var(--muted);
}

.about-card {
    background: var(--cream);
    padding: 45px;
    border-radius: 22px;
    border: 1px solid #e4e6d9;
}

.leaf-mark {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-card p {
    color: #526154;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 35px;
}

.mini-stats div {
    border-top: 2px solid var(--green2);
    padding-top: 12px;
}

.mini-stats strong {
    display: block;
    font-size: 1.35rem;
}

.mini-stats span {
    font-size: 0.8rem;
    color: var(--muted);
}

/* =========================
   CIRCULAR ECONOMY
   ========================= */

.circular {
    background: var(--cream);
}

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

.section-heading.centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

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

.flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.flow-item {
    text-align: center;
    min-width: 125px;
}

.flow-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    border: 1px solid #b6c6b0;
    background: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    box-shadow: 0 8px 22px rgba(30, 65, 40, 0.08);
}

.flow-item strong,
.flow-item span {
    display: block;
    font-size: 0.9rem;
}

.flow-item span {
    color: var(--muted);
    font-size: 0.8rem;
}

.arrow {
    font-size: 2rem;
    color: var(--green2);
}

/* =========================
   IMPACT
   ========================= */

.impact {
    background: #eef1df;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: #cbd4bd;
    border-radius: 18px;
    overflow: hidden;
}

.impact-card {
    background: #f4f5e9;
    padding: 28px 20px;
    text-align: center;
}

.impact-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #dce5c7;
    font-size: 1.4rem;
}

.impact-card strong {
    display: block;
    font-size: 2rem;
}

.impact-card small {
    display: block;
    color: #536151;
    margin-top: 4px;
}

/* =========================
   FEATURE CARDS
   ========================= */

.cards-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.feature-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 30px rgba(20, 55, 30, 0.06);
}

.feature-image {
    height: 170px;
    background-size: cover;
    background-position: center;
}

.feature-image.waste {
    background: linear-gradient(135deg, #79984e, #2e572d);
}

.feature-image.biogas {
    background: linear-gradient(135deg, #375c3d, #8eaa67);
}

.feature-image.poultry {
    background: linear-gradient(135deg, #b7a06d, #4d633c);
}

.feature-image.fertilizer {
    background: linear-gradient(135deg, #577f44, #b6c87a);
}

.feature-card > div:last-child {
    padding: 24px;
}

.number {
    font-size: 0.75rem;
    color: var(--lime);
    font-weight: 800;
    letter-spacing: 0.12em;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--muted);
}

/* =========================
   PROJECTS
   ========================= */

.projects {
    background: #fff;
}

.project-layout {
    grid-template-columns: 1fr 1fr;
}

.project-image {
    min-height: 480px;
    border-radius: 24px;
    background-image:
        linear-gradient(
            180deg,
            rgba(23, 61, 36, 0.02),
            rgba(23, 61, 36, 0.18)
        ),
        url("assets/hero-farm.png");
    background-size: cover;
    background-position: 65% center;
    position: relative;
}

.project-badge {
    position: absolute;
    left: 22px;
    top: 22px;
    background: #fff;
    padding: 9px 13px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.72rem;
    color: var(--green);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.check-list li {
    padding: 9px 0 9px 28px;
    position: relative;
    color: #4e5f52;
}

.check-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green2);
    font-weight: 800;
}

.text-link {
    color: var(--green2);
    font-weight: 800;
    text-decoration: none;
}

/* =========================
   PARTNERSHIPS
   ========================= */

.partnerships {
    padding-top: 70px;
}

.partnership-panel {
    background: var(--green);
    color: #fff;
    border-radius: 24px;
    padding: 55px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.partnership-panel .eyebrow {
    color: #9bc967;
}

.partnership-panel p {
    color: #d8e5d9;
}

.partner-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.partner-list span {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.85rem;
}

.partnership-panel .btn {
    grid-column: 2;
    justify-self: start;
    background: #fff;
    color: var(--green);
}

/* =========================
   NEWS
   ========================= */

.news {
    background: #f8f8f3;
}

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

.news-grid article {
    padding: 30px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
}

.tag {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: var(--lime);
}

.news-grid p {
    color: var(--muted);
}

/* =========================
   CONTACT
   ========================= */

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
}

.contact-details {
    margin-top: 28px;
}

.contact-details a {
    color: var(--green2);
}

.contact-form {
    background: var(--cream);
    padding: 35px;
    border-radius: 20px;
    display: grid;
    gap: 17px;
}

.contact-form label {
    font-size: 0.83rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #cdd6c8;
    border-radius: 9px;
    padding: 12px 13px;
    font: inherit;
    background: #fff;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green2);
    box-shadow: 0 0 0 3px rgba(47, 107, 47, 0.1);
}

.form-note {
    font-size: 0.72rem !important;
    color: #687368 !important;
}

/* =========================
   FOOTER
   ========================= */

.footer {
    background: #102f1b;
    color: #e8f0e7;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    width: 220px;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.footer p {
    color: #b9cabb;
    font-size: 0.88rem;
}

.footer h4 {
    font-size: 1rem;
}

.footer a {
    display: block;
    color: #dce7dc;
    text-decoration: none;
    font-size: 0.86rem;
    margin: 8px 0;
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #6fae37;
    color: #fff;
    font-weight: 800;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 40px;
    padding-top: 18px;
    color: #9db19e;
    font-size: 0.75rem;
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 1050px) {
    .nav {
        gap: 14px;
    }

    .nav a {
        font-size: 0.82rem;
    }

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

    .strip-card:nth-child(2) {
        border-right: 0;
    }

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

    .impact-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .flow {
        flex-wrap: wrap;
        justify-content: center;
    }

    .arrow {
        display: none;
    }
}

/* =========================
   MOBILE / TABLET
   ========================= */

@media (max-width: 800px) {
    .nav {
        display: none;
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 18px 5%;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: flex-start;
    }

    .nav.open {
        display: flex;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 650px;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(247, 247, 239, 0.98) 0%,
            rgba(247, 247, 239, 0.88) 60%,
            rgba(247, 247, 239, 0.25) 100%
        );
    }

    .hero-copy {
        padding: 65px 0;
    }

    .two-col,
    .contact-grid,
    .project-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .partnership-panel {
        grid-template-columns: 1fr;
        padding: 35px;
    }

    .partnership-panel .btn {
        grid-column: 1;
    }

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

/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 560px) {
    .nav-wrap {
        height: 72px;
    }

    .brand img {
        width: 185px;
    }

    .nav {
        top: 72px;
    }

    .hero {
        min-height: 620px;
    }

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

    .strip-grid {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .strip-card {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 15px 8px;
    }

    .strip-card:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 75px 0;
    }

    .mini-stats,
    .cards-4,
    .news-grid,
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .flow-item {
        min-width: 105px;
    }

    .project-image {
        min-height: 340px;
    }

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

    .footer-logo {
        width: 190px;
    }
}

:root {
    --green: #173d24;
    --green2: #2f6b2f;
    --lime: #79b63a;
    --cream: #f5f4ea;
    --ink: #173323;
    --muted: #607064;
    --line: #dce3d8;
    --white: #fff;
    --shadow: 0 18px 50px rgba(20, 55, 30, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: Manrope, Inter, Arial, sans-serif;
    line-height: 1.12;
    margin: 0 0 16px;
}

h1 {
    font-size: clamp(2.6rem, 5vw, 5rem);
    letter-spacing: -0.055em;
}

h2 {
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    letter-spacing: -0.04em;
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 16px;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

/* =========================
   HEADER / NAVIGATION
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(20, 55, 30, 0.08);
}

.nav-wrap {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand img {
    width: 225px;
    height: auto;
    display: block;
}

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

.nav a {
    color: #142a1d;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    color: var(--green2);
}

.nav a.active {
    position: relative;
}

.nav a.active:after {
    content: "";
    position: absolute;
    height: 2px;
    left: 0;
    right: 0;
    bottom: -10px;
    background: var(--green2);
}

.nav-cta {
    background: var(--green);
    color: #fff !important;
    padding: 13px 20px;
    border-radius: 10px;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    width: 42px;
    height: 42px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--green);
    margin: 7px 4px;
}

/* =========================
   HERO
   ========================= */

.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: url("assets/hero-farm.png");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(247, 247, 239, 0.98) 0%,
        rgba(247, 247, 239, 0.9) 28%,
        rgba(247, 247, 239, 0.25) 54%,
        rgba(0, 0, 0, 0.02) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-copy {
    width: min(610px, 100%);
    padding: 80px 0;
}

.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    font-weight: 800;
    color: var(--green2);
    margin-bottom: 15px;
}

.hero .lead {
    font-size: 1.08rem;
    max-width: 590px;
    color: #385040;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--green);
    color: #fff;
}

.btn-primary:hover {
    background: #24572f;
}

.btn-light {
    background: #fff;
    color: var(--green);
    border-color: var(--green);
}

.btn span {
    font-size: 1.1em;
}

/* =========================
   SOLUTION STRIP
   ========================= */

.solution-strip {
    position: relative;
    margin-top: 0;
    z-index: 4;
    padding: 20px 0;
}

.strip-grid {
    background: var(--green);
    border-radius: 18px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    box-shadow: var(--shadow);
}

.strip-card {
    color: #fff;
    display: flex;
    gap: 14px;
    padding: 10px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.strip-card:last-child {
    border-right: 0;
}

.strip-card .icon {
    width: 54px;
    height: 54px;
    flex: none;
    border-radius: 50%;
    background: #f5f6ed;
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.strip-card h3 {
    font-size: 1rem;
    margin: 2px 0 6px;
}

.strip-card p {
    font-size: 0.75rem;
    line-height: 1.45;
    color: #e7efe6;
    margin: 0;
}

/* =========================
   GENERAL SECTIONS
   ========================= */

.section {
    padding: 105px 0;
}

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

.about p {
    max-width: 700px;
    color: var(--muted);
}

.about-card {
    background: var(--cream);
    padding: 45px;
    border-radius: 22px;
    border: 1px solid #e4e6d9;
}

.leaf-mark {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-card p {
    color: #526154;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 35px;
}

.mini-stats div {
    border-top: 2px solid var(--green2);
    padding-top: 12px;
}

.mini-stats strong {
    display: block;
    font-size: 1.35rem;
}

.mini-stats span {
    font-size: 0.8rem;
    color: var(--muted);
}

/* =========================
   CIRCULAR ECONOMY
   ========================= */

.circular {
    background: var(--cream);
}

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

.section-heading.centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

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

.flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.flow-item {
    text-align: center;
    min-width: 125px;
}

.flow-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    border: 1px solid #b6c6b0;
    background: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    box-shadow: 0 8px 22px rgba(30, 65, 40, 0.08);
}

.flow-item strong,
.flow-item span {
    display: block;
    font-size: 0.9rem;
}

.flow-item span {
    color: var(--muted);
    font-size: 0.8rem;
}

.arrow {
    font-size: 2rem;
    color: var(--green2);
}

/* =========================
   IMPACT
   ========================= */

.impact {
    background: #eef1df;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: #cbd4bd;
    border-radius: 18px;
    overflow: hidden;
}

.impact-card {
    background: #f4f5e9;
    padding: 28px 20px;
    text-align: center;
}

.impact-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #dce5c7;
    font-size: 1.4rem;
}

.impact-card strong {
    display: block;
    font-size: 2rem;
}

.impact-card small {
    display: block;
    color: #536151;
    margin-top: 4px;
}

/* =========================
   FEATURE CARDS
   ========================= */

.cards-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.feature-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 30px rgba(20, 55, 30, 0.06);
}

.feature-image {
    height: 170px;
    background-size: cover;
    background-position: center;
}

.feature-image.waste {
    background: linear-gradient(135deg, #79984e, #2e572d);
}

.feature-image.biogas {
    background: linear-gradient(135deg, #375c3d, #8eaa67);
}

.feature-image.poultry {
    background: linear-gradient(135deg, #b7a06d, #4d633c);
}

.feature-image.fertilizer {
    background: linear-gradient(135deg, #577f44, #b6c87a);
}

.feature-card > div:last-child {
    padding: 24px;
}

.number {
    font-size: 0.75rem;
    color: var(--lime);
    font-weight: 800;
    letter-spacing: 0.12em;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--muted);
}

/* =========================
   PROJECTS
   ========================= */

.projects {
    background: #fff;
}

.project-layout {
    grid-template-columns: 1fr 1fr;
}

.project-image {
    min-height: 480px;
    border-radius: 24px;
    background-image:
        linear-gradient(
            180deg,
            rgba(23, 61, 36, 0.02),
            rgba(23, 61, 36, 0.18)
        ),
        url("assets/hero-farm.png");
    background-size: cover;
    background-position: 65% center;
    position: relative;
}

.project-badge {
    position: absolute;
    left: 22px;
    top: 22px;
    background: #fff;
    padding: 9px 13px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.72rem;
    color: var(--green);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.check-list li {
    padding: 9px 0 9px 28px;
    position: relative;
    color: #4e5f52;
}

.check-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green2);
    font-weight: 800;
}

.text-link {
    color: var(--green2);
    font-weight: 800;
    text-decoration: none;
}

/* =========================
   PARTNERSHIPS
   ========================= */

.partnerships {
    padding-top: 70px;
}

.partnership-panel {
    background: var(--green);
    color: #fff;
    border-radius: 24px;
    padding: 55px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.partnership-panel .eyebrow {
    color: #9bc967;
}

.partnership-panel p {
    color: #d8e5d9;
}

.partner-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.partner-list span {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.85rem;
}

.partnership-panel .btn {
    grid-column: 2;
    justify-self: start;
    background: #fff;
    color: var(--green);
}

/* =========================
   NEWS
   ========================= */

.news {
    background: #f8f8f3;
}

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

.news-grid article {
    padding: 30px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
}

.tag {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: var(--lime);
}

.news-grid p {
    color: var(--muted);
}

/* =========================
   CONTACT
   ========================= */

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
}

.contact-details {
    margin-top: 28px;
}

.contact-details a {
    color: var(--green2);
}

.contact-form {
    background: var(--cream);
    padding: 35px;
    border-radius: 20px;
    display: grid;
    gap: 17px;
}

.contact-form label {
    font-size: 0.83rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #cdd6c8;
    border-radius: 9px;
    padding: 12px 13px;
    font: inherit;
    background: #fff;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green2);
    box-shadow: 0 0 0 3px rgba(47, 107, 47, 0.1);
}

.form-note {
    font-size: 0.72rem !important;
    color: #687368 !important;
}

/* =========================
   FOOTER
   ========================= */

.footer {
    background: #102f1b;
    color: #e8f0e7;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    width: 220px;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.footer p {
    color: #b9cabb;
    font-size: 0.88rem;
}

.footer h4 {
    font-size: 1rem;
}

.footer a {
    display: block;
    color: #dce7dc;
    text-decoration: none;
    font-size: 0.86rem;
    margin: 8px 0;
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #6fae37;
    color: #fff;
    font-weight: 800;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 40px;
    padding-top: 18px;
    color: #9db19e;
    font-size: 0.75rem;
}

/* =========================================
   KYNETIX BIO FARMS — ALIGNED HEADER
   ========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

/* Align logo, navigation and CTA vertically */
.site-header .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 100px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Logo alignment and sizing */
.site-header .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 145px;
  width: 145px;
  max-width: 145px;
  padding: 0;
  margin: 0;
  line-height: 0;
  background: transparent;
  text-decoration: none;
}

.site-header .brand img {
  display: block;
  width: 100%;
  height: 78px;
  max-height: 78px;
  object-fit: contain;
  object-position: center;
}

/* Navigation alignment */
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.site-header .nav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.4;
}

/* Keep the partnership button aligned with the links */
.site-header .nav .nav-cta {
  flex: 0 0 auto;
  align-self: center;
}

/* Sticky-header anchor offset */
html {
  scroll-padding-top: 110px;
}

section[id] {
  scroll-margin-top: 110px;
}

/* ==========================================
   RESPONSIVE MOBILE BREAKPOINT (Add at bottom)
   ========================================== */

@media screen and (max-width: 991px) {
    /* 1. Unhide and correctly align your hamburger toggle button */
    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 101; /* Layer over the dropdown layout */
    }

    /* 2. Scale down the large logo branding space so header elements fit clean */
    .brand img {
        width: 160px; 
    }

    /* 3. Convert desktop navigation horizontal bars to hidden vertical mobile blocks */
    #primary-navigation.nav {
        display: none; 
        position: absolute;
        top: 82px;    /* Drop clean directly under your header's height boundary */
        left: 0;
        width: 100%;
        max-height: calc(100vh - 82px);
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column; 
        align-items: center;
        padding: 30px 20px;
        gap: 15px;
        box-shadow: 0 15px 30px rgba(20, 55, 30, 0.1);
        border-bottom: 1px solid var(--line);
    }

    /* 4. Let the standard link buttons fill out naturally */
    #primary-navigation.nav a {
        font-size: 1.05rem;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        margin: 0;
    }

    /* Remove absolute active desktop line decoration */
    #primary-navigation.nav a.active:after {
        display: none;
    }

    /* 5. Force CTA "Partner With Us" button to render centered inside mobile container */
    #primary-navigation.nav .nav-cta {
        display: inline-block;
        width: 80%;
        margin-top: 10px;
    }

    /* 6. Triggers flex display layout when JS injects the .open class state */
    #primary-navigation.nav.open {
        display: flex;
    }

    /* 7. Structural responsiveness fallback adjustments for section grids below header */
    .strip-grid, 
    .two-col, 
    .flow, 
    .impact-grid, 
    .cards-4 {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    .strip-card {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 15px;
    }
    
    .strip-card:last-child {
        border-bottom: 0;
    }
    
    .arrow {
        transform: rotate(90deg); /* Switch flow arrows downward */
        margin: 5px 0;
    }
}


/* ================================================
   MOBILE HORIZONTAL OVERFLOW FIX
   Kynetix Bio Farms
   Append at the end of styles.css
   ================================================ */

/* Keep the page within the device viewport */
html {
    max-width: 100%;
    overflow-x: clip;
}

body {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: clip;
}

/* Allow grid and flex children to shrink */
.container,
.nav-wrap,
.hero-content,
.hero-copy,
.two-col,
.strip-grid,
.strip-card,
.impact-grid,
.impact-card,
.cards-4,
.feature-card,
.project-layout,
.partnership-panel,
.partner-list,
.news-grid,
.contact-grid,
.contact-form,
.footer-grid {
    min-width: 0;
}

/* Keep media within its parent */
img,
video,
iframe {
    max-width: 100%;
}

/* Prevent grid columns from forcing horizontal overflow */
@media (max-width: 800px) {

    .container {
        width: 92%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .two-col,
    .project-layout,
    .contact-grid,
    .partnership-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .strip-grid,
    .impact-grid,
    .cards-4,
    .news-grid,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Keep text and cards inside their columns */
    .two-col > *,
    .strip-grid > *,
    .impact-grid > *,
    .cards-4 > *,
    .news-grid > *,
    .contact-grid > *,
    .footer-grid > * {
        min-width: 0;
        max-width: 100%;
    }

    /* Let long headings wrap naturally */
    .hero h1,
    .section h2,
    .partnership-panel h2 {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    /* Keep buttons and form controls within the viewport */
    .btn,
    .contact-form,
    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        max-width: 100%;
        min-width: 0;
    }

    .contact-form input,
    .contact-form textarea {
        box-sizing: border-box;
    }

    /* Let the circular economy items wrap on narrow screens */
    .flow {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        min-width: 0;
    }

    .flow-item {
        min-width: 0;
        max-width: 100%;
        flex: 0 1 125px;
    }

    /* Preserve the dropdown and its shadow */
    .site-header {
        overflow: visible;
    }

    .site-header .nav-wrap {
        min-width: 0;
        max-width: 100%;
    }

    .site-header .nav.open {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Additional protection for small phones */
@media (max-width: 380px) {

    .container {
        width: calc(100% - 28px);
    }

    .hero h1 {
        font-size: clamp(1.8rem, 7.5vw, 2.2rem);
    }

    .about-card,
    .partnership-panel,
    .contact-form,
    .news-grid article {
        padding-left: 20px;
        padding-right: 20px;
    }

    .flow-item {
        flex-basis: 110px;
    }
}

/* =========================================
   MOBILE PARTNERSHIPS LAYOUT FIX
   Add at the end of styles.css
========================================= */

@media (max-width: 768px) {
  .partnerships {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
  }

  .partnerships .container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-left: 18px;
    padding-right: 18px;
  }

  .partnership-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 24px 20px;
  }

  .partnership-panel > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .partnership-panel h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.2;
  }

  .partnership-panel p {
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.7;
  }

  .partner-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .partner-list span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 8px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
  }

  .partnership-panel > .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    padding: 14px 16px;
  }
}

@media (max-width: 380px) {
  .partnerships .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .partnership-panel {
    padding: 20px 14px;
    gap: 20px;
  }

  .partner-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================
   HERO TEXT READABILITY FIX
   Improves contrast over the background image
   ========================================= */

.hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(245, 244, 234, 0.99) 0%,
        rgba(245, 244, 234, 0.94) 42%,
        rgba(245, 244, 234, 0.72) 68%,
        rgba(245, 244, 234, 0.22) 100%
    );
}

.hero h1 {
    color: #173323;
}

.hero .lead {
    color: #263f31;
}

.hero .eyebrow {
    color: #24552f;
}


/* Improve mobile hero text readability */
@media (max-width: 767px) {
    .hero-overlay {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 2;
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(255, 255, 255, 0.90) 55%,
            rgba(255, 255, 255, 0.72) 100%
        );
        pointer-events: none;
    }

    .hero-content {
        position: relative;
        z-index: 3;
    }

    .hero .lead {
        color: #173323;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
    }
}
