/* ═══════════════════════════════════════════
   BADGERLOFT — CASE STUDY SHARED STYLES
   ═══════════════════════════════════════════ */

.cs-page { background: var(--cream); min-height: 100vh; }

/* ─── HERO ─── */
.cs-hero {
  background: var(--ink); padding: 150px 72px 72px;
  position: relative; overflow: hidden;
}
.cs-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 65% at 75% 50%, rgba(43,74,114,0.2) 0%, transparent 100%);
}
.cs-hero::after {
  content: ''; position: absolute; left: 0; bottom: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, #2B4A72), transparent);
  opacity: 0.4;
}
.cs-hero-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.cs-back {
  display: inline-block; color: rgba(240,237,230,0.4); font-family: 'DM Sans', sans-serif;
  font-size: 13px; text-decoration: none; margin-bottom: 32px;
  transition: color .2s; letter-spacing: .3px;
}
.cs-back:hover { color: var(--cream); }
.cs-tags { display: flex; gap: 8px; margin-bottom: 20px; }
.cs-tag {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase; color: var(--accent, #4A7FAF);
  background: rgba(43,74,114,0.15); border: 1px solid rgba(43,74,114,0.3);
  padding: 4px 12px;
}
.cs-hero h1 {
  font-size: clamp(34px, 4.5vw, 58px); color: var(--cream);
  line-height: 1.08; margin-bottom: 20px; letter-spacing: -0.5px;
}
.cs-hero-sub {
  font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 300;
  font-style: italic; color: rgba(240,237,230,0.55); line-height: 1.7;
  max-width: 680px; margin-bottom: 48px;
}
.cs-meta-row {
  display: flex; gap: 0; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
}
.cs-meta {
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 32px 0 0; margin-right: 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.cs-meta:last-child { border-right: none; }
.cs-meta-l {
  font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 500;
  color: rgba(240,237,230,0.3); text-transform: uppercase; letter-spacing: 1.5px;
}
.cs-meta-v {
  font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--cream);
}

/* ─── RESULTS BAR ─── */
.cs-results-bar {
  background: var(--accent, #2B4A72); display: flex;
  align-items: stretch; overflow: hidden;
}
.cs-result {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; padding: 28px 20px;
  border-right: 1px solid rgba(255,255,255,0.1); text-align: center;
}
.cs-result:last-child { border-right: none; }
.cs-rn {
  font-family: 'Syne', sans-serif; font-size: 30px; font-weight: 800;
  color: #fff; line-height: 1;
}
.cs-rl {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 400;
  color: rgba(255,255,255,0.65); letter-spacing: .5px; text-transform: uppercase;
}

/* ─── BODY ─── */
.cs-body { max-width: 860px; margin: 0 auto; padding: 0 72px; }

.cs-section { padding: 72px 0; border-bottom: 1px solid var(--border2); }
.cs-section:last-child { border-bottom: none; }
.cs-section--dark {
  background: var(--ink); margin: 0 -72px; padding: 72px 72px;
  border-bottom: none;
}

.cs-section-label {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--blue2);
  margin-bottom: 16px;
}
.cs-section h2 {
  font-family: 'Syne', sans-serif; font-size: clamp(24px, 3vw, 34px);
  font-weight: 700; color: var(--ink); line-height: 1.15;
  margin-bottom: 24px; letter-spacing: -0.3px;
}
.cs-section p {
  font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 300;
  color: #4a4a5a; line-height: 1.85; margin-bottom: 20px;
}
.cs-section ul {
  font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 300;
  color: #4a4a5a; line-height: 1.85; margin: 0 0 20px 22px;
}
.cs-section li { margin-bottom: 8px; }

/* ─── PHASES ─── */
.cs-phases { display: flex; flex-direction: column; gap: 0; margin-top: 36px; }
.cs-phase {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px;
  padding: 32px 0; border-bottom: 1px solid var(--border2);
}
.cs-phase:last-child { border-bottom: none; }
.cs-phase-num {
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  color: rgba(43,74,114,0.4); padding-top: 4px;
}
.cs-phase-body h3 {
  font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--ink); margin-bottom: 12px;
}
.cs-phase-body p {
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 300;
  color: #4a4a5a; line-height: 1.8; margin-bottom: 12px;
}

/* ─── RESULTS GRID ─── */
.cs-results-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 40px;
}
.cs-rg-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  padding: 28px 24px; transition: background .2s;
}
.cs-rg-card:hover { background: rgba(255,255,255,0.07); }
.cs-rg-n {
  font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800;
  color: var(--cream); margin-bottom: 8px;
}
.cs-rg-l {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 300;
  color: rgba(240,237,230,0.5); line-height: 1.6;
}

/* ─── TWO COLUMN ─── */
.cs-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
.cs-two-col h3 {
  font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700;
  color: var(--ink); margin-bottom: 12px;
}
.cs-two-col p {
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 300;
  color: #4a4a5a; line-height: 1.75;
}

/* ─── QUOTE ─── */
.cs-quote {
  background: rgba(43,74,114,0.06); border-left: 3px solid var(--blue);
  padding: 28px 32px; margin-top: 40px; border-radius: 0 4px 4px 0;
}
.cs-quote p {
  font-family: 'DM Sans', sans-serif; font-size: 19px; font-weight: 300;
  font-style: italic; color: var(--ink); line-height: 1.65; margin-bottom: 12px;
}
.cs-quote cite {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--blue2); letter-spacing: .3px; font-style: normal;
}

/* ─── FOOTER CTA ─── */
.cs-footer-cta {
  background: var(--ink); text-align: center; padding: 80px 72px;
}
.cs-footer-cta h3 {
  font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 700;
  color: var(--cream); margin-bottom: 14px;
}
.cs-footer-cta p {
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 300;
  color: rgba(240,237,230,0.5); margin-bottom: 32px; max-width: 500px;
  margin-left: auto; margin-right: auto; line-height: 1.7;
}
.cs-footer-cta a {
  display: inline-block; background: var(--blue); color: #fff;
  padding: 16px 36px; font-family: 'DM Sans', sans-serif; font-size: 15px;
  font-weight: 500; text-decoration: none; letter-spacing: .3px;
  transition: background .2s, transform .15s;
}
.cs-footer-cta a:hover { background: var(--blue2); transform: translateY(-2px); }

/* ─── FOOTER ─── */
.cs-footer {
  background: var(--ink); padding: 32px 72px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ─── RESPONSIVE: TABLET ─── */
@media (max-width: 900px) {
  .cs-hero { padding: 130px 28px 48px; }
  .cs-hero-sub { font-size: 16px; margin-bottom: 32px; }
  .cs-body { padding: 0 28px; }
  .cs-section { padding: 52px 0; }
  .cs-section--dark { margin: 0 -28px; padding: 52px 28px; }
  .cs-results-grid { grid-template-columns: 1fr 1fr; }
  .cs-two-col { grid-template-columns: 1fr; gap: 24px; }
  .cs-results-bar { flex-wrap: wrap; }
  .cs-result { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .cs-result:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
  .cs-result:last-child { border-bottom: none; }
  .cs-footer-cta { padding: 56px 28px; }
  .cs-footer-cta h3 { font-size: 22px; }
  .cs-footer { padding: 24px 28px; flex-direction: column; gap: 14px; text-align: center; }
  .cs-meta-row { gap: 16px 24px; }
  .cs-meta { border-right: none; padding-right: 0; margin-right: 0; }
  .cs-phase { grid-template-columns: 1fr; }
  .cs-phase-num { display: none; }
  .cs-quote p { font-size: 17px; }
}

/* ─── RESPONSIVE: MOBILE ─── */
@media (max-width: 600px) {
  .cs-hero { padding: 110px 20px 40px; }
  .cs-hero h1 { font-size: clamp(26px, 7vw, 38px); letter-spacing: -0.3px; }
  .cs-hero-sub { font-size: 15px; line-height: 1.65; margin-bottom: 28px; }
  .cs-tags { flex-wrap: wrap; }
  .cs-meta-row { flex-direction: column; gap: 16px; padding-top: 20px; }
  .cs-meta { flex-direction: row; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 12px; }
  .cs-meta:last-child { border-bottom: none; padding-bottom: 0; }
  .cs-meta-v { font-size: 13px; text-align: right; }
  .cs-body { padding: 0 20px; }
  .cs-section { padding: 40px 0; }
  .cs-section h2 { font-size: clamp(20px, 5.5vw, 26px); }
  .cs-section p, .cs-section ul { font-size: 15px; line-height: 1.78; }
  .cs-section--dark { margin: 0 -20px; padding: 40px 20px; }
  .cs-results-bar { flex-direction: column; }
  .cs-result { flex: none; width: 100%; border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding: 20px 24px; }
  .cs-result:last-child { border-bottom: none; }
  .cs-rn { font-size: 24px; }
  .cs-results-grid { grid-template-columns: 1fr; gap: 2px; }
  .cs-rg-card { padding: 22px 0; }
  .cs-rg-n { font-size: 28px; }
  .cs-rg-l { font-size: 13px; }
  .cs-phase-body h3 { font-size: 16px; }
  .cs-phase-body p { font-size: 15px; }
  .cs-quote { padding: 20px 0 20px 16px; }
  .cs-quote p { font-size: 15px; line-height: 1.65; }
  .cs-footer-cta { padding: 48px 20px; }
  .cs-footer-cta h3 { font-size: 20px; }
  .cs-footer-cta p { font-size: 14px; }
  .cs-footer-cta a { padding: 14px 28px; font-size: 14px; width: 100%; text-align: center; }
  .cs-footer { padding: 24px 20px; flex-direction: column; gap: 12px; text-align: center; }
  .cs-section-label { font-size: 10px; }
  .cs-back { margin-bottom: 24px; }
}
