/* ============================================================
   FDRVC Farm Page Styles
   ============================================================ */

/* ── CSS VARIABLES ── */
.fm-page {
    --fm-forest:       #114620;
    --fm-forest-mid:   #1a5c2e;
    --fm-forest-light: #2a7040;
    --fm-amber:        #ff6b35;
    --fm-amber-light:  #ff8a5c;
    --fm-amber-pale:   #FFF3DC;
    --fm-cream:        #FAF7F2;
    --fm-sand:         #F2EBD9;
    --fm-sand-dark:    #E8DEC8;
    --fm-dark:         #111A14;
    --fm-mid:          #4A5E52;
    --fm-white:        #FFFFFF;
    --fm-border:       rgba(17,70,32,0.1);
    --fm-serif:        'Shippori Mincho', Georgia, serif;
    --fm-sans:         'Manrope', system-ui, sans-serif;
    --fm-radius:       16px;
    --fm-shadow-sm:    0 2px 12px rgba(0,0,0,0.06);
    --fm-shadow-md:    0 8px 32px rgba(0,0,0,0.1);
    --fm-shadow-lg:    0 20px 60px rgba(0,0,0,0.14);
}

/* ── BASE ── */
.fm-page {
    font-family: var(--fm-sans);
    color: var(--fm-dark);
    line-height: 1.65;
    overflow-x: hidden;
    background: var(--fm-cream);
}
.fm-page img { max-width: 100%; height: auto; }
.fm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── ANIMATIONS ── */
.fm-page .fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .7s ease;
}
.fm-page .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── HERO ── */
.fm-hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    text-align: center;
    color: var(--fm-white);
    min-height: 440px;
    display: flex;
    align-items: center;
}
.fm-hero-bg {
    position: absolute; inset: 0;
    background-image: url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.fm-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(17,70,32,0.88), rgba(17,70,32,0.72));
    z-index: 1;
}
.fm-hero .fm-container {
    position: relative;
    z-index: 2;
}
.fm-hero-eyebrow {
    display: inline-block;
    font-size: .85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fm-amber-light);
    margin-bottom: 16px;
}
.fm-hero h1 {
    font-family: var(--fm-serif);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.15;
    color: var(--fm-white);
}
.fm-hero p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto 32px;
    opacity: .92;
    line-height: 1.7;
    color: var(--fm-white);
}

/* ── BUTTONS ── */
.fm-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: all .3s ease;
    cursor: pointer;
}
.fm-btn-amber {
    background: var(--fm-amber);
    color: var(--fm-white);
}
.fm-btn-amber:hover {
    background: var(--fm-amber-light);
    transform: translateY(-2px);
    box-shadow: var(--fm-shadow-md);
}
.fm-btn-outline {
    border: 2px solid rgba(255,255,255,.5);
    color: var(--fm-white);
    background: transparent;
}
.fm-btn-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--fm-white);
}
.fm-hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.fm-cta-btns {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* ── STATS STRIP ── */
.fm-stats-strip {
    background: var(--fm-forest);
    padding: 0;
}
.fm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}
.fm-stat {
    padding: 32px 16px;
    border-right: 1px solid rgba(255,255,255,.1);
}
.fm-stat:last-child { border-right: none; }
.fm-stat-num {
    font-family: var(--fm-serif);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--fm-amber-light);
    line-height: 1.2;
}
.fm-stat-label {
    font-size: .82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
    margin-top: 6px;
}

/* ── SECTIONS ── */
.fm-section {
    padding: 80px 0;
}
.fm-bg-sand {
    background: var(--fm-sand);
}
.fm-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.fm-label {
    display: inline-block;
    font-size: .78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fm-amber);
    font-weight: 700;
    margin-bottom: 8px;
}
.fm-section-header h2 {
    font-family: var(--fm-serif);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--fm-forest);
    font-weight: 700;
    margin: 0;
}
.fm-footnote {
    color: var(--fm-mid);
    font-size: .88rem;
    margin-top: 10px;
}

/* ── APPROACH ── */
.fm-approach-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.fm-approach-content p {
    font-size: 1.05rem;
    color: var(--fm-mid);
    margin-bottom: 20px;
    line-height: 1.75;
}
.fm-highlight {
    background: var(--fm-amber-pale);
    border-left: 4px solid var(--fm-amber);
    padding: 20px 28px;
    border-radius: 0 var(--fm-radius) var(--fm-radius) 0;
    margin-top: 28px;
    text-align: left;
    font-size: 1rem;
    color: var(--fm-dark);
    line-height: 1.7;
}
.fm-highlight strong { color: var(--fm-forest); }

/* ── COMMODITY CHIPS ── */
.fm-commodity-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.fm-commodity-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--fm-white);
    padding: 16px 24px;
    border-radius: 60px;
    border: 1px solid var(--fm-border);
    font-weight: 600;
    font-size: .95rem;
    color: var(--fm-forest);
    transition: all .3s ease;
    box-shadow: var(--fm-shadow-sm);
}
.fm-commodity-chip:hover {
    transform: translateY(-3px);
    box-shadow: var(--fm-shadow-md);
    border-color: var(--fm-amber);
}
.fm-commodity-icon {
    font-size: 1.4rem;
}

/* ── INTERVENTIONS ── */
.fm-interventions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.fm-intervention-card {
    background: var(--fm-white);
    border-radius: var(--fm-radius);
    padding: 32px 28px;
    border: 1px solid var(--fm-border);
    transition: all .3s ease;
}
.fm-intervention-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fm-shadow-md);
    border-color: var(--fm-amber);
}
.fm-intervention-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}
.fm-intervention-card h4 {
    font-family: var(--fm-serif);
    font-size: 1.1rem;
    color: var(--fm-forest);
    font-weight: 700;
    margin: 0 0 10px;
}
.fm-intervention-card p {
    font-size: .92rem;
    color: var(--fm-mid);
    line-height: 1.6;
    margin: 0;
}

/* ── PRODUCER COMPANY CARDS ── */
.fm-pc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}
.fm-pc-card {
    background: var(--fm-white);
    border-radius: var(--fm-radius);
    padding: 28px;
    border: 1px solid var(--fm-border);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
}
.fm-pc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fm-shadow-md);
}
.fm-pc-logo-top {
    width: 100%;
    height: 80px;
    background: var(--fm-sand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    padding: 10px;
}
.fm-pc-logo-top .fm-pc-logo {
    max-height: 60px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.fm-pc-logo-top .fm-pc-logo-placeholder {
    font-size: 2rem;
}
.fm-pc-header {
    margin-bottom: 16px;
}
.fm-pc-name {
    font-family: var(--fm-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fm-forest);
    margin: 0;
    line-height: 1.3;
}
.fm-pc-name a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .3s;
}
.fm-pc-name a:hover { border-color: var(--fm-amber); }
.fm-pc-location {
    font-size: .82rem;
    color: var(--fm-mid);
    margin-top: 4px;
}
.fm-pc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.fm-pc-tag {
    display: inline-block;
    font-size: .75rem;
    padding: 4px 12px;
    border-radius: 30px;
    background: var(--fm-sand);
    color: var(--fm-forest);
    font-weight: 600;
    letter-spacing: .5px;
}
.fm-pc-tag-commodity {
    background: var(--fm-amber-pale);
    color: var(--fm-amber);
}
.fm-pc-desc {
    font-size: .9rem;
    color: var(--fm-mid);
    line-height: 1.6;
    margin: 0 0 auto;
    padding-bottom: 18px;
}
.fm-pc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    border-top: 1px solid var(--fm-border);
    padding-top: 16px;
    margin-top: auto;
}
.fm-pc-stat { text-align: center; }
.fm-pc-stat-num {
    font-family: var(--fm-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--fm-forest);
    line-height: 1.3;
}
.fm-pc-stat-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--fm-mid);
    margin-top: 2px;
}

/* ── CTA ── */
.fm-cta {
    background: linear-gradient(135deg, var(--fm-forest), var(--fm-forest-mid));
    padding: 80px 0;
    color: var(--fm-white);
}
.fm-cta-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.fm-cta h2 {
    font-family: var(--fm-serif);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--fm-white);
}
.fm-cta p {
    font-size: 1.05rem;
    opacity: .88;
    margin-bottom: 28px;
    line-height: 1.7;
    color: var(--fm-white);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .fm-interventions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .fm-hero { padding: 80px 0 60px; min-height: auto; }
    .fm-section { padding: 60px 0; }
    .fm-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .fm-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
    .fm-stat:nth-child(2n) { border-left: 1px solid rgba(255,255,255,.1); }
    .fm-stat:nth-last-child(-n+2) { border-bottom: none; }
    .fm-interventions-grid { grid-template-columns: 1fr; }
    .fm-pc-grid { grid-template-columns: 1fr; }
    .fm-cta { padding: 60px 0; }
}
@media (max-width: 480px) {
    .fm-container { padding: 0 16px; }
    .fm-hero h1 { font-size: 1.8rem; }
    .fm-stats-grid { grid-template-columns: 1fr; }
    .fm-stat { border: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 20px 16px; }
    .fm-stat:last-child { border-bottom: none; }
    .fm-pc-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .fm-commodity-chip { padding: 12px 18px; font-size: .88rem; }
    .fm-btn { padding: 12px 24px; font-size: .88rem; }
}
