/* =============================================
   MIDCOM TROUBLESHOOTING GUIDE — PROTOTYPE
   Maps 1:1 to ACF fields (see field names in HTML comments)
   ============================================= */

:root {
  --navy: #0a2540;
  --navy-mid: #0d3060;
  --navy-light: #14386a;
  --blue: #1a56db;
  --blue-hover: #1446bc;
  --blue-light: #e8f0fe;
  --blue-pale: #f0f4ff;
  --text: #1a1a2e;
  --text-muted: #4a5568;
  --text-light: #718096;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --white: #ffffff;
  --warn-bg: #fffbeb;
  --warn-border: #f59e0b;
  --warn-text: #92400e;
  --success: #059669;
  --tag-bg: #f1f5f9;
  --tag-text: #475569;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
.site-header {
  background: var(--navy);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -0.3px; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; background: var(--blue); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #fff; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: rgba(255,255,255,0.8); font-size: 14px; text-decoration: none; }
.nav a:hover { color: #fff; }
.nav-cta { background: var(--blue); color: #fff !important; padding: 8px 18px; border-radius: var(--radius-sm); font-weight: 500; }

/* ---- Top utility bar ---- */
.util-bar { background: var(--navy-mid); padding: 8px 40px; display: flex; align-items: center; gap: 24px; font-size: 13px; color: rgba(255,255,255,0.7); }
.util-bar span { display: flex; align-items: center; gap: 6px; }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 520px;
  width: 100%;
}

.hero-content {
  background: var(--navy);
  padding: 40px 0px 40px 150px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: 480px;
}

.hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(26,86,219,0.25);
  border: 1px solid rgba(26,86,219,0.4);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  position: relative;
}

.hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  position: relative;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 100%;
  margin-bottom: 32px;
  position: relative;
}

.hero-phone {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  position: relative;
}

.hero-phone-icon {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-phone-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }
.hero-phone-number { font-size: 28px; font-weight: 700; color: #fff; display: block; line-height: 1.1; }
.hero-phone-label { font-size: 13px; color: rgba(255,255,255,0.55); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 50px;
}

.hero-trust-item svg { width: 14px; height: 14px; stroke: #93c5fd; fill: none; stroke-width: 2; }

.hero-form-wrap {
  background: var(--white);
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.25;
  text-align: center;
}

.hero-form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
  text-align: center;
}

/* ---- TOC nav + content layout ---- */
.page-body { display: grid; grid-template-columns: 200px 1fr; gap: 0; max-width: 1200px; margin: 0 auto; padding: 60px 40px; }
.toc-sidebar { position: sticky; top: 80px; height: fit-content; }
.toc-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 14px; }
.toc-list { list-style: none; }
.toc-item { margin-bottom: 2px; }
.toc-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s;
}
.toc-item a:hover { color: var(--blue); background: var(--blue-pale); }
.toc-item a.active { color: var(--blue); font-weight: 600; border-left-color: var(--blue); background: var(--blue-pale); }
.toc-num { font-size: 11px; color: var(--text-light); font-family: monospace; min-width: 16px; }

/* Sticky sidebar CTA */
.sidebar-cta {
  margin-top: 28px;
  background: var(--blue-pale);
  border: 1px solid rgba(26,86,219,0.15);
  border-radius: var(--radius-md);
  padding: 16px;
}
.sidebar-cta-label { font-size: 11px; color: var(--text-light); margin-bottom: 4px; }
.sidebar-cta-phone { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 10px; display: block; }
/* ACF: phone_number (shared) */
.btn-sidebar {
  display: block;
  width: 100%;
  text-align: center;
  padding: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}
.btn-sidebar:hover { background: var(--blue-hover); text-decoration: none; }
/* ACF: cta_button_text (e.g. "Request Repair") */

.content { padding-left: 60px; }

/* ---- Section headings ---- */
.section-head { margin-bottom: 24px; }
.section-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-num .slash { color: var(--border); }
.section-num .num { font-family: monospace; }
.section-title { font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; padding-bottom: 10px; border-bottom: 3px solid var(--blue); display: inline-block; }
.section-intro { margin-top: 14px; font-size: 15px; color: var(--text-muted); line-height: 1.7; max-width: 680px; }
/* ACF: sections (repeater: section_number, section_title, section_intro) */

/* ---- Error code search ---- */
.error-search-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
}
.error-search {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  font-family: inherit;
}
.error-search::placeholder { color: #a0aec0; }
.error-count { font-size: 13px; color: var(--text-light); white-space: nowrap; }

/* ---- Error card (expanded — first item) ---- */
.error-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}
.error-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white);
  cursor: pointer;
  gap: 12px;
}
.error-card.expanded .error-card-header { background: var(--blue-pale); border-bottom: 1.5px solid rgba(26,86,219,0.12); }
.error-num { font-size: 12px; color: var(--text-light); font-family: monospace; min-width: 20px; }
.error-icon { width: 28px; height: 28px; border-radius: 6px; background: #fef3c7; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.error-icon.critical { background: #fee2e2; }
.error-icon svg { width: 14px; height: 14px; stroke: #d97706; fill: none; stroke-width: 2.5; }
.error-icon.critical svg { stroke: #dc2626; }
.error-name { font-size: 15px; font-weight: 600; color: var(--text); flex: 1; }
.error-slug { font-size: 12px; color: var(--text-light); background: var(--tag-bg); padding: 3px 8px; border-radius: 4px; font-family: monospace; }
/* ACF: error_codes (repeater): error_number, error_name, error_slug, error_icon_type (warning|critical), error_description, error_causes (repeater: cause_text), error_part_number, error_steps (repeater: step_text, step_note), error_persist_message, error_persist_cta_text */

.error-body {
  display: none;
  padding: 24px 28px;
  background: var(--white);
}
.error-card.expanded .error-body { display: grid; grid-template-columns: 1fr 240px; gap: 32px; }

.sub-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.body-text { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.cause-list { list-style: none; margin-bottom: 20px; }
.cause-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
}
.cause-list li::before { content: '•'; color: var(--blue); font-weight: 700; margin-top: 1px; flex-shrink: 0; }
.part-code {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-family: monospace;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.caution-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--warn-text);
  margin-bottom: 16px;
}
.caution-box svg { width: 16px; height: 16px; stroke: var(--warn-border); fill: none; stroke-width: 2.5; flex-shrink: 0; margin-top: 2px; }
/* ACF: error_caution_text (optional) */
.step-list { counter-reset: steps; list-style: none; }
.step-list li {
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}
.step-list li:last-child { border-bottom: none; }
.step-num {
  counter-increment: steps;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.persist-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--blue-pale);
  border: 1px solid rgba(26,86,219,0.15);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-inline svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--blue);
  font-family: inherit;
}

/* Diagram panel (right side of expanded error) */
.error-diagram {
  background: var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: fit-content;
}
.error-diagram svg { width: 100%; max-width: 200px; height: auto; }
.error-diagram-caption { font-size: 11px; text-align: center; color: var(--text-light); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
/* ACF: error_diagram_svg (textarea/raw SVG or omit to hide panel) */

/* ---- Error compact cards (grid of remaining items) ---- */
.error-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.error-mini {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.error-mini:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.error-mini-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.error-mini-num { font-size: 11px; font-family: monospace; color: var(--text-light); }
.error-mini-name { font-size: 14px; font-weight: 600; color: var(--text); }
.error-mini-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.error-mini-link { font-size: 13px; color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.error-mini-link svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ---- CTA banner (can't clear error) ---- */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--blue-pale);
  border: 1px solid rgba(26,86,219,0.15);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
}
.cta-banner-icon {
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-banner-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.cta-banner-text { flex: 1; }
.cta-banner-text strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.cta-banner-text span { font-size: 14px; color: var(--text-muted); }
/* ACF: cta_banner_title, cta_banner_subtitle */
.cta-banner-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cta-phone-link { font-size: 14px; color: var(--text-muted); white-space: nowrap; }
/* ACF: phone_number (shared) */

/* ---- Section divider ---- */
.section-gap { height: 60px; }

/* ---- Calibration section ---- */
.calibration-main {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}
.calibration-main-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--border);
}
.calibration-main-header .item-num { font-family: monospace; font-size: 13px; color: var(--text-light); margin-right: 10px; }
.calibration-main-header .item-title { font-size: 16px; font-weight: 700; color: var(--text); flex: 1; }
.anchor-tag { font-size: 12px; color: var(--text-light); font-family: monospace; background: var(--tag-bg); padding: 3px 8px; border-radius: 4px; }
.calibration-body { padding: 24px 28px; }
.calibration-body .sub-label { margin-bottom: 8px; }
.calibration-body .body-text { font-size: 14px; }
.code-pill {
  display: inline-block;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
  padding: 2px 8px;
  color: var(--text);
}
/* ACF: calibration_methods (repeater): method_number, method_title, method_anchor, method_overview, method_how_to_run, method_what_it_does, method_how_to_verify, method_zpl_command, method_persist_text, method_persist_cta */

.calibration-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calibration-mini {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.calibration-mini-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.calibration-mini-num { font-size: 11px; font-family: monospace; color: var(--text-light); }
.calibration-mini-icon { width: 26px; height: 26px; background: var(--blue-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.calibration-mini-icon svg { width: 12px; height: 12px; stroke: var(--blue); fill: none; stroke-width: 2; }
.calibration-mini-title { font-size: 14px; font-weight: 700; color: var(--text); }
.calibration-mini-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-bottom: 12px; }
.link-arrow { font-size: 13px; color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.link-arrow svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ---- Ribbon section ---- */
/* Same card patterns, reused */

/* ---- Testimonial ---- */
.testimonial {
  border-left: 4px solid var(--blue);
  padding: 20px 24px;
  margin: 24px 0;
  background: var(--blue-pale);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.testimonial blockquote { font-size: 16px; line-height: 1.7; color: var(--text); margin-bottom: 14px; font-style: normal; }
/* ACF: testimonial_quote */
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--text); }
.testimonial-role { font-size: 13px; color: var(--text-muted); }
.stars { color: #f59e0b; font-size: 14px; margin-left: auto; }
/* ACF: testimonial_author_name, testimonial_author_initials, testimonial_author_role, testimonial_source */

/* ---- Video section ---- */
.video-section {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 12px;
}
.video-section-title { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.video-section-desc { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 24px; line-height: 1.6; }
/* ACF: video_section_title, video_section_description */
.video-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.video-main { grid-column: span 1; grid-row: span 2; }
.video-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.15s;
}
.video-thumb:hover { background: rgba(255,255,255,0.13); }
.video-play {
  width: 52px;
  height: 52px;
  background: #e63946;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play svg { width: 22px; height: 22px; fill: #fff; stroke: none; }
.video-main .video-thumb { aspect-ratio: unset; min-height: 200px; }
.video-cta-label { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; text-align: center; }
.video-cta-name { font-size: 13px; color: rgba(255,255,255,0.8); text-align: center; }
.btn-channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-bottom: 20px;
}
.btn-channel svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }
/* ACF: video_items (repeater): video_label, video_title, video_url (or "coming soon" flag) */
/* ACF: video_channel_url */

/* ---- When to call MIDCOM ---- */
.final-cta-wrap {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
}
.final-cta-title { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: -0.3px; }
.final-cta-desc { font-size: 15px; color: rgba(255,255,255,0.65); margin-bottom: 28px; line-height: 1.6; }
/* ACF: final_cta_title, final_cta_description */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; margin-bottom: 32px; }
.checklist-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.5; }
.check-icon { width: 18px; height: 18px; background: rgba(26,86,219,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.check-icon svg { width: 10px; height: 10px; stroke: #93c5fd; fill: none; stroke-width: 3; }
/* ACF: when_to_call_items (repeater: item_text) */

.trust-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.trust-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.trust-badge img {
  max-height: 80px !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.trust-badge-title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}

.trust-badge-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ACF: trust_badges (repeater: badge_title, badge_subtitle) */

.final-actions { display: flex; flex-direction: column; gap: 10px; }
.final-phone { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.final-phone-num { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -0.5px; margin-bottom: 12px; }
.btn-final-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-final-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.2);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
/* ACF: final_cta_primary_text, final_cta_secondary_text, final_cta_url */

/* ---- Related link ---- */
.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-top: 20px;
  cursor: pointer;
  transition: border-color 0.15s;
  text-decoration: none;
}
.related-link:hover { border-color: var(--blue); }
.related-icon { width: 36px; height: 36px; background: var(--blue-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.related-icon svg { width: 16px; height: 16px; stroke: var(--blue); fill: none; stroke-width: 2; }
.related-text { flex: 1; }
.related-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.related-text span { font-size: 13px; color: var(--text-muted); }
.related-arrow { color: var(--text-light); }
.related-arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; }
/* ACF: related_service_title, related_service_subtitle, related_service_url */

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  padding: 60px 80px 30px;
  margin-top: 60px;
}
.footer-top { display: grid; grid-template-columns: 280px repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-brand { }
.footer-logo { color: #fff; font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 14px; }
.footer-phone { font-size: 16px; font-weight: 700; color: #fff; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }

/* ---- Util SVG icons ---- */
.icon { display: inline-block; vertical-align: middle; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero { 
    grid-template-columns: 1fr;
  }
  .hero-content {
  padding: 40px 20px;
  align-items: flex-start;
}

.hero-inner {
  max-width: 100%;
  width: 100%;
}
  .hero-form-wrap { 
    display: flex;
    padding: 40px 24px;
    border-top: 1px solid var(--border);
  }
  .hero-title { font-size: 28px; }
  .hero-phone-number { font-size: 22px; }

  .page-body { grid-template-columns: 1fr; padding: 40px 20px; overflow-x: hidden; }
  .toc-sidebar { display: none; }
  .content { padding-left: 0; }

  .error-card.expanded .error-body { grid-template-columns: 1fr; }
  .error-grid { grid-template-columns: 1fr 1fr; }
  .calibration-mini-grid { grid-template-columns: 1fr; }

  .cta-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-banner-actions { flex-direction: column; align-items: flex-start; width: 100%; }
  .cta-banner-actions .btn-inline { width: 100%; justify-content: center; }

  .final-cta-wrap > div { grid-template-columns: 1fr !important; }
  .checklist { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: 1fr; }

  .video-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }

  * { max-width: 100%; box-sizing: border-box; }
	
	.hero-phone-number { font-size: 20px; }
	.hero-phone { flex-wrap: wrap; }
	
	.error-body > div[style*="grid"] {
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto;
}

.error-body .error-diagram {
  order: -1;
}

.mini-expand-body > div[style*="grid"] {
  grid-template-columns: 1fr !important;
}

.mini-expand-body .error-diagram {
  order: -1;
}
}

@media (max-width: 480px) {
  .error-grid { grid-template-columns: 1fr; }
  .calibration-main-header { flex-wrap: wrap; gap: 8px; }
  .anchor-tag { display: none; }
  .error-slug { display: none; }
  .cta-banner-actions .cta-phone-link { display: none; }
  .footer-top { grid-template-columns: 1fr; }
}

.error-mini.is-open .error-mini-desc,
.calibration-mini.is-open .calibration-mini-desc {
  display: none;
}

.calibration-mini.is-open {
  grid-column: 1 / -1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 86, 219, 0.55);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

.error-mini, .calibration-mini { cursor: pointer; }