/* Case Compass Blog — Global Styles */

/* Announcement Banner */
.announcement-bar {
  background: linear-gradient(90deg, #dbeafe 0%, #ede9fe 100%);
  border-bottom: 1px solid #bfdbfe;
  padding: 10px 24px;
  text-align: center;
}
.announcement-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1e3a8a;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  flex-wrap: wrap;
  justify-content: center;
}
.announcement-inner:hover .announcement-cta {
  text-decoration: underline;
}
.announcement-badge {
  background: #4f46e5;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.announcement-text {
  color: #1e3a8a;
}
.announcement-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4f46e5;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .announcement-text { display: none; }
  .announcement-inner { gap: 8px; }
}
:root {
  --navy: #0b1530;
  --navy-mid: #1a2d5a;
  --indigo: #6366f1;
  --indigo-dark: #4f46e5;
  --indigo-light: #e0e7ff;
  --text: #111827;
  --text-secondary: #6b7280;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── LUCIDE ICONS ── */
.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}
.lucide-sm { width: 14px; height: 14px; }
.lucide-lg { width: 22px; height: 22px; }
.icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.icon-box-indigo { background: var(--indigo-light); color: var(--indigo-dark); }
.icon-box-green  { background: #d1fae5; color: #065f46; }
.icon-box-amber  { background: #fef3c7; color: #92400e; }
.icon-box-navy   { background: rgba(255,255,255,0.1); color: white; }

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img {
  height: 28px;
  width: auto;
  display: block;
}
.logo-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.2);
}
.logo-blog-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.header-nav { display: flex; gap: 4px; align-items: center; }
.header-nav a {
  font-family: var(--font-display);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
  transition: color 0.2s, background 0.2s;
}
.header-nav a:hover { color: white; background: rgba(255,255,255,0.08); }
.header-cta {
  background: var(--indigo) !important;
  color: white !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
}
.header-cta:hover { background: var(--indigo-dark) !important; }

/* ── HERO (index) ── */
.hero-section {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 80px 24px 64px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,0.2);
  border: 1px solid rgba(99,102,241,0.4);
  color: #a5b4fc;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 620px;
  margin: 0 auto 16px;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── FEATURED POST ── */
.featured-section { max-width: 1200px; margin: -32px auto 0; padding: 0 24px; }
.featured-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}
.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.16);
}
.featured-img {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #2d3f7a 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  min-height: 360px;
}
.featured-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  display: block;
  object-fit: contain;
}
.featured-content { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}
.tag-product  { background: var(--indigo-light); color: var(--indigo-dark); }
.tag-feature  { background: #d1fae5; color: #065f46; }
.tag-ai       { background: #fef3c7; color: #92400e; }
.tag-referrals{ background: #ede9fe; color: #5b21b6; }
.tag-waypoint { background: #e0f2fe; color: #0369a1; }
.featured-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
}
.featured-excerpt {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.post-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }
.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--indigo);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 20px;
  letter-spacing: 0.01em;
}
.read-more-link:hover { color: var(--indigo-dark); }
.read-more-link svg { transition: transform 0.2s; }
.read-more-link:hover svg { transform: translateX(3px); }

/* ── BLOG GRID ── */
.blog-grid-section { max-width: 1200px; margin: 56px auto; padding: 0 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.section-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--indigo-light);
}
.card-img-wrap {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.card-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 10px 0 8px; letter-spacing: -0.01em; }
.card-excerpt { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; flex: 1; }
.card-footer { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.card-read-time { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

/* ── NEWSLETTER BANNER ── */
.newsletter-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 64px 24px;
  text-align: center;
  margin: 48px 0 0;
}
.newsletter-inner { max-width: 540px; margin: 0 auto; }
.newsletter-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: white; margin-bottom: 12px; letter-spacing: -0.02em; }
.newsletter-sub { color: rgba(255,255,255,0.6); margin-bottom: 28px; font-size: 0.93rem; }
.newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.38); }
.newsletter-form input:focus { border-color: var(--indigo); }
.btn-primary {
  background: var(--indigo);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--indigo-dark); }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 48px 24px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo-img { height: 24px; width: auto; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: 13px; line-height: 1.65; max-width: 240px; }
.footer-col h4 { font-family: var(--font-display); color: white; font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; font-size: 12px; }

/* ── POST PAGE ── */
.post-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 72px 24px 56px;
}
.post-hero-inner { max-width: 820px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.45);
}
.breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: white; }
.breadcrumb-sep { font-size: 11px; }
.post-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 16px 0 20px;
}
.post-hero-excerpt {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 28px;
}
.post-hero-meta { display: flex; gap: 18px; align-items: center; font-size: 12.5px; color: rgba(255,255,255,0.45); flex-wrap: wrap; }
.post-hero-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.2); }

/* ── POST BODY ── */
.post-layout { max-width: 1200px; margin: 0 auto; padding: 56px 24px 80px; display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
.post-content { max-width: 780px; }
.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 52px 0 16px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.post-content h2:first-child { margin-top: 0; }
.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
.post-content p { font-size: 1rem; color: #374151; line-height: 1.8; margin-bottom: 20px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 20px; }
.post-content li { font-size: 1rem; color: #374151; line-height: 1.75; margin-bottom: 6px; }
.post-content strong { color: var(--text); font-weight: 700; }
.post-content a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--indigo-dark); }
.post-content code {
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.875em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: #5b21b6;
}

/* Post images — natural aspect ratio, no squish */
.post-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin: 28px 0 0;
}
.img-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 10px 0 28px;
  font-style: italic;
  line-height: 1.5;
}

/* Callout boxes */
.callout {
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 28px 0;
  border-left: 4px solid;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout-indigo { background: var(--indigo-light); border-color: var(--indigo); }
.callout-green  { background: #d1fae5; border-color: var(--green); }
.callout-icon { margin-top: 1px; flex-shrink: 0; }
.callout-indigo .callout-icon { color: var(--indigo-dark); }
.callout-green  .callout-icon { color: #065f46; }
.callout-body { flex: 1; }
.callout-title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.callout-indigo .callout-title { color: var(--indigo-dark); }
.callout-green  .callout-title { color: #065f46; }
.callout p { margin: 0; font-size: 0.9rem; }

/* Steps */
.steps { counter-reset: step; padding-left: 0; list-style: none; position: relative; }
.steps li {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  align-items: flex-start;
  counter-increment: step;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step);
  min-width: 28px;
  height: 28px;
  background: var(--indigo);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
/* Wrap step text in a span so inline elements don't become rogue flex items */
.steps li > span {
  flex: 1;
  min-width: 0;
  font-size: 0.93rem;
  color: #374151;
  line-height: 1.7;
}

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.feature-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.feature-box h4 { font-family: var(--font-display); font-size: 0.93rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature-box p { font-size: 0.845rem; color: var(--text-secondary); margin: 0; line-height: 1.55; }

/* FAQ */
.faq-list { margin: 24px 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q-inner { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.faq-q-badge {
  min-width: 26px; height: 26px;
  background: var(--indigo); color: white;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.faq-question { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0; font-family: var(--font-display); letter-spacing: -0.01em; }
.faq-answer { font-size: 0.9rem; color: #4b5563; line-height: 1.75; padding-left: 38px; }

/* Tags bar */
.tag-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }

/* Share section */
.share-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-label { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--text); }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-sm); font-family: var(--font-display); font-size: 12.5px; font-weight: 600; text-decoration: none; border: 1px solid var(--border); color: var(--text); transition: all 0.2s; letter-spacing: 0.01em; }
.share-btn:hover { border-color: var(--indigo); color: var(--indigo); }

/* Sidebar */
.post-sidebar { position: sticky; top: 80px; }
.sidebar-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.sidebar-card h3 { font-family: var(--font-display); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 16px; }
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 10px; }
.toc-list a { font-size: 13px; color: var(--text-secondary); text-decoration: none; line-height: 1.4; transition: color 0.2s, border-color 0.2s; display: block; padding-left: 12px; border-left: 2px solid transparent; }
.toc-list a:hover, .toc-list a.active { color: var(--indigo); border-left-color: var(--indigo); }
.cta-card { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-radius: var(--radius); padding: 28px 24px; }
.cta-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: white; letter-spacing: -0.01em; }
.cta-card p { font-size: 0.845rem; color: rgba(255,255,255,0.6); margin-bottom: 20px; line-height: 1.6; }
.btn-white { display: block; background: white; color: var(--navy); text-decoration: none; text-align: center; padding: 11px; border-radius: var(--radius-sm); font-family: var(--font-display); font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em; transition: opacity 0.2s; }
.btn-white:hover { opacity: 0.9; }

/* Related posts */
.related-section { max-width: 1200px; margin: 0 auto 80px; padding: 0 24px; }
.related-section .section-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 28px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 220px; }
  .featured-content { padding: 28px; }
  .post-layout { grid-template-columns: 1fr; gap: 40px; }
  .post-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-nav .hide-mobile { display: none; }
  .post-hero-title { font-size: 1.7rem; }
}
