:root {
    --primary-color: #B2C248;
    --secondary-color: #1b3d08;
    --tertairy-color: #edffd5;
    --nav-height: 52px;
    --accent-soft: #f6ffe0;
    --accent-dark: #273f1a;
    --card-shadow: 0 12px 30px rgba(18, 46, 9, 0.14);
    --card-shadow-hover: 0 18px 36px rgba(18, 46, 9, 0.2);
    --paragraph-size: clamp(1rem, 1.5vw, 1.08rem);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Source Sans 3", sans-serif;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Lora", serif;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.text-secondary {
    color: var(--secondary-color);
}

p,
p.text-large {
    font-size: var(--paragraph-size);
    line-height: 1.6;
}

.nav {
    background-color: var(--primary-color);
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 80px;
    font-size: x-large;
    width: full;
}

.nav a {
    text-decoration: none;
    color: var(--secondary-color);
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    background-image: linear-gradient(rgba(19, 45, 9, 0.55), rgba(19, 45, 9, 0.35)), url('/resources/images/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-header {
    font-family: "Lora", serif;
    font-size: 84px;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}


.hero-content {
    max-width: 400px;
    z-index: 1;
}

.hero .img {
    width: 800px;
    object-fit: cover;
}

.hero .text-secondary {
    color: #f7ffe9;
}

.hero-image {
    display: none;
}

.our-story {
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    padding: 50px;
    gap: 50px;
}

.our-story .img {
    width: 400px;
    height: auto;
    border-radius: 4px;
}

.story-content {
    max-width: 400px;
}

.shambabook {
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    padding: 50px;
    gap: 50px;
}

.shambabook .img {
    width: 400px;
    height: auto;
    border-radius: 4px;
}

.text-large {
    font-size: x-large;
}

.img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.text-white {
    color: white;
}

.farm {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    padding: 50px;
    gap: 50px;
}

.farm-image-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.farm .row {
    justify-content: center;
}

.farm-content {
    max-width: 500px;
}

.farm-content h2,
.farm-content p {
    margin-left: 0;
    margin-right: 0;
}

.farm-image {
    width: 300px;
    height: auto;
    border-radius: 4px;
}

.farm-image-large {
    width: 620px;
    height: 190px;
    border-radius: 4px;
    object-fit: cover;
}

.products {
    background-color: var(--tertairy-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 50px;
    gap: 50px;
}

.products-head {
    width: min(1100px, 100%);
    text-align: center;
}

.products-flow {
    width: min(980px, 100%);
    display: grid;
    gap: 26px;
}

.products-step {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    align-items: center;
    gap: 22px;
    padding: 0;
}

.products-step + .products-step {
    padding-top: 34px;
    border-top: 1px solid rgba(39, 63, 26, 0.22);
}

.products-step-reverse {
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
}

.products-media {
    margin: 0;
}

.products-media img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 14px;
}

.products-copy h2 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.products-copy {
    padding-inline: 6px;
}

.products-copy p,
.products-copy li {
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.08rem);
    line-height: 1.6;
}

.products-copy ul {
    margin: 0;
    padding-left: 1.1rem;
}

.products-copy li + li {
    margin-top: 8px;
}

.products-reveal-item {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
}

.team {
    background-color: var(--tertairy-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 50px;
    gap: 50px;
}

.team-grid {
    width: min(1200px, 100%);
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 22px;
}

.team-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 255, 224, 0.82) 100%);
    border: 1px solid rgba(39, 63, 26, 0.12);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(20, 43, 10, 0.1);
}

.team-name {
    margin: 4px 0 0;
    font-size: 1.15rem;
}

p.team-role {
    margin: 0;
    font-size: 0.86rem;
    opacity: 0.9;
}

.team-image {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    object-fit: cover;
}

.team-read-more {
    margin-top: auto;
    border: 1px solid rgba(39, 63, 26, 0.24);
    border-radius: 999px;
    background: transparent;
    color: #173207;
    font-weight: 700;
    padding: 8px 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.team-read-more:hover {
    background-color: #1b3d08;
    color: #efffd7;
    transform: translateY(-1px);
}

.team-modal {
    position: fixed;
    inset: 0;
    background: rgba(9, 23, 8, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.team-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.team-modal-panel {
    width: min(680px, 100%);
    background: #f7ffea;
    border: 1px solid rgba(39, 63, 26, 0.22);
    border-radius: 18px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 40px rgba(13, 31, 6, 0.2);
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.team-modal.is-open .team-modal-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.team-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(39, 63, 26, 0.22);
    border-radius: 999px;
    background: white;
    font-size: 1.2rem;
    cursor: pointer;
}

#teamModalName {
    margin: 0 28px 6px 0;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

#teamModalRole {
    margin: 0 0 14px;
}

#teamModalBio {
    margin: 0;
    line-height: 1.65;
}

.partners {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 50px;
    gap: 50px;
}

.partners-image {
    width: 350px;
    height: 250px;
    border-radius: 4px;
    object-fit: cover;
}

.contact {
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 50px;
    gap: 50px;
}

.contact-image {
    width: 400px;
    height: auto;
    border-radius: 4px;
}

.row {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

@media (max-width: 1023px) {
    body {
        font-size: 16px;
        overflow-x: hidden;
    }

    .hero {
        height: auto;
        min-height: 70vh;
        padding: 40px 20px;
        background-position: center;
    }

    .hero-header {
        font-size: clamp(40px, 9vw, 72px);
        margin-bottom: 12px;
        text-align: center;
    }

    .hero-content {
        max-width: 90%;
        text-align: center;
    }

    .hero .img,
    .our-story .img,
    .shambabook .img,
    .farm-image,
    .farm-image-large,
    .team-image,
    .partners-image,
    .contact-image {
        width: 100%;
        max-width: 100%;
    }

    .farm-image-large {
        height: auto;
        min-height: 200px;
    }

    .our-story,
    .shambabook,
    .farm {
        flex-direction: column;
        padding: 36px 20px;
        gap: 24px;
    }

    .farm-content {
        max-width: 100%;
    }

    .story-content {
        max-width: 100%;
    }

    .products,
    .team,
    .partners,
    .contact {
        padding: 36px 20px;
        gap: 24px;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .products-step,
    .products-step-reverse {
        grid-template-columns: 1fr;
    }

    .row {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .nav {
        width: 100%;
        gap: 14px;
        padding: 10px 12px;
        font-size: 1rem;
        flex-wrap: wrap;
    }

    .nav a {
        padding: 6px 8px;
    }

    .text-large {
        font-size: 1.1rem;
    }

    .row {
        flex-direction: column;
        gap: 16px;
    }

    .products-step {
        padding: 0;
        gap: 14px;
    }

    .team-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px;
    }

    .team-card {
        grid-column: span 2;
        padding: 10px;
        border-radius: 12px;
        gap: 8px;
    }

    .team-card:last-child:nth-child(3n + 1) {
        grid-column: 3 / span 2;
    }

    .team-card:nth-last-child(2):nth-child(3n + 1) {
        grid-column: 2 / span 2;
    }

    .team-card:last-child:nth-child(3n + 2) {
        grid-column: 4 / span 2;
    }

    .team-image {
        height: 110px;
        border-radius: 10px;
    }

    .team-name {
        font-size: 0.82rem;
        line-height: 1.25;
    }

    p.team-role {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .team-read-more {
        padding: 5px 9px;
        font-size: 0.72rem;
    }

    .products-step + .products-step {
        padding-top: 22px;
    }
}

@media (max-width: 479px) {
    body {
        font-size: 15px;
    }

    .hero {
        padding: 28px 14px;
    }

    .hero-header {
        font-size: clamp(32px, 10vw, 44px);
    }

    .our-story,
    .shambabook,
    .farm,
    .products,
    .team,
    .partners,
    .contact {
        padding: 28px 14px;
        gap: 18px;
    }
}

body {
    color: #213016;
    background: linear-gradient(180deg, #fbffef 0%, #f3fad6 100%);
    padding-top: 0;
}

section {
    position: relative;
    overflow: hidden;
}

section>* {
    position: relative;
    z-index: 1;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
    min-height: var(--nav-height);
    padding: 6px 12px;
    z-index: 20;
    backdrop-filter: none;
    background: transparent;
    border-bottom: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.nav-solid {
    backdrop-filter: blur(12px);
    background: linear-gradient(90deg, rgba(178, 194, 72, 0.38) 0%, rgba(219, 236, 125, 0.3) 100%);
    border-bottom: 1px solid rgba(39, 63, 26, 0.08);
}

.nav a {
    position: relative;
    font-weight: 600;
    padding: 2px 3px;
    color: #163205;
    letter-spacing: 0.01em;
    transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

.nav.nav-on-hero a {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 0.35);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
}

.nav.nav-on-hero a::after {
    background: #ffffff;
}

.nav a:hover {
    transform: translateY(-2px);
    color: #0f2505;
}

.nav.nav-on-hero a:hover {
    color: #f6ffde;
}

.nav a:hover::after {
    transform: scaleX(1);
}

.nav a.is-active::after {
    transform: scaleX(1);
}

.nav.nav-on-hero a.is-active::after,
.nav:not(.nav-solid) a.is-active::after {
    background: #ffffff;
}

.nav.nav-solid a.is-active::after {
    background: var(--secondary-color);
}

.our-story,
.shambabook,
.farm,
.products,
.team,
.partners,
.contact {
    animation: sectionFade 0.8s ease both;
}

.img,
.team-image,
.partners-image,
.farm-image,
.farm-image-large,
.contact-image {
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.img:hover,
.team-image:hover,
.partners-image:hover,
.farm-image:hover,
.farm-image-large:hover,
.contact-image:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--card-shao-hover);
}

.team.ow>div,
.products .row>div {
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(39, 63, 26, 0.08);
    border-radius: 16px;
    padding: 18px;
    backdrop-filter: blur(2px);
}

.products h3,
.team h3,
.partners h2,
.contact h2 {
    letter-spacing: 0.01em;
}

.contact a {
    color: #d7ff9f;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(215, 255, 159, 0.5);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact a:hover {
    color: #f4ffd8;
    border-color: #f4ffd8;
}

.partners .row {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.partners-image {
    width: min(100%, 260px);
    height: 160px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
}

.row>* {
    animation: riseU .8s ease both;

}

.row>*:nth-child() {
    animation-delay: 0.05s;
}

.row>*:nth-child() {
    animation-delay: 0.13s;
}

.row>*:nth-child() {
    animation-delay: 0.21s;
}

.row>*:nth-child() {
    animation-delay: 0.29s;
}

@keyframes sectionFade {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes riseUp {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width:1023px) {

    .team .ro div,
    .products .row>div {
        padding: 14px;
    }

    .nav {
        gap: 12px;
    }

}

@media (max-width: 767px) {
    .nav {
        justify-content: center;
        gap: 8px;
        padding: 5px 10px;
    }

    .nav a {
        padding: 4px 6px;
        font-size: 0.95rem;
    }

    .team .ro div,
    .products .row>div {
        width: 100%;
    }

    .partners-image {
        width: min(100%, 220px);
        height: 140px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.contact {
    background: radial-gradient(circle at 10% 15%, rgba(42, 84, 20, 0.55) 0%, rgba(27, 61, 8, 1) 48%, rgba(17, 38, 6, 1) 100%);
    padding: clamp(24px, 4vw, 44px) clamp(14px, 2.2vw, 30px);
}

.contact-shell {
    width: min(980px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 0.86fr) minmax(280px, 0.96fr);
    gap: clamp(14px, 2vw, 26px);
    align-items: stretch;
}

.contact-visual,
.contact-content {
    border-radius: 18px;
    border: 1px solid rgba(214, 255, 164, 0.2);
    box-shadow: 0 18px 34px rgba(9, 24, 3, 0.22);
}

.contact-visual {
    overflow: hidden;
    background: rgba(15, 35, 8, 0.35);
}

.contact-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: 0;
}

.contact-content {
    background: linear-gradient(180deg, rgba(26, 66, 12, 0.62) 0%, rgba(18, 46, 8, 0.7) 100%);
    padding: clamp(20px, 3vw, 34px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-kicker {
    margin: 0;
    color: #d4ff96;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
}

.contact-content h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.8vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.contact-lead {
    margin: 4px 0 0;
    opacity: 0.92;
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(220, 255, 163, 0.7);
    color: #e8ffc4;
    text-decoration: none;
    font-weight: 700;
    background: rgba(15, 35, 8, 0.35);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.contact-cta:hover {
    transform: translateY(-1px);
    background: rgba(220, 255, 163, 0.22);
    color: #f6ffe7;
}

.contact-meta {
    margin-top: 8px;
    display: grid;
    gap: 6px;
}

.contact-meta p,
.contact-note {
    margin: 0;
    opacity: 0.95;
}

.contact-note {
    margin-top: 8px;
}

@media (max-width: 980px) {
    .contact-shell {
        grid-template-columns: 1fr;
    }

    .contact-image {
        min-height: 220px;
    }
}