/* content_hub.css -- shared styles for the public content-hub pages:
   /pricing, /templates, /templates/<id>, /faq,
   /ai-website-builder-for-auto-repair, /ai-website-builder-for-pest-control.
   One stylesheet reused across all of them (not duplicated per page) so
   the new pages stay fast and consistent -- see docs/AI_SEARCH_STRATEGY.md
   Phase 19 (performance / no bloat). */

:root {
  --ch-bg: #ffffff;
  --ch-bg-soft: #f7f8fb;
  --ch-panel: #ffffff;
  --ch-border: #e3e8ee;
  --ch-text: #16202b;
  --ch-muted: #5a6a7a;
  --ch-faint: #8a97a5;
  --ch-accent: #2563eb;
  --ch-accent-dark: #1d4ed8;
  --ch-accent-soft: #eaf0ff;
  --ch-radius: 16px;
  --ch-radius-sm: 10px;
  --ch-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --ch-max: 1120px;
  --ch-font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

.ch-page { font-family: var(--ch-font); background: var(--ch-bg); color: var(--ch-text); line-height: 1.6; }
.ch-page * { box-sizing: border-box; }
.ch-page a { color: inherit; }
.ch-page img { max-width: 100%; height: auto; display: block; }

.ch-container { width: 100%; max-width: var(--ch-max); margin: 0 auto; padding: 0 20px; }

/* ---- Nav ---- */
.ch-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ch-border);
}
.ch-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.ch-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ch-text); font-weight: 800; }
.ch-brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--ch-accent); color: #fff; display: inline-grid; place-items: center; font-weight: 900; }
.ch-nav-links { display: none; gap: 22px; }
.ch-nav-links a { font-size: 14px; font-weight: 600; color: var(--ch-muted); text-decoration: none; }
.ch-nav-links a:hover { color: var(--ch-text); }
@media (min-width: 800px) { .ch-nav-links { display: inline-flex; } }

/* ---- Breadcrumbs ---- */
.ch-breadcrumbs { font-size: 13px; color: var(--ch-faint); padding: 18px 0 0; }
.ch-breadcrumbs a { color: var(--ch-muted); text-decoration: none; }
.ch-breadcrumbs a:hover { text-decoration: underline; }
.ch-breadcrumbs span[aria-hidden] { margin: 0 6px; }

/* ---- Buttons ---- */
.ch-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.ch-btn-primary { background: var(--ch-accent); color: #fff; }
.ch-btn-primary:hover { background: var(--ch-accent-dark); }
.ch-btn-outline { background: #fff; border-color: var(--ch-border); color: var(--ch-text); }
.ch-btn-outline:hover { border-color: var(--ch-accent); }
.ch-btn-lg { padding: 14px 26px; font-size: 16px; }

/* ---- Hero ---- */
.ch-hero { padding: 56px 0 40px; }
.ch-eyebrow { display: inline-block; margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ch-accent); }
.ch-h1 { margin: 0 0 14px; font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; }
.ch-lede { margin: 0 0 22px; font-size: 1.1rem; color: var(--ch-muted); max-width: 62ch; }
.ch-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Sections ---- */
.ch-section { padding: 44px 0; }
.ch-section-alt { background: var(--ch-bg-soft); }
.ch-section-head { max-width: 68ch; margin: 0 0 26px; }
.ch-h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); letter-spacing: -0.01em; }
.ch-section-sub { margin: 0; color: var(--ch-muted); }

/* ---- Grids / cards ---- */
.ch-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ch-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ch-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .ch-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.ch-card { background: var(--ch-panel); border: 1px solid var(--ch-border); border-radius: var(--ch-radius); padding: 22px; }
.ch-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.ch-card p { margin: 0; color: var(--ch-muted); font-size: 0.94rem; }

/* ---- Pricing ---- */
.ch-pricing-card { background: var(--ch-panel); border: 1px solid var(--ch-border); border-radius: var(--ch-radius); padding: 26px; box-shadow: var(--ch-shadow); display: flex; flex-direction: column; gap: 14px; }
.ch-pricing-card.ch-featured { border-color: var(--ch-accent); position: relative; }
.ch-pricing-badge { position: absolute; top: -12px; left: 26px; background: var(--ch-accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.ch-pricing-name { font-size: 1.1rem; font-weight: 800; margin: 0; }
.ch-pricing-price { font-size: 2.2rem; font-weight: 900; margin: 0; }
.ch-pricing-price small { font-size: 0.9rem; font-weight: 600; color: var(--ch-muted); }
.ch-pricing-desc { color: var(--ch-muted); font-size: 0.94rem; margin: 0; }
.ch-pricing-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.ch-pricing-list li { padding-left: 22px; position: relative; color: var(--ch-text); }
.ch-pricing-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--ch-accent); font-weight: 800; }

/* ---- Template gallery ---- */
.ch-template-card { background: var(--ch-panel); border: 1px solid var(--ch-border); border-radius: var(--ch-radius); overflow: hidden; display: flex; flex-direction: column; }
.ch-template-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--ch-bg-soft); }
.ch-template-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ch-template-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ch-template-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ch-accent); }
.ch-template-body h3 { margin: 0; font-size: 1.05rem; }
.ch-template-body p { margin: 0; color: var(--ch-muted); font-size: 0.9rem; flex: 1; }
.ch-template-actions { display: flex; gap: 10px; margin-top: 8px; }
.ch-template-price { font-weight: 800; font-size: 0.85rem; color: var(--ch-muted); }

/* ---- FAQ ---- */
.ch-faq-cat { margin: 0 0 28px; }
.ch-faq-cat h2 { margin: 0 0 14px; font-size: 1.2rem; }
.ch-faq-item { border: 1px solid var(--ch-border); border-radius: var(--ch-radius-sm); padding: 14px 18px; margin-bottom: 10px; background: var(--ch-panel); }
.ch-faq-item summary { cursor: pointer; font-weight: 700; font-size: 0.98rem; list-style: none; }
.ch-faq-item summary::-webkit-details-marker { display: none; }
.ch-faq-item summary::after { content: "+"; float: right; color: var(--ch-accent); font-weight: 900; }
.ch-faq-item[open] summary::after { content: "\2212"; }
.ch-faq-item p { margin: 10px 0 0; color: var(--ch-muted); font-size: 0.92rem; }

/* ---- CTA band ---- */
.ch-cta-band { background: var(--ch-accent-soft); border-radius: var(--ch-radius); padding: 36px; text-align: center; margin: 8px 0; }
.ch-cta-band h2 { margin: 0 0 8px; font-size: 1.5rem; }
.ch-cta-band p { margin: 0 0 18px; color: var(--ch-muted); }

/* ---- Related links ---- */
.ch-related { display: flex; flex-wrap: wrap; gap: 10px; }
.ch-related a { display: inline-block; padding: 8px 16px; border: 1px solid var(--ch-border); border-radius: 999px; font-size: 0.86rem; font-weight: 700; text-decoration: none; color: var(--ch-text); }
.ch-related a:hover { border-color: var(--ch-accent); color: var(--ch-accent); }

/* ---- Footer ---- */
.ch-footer { border-top: 1px solid var(--ch-border); padding: 32px 0; background: var(--ch-bg-soft); }
.ch-footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.ch-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.ch-footer-links a { font-size: 13px; color: var(--ch-muted); text-decoration: none; }
.ch-footer-links a:hover { color: var(--ch-text); }
.ch-footer-copy { font-size: 12px; color: var(--ch-faint); }
