/* ── GRID DE CASES (archive-case.php) ──────────────────────────── */
.cases-section { padding: 100px 60px; background: var(--white); }
.cases-inner { max-width: 1200px; margin: 0 auto; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.case-card { background: var(--white); border: 1px solid var(--gray-light); border-radius: 4px; overflow: hidden; transition: box-shadow .25s, transform .25s; text-decoration: none; display: block; color: inherit; }
.case-card:hover { box-shadow: 0 16px 40px rgba(28,52,100,.12); transform: translateY(-4px); }
.case-image { position: relative; height: 220px; overflow: hidden; background: var(--off-white); }
.case-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.case-card:hover .case-image img { transform: scale(1.06); }
.case-tag {
  position: absolute; top: 16px; left: 16px; background: var(--orange); color: white;
  font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 6px 14px; border-radius: 2px;
}
.case-body { padding: 28px 26px 30px; }
.case-title { font-family: var(--font-cond); font-size: 23px; font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 10px; }
.case-excerpt { font-size: 14.5px; font-weight: 300; color: var(--gray-dark); line-height: 1.7; margin-bottom: 18px; }
.case-link { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.case-card:hover .case-link { color: var(--orange-dk); }

/* ── DETALHE DO CASE (single-case.php) ─────────────────────────── */
.case-hero-image { max-width: 1200px; margin: -16px auto 0; padding: 0 60px; position: relative; z-index: 3; }
.case-hero-image img { width: 100%; height: 460px; object-fit: cover; border-radius: 4px; display: block; box-shadow: 0 24px 48px rgba(28,52,100,.18); }

.gallery-section { padding: 0 60px 100px; background: var(--white); }
.gallery-inner { max-width: 1200px; margin: 0 auto; }
.gallery-title { font-family: var(--font-cond); font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 28px; }
.case-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case-gallery-grid img {
  width: 100%; height: 160px; object-fit: cover; border-radius: 4px; display: block; cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.case-gallery-grid img:hover { opacity: .85; transform: scale(1.02); }

.lightbox {
  position: fixed; inset: 0; background: rgba(7,15,30,.92); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 4px; box-shadow: 0 24px 64px rgba(0,0,0,.4); }
.lightbox-close {
  position: absolute; top: 24px; right: 32px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: var(--white);
  font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

.case-specs { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.case-specs li { display: flex; flex-direction: column; gap: 3px; }
.case-specs .spec-label { font-family: var(--font-head); font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); }
.case-specs .spec-value { font-size: 15.5px; color: var(--text); font-weight: 500; }

/* .orc-buttons / .btn-outline-light agora vivem em forms.css (carregado em todas as páginas) */

@media (max-width: 980px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .case-hero-image img { height: 280px; }
  .case-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cases-grid { grid-template-columns: 1fr; }
  .cases-section, .gallery-section { padding-left: 20px; padding-right: 20px; }
  .case-hero-image { padding-left: 20px; padding-right: 20px; }
}
