/* AIX Worksite Health — platform site.
   Palette: worksite signage on a cool page. Field green marks what is open, signal yellow
   marks the one action on a screen, slate marks what is taken. The Texas map is the one
   memorable element; everything around it stays quiet. */
:root {
  --ink: #1b2a2f;
  --ink-2: #44555b;
  --paper: #f5f7f6;
  --panel: #ffffff;
  --rule: #d5dcda;
  --field: #2f7d5b;
  --field-2: #e3efe8;
  --signal: #f2c230;
  --signal-ink: #1b2a2f;
  --taken: #8a97a0;
  --closed: #dde3e1;
  --closed-ink: #6b787d;
  --focus: #1f6fd1;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 66ch;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--field); text-underline-offset: 3px; }
a:hover { color: var(--field); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--signal); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* type scale: 1.0625 body, 1.25 / 1.6 / 2.3 / 3.4 display */
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 800; font-stretch: 82%; max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; font-stretch: 88%; max-width: 26ch; }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 95%; }
p, li { max-width: var(--measure); }
.lede { font-size: 1.25rem; color: var(--ink-2); max-width: 54ch; }
.small { font-size: .9375rem; color: var(--ink-2); }

/* header */
.top { border-bottom: 1px solid var(--rule); background: var(--panel); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 1.3rem; text-decoration: none; letter-spacing: -.01em; }
.brand span { font-weight: 600; font-stretch: 100%; }
.top nav { display: flex; gap: 6px 18px; align-items: center; flex-wrap: wrap; }
.top nav a { text-decoration: none; font-weight: 600; font-size: .98rem; }
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--field); text-decoration-thickness: 2px; }

/* buttons: signal yellow is the one action; secondary is outlined */
.btn {
  display: inline-block; font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 14px 20px; border-radius: 4px; border: 2px solid var(--ink);
  background: var(--signal); color: var(--signal-ink);
}
.btn:hover { background: #ffd24a; color: var(--signal-ink); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--field-2); }
.btn.small { padding: 9px 14px; font-size: .95rem; }
.btn[disabled] { opacity: .55; cursor: progress; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--rule); }
.hero { padding: 56px 0 48px; }
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } .split.even { grid-template-columns: 1fr 1fr; } }

/* home: two doors */
.doors { display: grid; gap: 0; grid-template-columns: 1fr; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--panel); }
@media (min-width: 760px) { .doors { grid-template-columns: 1fr 1fr; } }
.door { padding: 28px 26px 30px; }
.door + .door { border-top: 2px solid var(--ink); }
@media (min-width: 760px) { .door + .door { border-top: 0; border-left: 2px solid var(--ink); } }
.door h2 { font-size: 1.6rem; margin-bottom: .3em; }
.door p { margin: 0 0 20px; color: var(--ink-2); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
@media (min-width: 900px) { .steps.row { grid-template-columns: repeat(3, 1fr); } .steps.row4 { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; padding-left: 52px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--field); color: var(--field); font: 800 1.1rem/34px var(--display); text-align: center;
}
.steps strong { display: block; font-family: var(--display); font-size: 1.12rem; }
.services { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 0; list-style: none; }
.services li { border: 1.5px solid var(--field); color: var(--field); border-radius: 999px; padding: 6px 14px; font-weight: 600; }
.closing { font-family: var(--display); font-weight: 800; font-stretch: 82%; font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0; }

/* plain lists and tables */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--field); border-bottom: 2.5px solid var(--field); transform: rotate(-45deg); }
table { border-collapse: collapse; width: 100%; background: var(--panel); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--display); font-weight: 700; font-size: .98rem; background: var(--field-2); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; }
.note { border-left: 4px solid var(--field); padding: 4px 0 4px 16px; color: var(--ink-2); }

/* forwardable block */
.forward { background: var(--panel); border: 2px dashed var(--field); border-radius: 6px; padding: 26px; }
.forward h3 { margin-top: 0; }

/* forms */
.form { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 26px; display: grid; gap: 16px; }
.form h3 { margin: 0; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; }
.field .hint { font-size: .9rem; color: var(--ink-2); margin: 0; }
input[type=text], input[type=email], input[type=tel], input[type=number], select {
  font: inherit; color: var(--ink); background: #fff; width: 100%;
  border: 1.5px solid #9fb0ae; border-radius: 4px; padding: 10px 12px; min-height: 46px;
}
input:focus, select:focus { border-color: var(--focus); }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { font-weight: 400; display: inline-flex; gap: 8px; align-items: center; min-height: 32px; }
.checks input { width: 20px; height: 20px; accent-color: var(--field); }
.two { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .two { grid-template-columns: 1fr 1fr; } }
.site-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; align-items: end; }
.linkish { background: none; border: 0; padding: 0; font: 600 1rem var(--body); color: var(--ink); text-decoration: underline; text-decoration-color: var(--field); cursor: pointer; justify-self: start; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-weight: 600; }
.form-msg.ok { color: var(--field); }
.form-msg.err { color: #a33a2a; }
.form.sent .field, .form.sent .actions, .form.sent fieldset, .form.sent .formnote { display: none; }
.formnote { font-size: .9rem; color: var(--ink-2); margin: 0; }

/* service-line picker */
.picker { display: inline-flex; flex-wrap: wrap; gap: 0; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; margin: 8px 0 20px; }
.picker button { font: 600 .98rem var(--body); background: var(--panel); color: var(--ink); border: 0; padding: 10px 16px; cursor: pointer; min-height: 44px; }
.picker button + button { border-left: 1.5px solid var(--ink); }
.picker button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* status words in tables follow the picker */
.st { display: none; font-weight: 600; }
.st.open { color: var(--field); }
.st.taken { color: var(--taken); }
.st.not_offered { color: var(--closed-ink); font-weight: 400; }
[data-line="iv"] .st-iv, [data-line="pt"] .st-pt, [data-line="chiro"] .st-chiro, [data-line="massage"] .st-massage { display: inline; }

/* the map: the one bold element */
.map-frame { background: var(--panel); border: 2px solid var(--ink); border-radius: 6px; padding: 12px; }
.map-frame svg { display: block; width: 100%; height: auto; }
.tx path.c { stroke: #fff; stroke-width: .35; fill: var(--closed); }
.tx a .c { transition: opacity .15s; }
.tx a:hover .c, .tx a:focus .c { opacity: .82; }
.tx .tb { fill: none; stroke: var(--ink); stroke-width: .9; stroke-linejoin: round; pointer-events: none; }
.tx .lbl { font: 700 5.2px var(--display); fill: #fff; pointer-events: none; paint-order: stroke; stroke: rgba(27,42,47,.55); stroke-width: 1.2px; }
.tx .lbl.dark { fill: var(--ink); stroke: rgba(255,255,255,.8); }
[data-line="iv"] .tx a[data-iv="open"] .c, [data-line="pt"] .tx a[data-pt="open"] .c,
[data-line="chiro"] .tx a[data-chiro="open"] .c, [data-line="massage"] .tx a[data-massage="open"] .c { fill: var(--field); }
[data-line="iv"] .tx a[data-iv="taken"] .c, [data-line="pt"] .tx a[data-pt="taken"] .c,
[data-line="chiro"] .tx a[data-chiro="taken"] .c, [data-line="massage"] .tx a[data-massage="taken"] .c { fill: var(--taken); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 14px 0 0; }
.legend li { display: flex; gap: 10px; align-items: baseline; max-width: 34ch; }
.legend i { flex: none; width: 16px; height: 16px; border-radius: 3px; display: inline-block; position: relative; top: 2px; }
.legend .k-open { background: var(--field); }
.legend .k-taken { background: var(--taken); }
.legend .k-closed { background: var(--closed); border: 1px solid #b9c3c1; }

.map-wide { max-width: 900px; }
.terr-block { margin-top: 48px; }
@media (min-width: 760px) { .terr-list.cols { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* home hero map */
.hero-map svg { display: block; width: 100%; height: auto; }
.hero-map path.c { fill: var(--field-2); stroke: #fff; stroke-width: .35; }
.hero-map path.c.on { fill: var(--field); }
.hero-map .tb { fill: none; stroke: var(--ink); stroke-width: .7; }

/* territory cards in the list under the map */
.terr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.terr-list li { border-bottom: 1px solid var(--rule); max-width: none; }
.terr-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; padding: 14px 4px; text-decoration: none; }
.terr-list a:hover { background: var(--field-2); color: var(--ink); }
.terr-list .nm { font-family: var(--display); font-weight: 700; font-size: 1.12rem; }
.terr-list .ct { font-size: .92rem; color: var(--ink-2); grid-column: 1; }
.terr-list .stx { grid-row: 1 / span 2; grid-column: 2; align-self: center; }

/* price block */
.prices { margin-top: 6px; }
.prices table td:last-child { text-align: right; }
.prices .total td { font-weight: 700; }

/* FAQ */
.faq dt { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-top: 22px; }
.faq dd { margin: 6px 0 0; max-width: var(--measure); }

/* legal pages */
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* footer */
footer { border-top: 1px solid var(--rule); background: var(--panel); padding: 32px 0 40px; margin-top: 24px; }
footer p { font-size: .92rem; color: var(--ink-2); max-width: 90ch; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
footer nav a { font-weight: 600; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .top nav, .actions, .form, footer nav { display: none; } .forward { border-style: solid; } }
