/* The Mountain Cornerstone LLC — shared styles
   Seed 4-5-8-6-5-7-5: earthy, dusty pool colors (weathered pool teal, limestone coping, sand, clay, deep water) ·
   near-black base with light text · a few large panels · monospace labels and prices (JetBrains Mono) with a sans
   body (Outfit) · pill-button nav · compact rows with price badges · thick 3px outlines, no shadows ·
   motif: water ripple lines */

@font-face { font-family: "Outfit"; src: url("fonts/outfit-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@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; }

:root {
  --base: #121819;
  --panel: #1d2526;
  --panel-2: #243031;
  --stone: #e2dbcb;
  --text: #d9d3c4;
  --muted: #a9a496;
  --teal: #70aaa6;
  --deep: #3f6e6f;
  --sand: #c8ad7f;
  --clay: #c98a6b;
  --line: #3a4a4a;
  --sans: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ripple: url("assets/motif-tile.svg") 0 0 / 48px 24px repeat;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--base); }
body { margin: 0; font-family: var(--sans); font-size: 1.05rem; line-height: 1.6; color: var(--text); background: var(--base) var(--ripple); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
strong { color: var(--stone); font-weight: 700; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.12; margin: 0 0 0.5em; color: var(--stone); }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.5rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); letter-spacing: -0.01em; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--stone); }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: clamp(0.9rem, 3.5vw, 1.6rem); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.45rem 1rem; background: var(--sand); color: var(--base); border-radius: 999px; font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------- header with pill-button nav ---------- */
.site-header { padding: 1rem 0; border-bottom: 3px solid var(--line); background: var(--base); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--stone); text-decoration: none; }
.brand img { width: 68px; height: auto; flex: none; border: 3px solid var(--teal); border-radius: 6px; }
.brand-name { font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.15; }
.brand:hover .brand-name { color: var(--teal); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-block; padding: 0.4rem 1rem; border: 3px solid var(--line); border-radius: 999px; color: var(--stone); font-family: var(--mono); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; }
.main-nav a:hover { border-color: var(--teal); color: var(--stone); }
.main-nav a[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: var(--base); }

/* ---------- large panels ---------- */
main { padding-block: clamp(1.2rem, 3vw, 2rem) clamp(2rem, 5vw, 3rem); }
.panel { background: var(--panel); border: 3px solid var(--line); border-radius: 6px; padding: clamp(1.3rem, 3.6vw, 2.4rem); margin-bottom: clamp(1rem, 2.4vw, 1.5rem); }
.panel.accent { border-color: var(--teal); }
.panel.sand { background: var(--stone); border-color: var(--sand); color: #2b2a26; }
.panel.sand h2, .panel.sand h3, .panel.sand strong { color: #161a1a; }
.panel.sand .label { color: #6b4a32; }
.panel.sand a { color: #2f5a5b; }
.pair { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1rem, 2.4vw, 1.5rem); align-items: start; }
.pair > .panel { margin-bottom: 0; }
.pair { margin-bottom: clamp(1rem, 2.4vw, 1.5rem); }
.label { display: block; margin: 0 0 0.55rem; font-family: var(--mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sand); }
.tag { display: inline-block; margin: 0 0 1rem; padding: 0.25rem 0.75rem; border: 3px solid var(--teal); border-radius: 6px; font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: var(--teal); line-height: 1.4; max-width: 100%; }
.lede { font-size: clamp(1.08rem, 1.9vw, 1.22rem); color: var(--text); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.2rem, 3vw, 2.2rem); align-items: center; }
.hero-art { display: block; width: 100%; border: 3px solid var(--line); border-radius: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.6rem 1.25rem; border: 3px solid var(--sand); border-radius: 6px; background: var(--sand); color: var(--base); font-family: var(--mono); font-size: 0.9rem; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.btn:hover { background: var(--stone); border-color: var(--stone); color: var(--base); }
.btn-line { background: transparent; color: var(--stone); border-color: var(--teal); }
.btn-line:hover { background: var(--teal); border-color: var(--teal); color: var(--base); }
.panel.sand .btn { background: #161a1a; border-color: #161a1a; color: var(--stone); }
.panel.sand .btn-line { background: transparent; color: #161a1a; border-color: #161a1a; }
.panel.sand .btn-line:hover, .panel.sand .btn:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }

/* home: service menu rows */
.menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.menu a { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 0.9rem; align-items: center; height: 100%; padding: 0.8rem; border: 3px solid var(--line); border-radius: 6px; color: var(--text); text-decoration: none; background: var(--panel-2); }
.menu a:hover { border-color: var(--teal); }
.menu img { width: 58px; height: 58px; }
.menu .m-name { display: block; font-weight: 700; color: var(--stone); font-size: 1.1rem; }
.menu .m-meta { display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.points { list-style: none; margin: 0; padding: 0; }
.points li { position: relative; padding: 0.55rem 0 0.55rem 1.6rem; border-bottom: 3px solid var(--line); }
.points li:last-child { border-bottom: 0; }
.points li::before { content: ""; position: absolute; left: 0; top: 1rem; width: 0.7rem; height: 0.7rem; border: 3px solid var(--teal); border-radius: 50%; }
.panel.sand .points li { border-color: var(--sand); }
.badge { display: inline-block; padding: 0.15rem 0.6rem; border: 3px solid var(--sand); border-radius: 6px; font-family: var(--mono); font-weight: 700; font-size: 0.9rem; color: var(--sand); white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge.wrap-ok { white-space: normal; }
.panel.sand .badge { border-color: #6b4a32; color: #6b4a32; }

/* ---------- catalog: compact rows with price badges ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 1.1rem 0 0; padding: 0; }
.jump a { display: inline-block; padding: 0.3rem 0.85rem; border: 3px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: var(--stone); text-decoration: none; }
.jump a:hover { border-color: var(--teal); }
.cat { scroll-margin-top: 1rem; }
.cat-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.cat-head img { width: 64px; height: 64px; flex: none; padding: 4px; border: 3px solid var(--line); border-radius: 6px; background: var(--panel-2); }
.cat-head h2 { margin: 0; font-family: var(--mono); font-size: clamp(1.1rem, 2.4vw, 1.45rem); letter-spacing: 0.03em; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--line); }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 1.2rem; align-items: start; padding: 0.7rem 0; border-bottom: 3px solid var(--line); }
.rows h3 { margin: 0; font-size: 1.04rem; }
.rows p { grid-column: 1; margin: 0; color: var(--muted); font-size: 0.96rem; }
.rows .price { grid-column: 2; grid-row: 1 / span 2; }
.price.quote { max-width: 12rem; text-align: right; }
.price.quote .badge { white-space: normal; text-align: left; }
.price.quote a { display: block; margin-top: 0.3rem; font-family: var(--mono); font-size: 0.82rem; white-space: nowrap; }
.deals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.deals li { padding: 1rem; border: 3px solid var(--line); border-radius: 6px; background: var(--panel-2); }
.deals h3 { margin-bottom: 0.3rem; }
.deals p { margin: 0 0 0.6rem; color: var(--muted); }
.deals p:last-child { margin-bottom: 0; }
.panel.sand .deals li { background: #f1ece1; border-color: var(--sand); }
.panel.sand .deals p { color: #47433b; }

/* ---------- about / contact ---------- */
.story .first { font-size: 1.16rem; color: var(--stone); }
.facts, .details { margin: 0; }
.facts div, .details div { padding: 0.65rem 0; border-bottom: 3px solid var(--line); }
.facts div:last-child, .details div:last-child { border-bottom: 0; }
.facts dt, .details dt { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sand); }
.facts dd, .details dd { margin: 0.15rem 0 0; color: var(--stone); font-weight: 700; }
.details address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { caption-side: top; text-align: left; padding-bottom: 0.6rem; font-weight: 700; font-size: 1.45rem; color: var(--stone); }
.hours th, .hours td { padding: 0.55rem 0.5rem 0.55rem 0; text-align: left; vertical-align: top; border-bottom: 3px solid var(--line); }
.hours thead th { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sand); }
.hours tbody th { font-weight: 700; color: var(--stone); white-space: nowrap; padding-right: 1rem; }
.hours td { font-family: var(--mono); font-size: 0.92rem; }
.hours td.closed { color: var(--clay); }
.hours .note { display: block; font-family: var(--sans); font-size: 0.88rem; color: var(--muted); }
.hours-note { margin: 1rem 0 0; padding: 0.7rem 0.9rem; border: 3px solid var(--teal); border-radius: 6px; color: var(--stone); }
.map-frame { display: block; width: 100%; height: 380px; border: 3px solid var(--line); border-radius: 6px; background: var(--panel-2); }
.map-link { margin: 0.8rem 0 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 3px solid var(--line); background: var(--base); color: var(--muted); font-size: 0.96rem; }
.site-footer a { color: var(--stone); }
.site-footer a:hover { color: var(--teal); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.2rem 2rem; padding-block: 2rem 1.2rem; }
.footer-name { margin: 0 0 0.2rem; font-weight: 700; font-size: 1.2rem; color: var(--stone); }
.site-footer address { font-style: normal; }
.footer-title { margin: 0 0 0.35rem; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sand); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-bottom { grid-column: 1 / -1; margin: 0.6rem 0 0; padding-top: 0.9rem; border-top: 3px solid var(--line); font-family: var(--mono); font-size: 0.78rem; }

@media (max-width: 880px) {
  .hero, .pair { grid-template-columns: 1fr; }
  .menu, .deals { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .brand img { width: 56px; }
  .main-nav a { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
  .rows li { grid-template-columns: 1fr; }
  .rows .price { grid-column: 1; grid-row: auto; margin-top: 0.35rem; }
  .price.quote { max-width: none; text-align: left; }
  .footer-inner { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .map-frame { height: 300px; }
  .hours tbody th { white-space: normal; }
}

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