﻿/* ============================================================
   SAMRUDDHI AGRITECH
   SOYBEAN PRODUCTS
   File: Content/css/soybean-products.css
   ============================================================ */

.rds-soybean-section,
.rds-soybean-section * {
    box-sizing: border-box;
}

.rds-soybean-section {
    width: 100%;
    padding: 70px 20px 80px;
    overflow: hidden;
    background: radial-gradient( circle at 7% 8%, rgba(95, 139, 66, .12), transparent 27% ), radial-gradient( circle at 93% 30%, rgba(205, 166, 65, .11), transparent 30% ), linear-gradient( 180deg, #fffef9 0%, #f6faf4 100% );
}


/* ============================================================
   INTRO
   ============================================================ */

.rds-soybean-intro {
    width: min(1380px, 100%);
    margin: 0 auto 70px;
    min-height: 500px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(450px, 1.08fr);
    overflow: hidden;
    border-radius: 32px;
    background: #ffffff;
    border: 1px solid rgba(70, 85, 55, .12);
    box-shadow: 0 25px 70px rgba(45, 60, 35, .12);
}


/* ============================================================
   INTRO CONTENT
   ============================================================ */

.rds-soybean-intro-content {
    padding: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rds-soybean-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #637e3c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

.rds-soybean-eyebrow-line {
    width: 43px;
    height: 3px;
    border-radius: 20px;
    background: linear-gradient( 90deg, #68894c, #c8a04b );
}

.rds-soybean-intro-panels h2 {
    margin: 0 0 18px;
    color: #2c3d30;
    font-size: clamp(35px, 4vw, 57px);
    line-height: 1.04;
    letter-spacing: -1.7px;
}

.rds-soybean-intro-panels p {
    max-width: 620px;
    margin: 0 0 17px;
    color: #69736a;
    font-size: 17px;
    line-height: 1.8;
}

.rds-soybean-intro-highlight {
    color: #6d813f;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.6;
}


/* ============================================================
   LANGUAGE SWITCH
   ============================================================ */

.rds-soybean-intro-switch {
    width: fit-content;
    display: inline-flex;
    margin-top: 22px;
    padding: 5px;
    border-radius: 50px;
    background: #edf3e8;
    border: 1px solid rgba(55, 75, 50, .10);
}

.rds-soybean-lang-btn {
    min-width: 90px;
    height: 40px;
    padding: 0 18px;
    border: 0;
    outline: 0;
    border-radius: 40px;
    background: transparent;
    color: #6b756b;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: background .28s ease, color .28s ease, transform .18s ease, box-shadow .28s ease;
}

    .rds-soybean-lang-btn:hover {
        color: #304333;
    }

    .rds-soybean-lang-btn:active {
        transform: scale(.96);
    }

    .rds-soybean-lang-btn.is-active {
        color: #ffffff;
        background: linear-gradient( 135deg, #66884d, #38583b );
        box-shadow: 0 7px 18px rgba(52, 83, 58, .22);
    }


/* ============================================================
   INTRO IMAGE
   ============================================================ */

.rds-soybean-intro-image {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: #dce8d0;
}

    .rds-soybean-intro-image::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        background: linear-gradient( 90deg, rgba(25, 55, 25, .10), transparent 45%, rgba(25, 55, 25, .03) );
    }

    .rds-soybean-intro-image img {
        width: 100%;
        height: 100%;
        min-height: 500px;
        display: block;
        /*
       FULL LARGE CROP IMAGE
    */
        object-fit: cover;
        object-position: center;
        transform: scale(1.01);
        transition: transform .7s ease;
    }

.rds-soybean-intro:hover
.rds-soybean-intro-image img {
    transform: scale(1.035);
}


/* ============================================================
   IMAGE BADGE
   ============================================================ */

.rds-soybean-intro-overlay {
    position: absolute;
    left: 27px;
    bottom: 27px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 17px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 14px 35px rgba(25, 40, 25, .22);
    backdrop-filter: blur(10px);
}

.rds-soybean-crop-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #e6efd9;
    font-size: 23px;
}

.rds-soybean-intro-overlay strong {
    display: block;
    color: #304333;
    font-size: 13px;
}

.rds-soybean-intro-overlay small {
    display: block;
    margin-top: 3px;
    color: #7d887d;
    font-size: 11px;
}


/* ============================================================
   SECTION HEADING
   ============================================================ */

.rds-soybean-section-heading {
    width: min(1380px, 100%);
    margin: 0 auto 38px;
    text-align: center;
}

.rds-soybean-kicker {
    display: inline-block;
    margin-bottom: 9px;
    color: #738d48;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2.5px;
}

.rds-soybean-section-heading h2 {
    margin: 0;
    color: #28392d;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -1px;
}

.rds-soybean-section-heading p {
    margin: 13px 0 0;
    color: #778077;
    font-size: 15px;
    font-weight: 700;
}

    .rds-soybean-section-heading p span {
        margin: 0 7px;
        color: #af8b3e;
    }


/* ============================================================
   GRID
   2 CARDS PER ROW
   ============================================================ */

.rds-soybean-grid {
    width: min(1380px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}


/* ============================================================
   CARD
   ============================================================ */

.rds-soybean-card {
    --rds-soybean-accent: #66884d;
    --rds-soybean-soft: #edf5e7;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(60, 75, 55, .11);
    border-radius: 25px;
    box-shadow: 0 17px 45px rgba(40, 55, 35, .09);
    transition: transform .35s ease, box-shadow .35s ease;
}

    .rds-soybean-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 26px 58px rgba(40, 55, 35, .15);
    }


/* ============================================================
   DIFFERENT CARD COLORS
   ============================================================ */

.rds-soybean-tone-01 {
    --rds-soybean-accent: #5f8147;
    --rds-soybean-soft: #edf5e8;
}

.rds-soybean-tone-02 {
    --rds-soybean-accent: #a9792d;
    --rds-soybean-soft: #fbf2df;
}

.rds-soybean-tone-03 {
    --rds-soybean-accent: #487b72;
    --rds-soybean-soft: #eaf4f1;
}

.rds-soybean-tone-04 {
    --rds-soybean-accent: #4e6e91;
    --rds-soybean-soft: #edf3f9;
}

.rds-soybean-tone-05 {
    --rds-soybean-accent: #886d4a;
    --rds-soybean-soft: #f5f0e8;
}

.rds-soybean-tone-06 {
    --rds-soybean-accent: #75649a;
    --rds-soybean-soft: #f1eef8;
}

.rds-soybean-tone-07 {
    --rds-soybean-accent: #5a805b;
    --rds-soybean-soft: #edf5ed;
}


/* ============================================================
   CARD TOP
   ============================================================ */

.rds-soybean-card-top {
    min-height: 108px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px 21px;
    position: relative;
    background: linear-gradient( 135deg, var(--rds-soybean-soft), #ffffff );
    border-bottom: 1px solid rgba(50, 70, 50, .08);
}

    .rds-soybean-card-top::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 5px;
        background: var(--rds-soybean-accent);
    }

.rds-soybean-number {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: var(--rds-soybean-accent);
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 9px 20px rgba(35, 55, 35, .15);
}

.rds-soybean-label {
    display: block;
    margin-bottom: 4px;
    color: var(--rds-soybean-accent);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.rds-soybean-title h3 {
    margin: 0;
    color: #293b2e;
    font-size: 22px;
    line-height: 1.1;
}

.rds-soybean-title p {
    margin: 5px 0 0;
    color: #798279;
    font-size: 13px;
    font-weight: 700;
}


/* ============================================================
   CARD LANGUAGE SWITCH
   ============================================================ */

.rds-soybean-switch {
    display: inline-flex;
    padding: 4px;
    border-radius: 40px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(50, 70, 50, .10);
}

    .rds-soybean-switch .rds-soybean-lang-btn {
        min-width: 72px;
        height: 34px;
        padding: 0 12px;
        font-size: 11px;
    }

        .rds-soybean-switch
        .rds-soybean-lang-btn.is-active {
            background: var(--rds-soybean-accent);
            box-shadow: 0 5px 13px rgba(30, 50, 30, .18);
        }


/* ============================================================
   CARD BODY
   ============================================================ */

.rds-soybean-card-body {
    min-height: 390px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(270px, .98fr);
}


/* ============================================================
   INFORMATION
   ============================================================ */

.rds-soybean-information {
    padding: 27px 25px;
}

.rds-soybean-spec-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 17px;
    border-bottom: 1px solid rgba(60, 75, 60, .09);
}

    .rds-soybean-spec-heading span {
        color: #35463a;
        font-size: 13px;
        font-weight: 900;
    }

    .rds-soybean-spec-heading small {
        color: #929a91;
        font-size: 10px;
    }


/* ============================================================
   SPEC LIST
   ============================================================ */

.rds-soybean-spec-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

    .rds-soybean-spec-list li {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 7px;
        padding: 9px 10px;
        border-radius: 11px;
        background: #fafbf9;
        border: 1px solid rgba(50, 70, 50, .06);
        color: #667068;
        font-size: 12.5px;
        line-height: 1.5;
        transition: transform .25s ease, background .25s ease;
    }

        .rds-soybean-spec-list li:hover {
            transform: translateX(3px);
            background: var(--rds-soybean-soft);
        }

        .rds-soybean-spec-list li > span {
            color: var(--rds-soybean-accent);
            font-weight: 900;
        }

    .rds-soybean-spec-list strong {
        color: #2f4133;
        font-weight: 900;
    }


/* ============================================================
   LANGUAGE PANELS
   ============================================================ */

.rds-soybean-language-panel {
    animation: rdsSoybeanLanguageIn .32s ease both;
}

    .rds-soybean-language-panel[hidden] {
        display: none !important;
    }

@keyframes rdsSoybeanLanguageIn {

    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   CARD PRODUCT IMAGE
   LARGE FULL IMAGE
   ============================================================ */

.rds-soybean-card-image {
    min-height: 390px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    background: radial-gradient( circle at center, rgba(255,255,255,.98), rgba(255,255,255,.18) 70% ), var(--rds-soybean-soft);
    border-left: 1px solid rgba(50, 70, 50, .07);
}

.rds-soybean-image-frame {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 19px;
    background: rgba(255,255,255,.83);
    border: 1px solid rgba(50, 70, 50, .08);
    box-shadow: inset 0 0 35px rgba(50, 70, 50, .045);
}

    .rds-soybean-image-frame img {
        width: 100%;
        height: 100%;
        display: block;
        /*
       COMPLETE PRODUCT IMAGE
       NO CROPPING
    */

        object-fit: contain;
        padding: 10px;
        transition: transform .45s ease;
    }

.rds-soybean-card:hover
.rds-soybean-image-frame img {
    transform: scale(1.035);
}

.rds-soybean-image-name {
    margin-top: 10px;
    color: var(--rds-soybean-accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
}


/* ============================================================
   BOTTOM CTA
   ============================================================ */

.rds-soybean-bottom {
    width: min(1380px, 100%);
    margin: 45px auto 0;
    padding: 23px 27px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-radius: 21px;
    background: linear-gradient( 110deg, #29432f, #557148 );
    box-shadow: 0 18px 40px rgba(30, 55, 35, .17);
}

.rds-soybean-bottom-icon {
    width: 55px;
    height: 55px;
    flex: 0 0 55px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: rgba(255,255,255,.12);
    font-size: 25px;
}

.rds-soybean-bottom-content {
    flex: 1;
}

    .rds-soybean-bottom-content h3 {
        margin: 0 0 4px;
        color: #ffffff;
        font-size: 18px;
    }

    .rds-soybean-bottom-content p {
        margin: 0;
        color: rgba(255,255,255,.76);
        font-size: 13px;
        line-height: 1.5;
    }

.rds-soybean-bottom-btn {
    min-width: 135px;
    min-height: 45px;
    padding: 0 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 50px;
    background: #ffffff;
    color: #304a35;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .rds-soybean-bottom-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 9px 22px rgba(0,0,0,.18);
    }

    .rds-soybean-bottom-btn span {
        font-size: 17px;
    }


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .rds-soybean-section {
        padding: 55px 16px 65px;
    }

    .rds-soybean-intro {
        grid-template-columns: 1fr .95fr;
    }

    .rds-soybean-intro-content {
        padding: 45px 38px;
    }

    .rds-soybean-card-body {
        grid-template-columns: 1fr;
    }

    .rds-soybean-card-image {
        min-height: 320px;
        border-left: 0;
        border-top: 1px solid rgba(50, 70, 50, .07);
    }

    .rds-soybean-image-frame {
        height: 285px;
        max-width: 470px;
    }
}


/* ============================================================
   SMALL TABLET
   ============================================================ */

@media (max-width: 850px) {

    .rds-soybean-intro {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .rds-soybean-intro-image {
        min-height: 390px;
    }

        .rds-soybean-intro-image img {
            min-height: 390px;
        }

    /*
       Keep 2 cards per row on tablet
    */

    .rds-soybean-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .rds-soybean-card-top {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .rds-soybean-switch {
        grid-column: 1 / -1;
        margin-left: 68px;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .rds-soybean-section {
        padding: 38px 11px 50px;
    }

    .rds-soybean-intro {
        margin-bottom: 45px;
        border-radius: 22px;
    }

    .rds-soybean-intro-content {
        padding: 35px 23px;
    }

    .rds-soybean-intro-panels h2 {
        font-size: 34px;
    }

    .rds-soybean-intro-panels p {
        font-size: 14px;
        line-height: 1.7;
    }

    .rds-soybean-intro-image {
        min-height: 300px;
    }

        .rds-soybean-intro-image img {
            min-height: 300px;
        }

    .rds-soybean-intro-overlay {
        left: 15px;
        bottom: 15px;
    }


    /*
       One card per row on mobile
    */

    .rds-soybean-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .rds-soybean-card {
        border-radius: 20px;
    }

    .rds-soybean-card-top {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 16px;
        gap: 12px;
    }

    .rds-soybean-number {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .rds-soybean-title h3 {
        font-size: 20px;
    }

    .rds-soybean-switch {
        grid-column: 1 / -1;
        margin-left: 58px;
    }

    .rds-soybean-card-body {
        display: flex;
        flex-direction: column;
    }

    .rds-soybean-information {
        padding: 22px 16px;
    }

    .rds-soybean-spec-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .rds-soybean-spec-list li {
        font-size: 13px;
    }

    .rds-soybean-card-image {
        min-height: 300px;
        padding: 18px;
    }

    .rds-soybean-image-frame {
        height: 245px;
    }

    .rds-soybean-bottom {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 20px;
    }

    .rds-soybean-bottom-content {
        min-width: calc(100% - 75px);
    }

    .rds-soybean-bottom-btn {
        width: 100%;
    }
}


/* ============================================================
   VERY SMALL DEVICES
   ============================================================ */

@media (max-width: 420px) {

    .rds-soybean-section {
        padding-left: 8px;
        padding-right: 8px;
    }

    .rds-soybean-intro-content {
        padding: 30px 18px;
    }

    .rds-soybean-intro-panels h2 {
        font-size: 30px;
    }

    .rds-soybean-intro-switch {
        width: 100%;
    }

        .rds-soybean-intro-switch
        .rds-soybean-lang-btn {
            flex: 1;
        }

    .rds-soybean-card-top {
        padding: 14px;
    }

    .rds-soybean-title h3 {
        font-size: 18px;
    }

    .rds-soybean-switch {
        width: 100%;
        margin-left: 0;
    }

        .rds-soybean-switch
        .rds-soybean-lang-btn {
            flex: 1;
        }

    .rds-soybean-card-image {
        min-height: 270px;
    }

    .rds-soybean-image-frame {
        height: 215px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .rds-soybean-card,
    .rds-soybean-card:hover,
    .rds-soybean-lang-btn,
    .rds-soybean-image-frame img,
    .rds-soybean-intro-image img,
    .rds-soybean-spec-list li {
        transition: none !important;
        transform: none !important;
    }

    .rds-soybean-language-panel {
        animation: none !important;
    }
}
