/* LoomPros city sites. Mobile first, system fonts, no web fonts.
   Colours checked for at least 4.5:1 against their backgrounds. */
:root {
  --ink: #1b1f24;        /* body text on white: 16.0:1 */
  --muted: #4a525c;      /* secondary text on white: 7.7:1 */
  --brand: #0b4f8a;      /* links and buttons; white on it: 8.3:1 */
  --brand-dark: #083a66;
  --bg: #ffffff;
  --soft: #f2f5f8;
  --line: #c9d1da;
  --danger: #a3161c;     /* on #fdecec: 6.5:1 */
  --danger-bg: #fdecec;
  --ok: #1d6b2f;         /* on white: 6.4:1 */
  --focus: #b35c00;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 42rem; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; margin-right: auto; display: inline-flex; align-items: center; min-height: 44px; }
.brand span { color: var(--brand); }
.head-links { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.head-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px;
  border-radius: var(--radius); border: 2px solid var(--brand); background: var(--brand); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.secondary { background: #fff; color: var(--brand); }
.btn.secondary:hover { background: var(--soft); color: var(--brand-dark); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.tel { font-weight: 700; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0; }

/* Sections */
main { display: block; }
.hero { background: var(--soft); padding: 32px 0 28px; }
h1 { font-size: 1.85rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 12px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; }
section { padding: 28px 0; }
section + section { border-top: 1px solid var(--line); }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 12px; }
.one-pro { font-weight: 600; border-left: 4px solid var(--brand); padding: 6px 0 6px 12px; margin: 16px 0; }
.promise { font-weight: 600; color: var(--ok); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cards li { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.cards a { font-weight: 600; font-size: 1.05rem; display: inline-flex; min-height: 44px; align-items: center; }
.cards p { margin: 4px 0 0; color: var(--muted); }
.cards li.ref-highlight { border: 2px solid var(--brand); background: #eef4fb; }
.ref-tag { display: block; font-size: 1rem; color: var(--brand-dark); font-weight: 600; }
.steps { padding-left: 1.3rem; margin: 0; }
.steps li { margin-bottom: 12px; }
.steps strong { display: block; }
details summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.zips { columns: 5 4.5rem; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.ref-banner { background: #eef4fb; border: 2px solid var(--brand); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; }
.ref-banner p { margin: 0; }
.ref-banner p + p { margin-top: 4px; color: var(--muted); }
.legal h2 { margin-top: 28px; }
.review { background: #fff4d6; border: 1px solid #b38600; padding: 2px 6px; border-radius: 4px; font-weight: 600; }

/* Form */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field > label, legend { font-weight: 600; }
.hint { color: var(--muted); font-size: 1rem; margin: 0; }
.req { color: var(--muted); font-weight: 400; font-size: .95rem; }
input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea {
  font: inherit; color: var(--ink); background: #fff; width: 100%; min-height: 48px; padding: 10px 12px;
  border: 2px solid #6b7480; border-radius: 8px;
}
textarea { min-height: 120px; resize: vertical; }
input[type=file] { font: inherit; min-height: 48px; padding: 8px 0; max-width: 100%; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 16px; margin: 0; min-width: 0; }
legend { padding: 0 6px; }
.choice { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 6px 0; }
.choice input { width: 24px; height: 24px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--brand); }
.choice label { font-weight: 400; }
.error-msg { color: var(--danger); font-weight: 600; margin: 0; }
[aria-invalid=true] { border-color: var(--danger) !important; }
.alert { background: var(--danger-bg); color: var(--danger); border: 2px solid var(--danger); border-radius: var(--radius); padding: 12px 14px; font-weight: 600; }
.alert p { margin: 0; }
.notice { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.code-input { font-size: 1.5rem !important; letter-spacing: .3em; max-width: 12rem; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.status-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.status-card dl { margin: 12px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.status-card dt { color: var(--muted); }
.status-card dd { margin: 0; font-weight: 600; }
.directory { list-style: none; padding: 0; display: grid; gap: 10px; }
.directory li { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }

/* Footer */
.site-foot { background: var(--soft); border-top: 1px solid var(--line); margin-top: 32px; padding: 24px 0 32px; color: var(--muted); }
.site-foot p { margin: 0 0 8px; }
.site-foot ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-foot a { display: inline-flex; min-height: 44px; align-items: center; }

@media (min-width: 720px) {
  h1 { font-size: 2.3rem; }
  .hero { padding: 48px 0 40px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
