/* =====================================================
   FORAGE AGRONOMY LAB — PRODUCER RESOURCES
   css/producer-resources.css
===================================================== */


/* =====================================================
   RESOURCES SECTION
===================================================== */

.resources-section {
    position: relative;
    padding: 110px 0 120px;
    background: var(--cream);
    overflow: hidden;
}


/* =====================================================
   DECORATIVE BACKGROUND RINGS
===================================================== */

.res-bg-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(83, 107, 69, 0.10);
    pointer-events: none;
}

.res-bg-ring-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    box-shadow:
        0 0 0 50px rgba(83, 107, 69, 0.04),
        0 0 0 100px rgba(83, 107, 69, 0.025);
}

.res-bg-ring-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -120px;
    border-color: rgba(73, 47, 36, 0.07);
    box-shadow: 0 0 0 40px rgba(73, 47, 36, 0.03);
}


/* =====================================================
   SECTION HEADING
===================================================== */

.resources-section .section-heading {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-bottom: 70px;
}

.resources-section .section-heading h2 {
    margin-bottom: 14px;
    color: var(--brown-dark);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.6px;
}

.resources-section .section-heading > p {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.75;
}


/* =====================================================
   ART GRID
===================================================== */

.resources-art-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 980px;
}


/* =====================================================
   ART CARD
===================================================== */

.art-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    padding: 52px 44px 48px;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(90, 64, 48, 0.10);
    background: var(--white);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.art-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 55px rgba(59, 42, 32, 0.13);
    border-color: rgba(83, 107, 69, 0.25);
}


/* =====================================================
   TRIFOLIATE ALFALFA LEAF SHAPE
   Three leaflets on a common petiole, true to
   alfalfa (Medicago sativa) leaf morphology.
   Sits in the top-right corner of each card.
===================================================== */

.art-shape {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 110px;
    height: 120px;
    pointer-events: none;
    transition: transform 0.5s ease, opacity 0.35s ease;
    opacity: 0.85;
}

.art-card:hover .art-shape {
    transform: scale(1.06) rotate(5deg);
    opacity: 1;
}

/*
   The trifoliate SVG uses three leaflet paths
   plus a petiole (stem). Each leaflet is an
   ellipse-like shape with a pointed tip,
   arranged: terminal leaflet at top-center,
   two lateral leaflets below at ~45 deg angles.
*/

/* Left card: green tint shape */
.art-card-left .art-shape-fill {
    fill: rgba(83, 107, 69, 0.08);
}

.art-card-left:hover .art-shape-fill {
    fill: rgba(83, 107, 69, 0.16);
}

/* Right card: gold tint shape */
.art-card-right .art-shape-fill {
    fill: rgba(73, 47, 36, 0.06);
}

.art-card-right:hover .art-shape-fill {
    fill: rgba(255, 196, 37, 0.14);
}

.art-shape-fill {
    transition: fill 0.35s ease;
}


/* =====================================================
   ICON CIRCLE
===================================================== */

.art-icon-wrap {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: background 0.35s ease, transform 0.35s ease;
}

.art-card-left  .art-icon-wrap { background: rgba(83, 107, 69, 0.10); color: var(--green-dark); }
.art-card-right .art-icon-wrap { background: rgba(73, 47, 36, 0.08);  color: var(--brown-dark); }

.art-card:hover .art-icon-wrap { transform: scale(1.08); }

.art-card-left:hover  .art-icon-wrap { background: var(--green-dark); color: var(--white); }
.art-card-right:hover .art-icon-wrap { background: var(--brown-dark); color: var(--white); }

.art-icon { width: 34px; height: 34px; }


/* =====================================================
   CARD CONTENT
===================================================== */

.art-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.art-category {
    margin: 0 0 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.art-card-left  .art-category { color: var(--green); }
.art-card-right .art-category { color: var(--brown-light); }

.art-content h3 {
    margin: 0 0 18px;
    color: var(--brown-dark);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.4px;
}

.art-content > p {
    margin: 0 0 28px;
    color: var(--text-light);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    max-width: 380px;
}


/* =====================================================
   CALL TO ACTION
===================================================== */

.art-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    width: fit-content;
    padding: 11px 22px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.art-card-left  .art-cta { background: rgba(83, 107, 69, 0.10); color: var(--green-dark); }
.art-card-right .art-cta { background: rgba(73, 47, 36, 0.08);  color: var(--brown-dark); }

.art-card-left:hover  .art-cta { background: var(--green-dark); color: var(--white); transform: translateX(4px); }
.art-card-right:hover .art-cta { background: var(--brown-dark); color: var(--white); transform: translateX(4px); }


/* =====================================================
   CORNER ACCENT
===================================================== */

.art-corner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 48px 48px;
    transition: border-width 0.3s ease;
}

.art-card-left  .art-corner { border-color: transparent transparent rgba(83, 107, 69, 0.18)  transparent; }
.art-card-right .art-corner { border-color: transparent transparent rgba(255, 196, 37, 0.35) transparent; }

.art-card:hover .art-corner { border-width: 0 0 64px 64px; }


/* =====================================================
   INFORMATION SECTION
===================================================== */

.info-section {
    padding: 100px 0;
    background: var(--cream-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.info-layout {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 60px;
    align-items: start;
    max-width: 920px;
}

.info-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
}

.info-aside-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--green), rgba(83, 107, 69, 0.2));
}

.info-aside-label {
    margin: 0;
    color: var(--green);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-align: center;
    line-height: 1.8;
    text-transform: uppercase;
}

.info-content h2 {
    max-width: 680px;
    margin-bottom: 22px;
    color: var(--brown-dark);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.4px;
}

.info-content p {
    max-width: 700px;
    margin-bottom: 16px;
    color: var(--text-light);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

.info-content p:last-child { margin-bottom: 0; }


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

@media (max-width: 900px) {

    .resources-art-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .art-card { min-height: 400px; }
}


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

@media (max-width: 700px) {

    .resources-section { padding: 70px 0 80px; }

    .resources-section .section-heading { margin-bottom: 48px; }

    .art-card {
        padding: 40px 30px 38px;
        min-height: 0;
    }

    .art-shape {
        width: 90px;
        height: 100px;
        top: -6px;
        right: -6px;
    }

    .art-content h3 { font-size: 28px; }

    .info-section   { padding: 70px 0; }

    .info-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-aside {
        flex-direction: row;
        align-items: center;
    }

    .info-aside-line {
        width: 50px;
        height: 2px;
        background: linear-gradient(to right, var(--green), rgba(83, 107, 69, 0.2));
    }

    .info-aside-label { text-align: left; }
}


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

@media (max-width: 450px) {

    .resources-section { padding: 55px 0 65px; }

    .art-card { padding: 32px 22px 32px; }

    .art-icon-wrap { width: 58px; height: 58px; }
    .art-icon      { width: 28px; height: 28px; }

    .art-content h3 { font-size: 26px; }

    .info-section { padding: 55px 0; }

    .info-content h2 { font-size: 28px; }
}
