/* ==========================================================================
   SOLUTIONS CATALOG (CASE STUDIES) — solutions-catalog.css
   ISIS Papyrus Design System — Same filter/hero pattern as references
   ========================================================================== */
:root {
    --sc-primary: #6bb8be; --sc-primary-dark: #5aa8ae; --sc-primary-rgb: 107,184,190;
    --sc-navy: #1e293b; --sc-bg: #f8fafc; --sc-white: #ffffff;
    --sc-border: #e2e8f0; --sc-text: #334155; --sc-text-light: #64748b; --sc-text-lighter: #94a3b8;
    --sc-shadow-sm: 0 1px 3px rgba(0,0,0,0.06); --sc-shadow: 0 4px 16px rgba(0,0,0,0.08);
    --sc-radius: 10px; --sc-ease: cubic-bezier(0.4,0,0.2,1); --sc-sidebar-w: 272px;
}

/* ===== HERO ===== */
.sc-hero { position: relative; background: var(--sc-navy); overflow: hidden; }
.sc-hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(30,41,59,0.92) 0%, rgba(30,41,59,0.78) 40%, rgba(30,41,59,0.5) 70%, rgba(30,41,59,0.35) 100%), url('https://images.unsplash.com/photo-1553028826-f4804a6dba3b?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat; z-index: 0; }
.sc-hero .container { z-index: 1; }
.sc-hero__layout { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 68px 0 64px; }
.sc-hero__content { flex: 1; max-width: 580px; }
.sc-hero__title { font-family: 'Montserrat', sans-serif; font-size: 2.8rem; font-weight: 800; color: var(--sc-white); line-height: 1.12; margin: 0 0 16px; }
.sc-hero__subtitle { font-size: 2rem; font-weight: 400; color: rgba(255,255,255,0.72); line-height: 1.55; margin: 0 0 28px; max-width: 540px; }
.sc-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sc-hero__btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 8px; font-family: 'Montserrat', sans-serif; font-weight: 600; text-decoration: none; transition: all 0.3s var(--sc-ease); }
.sc-hero__btn--primary { background: white; color: #5aa8ae; border: 2px solid white; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.sc-hero__btn--primary:hover { background: rgba(255,255,255,0.15); color: white; border-color: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); text-decoration: none; }
.sc-hero__btn--secondary { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.95); border: 1.5px solid rgba(255,255,255,0.3); backdrop-filter: blur(10px); }
.sc-hero__btn--secondary:hover { background: rgba(255,255,255,0.25); color: white; border-color: rgba(255,255,255,0.5); text-decoration: none; transform: translateY(-2px); }

.sc-hero__stats { display: flex; gap: 14px; flex-shrink: 0; }
.sc-hero__stat { background: rgba(255,255,255,0.06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 28px 32px; text-align: center; min-width: 155px; transition: all 0.3s var(--sc-ease); }
.sc-hero__stat:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.sc-hero__stat-num { display: block; font-family: 'Montserrat', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--sc-white); line-height: 1.1; }
.sc-hero__stat-label { display: block; font-weight: 600; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }

/* ===== MAIN ===== */
.sc-main { background: var(--sc-bg); padding: 36px 0 60px; }
.sc-layout { display: flex; gap: 28px; align-items: flex-start; }

/* ===== SIDEBAR — mirrors references exactly ===== */
.sc-sidebar { width: var(--sc-sidebar-w); flex-shrink: 0; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.sc-sidebar::-webkit-scrollbar { width: 4px; }
.sc-sidebar::-webkit-scrollbar-track { background: transparent; margin: 14px 4px; }
.sc-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.sc-sidebar { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.sc-sidebar__inner { background: var(--sc-white); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 20px; box-shadow: var(--sc-shadow-sm); }
.sc-sidebar__header { display: none; }
.sc-sidebar__title { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--sc-navy); margin: 0; display: flex; align-items: center; gap: 8px; }
.sc-sidebar__close { background: none; border: none; color: var(--sc-text-light); cursor: pointer; padding: 4px; line-height: 1; }

.sc-filter-group { margin-bottom: 20px; } .sc-filter-group:last-child { margin-bottom: 0; }
.sc-search { position: relative; }
.sc-search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--sc-text-lighter); pointer-events: none; }
.sc-search__input { width: 100%; height: 40px; padding: 0 34px 0 36px; border: 1.5px solid var(--sc-border); border-radius: 8px; font-family: inherit; font-weight: 500; color: var(--sc-text); background: var(--sc-white); transition: all 0.25s var(--sc-ease); outline: none; }
.sc-search__input:focus { border-color: var(--sc-primary); box-shadow: 0 0 0 3px rgba(var(--sc-primary-rgb), 0.12); }
.sc-search__input::placeholder { color: var(--sc-text-lighter); font-weight: 400; }
.sc-search__clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--sc-text-lighter); cursor: pointer; padding: 4px; line-height: 1; display: none; }
.sc-search__clear.visible { display: block; }

.sc-filter-meta { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--sc-border); }
.sc-filter-count { font-weight: 600; color: var(--sc-text-light); }
.sc-filter-count strong { color: var(--sc-navy); }
.sc-filter-reset { font-family: inherit; font-weight: 600; color: var(--sc-primary-dark); background: none; border: none; cursor: pointer; padding: 3px 6px; border-radius: 4px; display: none; align-items: center; gap: 4px; }
.sc-filter-reset.visible { display: inline-flex; }
.sc-filter-reset:hover { background: rgba(var(--sc-primary-rgb), 0.08); }

.sc-filter-heading { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--sc-navy); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; }
.sc-filter-options { display: flex; flex-direction: column; gap: 3px; }
.sc-filter-btn { display: flex; align-items: center; width: 100%; padding: 7px 10px; border: none; border-radius: 6px; background: transparent; font-family: inherit; font-weight: 500; color: var(--sc-text); cursor: pointer; transition: all 0.2s var(--sc-ease); text-align: left; gap: 8px; }
.sc-filter-btn:hover { background: rgba(var(--sc-primary-rgb), 0.06); color: var(--sc-primary-dark); }
.sc-filter-btn.active { background: rgba(var(--sc-primary-rgb), 0.1); color: var(--sc-primary-dark); font-weight: 600; }
.sc-filter-btn__icon { width: 18px; text-align: center; color: var(--sc-text-lighter); flex-shrink: 0; }
.sc-filter-btn.active .sc-filter-btn__icon { color: var(--sc-primary-dark); }
.sc-filter-btn__label { flex: 1; }
.sc-filter-btn__count { font-weight: 600; color: var(--sc-text-lighter); min-width: 22px; text-align: right; flex-shrink: 0; }
.sc-filter-btn.active .sc-filter-btn__count { color: var(--sc-primary-dark); }

.sc-mobile-toggle { display: none; align-items: center; gap: 8px; width: 100%; padding: 12px 16px; border: 1.5px solid var(--sc-border); border-radius: 8px; background: var(--sc-white); font-family: inherit; font-weight: 600; color: var(--sc-navy); cursor: pointer; margin-bottom: 20px; box-shadow: var(--sc-shadow-sm); }
.sc-mobile-badge { margin-left: auto; background: var(--sc-primary); color: var(--sc-white); font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: none; align-items: center; justify-content: center; padding: 0 6px; }
.sc-mobile-badge.visible { display: inline-flex; }
.sc-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 999; opacity: 0; transition: opacity 0.3s; }
.sc-overlay.open { display: block; opacity: 1; }

/* ===== CONTENT ===== */
.sc-content { flex: 1; min-width: 0; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* ===== CASE STUDY CARD — logo white bg, consistent sizing, headline prominent ===== */
.sc-card { background: var(--sc-white); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); overflow: hidden; transition: all 0.25s var(--sc-ease); display: flex; flex-direction: column; position: relative; opacity: 0; transform: translateY(10px); animation: scFadeIn 0.3s ease forwards; }
@keyframes scFadeIn { to { opacity: 1; transform: translateY(0); } }
.sc-card:hover { border-color: rgba(var(--sc-primary-rgb), 0.3); box-shadow: var(--sc-shadow); transform: translateY(-3px); }
.sc-card__link { position: absolute; inset: 0; z-index: 1; }

/* Logo — WHITE background, consistent height, centered */
.sc-card__logo { height: 110px; display: flex; align-items: center; justify-content: center; padding: 18px 24px; background: var(--sc-white); border-bottom: 1px solid var(--sc-border); }
.sc-card__logo img { max-height: 100px; max-width: 200px; width: auto; height: auto; object-fit: contain; }

.sc-card__body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }

/* Company name — smaller, secondary */
.sc-card__company { font-weight: 600; color: var(--sc-text-light); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.03em; }

/* Case study headline — BIGGER, primary */
.sc-card__headline { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--sc-navy); line-height: 1.35; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Meta — region + industry */
.sc-card__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--sc-text-light); margin-bottom: 10px; }
.sc-card__meta-sep { color: var(--sc-border); }

.sc-card__excerpt { font-weight: 400; color: var(--sc-text-light); line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Footer with language links */
.sc-card__footer { padding: 10px 20px; border-top: 1px solid var(--sc-border); display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.sc-card__langs a { font-weight: 600; color: var(--sc-primary-dark); text-decoration: none; padding: 2px 4px; border-radius: 3px; transition: all 0.2s; }
.sc-card__langs a:hover { background: rgba(var(--sc-primary-rgb), 0.1); }
.sc-card__langs span { color: var(--sc-text-lighter); margin: 0 2px; }
.sc-card__arrow { color: var(--sc-text-lighter); transition: all 0.25s; }
.sc-card:hover .sc-card__arrow { color: var(--sc-primary); transform: translateX(3px); }

.sc-card:nth-child(1){animation-delay:0s}.sc-card:nth-child(2){animation-delay:.05s}.sc-card:nth-child(3){animation-delay:.1s}.sc-card:nth-child(4){animation-delay:.15s}.sc-card:nth-child(5){animation-delay:.2s}.sc-card:nth-child(6){animation-delay:.25s}.sc-card:nth-child(n+7){animation-delay:.3s}
.sc-hl { background: rgba(var(--sc-primary-rgb), 0.2); border-radius: 2px; padding: 0 1px; }

/* ===== EMPTY ===== */
.sc-empty { display: none; text-align: center; padding: 70px 20px; color: var(--sc-text-light); }
.sc-empty.visible { display: block; }
.sc-empty i { display: block; margin-bottom: 16px; color: var(--sc-text-lighter); }
.sc-empty h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--sc-navy); margin-bottom: 6px; }
.sc-empty__btn { font-family: inherit; font-weight: 600; padding: 10px 22px; border-radius: 8px; border: none; background: var(--sc-primary); color: var(--sc-white); cursor: pointer; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) { .sc-hero__layout { gap: 32px; } .sc-hero__stat { min-width: 130px; padding: 22px 20px; } .sc-hero__stat-num { font-size: 2rem; } }
@media (max-width: 991px) {
    .sc-hero__layout { flex-direction: column; gap: 28px; padding: 56px 0 48px; }
    .sc-hero__content { max-width: none; } .sc-hero__title { font-size: 2.4rem; }
    .sc-hero__stats { width: 100%; justify-content: center; } .sc-hero__stat { flex: 1; max-width: 200px; }
    .sc-sidebar { position: fixed; top: 0; left: -320px; width: 300px; height: 100vh; max-height: 100vh; z-index: 1000; background: var(--sc-white); border-radius: 0; transition: left 0.3s var(--sc-ease); padding: 0; }
    .sc-sidebar.open { left: 0; }
    .sc-sidebar__inner { border: none; border-radius: 0; box-shadow: none; height: 100%; overflow-y: auto; padding: 20px; }
    .sc-sidebar__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--sc-border); }
    .sc-mobile-toggle { display: flex; }
}
@media (max-width: 767px) { .sc-hero__layout { padding: 44px 0 36px; } .sc-hero__title { font-size: 2rem; } .sc-hero__subtitle { font-size: 1.6rem; } .sc-hero__stat { padding: 18px 14px; } .sc-hero__stat-num { font-size: 1.6rem; } .sc-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .sc-hero__stat { min-width: unset; } .sc-card__body { padding: 14px 16px; } .sc-card__logo { height: 90px; padding: 14px 18px; } .sc-card__logo img { max-height: 60px; max-width: 140px; } }
body.sc-sidebar-open { overflow: hidden; }