/* RVA Digital Works: shared styles for every page.
   Each page still carries its own <style> block. This file loads after it,
   so a rule here wins over the page's rule of the same strength.
   Added 2026-11-18 (bench review, chunk 1): phone header and menu, and the
   accessibility fixes from the WCAG 2.2 re-test. */

/* Keyboard focus never lands under the sticky header (WCAG 2.4.11). */
html { scroll-padding-top: 88px; }

/* Text only screen readers hear. */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.logo { white-space: nowrap; }
.nav-links > .btn { white-space: nowrap; }

/* The Menu button and its panel exist on every page but only show on
   phones and tablets (up to 1023 px), where the header links are hidden.
   Above that the full row of links fits on one line. */
.nav-menu-btn, .nav-panel { display: none; }

@media (max-width: 1023px) {
  /* One breakpoint on every page. The pages' own CSS hid the links only
     below 800 px (760 on /tools), and between 800 and 1023 px the row
     squeezed the name onto two lines. */
  .nav-links a:not(.btn) { display: none; }
  .nav-menu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; min-width: 44px; padding: 0 14px; margin-left: 10px;
    border-radius: 10px; border: 1px solid var(--glass-border); background: var(--glass);
    color: var(--text); font: inherit; font-size: .92rem; font-weight: 600; line-height: 1;
    cursor: pointer; transition: color .2s, border-color .2s;
  }
  .nav-menu-btn:hover { color: var(--teal); border-color: var(--glass-hover); }
  .nav-menu-btn svg { width: 18px; height: 18px; display: block; flex: none; }
  .nav-menu-btn .icon-close { display: none; }
  .nav-menu-btn[aria-expanded="true"] .icon-open { display: none; }
  .nav-menu-btn[aria-expanded="true"] .icon-close { display: block; }

  .nav-panel:not([hidden]) {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 72px); overflow-y: auto;
    background: #080f1a; border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
  .nav-panel ul { list-style: none; margin: 0 auto; padding: 6px 24px 22px; max-width: 1120px; }
  .nav-panel li { margin: 0; }
  /* While the menu is open the header drops its glass blur, so the panel
     reads as one solid sheet over the page. */
  nav.menu-open { background: #080f1a; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-panel a { text-decoration: none; }
  .nav-panel a:not(.btn) {
    display: block; padding: 14px 2px; color: var(--text); font-size: 1rem; font-weight: 500;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-panel a:not(.btn):hover { color: var(--teal); }
  .nav-panel a.btn { display: block; margin-top: 18px; text-align: center; }
}

/* Small phones: the header holds the name, the river's pause button and
   Menu. The booking button lives inside the Menu panel. */
@media (max-width: 600px) {
  .nav-links { gap: 0; }
  .nav-links > .btn { display: none !important; }
  .brand { gap: 10px; }
  .brand svg { width: 32px; height: 32px; }
  .logo { font-size: 1.04rem; }
}

/* The narrowest phones (320 to 380 px): Menu shows its icon only. Its name
   stays for screen readers. */
@media (max-width: 380px) {
  .nav-inner { padding-left: 18px; padding-right: 18px; }
  .brand { gap: 8px; }
  .brand svg { width: 30px; height: 30px; }
  .logo { font-size: .98rem; }
  .nav-menu-btn { padding: 0; width: 44px; margin-left: 8px; }
  .nav-menu-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}

/* ---------- Accessibility fixes ---------- */

/* The "On this page" box on the blog posts is a <nav>, so it was picking up
   the sticky header rule and covering the article (WCAG 1.4.10, 2.4.11). */
nav.toc { position: static; z-index: auto; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Footer links are underlined so they don't rely on color (WCAG 1.4.1). */
footer a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* Small text that measured under 4.5:1 (WCAG 1.4.3). The Recent Work
   captions carry each client's color inline, so this one needs !important;
   the client color stays in the tile's glow. */
.thumb .t-sub { opacity: 1; color: var(--text) !important; }
.req-note, .lead small, form small, .post-card .date, .date { color: var(--muted); }

/* Visitors who ask for less motion get no scroll fade at all. */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal.visible { opacity: 1; transform: none; transition: none; }
}

/* Skip link (pages that didn't have one carry it from here). */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #0d1b2a; color: #e8eef5; padding: 10px 16px; border: 2px solid #2dd4bf; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 8px; top: 8px; }

/* ======================================================================
   Chunk 2 (2026-11-18, bench review): first screen and proof.
   ====================================================================== */

/* ---------- Homepage: who, rating, price, and a one-tap way to reach Jake ---------- */
.hero-contact { margin-top: 16px; }
/* The trust line sits above the headline, where the "Richmond, Virginia"
   pill was, so it's on the first screen of every phone. */
.trust-line { color: var(--muted); font-size: 1rem; line-height: 1.6; margin: 0 0 24px; max-width: 760px; }
.trust-line strong { color: #fff; font-weight: 600; }
.trust-line a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(232,238,245,0.45); }
.trust-line a:hover { color: var(--teal); text-decoration-color: currentColor; }
.trust-line .star { color: #fbbf24; }
.trust-line .tl-item { white-space: nowrap; }
.trust-line .sep { color: var(--faint); margin: 0 4px 0 8px; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--glass-border); background: var(--glass);
  color: var(--text); font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: color .2s, border-color .2s;
}
.cbtn:hover { color: var(--teal); border-color: var(--glass-hover); }
.cbtn svg { width: 18px; height: 18px; flex: none; display: block; }
/* The number shows on wider screens, where a tap doesn't dial; on phones
   the button dials and the number is read out to screen readers only. */
.cbtn .num { font-weight: 500; color: var(--muted); }
@media (max-width: 760px) {
  .cbtn .num { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}

/* ---------- Phone contact bar (all pages, phones only; built by /assets/menu.js) ---------- */
.cbar { display: none; }
@media (max-width: 760px) {
  .cbar {
    display: grid; grid-template-columns: 1fr 1fr 1.35fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #080f1a; border-top: 1px solid var(--glass-border);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
    transition: transform .25s ease, visibility .25s;
  }
  .cbar a {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 48px; border-radius: 10px; color: var(--text);
    font-weight: 600; font-size: .95rem; text-decoration: none;
  }
  .cbar a:hover, .cbar a:focus-visible { color: var(--teal); background: var(--glass); }
  .cbar a + a { border-left: 1px solid var(--glass-border); border-radius: 0; }
  .cbar svg { width: 18px; height: 18px; flex: none; display: block; }
  .cbar span { white-space: nowrap; }
  /* On the homepage the bar waits until the trust line's buttons scroll away. */
  .cbar.is-away { transform: translateY(110%); visibility: hidden; }
  /* Room at the bottom so the bar never covers the footer. */
  body.has-cbar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  /* The river's pause button sits above the bar. */
  body.has-cbar .rva-motion.rva-float { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .cbar { transition: none; } }

/* ---------- Homepage: services in a 2 x 2 grid ---------- */
@media (min-width: 720px) {
  #services .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Homepage: Recent Work with real screenshots ---------- */
#work .work-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.thumb.shot { display: block; padding: 0; background: #0d1b2a; }
.thumb.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Homepage: About with Jake's photo ---------- */
.about-me { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start; margin-bottom: 14px; }
.about-me img { display: block; width: 150px; height: 200px; object-fit: cover; border-radius: 16px; border: 1px solid var(--glass-border); }
.about-me p { margin: 0; }
@media (max-width: 420px) {
  .about-me { grid-template-columns: 110px 1fr; gap: 16px; }
  .about-me img { width: 110px; height: 147px; border-radius: 12px; }
}

/* ---------- Service and suburb pages: one proof strip ---------- */
section.proof { padding: 8px 0 40px; }
.proof-card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center;
  margin: 0; padding: 24px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--glass-border);
}
.proof-card.no-shot { grid-template-columns: 1fr; max-width: 760px; }
.proof-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--glass-border); }
.proof-kicker { color: var(--teal); font-weight: 600; font-size: .95rem; margin: 0 0 8px; }
.proof-stars { color: #fbbf24; letter-spacing: 2px; font-size: .95rem; margin-bottom: 10px; }
.proof-card blockquote { margin: 0 0 12px; }
.proof-card blockquote p { font-family: 'Newsreader', Georgia, serif; font-size: 1.15rem; font-weight: 600; color: #fff; line-height: 1.5; }
.proof-card figcaption { color: var(--muted); font-size: .92rem; }
.proof-card figcaption a { text-decoration: underline; text-underline-offset: 2px; }
.proof-more { margin: 14px 0 0; font-weight: 600; font-size: .95rem; }
.proof-more a { text-decoration: underline; text-underline-offset: 3px; }
.proof-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.proof-stats li { padding: 14px 12px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(8,15,26,0.55); text-align: center; }
.proof-stats b { display: block; font-family: 'Newsreader', Georgia, serif; font-size: 1.7rem; color: #fff; line-height: 1.1; }
.proof-stats span { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.proof-note { color: var(--muted); font-size: .85rem; margin: -6px 0 14px; }
@media (max-width: 800px) {
  .proof-card { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
}
.about-me a { text-decoration: underline; text-underline-offset: 2px; }
h2.proof-kicker { font-family: 'IBM Plex Sans', system-ui, sans-serif; letter-spacing: 0; line-height: 1.4; }
.proof-card figure { margin: 0; }

@media (max-width: 360px) {
  .cbar a { font-size: .9rem; gap: 5px; }
  .trust-line { font-size: .95rem; }
}

/* ======================================================================
   Chunk 3 (2026-11-18, bench review): the offer.
   ====================================================================== */

/* One line under the hero buttons that says what happens next. */
.next-step { color: var(--muted); font-size: .92rem; line-height: 1.55; max-width: 560px; margin: 14px 0 0; }

/* Pricing: four cards (two builds, two monthly plans) in a 2 x 2 grid,
   one row of four on wide screens. */
@media (min-width: 720px) { #pricing .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { #pricing .price-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.price-card .result { color: var(--text); font-size: .92rem; line-height: 1.5; margin: 0 0 4px; }

/* The $150 audit and the No surprises box under the pricing cards. */
.offer-extras { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 800px) { .offer-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offer-box h3 { margin-top: 0; }
.offer-box p { margin: 0 0 18px; }
.offer-box .btn { display: inline-block; }
.nos-box { margin-top: 28px; }
ul.nos { list-style: none; margin: 12px 0 0; padding: 0; }
ul.nos li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.card ul.nos li::before, ul.nos li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px;
  background: no-repeat center / 18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232dd4bf' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* Under the contact form's Send button. */
.form-next { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }
/* Line the four pricing buttons up along the bottom of their cards. */
#pricing .price-card ul { margin-bottom: 26px; }
#pricing .price-card .btn { margin-top: auto; }

/* ======================================================================
   Chunk 4 (2026-11-18, bench review): referrals.
   ====================================================================== */

/* A filled version of the contact buttons (the booking one on /refer). */
.cbtn-accent { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); border-color: transparent; color: #052e2b !important; }
.cbtn-accent:hover { color: #052e2b !important; box-shadow: 0 0 24px rgba(45,212,191,0.35); }

/* ---------- /refer ---------- */
.refer-hero .rh-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; align-items: center; }
.rh-photo { display: block; width: 220px; height: 293px; object-fit: cover; border-radius: 18px; border: 1px solid var(--glass-border); }
.rh-label { color: var(--teal); font-weight: 600; font-size: 1rem; margin: 0 0 10px; }
.refer-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.refer-hero .sub { margin: 18px 0 18px; }
.refer-hero .trust-line { margin-bottom: 18px; }
@media (max-width: 700px) {
  .refer-hero .rh-grid { grid-template-columns: 1fr; gap: 22px; }
  .rh-photo { width: 140px; height: 187px; border-radius: 14px; }
}
section.refer-sec { padding: 56px 0; }
.refer-sec h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; margin: 0 0 24px; }
.refer-sec h3 { font-size: 1.15rem; color: #fff; margin: 24px 0 8px; }
.refer-sec p { color: var(--muted); }
.rsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 620px) { .rsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rsteps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rstep { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border); }
.rstep h3 { margin: 2px 0 6px; font-size: 1.08rem; }
.rstep p { font-size: .93rem; margin: 0; }
.rstep-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #052e2b; background: linear-gradient(135deg, var(--teal), var(--cyan)); }
.rfit { display: grid; gap: 32px; align-items: start; }
@media (min-width: 860px) { .rfit { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; } }
.refer-sec .card h2.rprice-h { font-size: 1.5rem; margin-bottom: 8px; }
.rprices { list-style: none; margin: 14px 0 0; padding: 0; }
.rprices li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--glass-border); }
.rprices li b { color: #fff; font-weight: 600; }
.rprices li span { color: var(--muted); text-align: right; }
.rprices-more { margin: 16px 0 0; }
.rproofs { display: grid; gap: 20px; }
@media (min-width: 960px) { .rproofs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rproof { margin: 0; padding: 20px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border); }
.rproof img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--glass-border); margin-bottom: 14px; }
.rproof blockquote { margin: 0 0 10px; }
.rproof blockquote p { font-family: 'Newsreader', Georgia, serif; font-size: 1.08rem; font-weight: 600; color: #fff; line-height: 1.5; }
.rproof figcaption { color: var(--muted); font-size: .88rem; }
.rsend { max-width: 780px; }
.refer-sec .rsend h2 { margin-bottom: 10px; }
.rintro { margin: 18px 0; padding: 16px 18px; border-left: 3px solid var(--teal); border-radius: 0 12px 12px 0; background: rgba(8,15,26,0.55); color: var(--text); line-height: 1.6; }
.rsend-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.rsend-btns .btn { cursor: pointer; font: inherit; font-weight: 600; }
.rcopied { min-height: 1.4em; margin: 10px 0 0; color: var(--teal) !important; font-weight: 600; }
.refer-end { text-align: center; }
.refer-end .contact-btns { justify-content: center; }
.rmsg { margin: 18px 0 0; }

/* ---------- /thanks: book now instead of waiting ---------- */
.thanks-sooner { margin-top: 22px; color: var(--text) !important; }
.thanks-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0; }
.thanks-btns .btn { margin-top: 14px; }
.thanks-btns .btn + .btn { background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); box-shadow: none; }
@media (max-width: 600px) {
  .rprices li { flex-direction: column; }
  .rprices li span { text-align: left; }
}
.rproof figcaption a { text-decoration: underline; text-underline-offset: 2px; }

/* Chunk 6 (2026-11-20): labels in sentence case with no tracking, the pill as
   plain text, and no hover lift on cards that aren't links. */
.kicker, .pill, .eyebrow, .work-body .tag, .thumb .t-sub, .toc-title, .cost-table th {
  text-transform: none; letter-spacing: normal;
}
.kicker { font-weight: 600; font-size: .9rem; }
.pill { background: none; border: 0; padding: 0; border-radius: 0; color: var(--muted); font-size: .92rem; }
.pill::before { display: none; }
.card:not(a):hover { transform: none; }

/* Chunk 7 (2026-11-20): cost tables marked .stack become one block per row on phones, each cell labeled from its column. */
@media (max-width: 640px) {
  .cost-table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cost-table.stack, .cost-table.stack tbody, .cost-table.stack tr, .cost-table.stack td { display: block; width: 100%; }
  .cost-table.stack tr { border: 1px solid var(--glass-border); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
  .cost-table.stack td { border: 0; padding: 4px 0; }
  .cost-table.stack td::before { content: attr(data-label); display: block; color: var(--teal); font-size: .8rem; font-weight: 600; }
}
/* Chunk 7: lists inside .prose (the contractor website page) match the paragraphs around them. */
.prose > ul, .prose > ol { margin: 0 0 16px 22px; }
.prose > ul li, .prose > ol li { color: var(--muted); font-size: 1.02rem; margin-bottom: 8px; padding-left: 4px; }
