/* Black Diamond Cornerstone LLC — shared styles
   Seed 2-5-4-6-1-7-3: deep, rich coating colours (obsidian, sapphire metallic, gold flake, concrete grey) ·
   near-black base with light text · full-width bands with alternating alignment ·
   monospace labels and prices + sans body · vertical side header · price tables · 14px radius ·
   motif: broadcast epoxy flake speckle */

@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DejaVu Sans Mono"; src: url("fonts/dejavu-sans-mono-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --obsidian: #0e1114;
  --side-bg: #0a0d10;
  --surface: #161b1f;
  --raised: #1f262c;
  --text: #e6ecef;
  --muted: #a3afb8;
  --ice: #e2ecf3;
  --steel: #7aa8cc;
  --sapphire: #173a5c;
  --gold: #d6a64a;
  --concrete: #8d959b;
  --line: rgba(226, 236, 243, 0.13);
  --r: 14px;
  --sans: "Montserrat", "Segoe UI", Arial, sans-serif;
  --mono: "DejaVu Sans Mono", "Menlo", "Consolas", monospace;
  --flake: url("assets/motif-flake.svg") 0 0 / 80px 80px repeat;
  --side: 256px;
}

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

h1, h2, h3 { font-weight: 700; line-height: 1.12; margin: 0 0 0.45em; color: var(--ice); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.1rem; line-height: 1.3; letter-spacing: 0; }
p { margin: 0 0 1em; }

a { color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.label { font-family: var(--mono); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: 0.5rem 1rem; border-radius: var(--r); background: var(--gold); color: var(--obsidian); 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(--side-bg) var(--side), var(--obsidian) var(--side)); }
.site-header {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1.8rem;
  padding: 1.8rem 1.3rem 1.4rem;
  background: var(--side-bg) var(--flake);
  border-right: 1px solid var(--line);
}
.brand { display: block; color: var(--ice); text-decoration: none; }
.brand img { display: block; width: 84px; height: auto; border-radius: var(--r); }
.brand-name { display: block; margin-top: 0.85rem; font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.brand:hover .brand-name { color: var(--gold); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.main-nav a { display: block; padding: 0.55rem 0.8rem; border-radius: var(--r); color: var(--muted); font-family: var(--mono); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.main-nav a:hover { background: var(--raised); color: var(--ice); }
.main-nav a[aria-current="page"] { background: var(--raised); color: var(--ice); box-shadow: inset 4px 0 0 var(--steel); }
.side-call { margin-top: auto; }
.side-call p { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.btn-call { display: block; padding: 0.7rem 0.9rem; border-radius: var(--r); background: var(--steel); color: var(--obsidian) !important; font-family: var(--mono); font-weight: 700; font-size: 0.86rem; text-align: center; text-decoration: none; }
.btn-call:hover { background: var(--ice); }

/* ---------- full-width bands, alternating alignment ---------- */
.page { min-width: 0; display: flex; flex-direction: column; }
main { flex: 1; }
.band { padding-block: clamp(2.6rem, 5.5vw, 4rem); }
.band-alt { background: var(--surface) var(--flake); border-block: 1px solid var(--line); }
.band-sapphire { background: var(--sapphire); }
.inner { max-width: 1120px; padding-inline: clamp(1.1rem, 4vw, 3rem); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 4.5vw, 3.5rem); align-items: center; }
.band-grid.lead-narrow { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); align-items: start; }
.band-grid.flip > :first-child { order: 2; }
.band-grid.flip.lead-narrow { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.align-end { text-align: right; }
.align-end .btn-row { justify-content: flex-end; }
.align-end .lede { margin-left: auto; }
.kicker { margin: 0 0 0.5rem; color: var(--gold); }
.tag { display: inline-block; margin: 0 0 1rem; padding: 0.35rem 0.8rem; border-radius: var(--r); background: var(--raised); color: var(--muted); font-family: var(--mono); font-weight: 700; font-size: 0.78rem; line-height: 1.5; letter-spacing: 0.02em; }
.lede { font-size: clamp(1.08rem, 1.8vw, 1.2rem); color: var(--muted); max-width: 44ch; }
.hero-art { display: block; width: 100%; border-radius: var(--r); }
.sticky-head { position: sticky; top: 1.5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.3rem; border-radius: var(--r);
  background: var(--gold); color: var(--obsidian);
  font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  max-width: 100%; overflow-wrap: anywhere;
}
.btn:hover { background: #e7bb62; color: var(--obsidian); }
.btn-ghost { background: transparent; color: var(--ice); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--raised); color: var(--ice); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- lists and cards ---------- */
.cat-links { display: grid; gap: 0.7rem; list-style: none; margin: 0; padding: 0; }
.cat-links a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.8rem 1rem; border-radius: var(--r); background: var(--raised); color: var(--text); text-decoration: none; }
.cat-links a:hover { box-shadow: inset 0 0 0 2px var(--steel); }
.cat-links img { width: 52px; height: 52px; }
.cl-name { font-weight: 700; letter-spacing: 0.02em; }
.cl-count { color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; text-align: left; }
.ticks li { position: relative; padding: 0.7rem 0 0.7rem 1.7rem; border-top: 1px solid var(--line); color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 11px; height: 11px; transform: rotate(45deg); background: var(--steel); }
.ticks strong { color: var(--text); }
.card { padding: 1.2rem 1.3rem; border-radius: var(--r); background: var(--raised); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.card p { margin: 0; color: var(--muted); }
.spot { box-shadow: inset 0 0 0 2px var(--gold); }

/* ---------- price tables ---------- */
.cat-band { scroll-margin-top: 0.5rem; }
.cat-icon { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 1rem; border-radius: var(--r); background: var(--raised); }
.cat-icon img { width: 54px; height: 54px; }
.align-end .cat-icon { margin-left: auto; }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--r); overflow: hidden; background: var(--raised); }
.price-table th, .price-table td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; }
.price-table thead th { background: #283039; color: var(--muted); }
.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(--ice); }
.price-table .det { color: var(--muted); font-size: 0.95rem; }
.price-table .pr { width: 10rem; text-align: right; font-family: var(--mono); font-weight: 700; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table thead .pr { color: var(--muted); }
.pr.quote { white-space: normal; font-size: 0.86rem; line-height: 1.45; }
.pr .call { display: block; margin-top: 0.3rem; font-family: var(--sans); font-weight: 600; font-size: 0.88rem; white-space: nowrap; }

/* ---------- about / contact ---------- */
.story p { color: var(--muted); }
.story .first { color: var(--text); font-size: 1.1rem; }
.facts { margin: 0; }
.facts div { padding: 0.6rem 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--gold); }
.facts dd { margin: 0; font-weight: 600; }
.details { margin: 0; }
.details div { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.details div:first-child { border-top: 0; padding-top: 0; }
.details dt { color: var(--gold); }
.details dd { margin: 0; font-weight: 600; font-size: 1.05rem; }
.details address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { caption-side: top; text-align: left; padding-bottom: 0.5rem; font-weight: 700; font-size: 1.45rem; color: var(--ice); }
.hours th, .hours td { padding: 0.5rem 0.2rem; text-align: left; border-bottom: 1px solid var(--line); }
.hours tbody tr:last-child > * { border-bottom: 0; }
.hours thead th { color: var(--gold); }
.hours tbody th { font-weight: 600; }
.hours td { font-family: var(--mono); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.hours .closed { color: var(--concrete); }
.map-frame { display: block; width: 100%; height: 400px; border: 0; border-radius: var(--r); background: var(--raised); }
.map-link { margin-top: 0.85rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--side-bg); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.site-footer a { color: var(--ice); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 2rem; padding-block: 2.3rem 1.4rem; }
.footer-name { margin: 0 0 0.35rem; font-weight: 700; font-size: 1.25rem; line-height: 1.2; color: var(--ice); }
.site-footer address { font-style: normal; }
.footer-title { margin: 0 0 0.45rem; color: var(--gold); }
.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.85rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .shell { display: block; background: none; }
  .site-header { position: static; height: auto; overflow: visible; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; padding: 0.9rem clamp(1.1rem, 4vw, 3rem); border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { display: flex; align-items: center; gap: 0.8rem; }
  .brand img { width: 60px; }
  .brand-name { margin: 0; font-size: 1.15rem; }
  .main-nav { flex-basis: 100%; }
  .main-nav ul { display: flex; flex-wrap: wrap; gap: 0.3rem; }
  .main-nav a { padding: 0.42rem 0.7rem; font-size: 0.76rem; }
  .main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--steel); }
  .side-call { display: none; }
  .band-grid, .band-grid.lead-narrow, .band-grid.flip.lead-narrow { grid-template-columns: 1fr; }
  .band-grid.flip > :first-child { order: 0; }
  .align-end { text-align: left; }
  .align-end .btn-row { justify-content: flex-start; }
  .align-end .lede { margin-left: 0; }
  .align-end .cat-icon { margin-left: 0; }
  .sticky-head { position: static; }
  .cat-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 1rem; align-items: center; }
  .cat-head .cat-icon { grid-row: span 2; width: 64px; height: 64px; margin: 0; }
  .cat-head .cat-icon img { width: 46px; height: 46px; }
  .cat-head h2 { margin: 0; }
}

@media (max-width: 640px) {
  .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.25rem; }
  .price-table .pr { width: auto; margin-top: 0.45rem; text-align: left; font-size: 1.05rem; }
  .pr.quote { font-size: 0.9rem; }
  .map-frame { height: 300px; }
  .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; }
}
.cat-head .count { margin: 0; color: var(--gold); }
.band-grid.top { align-items: start; }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.band-sapphire .card { background: rgba(14, 17, 20, 0.45); }
.band-sapphire .lede, .band-sapphire .card p { color: #d3e0ea; }
@media (max-width: 1100px) { .offers { grid-template-columns: 1fr; } }
.facts dt, .details dt { font-family: var(--mono); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.band-sapphire .closed { color: #c9d6e2; }
.band-sapphire .hours tbody tr > * { border-bottom-color: rgba(226, 236, 243, 0.2); }
.cat-band .band-grid.lead-narrow { grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr); }
.cat-band .band-grid.flip.lead-narrow { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr); }
@media (max-width: 980px) { .cat-band .band-grid.lead-narrow, .cat-band .band-grid.flip.lead-narrow { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .cat-links a { grid-template-columns: 44px minmax(0, 1fr); gap: 0.1rem 0.9rem; }
  .cat-links img { width: 44px; height: 44px; grid-row: span 2; }
  .cl-count { grid-column: 2; }
}
