/* Moving Cost Calculator — clean, credible, mobile-first. No frameworks. */
:root {
  --ink: #1c2430;
  --muted: #5b6675;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --accent: #0f6cbd;
  --accent-dark: #0a4f8c;
  --warn: #b3541e;
  --good: #1e7e46;
  --radius: 10px;
  --maxw: 72rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.02rem;
}
img { max-width: 100%; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: 44rem; }
section { padding: 2.5rem 0; }

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.1rem;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.2; margin: 0 0 0.75rem; }
.hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 44rem; }
.hero .trust { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Calculator ---------- */
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.75rem; box-shadow: 0 2px 12px rgba(20,40,70,.06); }
.calc-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .calc-grid { grid-template-columns: 1fr 1fr 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.95rem; }
.field input, .field select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font);
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.field .hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.field .error { color: #a4262c; font-size: 0.88rem; min-height: 1.2em; display: block; margin-top: 0.25rem; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}
.btn:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.btn-ghost:hover { background: #eef5fc; }
.calc-actions { margin-top: 1.25rem; display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

.zip-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: flex-end; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--line); }
.zip-row .field { flex: 1 1 8rem; }
#zip-result { font-size: 0.92rem; color: var(--muted); margin-top: 0.6rem; width: 100%; }

/* ---------- Results ---------- */
#results { padding-top: 2rem; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.method-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.method-card h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.tagline { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.75rem; }
.big-range { font-size: 1.7rem; font-weight: 700; color: var(--accent-dark); margin: 0 0 0.75rem; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  vertical-align: middle;
}
.badge-cheap { background: #e6f4ea; color: var(--good); }
.breakdown { list-style: none; margin: 0 0 0.75rem; padding: 0; font-size: 0.92rem; }
.breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px dotted var(--line);
}
.breakdown li span { color: var(--muted); }
.breakdown li strong { white-space: nowrap; }
.notes { font-size: 0.85rem; color: var(--muted); margin: 0; padding-left: 1.1rem; }
.card-cta { font-size: 0.9rem; background: var(--bg-soft); border-radius: 8px; padding: 0.6rem 0.8rem; margin-top: auto; }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare { border-collapse: collapse; width: 100%; min-width: 620px; margin-top: 1rem; font-size: 0.95rem; }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 0.65rem 0.8rem; text-align: left; vertical-align: top; }
table.compare thead th { background: var(--bg-soft); }
table.compare tbody th { background: #fbfcfe; font-size: 0.9rem; color: var(--muted); width: 11rem; }

/* ---------- Quotes placeholder ---------- */
.quotes-box {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--bg-soft);
  text-align: center;
}
.quotes-box h2 { margin-top: 0; }
.quote-soon-msg { color: var(--warn); font-size: 0.95rem; margin-top: 1rem; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 0.6rem; background: #fff; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq-q::after { content: "+"; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { padding: 0 1.1rem 1rem; color: var(--muted); display: none; }
.faq-item.open .faq-a { display: block; }

/* ---------- Guides ---------- */
.guide-cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
@media (min-width: 720px) { .guide-cards { grid-template-columns: repeat(3, 1fr); } }
.guide-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: #fff; }
.guide-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h3 a:hover { color: var(--accent); }
.guide-card p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.guide-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.article h2 { margin-top: 2.2rem; }
.article table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
.article th, .article td { border: 1px solid var(--line); padding: 0.6rem 0.75rem; text-align: left; }
.article th { background: var(--bg-soft); }
.callout { background: #fff8ec; border-left: 4px solid var(--warn); padding: 0.9rem 1.1rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; font-size: 0.95rem; }

/* ---------- Supplies / affiliate placeholder ---------- */
.supplies { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.supply-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
@media (min-width: 640px) { .supply-grid { grid-template-columns: repeat(3, 1fr); } }
.supply-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.supply-card h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.supply-card p { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.7rem; }
.supply-card a { color: var(--muted); font-size: 0.9rem; pointer-events: none; text-decoration: none; border-bottom: 1px dotted; }
.disclosure { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: 0.88rem; }
.site-footer a { color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }