/* social_forestry_crema.css */

:root {
    --crm-forest: #165b38;
    --crm-dark: #0f3e26;
    --crm-orange: #f97316;
    --crm-yellow: #fbbf24;
    --crm-light: #f8fafc;
    --crm-border: #e2e8f0;
    --crm-text: #334155;
    --crm-emerald: #10b981;
    --crm-red: #ef4444;
}

.crema-page {
    background: #f1f5f9;
    min-height: 100vh;
    padding-bottom: 100px;
}

.crema-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 60px;
}

/* ── COMMON ── */
.crema-title { font-size: 2rem; font-weight: 800; color: var(--crm-dark); margin-bottom: 15px; }
.crema-title-bar { height: 4px; width: 60px; background: var(--crm-orange); border-radius: 2px; margin-bottom: 25px; }
.crema-title.center { text-align: center; }
.crema-title-bar.center { margin: 0 auto 25px auto; }
.crema-subtitle { font-size: 1.1rem; color: #64748b; line-height: 1.6; max-width: 800px; }
.crema-subtitle.center { text-align: center; margin: 0 auto 40px auto; }

/* ── SPLIT LAYOUT ── */
.crema-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: stretch; margin-bottom: 60px;
}
@media (max-width: 950px) { .crema-split { grid-template-columns: 1fr; } }

.crema-content p { font-size: 1.05rem; line-height: 1.8; color: var(--crm-text); margin-bottom: 20px; }
.crema-highlight {
    background: #fff7ed; border-left: 4px solid var(--crm-orange);
    padding: 20px; border-radius: 0 12px 12px 0;
    display: flex; gap: 15px; align-items: flex-start; margin-top: 30px;
}
.crema-highlight i { font-size: 2rem; color: var(--crm-orange); margin-top: 5px; }
.crema-highlight div { display: flex; flex-direction: column; }
.crema-highlight strong { font-size: 1.1rem; color: #9a3412; margin-bottom: 5px; }
.crema-highlight span { font-size: 0.95rem; color: #c2410c; line-height: 1.5; }

/* ── VS COMPARISON CARD ── */
.crema-vs-card {
    background: #fff; border-radius: 24px; padding: 35px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05); border: 1px solid var(--crm-border);
}
.crema-vs-title { font-size: 1.4rem; font-weight: 800; color: var(--crm-dark); text-align: center; margin-bottom: 30px; }

.vs-row { margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px dashed var(--crm-border); }
.vs-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.vs-label { font-size: 0.85rem; text-transform: uppercase; font-weight: 800; color: #94a3b8; margin-bottom: 15px; text-align: center; letter-spacing: 1px; }

.vs-cols { display: flex; gap: 15px; }
.vs-col {
    flex: 1; padding: 15px; border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center;
}
.vs-col.trad { background: #fee2e2; border: 1px solid #fca5a5; }
.vs-col.eco { background: #d1fae5; border: 1px solid #6ee7b7; }
.vs-tag { font-size: 0.75rem; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; }
.vs-col.trad .vs-tag { color: #b91c1c; }
.vs-col.eco .vs-tag { color: #047857; }
.vs-col strong { font-size: 1rem; color: var(--crm-text); font-weight: 800; }
.vs-col i { font-size: 1.5rem; margin-bottom: 10px; }

.vs-col.bad { color: #b91c1c; font-size: 0.9rem; font-weight: 600; }
.vs-col.good { color: #047857; font-size: 0.9rem; font-weight: 600; }


/* ── LOCATIONS BOX ── */
.crema-locations {
    background: var(--crm-dark); color: #fff; border-radius: 20px; padding: 40px;
    position: relative; overflow: hidden; margin-bottom: 60px;
}
.crema-loc-icon { position: absolute; right: -20px; bottom: -20px; font-size: 10rem; color: rgba(255,255,255,0.05); }
.crema-locations p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 25px; position: relative; z-index: 2; }
.crema-loc-list {
    background: rgba(255,255,255,0.1); padding: 20px; border-radius: 12px;
    font-size: 0.95rem; line-height: 1.6; position: relative; z-index: 2;
    border-left: 4px solid var(--crm-emerald);
}
.crema-loc-list strong { display: block; margin-bottom: 5px; color: var(--crm-yellow); font-size: 1.05rem; }

/* ── METRICS DASHBOARD ── */
.crema-metrics-grid {
    display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
}
.crema-metric-card {
    background: #fff; width: 180px; padding: 30px 20px; border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04); border: 1px solid var(--crm-border);
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: transform 0.3s;
}
.crema-metric-card:hover { transform: translateY(-5px); }
.crema-mc-icon {
    width: 50px; height: 50px; border-radius: 50%; background: #fffbeb; color: var(--crm-orange);
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 15px;
}
.crema-mc-num { font-size: 2.5rem; font-weight: 900; color: var(--crm-dark); line-height: 1; margin-bottom: 10px; }
.crema-mc-name { font-size: 0.85rem; font-weight: 600; color: #64748b; }

.crema-metric-card.total {
    background: linear-gradient(135deg, var(--crm-orange), #ea580c);
    color: #fff; border: none; box-shadow: 0 15px 30px rgba(234, 88, 12, 0.3);
}
.crema-metric-card.total .crema-mc-icon { background: rgba(255,255,255,0.2); color: #fff; }
.crema-metric-card.total .crema-mc-num { color: #fff; }

/* ── TABLE WRAPPER ── */
.crema-table-wrapper {
    background: #fff; border: 1px solid var(--crm-border); border-radius: 20px;
    padding: 35px; box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}
.crema-table-title { font-size: 1.25rem; font-weight: 800; color: var(--crm-dark); margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.crema-table-title i { color: var(--crm-orange); }

.crema-premium-table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
.crema-premium-table th { background: var(--crm-forest); color: #fff; padding: 15px 20px; font-weight: 700; font-size: 0.9rem; }
.crema-premium-table th:first-child { border-top-left-radius: 12px; }
.crema-premium-table th:last-child { border-top-right-radius: 12px; }
.crema-premium-table td { padding: 15px 20px; border-bottom: 1px solid var(--crm-border); color: #475569; font-size: 0.9rem; transition: background 0.2s; }
.crema-premium-table tbody tr:hover td { background: var(--crm-light); }
.crema-premium-table tbody tr:last-child td { border-bottom: none; }
.crema-num { text-align: right; font-weight: 800; color: var(--crm-orange) !important; }

/* ── GALLERY ── */
.crema-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.crema-img-box {
    background: #e2e8f0; height: 250px; border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 2rem;
}
.crema-img-box span { font-size: 1rem; font-weight: 600; margin-top: 15px; }
@media (max-width: 800px) { .crema-gallery { grid-template-columns: 1fr; } }
