/*
 * SEO/AIO extension styles for jzhealthcare.com
 * New components introduced for guides/, compare/, solutions/, resources/ pages.
 * Plays nicely with existing MDB + custom.css. Uses jzhealthcare blues already in custom.css (.lblue, .bg-lblue).
 */

:root {
  --jz-lblue: #1f6e8c;
  --jz-dblue: #0e3a4a;
  --jz-soft-bg: #f6f9fb;
  --jz-amber: #f5b301;
  --jz-amber-soft: #fff5d6;
  --jz-rose: #c0392b;
  --jz-rose-soft: #fde2de;
  --jz-ok: #2c7a44;
  --jz-ok-soft: #dff5e3;
  --jz-text: #1a2226;
  --jz-muted: #5b6b75;
  --jz-border: #d8e2e8;
}

/* ---- Page hero band used by guides / compare / solutions ---- */
.jz-page-hero {
  background: linear-gradient(180deg, var(--jz-lblue) 0%, var(--jz-dblue) 100%);
  color: #fff;
  padding: 110px 0 60px;
}
.jz-page-hero h1 {
  font-family: 'Bricolage Grotesque', 'Roboto', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.jz-page-hero .jz-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}
.jz-page-hero .jz-subhead {
  font-size: 1.1rem;
  max-width: 56ch;
  opacity: 0.95;
}

/* ---- Breadcrumb (visible) ---- */
.jz-breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}
.jz-breadcrumb a { color: rgba(255, 255, 255, 0.95); text-decoration: underline; }
.jz-breadcrumb .sep { margin: 0 0.5rem; opacity: 0.6; }

/* ---- TL;DR / summary block ---- */
.jz-tldr {
  background: var(--jz-soft-bg);
  border-left: 4px solid var(--jz-lblue);
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  margin: 2rem 0;
}
.jz-tldr h2,
.jz-tldr p:first-child strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--jz-muted);
  margin-bottom: 0.5rem;
}
.jz-tldr p { margin-bottom: 0.5rem; line-height: 1.55; }
.jz-tldr ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }

/* ---- Proof chips row (used in heroes) ---- */
.jz-chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.jz-chip {
  display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.jz-chip i { margin-right: 0.4rem; opacity: 0.85; }

/* ---- Differentiator card grid ---- */
.jz-diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.jz-diff-card {
  background: #fff;
  border: 1px solid var(--jz-border);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.jz-diff-card:hover { border-color: var(--jz-lblue); box-shadow: 0 4px 12px rgba(31,110,140,0.08); }
.jz-diff-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--jz-dblue);
  margin: 0 0 0.5rem;
}
.jz-diff-card p { font-size: 0.93rem; line-height: 1.5; color: var(--jz-text); margin: 0; }
.jz-diff-card a.jz-link { display: inline-block; margin-top: 0.5rem; color: var(--jz-lblue); font-weight: 500; }

/* ---- Spec table ---- */
.jz-spec-wrap { overflow-x: auto; margin: 2rem 0; }
table.jz-spec {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--jz-border);
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.95rem;
}
table.jz-spec caption {
  caption-side: top;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--jz-dblue);
  background: var(--jz-soft-bg);
  border-bottom: 1px solid var(--jz-border);
}
table.jz-spec th, table.jz-spec td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--jz-border);
  text-align: left;
  vertical-align: top;
}
table.jz-spec th { background: var(--jz-soft-bg); width: 30%; color: var(--jz-dblue); font-weight: 600; }
table.jz-spec tr:last-child td, table.jz-spec tr:last-child th { border-bottom: none; }

/* ---- Comparison table (multi-column) ---- */
table.jz-compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--jz-border);
  font-size: 0.93rem;
}
table.jz-compare th, table.jz-compare td {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--jz-border);
  vertical-align: top;
}
table.jz-compare thead th { background: var(--jz-dblue); color: #fff; }
table.jz-compare tbody th { background: var(--jz-soft-bg); text-align: left; font-weight: 600; }
table.jz-compare .jz-good { color: var(--jz-ok); font-weight: 600; }
table.jz-compare .jz-bad { color: var(--jz-rose); font-weight: 600; }

/* ---- Draft / verification banner ---- */
.jz-draft-banner {
  background: var(--jz-amber-soft);
  border: 1px solid var(--jz-amber);
  color: #5a3a00;
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  margin: 1rem 0 1.5rem;
}
.jz-draft-banner strong { color: #3a2700; }

/* ---- Inline verify marker (visible only in dev tools normally) ---- */
.jz-verify { background: var(--jz-amber-soft); padding: 0 0.25rem; border-radius: 2px; }

/* ---- FAQ list (used by guides + product pages) ---- */
.jz-faq { margin: 2rem 0; }
.jz-faq details {
  background: #fff;
  border: 1px solid var(--jz-border);
  border-radius: 6px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 0.6rem;
}
.jz-faq summary {
  font-weight: 600;
  color: var(--jz-dblue);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.jz-faq summary::after { content: '+'; font-size: 1.2rem; color: var(--jz-lblue); }
.jz-faq details[open] summary::after { content: '−'; }
.jz-faq details > *:not(summary) { margin-top: 0.6rem; line-height: 1.55; }

/* ---- CTA strip ---- */
.jz-cta-strip {
  background: var(--jz-lblue);
  color: #fff;
  padding: 2rem 1.25rem;
  border-radius: 8px;
  margin: 2.5rem 0;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
}
.jz-cta-strip h3 { color: #fff; margin: 0; font-size: 1.3rem; }
.jz-cta-strip .btn { white-space: nowrap; }
.jz-cta-strip .btn-light { color: var(--jz-dblue); }

/* ---- Pillar / cluster nav (small) ---- */
.jz-cluster-nav {
  background: var(--jz-soft-bg);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 2rem 0;
}
.jz-cluster-nav h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--jz-muted); margin: 0 0 0.5rem; }
.jz-cluster-nav ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.jz-cluster-nav li a { color: var(--jz-lblue); }

/* ---- Body container baseline ---- */
.jz-page-body { padding: 2.5rem 0; }
.jz-page-body h2 { color: var(--jz-dblue); margin-top: 2.25rem; font-weight: 700; }
.jz-page-body h3 { color: var(--jz-dblue); margin-top: 1.5rem; }
.jz-page-body p { line-height: 1.65; }
.jz-page-body ul, .jz-page-body ol { line-height: 1.65; }

/* ---- ROI calc shell (Phase 8) ---- */
.jz-calc {
  background: #fff;
  border: 1px solid var(--jz-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.jz-calc label { display: block; font-weight: 600; margin: 0.75rem 0 0.25rem; color: var(--jz-dblue); }
.jz-calc input[type=number] {
  width: 100%; padding: 0.5rem 0.6rem;
  border: 1px solid var(--jz-border); border-radius: 4px;
  font-size: 1rem;
}
.jz-calc .jz-calc-out {
  margin-top: 1.5rem; padding: 1rem 1.25rem;
  background: var(--jz-soft-bg); border-left: 4px solid var(--jz-lblue);
  border-radius: 4px;
}
.jz-calc .jz-calc-out strong { color: var(--jz-dblue); }

/* ---- Print-clean ---- */
@media print {
  .jz-cta-strip, .help-button, .fixed-top, footer { display: none !important; }
  .jz-page-hero { background: none; color: #000; padding: 1rem 0; }
  .jz-page-hero h1 { color: #000; }
}

/* ---- Small adjustments above MDB top bar so hero clears ---- */
.jz-page-hero { margin-top: 4.5rem; }
@media (max-width: 991.98px) {
  .jz-page-hero { margin-top: 5.25rem; padding-top: 70px; }
}


/* phase5: mobile table responsiveness */
@media (max-width: 768px) {
  table { display: block; overflow-x: auto; max-width: 100%; }
}
