/* ==========================================================================
   Hayward Bath Refinishing & Resurfacing
   Persona #6 — Utility trade, 2014.
   Red #B91C1C / graphite #374151 / bg #F3F4F6 / ink #111827.
   Archivo (headings) + Roboto Condensed (body/nav).
   Signature: full-width red header bar, condensed type, dense info tables,
   grid before/after, 3px-radius red buttons.
   Mobile-first. Vanilla CSS, single file.
   ========================================================================== */

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --red:        #B91C1C;
  --red-dark:   #991616;
  --red-darker: #7f1212;
  --graphite:   #374151;
  --graphite-2: #4b5563;
  --bg:         #F3F4F6;
  --bg-alt:     #e8eaed;
  --ink:        #111827;
  --ink-soft:   #1f2937;
  --line:       #d1d5db;
  --line-dark:  #9ca3af;
  --white:      #ffffff;
  --paper:      #fbfbfc;
  --ok:         #166534;

  --shadow-sm:  0 1px 2px rgba(17,24,39,.10);
  --shadow:     0 2px 6px rgba(17,24,39,.14);

  --maxw: 1160px;
  --gut: 16px;

  --r: 3px; /* persona button radius */

  --f-head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--r);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--graphite);
}
.btn-ghost:hover { background: var(--graphite); color: #fff; }

/* ==========================================================================
   HEADER — full-width red CTA bar + condensed nav (persona signature)
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; }

/* top red strip: phone + book, full width */
.header-bar {
  background: var(--red);
  color: #fff;
}
.header-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.header-bar .bar-tag {
  font-family: var(--f-body);
  font-size: .9rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.header-bar .bar-actions { display: flex; align-items: center; gap: 14px; }
.header-bar a { color: #fff; text-decoration: none; }
.bar-phone {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}
.bar-phone:hover { text-decoration: underline; }
.bar-book {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: #fff;
  color: var(--red);
  padding: 6px 12px;
  border-radius: var(--r);
}
.bar-book:hover { background: var(--ink); color: #fff; }

/* main nav row (graphite) */
.header-main {
  background: var(--graphite);
  border-bottom: 3px solid var(--red);
}
.header-main .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.brand {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.18rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.01em;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.brand small {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.nav { display: none; }
.nav a {
  font-family: var(--f-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .9rem;
  color: #e5e7eb;
  text-decoration: none;
  padding: 6px 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom: 2px solid var(--red); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 40px;
  background: transparent;
  border: 1px solid #6b7280;
  border-radius: var(--r);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

/* mobile slide-down nav */
.nav-mobile {
  display: none;
  background: var(--graphite);
  border-bottom: 3px solid var(--red);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; margin: 0; padding: 4px 0; }
.nav-mobile li { margin: 0; border-top: 1px solid #4b5563; }
.nav-mobile a {
  display: block;
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .95rem;
  color: #e5e7eb;
  text-decoration: none;
  padding: 12px 16px;
}
.nav-mobile a:hover { background: #2b333f; color: #fff; }

/* ==========================================================================
   HERO — graphite block + red accent stripe + image
   ========================================================================== */
.hero { background: var(--graphite); color: #fff; }
.hero .wrap {
  display: grid;
  gap: 22px;
  padding-top: 30px;
  padding-bottom: 34px;
}
.hero-copy { border-left: 5px solid var(--red); padding-left: 16px; }
.hero h1 {
  color: #fff;
  font-size: 2.05rem;
  margin-bottom: .35em;
}
.hero .sub {
  font-size: 1.12rem;
  color: #e5e7eb;
  margin-bottom: 1.1em;
  max-width: 44ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero .hours {
  font-size: .95rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
}
.hero-media .ph, .hero-media img {
  width: 100%;
  border: 3px solid var(--red);
  border-radius: var(--r);
}

/* ==========================================================================
   SECTION SCAFFOLD
   ========================================================================== */
section { padding: 34px 0; }
section > .wrap > h2 { position: relative; }
.section-tinted { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-graphite { background: var(--graphite); color: #e5e7eb; }
.section-graphite h2, .section-graphite h3 { color: #fff; }

.kicker {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

/* ---- Direct answer ------------------------------------------------------- */
.direct-answer { background: var(--white); border-top: 4px solid var(--red); }
.direct-answer h3 {
  margin-top: 1.1em;
  color: var(--ink);
  font-size: 1.12rem;
}
.direct-answer h3::before {
  content: "›";
  color: var(--red);
  font-weight: 700;
  margin-right: 6px;
}
.direct-answer p { max-width: 70ch; margin-bottom: .4em; }

/* ---- Citable facts ------------------------------------------------------- */
.citable-facts { background: var(--bg-alt); }
.citable-facts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
}
.citable-facts li {
  margin: 0;
  padding: 12px 14px 12px 40px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
}
.citable-facts li:last-child { border-bottom: 0; }
.citable-facts li::before {
  content: "✓";
  position: absolute;
  left: 14px; top: 12px;
  color: var(--red);
  font-weight: 700;
}

/* ---- Services (dense table-style grid, persona signature) ---------------- */
.svc-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  overflow: hidden;
}
.svc-grid li {
  margin: 0;
  background: var(--white);
  padding: 16px 16px 18px;
}
.svc-grid h3 { margin-bottom: .25em; font-size: 1.1rem; }
.svc-grid h3 a { text-decoration: none; color: var(--ink); }
.svc-grid h3 a:hover { color: var(--red); }
.svc-grid p { margin: 0 0 .5em; font-size: .96rem; color: var(--graphite-2); }
.svc-grid .svc-price {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ---- Before / after — GRID (persona spec) -------------------------------- */
.before-after { background: var(--bg-alt); }
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
  border-radius: var(--r);
  padding: 1px;
}
.ba-cell { position: relative; background: var(--white); }
.ba-cell .ph, .ba-cell img { width: 100%; display: block; }
.ba-cell .ba-label {
  position: absolute;
  top: 0; left: 0;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  padding: 5px 12px;
}
.ba-cell.is-before .ba-label { background: var(--graphite); }
.ba-cell.is-after  .ba-label { background: var(--red); }
.ba-pair { margin: 0; }
.ba-pair figcaption {
  font-size: .92rem;
  color: var(--graphite-2);
  padding: 10px 2px 0;
  font-style: italic;
}
/* extra rows of the gallery, JS-toggle pairs */
.ba-set { display: grid; gap: 22px; }
.ba-tablist { display: flex; gap: 8px; margin: 14px 0 0; }
.ba-tablist button {
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .82rem;
  padding: 7px 16px;
  border: 2px solid var(--graphite);
  background: #fff;
  color: var(--ink);
  border-radius: var(--r);
  cursor: pointer;
}
.ba-tablist button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }

/* ---- Tables (dense info tables — persona signature) ---------------------- */
.data-table, .pricing table, .routing table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  overflow: hidden;
  font-size: .98rem;
}
.data-table th, .data-table td,
.pricing th, .pricing td,
.routing th, .routing td {
  text-align: left;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table thead th,
.pricing thead th,
.routing thead th {
  background: var(--graphite);
  color: #fff;
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .82rem;
  border-bottom: 0;
}
.pricing tbody tr:nth-child(even) td,
.routing tbody tr:nth-child(even) td,
.data-table tbody tr:nth-child(even) td { background: #f7f8f9; }
.pricing tbody td:last-child {
  font-family: var(--f-head);
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}
.pricing .note, .routing .note { font-size: .95rem; margin-top: 12px; color: var(--graphite-2); }
.reviewed { font-size: .9rem; margin-top: 14px; color: var(--graphite-2); font-style: italic; }
.byline { font-family: var(--f-head); font-weight: 600; font-size: .92rem; letter-spacing: .02em; color: var(--red); margin: 0 0 10px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- Process (numbered) -------------------------------------------------- */
.process ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.process li {
  counter-increment: step;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--r);
  padding: 14px 16px 14px 56px;
  margin: 0;
}
.process li::before {
  content: counter(step);
  position: absolute;
  left: 12px; top: 12px;
  width: 30px; height: 30px;
  background: var(--red);
  color: #fff;
  font-family: var(--f-head);
  font-weight: 700;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
}
.process li strong { font-family: var(--f-head); }

/* ---- Areas / neighborhoods ----------------------------------------------- */
.areas p { max-width: 74ch; }
.zip-chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.zip-chips li {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  padding: 5px 11px;
  color: var(--graphite);
}

/* ---- Reviews ------------------------------------------------------------- */
.reviews { background: var(--graphite); color: #e5e7eb; }
.reviews h2 { color: #fff; }
.reviews .rev-grid { display: grid; gap: 16px; }
.reviews blockquote {
  margin: 0;
  background: #2f3744;
  border-left: 4px solid var(--red);
  border-radius: var(--r);
  padding: 16px 18px;
}
.reviews blockquote p { margin: 0 0 .6em; }
.reviews .stars { color: #fbbf24; letter-spacing: 2px; font-size: .95rem; margin-bottom: 6px; }
.reviews cite {
  display: block;
  font-style: normal;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
}
.reviews .agg {
  font-family: var(--f-head);
  font-weight: 700;
  color: #fff;
  margin-top: 18px;
  font-size: 1.05rem;
}
.reviews .agg span { color: #fbbf24; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq .qa {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq .qa h3 { font-size: 1.06rem; margin-bottom: .35em; }
.faq .qa h3::before { content: "Q. "; color: var(--red); }
.faq .qa p { margin: 0; color: var(--graphite-2); }

/* ---- Related ------------------------------------------------------------- */
.related { background: var(--bg-alt); }
.related .rel-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related a {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-bottom: 3px solid var(--red);
  border-radius: var(--r);
  padding: 9px 14px;
}
.related a:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ---- Final CTA ----------------------------------------------------------- */
.final-cta { background: var(--red); color: #fff; text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #fee2e2; margin-bottom: 1.2em; }
.final-cta .btn-primary { background: #fff; color: var(--red); border-color: #fff; }
.final-cta .btn-primary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.final-cta .btn-ghost { color: #fff; border-color: #fff; }
.final-cta .btn-ghost:hover { background: #fff; color: var(--red); }
.final-cta .cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ==========================================================================
   FOOTER NAP
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 30px 0;
  font-size: .96rem;
}
.site-footer a { color: #f3f4f6; }
.site-footer .nap strong { color: #fff; font-family: var(--f-head); font-size: 1.05rem; }
.site-footer .nap { margin-bottom: 1em; line-height: 1.7; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px solid #374151;
}
.footer-nav a {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .85rem;
  text-decoration: none;
  color: #cbd5e1;
}
.footer-nav a:hover { color: #fff; }
.copyright { font-size: .85rem; color: #9ca3af; margin: 0; }

/* ==========================================================================
   IMAGE PLACEHOLDER (.ph)
   ========================================================================== */
.ph {
  position: relative;
  background: repeating-linear-gradient(45deg, #e5e7eb, #e5e7eb 14px, #dfe2e6 14px, #dfe2e6 28px);
  color: var(--graphite-2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: 1px solid var(--line-dark);
}
.ph::after {
  content: attr(data-img);
  padding: 4px 8px;
  background: rgba(255,255,255,.7);
  border-radius: var(--r);
}

/* ---- Breadcrumb (inner pages) -------------------------------------------- */
.breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0; padding: 9px 0;
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; color: var(--line-dark); margin-right: 6px; }
.breadcrumb a { text-decoration: none; color: var(--graphite); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 600px) {
  .citable-facts ul { grid-template-columns: 1fr 1fr; }
  .citable-facts li:nth-last-child(2) { border-bottom: 0; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .reviews .rev-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  body { font-size: 17px; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.7rem; }

  .nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }

  .hero .wrap {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    padding-top: 46px;
    padding-bottom: 50px;
    gap: 34px;
  }

  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews .rev-grid { grid-template-columns: repeat(3, 1fr); }
  .citable-facts ul { grid-template-columns: 1fr 1fr; }
  section { padding: 48px 0; }
}

@media (min-width: 1024px) {
  .citable-facts ul { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==========================================================================
   STICKY MOBILE CALL-BAR (injected by main.js) — persona #6
   Full-width red strip, two equal ≥48px buttons (Call / Book).
   Hidden on desktop; body gets bottom padding on mobile so it never
   covers the footer.
   ========================================================================== */
.mobile-callbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  z-index: 999;
  border-top: 3px solid var(--red);
  box-shadow: 0 -2px 8px rgba(17,24,39,.22);
}
.mobile-callbar a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-callbar .cb-call {
  background: var(--red);
  color: #fff;
}
.mobile-callbar .cb-call:hover { background: var(--red-dark); color: #fff; }
.mobile-callbar .cb-book {
  background: var(--ink);
  color: #fff;
  border-left: 1px solid var(--graphite);
}
.mobile-callbar .cb-book:hover { background: var(--graphite); color: #fff; }
body.has-callbar { padding-bottom: 64px; }

@media (min-width: 768px) {
  .mobile-callbar { display: none; }
  body.has-callbar { padding-bottom: 0; }
}

/* ==========================================================================
   BOOKING PANEL (replaces the old quote forms) — persona #6
   Boxed, graphite, red accent rule, one big "Book online" button.
   ========================================================================== */
.booking-panel {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-top: 4px solid var(--red);
  border-radius: var(--r);
  padding: 22px 20px;
  max-width: 640px;
}
.booking-panel > p {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--graphite);
  margin: 0 0 16px;
  line-height: 1.35;
}
.booking-panel .btn-lg {
  font-size: 1.08rem;
  padding: 14px 30px;
}
.booking-panel .hours {
  font-size: .94rem;
  color: var(--graphite-2);
  margin: 16px 0 0;
}
.booking-panel .hours a { font-weight: 700; }
/* Brand logo mark asset */
.brand-logo-mark{width:44px;height:44px;object-fit:contain;display:inline-block;vertical-align:middle;flex:0 0 44px;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;color:transparent!important;margin-right:.55rem;}
.footer-brand .brand-logo-mark{width:30px;height:30px;flex-basis:30px;margin-right:.35rem;}
@media (max-width:640px){.brand-logo-mark{width:38px;height:38px;flex-basis:38px;margin-right:.45rem;}}
