/* FixApplianceUSA — mobile first */
:root {
  --ink: #0c0c0d;
  --muted: #5f6360;
  --line: #e4e4e7;
  --soft: #f7f7f7;
  --link: #116dff;
  --accent: #116dff;
  --accent-ink: #fff;
  --radius: 10px;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
p, ul, ol, blockquote { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; min-height: 44px; min-width: 0; }
.brand img { width: 36px; height: auto; flex: none; }
.brand-txt { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.brand-sub { display: none; font-size: .8rem; color: var(--muted); font-style: italic; }
.call { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; white-space: nowrap; flex: none; }
.call-lbl { display: none; }

/* sections */
main { overflow-x: hidden; }
.s { padding: 28px 0; border-bottom: 1px solid var(--soft); }
.s:nth-of-type(even) { background: var(--soft); }
.rt { margin-bottom: .75em; }
.rt ul, .rt ol { padding-left: 1.3em; }
.rt li p { margin: 0 0 .25em; }
.rt blockquote { margin: 0 0 1em; font-style: italic; color: #333; }
.rt ul:has(> li:nth-child(9)) { columns: 2; column-gap: 24px; }
.rt ul:has(> li:nth-child(9)) li { break-inside: avoid; }
.pic { margin: 0 0 1em; }
.pic img { margin: 0 auto; border-radius: var(--radius); }
.pic img.sm { border-radius: 0; }
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 1em; align-items: center; }
.gal img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.gal-sm { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); justify-items: center; }
.gal-sm img { width: auto; max-height: 72px; object-fit: contain; border-radius: 0; }
.btn-row { margin: .5em 0 1.25em; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius); background: var(--ink); color: #fff; font: 600 1rem var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: #333; }
.lnk { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* lead form */
.lead { display: grid; gap: 12px; margin: 0 0 1em; max-width: 640px; }
.lead label { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.lead input, .lead textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #c4c4c8; border-radius: 8px; font: 16px var(--font); color: var(--ink); background: #fff; }
.lead textarea { min-height: 110px; resize: vertical; }
.lead .row2 { display: grid; gap: 12px; }
.lead-ok { color: #0a7a2f; font-weight: 700; }
.lead-err { color: #b00020; }

/* blog */
.cards { display: grid; gap: 12px; margin: 0 0 1em; }
.card { display: block; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; }
.card h3 { font-size: 1.1rem; margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: .5em; }
.card .more { color: var(--link); font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; font-size: .9rem; }
.post p { font-size: 1.05rem; }
.crumb a { display: inline-flex; min-height: 44px; align-items: center; }
.meta { color: var(--muted); font-size: .9rem; }
.cta { margin: 24px 0 0; padding: 16px; border-radius: var(--radius); background: var(--soft); }

/* footer */
.ftr { background: var(--ink); color: #ddd; padding: 32px 0 calc(96px + env(safe-area-inset-bottom)); }
.ftr a { color: #fff; }
.ftr-grid { display: grid; gap: 20px; }
.ftr-h { font-size: 1.05rem; color: #fff; }
.ftr-links { list-style: none; padding: 0; margin: 0; }
.ftr-links a { display: inline-flex; align-items: center; min-height: 44px; }
.copy { font-size: .85rem; color: #999; margin-top: 16px; }

@media (min-width: 640px) {
  .gal { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .lead .row2 { grid-template-columns: 1fr 1fr; }
  .brand-sub { display: block; }
  .call-lbl { display: inline; }
}
@media (min-width: 960px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }
  .s { padding: 48px 0; }
  .hdr-in { min-height: 76px; }
  .brand img { width: 48px; }
  .brand-name { font-size: 1.4rem; }
  .call { font-size: 1.15rem; padding: 0 20px; }
  .gal { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .ftr-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* live chat */
.fx-chat-btn { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 700 1rem var(--font); box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; }
.fx-chat-btn .dot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #e84a43; font-size: .75rem; line-height: 20px; }
.fx-chat { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; background: #fff; }
.fx-chat[hidden] { display: none; }
.fx-chat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 16px; padding-top: calc(8px + env(safe-area-inset-top)); background: var(--accent); color: #fff; }
.fx-chat-top strong { font-size: 1.05rem; }
.fx-chat-top small { display: block; opacity: .9; }
.fx-x { width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.fx-log { flex: 1; overflow-y: auto; padding: 16px; background: var(--soft); display: flex; flex-direction: column; gap: 8px; }
.fx-msg { max-width: 82%; padding: 10px 12px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; font-size: .98rem; }
.fx-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.fx-msg.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.fx-msg.sys { align-self: center; background: transparent; color: var(--muted); font-size: .85rem; text-align: center; }
.fx-who[hidden] { display: none; }
.fx-who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px 0; }
.fx-who input, .fx-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c4c4c8; border-radius: 8px; font: 16px var(--font); }
.fx-form { display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.fx-form textarea { flex: 1; resize: none; max-height: 120px; }
.fx-send { min-width: 64px; min-height: 44px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: 700 1rem var(--font); cursor: pointer; }
.fx-send:disabled { opacity: .5; }
@media (min-width: 640px) {
  .fx-chat { inset: auto 16px 84px auto; width: 380px; height: min(600px, calc(100vh - 110px)); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
  .fx-chat-top { padding-top: 8px; }
}
body.fx-open { overflow: hidden; }
@media (min-width: 640px) { body.fx-open { overflow: auto; } }
