/*
 * moringa-articles.css
 * Pixel-identical to: morifaredesign-swmnq4iy.manus.space/moringa-articles
 * Updated: dynamic CPT — .morifa-ma-card--live vs .morifa-ma-card--placeholder
 */

/* ============================================================
   SECTION 1: HERO
   ============================================================ */

.morifa-ma-hero {
    position: relative;
    background-color: #153c25;
    padding: 192px 0 112px;
    overflow: hidden;
}

.morifa-ma-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    opacity: 0.03;
    background-repeat: repeat;
    pointer-events: none;
}

.morifa-ma-container {
    max-width: 1536px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

.morifa-ma-hero-inner {
    max-width: 48rem;
    position: relative;
    z-index: 1;
}

.morifa-ma-eyebrow {
    font-family: Outfit, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #d1a84b;
    letter-spacing: 3.6px;
    text-transform: uppercase;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.morifa-ma-h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 72px;
    font-weight: 300;
    color: #ffffff;
    margin: 0 0 24px 0;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.morifa-ma-h1-accent {
    color: #d1a84b;
    font-style: italic;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 300;
}

.morifa-ma-hero-desc {
    font-family: Outfit, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    max-width: 36rem;
    margin: 0;
}

@media (max-width: 1023px) { .morifa-ma-h1 { font-size: 60px; } }
@media (max-width: 767px) {
    .morifa-ma-hero { padding: 140px 0 80px; }
    .morifa-ma-h1 { font-size: 48px; }
    .morifa-ma-hero-desc { font-size: 16px; }
}
@media (max-width: 479px) { .morifa-ma-h1 { font-size: 36px; } }

/* ============================================================
   SECTION 2: ARTICLES GRID
   ============================================================ */

.morifa-ma-articles {
    background-color: #f7f5f1;
    padding: 128px 0;
}

.morifa-ma-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) { .morifa-ma-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .morifa-ma-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- Card base ---- */
.morifa-ma-card {
    background-color: #ffffff;
    border: 1px solid rgba(222, 219, 214, 0.2);
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.morifa-ma-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.morifa-ma-card-img {
    position: relative;
    height: 192px;
    overflow: hidden;
    background-color: rgba(49, 87, 63, 0.1);
}

.morifa-ma-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.morifa-ma-card:hover .morifa-ma-card-img img {
    transform: scale(1.05);
}

.morifa-ma-card-body {
    padding: 24px;
}

.morifa-ma-card-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: #2b1f11;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.morifa-ma-card-desc {
    font-family: Outfit, system-ui, sans-serif;
    font-size: 14px;
    color: rgba(43, 31, 17, 0.6);
    line-height: 1.75;
    margin: 0 0 24px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Card button — base (no opacity here) ---- */
.morifa-ma-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f7f5f1;
    color: rgba(43, 31, 17, 0.4);
    font-family: Outfit, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 0;
    border: none;
    text-decoration: none;
}

/* Placeholder: disabled, 0.5 opacity (matches original Manus look) */
.morifa-ma-card--placeholder .morifa-ma-card-btn,
.morifa-ma-card-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Live: full opacity, pointer, hover effect */
.morifa-ma-card--live .morifa-ma-card-btn {
    cursor: pointer;
    opacity: 1;
    color: rgba(43, 31, 17, 0.7);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.morifa-ma-card--live .morifa-ma-card-btn:hover {
    color: #2b1f11;
    background-color: #ede9e4;
}
