/* Junction Service LLC — shared styles
   Seed 2-2-5-1-6-1-3: deep, rich circuit-board green, copper and screen blue · warm off-white paper base ·
   editorial columns with a narrow side column · classic serif headings + sans body ·
   vertical side header · price tables · 14px radius · motif: faint circuit traces */

@font-face { font-family: "Gelasio"; src: url("fonts/gelasio-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("fonts/fira-sans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("fonts/fira-sans-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f0e3;
  --paper-2: #eee4d0;
  --ink: #1c2420;
  --muted: #4f5a54;
  --green: #14402f;
  --green-deep: #0f2e22;
  --copper: #9a4d22;
  --copper-bright: #e0a36b;
  --blue: #1f3f66;
  --cream: #f4ecdc;
  --cream-muted: #c9c2b2;
  --line: rgba(28, 36, 32, 0.16);
  --r: 14px;
  --serif: "Gelasio", Georgia, "Times New Roman", serif;
  --sans: "Fira Sans", "Segoe UI", Candara, "Trebuchet MS", sans-serif;
  --trace: url("assets/motif-trace.svg") 0 0 / 120px 120px repeat;
  --trace-dark: url("assets/motif-trace-dark.svg") 0 0 / 120px 120px repeat;
  --side: 272px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
strong { font-weight: 600; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 0.5em; color: var(--green); }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: 0.55rem 1rem; border-radius: var(--r); background: var(--copper-bright); color: var(--green-deep); font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---------- vertical side header ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--green-deep) var(--side), var(--paper) var(--side)); }
.site-header {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2rem;
  padding: 2rem 1.6rem 1.6rem;
  background: var(--green-deep) var(--trace-dark);
  color: var(--cream);
}
.brand { display: block; color: var(--cream); text-decoration: none; }
.brand img { display: block; width: 92px; height: auto; border-radius: var(--r); }
.brand-name { display: block; margin-top: 0.9rem; font-family: var(--serif); font-weight: 700; font-size: 1.6rem; line-height: 1.15; }
.brand:hover { color: var(--copper-bright); }
.main-nav ul { list-style: none; margin: 0 0 0 7px; padding: 0.3rem 0; border-left: 2px solid rgba(244, 236, 220, 0.24); }
.main-nav a {
  position: relative; display: block; padding: 0.45rem 0 0.45rem 1.25rem;
  color: var(--cream-muted); font-size: 1.05rem; text-decoration: none;
}
.main-nav a::before {
  content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--green-deep); border: 2px solid rgba(244, 236, 220, 0.4);
}
.main-nav a:hover { color: var(--cream); }
.main-nav a[aria-current="page"] { color: var(--copper-bright); font-weight: 600; }
.main-nav a[aria-current="page"]::before { background: var(--copper-bright); border-color: var(--copper-bright); box-shadow: 0 0 0 3px var(--green-deep); }
.side-contact { margin-top: auto; font-size: 0.95rem; color: var(--cream-muted); }
.side-contact p { margin: 0.6rem 0 0; }
.side-contact a { color: var(--cream); }
.btn-side {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 0.65rem 1rem; border: 2px solid var(--copper-bright); border-radius: var(--r);
  color: var(--copper-bright) !important; font-weight: 600; text-decoration: none;
}
.btn-side:hover { background: var(--copper-bright); color: var(--green-deep) !important; }

/* ---------- editorial content area ---------- */
.page { min-width: 0; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1120px; padding-inline: clamp(1.1rem, 4vw, 3rem); }
main { flex: 1; }
.page-head { padding-block: clamp(2rem, 5vw, 3.4rem) clamp(1.25rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
.kicker { margin: 0 0 0.5rem; color: var(--copper); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; }
.industry { display: inline-block; margin: 0 0 1rem; padding: 0.3rem 0.85rem; border-radius: var(--r); background: var(--green); color: var(--cream); font-size: 0.92rem; line-height: 1.45; }
.lede { font-size: clamp(1.12rem, 1.8vw, 1.28rem); color: var(--muted); max-width: 46ch; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(2rem, 4.5vw, 3.25rem); }
.layout > aside { position: sticky; top: 1.5rem; }
.layout.wide-side { grid-template-columns: minmax(0, 1fr) 310px; }
.side-col { font-size: 0.98rem; }
.side-block { padding: 1.1rem 1.2rem; border-radius: var(--r); background: var(--paper-2) var(--trace); }
.side-block + .side-block { margin-top: 1.25rem; }
.side-title { margin: 0 0 0.6rem; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--green); }
.side-block p:last-child { margin-bottom: 0; }

.divider { position: relative; height: 2px; margin: clamp(2rem, 4vw, 2.75rem) 0; border: 0; background: var(--green); opacity: 0.85; overflow: visible; }
.divider::before, .divider::after { content: ""; position: absolute; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--copper-bright); border: 2px solid var(--green); }
.divider::before { left: 0; }
.divider::after { right: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.72rem 1.3rem; border-radius: var(--r);
  background: var(--green); color: var(--cream); border: 2px solid var(--green);
  font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  max-width: 100%; overflow-wrap: anywhere;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--cream); }
.btn-line { background: transparent; color: var(--green); }
.btn-line:hover { background: var(--green); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

/* ---------- home ---------- */
.hero { padding-block: clamp(2rem, 5vw, 3.4rem) 0; }
.hero h1 { max-width: 14ch; }
.hero-frame { margin: 2rem 0 0; padding: clamp(0.75rem, 2vw, 1.25rem); border-radius: var(--r); background: var(--paper-2) var(--trace); }
.hero-art { display: block; width: 100%; }
.bench-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; list-style: none; margin: 0; padding: 0; }
.bench-list li { border-top: 1px solid var(--line); }
.bench-list a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0.9rem; align-items: center; padding: 0.9rem 0; color: var(--ink); text-decoration: none; }
.bench-list a:hover .b-name { color: var(--copper); }
.bench-list img { width: 56px; height: 56px; }
.b-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.03em; line-height: 1.25; color: var(--green); }
.b-count { display: block; font-size: 0.92rem; color: var(--muted); }
.services { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2.5rem; column-rule: 1px solid var(--line); }
.services li { break-inside: avoid; padding: 0 0 1rem 1.4rem; position: relative; color: var(--muted); }
.services li::before, .why li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--copper-bright); border: 2px solid var(--green); }
.services strong, .why strong { color: var(--ink); }
.hours-mini { margin: 0; }
.hours-mini div { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.25rem 0; border-bottom: 1px solid var(--line); }
.hours-mini div:last-child { border-bottom: 0; }
.hours-mini dt { font-weight: 600; }
.hours-mini dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.closed { color: var(--copper); font-weight: 600; }

/* ---------- price tables ---------- */
.cat { scroll-margin-top: 1.5rem; }
.cat + .cat { margin-top: clamp(2.25rem, 4.5vw, 3rem); }
.cat-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.cat-head img { width: 52px; height: 52px; flex: none; }
.cat-head h2 { margin: 0; font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
.price-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fbf7ef;
}
.price-table th, .price-table td { padding: 0.8rem 1rem; text-align: left; vertical-align: top; }
.price-table thead th { background: var(--green); color: var(--cream); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.price-table tbody tr:nth-child(even) { background: var(--paper-2); }
.price-table tbody th, .price-table tbody td { border-top: 1px solid var(--line); }
.price-table tbody th { width: 34%; font-weight: 600; color: var(--ink); }
.price-table .det { color: var(--muted); }
.price-table .pr { width: 9.5rem; text-align: right; font-weight: 600; color: var(--green); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.price-table thead .pr { color: var(--cream); }
.pr .from { display: block; font-size: 0.8rem; font-weight: 400; color: var(--muted); letter-spacing: 0.02em; }
.pr.quote { white-space: normal; color: var(--copper); }
.pr .call { display: block; margin-top: 0.2rem; font-weight: 400; font-size: 0.9rem; white-space: nowrap; }
.index-list { list-style: none; margin: 0; padding: 0; }
.index-list li + li { border-top: 1px solid var(--line); }
.index-list a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0.6rem; align-items: center; padding: 0.45rem 0; color: var(--ink); text-decoration: none; line-height: 1.3; }
.index-list a:hover { color: var(--copper); }
.index-list img { width: 30px; height: 30px; }
.index-list .dot { justify-self: center; width: 14px; height: 14px; border-radius: 50%; background: var(--copper-bright); border: 2px solid var(--green); }
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.offers li { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 0.3rem 1.5rem; align-items: baseline; padding: 1rem 1.25rem; border-radius: var(--r); border: 2px solid var(--green); background: var(--paper-2); }
.offers h3 { margin: 0; font-size: 1.12rem; }
.offers p { margin: 0; color: var(--muted); }

/* ---------- about ---------- */
.story { columns: 2; column-gap: 2.5rem; column-rule: 1px solid var(--line); }
.story p { margin-bottom: 0; color: var(--muted); }
.story p + p { margin-top: 1em; }
.story .first::first-letter { float: left; margin: 0.08em 0.12em 0 0; font-family: var(--serif); font-weight: 700; font-size: 3.6em; line-height: 0.8; color: var(--copper); }
.story .first { color: var(--ink); }
.why { list-style: none; margin: 0; padding: 0; }
.why li { position: relative; padding: 0.85rem 0 0.85rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.why li::before { top: 1.35em; }
.facts { margin: 0; }
.facts div { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--copper); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 600; }

/* ---------- contact ---------- */
.details { margin: 0 0 0.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.75rem; }
.details div:first-child { grid-row: span 2; }
.details div { padding-top: 0.7rem; border-top: 2px solid var(--green); }
.details dt { color: var(--copper); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.details dd { margin: 0; font-weight: 600; }
.details address { font-style: normal; }
.map-frame { display: block; width: 100%; height: 400px; margin-top: 1rem; border: 0; border-radius: var(--r); background: var(--paper-2); }
.hours { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.hours caption { caption-side: top; text-align: left; margin-bottom: 0.5rem; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--green); }
.hours th, .hours td { padding: 0.45rem 0.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.hours thead th { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper); }
.hours td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours tbody tr:last-child > * { border-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(2rem, 4vw, 3rem); background: var(--paper-2) var(--trace); border-top: 2px solid var(--green); color: var(--muted); font-size: 0.98rem; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--copper); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 2rem; padding-block: 2.2rem 1.4rem; }
.footer-name { margin: 0 0 0.35rem; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--green); }
.site-footer address { font-style: normal; }
.footer-title { margin: 0 0 0.45rem; color: var(--copper); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-bottom { margin: 0; padding-block: 1rem 1.4rem; border-top: 1px solid var(--line); font-size: 0.88rem; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) 230px; }
  .layout.wide-side { grid-template-columns: minmax(0, 1fr) 290px; }
}

@media (max-width: 1000px) {
  .shell { display: block; background: none; }
  .site-header { position: static; height: auto; overflow: visible; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding: 0.9rem clamp(1.1rem, 4vw, 3rem); }
  .brand { display: flex; align-items: center; gap: 0.85rem; }
  .brand img { width: 60px; }
  .brand-name { margin: 0; font-size: 1.4rem; }
  .main-nav { flex-basis: 100%; }
  .main-nav ul { display: flex; flex-wrap: wrap; gap: 0.15rem 1.4rem; margin: 0; padding: 0.55rem 0 0; border-left: 0; border-top: 2px solid rgba(244, 236, 220, 0.24); }
  .main-nav a { padding: 0.3rem 0 0.3rem 1.05rem; }
  .main-nav a::before { left: 0; width: 10px; height: 10px; margin-top: -5px; }
  .side-contact { display: none; }
  .layout, .layout.wide-side { grid-template-columns: 1fr; }
  .layout > aside { position: static; }
  .layout > aside.lead-mobile { order: -1; }
  .index-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); column-gap: 1.25rem; }
  .index-list li + li { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 1.02rem; }
  .bench-list, .services, .story { grid-template-columns: 1fr; columns: 1; }
  .main-nav ul { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 2rem; }
  .details { grid-template-columns: 1fr; }
  .details div:first-child { grid-row: auto; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .price-table, .price-table tbody { display: block; }
  .price-table tbody tr { display: grid; grid-template-columns: 1fr; padding: 0.85rem 1rem; border-top: 1px solid var(--line); }
  .price-table tbody tr:first-child { border-top: 0; }
  .price-table tbody th, .price-table tbody td { display: block; width: auto; padding: 0; border-top: 0; }
  .price-table .det { margin-top: 0.2rem; }
  .price-table .pr { width: auto; margin-top: 0.4rem; text-align: left; font-size: 1.1rem; }
  .pr .from { display: inline; margin-right: 0.3rem; font-size: 0.9rem; }
  .map-frame { height: 300px; }
  .offers li { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
}

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