/* CornerStone Service LLC: safety orange and steel blue on a deep burnt-umber base; narrow single column;
   humanist sans; centred logo with the navigation underneath; category index column beside repair rows;
   soft shadows on raised panels; faint stone-course motif in the header */
@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-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira-sans-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --base: #241207;
  --base-2: #2e180b;
  --panel: #361d0e;
  --panel-2: #42240f;
  --orange: #ff7a1a;
  --orange-dk: #e5620a;
  --steel: #8fb8d8;
  --cream: #f6eee4;
  --muted: #d2c2b0;
  --line: rgba(246, 238, 228, .12);
  --sans: "Fira Sans", "Segoe UI", Arial, sans-serif;
  --col: 880px;
  --shadow: 0 14px 34px rgba(0, 0, 0, .38), 0 2px 6px rgba(0, 0, 0, .25);
  --r: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--cream); font-family: var(--sans); font-size: 17px; line-height: 1.62; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: #ffa45f; }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.06rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--base); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }
.col { width: min(100% - 36px, var(--col)); margin-inline: auto; }

/* centred logo, nav underneath */
.site-header { background: var(--base-2) url("assets/motif-stone.svg") repeat; background-size: 120px 60px; border-bottom: 3px solid var(--orange); }
.head-in { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 0 14px; text-align: center; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--cream); }
.brand img { width: 84px; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.brand-name { font-weight: 700; font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.main-nav a { display: inline-block; padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--cream); background: rgba(255, 255, 255, .06); }
.main-nav a[aria-current="page"] { color: var(--base); background: var(--orange); }

/* hero and sections */
.hero { padding: 56px 0 28px; text-align: center; }
.hero.small { padding: 46px 0 8px; }
.kicker { font-weight: 500; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: .8em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin-inline: auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .btn-row { justify-content: center; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn.solid { background: var(--orange); color: var(--base); box-shadow: 0 8px 20px rgba(255, 122, 26, .22); }
.btn.solid:hover { background: #ff9447; color: var(--base); }
.btn.ghost { border-color: var(--steel); color: var(--cream); }
.btn.ghost:hover { background: rgba(143, 184, 216, .12); color: var(--cream); }
.art-card { margin: 36px 0 0; padding: 26px; background: var(--panel); border-radius: 18px; box-shadow: var(--shadow); }
.hero-art { width: 100%; }
.sec { padding: 26px 0; }
.sec:last-child { padding-bottom: 60px; }
.panel { background: var(--panel); border-radius: 18px; padding: 30px 32px; box-shadow: var(--shadow); }
.cat-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cat-rows a { display: grid; grid-template-columns: 56px 1fr auto; grid-template-rows: auto auto; gap: 0 16px; align-items: center; padding: 14px 20px 14px 14px; border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); text-decoration: none; color: var(--cream); transition: transform .15s; }
.cat-rows a:hover { transform: translateY(-2px); background: var(--panel-2); }
.cat-rows img { width: 56px; grid-row: span 2; }
.cn { font-weight: 700; font-size: 1.12rem; }
.cc { color: var(--muted); font-size: .9rem; grid-column: 2; }
.go { grid-row: 1 / span 2; grid-column: 3; color: var(--orange); font-size: 1.4rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .8em; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 9px; border-radius: 2px; background: var(--orange); box-shadow: 4px 5px 0 -1px var(--steel); }
.ticks strong { color: var(--cream); font-weight: 700; }
.spot { border-top: 4px solid var(--orange); }
.spot-line { font-size: 1.12rem; color: var(--muted); }
.big { display: block; font-size: 2rem; color: var(--orange); margin-top: 4px; }

/* services: category index column beside the repair rows */
.index-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.cat-index { position: sticky; top: 16px; background: var(--panel); border-radius: 16px; padding: 18px 14px; box-shadow: var(--shadow); }
.ix-title { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin: 0 6px 10px; font-weight: 500; }
.cat-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cat-index a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--cream); }
.cat-index a:hover { background: var(--panel-2); }
.cat-index img { width: 36px; flex: none; }
.ix-name { display: block; font-weight: 500; line-height: 1.25; }
.ix-count { display: block; font-size: .82rem; color: var(--muted); }
.cat { scroll-margin-top: 16px; margin-bottom: 34px; }
.cat h2 { padding-bottom: 10px; border-bottom: 2px solid var(--orange); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 16px 20px; background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); }
.row-text h3 { margin: 0 0 4px; }
.row-text p { margin: 0; color: var(--muted); font-size: .95rem; }
.row-price { margin: 0; text-align: right; flex: none; max-width: 11em; }
.amt { display: block; font-weight: 700; font-size: 1.15rem; color: var(--orange); white-space: nowrap; }
.unit { display: block; font-size: .82rem; color: var(--steel); }
.q { display: block; font-size: .88rem; font-weight: 500; color: var(--steel); line-height: 1.35; }
.feat .row { background: var(--panel-2); }

/* about */
.story .first { font-size: 1.22rem; line-height: 1.5; color: var(--cream); font-weight: 500; }
.story p { color: var(--muted); }
.story .last { margin: 0; color: var(--orange); font-weight: 700; font-size: 1.1rem; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 12em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--steel); font-weight: 500; }
.facts dd { margin: 0; }
address { font-style: normal; }

/* contact */
.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font-weight: 700; font-size: clamp(1.45rem, 3vw, 1.9rem); margin-bottom: 12px; }
.hours th, .hours td { text-align: left; padding: 11px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.hours thead th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); font-weight: 500; border-top: 0; }
.hours .note { color: var(--orange); font-weight: 500; }
.map-frame { width: 100%; height: 360px; border: 0; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); display: block; }
.map-link { margin: 16px 0 0; font-weight: 500; }

/* footer */
.site-footer { background: #1a0d05; border-top: 3px solid var(--orange); padding: 40px 0 28px; text-align: center; color: var(--muted); }
.site-footer a { color: var(--cream); }
.footer-name { font-weight: 700; font-size: 1.15rem; color: var(--orange); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3em; }
.footer-list { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer-bottom { font-size: .85rem; margin: 0; }

@media (max-width: 760px) {
  .index-layout { grid-template-columns: 1fr; gap: 20px; }
  .cat-index { position: static; padding: 14px; }
  .cat-index ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand img { width: 72px; }
  .brand-name { font-size: 1.02rem; }
  .main-nav a { padding: 6px 10px; font-size: .92rem; }
  .panel { padding: 22px 18px; }
  .art-card { padding: 14px; }
  .cat-index ul { grid-template-columns: 1fr; }
  .row { flex-direction: column; gap: 6px; }
  .row-price { text-align: left; max-width: none; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .cat-rows a { padding: 12px 14px 12px 10px; gap: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
