/* =========================================
   1. GLOBAL VARIABLES
   ========================================= */
:root {
    --primary: #215a5d;
    --primary-dark: #14383a;
    --gold: #eebb5d;
    --white: #ffffff;
    --text-dark: #222222;
    --text-grey: #555555;
    --bg-light: #f9f9f9;
    --transition: all 0.3s ease;
}

.site-main { overflow-x: hidden; }
.section-padding { padding: 100px 0; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow-width { max-width: 800px; margin: 0 auto; }
.bg-light { background-color: var(--bg-light); }
.bg-theme-solid { background-color: var(--primary); }
.text-white { color: var(--white); }
.text-white-80 { color: rgba(255,255,255,0.85); }
.mb-5 { margin-bottom: 3rem; }

/* Typography */
.section-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.heading-decorator {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--gold) 100%);
    margin: 0 auto 30px auto;
    border-radius: 4px;
}
.lead-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}
.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-grey);
    margin-bottom: 1rem;
}

/* =========================================
   2. SUMMARY CARDS (Snapshot)
   ========================================= */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.summary-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--gold);
}

.card-tag {
    display: inline-block;
    background: #f0f7f7;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.summary-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.summary-challenge, .summary-result {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--text-grey);
}
.summary-card strong { color: var(--text-dark); }

.btn-link-scroll {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.btn-link-scroll:hover { border-bottom-color: var(--gold); }

/* =========================================
   3. DETAILED CASE ROW (Alternating)
   ========================================= */
.case-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* Reorder for Reverse Layout */
.case-row.layout-reverse .case-content-block { order: 1; }
.case-row.layout-reverse .case-visual { order: 2; }

/* Visual Side */
.case-visual img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Content Side */
.detail-badge {
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.case-title {
    font-size: 2.2rem;
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    margin-bottom: 0;
}

.heading-decorator-left {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px 0 30px 0;
    border-radius: 4px;
}

/* Sections (Challenge/Solution/Result) */
.case-section { margin-bottom: 25px; }

.case-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-grey);
}

/* Icons */
.icon-red { color: #e74c3c; }
.icon-green { color: #27ae60; }
.icon-gold { color: var(--gold); }

/* Client Quote */
.client-quote-box {
    background: #f4f9f9;
    padding: 25px;
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    margin-top: 30px;
}

.client-quote-box p {
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.client-name {
    display: block;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

/* =========================================
   4. CTA Buttons (Consistent)
   ========================================= */
.cta-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.btn-glowing-white {
    background: var(--white);
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
    transition: var(--transition);
}
.btn-glowing-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255,255,255,0.7);
}
.btn-border-white {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}
.btn-border-white:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* =========================================
   5. RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .summary-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .case-row, .case-row.layout-reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Reset order on mobile so Text is always below Image, or Image on top? 
       Let's put Image on Top for visual impact */
    .case-row.layout-reverse .case-content-block { order: 2; }
    .case-row.layout-reverse .case-visual { order: 1; }
    
    .case-title { font-size: 1.8rem; }
    .section-heading { font-size: 2.2rem; }
    
    .cta-buttons-wrapper { flex-direction: column; }
    .btn-glowing-white, .btn-border-white { width: 100%; text-align: center; }
}