/* ==========================================================================
   EIRTHUM - DIRECT FARMER SOURCING WIDGET (SOOTHING CREAM & BOTANICAL THEME)
   Calm, organic, creamy linen aesthetic with lush green terroir accents
   ========================================================================== */

/* --- HOME PAGE SOURCING SHOWCASE SECTION --- */
.ep-farmer-sourcing-section {
    padding: 4.5rem 0;
    background: #fbfaf6;
    position: relative;
    overflow: hidden;
}

.ep-farmer-card-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Master Hero Box in Calming Organic Cream */
.ep-farmer-hero-box {
    background: linear-gradient(135deg, #ffffff 0%, #f7f5ed 50%, #f2efe4 100%);
    border-radius: 28px;
    padding: 3.5rem;
    color: #123321;
    box-shadow: 0 16px 48px rgba(18, 51, 33, 0.06), 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1.5px solid #e5dfd0;
    position: relative;
    overflow: hidden;
}

/* Soft Ambient Background Elements */
.ep-farmer-hero-box::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(24, 138, 83, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    border-radius: 50%;
}

.ep-farmer-hero-box::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(205, 163, 79, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    border-radius: 50%;
}

/* Full Width Top Header */
.ep-farmer-top-header {
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

/* Top Subtle Badge */
.ep-farmer-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef5f0;
    border: 1px solid #cbe0d3;
    color: #188a53;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 1rem;
}

.ep-farmer-live-dot {
    width: 7px;
    height: 7px;
    background: #188a53;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(24, 138, 83, 0.2);
    animation: epPulse 2s infinite ease-in-out;
}

@keyframes epPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(24, 138, 83, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(24, 138, 83, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(24, 138, 83, 0); }
}

/* Grand Full-Width Typography */
.ep-farmer-title {
    font-family: 'Playfair Display', 'Lora', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #123321;
    letter-spacing: -0.015em;
    max-width: 100%;
}

.ep-farmer-title span {
    display: block;
    color: #188a53;
    font-style: italic;
    font-weight: 400;
    margin-top: 4px;
}

/* Balanced 2-Column Content Grid */
.ep-farmer-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.ep-farmer-desc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a6356;
    margin: 0 0 1.75rem 0;
}

/* Terroir Quick Facts */
.ep-farmer-facts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 1.75rem;
}

.ep-farmer-fact-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e3ddd0;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    box-shadow: 0 2px 8px rgba(18, 51, 33, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ep-farmer-fact-card:hover {
    transform: translateY(-2px);
    border-color: #188a53;
}

.ep-fact-num {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #123321;
    line-height: 1.1;
}

.ep-fact-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6a8276;
    margin-top: 3px;
    display: block;
    line-height: 1.3;
}

/* Provenance Location Tags */
.ep-farmer-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2.25rem;
}

.ep-farmer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #dcd5c5;
    color: #1f4230;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.ep-farmer-pill:hover {
    background: #eef5f0;
    border-color: #188a53;
    color: #123321;
    transform: translateY(-2px);
}

/* Call to Action Buttons */
.ep-farmer-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ep-farmer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #123321;
    color: #fbfaf7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.95rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(18, 51, 33, 0.18);
}

.ep-farmer-cta-btn:hover {
    background: #188a53;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(24, 138, 83, 0.25);
}

.ep-farmer-cta-btn svg {
    transition: transform 0.25s ease;
}

.ep-farmer-cta-btn:hover svg {
    transform: translateX(4px);
}

.ep-farmer-secondary-link {
    color: #188a53;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1.5px solid rgba(24, 138, 83, 0.3);
    padding-bottom: 2px;
    transition: all 0.2s;
}

.ep-farmer-secondary-link:hover {
    color: #123321;
    border-bottom-color: #123321;
}

/* --- CREATIVE PROVENANCE PHOTO MOSAIC --- */
.ep-farmer-visual-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    position: relative;
}

.ep-farm-mosaic-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 185px;
    background: #eae5d7;
    border: 1px solid #d9d2c2;
    box-shadow: 0 6px 20px rgba(18, 51, 33, 0.07);
    text-decoration: none;
    display: block;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.ep-farm-mosaic-item:hover {
    transform: translateY(-5px);
    border-color: #188a53;
    box-shadow: 0 14px 32px rgba(18, 51, 33, 0.15);
}

.ep-farm-mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ep-farm-mosaic-item:hover img {
    transform: scale(1.08);
}

.ep-farm-mosaic-badge-top {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    color: #123321;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(18, 51, 33, 0.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.ep-farm-mosaic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 10px 8px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
}

.ep-farm-mosaic-sub {
    font-size: 0.78rem;
    color: #fde047;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.9);
}


/* --- SHOP PAGE CALM CREAMY BANNER --- */
.shop-farmer-sourcing-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f7f5ee 100%);
    border-radius: 18px;
    border: 1.5px solid #e3ded2;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.75rem;
    color: #123321;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 6px 20px rgba(18, 51, 33, 0.04);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.shop-farmer-sourcing-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #188a53;
}

.shop-farmer-banner-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
}

.shop-farmer-banner-avatar-group {
    display: flex;
    align-items: center;
    position: relative;
}

.shop-farmer-banner-avatar-group img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    margin-left: -12px;
    box-shadow: 0 2px 8px rgba(18, 51, 33, 0.12);
}

.shop-farmer-banner-avatar-group img:first-child {
    margin-left: 0;
}

.shop-farmer-banner-text h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: #123321;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-farmer-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    background: #eef5f0;
    color: #188a53;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #cbe0d3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shop-farmer-banner-text p {
    font-size: 0.85rem;
    color: #556d61;
    margin: 0;
    line-height: 1.4;
}

.shop-farmer-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #123321;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(18, 51, 33, 0.15);
}

.shop-farmer-banner-btn:hover {
    background: #188a53;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(24, 138, 83, 0.25);
}


/* --- RESPONSIVE ADAPTATIONS (OPTIMIZED FOR MOBILE WITHOUT TOUCHING DESKTOP) --- */
@media (max-width: 992px) {
    .ep-farmer-top-header {
        margin-bottom: 1.5rem;
    }

    .ep-farmer-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ep-farmer-title {
        font-size: 2.15rem;
    }

    .ep-farmer-hero-box {
        padding: 2.25rem 1.75rem;
    }
}

@media (max-width: 768px) {
    .ep-farmer-top-header {
        margin-bottom: 0.85rem;
    }

    .ep-farmer-sourcing-section {
        padding: 1.75rem 0;
    }

    .ep-farmer-card-container {
        padding: 0 1rem;
    }

    .ep-farmer-hero-box {
        padding: 1.35rem 1.15rem;
        border-radius: 20px;
    }

    .ep-farmer-header-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
        margin-bottom: 0.6rem;
        gap: 6px;
    }

    .ep-farmer-title {
        font-size: 1.45rem;
        line-height: 1.22;
        margin: 0;
    }

    .ep-farmer-desc {
        font-size: 0.85rem;
        line-height: 1.5;
        margin: 0 0 1rem 0;
    }

    /* Single compact horizontal row on mobile instead of 3 tall stacked boxes */
    .ep-farmer-facts-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-bottom: 1rem;
    }

    .ep-farmer-fact-card {
        padding: 0.5rem 0.4rem;
        border-radius: 10px;
        text-align: center;
    }

    .ep-fact-num {
        font-size: 1.05rem;
        line-height: 1;
    }

    .ep-fact-label {
        font-size: 0.62rem;
        margin-top: 2px;
        line-height: 1.2;
    }

    .ep-farmer-pill-list {
        gap: 6px;
        margin-bottom: 1.15rem;
    }

    .ep-farmer-pill {
        font-size: 0.72rem;
        padding: 4px 9px;
    }

    .ep-farmer-actions {
        gap: 0.65rem;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 1.25rem;
    }

    .ep-farmer-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.25rem;
        font-size: 0.85rem;
    }

    .ep-farmer-secondary-link {
        justify-content: center;
        font-size: 0.8rem;
    }

    /* Compact 2x2 Photo Grid on mobile */
    .ep-farmer-visual-mosaic {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ep-farm-mosaic-item {
        height: 110px;
        border-radius: 12px;
    }

    .ep-farm-mosaic-badge-top {
        top: 5px;
        left: 5px;
        font-size: 0.58rem;
        padding: 2px 6px;
    }

    .ep-farm-mosaic-overlay {
        padding: 14px 6px 5px;
    }

    .ep-farm-mosaic-sub {
        font-size: 0.65rem;
        color: #fde047;
        font-weight: 700;
        line-height: 1.2;
        margin: 0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
    }

    .shop-farmer-sourcing-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.95rem 1rem;
        gap: 0.75rem;
        border-radius: 14px;
        margin-top: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .shop-farmer-banner-left {
        width: 100%;
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 0.75rem;
        row-gap: 0.45rem;
    }

    .shop-farmer-banner-avatar-group {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
    }

    .shop-farmer-banner-avatar-group img {
        width: 34px;
        height: 34px;
        margin-left: -9px;
    }

    .shop-farmer-banner-avatar-group img:first-child {
        margin-left: 0;
    }

    .shop-farmer-banner-text {
        display: contents;
    }

    .shop-farmer-banner-text h4 {
        grid-column: 2;
        grid-row: 1;
        font-size: 0.94rem;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
        line-height: 1.25;
    }

    .shop-farmer-tag {
        font-size: 0.62rem;
        padding: 2px 6px;
    }

    .shop-farmer-banner-text p {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 0.76rem;
        line-height: 1.45;
        color: #556d61;
        margin: 0;
        width: 100%;
    }

    .shop-farmer-banner-btn {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.82rem;
    }
}
