/* casselberryhandyman.com — "Punch List"
   Graphite, steel blue, warm white. Distinct from casselberryhvac.com's
   iron/brass/paper "Workshop Estimating Desk" system on purpose — same
   underlying houses, same measured/data-literate tone, a different palette
   and a different signature component so the two sibling sites never read
   as one. build.py only ever emits the class names below; this file is the
   single source of the visual layer.

   Rules of this system:
   - Square corners, one exception: the checklist tick mark itself, which
     echoes the logo's checkbox-and-check mark.
   - Two rule weights: a 1px hairline (--line-2) for ordinary dividers, a
     2px heavy rule (--line) for master boundaries — header, footer, section
     spines, framed panels. A 1px steel-blue rule marks an active or
     verified boundary.
   - IBM Plex Mono carries every stat label, table heading, nav item and
     numeric readout — the "measured" read. Archivo (condensed, bold for
     headings) plus Inter for body carries everything else, echoing the
     logo's condensed HANDYMAN wordmark without copying it.
   - Numbers are tabular everywhere. Every figure on this site is sourced
     underneath it.
*/

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600;700&display=swap');

:root {
  --ink:      #1B1E20;   /* highest-emphasis body text */
  --graphite: #25292C;   /* primary — headings, heavy rules, header/footer fill */
  --graphite-2: #4A5054; /* secondary text, muted labels */
  --graphite-3: #7B8186; /* hairline icons, placeholders */
  --graphite-black: #16191B; /* hover/active fill for primary elements */
  --steel:    #3E6C8E;   /* the one accent color, from the logo checkmark */
  --steel-d:  #2B4D65;   /* darker steel — link text, active state */
  --white:    #F5F3EF;   /* page background, warm white */
  --panel:    #FFFFFF;   /* raised cells, cards, inputs */
  --panel-2:  #ECE8E1;   /* zebra rows, strip headers */
  --line:     #25292C;   /* heavy master rule — 2px */
  --line-2:   #DAD5CB;   /* hairline — 1px */
  --wash:     #EAF0F4;   /* steel-wash — callouts, active chips */
  --error:    #B3261E;

  --disp: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, Menlo, monospace;

  --wrap: 1080px;
  --m-desktop: 32px;
  --m-mobile: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--steel-d); text-decoration-color: var(--steel); text-underline-offset: 3px; }
a:hover { color: var(--graphite); }

h1, h2, h3, h4 {
  font-family: var(--disp);
  font-weight: 800;
  margin: 0 0 .55em;
  color: var(--graphite);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.0625rem, 1.5rem + 2.6vw, 2.9375rem); line-height: 1.14; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.625rem, 1.35rem + 1.2vw, 1.9375rem); line-height: 1.22; }
h3 { font-size: 1.3125rem; line-height: 1.28; font-weight: 700; }
h4 { font-size: 1.0625rem; line-height: 1.35; font-weight: 700; }

p { margin: 0 0 1.05em; }
strong { font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--m-mobile); }
.narrow { max-width: 760px; }
@media (min-width: 641px) { .wrap { padding: 0 var(--m-desktop); } }

/* ---- micro-label: steel, uppercase, monospace, with a leading tick ---- */
.lab {
  font-family: var(--mono);
  font-size: .625rem;
  line-height: 1;
  letter-spacing: .1em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--steel-d);
  display: block;
  margin: 0 0 .75rem;
}
.lab::before {
  content: "";
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--steel);
  vertical-align: .2em;
  margin-right: 9px;
}

/* ---------------- header ---------------- */
.topbar {
  background: var(--panel);
  color: var(--graphite-2);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-bottom: 1px solid var(--line-2);
  padding: 7px 0;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; }
.topbar a { color: var(--graphite-2); text-decoration-color: var(--steel); }
.topbar strong { color: var(--steel-d); }

header.site { border-bottom: 2px solid var(--line); background: var(--white); }
.head-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-logo { flex: 0 0 auto; height: 34px; width: auto; display: block; }
.brand b {
  font-family: var(--disp);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  display: block;
  color: var(--graphite);
}
.brand span {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--graphite-2);
  display: block;
}

nav.main ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; padding: 0; }
nav.main a {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  display: inline-block;
  color: var(--graphite-2);
}
nav.main a:hover { border-bottom-color: var(--steel); color: var(--graphite); }
nav.main a[aria-current="page"] { border-bottom-color: var(--graphite); color: var(--graphite); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
  border: 1px solid var(--graphite);
  background: var(--graphite);
  color: var(--white);
}
.btn:hover { background: var(--graphite-black); border-color: var(--steel); color: var(--white); }
.btn--ghost { background: transparent; color: var(--graphite); border: 1px solid var(--graphite); }
.btn--ghost:hover { background: var(--wash); color: var(--graphite); border-color: var(--steel); }
.btn--pending {
  background: repeating-linear-gradient(135deg, var(--wash), var(--wash) 7px, var(--panel-2) 7px, var(--panel-2) 14px);
  color: var(--graphite);
  border: 1px dashed var(--steel-d);
  cursor: default;
}
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0 0; }

/* ---------------- hero ---------------- */
.hero { border-bottom: 2px solid var(--line); padding: 40px 0; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: start; }
.hero p.lede { font-size: 1.0625rem; line-height: 1.55; max-width: 58ch; color: var(--graphite-2); }

/* stat plate */
.plate { border: 2px solid var(--line); background: var(--panel); }
.plate h3 {
  margin: 0;
  padding: 11px 16px;
  background: var(--graphite);
  color: var(--white);
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.plate .row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 11px 16px; border-bottom: 1px solid var(--line-2);
}
.plate .row:last-of-type { border-bottom: 0; }
.plate dt { font-size: .875rem; color: var(--graphite-2); }
.plate dd { margin: 0; font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--graphite); }
.plate .src {
  padding: 10px 16px; border-top: 2px solid var(--line);
  font-family: var(--mono); font-size: .6875rem; line-height: 1.5; color: var(--graphite-2);
}

/* ---------------- sections ---------------- */
section { padding: 46px 0; border-bottom: 1px solid var(--line-2); }
section.rule-heavy { border-bottom: 2px solid var(--line); }
section:last-of-type { border-bottom: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------------- boxes ---------------- */
.box { border: 1px solid var(--line-2); background: var(--panel); padding: 20px 24px; }
.box > :last-child { margin-bottom: 0; }
.box h3 { margin-top: 0; }
.box--note { border: 1px solid var(--steel); background: var(--wash); }
.box--flat { background: transparent; border-color: var(--line-2); }

.card { border: 1px solid var(--line-2); background: var(--panel); padding: 0; display: flex; flex-direction: column; }
.card .cn {
  font-family: var(--mono); font-size: .6875rem; font-weight: 600; letter-spacing: .1em;
  padding: 7px 16px; border-bottom: 1px solid var(--line-2); background: var(--panel-2); color: var(--steel-d);
}
.card .cb { padding: 18px; }
.card .cb > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .4em; }

/* ---------------- tables ---------------- */
.tblwrap { overflow-x: auto; border: 2px solid var(--line); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; min-width: 560px; }
caption {
  caption-side: top; text-align: left;
  font-family: var(--mono); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 14px; background: var(--graphite); color: var(--white);
}
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
thead th {
  border-bottom: 2px solid var(--line); font-family: var(--mono); font-size: .6875rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--graphite-2); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--panel-2); }
.tblwrap + .src, .chartbox + .src, figure .src { margin-top: 8px; }

.src { font-family: var(--mono); font-size: .6875rem; line-height: 1.6; color: var(--graphite-2); margin: 8px 0 0; }
.src a { color: var(--graphite-2); }

/* ---------------- age bands ---------------- */
.chartbox { border: 2px solid var(--line); background: var(--panel); padding: 18px 20px 12px; }
.bandrow { display: grid; grid-template-columns: 128px 1fr 62px; gap: 12px; align-items: center; padding: 8px 0; }
.bandrow + .bandrow { border-top: 1px solid var(--line-2); }
.bandrow .bl { font-family: var(--mono); font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--graphite-2); }
.bandrow .bv { font-family: var(--mono); font-weight: 700; font-size: 1rem; text-align: right; color: var(--graphite); }
.bar { height: 20px; background: var(--panel-2); border: 1px solid var(--line-2); position: relative; }
.bar i { display: block; height: 100%; background: var(--graphite); }
.bar i.hi { background: var(--steel); }

/* ---------------- signature: the punch-list checkbox ---------------- */
/* Echoes the logo's checkbox-and-checkmark mark. Used everywhere a list of
   real, checkable items appears — the reality-check "what to look at" list,
   service lists, problem-page self-check steps. This is the one shape in
   the whole system allowed a visible diagonal stroke. */
ul.plain, ol.plain { padding-left: 1.15em; margin: 0 0 1.05em; }
ul.plain li, ol.plain li { margin-bottom: .5em; }

ul.punch { list-style: none; padding: 0; margin: 0 0 1.05em; }
ul.punch li {
  padding-left: 34px; position: relative; margin-bottom: .7em; min-height: 20px;
}
ul.punch li::before {
  content: "";
  position: absolute; left: 0; top: .15em;
  width: 20px; height: 20px;
  border: 2px solid var(--graphite);
  background: var(--panel);
}
ul.punch li::after {
  content: "";
  position: absolute; left: 4px; top: .48em;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--steel);
  border-bottom: 2.5px solid var(--steel);
  transform: rotate(-48deg);
}
ul.punch.unchecked li::before { border-color: var(--graphite-3); }
ul.punch.unchecked li::after { display: none; }

dl.spec { margin: 0; }
dl.spec dt {
  font-family: var(--mono); font-size: .6875rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--graphite-2); margin-top: 14px;
}
dl.spec dt:first-child { margin-top: 0; }
dl.spec dd { margin: 2px 0 0; }

/* ---------------- FAQ ---------------- */
.faq { border-top: 2px solid var(--line); }
.faq .q { border-bottom: 1px solid var(--line-2); padding: 18px 0; }
.faq .q:last-child { border-bottom: 2px solid var(--line); }
.faq h3 { margin-bottom: .45em; font-size: 1.08rem; }
.faq p:last-child { margin-bottom: 0; }

/* ---------------- pending / handover marker ---------------- */
.need {
  font-family: var(--mono); font-size: .84em; font-weight: 600;
  border: 1px dashed var(--steel-d); background: var(--wash); padding: 1px 6px; color: var(--steel-d);
  white-space: nowrap;
}

/* ---------------- form ---------------- */
form.enq { border: 2px solid var(--line); background: var(--panel); padding: 22px 24px; }
form.enq label {
  display: block; font-family: var(--mono); font-size: .625rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--graphite-2); margin: 0 0 5px;
}
form.enq .f { margin-bottom: 16px; }
form.enq .hint {
  display: block; font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .01em;
  text-transform: none; color: var(--steel-d); margin: 5px 0 0;
}
form.enq input, form.enq select, form.enq textarea {
  width: 100%; font: inherit; font-family: var(--body); font-size: .9375rem;
  padding: 10px 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); appearance: none;
}
form.enq select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2325292C'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
form.enq textarea { resize: vertical; }
form.enq input:focus, form.enq select:focus, form.enq textarea:focus {
  outline: none; border-color: var(--graphite); border-bottom: 3px solid var(--steel); padding-bottom: 8px;
}
form.enq button { font: inherit; cursor: pointer; }

.chk-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px;
  background: var(--panel); border: 1px solid var(--line-2); padding: 12px;
}
form.enq label.chk {
  display: flex; align-items: center; gap: 9px; font-family: var(--body); font-size: .9rem; color: var(--ink);
  text-transform: none; letter-spacing: normal; font-weight: 400; cursor: pointer; padding: 3px 0; margin: 0;
}
.chk input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--graphite); border: 1px solid var(--graphite); }

.platehint { margin-top: 16px; padding: 12px 14px; background: var(--wash); border: 1px solid var(--steel); }
.platehint .lab { margin-bottom: .35rem; }
.platehint p { font-size: .875rem; color: var(--graphite-2); }

/* ---------------- footer ---------------- */
footer.site { background: var(--graphite); color: var(--white); padding: 42px 0 26px; border-top: 2px solid var(--line); }
.footer-logo { height: 34px; width: auto; background: #fff; padding: 6px 12px; margin-bottom: 12px; display: block; }
footer.site a { color: var(--white); }
footer.site h4 {
  font-family: var(--mono); font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #8FB4CC; margin-bottom: .85em;
}
.fgrid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; }
.fgrid ul { list-style: none; margin: 0; padding: 0; }
.fgrid li { margin-bottom: .45em; font-size: .9375rem; }
.fbot { margin-top: 30px; padding-top: 16px; border-top: 1px solid #4A5054; font-family: var(--mono); font-size: .6875rem; line-height: 1.7; color: #B7BEC3; }
.fbot .need { background: #33383B; border-color: var(--steel); color: #BFDCEB; }

/* ---------------- breadcrumb ---------------- */
.crumb {
  font-family: var(--mono); font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--graphite-2); padding: 14px 0 0;
}
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------------- page head ---------------- */
.phead { padding: 32px 0 36px; border-bottom: 2px solid var(--line); }
.phead p.lede { font-size: 1.0625rem; line-height: 1.55; max-width: 62ch; margin-bottom: 0; color: var(--graphite-2); }

.skip {
  position: absolute; left: -9999px;
  background: var(--graphite); color: var(--white); padding: 10px 16px; font-family: var(--mono); font-size: .8rem;
}
.skip:focus { left: 8px; top: 8px; z-index: 20; }

hr.rule { border: 0; border-top: 2px solid var(--line); margin: 34px 0; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid-2, .grid-3, .fgrid { grid-template-columns: 1fr; }
  .chk-grid { grid-template-columns: 1fr; }
  section { padding: 34px 0; }
  .head-in { padding: 12px 0; }
  nav.main ul { gap: 2px 13px; }
  .bandrow { grid-template-columns: 96px 1fr 54px; gap: 9px; }
  .bandrow .bl { font-size: .625rem; }
}

@media print {
  .topbar, nav.main, .btns, footer.site .fgrid { display: none; }
  body { background: #fff; font-size: 11pt; }
  .box, .tblwrap, .plate, .chartbox { break-inside: avoid; }
}
