/* Appliance repair pSEO theme — mobile-first, conversion-focused. */
:root {
  --brand: #0b5cab;
  --brand-dark: #08427b;
  --brand-dark: color-mix(in srgb, var(--brand) 78%, #041a30);
  --brand-soft: #e8f1fb;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, #ffffff);
  --accent: #e87722;
  --accent-dark: #c55f12;
  --ink: #152230;
  --muted: #5b6b7c;
  --line: #dbe3ec;
  --bg: #f7f9fc;
  --card: #ffffff;
  --ok: #1c7c4a;
  --warn: #9a5b00;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 35, 60, 0.08);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin-top: 0; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 700; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

.section { padding: 56px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { max-width: 62ch; color: var(--muted); font-size: 1.08rem; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.text-link { font-weight: 700; }
.context-link { font-weight: 600; }

/* Utility bar */
.utility { background: var(--brand-dark); color: #fff; font-size: 0.88rem; }
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  min-height: 40px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.utility-area { opacity: 0.9; }
.utility-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.utility-call { color: #fff; font-weight: 700; border-bottom: 1px dashed rgba(255, 255, 255, 0.55); }
.utility-call:hover { text-decoration: none; border-bottom-style: solid; }
.phone-note { display: block; font-size: 0.72rem; opacity: 0.75; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-name { max-width: 22ch; }
.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); text-decoration: none; }
.header-cta { margin-left: 4px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(232, 119, 34, 0.28); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--brand-soft) 0%, rgba(247, 249, 252, 0) 78%); padding: 62px 0 50px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 44px; align-items: start; }
.hero h1 { margin-bottom: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 20px 0 0; padding: 0; font-size: 0.94rem; color: var(--muted); }
.hero-points li { display: flex; align-items: baseline; gap: 8px; }
.hero-points li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.hero-card h2 { font-size: 1.25rem; }
.hero-card-note { margin: 14px 0 0; font-size: 0.85rem; color: var(--muted); }

.page-hero { background: var(--brand-soft); border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero .lead { margin-bottom: 0; }

/* Breadcrumbs */
.breadcrumbs { margin: 0 0 16px; font-size: 0.87rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--brand); }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.niche-grid { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); }
.guide-grid { grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); }
.brand-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.parts-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 35, 60, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); text-decoration: none; }
.card h2, .card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.niche-card p, .guide-card p { color: var(--muted); }
.card-link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 0.92rem; color: var(--brand); }
.tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.brand-card { text-align: left; }
.brand-card .tag { margin-top: 10px; margin-bottom: 0; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.3;
}
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* Link lists */
.city-list { columns: 3 210px; column-gap: 26px; list-style: none; margin: 0; padding: 0; }
.city-list li { break-inside: avoid; margin-bottom: 8px; }
.area-list, .brand-list, .part-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.area-list a, .brand-list a { font-weight: 600; }
.part-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Content lists */
.symptom-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.symptom-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.symptom-list h3 { font-size: 1.02rem; margin-bottom: 6px; }
.symptom-list p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 56px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.check-list, .warning-list, .trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li, .trust-list li { position: relative; padding-left: 28px; }
.check-list li::before, .trust-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.warning-list li { position: relative; padding-left: 28px; }
.warning-list li::before { content: "!"; position: absolute; left: 4px; color: var(--warn); font-weight: 800; }

/* FAQ */
.faq-list { display: grid; gap: 10px; margin-top: 18px; }
.faq-list details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.faq-list summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.faq-list details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.faq-list p { color: var(--muted); margin-bottom: 14px; }

/* CTA band */
.cta-band { background: var(--brand-dark); color: #fff; padding: 46px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: 6px; }
.cta-inner p { color: rgba(255, 255, 255, 0.82); margin: 0; max-width: 58ch; }
.cta-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cta-phone { margin: 0; }
.phone-link { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 700; }
.phone-link .phone-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.phone-link-lg { font-size: 1.1rem; }
.cta-band .phone-link { color: #fff; }

/* Contact */
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-label { display: block; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-line { font-size: 1.06rem; font-weight: 700; margin-bottom: 14px; }
.contact-line:last-child { margin-bottom: 0; }

/* Article prose */
.article { max-width: 76ch; }
.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.3em; }
.article ul, .article ol { margin-bottom: 1.2em; }
.article li { margin-bottom: 0.35em; }
.article table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }

/* Footer */
.site-footer { background: #101c29; color: rgba(255, 255, 255, 0.78); padding: 48px 0 24px; font-size: 0.92rem; }
.site-footer a { color: rgba(255, 255, 255, 0.9); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 28px; }
.footer-about p { margin: 10px 0 0; max-width: 42ch; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-legal p { margin: 0; }
.footer-disclaimer { flex-basis: 100%; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); margin-top: 6px; }

/* Mobile menu button */
.nav-toggle { display: none; align-items: center; justify-content: center; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.nav-toggle[aria-expanded="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: 40px 0; }
  .hero { padding: 40px 0 34px; }
  .header-inner { min-height: 64px; flex-wrap: wrap; gap: 10px; }
  .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 6px 0 8px; border-top: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { white-space: normal; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand-name { max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; flex: 0 0 auto; }
  .utility-inner { flex-wrap: nowrap; gap: 8px; }
  .utility-call { white-space: nowrap; }
  .city-list { columns: 2 160px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-inner { align-items: flex-start; }
  .breadcrumbs { font-size: 0.82rem; }
}

@media (max-width: 420px) {
  .city-list { columns: 1; }
  .brand-name { max-width: none; font-size: 0.95rem; }
  .utility-area { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
