/*
Theme Name:   HomeFixPrices Child
Theme URI:    https://homefixprices.com
Description:  Child theme of Kadence for HomeFixPrices — home repair & services cost guides (HVAC, plumbing, electrical, roofing) for the US & Canada.
Author:       HomeFixPrices Team
Template:     kadence
Version:      1.1.0
Text Domain:  homefixprices-child
*/

/* ---------- Self-hosted fonts (variable, font-display: swap) ---------- */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/dm-sans-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/libre-franklin-var.woff2') format('woff2');
}

/* ---------- Design tokens (HomeFixPrices preview palette) ---------- */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3eee5;
  --ink: #23201c;
  --muted: #5d5a52;
  --line: #e2dbcf;
  --accent: #ed6b2f;
  --accent-dark: #b83f12;
  --navy: #8a3c14;
  --good: #1d6a4b;
  --warm: #fdeee1;
  --body-text: #413c35;
  --radius: 14px;
  --shadow-soft: 0 1px 2px rgba(35, 32, 28, .04), 0 8px 24px rgba(35, 32, 28, .05);
}

/* ---------- Kadence global palette + fonts, mapped to our tokens ---------- */
:root {
  --global-palette1: #ed6b2f; /* accent */
  --global-palette2: #b83f12; /* accent dark */
  --global-palette3: #23201c; /* ink */
  --global-palette4: #413c35; /* body text */
  --global-palette5: #5d5a52; /* muted */
  --global-palette6: #a29885; /* subtle warm gray */
  --global-palette7: #f3eee5; /* surface-2 */
  --global-palette8: #faf7f2; /* page background */
  --global-palette9: #ffffff; /* surface */
  --global-body-font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --global-heading-font-family: 'Libre Franklin', 'DM Sans', system-ui, sans-serif;
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--body-text);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Franklin', 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  letter-spacing: -0.01em;
}
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

/* ---------- Reusable components (guide pattern + home page) ---------- */
.hfp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
}
.hfp-quick-answer {
  background: var(--warm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.hfp-quick-answer strong { color: var(--ink); }

.hfp-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  padding: .7rem 1.25rem;
  line-height: 1.2;
}
.hfp-btn:hover { background: var(--accent-dark); }

.hfp-cost-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: .98rem;
}
.hfp-cost-table th, .hfp-cost-table td {
  padding: .65rem .9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.hfp-cost-table thead th {
  background: var(--surface-2);
  color: var(--ink);
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 700;
}
.hfp-cost-table tr:last-child td { border-bottom: 0; }
.hfp-typical { color: var(--good); font-weight: 700; }

.hfp-checks { list-style: none; padding-left: 0; }
.hfp-checks li { padding-left: 1.6rem; position: relative; margin-bottom: .4rem; }
.hfp-checks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--good); font-weight: 700;
}

.hfp-callout {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.hfp-muted { color: var(--muted); }
