/* =========================================================================
 * case-results.css — Case Results listing template (CPT archive + results.php)
 * Unique selectors only. Shared chrome (nav, footer, .global-map,
 * .popup-*, .ft-*, .container, .eyebrow) lives in global.css.
 * Tokens come from global.css :root — never redefined here.
 * Source of truth: website/v2/final version/gibson-case-results-toggle.html
 * Breakpoints: 1024 / 900 / 768 / 480 (as the source uses).
 * ========================================================================= */

/* --softer-text (and all semantic tokens) are inherited from global.css :root
   + its [data-theme="dark"] block — never redefined here. */

/* ── HERO (case-results variant — short, centered) ── */
.cr-hero {
  min-height: 50vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden; background: var(--navy);
  padding: 140px 48px 80px;
}
.cr-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(244,100,33,0.06) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 30% 70%, rgba(0,180,216,0.03) 0%, transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--deep-purple) 50%, var(--navy-90) 100%);
}
.cr-hero-grain {
  position: absolute; inset: 0; z-index: 1; opacity: 0.035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cr-hero-lines { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.cr-hero-lines::before, .cr-hero-lines::after { content: ''; position: absolute; height: 1px; background: rgba(255,255,255,0.03); left: 0; right: 0; }
.cr-hero-lines::before { top: 33%; }
.cr-hero-lines::after { top: 66%; }
.cr-hero-inner { position: relative; z-index: 3; max-width: 800px; }
.cr-hero-overline {
  font-size: 11px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--fire); font-weight: 600; margin-bottom: 32px;
}
.cr-hero-big {
  font-family: var(--display); font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700; color: var(--fire); line-height: 0.85;
  margin-bottom: 12px; position: relative;
}
.cr-hero-big-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 500px; height: 250px;
  background: radial-gradient(ellipse, rgba(244,100,33,0.1) 0%, transparent 70%);
  z-index: -1; pointer-events: none;
}
.cr-hero-sub {
  font-family: var(--display); font-size: 1.3rem; font-weight: 400;
  color: var(--smoke); line-height: 1.5; margin-bottom: 36px;
}
.cr-hero-h2 {
  font-family: var(--display); font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 600; line-height: 1.12; color: #fff;
}

/* ── STATS BAR ── */
.cr-stats-bar { background: var(--fire); padding: 0; position: relative; z-index: 4; }
.cr-stats-bar::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%); }
.cr-stats-inner {
  max-width: 1200px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(4, 1fr); position: relative;
}
.cr-stat-item {
  padding: 32px 24px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.cr-stat-item:last-child { border-right: none; }
.cr-stat-val {
  font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: #fff; line-height: 1; margin-bottom: 4px;
}
.cr-stat-lbl {
  font-size: 10px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.75);
}

/* ── FILTER BAR ── */
.cr-filter-bar { background: var(--chalk-warm); padding: 28px 0; position: relative; z-index: 3; }
.cr-filter-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  justify-content: center;
}
.cr-filter-pill {
  display: inline-block; padding: 10px 22px;
  font-family: var(--body); font-size: 13px; font-weight: 500;
  letter-spacing: 0.5px; color: var(--ink);
  background: transparent; border: 1px solid var(--parchment);
  cursor: pointer; transition: all .3s var(--ease);
  text-decoration: none;
}
.cr-filter-pill:hover { border-color: var(--fire); color: white; }
.cr-filter-pill.active {
  background: var(--fire); color: #fff;
  border-color: var(--fire);
}

/* ── RESULTS GRID ── */
.cr-results { background: var(--navy); padding: 80px 0 0; position: relative; overflow: hidden; }
.cr-results::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(244,100,33,0.03) 0%, transparent 50%),
             radial-gradient(ellipse at 70% 50%, rgba(20,37,64,0.5) 0%, transparent 50%);
}
.cr-results-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; position: relative; z-index: 1;
  background: rgba(255,255,255,0.04);
}
.cr-res-card {
  background: var(--navy-90); padding: 52px 32px;
  text-align: center; transition: background .4s;
  text-decoration: none; display: block; cursor: pointer;
}
.cr-res-card:hover { background: var(--navy-80); }
.cr-res-val {
  font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700; color: var(--fire); line-height: 1; margin-bottom: 8px;
}
.cr-res-type {
  font-size: 10px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--smoke-light); margin-bottom: 16px;
}
.cr-res-desc {
  font-size: 0.88rem; color: var(--smoke);
  line-height: 1.7; max-width: 280px; margin: 0 auto;
}
.cr-res-card .cr-res-link {
  display: inline-block; margin-top: 18px; font-size: 11px;
  font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--fire); opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.cr-res-card:hover .cr-res-link { opacity: 1; transform: translateY(0); }
.cr-res-card.hidden { display: none; }

/* ── BANNER ── */
.cr-res-banner {
  background: var(--fire); padding: 48px 48px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; margin-top: 2px; text-align: center;
}
.cr-res-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.cr-res-banner-text {
  font-family: var(--display); font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600; font-style: italic; color: #fff; position: relative;
}

/* ── DISCLAIMER ── */
.cr-disclaimer { background: var(--chalk); padding: 40px 0; text-align: center; }
.cr-disclaimer p {
  max-width: 760px; margin: 0 auto; font-size: 0.78rem;
  color: var(--softer-text); line-height: 1.7; padding: 0 48px;
}

/* ── BOTTOM CTA (navy button on fire-to-navy gradient — distinct from the
 *    global .cta-btn fire-gradient; scoped to this section) ── */
.cr-cta { padding: 120px 0; background: linear-gradient(135deg, var(--navy) 0%, var(--deep-purple) 50%, var(--fire-deep) 100%); text-align: center; position: relative; overflow: hidden; }
.cr-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, transparent 40%); }
.cr-cta-inner { position: relative; z-index: 1; }
.cr-cta h2 { font-family: var(--display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; color: #fff; line-height: 1.08; margin-bottom: 20px; }
.cr-cta p { font-size: 1.05rem; color: rgba(255,255,255,0.85); max-width: 500px; margin: 0 auto 36px; line-height: 1.7; }
.cr-cta-btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; padding: 18px 48px; transition: transform .3s, box-shadow .3s; }
.cr-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cr-results-grid { grid-template-columns: repeat(2, 1fr); }
  .cr-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .cr-stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  .cr-hero { min-height: auto; padding: 130px 24px 60px; }
  .cr-hero-big { font-size: clamp(3.5rem, 15vw, 6rem); }
  .cr-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .cr-stat-item:nth-child(2) { border-right: none; }
  .cr-results-grid { grid-template-columns: 1fr; }
  .cr-res-banner { padding: 32px 24px; }
  .cr-filter-inner { padding: 0 24px; gap: 8px; }
  .cr-filter-pill { padding: 8px 16px; font-size: 12px; }
  .cr-cta { padding: 80px 0; }
}

@media (max-width: 480px) {
  .cr-stats-inner { grid-template-columns: 1fr; }
  .cr-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .cr-stat-item:last-child { border-bottom: none; }
}
