/* ============================================================
   case-studies.css  –  Shared stylesheet for all case study pages
   ============================================================ */

/* --- RESET & VARIABLES --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --white:    #ffffff;
    --off-white:#fcfbf9;
    --gold:     #D4940A;
    --gold-bg:  #FFF8E7;
    --gold-lt:  #FCEDC4;
    --black:    #111111;
    --mid:      #444444;
    --muted:    #777777;
    --border:   #e8e4dc;
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

.main-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 20px;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%   { transform: scale(1);   opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.anim-fade-up { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* leading_2 uses r-delay- prefix */
.r-delay-1 { transition-delay: 0.1s; }
.r-delay-2 { transition-delay: 0.2s; }
.r-delay-3 { transition-delay: 0.3s; }

/* --- HERO --- */
.hero {
    display: flex;
    flex-wrap: wrap;
    min-height: 550px;
    margin-bottom: 40px;
}

.hero-left {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 5%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-eyebrow::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.hero-title {
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--mid);
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    background: var(--gold-bg);
    border: 1px solid var(--gold-lt);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 148, 10, 0.2);
}

.hero-right {
    flex: 1 1 400px;
    position: relative;
    background: var(--off-white);
    min-height: 400px;
    overflow: hidden;
}

.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}
.hero-right:hover img { transform: scale(1.05); }

/* --- SHARED ROWS (audit / healthcare / global) --- */
.change-row,
.content-row,
.challenge-row {
    display: flex;
    align-items: center;
    padding: 30px;
    border-left: 5px solid var(--border);
    background: var(--white);
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.change-row:hover,
.content-row:hover {
    border-left-color: var(--gold);
    background: var(--gold-bg);
    transform: translateX(20px);
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.05);
}

.challenge-row:hover {
    border-left-color: var(--gold);
    background: var(--gold-bg);
    transform: translateX(20px);
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.05);
}

.c-icon,
.c-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--gold);
    margin-right: 25px;
}

/* --- SOLUTION / SOL CARDS --- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sol-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sol-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(212, 148, 10, 0.15);
}

.card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 15px;
    display: block;
}

/* --- STEP CIRCLES --- */
.step-circle {
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    position: relative;
}

.step-circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* --- DARK IMPACT CARD --- */
.impact-card {
    background: #000;
    padding: 60px;
    border-radius: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.impact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 148, 10, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* --- IMPACT TABLE (dark bg variant – global / healthcare / benneten) --- */
.impact-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    position: relative;
    z-index: 2;
}

.impact-table th {
    text-align: left;
    padding: 15px;
    color: var(--gold);
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
}

.impact-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #222;
    transition: color 0.3s ease;
}

.impact-table tr:hover td { color: var(--gold-lt); }

/* --- PHASE CARDS (benneten) --- */
.phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.phase-card {
    background: var(--white);
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: 0.4s;
    position: relative;
}

.phase-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.phase-num {
    font-size: 40px;
    font-weight: 800;
    color: var(--gold-lt);
    position: absolute;
    top: 20px;
    right: 30px;
}

/* --- LEADING B2B SPECIFIC --- */
.context-band {
    background: var(--off-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 50px 5%;
    margin-bottom: 60px;
}

.context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.ctx-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 12px;
}

.ctx-big {
    font-size: 17px;
    font-weight: 600;
    color: var(--black);
    line-height: 1.5;
}

.sec { padding: 60px 5%; clear: both; }

.label {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 15px;
    display: block;
}

.heading {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 35px;
    text-transform: uppercase;
}

.rule {
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin-bottom: 45px;
}

/* challenges grid (leading) */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.challenge-item {
    display: flex;
    gap: 20px;
    padding: 20px 15px 20px 0;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    transition: transform 0.3s ease, border-left-color 0.3s ease, padding-left 0.3s ease, background-color 0.3s ease;
}

.challenge-item:hover {
    transform: translateX(5px);
    border-left-color: var(--gold);
    padding-left: 15px;
    background-color: var(--off-white);
    border-radius: 0 8px 8px 0;
}

/* redefine c-num for leading (smaller, no margin-right needed) */
.challenges-grid .c-num {
    font-weight: 800;
    color: var(--gold);
    font-size: 14px;
    min-width: 30px;
    margin-right: 0;
}

.c-desc { font-size: 16px; color: var(--black); font-weight: 500; }

.solution-sec {
    background: var(--off-white);
    border-top: 1px solid var(--border);
}

.caps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cap-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.cap-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(212, 148, 10, 0.1);
    border-color: var(--gold-lt);
}

.cap-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.cap-card:hover .cap-dot { transform: scale(1.5); }
.cap-text { font-size: 15px; font-weight: 600; color: var(--black); }

.process-sec { background: var(--gold-bg); padding: 80px 5%; }

.steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.step { cursor: default; }

/* leading uses outline circle style */
.steps-row .step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--white);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    min-width: unset;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s ease, color 0.4s ease;
    position: relative;
}

/* remove pulse on leading circles */
.steps-row .step-circle::after { display: none; }

.step:hover .step-circle {
    transform: scale(1.15) rotate(5deg);
    background-color: var(--gold);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(212, 148, 10, 0.3);
}

.step-name { font-weight: 700; font-size: 14px; color: var(--black); line-height: 1.3; transition: color 0.3s ease; }
.step:hover .step-name { color: var(--gold); }

.impact-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
    align-items: flex-start;
}

/* impact table light variant (leading) */
.impact-table-light { width: 100%; border-collapse: collapse; }
.impact-table-light th {
    text-align: left;
    padding: 15px;
    background: var(--off-white);
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 12px;
    border-bottom: 2px solid var(--border);
}

.impact-row { transition: background-color 0.3s ease, transform 0.3s ease; }
.impact-row td { padding: 20px 15px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 500; transition: border-color 0.3s ease; }
.impact-row:hover { background-color: var(--gold-bg); transform: translateX(5px); }
.impact-row:hover td { border-bottom-color: transparent; }
.area-col { font-weight: 800; color: var(--black); width: 35%; }

.summary-box {
    background: var(--white);
    padding: 50px 5%;
    border-left: 5px solid var(--gold);
    margin: 40px 5%;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 500;
    color: var(--mid);
    font-style: italic;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.summary-box:hover {
    box-shadow: 0 15px 40px rgba(212, 148, 10, 0.08);
    transform: translateY(-3px);
}

/* --- PROCESS STEPS (healthcare / global vertical layout) --- */
.process-step-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    align-items: center;
}

.process-step-num {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-weight: 800;
    flex-shrink: 0;
}

/* --- GLOBAL PAGE: dashed stat box --- */
.stat-box {
    border: 2px dashed var(--gold);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
}

.stat-box h3 {
    font-size: 40px;
    color: var(--gold);
    font-weight: 800;
}

.stat-box p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 11px;
}

/* --- AUDIT: centered dark CTA --- */
.impact-card.center-cta {
    text-align: center;
    padding: 80px 60px;
    border-radius: 40px;
}

/* ============================================================
   UTILITY / HELPER CLASSES  (used across PHP templates)
   ============================================================ */

/* Spacing */
.cs-mb-20  { margin-bottom: 20px; }
.cs-mb-40  { margin-bottom: 40px; }
.cs-mb-50  { margin-bottom: 50px; }
.cs-mb-60  { margin-bottom: 60px; }
.cs-mt-15  { margin-top: 15px; }
.cs-mt-20  { margin-top: 20px; }
.cs-mt-30  { margin-top: 30px; }
.cs-mt-40  { margin-top: 40px; }

/* Section padding */
.cs-section-pad        { padding: 80px 5%; }
.cs-section-pad-sm     { padding: 60px 5%; }
.cs-section-pad-bottom { padding: 40px 5% 100px; }

/* Hero margin-top variant */
.cs-hero-mt { margin-top: 60px; }

/* Text helpers */
.cs-text-center { text-align: center; }
.cs-color-mid   { color: var(--mid); }
.cs-body-bold   { font-weight: 600; }

/* Section headings */
.cs-section-title {
    font-size: 36px;
    font-weight: 800;
}

.cs-gold-title { color: var(--gold); }

.cs-gold-cta {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
}

.cs-global-cta {
    font-weight: 800;
    color: var(--gold);
}

.cs-label-gold {
    color: var(--gold);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
}

/* Row / cell text */
.cs-row-text { font-size: 18px; font-weight: 600; }

/* Body text sizes */
.cs-body-large { font-size: 18px; line-height: 1.6; }
.cs-body-mid   { font-size: 16px; font-weight: 600; }
.cs-cap-text   { font-weight: 700; font-size: 18px; line-height: 1.4; }

/* Card body */
.cs-card-body { font-weight: 600; }

/* Off-white section */
.cs-off-white-section {
    background: var(--off-white);
    padding: 100px 5%;
}

/* Dark section (healthcare process) */
.cs-dark-section {
    background: var(--black);
    color: white;
    padding: 100px 5%;
}

/* Quote / testimonial section */
.cs-quote-section {
    background: var(--gold-bg);
    padding: 80px 5%;
    text-align: center;
}

.cs-quote-text {
    font-size: 22px;
    font-weight: 600;
    font-style: italic;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.6;
}

.cs-quote-large {
    font-size: 24px;
    line-height: 1.6;
}

/* Impact card headings / sub */
.cs-impact-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--gold);
}

.cs-impact-sub {
    color: #888;
    margin-bottom: 40px;
}

.cs-impact-footer-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.cs-impact-footer-grid strong { display: block; }
.cs-impact-footer-grid small  { display: block; }

.cs-gold-label { color: var(--gold); }

/* Table cell bold */
.cs-td-bold { font-weight: 800; padding: 25px 20px; }

/* Process step text */
.cs-process-text { font-size: 18px; }
.cs-step-text    { font-size: 18px; font-weight: 600; padding-top: 15px; }

/* Steps vertical layout */
.cs-steps-vertical { max-width: 800px; margin: 0 auto; }

/* Business context grid (global) */
.cs-biz-context-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Two-col grid (benneten challenge + summary) */
.cs-two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

/* Three-col results grid */
.cs-three-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* Four-col grid */
.cs-four-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Meta info row (healthcare context) */
.cs-meta-row {
    margin-top: 30px;
    display: flex;
    gap: 40px;
    font-weight: 700;
}

.cs-meta-item { font-weight: 700; }

/* Plain list (benneten challenge) */
.cs-plain-list { list-style: none; font-size: 14px; }
.cs-plain-list li { margin-bottom: 10px; }
.cs-plain-list li::before { content: "• "; }

/* Executive summary box (benneten) */
.cs-exec-summary-box {
    background: var(--off-white);
    padding: 40px;
    border-radius: 30px;
}

.cs-exec-title { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.cs-exec-body  { font-size: 16px; line-height: 1.7; }

/* Phase card headings */
.cs-phase-heading { margin-bottom: 15px; }
.cs-phase-body    { font-size: 14px; color: var(--mid); }

/* Result labels */
.cs-result-label {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 10px;
}

/* Leading B2B: process section label colour override */
.cs-label-dark { color: var(--black); }

/* Impact intro paragraph */
.cs-impact-intro { font-size: 18px; margin-bottom: 30px; font-weight: 600; }

/* CTA icon wrapper (audit) */
.cs-cta-icon-wrap {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 30px;
}

.cs-cta-title {
    color: white;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.cs-cta-sub {
    color: #888;
    font-size: 14px;
    letter-spacing: 2px;
}

/* --- DOWNLOAD BUTTON --- */
.btn-download {
    width: 300px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a9e4a;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 14px 30px;
    border-radius: 50px;
    border: 2px solid transparent;
    text-decoration: none;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(26, 158, 74, 0.35);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.btn-download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.btn-download:hover {
    background: #158040;
    box-shadow: 0 10px 32px rgba(26, 158, 74, 0.5);
    transform: translateY(-3px);
    color: #ffffff;
    text-decoration: none;
    border-color: rgba(255,255,255,0.2);
}

.btn-download:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26, 158, 74, 0.4);
}

.btn-download svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn-download:hover svg {
    transform: translateY(2px);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-left { padding: 40px 5%; }
    .hero-right { height: 300px; }
    .impact-layout { grid-template-columns: 1fr; }
    .impact-card { padding: 40px 25px; }
}
.case_study_top{
    margin-top: 61px;
}
