/* BW Consulting LLC — shared styles
   Seed 2-7-7-6-4-1-2: deep ledger green · high-contrast black and white with green as the only colour ·
   narrow document column · monospace labels and fees (JetBrains Mono) + Instrument Sans body ·
   phone/hours strip above the header · price tables · 4px radius · motif: ledger ruling */

@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #121513;
  --white: #ffffff;
  --green: #0e6b4f;
  --green-deep: #0b5640;
  --mint: #e6f2ec;
  --rule: #d4ddd8;
  --muted: #4a524e;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --ledger: url("assets/motif-ledger.svg") 0 0 / 40px 24px repeat;
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--white); }
body { margin: 0; font-family: var(--sans); font-size: 1.05rem; line-height: 1.66; color: var(--ink); background: var(--white); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
strong { font-weight: 700; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.45em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 1.95rem); }
h3 { font-size: 1.08rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.doc { width: 100%; max-width: 46rem; margin: 0 auto; padding-inline: clamp(1.1rem, 4.5vw, 1.6rem); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.4rem 0.9rem; border-radius: var(--r); background: var(--green); color: var(--white); font-family: var(--mono); font-size: 0.85rem; }
.skip-link:focus { top: 1rem; }
.mono { font-family: var(--mono); }

/* ---------- strip above the header ---------- */
.strip { background: var(--ink); color: #d8dfdb; font-family: var(--mono); font-size: 0.8rem; }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1.2rem; padding-block: 0.5rem; }
.strip a { color: var(--white); text-decoration: none; }
.strip a:hover { color: #9ad8b9; text-decoration: underline; }
.strip .lang { color: #9ad8b9; }

/* ---------- header ---------- */
.site-header { border-bottom: 2px solid var(--ink); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem 1.4rem; padding-block: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; color: var(--ink); text-decoration: none; }
.brand img { width: 60px; height: auto; flex: none; border-radius: var(--r); }
.brand-name { font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.1; }
.brand:hover { color: var(--green); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-block; padding: 0.3rem 0.6rem; border-radius: var(--r); color: var(--ink); font-family: var(--mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; }
.main-nav a:hover { background: var(--mint); color: var(--green-deep); }
.main-nav a[aria-current="page"] { background: var(--green); color: var(--white); }

/* ---------- document sections ---------- */
.hero { padding-block: clamp(2rem, 5vw, 2.8rem) clamp(1.6rem, 4vw, 2.2rem); }
.hero-art { display: block; width: 100%; margin-top: 1.6rem; border-radius: var(--r); border: 2px solid var(--ink); }
.label { display: block; margin: 0 0 0.6rem; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.tag { display: inline-block; margin: 0 0 1rem; padding: 0.2rem 0.6rem; border-radius: var(--r); background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 0.8rem; line-height: 1.5; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.22rem); color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.62rem 1.15rem; border: 2px solid var(--green); border-radius: var(--r); background: var(--green); color: var(--white); font-family: var(--mono); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.3; text-align: center; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-line { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.sheet { padding-block: clamp(1.8rem, 4.5vw, 2.6rem); border-top: 1px solid var(--rule); }
.ruled { background: var(--ledger); background-color: var(--white); border-left: 3px solid var(--green); padding: 1rem 1.1rem; border-radius: 0 var(--r) var(--r) 0; }
.sec-no { font-family: var(--mono); color: var(--green); font-weight: 700; }

/* lists */
.entries { list-style: none; margin: 0; padding: 0; counter-reset: e; }
.entries li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 0.6rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); color: var(--muted); counter-increment: e; }
.entries li::before { content: counter(e, decimal-leading-zero); font-family: var(--mono); font-weight: 700; color: var(--green); padding-top: 0.1rem; }
.entries strong { color: var(--ink); }
.depts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.depts li { border-bottom: 1px solid var(--rule); }
.depts a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.75rem 0; color: var(--ink); text-decoration: none; }
.depts img { width: 48px; height: 48px; }
.depts .d-name { font-weight: 700; }
.depts .d-meta { display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.depts .d-go { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: var(--green); }
.depts a:hover .d-name { color: var(--green); }

/* ---------- fee tables ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 1.1rem 0 0; padding: 0; }
.jump a { display: inline-block; padding: 0.25rem 0.6rem; border: 1px solid var(--ink); border-radius: var(--r); color: var(--ink); font-family: var(--mono); font-size: 0.76rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 0.03em; }
.jump a:hover { background: var(--ink); color: var(--white); }
.cat { scroll-margin-top: 1rem; }
.cat + .cat { margin-top: 2.2rem; }
.cat-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.7rem; }
.cat-head img { width: 46px; height: 46px; flex: none; }
.cat-head h2 { margin: 0; font-size: clamp(1.2rem, 2.8vw, 1.45rem); }
.table-wrap { border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.fees { width: 100%; border-collapse: collapse; background: var(--white); }
.fees caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fees thead th { padding: 0.5rem 0.8rem; background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; }
.fees thead th.fee { text-align: right; }
.fees td, .fees tbody th { padding: 0.75rem 0.8rem; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
.fees tbody th { font-weight: 700; width: 34%; }
.fees td.desc { color: var(--muted); font-size: 0.98rem; }
.fees td.fee { font-family: var(--mono); font-weight: 700; text-align: right; white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.fees td.fee.quote { white-space: normal; min-width: 9.5rem; max-width: 11rem; color: var(--green); font-size: 0.82rem; }
.fees td.fee.quote a { display: block; margin-top: 0.25rem; white-space: nowrap; }
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.offers li { padding: 0.9rem 1rem; border: 2px solid var(--ink); border-left-width: 6px; border-left-color: var(--green); border-radius: var(--r); background: var(--ledger); background-color: var(--white); }
.offers h3 { margin-bottom: 0.2rem; }
.offers p { margin: 0; color: var(--muted); }
.offers .deal { display: inline-block; margin-top: 0.45rem; padding: 0.1rem 0.5rem; border-radius: var(--r); background: var(--green); color: var(--white); font-family: var(--mono); font-size: 0.85rem; font-weight: 700; }

/* ---------- about / contact ---------- */
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); padding-top: 0.2rem; }
.facts dd { margin: 0; font-weight: 700; }
.story p { color: var(--muted); }
.story .first { color: var(--ink); font-size: 1.12rem; }
.story .last { margin: 0; }
.story .tag { color: var(--white); }
.details { margin: 0; border-top: 2px solid var(--ink); }
.details div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.details dt { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); padding-top: 0.2rem; }
.details dd { margin: 0; font-weight: 700; }
.details address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { caption-side: top; text-align: left; padding: 0.7rem 0.8rem 0.5rem; font-weight: 700; font-size: 1.35rem; }
.hours th, .hours td { padding: 0.5rem 0.8rem; text-align: left; border-top: 1px solid var(--rule); }
.hours thead th { background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; border-top: 0; }
.hours tbody th { font-weight: 700; }
.hours td { font-family: var(--mono); font-size: 0.92rem; white-space: nowrap; }
.hours .closed { color: var(--muted); }
.map-frame { display: block; width: 100%; height: 360px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--mint); }
.map-link { margin-top: 0.8rem; font-family: var(--mono); font-size: 0.85rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(1.8rem, 4vw, 2.6rem); background: var(--ink); color: #c9d2cd; font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #9ad8b9; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.2rem 2rem; padding-block: 2rem 1.2rem; }
.footer-grid nav { grid-column: 1 / -1; }
.footer-grid nav .footer-list { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.footer-name { margin: 0 0 0.3rem; font-weight: 700; font-size: 1.2rem; color: var(--white); }
.site-footer address { font-style: normal; }
.footer-title { margin: 0 0 0.4rem; color: #9ad8b9; font-family: var(--mono); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-bottom { margin: 0; padding-block: 0.9rem 1.3rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-family: var(--mono); font-size: 0.75rem; }

@media (max-width: 620px) {
  .brand img { width: 52px; }
  .fees thead { display: none; }
  .fees tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.8rem; padding: 0.7rem 0.8rem; border-top: 1px solid var(--rule); }
  .fees tbody tr:first-child { border-top: 0; }
  .fees td, .fees tbody th { padding: 0; border: 0; width: auto; }
  .fees td.desc { grid-column: 1 / -1; grid-row: 2; }
  .fees td.fee.quote { max-width: 9rem; }
  .facts div, .details div { grid-template-columns: 1fr; gap: 0.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .map-frame { height: 300px; }
  .hours th, .hours td { padding-inline: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
