/* ============================================================
   Cases — Estilos específicos
   ============================================================ */

/* ── 1. Page Title / Hero ──────────────────────────────────── */
.page-title-section {
  position: relative;
  padding: 120px 0 60px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}
.page-title-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,20,40,0.82) 0%, rgba(255,89,86,0.55) 100%);
}
.page-title-section .auto-container {
  position: relative;
  z-index: 1;
}
.page-title-section h1 {
  color: #fff;
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
}
.page-title-section .page-subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 18px;
  margin-bottom: 20px;
}
.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.page-breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.page-breadcrumb a:hover { color: #fff; }
.page-breadcrumb .sep { opacity: 0.5; }
.page-breadcrumb .current { color: #ff5956; }

/* ── 2. Filter Tabs ─────────────────────────────────────────── */
.cases-filter-wrap {
  text-align: center;
  padding: 40px 0 30px;
}
.filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.filter-tabs button {
  padding: 8px 22px;
  border: 2px solid #e8e8e8;
  background: #fff;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}
.filter-tabs button:hover,
.filter-tabs button.active {
  background: #ff5956;
  border-color: #ff5956;
  color: #fff;
}

/* ── 3. Cases Grid & Cards ──────────────────────────────────── */
.cases-section {
  padding: 0 0 80px;
}
.cases-grid {
  margin: 0 -15px;
}
.case-item {
  padding: 15px;
  margin-bottom: 0;
  width: 100%;
  float: left;
}
@media (min-width: 768px)  { .case-item { width: 50%; } }
@media (min-width: 992px)  { .case-item { width: 33.333%; } }
.case-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}
.case-card .image-box {
  position: relative;
  overflow: hidden;
  height: 210px;
}
.case-card .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.case-card:hover .image-box img {
  transform: scale(1.06);
}
.case-card .image-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.45));
}
.case-card .card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.case-card .client-type {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 6px;
}
.case-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  line-height: 1.35;
}
.case-card .metric-highlight {
  margin-bottom: 20px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.case-card .metric-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #ff5956;
  line-height: 1.1;
}
.case-card .metric-label {
  font-size: 13px;
  color: #777;
}
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: #ff5956;
  font-weight: 600;
  font-size: 14px;
  transition: gap 0.3s;
}
.case-link:hover { color: #e04341; gap: 10px; }

/* ── 4. Category Badges ─────────────────────────────────────── */
.category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
}
.category-badge.e-commerce    { background: #ff5956; }
.category-badge.mobile        { background: #6c5ce7; }
.category-badge.marketplace   { background: #00b894; }
.category-badge.b2b           { background: #0984e3; }
.category-badge.erp           { background: #e17055; }
.category-badge.infraestrutura{ background: #636e72; }
.category-badge.plataforma    { background: #f39c12; }

/* badge inline (detail page hero) */
.category-badge-inline {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.category-badge-inline.e-commerce    { background: #ff5956; }
.category-badge-inline.mobile        { background: #6c5ce7; }
.category-badge-inline.marketplace   { background: #00b894; }
.category-badge-inline.b2b           { background: #0984e3; }
.category-badge-inline.erp           { background: #e17055; }
.category-badge-inline.infraestrutura{ background: #636e72; }
.category-badge-inline.plataforma    { background: #f39c12; }

/* ── 5. Case Detail Hero ────────────────────────────────────── */
.case-detail-hero {
  padding: 140px 0 80px;
  text-align: center;
}
.case-detail-hero h1 {
  font-size: 42px;
}
.case-detail-hero .client-type {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  margin-top: 8px;
}

/* ── 6. Metrics Boxes ───────────────────────────────────────── */
.case-metrics-section {
  background: #f8f9fc;
  padding: 50px 0;
}
.metric-box {
  background: #fff;
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  height: 100%;
}
.metric-box .metric-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #ff5956;
  line-height: 1.1;
  margin-bottom: 8px;
}
.metric-box .metric-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* ── 7. Content Blocks ──────────────────────────────────────── */
.case-content-section {
  padding: 70px 0;
}
.content-block {
  margin-bottom: 48px;
}
.content-block:last-child { margin-bottom: 0; }
.content-block .block-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
  color: #fff;
}
.content-block.objetivo  .block-icon { background: #ff5956; }
.content-block.desafio   .block-icon { background: #e17055; }
.content-block.solucao   .block-icon { background: #0984e3; }
.content-block.resultado .block-icon { background: #00b894; }
.content-block h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}
.content-block p {
  color: #555;
  font-size: 15px;
  line-height: 1.8;
}

/* ── 8. Sidebar ─────────────────────────────────────────────── */
.case-sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-box {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}
.sidebar-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #ff5956;
  display: inline-block;
}
.duration-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #555;
}
.duration-item i {
  color: #ff5956;
  margin-top: 2px;
  flex-shrink: 0;
}
.duration-item strong { color: #1a1a2e; }

/* ── 9. Tech Tags ───────────────────────────────────────────── */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-tag {
  padding: 5px 14px;
  background: #f0f2f8;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

/* ── 10. CTA Section ────────────────────────────────────────── */
.case-cta-section {
  padding: 80px 0;
  background-size: cover;
  background-position: center 10%;
  position: relative;
  text-align: center;
}
.case-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,20,40,0.82);
}
.case-cta-section .auto-container {
  position: relative;
  z-index: 1;
}
.case-cta-section h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.case-cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

/* ── 11. Prev/Next Navigation ───────────────────────────────── */
.case-navigation-section {
  padding: 40px 0;
  border-top: 1px solid #eee;
}
.case-nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.case-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid #e8e8e8;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  transition: all 0.3s;
  text-decoration: none;
}
.case-nav-btn:hover {
  border-color: #ff5956;
  color: #ff5956;
}
.case-nav-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}
.case-nav-all {
  font-size: 13px;
  color: #999;
  text-decoration: none;
  transition: color 0.3s;
}
.case-nav-all:hover { color: #ff5956; }

/* ── 12. Responsivo ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .page-title-section h1 { font-size: 36px; }
  .case-detail-hero h1   { font-size: 30px; }
  .case-sidebar { position: static; margin-top: 40px; }
}
@media (max-width: 767px) {
  .page-title-section { padding: 100px 0 50px; }
  .page-title-section h1 { font-size: 28px; }
  .filter-tabs button { padding: 7px 16px; font-size: 13px; }
  .metric-box .metric-number { font-size: 28px; }
  .case-cta-section h2 { font-size: 26px; }
  .case-nav-links { flex-direction: column; align-items: center; }
}
