/* ClinicFixed SEO Page Style Additions */
/* Matches the white background / red accent / clean card style of clinicfixed.com */
/* Append to or @import into your existing style.css */

:root {
  --red: #e8332a;
  --red-hover: #c9261e;
  --black: #111111;
  --dark: #222222;
  --mid: #555555;
  --light: #888888;
  --border: #e8e8e8;
  --bg-soft: #f9f9f9;
  --bg-card: #ffffff;
  --max: 860px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--light);
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}
.breadcrumb a {
  color: var(--red);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

/* ── Page hero — white, centred, clean ── */
.page-hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
  max-width: var(--max);
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.page-hero .hero-meta {
  font-size: 0.8rem;
  color: var(--light);
  margin-bottom: 0.9rem;
}
.page-hero .hero-intro {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Section label (like "FREE TOOLS") ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 0.4rem;
}

/* ── Direct answer box ── */
.direct-answer {
  background: #fff8f7;
  border: 1px solid #f5ccc9;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.97rem;
  color: var(--dark);
  line-height: 1.7;
}
.direct-answer .da-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

/* ── Article wrap ── */
.article-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}
.article-wrap h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--black);
  margin: 2.5rem 0 0.6rem;
  letter-spacing: -0.01em;
}
.article-wrap h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.75rem 0 0.4rem;
}
.article-wrap p {
  color: var(--mid);
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.article-wrap ul, .article-wrap ol {
  color: var(--mid);
  font-size: 0.96rem;
  line-height: 1.75;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.article-wrap li { margin-bottom: 0.35rem; }
.article-wrap strong { color: var(--dark); }
.article-wrap a { color: var(--red); text-decoration: none; }
.article-wrap a:hover { text-decoration: underline; }

/* ── Stat row ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}
.stat-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1rem;
  text-align: center;
}
.stat-box .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-box .stat-label {
  font-size: 0.78rem;
  color: var(--light);
  line-height: 1.4;
}

/* ── FAQ section ── */
.faq-section { margin: 2.5rem 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.faq-question {
  background: var(--bg-soft);
  padding: 0.9rem 1.1rem;
  font-weight: 700;
  color: var(--black);
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-question::after {
  content: "+";
  color: var(--red);
  font-size: 1.3rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0.9rem 1.1rem 1.1rem;
  color: var(--mid);
  font-size: 0.92rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-answer { display: block; }

/* ── CTA box ── */
.cta-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.cta-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--black);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.cta-box p {
  color: var(--mid);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--red-hover); color: #fff; text-decoration: none; }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.88rem;
  margin-left: 0.6rem;
  transition: background 0.15s;
}
.btn-secondary:hover { background: #fff0ef; text-decoration: none; }

/* ── Email capture ── */
.email-capture {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.email-capture h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--black);
  margin: 0 0 0.35rem;
}
.email-capture p {
  color: var(--mid);
  font-size: 0.86rem;
  margin-bottom: 1.1rem;
}
.email-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.email-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--dark);
  font-size: 0.9rem;
  font-family: inherit;
}
.email-form input[type="email"]::placeholder { color: #bbb; }
.email-form input[type="email"]:focus { outline: none; border-color: var(--red); }
.email-form button {
  padding: 0.65rem 1.2rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}
.email-form button:hover { background: var(--red-hover); }
.no-spam { font-size: 0.72rem; color: var(--light); margin-top: 0.6rem; }

/* ── Comparison table ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.comparison-table th {
  background: var(--bg-soft);
  color: var(--dark);
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}
.comparison-table td {
  padding: 0.65rem 1rem;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
}
.comparison-table .highlight { color: var(--red); font-weight: 700; }

/* ── Related cards (matches product card style) ── */
.related-pages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.related-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}
.related-card:hover {
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none;
}
.related-card .rc-icon { font-size: 1.4rem; margin-bottom: 0.5rem; display: block; }
.related-card .rc-title {
  color: var(--black);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.related-card .rc-desc {
  color: var(--light);
  font-size: 0.78rem;
  line-height: 1.5;
}
.related-card .rc-link {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: block;
}

/* ── Divider ── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Last updated ── */
.last-updated {
  font-size: 0.75rem;
  color: var(--light);
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .btn-secondary { margin-left: 0; margin-top: 0.5rem; }
  .cta-box { padding: 1.5rem 1rem; }
}
