/* ============================================
   THE PROBLEM PAGE CSS — page-problem.css
   Soil to Soul Theme
   ============================================ */

/* --- Problem Hero --- */
.problem-hero {
    padding: 80px 32px 64px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
/* Cracked earth texture feel via CSS */
.problem-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,92,58,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.problem-hero__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    max-width: 820px;
}
.problem-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 24px;
}
.problem-hero__eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--brown);
}
.problem-hero__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 700;
    line-height: 1.0;
    color: var(--ink);
    letter-spacing: -2.5px;
    margin-bottom: 32px;
}
.problem-hero__title em { color: var(--brown); font-style: italic; }
.problem-hero__lead {
    font-family: var(--font-accent);
    font-size: 20px;
    font-style: italic;
    color: var(--ink-mid);
    line-height: 1.65;
    max-width: 620px;
}

/* --- Essay Section --- */
.problem-essay {
    padding: 80px 32px;
    background: var(--cream);
}
.problem-essay__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 80px;
    align-items: start;
}

.essay-body {
    font-size: 17px;
    color: var(--ink-mid);
    line-height: 1.85;
}
.essay-body p { margin-bottom: 28px; }
.essay-body p:last-child { margin-bottom: 0; }
.essay-body strong { color: var(--ink); font-weight: 600; }

/* Chapter markers */
.essay-chapter {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 20px;
    margin-top: 48px;
}
.essay-chapter:first-child { margin-top: 0; }
.essay-chapter::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.essay-chapter-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.8px;
    margin-bottom: 20px;
    line-height: 1.25;
}

/* Soil test inset box */
.essay-inset {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    margin: 32px 0;
    border-left: 4px solid var(--brown);
    box-shadow: var(--shadow);
}
.essay-inset__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 12px;
}
.essay-inset__text { font-size: 15px; color: var(--ink-mid); line-height: 1.7; }
.essay-inset__text em { color: var(--brown); font-style: italic; }

/* Sidebar */
.essay-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 32px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}
.sidebar-card__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 12px;
}
.sidebar-card__big {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--brown);
    line-height: 1;
    margin-bottom: 6px;
}
.sidebar-card__desc { font-size: 13px; color: var(--ink-mid); line-height: 1.5; }

.sidebar-quote {
    background: var(--ink);
    border-radius: 12px;
    padding: 24px;
    color: var(--white);
}
.sidebar-quote__hindi {
    font-family: var(--font-accent);
    font-size: 16px;
    font-style: italic;
    color: var(--brown-lt);
    margin-bottom: 10px;
    line-height: 1.5;
}
.sidebar-quote__translation {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 12px;
}
.sidebar-quote__attr {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

/* --- Crisis Section --- */
.problem-crisis {
    padding: 80px 32px 100px;
    background: var(--white);
}
.problem-crisis__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.problem-crisis__header {
    margin-bottom: 56px;
    max-width: 600px;
}
.problem-crisis__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 12px;
}
.problem-crisis__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -1px;
    line-height: 1.15;
}

/* Three-cause grid */
.crisis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.crisis-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}
.crisis-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.crisis-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--brown);
    opacity: 0;
    transition: opacity 0.25s;
}
.crisis-card:hover::before { opacity: 1; }
.crisis-card__num {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -3px;
}
.crisis-card__icon { font-size: 32px; margin-bottom: 16px; display: block; }
.crisis-card__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}
.crisis-card__text { font-size: 14px; color: var(--ink-mid); line-height: 1.7; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .problem-essay__inner { grid-template-columns: 1fr; gap: 48px; }
    .essay-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .sidebar-card, .sidebar-quote { flex: 1; min-width: 200px; }
    .crisis-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .problem-hero { padding: 48px 20px 56px; }
    .problem-essay { padding: 56px 20px; }
    .problem-crisis { padding: 56px 20px 80px; }
    .crisis-grid { grid-template-columns: 1fr; }
    .essay-sidebar { flex-direction: column; }
}
