/* ---------- Base ---------- */

:root {
    --green: rgb(1, 150, 120);
    --green-dark: rgb(0, 125, 100);
    --green-deep: rgb(0, 74, 62);

    --bg: rgb(255, 255, 255);
    --bg-alt: rgb(255, 255, 255);

    --card: rgb(38, 37, 37);
    --border: rgb(55, 54, 54);
    --muted: black;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: black;

    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
}

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

ul,
ol {
    list-style: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}


/* ---------- Buttons ---------- */

.primary-btn,
.secondary-btn {
    display: inline-block;

    padding: 14px 24px;

    border-radius: 5px;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}

.primary-btn {
    border: 1px solid var(--green);

    background-color: var(--green);
    color: white;
}

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

.primary-btn i {
    margin-left: 8px;
}

.secondary-btn {
    border: 1px solid white;

    background-color: transparent;
    color: white;
}

.secondary-btn:hover {
    background-color: white;
    color: var(--bg);
}


/* ---------- Hero ---------- */

.container {
    width: 100%;
}

.image {
    position: relative;

    width: 100%;

    background-color: rgb(20, 40, 35);
    background-position: center;
    background-size: cover;

    overflow: hidden;
}

#home{
    background-image: url("../assets/images/grazing.jpg");
    min-height: 100vh;
}

.image::before {
    content: "";

    position: absolute;
    inset: 0;

    background-color: rgba(0, 0, 0, 0.55);
}

.info {
    position: relative;

    width: 100%;
    max-width: 800px;
    min-height: 100vh;

    padding: 80px 8%;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-title {
    display: block;

    margin-bottom: 18px;

    color: var(--green);

    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.info h1 {
    margin-bottom: 22px;

    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 700;

    color: white;
}

.hero-lead {
    margin-bottom: 14px;

    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.6;

    color: white;
}

.hero-est {
    margin-bottom: 30px;

    color: var(--green);

    font-weight: 500;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}


/* ---------- Shared Section Layout ---------- */

.section {
    padding: 90px 8%;

    background-color: var(--bg);
}

.section.alt {
    background-color: var(--bg-alt);
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 50px;
}

.section-head h2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.25;

    color: black;
}

.section-head.center {
    justify-content: center;
    text-align: center;
}


/* ---------- Image + Text Rows ---------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;

    margin-bottom: 70px;
}

.split:last-child {
    margin-bottom: 0;
}

.split.top-aligned {
    align-items: start;
}


/* Reversed rows */

.split.reverse .img-box {
    order: 2;
}

.split.reverse .split-text {
    order: 1;
}

.img-box {
    width: 100%;
    aspect-ratio: 4 / 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background-color: white;
    background-position: center;
    background-size: cover;

    border-radius: 8px;

    color: black;

    font-size: 0.9rem;
}

.img-box i {
    font-size: 2.6rem;
}

.split-text h2 {
    margin-bottom: 8px;

    font-size: 2.2rem;
    line-height: 1.25;

    color: black;
}

.split-text .tagline {
    margin-bottom: 22px;

    color: var(--green);

    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
}

.split-text p {
    max-width: 560px;
    margin-bottom: 16px;

    color: black;

    font-size: 1.05rem;
    line-height: 1.85;
}

.list-title {
    margin: 26px 0 14px;

    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.split-text .primary-btn {
    margin-top: 12px;
}

/* -----------------Key Areas Images */
#boer-kranti-image{
    background-image: url("../assets/images/boer-goat.jpg");
}
#silage-image{
    background-image: url("../assets/images/silage.jpg");
}
#organic-fertilizer-image{
    background-image: url("../assets/images/organic-fertilizer.jpg");
}

hr{
    border: 1px solid var(--green);
}


/* ---------- About Quote ---------- */

.about-quote {
    max-width: 850px;
    margin: 20px auto 0;
    padding: 10px 0 10px 28px;

    border-left: 4px solid var(--green);

    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.5;
}


/* ---------- Check Lists ---------- */

.check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;

    margin-bottom: 22px;
}

.check-list li {
    position: relative;

    padding-left: 28px;

    color: black;

    font-size: 0.95rem;
    line-height: 1.5;
}

.check-list li::before {
    content: "\f00c";

    position: absolute;
    left: 0;
    top: 2px;

    color: var(--green);

    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.85rem;
}


/* ---------- Process Flows ---------- */

.flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;

    margin-bottom: 22px;
}

.flow li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flow li span {
    display: block;

    padding: 9px 16px;

    background-color: var(--green);

    border: 1px solid var(--green-dark);
    border-radius: 6px;

    color: white;

    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}

.flow li:not(:last-child)::after {
    content: "\f061";

    color: var(--green);

    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
}


/* ---------- Cards ---------- */

.card-grid {
    display: grid;
    gap: 25px;
}

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

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

.card-grid.cols-5 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
    padding: 32px 26px;

    background-color: var(--green-deep);

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

    color: white;
}

.section:not(.alt) .card {
    background-color: var(--green-deep);
}

.card h3 {
    margin-bottom: 10px;

    font-size: 1.2rem;
}

.card p {
    color: white;

    font-size: 0.95rem;
    line-height: 1.7;
}

.icon-circle {
    width: 64px;
    height: 64px;

    margin-bottom: 20px;

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

    border-radius: 50%;

    background-color: rgba(1, 150, 120, 0.15);
    color: var(--green);

    font-size: 1.5rem;
}

.center-card {
    text-align: center;
}

.center-card .icon-circle {
    margin-left: auto;
    margin-right: auto;
}

.vm-card {
    padding: 40px 34px;
}

.vm-card p {
    font-size: 1.05rem;
}


/* ---------- Breeding Philosophy ---------- */

.lead-center {
    max-width: 720px;
    margin: 0 auto;

    color: black;

    font-size: 1.15rem;
    line-height: 1.8;

    text-align: center;
}

.lead-center.closing {
    margin-top: 40px;
}

.center-text {
    text-align: center;
    margin-top: 40px;
}

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

.chip-grid li {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 18px 20px;

    background-color: var(--bg-alt);

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

    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.chip-grid li i {
    flex-shrink: 0;

    width: 22px;

    color: var(--green);

    font-size: 1.2rem;
    text-align: center;
}


/* ---------- CTA / Commitment ---------- */

.cta {
    position: relative;

    padding: 110px 8%;

    background-color: var(--green-deep);
    background-image: url("../images/cta.jpg");
    background-position: center;
    background-size: cover;

    text-align: center;
}

.cta::before {
    content: "";

    position: absolute;
    inset: 0;

    background-color: rgba(0, 50, 42, 0.82);
}

.cta-content {
    position: relative;

    max-width: 760px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 18px;
    color: white;
    font-size: 2.2rem;
    line-height: 1.25;
}

.cta-content p {
    margin-bottom: 16px;

    color: rgb(235, 235, 235);

    line-height: 1.8;
}

.cta-content p:first-of-type {
    color: white;

    font-size: 1.2rem;
    font-weight: 500;
}

.cta-btn {
    margin-top: 14px;

    padding: 14px 32px;
}



/* ---------- Floating Buttons ---------- */

.floating-buttons {
    position: fixed;

    right: 25px;
    bottom: 25px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    z-index: 10;
}

.floating {
    width: 48px;
    height: 48px;

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

    border-radius: 50%;

    background-color: var(--green);
    color: white;

    font-size: 1.2rem;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

    transition: 0.2s;
}

.floating:hover {
    background-color: rgb(1, 97, 78);
}


/* ---------- Responsive ---------- */

@media (max-width: 1100px) {

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

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

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

@media (max-width: 850px) {

    .section {
        padding: 70px 6%;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 50px;
    }

    /* On small screens the image always comes first */

    .split.reverse .img-box {
        order: 0;
    }

    .split.reverse .split-text {
        order: 1;
    }

    .split-text p {
        max-width: none;
    }

    .card-grid.cols-2,
    .company-grid {
        grid-template-columns: 1fr;
    }

    .about-quote {
        font-size: 1.35rem;
    }

    .section-head h2,
    .split-text h2,
    .cta-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 560px) {

    .card-grid.cols-4,
    .chip-grid,
    .check-list,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .flow li span {
        font-size: 0.82rem;
    }
}

