/* ============================================================
   HOME MODIFICATION COST CALCULATOR — PAGE STYLES
   Prefix: hmtp- = page template wrapper (hero, sections, FAQ)

   NOTE: The calculator widget itself is rendered by the
   "Home Modification Calculator" plugin via the shortcode
   [home_modification_calculator]. That plugin loads its own
   stylesheet (prefixed hmc-) automatically — do not add
   calculator widget styles here.

   Uses theme variables defined in style.css:
     --color-primary, --color-secondary, --color-accent,
     --color-text, --color-muted, --color-white, --color-border,
     --font-body, --font-heading
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   PAGE WRAPPER (hmtp-)
   ────────────────────────────────────────────────────────── */
.hmtp-page-header {
  background: linear-gradient(135deg, var(--color-accent) 0%, #ffffff 100%);
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--color-border);
}
.hmtp-header-inner { max-width: 760px; }
.hmtp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hmtp-hero-h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin: 0 0 14px 0;
}
.hmtp-hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0 0 20px 0;
  max-width: 640px;
}
.hmtp-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hmtp-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}
.hmtp-trust-item svg { flex-shrink: 0; }

.hmtp-wrap { padding: 48px 0 80px; }

.hmtp-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}
.hmtp-section:last-of-type { border-bottom: none; }
.hmtp-section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 10px;
}
.hmtp-section-h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 30px);
  color: var(--color-text);
  margin: 0 0 14px 0;
  line-height: 1.3;
}
.hmtp-section-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 700px;
  margin: 0 0 28px 0;
}
.hmtp-body-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0 0 16px 0;
  max-width: 760px;
}

/* "How estimates work" grid */
.hmtp-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.hmtp-how-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 22px;
}
.hmtp-how-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-accent);
  color: var(--color-primary);
  margin-bottom: 14px;
}
.hmtp-how-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-text);
  margin: 0 0 8px 0;
}
.hmtp-how-card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0;
}

/* Callout boxes (reuse pattern from medical alert tool) */
.hmtp-callout {
  border-radius: 12px;
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.7;
  margin-top: 28px;
}
.hmtp-callout-green {
  background: var(--color-accent);
  color: #1A4736;
  border-left: 4px solid var(--color-primary);
}
.hmtp-callout-amber {
  background: #FFF6E5;
  color: #7A4E10;
  border-left: 4px solid var(--color-secondary);
}

/* FAQ (reuses matp-style accordion classes if present, but namespaced separately) */
.hmtp-faq-list { display: flex; flex-direction: column; gap: 10px; }
.hmtp-faq-item {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-white);
}
.hmtp-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--color-text);
}
.hmtp-faq-icon { flex-shrink: 0; color: var(--color-primary); }
.hmtp-faq-a {
  padding: 0 18px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-muted);
}
.hmtp-faq-a p { margin: 0; }
.hmtp-faq-cta {
  margin-top: 18px;
  font-size: 15px;
  color: var(--color-muted);
}
.hmtp-faq-cta a { color: var(--color-primary); font-weight: 600; }

/* Bottom CTA */
.hmtp-bottom-cta-inner {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}
.hmtp-bottom-cta-h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 28px);
  margin: 0 0 10px 0;
}
.hmtp-bottom-cta-inner p {
  font-size: 15.5px;
  opacity: 0.92;
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.7;
}
.hmtp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.hmtp-cta-btn:hover { transform: translateY(-2px); }
