/* ==========================================================================
   Askland Ditching — demonstration site
   Archetype F, service index. Mobile-first. No framework, no build, no JS.

   Palette is deliberately cool and light: the other Rapid City excavation demo
   in this project is a dark ground with red, and Askland's own live site is
   brown and tan, so neither is reused here.
     paper  #eef1f4   ink   #152029   water blue #0f5d7d
     muted  #48606f   hi-vis yellow #f2c200 (dark grounds only — it fails AA on
     light, so it never appears on paper)
   Georgia for headings and quotations, system sans for body, mono for numbers.
   ========================================================================== */

:root {
  --paper: #eef1f4;
  --panel: #ffffff;
  --ink: #152029;
  --muted: #48606f;
  --blue: #0f5d7d;
  --blue-dk: #0a4459;
  --yellow: #f2c200;
  --line: #cdd7de;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1080px;
  --stick: 104px; /* mast + strip, for scroll-margin */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.62 var(--sans);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--blue-dk); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1rem; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- sticky masthead ------------------------------------------- */

.mast {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  background: var(--ink);
  padding: .55rem .8rem;
  border-bottom: 3px solid var(--blue);
}

.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: #fff; min-width: 0; }
.mark { width: 32px; height: 32px; flex: 0 0 auto; display: block; }
.brand-txt {
  font-family: var(--serif); font-weight: 700; font-size: 1.06rem; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-txt em { font-style: normal; color: var(--yellow); }

.mast-call {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center;
  background: var(--blue); color: #fff; text-decoration: none;
  padding: .34rem .7rem; border-radius: 6px; line-height: 1.15;
  border: 1px solid #2b7d9e;
}
.mast-call-lbl { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; }
.mast-call-num { font-family: var(--mono); font-size: .93rem; font-weight: 700; }
.mast-call:hover { background: var(--blue-dk); }

/* ---------- sticky service strip (the nav — F builds have not used one) --- */

.strip {
  position: sticky; top: 55px; z-index: 39;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.strip ul {
  display: flex; gap: 0; margin: 0; padding: 0; list-style: none; white-space: nowrap;
}
.strip a {
  display: block; padding: .62rem .8rem;
  font-size: .82rem; color: var(--ink); text-decoration: none;
  border-right: 1px solid var(--line);
}
.strip a b { font-family: var(--mono); color: var(--blue); font-weight: 700; margin-right: .25rem; }
.strip a:hover { background: #dfe7ec; }

/* ---------- lede ------------------------------------------------------- */

.lede {
  max-width: var(--wrap); margin: 0 auto; padding: 1.6rem 1.1rem 2rem;
}
.kicker {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--muted); margin: 0 0 .7rem; font-weight: 700;
}
h1 {
  font-size: clamp(1.72rem, 6.2vw, 2.85rem);
  letter-spacing: -.01em;
  margin-bottom: .55rem;
}
.lede-sub { font-size: 1.05rem; color: var(--muted); max-width: 44ch; }

.lede-call { margin: 1.3rem 0 .8rem; }
.lede-alt { font-size: .9rem; color: var(--muted); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  border-radius: 7px; text-align: center;
}
.btn-call {
  background: var(--blue); color: #fff;
  padding: .85rem 1.15rem; font-size: 1.06rem;
  font-family: var(--mono); letter-spacing: -.01em;
  border: 2px solid var(--blue);
  width: 100%;
}
.btn-call:hover { background: var(--blue-dk); border-color: var(--blue-dk); }
.btn-ghost {
  background: transparent; color: var(--blue-dk);
  padding: .8rem 1.1rem; font-size: .97rem;
  border: 2px solid var(--blue); width: 100%;
}
.btn-ghost:hover { background: #dfe7ec; }

.facts {
  list-style: none; margin: 1.6rem 0 .8rem; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.facts li { background: var(--panel); padding: .8rem .75rem; }
.facts b {
  display: block; font-family: var(--mono); font-size: 1.35rem;
  color: var(--blue-dk); line-height: 1.1;
}
.facts span { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; }

.fineprint { font-size: .82rem; color: var(--muted); }

/* ---------- the service index ------------------------------------------ */

.svc {
  scroll-margin-top: var(--stick);
  border-top: 1px solid var(--line);
  padding: 2rem 1.1rem 2.2rem;
  max-width: var(--wrap); margin: 0 auto;
}
.svc:nth-of-type(even) { background: var(--panel); }

.svc-head { margin-bottom: 1.2rem; }
.num {
  font-family: var(--mono); font-size: .95rem; font-weight: 700;
  color: #fff; background: var(--blue);
  display: inline-block; padding: .1rem .5rem; border-radius: 4px;
  margin: 0 0 .55rem;
}
.svc h2 { font-size: clamp(1.42rem, 5.4vw, 2.05rem); }
.svc-lede { font-size: 1.02rem; color: var(--muted); max-width: 52ch; margin-bottom: 0; }

.svc-detail h3 {
  font-family: var(--sans); font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .13em; color: var(--muted);
  margin: 1.5rem 0 .6rem;
}
.svc-detail h3:first-child { margin-top: 0; }

.ticks { list-style: none; margin: 0 0 .3rem; padding: 0; }
.ticks li {
  position: relative; padding: .42rem 0 .42rem 1.5rem;
  border-bottom: 1px solid var(--line); font-size: .96rem;
}
.ticks li::before {
  content: "\2014"; position: absolute; left: 0; top: .42rem;
  color: var(--blue); font-weight: 700;
}

/* ---------- marked photo placeholders ---------------------------------- */

.frame { margin: 1.5rem 0 0; }
.ph {
  height: 190px;
  border: 2px dashed var(--blue);
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, #dfe7ec 0 12px, #e9eef2 12px 24px);
  display: flex; align-items: center; justify-content: center;
}
.ph-tag {
  font-family: var(--mono); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .13em;
  background: var(--ink); color: #fff;
  padding: .32rem .6rem; border-radius: 4px;
}
.frame figcaption {
  font-size: .85rem; color: var(--muted); margin-top: .6rem;
  border-left: 3px solid var(--blue); padding-left: .7rem;
}
.frame figcaption b { color: var(--ink); }

.svc-cta { margin-top: 1.7rem; display: grid; gap: .6rem; }

/* ---------- reviews: the centrepiece ----------------------------------- */

.reviews {
  scroll-margin-top: var(--stick);
  background: var(--ink); color: #fff;
  padding: 2.4rem 1.1rem 2.6rem;
}
.rev-inner { max-width: var(--wrap); margin: 0 auto; }

.rating {
  border: 1px solid #35505f; border-radius: 10px;
  padding: 1.1rem 1rem; margin-bottom: 1.8rem; text-align: center;
}
.rating-num {
  font-family: var(--mono); font-size: 3.1rem; font-weight: 700;
  color: var(--yellow); line-height: 1; margin: 0;
}
.rating-of { font-size: 1.2rem; color: #cfdbe2; }
.rating-stars { color: var(--yellow); font-size: 1.35rem; letter-spacing: .18em; margin: .35rem 0 .45rem; }
.rating-src { font-size: .92rem; color: #cfdbe2; margin: 0; }
.rating-src b { color: #fff; }

.reviews h2 { font-size: clamp(1.4rem, 5.2vw, 2rem); color: #fff; }
.rev-note { color: #cfdbe2; font-size: .95rem; max-width: 52ch; }

.rev-list { list-style: none; margin: 1.6rem 0 0; padding: 0; counter-reset: r; }
.rev-list li {
  border-top: 1px solid #35505f;
  padding: 1.3rem 0;
}
.rev-list blockquote { margin: 0 0 .7rem; }
.rev-list blockquote p {
  font-family: var(--serif); font-size: 1.04rem; line-height: 1.55;
  color: #fff; margin: 0; max-width: 62ch;
}
.rev-by { margin: 0; font-size: .87rem; color: #cfdbe2; }
.rev-by b { color: #fff; font-size: .95rem; }
.rev-by span { display: inline-block; }
.rev-by > span:first-of-type { color: var(--yellow); letter-spacing: .1em; margin: 0 .4rem; }
.rev-src { font-family: var(--mono); font-size: .78rem; color: #cfdbe2; display: block; margin-top: .2rem; }

.rev-foot {
  margin: 1.6rem 0 0; padding-top: 1.2rem; border-top: 1px solid #35505f;
  font-size: .84rem; color: #cfdbe2;
}

/* ---------- why / spec -------------------------------------------------- */

.why {
  scroll-margin-top: var(--stick);
  background: var(--panel);
  padding: 2.2rem 1.1rem 2.4rem;
}
.why > h2, .why > .why-grid, .why > .area { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.why h2 { font-size: clamp(1.4rem, 5.2vw, 2rem); }
.why-txt p { max-width: 58ch; }

.spec { margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.spec > div {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: .6rem;
  padding: .6rem 0; border-bottom: 1px solid var(--line);
}
.spec dt {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; color: var(--muted); padding-top: .18rem;
}
.spec dd { margin: 0; font-size: .95rem; }

.tbc {
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
  background: #fff4cc; color: #4a3a00;
  border: 1px dashed #8a6d00; border-radius: 4px;
  padding: .05rem .34rem; white-space: nowrap;
}

.frame-crew { margin-top: 1.8rem; }
.area { margin-top: 1.8rem; }

/* ---------- quote form -------------------------------------------------- */

.quote {
  scroll-margin-top: var(--stick);
  padding: 2.2rem 1.1rem 2.6rem;
  border-top: 1px solid var(--line);
}
.quote-inner { max-width: 620px; margin: 0 auto; }
.quote h2 { font-size: clamp(1.4rem, 5.2vw, 2rem); }
.quote-sub { color: var(--muted); font-size: .97rem; }

.form { margin-top: 1.4rem; }
.field { margin: 0 0 1rem; }
.field label {
  display: block; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  margin-bottom: .35rem;
}
.field input, .field textarea {
  display: block; width: 100%;
  font: 400 1rem/1.5 var(--sans); color: var(--ink);
  background: var(--panel);
  border: 2px solid var(--line); border-radius: 7px;
  padding: .7rem .75rem;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field textarea { resize: vertical; }

.btn-submit {
  font: 700 1.02rem/1 var(--sans);
  background: var(--blue); color: #fff;
  border: 2px solid var(--blue); border-radius: 7px;
  padding: .9rem 1.4rem; width: 100%; cursor: pointer;
}
.btn-submit:hover { background: var(--blue-dk); border-color: var(--blue-dk); }
.quote-alt { margin-top: 1rem; font-size: .92rem; color: var(--muted); }

/* ---------- footer ------------------------------------------------------ */

.foot {
  background: var(--ink); color: #dfe7ec;
  padding: 2rem 1.1rem 2.4rem;
  border-top: 4px solid var(--blue);
}
.foot-inner { max-width: var(--wrap); margin: 0 auto; }
.foot a { color: #9fd6ea; }
.foot-brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  color: #fff; margin: 0 0 .4rem;
}
.foot-line { margin: 0 0 .35rem; font-size: .92rem; }
.foot-copy { margin: 1.1rem 0 0; font-size: .84rem; color: #b8c7d0; }
.foot-demo {
  margin: 1.3rem 0 0; padding-top: 1.1rem;
  border-top: 1px solid #35505f;
  font-size: .8rem; color: #b8c7d0; max-width: 62ch;
}
.foot-demo b { color: #fff; }
.foot .tbc { background: #3a3208; color: #ffe9a3; border-color: #8a7a2a; }

/* ---------- wider screens ----------------------------------------------- */

@media (min-width: 620px) {
  .btn-call, .btn-ghost { width: auto; }
  .svc-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .ph { height: 240px; }
  .mast { padding: .6rem 1.4rem; }
  .strip a { padding: .7rem 1.05rem; font-size: .87rem; }
}

@media (min-width: 860px) {
  .lede { padding: 3rem 1.4rem 2.6rem; }
  .svc { padding: 3rem 1.4rem 3.2rem; }
  .svc-body { display: grid; grid-template-columns: 1fr 20rem; gap: 2.4rem; align-items: start; }
  .frame { margin-top: 0; }
  .ph { height: 200px; }
  .reviews, .why, .quote { padding-left: 1.4rem; padding-right: 1.4rem; }
  .rating { display: flex; align-items: center; gap: 1.6rem; text-align: left; }
  .rating-num { font-size: 3.6rem; }
  .rating-stars { margin: 0; }
  .rating-src { max-width: 30ch; }
  .rev-list { columns: 1; }
  .why-grid { display: grid; grid-template-columns: 1fr 20rem; gap: 2.4rem; align-items: start; }
  .frame-crew { margin-top: 0; }
}

@media (min-width: 1040px) {
  .rev-list li { display: grid; grid-template-columns: 1fr 15rem; gap: 2rem; align-items: start; }
  .rev-list blockquote { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Align the sticky bars with the content column on wide screens, so the
   masthead phone number is not orphaned out at the window edge. */
@media (min-width: 1000px) {
  .mast { padding-inline: max(1.4rem, calc((100% - var(--wrap)) / 2)); }
  .strip ul { padding-inline: max(1.4rem, calc((100% - var(--wrap)) / 2)); }
  .strip a:first-child { border-left: 1px solid var(--line); }
}
