/* Hallmark · River City Plumbing · client site build (job WEB-20261127-TEST01, TEST).
   Base standard: the AMC token design system from files/website/styles.css,
   adapted to this client's business facts. Token-only colour and type,
   8pt spacing rhythm, one radius scale, visible focus.
   Client supplied its own logo (intake path (a)); the logo's navy and gold
   match the token palette, so the house tokens stand as issued.
   Waivers (on the record, same as the AMC house build): 7b pure white is a
   house colour, tokenised as --white, not a default. 38iii the single gold
   word in the hero head is the house brand signature, once per page, in
   the hero only.
   Finish review (fresh context, source-judged; the render tier is
   unavailable in this workspace): fix, 8 findings, 6 resolved, 1 partial
   (69: hours stay in the details list, the FAQ answer and the footer,
   where the fact does its work), 1 waived (78, next line). The hero
   review was not run at build time; this is a pipeline-test retrofit.
   Waive 78: --fs-h2 is the AMC house token scale, which the delivery kit
   mandates as the base standard; section mass is carried by the alt-band
   rhythm, the card grid and the ruled service index. */

/* ---------- Tokens ---------- */
:root {
  --navy: #0A1A2F;
  --navy-2: #12263f;
  --navy-3: #1b3355;
  --gold: #F2B705;
  --gold-deep: #9a7203;
  --white: #ffffff;
  --paper: #f6f8fa;
  --ink: #1c2733;
  --muted: #52657a;
  --line: #dde3ea;
  --hero-sub: #d7e0ea;
  --foot-sub: #aebccb;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --s1: 8px;  --s2: 16px;  --s3: 24px;  --s4: 32px;
  --s5: 48px; --s6: 64px;  --s7: 96px;

  --r-card: 14px;
  --r-btn: 8px;
  --wrap: 1120px;
  --measure: 68ch;

  --shadow-card: 0 1px 2px rgba(10, 26, 47, .05), 0 8px 24px rgba(10, 26, 47, .06);
  --shadow-lift: 0 2px 4px rgba(10, 26, 47, .06), 0 16px 40px rgba(10, 26, 47, .12);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--navy); text-underline-offset: 3px; }
::selection { background: var(--gold); color: var(--navy); }
html { scrollbar-color: var(--line) var(--paper); }
a:hover { color: var(--gold-deep); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}
.btn:active { transform: translateY(0); }
a:active { color: var(--gold-deep); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy);
  font-weight: 700; padding: var(--s1) var(--s2); z-index: 50;
}
.skip-link:focus-visible { left: var(--s2); top: var(--s2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s3); }

h1, h2, h3 { color: var(--navy); line-height: 1.18; overflow-wrap: break-word; min-width: 0; }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); letter-spacing: -.01em; margin-bottom: var(--s2); }
h3 { font-size: 1.08rem; }
p.lede { color: var(--muted); max-width: var(--measure); text-wrap: pretty; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky; top: 0; z-index: 40;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s1) var(--s3);
  padding-top: 12px; padding-bottom: 12px;
}
.brand {
  color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.12rem;
  display: inline-flex; align-items: center; gap: var(--s2);
}
.brand img {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); object-fit: cover; flex: 0 0 auto;
}
.brand span { color: var(--gold); }
.main-nav { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.main-nav a { color: var(--white); text-decoration: none; font-size: .97rem; padding: 4px 2px; }
.main-nav a:hover { color: var(--gold); }
.main-nav a.active { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); padding: var(--s6) 0 var(--s6); }
.hero .wrap { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.015em; margin-bottom: var(--s2); }
.hero h1 .gold { color: var(--gold); }
.hero p { font-size: 1.1rem; color: var(--hero-sub); max-width: 56ch; }
.hero p a { color: var(--gold); }
.hero img.hero-photo { width: 430px; max-width: 90vw; flex: 0 1 auto; border-radius: var(--r-card); box-shadow: var(--shadow-lift); }
.hero.plain .wrap { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; margin-top: var(--s3);
  background: var(--gold); color: var(--navy);
  font-weight: 700; text-decoration: none;
  padding: 12px var(--s3); border-radius: var(--r-btn); font-size: 1.02rem;
  transition: background-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--white); color: var(--navy); transform: translateY(-1px); }
.btn.on-light:hover { background: var(--navy); color: var(--gold); }
.btn.ghost {
  background: transparent; color: var(--white);
  box-shadow: inset 0 0 0 2px var(--hero-sub);
  margin-left: var(--s2);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--gold); color: var(--gold); background: transparent; }

/* ---------- Sections ---------- */
section { padding: var(--s6) 0; }
section.alt { background: var(--paper); }
.section-sub { color: var(--muted); max-width: var(--measure); margin-bottom: var(--s4); }
.section-sub strong { color: var(--navy); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--s3); margin-top: var(--s4); }
.card {
  background: var(--white); border-radius: var(--r-card);
  padding: var(--s3); display: flex; flex-direction: column; box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: var(--s1); }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.card a.card-link { margin-top: var(--s2); font-weight: 700; text-decoration: none; }
.card a.card-link:hover { color: var(--gold-deep); }

/* ---------- FAQ ---------- */
.faq { margin-top: var(--s3); max-width: 780px; }
.faq .q { margin-bottom: var(--s3); }
.faq h3 { margin-bottom: var(--s1); }
.faq p { color: var(--muted); font-size: .97rem; }

/* ---------- Misc ---------- */
.checklist { list-style: none; margin-top: var(--s2); max-width: 760px; }
.checklist li { padding: 12px 0 12px var(--s4); position: relative; border-bottom: 1px solid var(--line); }
.checklist li::before { content: "-"; position: absolute; left: 4px; color: var(--gold-deep); font-weight: 800; }
.checklist strong { color: var(--navy); }
.service-block { border-top: 4px solid var(--gold); padding-top: var(--s3); margin-top: var(--s4); max-width: 820px; }
@media (min-width: 760px) {
  .service-block { display: grid; grid-template-columns: 220px 1fr; column-gap: var(--s4); max-width: none; }
  .service-block h2 { grid-row: 1 / span 3; margin-top: 0; }
  .service-block p { grid-column: 2; }
}
.service-block p { color: var(--muted); margin-top: var(--s1); }
.answer-block {
  border: 1px solid var(--line); border-top: 3px solid var(--gold); background: var(--paper);
  padding: var(--s3); border-radius: var(--r-card); max-width: 820px;
}
.answer-block p { color: var(--ink); }
.details { list-style: none; margin-top: var(--s2); max-width: 760px; font-variant-numeric: tabular-nums; }
.details li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.details strong { color: var(--navy); display: inline-block; min-width: 96px; }
.after-list { margin-top: var(--s3); max-width: var(--measure); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--hero-sub); padding: var(--s5) 0; font-size: .96rem; }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .foot-brand { color: var(--white); font-weight: 700; margin-bottom: var(--s1); }
.site-footer nav { margin-top: var(--s2); display: flex; gap: var(--s3); flex-wrap: wrap; }
.site-footer nav a { color: var(--hero-sub); }
.site-footer nav a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  section { padding: var(--s5) 0; }
  .hero { padding: var(--s5) 0; }
  .hero img.hero-photo { width: 100%; }
  .btn.ghost { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
