/* Fonts are self-hosted (SIL Open Font License) so visitors' browsers make no third-party requests. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2-variations"); }
/* Layout: one calm column like a trail; process steps marked as blazes down a vertical "trail" line. Colors from the Trailmark IT logo. */
:root {
  --bg: #EEF1EC;        /* lichen */
  --surface: #F8FAF6;
  --ink: #1C2A24;
  --muted: #536359;
  --green: #1F3D2B;     /* logo forest: text accents, links */
  --forest: #1F3D2B;    /* logo forest: filled bands, buttons, mark tile */
  --on-forest: #F3F6F1;
  --blaze: #D9731F;     /* logo blaze orange */
  --it: #B85A16;        /* logo "IT" orange */
  --wordmark: #1F3D2B;
  --line: #CCD5CD;
  --heading: "Barlow", "Segoe UI", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111915; --surface: #17211B; --ink: #E4EAE4; --muted: #9DAEA3;
    --green: #8DBF9F; --forest: #1F3D2B; --on-forest: #F3F6F1;
    --blaze: #E5822E; --it: #E5822E; --wordmark: #E4EAE4; --line: #2A3830;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111915; --surface: #17211B; --ink: #E4EAE4; --muted: #9DAEA3;
  --green: #8DBF9F; --forest: #1F3D2B; --on-forest: #F3F6F1;
  --blaze: #E5822E; --it: #E5822E; --wordmark: #E4EAE4; --line: #2A3830;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 64rem; margin: 0 auto; padding-inline: 1.25rem; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--blaze); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.05; text-wrap: balance; margin: 0; }
p { margin: 0; max-width: 62ch; }
.eyebrow {
  font-family: var(--heading); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* Header */
header.site { padding-block: 1.25rem; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.brand { display: block; line-height: 0; }
.brand svg { height: clamp(52px, 9vw, 72px); width: auto; max-width: 100%; }
nav.top { display: flex; gap: 1.25rem; flex-wrap: wrap; font-family: var(--heading); font-weight: 500; font-size: 1rem; }
nav.top a { color: var(--ink); text-decoration: none; }
nav.top a:hover { color: var(--green); text-decoration: underline; }

/* Hero */
.hero { padding-block: 2.5rem 3.5rem; display: grid; gap: 1.25rem; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.25rem); font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.hero h1 .turn { color: var(--it); }
.hero p.sub { font-family: var(--heading); font-weight: 600; font-size: clamp(1.35rem, 3.2vw, 1.85rem); line-height: 1.2; color: var(--green); }
.hero p.lead { font-size: 1.3rem; line-height: 1.5; }
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
#contact .ctas { margin-top: 1.5rem; }
#contact .btn.primary { background: var(--on-forest); color: #1F3D2B; }
#contact .btn.ghost { color: var(--on-forest); border-color: var(--on-forest); }
#contact .btn.ghost:hover { background: rgba(255,255,255,.08); }
#contact .book-note { opacity: .8; }
.btn .dur { font-weight: 500; opacity: .85; }
.book-note { margin-top: .75rem; font-size: .95rem; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--heading); font-weight: 600; font-size: 1.05rem;
  padding: .85rem 1.3rem; border-radius: 6px; text-decoration: none;
  border: 2px solid var(--forest);
}
.btn.primary { background: var(--forest); color: var(--on-forest); }
.btn.primary:hover { filter: brightness(1.15); }
.btn.ghost { color: var(--green); border-color: var(--green); background: transparent; }
.btn.ghost:hover { background: var(--surface); }


/* Sample dashboard: CSS-only switch between two illustrative views */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; }
.sample { position: relative; }
.seg { display: inline-flex; border: 2px solid var(--green); border-radius: 6px; overflow: hidden; margin-bottom: 1.25rem; }
.seg label { font-family: var(--heading); font-weight: 600; font-size: 1rem; padding: .55rem 1.1rem; cursor: pointer; color: var(--green); }
#sv-dist:checked ~ .seg label[for="sv-dist"], #sv-food:checked ~ .seg label[for="sv-food"] { background: var(--forest); color: var(--on-forest); }
#sv-dist:focus-visible ~ .seg label[for="sv-dist"], #sv-food:focus-visible ~ .seg label[for="sv-food"] { outline: 3px solid var(--blaze); outline-offset: -3px; }
.dash.view-food { display: none; }
#sv-food:checked ~ .dash.view-food { display: grid; }
#sv-food:checked ~ .dash.view-dist { display: none; }
.dash { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1rem, 2.5vw, 1.5rem); font-family: var(--heading); }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; }
.dash-title { font-weight: 700; font-size: 1.15rem; }
.dash-meta { font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: .6rem; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: .1rem .6rem; font-weight: 600; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: .75rem; }
.tile { display: grid; gap: .15rem; align-content: start; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .8rem .95rem; }
.t-label { font-size: .85rem; font-weight: 500; color: var(--muted); }
.t-value { font-size: 1.9rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.t-note { font-size: .82rem; color: var(--muted); }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .75rem; }
.panel { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .9rem .95rem; min-width: 0; }
.panel figcaption, .panel h4 { margin: 0 0 .6rem; font-family: var(--heading); font-size: .9rem; font-weight: 600; color: var(--muted); }
.panel svg { display: block; width: 100%; height: auto; }
.panel svg .grid { stroke: var(--line); stroke-width: 1; }
.panel svg .col { fill: var(--green); }
.panel svg .col:hover { opacity: .8; }
.panel svg text { font-family: var(--heading); font-size: 11px; fill: var(--muted); }
.panel svg text.val { font-weight: 700; fill: var(--ink); font-size: 12px; }
.barlist, .attn ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.barlist li { display: grid; grid-template-columns: 6.2rem 1fr 3.2rem; align-items: center; gap: .6rem; font-size: .9rem; }
.b-track { height: 10px; border-left: 1px solid var(--line); }
.b-fill { display: block; height: 100%; background: var(--green); border-radius: 0 4px 4px 0; }
.b-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.attn ul { gap: .45rem; }
.attn li { position: relative; padding-left: 1.3rem; font-size: .95rem; }
.attn li::before { content: ""; position: absolute; left: 0; top: .28rem; width: 7px; height: 12px; background: var(--blaze); border-radius: 1.5px; }
.dash-note { margin-top: .9rem; font-size: .95rem; color: var(--muted); max-width: 70ch; }

section { padding-block: 4rem; border-top: 1px solid var(--line); }
section > .wrap > header { display: grid; gap: .6rem; margin-bottom: 2.25rem; }
section h2 { font-size: clamp(2.1rem, 5.5vw, 3.2rem); font-weight: 700; letter-spacing: -.01em; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 2.25rem 3rem; }
.service { display: grid; grid-template-columns: 14px 1fr; gap: .4rem 1.1rem; min-width: 0; align-content: start; }
.service::before { content: ""; grid-row: 1 / span 2; grid-column: 1; width: 14px; height: 24px; background: var(--blaze); border-radius: 2px; margin-top: .3rem; }
.service h3 { grid-column: 2; grid-row: 1; font-size: 1.5rem; font-weight: 600; }
.service p { grid-column: 2; color: var(--muted); }

/* Process trail */
.trail { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 2.5rem; }
.trail::before { content: ""; position: absolute; left: 10px; top: .5rem; bottom: .5rem; border-left: 2px dashed var(--line); }
.trail li { position: relative; padding-left: 3.25rem; display: grid; gap: .4rem; }
.trail li::before { content: ""; position: absolute; left: 3px; top: .35rem; width: 16px; height: 26px; background: var(--blaze); border-radius: 2px; }
.trail li .step { font-family: var(--heading); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.trail li h3 { font-size: 1.7rem; font-weight: 700; }
.trail li p { color: var(--muted); }
.aside { margin-top: 2.75rem; padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; max-width: 46rem; }
.aside p { max-width: none; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.about .prose { display: grid; gap: 1.1rem; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-block: .8rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
.facts .k { font-family: var(--heading); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 2rem; } }

/* Contact */
#contact { background: var(--forest); color: var(--on-forest); border-top: 0; }
#contact .eyebrow, #contact .k { color: var(--on-forest); opacity: .8; }
#contact h2, #contact p { color: var(--on-forest); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2rem; margin-top: 2rem; }
.contact-item { display: grid; gap: .3rem; min-width: 0; }
.contact-item .k { font-family: var(--heading); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.contact-item a, .contact-item .v {
  font-family: var(--heading); font-weight: 600; font-size: 1.6rem; color: var(--on-forest);
  text-decoration: none; overflow-wrap: anywhere; line-height: 1.2; font-variant-numeric: tabular-nums;
}
.contact-item a { text-decoration: underline; text-decoration-color: #D9731F; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contact-item a:hover { text-decoration-color: currentColor; }

footer.site { padding-block: 2rem 2.5rem; font-family: var(--heading); font-size: .92rem; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
footer.site .mark { display: flex; align-items: center; gap: .6rem; }
footer.site svg { width: 22px; height: 22px; flex: none; }

/* Footer links and legal pages */
footer.site nav { display: flex; gap: 1.25rem; }
footer.site nav a { color: inherit; }
.legal { padding-block: 3rem 4rem; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: .5rem; }
.legal .updated { font-family: var(--heading); font-size: .95rem; color: var(--muted); margin-bottom: 2rem; }
.legal h2 { font-size: 1.35rem; line-height: 1.2; margin: 2.25rem 0 .6rem; }
.legal p, .legal li { max-width: none; }
.legal p + p { margin-top: .9rem; }
.legal ul { margin: .6rem 0 0; padding-left: 1.25rem; display: grid; gap: .45rem; }
.legal .summary { padding: 1.1rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
