/* Halverly Moving Co. (fictional). Cobalt, kraft and paper. */
:root {
  --cobalt: #1e3aa8;
  --cobalt-dark: #172d84;
  --cobalt-tint: #e8ecfb;
  --ink: #111a33;
  --text: #1d2540;
  --muted: #4d5570;
  --paper: #fbf8f2;
  --kraft: #e2c391;
  --kraft-soft: #f3e6cf;
  --kraft-ink: #6b4a17;
  --white: #ffffff;
  --line: #e3dccd;
  --focus: #e8590c;
  --radius: 10px;
  --max: 1160px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 104px;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper); font-size: 1.0625rem; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--s5), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--ink); color: var(--white); padding: var(--s3) var(--s4); z-index: 20; border-radius: 6px; }
.skip:focus { top: var(--s4); color: var(--white); }

.concept-bar { background: var(--ink); text-align: center; padding: var(--s2) var(--s4); font-size: .875rem; }
.concept-bar a { color: #f6ead6; display: inline-block; min-height: 24px; padding: 2px 0; }
.concept-bar a:hover { color: var(--white); }

/* Header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--ink); min-height: 44px; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-word span { font-size: .7rem; font-weight: 700; letter-spacing: .18em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: var(--s2); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); text-decoration: none; color: var(--text); font-weight: 600; border-radius: 8px; }
.nav a:hover { background: var(--cobalt-tint); color: var(--cobalt-dark); }
.nav a[aria-current="page"] { color: var(--cobalt); box-shadow: inset 0 -3px 0 var(--cobalt); border-radius: 0; }
.nav-links { display: flex; gap: var(--s1); }
.sub-nav { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid transparent; font-family: inherit; font-size: inherit; cursor: pointer; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--cobalt-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--cobalt); border-color: var(--cobalt); }
.btn-outline:hover { background: var(--cobalt-tint); }
.btn-kraft { background: var(--kraft); color: var(--ink); }
.btn-kraft:hover { background: #d6b273; color: var(--ink); }
.nav .btn { color: var(--white); padding: 0 var(--s4); }
.nav .btn:hover { color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* Hero */
.hero { padding: var(--s8) 0 var(--s7); background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s7); align-items: center; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--kraft-ink); margin-bottom: var(--s3); }
.lede { font-size: 1.15rem; color: var(--muted); margin-top: var(--s4); max-width: 34rem; }
.assure { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; gap: var(--s2); }
.assure li { display: flex; gap: var(--s2); align-items: flex-start; }
.assure svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--cobalt); }
.hero-art { width: 100%; height: auto; }

/* Sections */
.section { padding: var(--s8) 0; }
.section.tint { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: var(--s6); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.card p { color: var(--muted); }
.card-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--kraft-soft); display: grid; place-items: center; color: var(--kraft-ink); }
.card-icon svg { width: 26px; height: 26px; }
.card a { margin-top: auto; font-weight: 700; min-height: 24px; }

/* Moving day timeline */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; border-top: 3px dashed var(--kraft); }
.timeline li { position: relative; }
.stage { width: 48px; height: 48px; border-radius: 50%; background: var(--cobalt); color: var(--white); display: grid; place-items: center; margin-bottom: var(--s4); position: relative; }
.stage svg { width: 24px; height: 24px; }
.timeline h3 { margin-bottom: var(--s2); }
.timeline p { color: var(--muted); }

/* Estimate band */
.band { background: var(--cobalt); color: #e9edff; border-radius: 16px; padding: var(--s7); display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s6); align-items: center; }
.band h2 { color: var(--white); }
.band p { margin-top: var(--s3); }
.band .actions { margin-top: 0; justify-content: flex-end; }
.band .btn-outline { color: var(--white); border-color: #b9c5f5; }
.band .btn-outline:hover { background: var(--cobalt-dark); color: var(--white); }

/* Placeholders */
.fill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.fill { border: 2px dashed #cdbd9c; border-radius: var(--radius); padding: var(--s5); background: var(--white); }
.fill-tag { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--kraft-ink); margin-bottom: var(--s2); }
.fill p { color: var(--muted); margin-top: var(--s2); }
.fill dl { margin: var(--s4) 0 0; display: grid; gap: var(--s2); }
.fill dl div { display: flex; justify-content: space-between; gap: var(--s4); border-top: 1px solid var(--line); padding-top: var(--s2); }
.fill dt { font-weight: 600; }
.fill dd { margin: 0; color: var(--muted); }
.reviews { margin-top: var(--s4); }

/* Services page */
.svc { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s6); padding: var(--s7) 0; border-top: 1px solid var(--line); align-items: start; }
.svc:first-of-type { border-top: 0; }
.svc ul { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--s2); }
.svc .note { margin-top: var(--s4); color: var(--muted); font-size: .95rem; }
.price-fill { display: inline-block; margin-top: var(--s3); font-weight: 700; color: var(--kraft-ink); background: var(--kraft-soft); padding: var(--s1) var(--s3); border-radius: 6px; }

/* Form */
.form-shell { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s7); align-items: start; }
form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: var(--s6); display: grid; gap: var(--s5); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s4); min-width: 0; }
legend { font-weight: 800; font-size: 1.15rem; color: var(--ink); padding: 0; margin-bottom: var(--s2); }
.hint { color: var(--muted); font-size: .95rem; margin-top: calc(-1 * var(--s2)); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.field { display: grid; gap: var(--s1); }
label { font-weight: 600; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  font: inherit; color: var(--text); background: var(--white); border: 1.5px solid #a9a18f; border-radius: 8px; padding: 10px 12px; min-height: 48px; width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s2); }
.check { display: flex; align-items: center; gap: var(--s3); min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: 8px; font-weight: 500; background: var(--paper); cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--cobalt); flex: none; margin: 0; }
.check:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt-tint); }
.check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.check input:focus-visible { outline: none; }
.sub-legend { font-weight: 700; font-size: .95rem; color: var(--kraft-ink); margin-top: var(--s2); }
.msg { background: #fff4e6; border: 2px solid var(--focus); color: var(--ink); font-weight: 700; padding: var(--s3) var(--s4); border-radius: 8px; }
.msg:focus-visible { outline-offset: 2px; }
.side { position: sticky; top: var(--s5); display: grid; gap: var(--s4); }
.side .card { gap: var(--s2); }

/* Footer */
.site-foot { background: var(--ink); color: #c6cbe0; padding: var(--s7) 0 var(--s6); margin-top: var(--s8); }
.site-foot .brand { color: var(--white); }
.site-foot .brand-word span { color: #a9b0cc; }
.site-foot a { color: #eef0fa; }
.site-foot a:hover { color: var(--kraft); }
.site-foot h2 { color: var(--white); font-size: 1rem; margin-bottom: var(--s3); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s1); }
.site-foot li a { display: inline-flex; align-items: center; min-height: 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); border-top: 1px solid #2a3355; margin-top: var(--s6); padding-top: var(--s4); font-size: .9rem; }
.foot-base a { min-height: 24px; display: inline-flex; align-items: center; }

.call-bar { display: none; }

/* Motion, only when welcome */
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, .check { transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
  .hero-art .truck { animation: roll-in .9s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes roll-in { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Tablet */
@media (max-width: 960px) {
  .hero-grid, .band, .form-shell, .svc { grid-template-columns: 1fr; }
  .hero { padding-top: var(--s7); }
  .band .actions { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .side { position: static; }
}
/* Phone */
@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .nav-links { display: none; }
  .sub-nav { display: flex; gap: var(--s1); padding-bottom: var(--s2); overflow-x: auto; }
  .head-row { min-height: 64px; }
  .nav .btn span { display: none; }
  .nav .btn { padding: 0 var(--s3); }
  .timeline { grid-template-columns: 1fr; gap: var(--s5); }
  .timeline::before { top: 24px; bottom: 24px; left: 23px; right: auto; border-top: 0; border-left: 3px dashed var(--kraft); }
  .timeline li { padding-left: 72px; }
  .stage { position: absolute; left: 0; top: 0; }
  .fill-grid, .row { grid-template-columns: 1fr; }
  .band { padding: var(--s6) var(--s5); }
  form { padding: var(--s5) var(--s4); }
  .section { padding: var(--s7) 0; }
  .call-bar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); position: fixed; left: 0; right: 0; bottom: 0; padding: var(--s3) var(--s4); background: var(--white); border-top: 1px solid var(--line); z-index: 10; }
  .foot-grid { grid-template-columns: 1fr; }
}
