/* public/css/case-study-cb.css
 * Owns: Crystal Ballroom deep case study page styles (/case-studies/crystal-ballroom).
 * Does NOT own: global nav, footer, mobile-cta-bar (all in theme.css).
 */

/* ── Layout variables (supplement theme.css tokens) ─────────────── */
:root {
  --peach: #FEF0E5;
  --peach-border: #F5D9C4;
}

/* ── HERO — pearl background, no images ─────────────────────────── */
.cb-hero {
  background: var(--pearl);
  padding: 148px 64px 80px;
  border-bottom: 1px solid var(--border);
}
.cb-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.cb-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.cb-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 24px;
}
/* Gold accent on the number "312" */
.cb-hero-num {
  color: var(--gold);
  font-weight: 600;
}
.cb-hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--charcoal-soft);
  max-width: 660px;
  margin-bottom: 28px;
}
.cb-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cb-hero-meta-item {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--charcoal-soft);
  opacity: 0.7;
}
.cb-hero-meta-dot {
  color: var(--gold);
  opacity: 0.5;
}

/* ── SHARED SECTION LAYOUT ────────────────────────────────────────── */
.cb-section {
  padding: 80px 64px;
  border-bottom: 1px solid var(--border);
}
.cb-section-inner {
  max-width: 900px;
  margin: 0 auto;
}
.cb-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.cb-section-h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 40px;
}

/* ── THE CHALLENGE ───────────────────────────────────────────────── */
.cb-challenge-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--charcoal-soft);
  max-width: 760px;
  margin-bottom: 20px;
}
.cb-challenge-body p:last-child { margin-bottom: 0; }

/* ── THE NUMBERS — 4-stat gold-accent grid ───────────────────────── */
.cb-numbers {
  background: var(--ivory);
}
.cb-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.cb-stat-card {
  background: var(--pearl);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 32px 28px;
}
.cb-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  opacity: 0.7;
  margin-bottom: 10px;
}
.cb-stat-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 14px;
}
/* Revenue stat: larger gold display */
.cb-stat-num--rev {
  font-size: clamp(40px, 5vw, 60px);
}
.cb-stat-detail {
  font-size: 13px;
  line-height: 1.7;
  color: var(--charcoal-soft);
  opacity: 0.8;
}
.cb-numbers-flag {
  font-size: 12px;
  color: var(--charcoal-soft);
  opacity: 0.5;
  font-style: italic;
  margin-top: 8px;
}

/* ── THE PLAYBOOK — peach background, 2×2 cards ─────────────────── */
.cb-playbook {
  background: var(--peach);
  border-top: 1px solid var(--peach-border);
  border-bottom: 1px solid var(--peach-border);
  padding: 80px 64px;
}
.cb-playbook-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cb-playbook-card {
  background: #fff;
  border: 1px solid var(--peach-border);
  border-radius: 2px;
  padding: 32px 28px;
}
.cb-playbook-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}
.cb-playbook-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 14px;
  line-height: 1.25;
}
.cb-playbook-card-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--charcoal-soft);
  opacity: 0.85;
}

/* ── PER-VENUE TABLE ─────────────────────────────────────────────── */
.cb-venue-table {
  background: var(--pearl);
}
.cb-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
}
.cb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
.cb-table thead tr {
  border-bottom: 2px solid var(--gold);
}
.cb-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 16px 14px 0;
}
.cb-table th:first-child { padding-left: 0; }
.cb-table td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--charcoal-soft);
  line-height: 1.4;
}
.cb-table td:first-child { padding-left: 0; }
.cb-table-venue {
  font-weight: 500;
  color: var(--charcoal) !important;
}
.cb-table-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--charcoal-soft);
  opacity: 0.55;
  font-style: italic;
}

/* ── PULL QUOTE ──────────────────────────────────────────────────── */
.cb-quote-section {
  background: var(--ivory);
}
.cb-quote-figure {
  max-width: 760px;
  margin: 0 auto;
  border-left: 3px solid var(--gold);
  padding-left: 40px;
}
.cb-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--charcoal);
  margin-bottom: 24px;
}
.cb-quote::before { content: '\201C'; }
.cb-quote::after  { content: '\201D'; }
.cb-quote-attr {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cb-quote-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.04em;
}
.cb-quote-role {
  font-size: 13px;
  color: var(--charcoal-soft);
  opacity: 0.7;
}
.cb-quote-flag {
  font-size: 11px;
  color: var(--charcoal-soft);
  opacity: 0.45;
  font-style: italic;
  margin-top: 6px;
}

/* ── CLOSING CTA — pearl panel, gold border ──────────────────────── */
.cb-cta-section {
  background: var(--pearl);
  padding: 80px 64px;
}
.cb-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--gold);
  padding: 64px 56px;
  border-radius: 2px;
}
.cb-cta-ornament {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
}
.cb-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 16px;
  line-height: 1.25;
}
.cb-cta-sub {
  font-size: 15px;
  line-height: 1.75;
  color: var(--charcoal-soft);
  opacity: 0.8;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cb-cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 1px;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 16px;
}
.cb-cta-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.cb-cta-tier-note {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--charcoal-soft);
  opacity: 0.7;
  margin-bottom: 8px;
}
.cb-cta-footnote {
  font-size: 11px;
  color: var(--charcoal-soft);
  opacity: 0.45;
}

/* ── MOBILE RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .cb-hero { padding: 100px 24px 56px; }
  .cb-section { padding: 56px 24px; }
  .cb-playbook { padding: 56px 24px; }
  .cb-cta-section { padding: 56px 24px; }
  .cb-cta-inner { padding: 40px 28px; }

  .cb-stats-grid {
    grid-template-columns: 1fr;
  }
  .cb-playbook-cards {
    grid-template-columns: 1fr;
  }
  .cb-hero-h1 { font-size: clamp(28px, 8vw, 40px); }
  .cb-hero-sub { font-size: 16px; }

  .cb-quote-figure { padding-left: 20px; }
  .cb-quote { font-size: clamp(18px, 5vw, 24px); }
}

@media (max-width: 480px) {
  .cb-hero { padding: 88px 16px 48px; }
  .cb-section { padding: 48px 16px; }
  .cb-playbook { padding: 48px 16px; }
  .cb-cta-section { padding: 48px 16px; }
  .cb-cta-inner { padding: 32px 20px; }
  .cb-hero-meta { gap: 8px; }
}

/* ── 6-VENUE CPL DEEP-DIVE ─────────────────────────────────── */
.venue-deep-dive {
  padding: 80px 0;
  background: #f8f7f5;
}
.venue-deep-dive h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 40px;
  line-height: 1.3;
}
.venue-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.venue-deep-dive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 700px;
}
.venue-deep-dive-table th {
  background: #1a1a1a;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.venue-deep-dive-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e5e5;
  color: #333;
  vertical-align: middle;
}
.venue-deep-dive-table tr:nth-child(even) td {
  background: #f0efed;
}
.venue-deep-dive-table tr:last-child td {
  border-bottom: none;
}
.venue-deep-dive-table td a {
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
}
.venue-deep-dive-table td a:hover {
  text-decoration: underline;
}
.venue-deep-dive-table td:nth-child(2),
.venue-deep-dive-table td:nth-child(3) {
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: #2d7d46;
  font-weight: 600;
}
.venue-deep-dive-table td:nth-child(5) {
  color: #2d7d46;
  font-weight: 700;
}
.table-footnote {
  font-size: 0.8rem;
  color: #888;
  margin-top: 12px;
  font-style: italic;
}
.venue-notes {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.venue-note {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px;
}
.venue-note h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.venue-note p {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}
.closing-line {
  margin-top: 48px;
  font-size: 1.1rem;
  color: #1a1a1a;
  font-weight: 500;
  border-top: 2px solid #1a1a1a;
  padding-top: 32px;
}
.closing-line a {
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: underline;
}
@media (max-width: 768px) {
  .venue-notes {
    grid-template-columns: 1fr;
  }
  .venue-deep-dive-table th,
  .venue-deep-dive-table td {
    padding: 10px 12px;
  }
}
