/* =========================================
   ANALIK — CASE STUDY DESIGN SYSTEM
   styles/case.css
   ========================================= */

:root {
    --emerald: #0E5C42;
    --emerald-mid: #1a7a58;
    --emerald-light: #D4E6DF;
    --bg: #F4F7F6;
    --bg-dark: #111827;
    --white: #FDFCF9;
    --black: #111827;
    --gray-text: #4B5563;
    --border: #E2E8E4;
}

/* ---- CONTAINER ---- */
.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

/* ---- HERO ---- */
.case-hero {
    position: relative;
    background: var(--bg-dark);
    padding: clamp(100px, 15vw, 160px) 0 clamp(48px, 8vw, 80px);
    overflow: hidden;
}

/* Decorative geometric elements */
.case-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-dot {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(14, 92, 66, 0.5);
}
.hero-dot-1 {
    width: clamp(200px, 30vw, 380px);
    height: clamp(200px, 30vw, 380px);
    top: -80px;
    right: -80px;
    opacity: 0.4;
}
.hero-dot-2 {
    width: clamp(100px, 15vw, 180px);
    height: clamp(100px, 15vw, 180px);
    bottom: -40px;
    left: 5%;
    opacity: 0.25;
    border-color: rgba(212, 230, 223, 0.4);
}

.hero-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(14,92,66,0.35), transparent);
    height: 1px;
    width: 100%;
}
.hero-line-1 { top: 35%; }
.hero-line-2 { top: 65%; opacity: 0.5; }

.case-hero-inner {
    position: relative;
    z-index: 1;
}

.case-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-light);
    margin-bottom: 20px;
    padding: 6px 12px;
    border: 1px solid rgba(212, 230, 223, 0.3);
    border-radius: 100px;
}

.case-hero-title {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
    max-width: 720px;
}

.case-hero-sub {
    font-size: clamp(14px, 2vw, 17px);
    color: rgba(253, 252, 249, 0.65);
    max-width: 580px;
    line-height: 1.6;
    margin: 0;
}

/* ---- META STRIP ---- */
.meta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 32px auto;
    overflow: hidden;
}

.meta-chip {
    flex: 1 1 160px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-chip-divider {
    width: 1px;
    align-self: stretch;
    background: var(--border);
    flex-shrink: 0;
}

.meta-chip-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald);
}

.meta-chip-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    line-height: 1.3;
}

/* ---- ARTICLE / CONTENT ---- */
.case-article {
    padding: 8px 0 0;
}

.case-section {
    margin-bottom: 0;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.case-section:last-child {
    border-bottom: none;
}

.case-section h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 800;
    color: var(--emerald);
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.12em;
}

.case-section h3 {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 700;
    color: var(--black);
    margin: 24px 0 8px;
    letter-spacing: -0.01em;
}

.case-section p {
    font-size: clamp(15px, 1.8vw, 16px);
    color: var(--gray-text);
    line-height: 1.75;
    margin: 0 0 12px;
}

.case-section p:last-child {
    margin-bottom: 0;
}

/* ---- KPI BLOCK ---- */
.kpi-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin: 8px 0;
}

.kpi-card {
    background: var(--bg-dark);
    padding: clamp(28px, 4vw, 44px) clamp(16px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background 0.25s;
}

.kpi-card:hover {
    background: var(--emerald);
}

.kpi-val {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.04em;
    line-height: 1;
}

.kpi-label {
    font-size: clamp(11px, 1.4vw, 13px);
    color: rgba(253, 252, 249, 0.6);
    line-height: 1.4;
    font-weight: 500;
}

/* ---- QUOTE ---- */
.case-quote {
    margin: 24px 0 0;
    padding: 24px 28px;
    border-left: 3px solid var(--emerald);
    background: var(--emerald-light);
    border-radius: 0 8px 8px 0;
}

.case-quote p {
    font-style: italic;
    font-weight: 600;
    font-size: clamp(14px, 1.8vw, 15px) !important;
    color: var(--black) !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

/* ---- FINAL CTA ---- */
.case-cta {
    background: var(--emerald);
    margin-top: 64px;
    padding: clamp(48px, 8vw, 80px) 0;
}

.case-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.case-cta-text {
    max-width: 480px;
}

.case-cta-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-light);
    margin: 0 0 10px;
}

.case-cta h2 {
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

.case-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--emerald);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.case-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* ---- OUTROS CASES ---- */
.outros-cases {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: clamp(48px, 8vw, 80px) 0;
}

.outros-title {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    color: var(--black);
    margin: 0 0 32px;
    letter-spacing: -0.01em;
}

.outros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.outro-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--black);
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.outro-card:hover {
    background: var(--emerald-light);
    border-color: var(--emerald);
    transform: translateY(-3px);
}

.outro-card-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B7280;
}

.outro-card h3 {
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: 700;
    color: var(--black);
    line-height: 1.35;
    margin: 0;
}

.outro-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--emerald);
    margin-top: auto;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
    .kpi-block {
        grid-template-columns: 1fr;
    }

    .meta-chip-divider {
        display: none;
    }

    .meta-chip {
        border-bottom: 1px solid var(--border);
        flex-basis: 100%;
    }

    .meta-strip {
        flex-direction: column;
        gap: 0;
    }

    .case-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .case-cta-btn {
        width: 100%;
        justify-content: center;
    }
}
