/* =========================================================================
   Hagimo NAS Outreach -- design system

   Extracted from the original single-file index.cfm so every page shares
   one source. Hagimo navy is the structural colour; the accent blue is used
   for card edges and progress marks. No partner marks appear on this site.

   Built to the Sec. 1.2A constraints: no web fonts, no framework, no CDN.
   System font stack, one stylesheet, 44px minimum touch targets.
   ========================================================================= */

:root{
  --navy:#1a365d;
  --navy-deep:#12263f;
  --navy-light:#2c4f7c;
  --accent:#0177bf;          /* structural accent only, not an identity mark */
  --tint:#eef2f7;
  --tint-soft:#f6f8fb;
  --warm:#faf7f2;
  --line:#d7dee8;
  --rule:#9fb0c4;
  --ink:#1f2937;
  --muted:#51617a;
  --white:#ffffff;
  --focus:#2c4f7c;
  --err:#a3341f;
  --ok:#1f6b45;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.65;
  font-size:17px;
  -webkit-text-size-adjust:100%;
}
a{color:var(--navy);}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:2px;
}
.wrap{max-width:960px;margin:0 auto;padding:0 20px;}
.narrow{max-width:720px;}

/* ---------- Header ---------- */
header{background:var(--white);border-bottom:1px solid var(--line);}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:12px 20px;padding:14px 0;
}
.brandlock{display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
.brandlock a{text-decoration:none;}
.wordmark{
  font-size:20px;font-weight:800;letter-spacing:-.01em;
  color:var(--navy);white-space:nowrap;
}
.wordmark span{
  font-weight:500;letter-spacing:.2em;text-transform:uppercase;
  font-size:11px;color:var(--muted);margin-left:8px;
}
.headtools{display:flex;align-items:center;gap:14px;font-size:14px;}
.headtools a{color:var(--navy-light);text-decoration:none;font-weight:600;}
.headtools a:hover{text-decoration:underline;}

/* ---------- Hero ---------- */
.hero{background:linear-gradient(180deg,var(--tint) 0%,var(--white) 100%);padding:56px 0 48px;}
.eyebrow{
  letter-spacing:.2em;text-transform:uppercase;font-size:12px;
  font-weight:700;color:var(--navy-light);margin-bottom:14px;
}
h1{
  font-size:clamp(28px,5vw,42px);font-weight:800;line-height:1.15;
  letter-spacing:-.015em;color:var(--navy-deep);max-width:680px;
}
.lede{margin-top:18px;font-size:19px;color:var(--muted);max-width:640px;}
.reassure{
  margin-top:28px;display:inline-block;background:var(--white);
  border:1px solid var(--line);border-left:5px solid var(--accent);
  border-radius:0 12px 12px 0;padding:14px 20px;font-size:17px;
  max-width:640px;box-shadow:0 2px 12px rgba(18,38,63,.06);
}

/* ---------- Sections ---------- */
section{padding:44px 0;border-top:1px solid var(--line);}
section:first-of-type{border-top:none;}
h2{
  font-size:clamp(22px,3.4vw,30px);font-weight:800;color:var(--navy-deep);
  letter-spacing:-.01em;margin-bottom:10px;
}
h3{font-size:19px;color:var(--navy);margin-bottom:6px;}
p{margin-bottom:14px;}
.section-lede{font-size:18px;color:var(--muted);margin-bottom:24px;max-width:660px;}

/* ---------- Cards ---------- */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-top:8px;}
.card{
  border:1px solid var(--line);border-radius:12px;padding:22px 22px 18px;
  background:var(--white);display:flex;flex-direction:column;
  transition:box-shadow .15s,border-color .15s;
}
.card:hover{box-shadow:0 4px 18px rgba(18,38,63,.09);border-color:var(--navy-light);}
.card h3{margin-bottom:8px;}
.card p{font-size:15.5px;color:var(--muted);flex:1;}
.card .go{
  margin-top:10px;font-weight:700;color:var(--navy);text-decoration:none;
  display:inline-flex;align-items:center;gap:6px;min-height:44px;
}
.card a.cardlink{text-decoration:none;color:inherit;display:flex;flex-direction:column;flex:1;}

/* ---------- Assurances ---------- */
.assure{background:var(--tint-soft);border-radius:12px;padding:24px;margin-top:8px;}
.assure ul{list-style:none;display:grid;gap:14px;}
.assure li{display:flex;gap:12px;align-items:flex-start;font-size:16px;}
.tick{flex:0 0 22px;height:22px;margin-top:2px;}

/* ---------- Callouts ---------- */
.callout{
  background:var(--tint);border-left:5px solid var(--navy);
  border-radius:0 10px 10px 0;padding:16px 20px;margin:18px 0;
}
.callout.warm{background:var(--warm);border-left-color:#b08d3f;}
.callout p:last-child{margin-bottom:0;}
.note{font-size:14.5px;color:var(--muted);}

/* ---------- Forms ---------- */
.formcard{
  border:1px solid var(--line);border-radius:12px;padding:24px;
  background:var(--white);max-width:640px;
}
.field{margin-bottom:18px;}
.field label,.lab{
  display:block;font-size:12.5px;text-transform:uppercase;
  letter-spacing:.08em;color:var(--muted);margin-bottom:5px;font-weight:600;
}
.field input,.field select,.field textarea{
  font:inherit;width:100%;min-height:48px;padding:11px 13px;
  border:1px solid var(--rule);border-radius:8px;background:var(--white);
}
.field .hint{font-size:14px;color:var(--muted);margin:-2px 0 6px;text-transform:none;letter-spacing:0;font-weight:400;}
.field.err input,.field.err select{border-color:var(--err);}
.row{display:flex;gap:16px;flex-wrap:wrap;}
.row .field{flex:1;min-width:200px;}
.row .field.sm{flex:0 0 140px;min-width:140px;}

/* Option lists -- big targets, one per row on a phone */
.opts{display:grid;gap:10px;margin-top:4px;}
.opts.inline{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));}
.opt{
  display:flex;align-items:center;gap:11px;min-height:48px;
  border:1px solid var(--line);border-radius:8px;padding:8px 14px;
  cursor:pointer;background:var(--white);font-size:16px;
}
.opt:hover{border-color:var(--navy-light);background:var(--tint-soft);}
.opt input{width:22px;height:22px;flex:0 0 22px;accent-color:var(--navy);}
.opt.checked{border-color:var(--navy);background:var(--tint);}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;background:var(--navy);color:var(--white);
  text-decoration:none;font-weight:700;font-size:17px;
  padding:13px 26px;border-radius:8px;border:1px solid var(--navy);
  min-height:48px;cursor:pointer;font-family:inherit;
}
.btn:hover{background:var(--navy-deep);}
.btn.ghost{background:var(--white);color:var(--navy);}
.btn.ghost:hover{background:var(--tint);}
.btnrow{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:22px;}

/* ---------- Messages ---------- */
.msg{border-radius:8px;padding:13px 16px;margin-bottom:18px;font-size:16px;}
.msg.error{background:#fdf1ee;border:1px solid #e8c4b8;color:var(--err);}
.msg.ok{background:#eef7f1;border:1px solid #bcdcc8;color:var(--ok);}
.msg.info{background:var(--tint);border:1px solid var(--line);color:var(--ink);}

/* ---------- Progress ---------- */
.progress{margin-bottom:22px;}
.progress .steps{display:flex;gap:6px;margin-bottom:6px;}
.progress .s{flex:1;height:6px;border-radius:3px;background:var(--line);}
.progress .s.done{background:var(--accent);}
.progress .s.now{background:var(--navy);}
.progress .cap{font-size:13.5px;color:var(--muted);letter-spacing:.04em;text-transform:uppercase;font-weight:600;}

/* ---------- Reference number ---------- */
.refbox{
  border:2px dashed var(--navy-light);border-radius:10px;background:var(--tint);
  padding:14px 18px;margin:18px 0;
}
.refbox .num{
  font-family:"Courier New",Courier,monospace;font-size:26px;font-weight:bold;
  color:var(--navy);letter-spacing:.06em;
}

/* ---------- Signature pad ---------- */
.sig-shell{position:relative;border:2px solid var(--navy-light);border-radius:8px;background:var(--white);overflow:hidden;}
.sig-shell.is-empty{border-style:dashed;}
.sig-shell.is-error{border-color:var(--err);}
#sigpad{display:block;width:100%;height:190px;touch-action:none;cursor:crosshair;background:transparent;}
.sig-baseline{position:absolute;left:22px;right:22px;bottom:46px;border-bottom:1px solid var(--rule);pointer-events:none;}
.sig-hint{position:absolute;left:26px;bottom:22px;font-size:14px;color:var(--muted);pointer-events:none;transition:opacity .15s;}
.sig-shell:not(.is-empty) .sig-hint,.sig-shell:not(.is-empty) .sig-baseline{opacity:0;}
.sig-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;flex-wrap:wrap;}

/* ---------- Tables ---------- */
.tbl{width:100%;border-collapse:collapse;font-size:15px;}
.tbl th,.tbl td{text-align:left;padding:9px 12px;border-bottom:1px solid var(--line);vertical-align:top;}
.tbl th{background:var(--tint);font-size:12.5px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);}
.scroller{overflow-x:auto;}

/* ---------- Program cards ---------- */
.prog{border:1px solid var(--line);border-left:5px solid var(--accent);border-radius:0 10px 10px 0;padding:18px 20px;margin-bottom:14px;background:var(--white);}
.prog h3{margin-bottom:4px;}
.prog .kind{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-weight:700;margin-bottom:8px;}
.prog p{font-size:15.5px;margin-bottom:8px;}
.prog .pending{font-size:14px;color:var(--muted);font-style:italic;}
/* A closed programme keeps the exact same card as an open one -- greying the
   whole card just made it look like a different kind of thing, not an expired
   one. The signal belongs on the status line, which is the sentence that
   actually says the route has closed. Dark red, 10:1 on white, and the line
   still begins with the word "Closed." so colour is never the only cue. */
.prog.is-closed .pending{color:#7f1d1d;}
/* Source line under each programme card. Subordinate to the status above it --
   a family should read the status; the source is there so anyone checking our
   work can, and so a stale date is obvious. */
.prog .src{font-size:11.5px;line-height:1.45;color:var(--muted);
  margin-top:6px;padding-top:5px;border-top:1px dotted var(--line);}

/* ---------- Footer ---------- */
footer{border-top:3px solid var(--navy);margin-top:44px;padding:26px 0 40px;background:var(--tint-soft);}
footer p{font-size:14.5px;color:var(--muted);margin-bottom:6px;}
footer .foot-brand{font-weight:800;color:var(--navy);font-size:16px;}
/* Contact + company links. Separated from the body copy above so the way
   back to hagimo.com reads as chrome, not as another instruction to a
   family who is mid-task. */
footer .foot-links{margin-top:14px;padding-top:12px;border-top:1px solid #d8dee7;}
footer .foot-links a{margin:0 2px;}
footer .foot-links span{margin:0 6px;color:var(--muted);}
.placeholder{background:#fff8e6;border:1px solid #e6d9a8;color:#7a6520;padding:2px 6px;border-radius:4px;font-size:.92em;}

/* ---------- Reveal (start.cfm) ---------- */
/* The number is the whole point of the page, so it is the largest thing on
   it, tappable on a phone, and sized to stay readable when someone holds the
   screen at arm's length to key it into another handset. */
.revealbox{
  border:2px solid var(--navy);border-radius:12px;background:var(--tint-soft);
  padding:26px 20px;text-align:center;margin:8px 0 18px;
}
.revealnum{
  font-size:clamp(30px,8vw,46px);font-weight:bold;color:var(--navy);
  letter-spacing:.02em;line-height:1.15;
}
/* The firm block sits above the number and must stay visibly subordinate to
   it -- the number is what someone came here for. Small type, muted, with a
   rule underneath separating identity from action. */
.revealfirm{
  text-align:center;margin:0 0 18px;padding:0 0 16px;
  border-bottom:1px solid #c9d3e0;
}
.revealfirm p{margin:0 0 5px;}
.revealfirm .firmlabel{
  font-size:12px;text-transform:uppercase;letter-spacing:.09em;
  color:var(--muted);font-weight:700;
}
.revealfirm .firmname{font-size:18px;font-weight:800;color:var(--navy);}
.revealfirm .firmaddr{font-size:14px;color:var(--muted);line-height:1.45;}
.revealfirm .firmsite{font-size:14px;margin-bottom:10px;}
.revealfirm .firmvetted{
  font-size:13.5px;color:var(--ink);line-height:1.5;
  max-width:46ch;margin:0 auto 8px;text-align:left;
}
.revealfirm .firmad{font-size:11.5px;color:var(--muted);line-height:1.4;margin-bottom:0;}

.revealspoken{
  font-size:15px;color:var(--muted);margin-top:6px;
  text-transform:uppercase;letter-spacing:.14em;
}
.btn.revealcall{margin-top:18px;min-height:44px;font-size:17px;}
@media (min-width:600px){ .btn.revealcall{display:none;} }

/* ---------- Print ---------- */
@media print{
  header .headtools,.btnrow,.card .go{display:none;}
  body{font-size:12pt;}
}

/* ---------- Reference number, called out ---------- */
.refkeep{
  border:2px solid #b08d3f;background:var(--warm);border-radius:12px;
  padding:20px 22px;margin:22px 0;
}
.refkeep-head{display:flex;align-items:center;gap:10px;margin-bottom:12px;}
.refkeep-head h3{margin:0;color:#7c6227;font-size:20px;}
.refkeep-num{
  font-family:"Courier New",Courier,monospace;font-size:clamp(26px,7vw,38px);
  font-weight:bold;color:var(--navy);letter-spacing:.08em;
  background:var(--white);border:1px solid #e3d9c4;border-radius:8px;
  padding:14px 16px;text-align:center;margin-bottom:14px;
  word-break:break-all;
}
.refkeep p{font-size:16px;margin-bottom:10px;}
.refkeep-calm{margin-bottom:0;}
.refkeep-say{margin:6px 0 12px;}
.refkeep-say summary{
  cursor:pointer;font-size:15px;color:var(--navy);font-weight:600;
  min-height:44px;display:flex;align-items:center;
}
.refkeep-say .ch{
  display:inline-block;font-family:"Courier New",Courier,monospace;
  font-size:19px;font-weight:bold;color:var(--navy);
  background:var(--white);border:1px solid var(--line);border-radius:5px;
  padding:3px 9px;margin:3px 4px 3px 0;
}
.refkeep-say .dash{display:inline-block;margin:0 6px;color:var(--muted);}
