/* ============================================================
   Fremont Tub Refinishing Pros
   Persona #4 — Classic 2012 contractor
   Palette: blue #1B4F9C / yellow #FFC20E / bg #EEF2F7 / ink #333
   Font: Roboto + Arial fallback
   Mobile-first, single stylesheet, no frameworks.
   ============================================================ */

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Roboto", Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  background: #EEF2F7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #1B4F9C; text-decoration: none; }
a:hover,
a:focus { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Roboto", Arial, sans-serif;
  color: #1B3F7A;
  line-height: 1.22;
  margin: 0 0 .55em;
  font-weight: 700;
}

h1 { font-size: 1.7rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

:focus-visible {
  outline: 3px solid #FFC20E;
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

main { display: block; }

section { padding: 30px 0; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #FFC20E;
  color: #1B3F7A;
  padding: 10px 16px;
  font-weight: 700;
  z-index: 999;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Buttons (radius 4px, blue, yellow hover) ---------- */
.btn {
  display: inline-block;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover,
.btn:focus { text-decoration: none; }

.btn-primary {
  background: #1B4F9C;
  color: #ffffff;
  border-color: #1B4F9C;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #FFC20E;
  color: #1B3F7A;
  border-color: #FFC20E;
}

.btn-ghost {
  background: #FFC20E;
  color: #1B3F7A;
  border-color: #e0a800;
}
.btn-ghost:hover,
.btn-ghost:focus {
  background: #ffffff;
  color: #1B4F9C;
  border-color: #1B4F9C;
}

/* ============================================================
   HEADER — yellow top phone bar + blocky tabbed nav
   ============================================================ */
.topbar {
  background: #FFC20E;
  color: #1B3F7A;
  font-size: .9rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 14px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar a { color: #1B3F7A; font-weight: 700; }
.topbar .tb-phone {
  font-size: 1.05rem;
  letter-spacing: .2px;
}
.topbar .tb-hours { font-weight: 500; }

.site-header {
  background: #ffffff;
  border-bottom: 4px solid #1B4F9C;
  position: relative;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}
.brand:hover { text-decoration: none; }
.brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: #1B4F9C;
}
.brand-tag {
  font-size: .72rem;
  font-weight: 500;
  color: #555;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 42px;
  font-size: 1.5rem;
  line-height: 1;
  background: #1B4F9C;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Tabbed nav — blocky tabs */
.nav {
  background: #1B4F9C;
  display: none;
}
.nav.is-open { display: block; }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li { border-top: 1px solid #2a5fae; }
.nav a {
  display: block;
  color: #fff;
  font-weight: 500;
  padding: 13px 16px;
  text-decoration: none;
}
.nav a:hover,
.nav a:focus,
.nav a[aria-current="page"] {
  background: #FFC20E;
  color: #1B3F7A;
  text-decoration: none;
}

/* ============================================================
   HERO — blue gradient banner, yellow CTA
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #1B4F9C 0%, #143b78 60%, #0f2c5c 100%);
  color: #fff;
  padding: 34px 0 38px;
}
.hero .wrap { display: block; }
.hero h1 {
  color: #fff;
  font-size: 1.85rem;
  margin-bottom: .35em;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.hero .sub {
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 1.1em;
  color: #eaf1fb;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1em;
}
.hero .hours {
  font-weight: 500;
  color: #FFC20E;
  margin: 0;
}
.hero-media { margin-top: 22px; }
.hero-media .ph,
.hero-media img {
  border: 5px solid #fff;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}

/* "Since 2016" seal — signature detail */
.seal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #FFC20E;
  color: #1B3F7A;
  border: 3px dashed #1B3F7A;
  text-align: center;
  font-weight: 700;
  line-height: 1.05;
  transform: rotate(-8deg);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.seal .seal-since { font-size: .62rem; letter-spacing: 1px; text-transform: uppercase; }
.seal .seal-year { font-size: 1.5rem; }
.seal .seal-sub { font-size: .55rem; text-transform: uppercase; letter-spacing: .5px; }

/* ============================================================
   DIRECT ANSWER
   ============================================================ */
.direct-answer {
  background: #fff;
  border-left: 6px solid #FFC20E;
  border-radius: 4px;
  padding: 22px 20px 8px;
  box-shadow: 0 1px 3px rgba(27,79,156,.12);
}
.direct-answer h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #1B4F9C;
}
.direct-answer h3 {
  font-size: 1.08rem;
  margin-top: .9em;
  color: #1B3F7A;
}
.direct-answer p { margin-bottom: .9em; }

/* ============================================================
   CITABLE FACTS
   ============================================================ */
.citable-facts {
  background: #dfe8f5;
  border: 1px solid #c3d3ea;
  border-radius: 4px;
  padding: 18px 20px;
}
.citable-facts h2 {
  font-size: 1.2rem;
  margin-bottom: .6em;
}
.citable-facts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.citable-facts li {
  position: relative;
  padding: 7px 0 7px 30px;
  border-bottom: 1px dashed #b8c9e2;
}
.citable-facts li:last-child { border-bottom: none; }
.citable-facts li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 7px;
  width: 20px;
  height: 20px;
  background: #1B4F9C;
  color: #FFC20E;
  border-radius: 3px;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  line-height: 20px;
}

/* ============================================================
   SERVICES — blocky boxes grid
   ============================================================ */
.services h2 { text-align: center; }
.svc-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.svc-grid li {
  background: #fff;
  border: 1px solid #cdd9ea;
  border-top: 4px solid #1B4F9C;
  border-radius: 4px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.svc-grid h3 { margin-bottom: .35em; }
.svc-grid h3 a { color: #1B4F9C; }
.svc-grid .svc-price {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: #1B3F7A;
  background: #FFC20E;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: .9rem;
}

/* ============================================================
   BEFORE / AFTER — stacked with captions under each
   (persona #4 component; JS toggles which is shown on small screens)
   ============================================================ */
.before-after h2 { text-align: center; }
.ba-pair {
  margin: 0 auto;
  max-width: 760px;
  background: #fff;
  border: 1px solid #cdd9ea;
  border-radius: 4px;
  padding: 14px;
}
.ba-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ba-item { position: relative; }
.ba-item img,
.ba-item .ph {
  border: 3px solid #1B4F9C;
  border-radius: 4px;
}
.ba-item.is-before img,
.ba-item.is-before .ph { border-color: #9aa7b8; }
.ba-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  color: #fff;
}
.ba-item.is-before .ba-tag { background: #6b7280; }
.ba-item.is-after .ba-tag { background: #1B4F9C; }
.ba-cap {
  margin: 6px 2px 0;
  font-size: .9rem;
  color: #555;
  font-style: italic;
}
.ba-toggle {
  display: flex;
  gap: 0;
  margin: 0 auto 14px;
  max-width: 280px;
  border: 2px solid #1B4F9C;
  border-radius: 4px;
  overflow: hidden;
}
.ba-toggle button {
  flex: 1;
  border: none;
  background: #fff;
  color: #1B4F9C;
  font-family: inherit;
  font-weight: 700;
  padding: 9px 4px;
  cursor: pointer;
}
.ba-toggle button[aria-pressed="true"] {
  background: #1B4F9C;
  color: #fff;
}

/* ============================================================
   PRICING TABLE
   ============================================================ */
.pricing h2 { text-align: center; }
.table-scroll { overflow-x: auto; }
.pricing table,
.routing table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #cdd9ea;
  border-radius: 4px;
  overflow: hidden;
  font-size: .96rem;
}
.pricing thead th,
.routing thead th {
  background: #1B4F9C;
  color: #fff;
  text-align: left;
  padding: 11px 12px;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.pricing td,
.routing td {
  padding: 11px 12px;
  border-top: 1px solid #e0e7f1;
  vertical-align: top;
}
.pricing tbody tr:nth-child(odd) td,
.routing tbody tr:nth-child(odd) td { background: #f6f9fd; }
.pricing td:last-child {
  font-weight: 700;
  color: #1B3F7A;
  white-space: nowrap;
}
.price-note { margin-top: .9em; font-size: .95rem; }

/* ============================================================
   PROCESS — numbered list
   ============================================================ */
.process ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.process li {
  counter-increment: step;
  position: relative;
  background: #fff;
  border: 1px solid #cdd9ea;
  border-radius: 4px;
  padding: 14px 16px 14px 58px;
}
.process li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  background: #FFC20E;
  color: #1B3F7A;
  font-weight: 700;
  border-radius: 50%;
  text-align: center;
  line-height: 34px;
  border: 2px solid #1B4F9C;
}

/* ============================================================
   ROUTING TABLE (shares .routing table styles above)
   ============================================================ */
.routing h2 { text-align: center; }

/* ============================================================
   AREAS
   ============================================================ */
.areas { background: #fff; border-top: 1px solid #d6e0ee; border-bottom: 1px solid #d6e0ee; }

/* ============================================================
   REVIEWS — neighborhood-specific quotes
   ============================================================ */
.reviews h2 { text-align: center; }
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.reviews blockquote {
  margin: 0;
  background: #fff;
  border: 1px solid #cdd9ea;
  border-left: 5px solid #FFC20E;
  border-radius: 4px;
  padding: 16px 18px;
}
.reviews blockquote p { margin: 0 0 .6em; }
.reviews .stars { color: #FFC20E; font-size: 1.05rem; letter-spacing: 1px; }
.reviews cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: #1B3F7A;
  font-size: .92rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq h2 { text-align: center; }
.faq .qa {
  background: #fff;
  border: 1px solid #cdd9ea;
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.faq .qa h3 {
  margin-bottom: .35em;
  font-size: 1.04rem;
  color: #1B4F9C;
}
.faq .qa p { margin: 0; }

/* ============================================================
   RELATED
   ============================================================ */
.related {
  background: #dfe8f5;
  border-radius: 4px;
  padding: 18px 20px;
}
.related h2 { font-size: 1.15rem; }
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.related-links a {
  background: #fff;
  border: 1px solid #1B4F9C;
  border-radius: 4px;
  padding: 8px 14px;
  font-weight: 500;
}
.related-links a:hover,
.related-links a:focus {
  background: #1B4F9C;
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  background: linear-gradient(135deg, #1B4F9C 0%, #143b78 100%);
  color: #fff;
  text-align: center;
  border-radius: 4px;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: #eaf1fb; }
.final-cta .btn { margin: 6px 5px 0; }

/* ============================================================
   FOOTER NAP
   ============================================================ */
.site-footer {
  background: #11264a;
  color: #cdd9ea;
  padding: 28px 0 22px;
  font-size: .94rem;
}
.site-footer a { color: #FFC20E; }
.site-footer .nap strong { color: #fff; font-size: 1.05rem; }
.site-footer .nap { margin-bottom: 1em; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px solid #2a3f63;
}
.footer-nav a { font-weight: 500; }
.copyright { color: #8ea2c4; font-size: .85rem; margin: 8px 0 0; }

/* ============================================================
   IMAGE PLACEHOLDER (.ph) — neutral block showing filename
   ============================================================ */
.ph {
  position: relative;
  width: 100%;
  background: repeating-linear-gradient(
    45deg,
    #d7dee8,
    #d7dee8 12px,
    #ccd5e1 12px,
    #ccd5e1 24px
  );
  color: #5b6675;
  min-height: 180px;
  aspect-ratio: 4 / 3;
}
.ph::after {
  content: attr(data-img) ".webp";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .3px;
  color: #4a5667;
  background: rgba(238,242,247,.55);
  text-align: center;
  padding: 6px;
}
.hero-media .ph { aspect-ratio: 16 / 9; min-height: 200px; }

/* breadcrumb (inner pages) */
.breadcrumb {
  font-size: .85rem;
  padding: 10px 0;
  color: #5b6675;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.breadcrumb li::after { content: "\203A"; margin-left: 6px; color: #9aa7b8; }
.breadcrumb li:last-child::after { content: ""; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet ≥ 600px */
@media (min-width: 600px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.15rem; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .process ol { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-stack { flex-direction: row; }
  .ba-stack .ba-item { flex: 1; }
  .ba-toggle { display: none; } /* both shown side by side on wider screens */
}

/* Desktop ≥ 880px — show inline header CTA + horizontal tab nav */
@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .header-cta .hc-phone {
    font-weight: 700;
    font-size: 1.15rem;
    color: #1B4F9C;
  }
  .nav {
    display: block;
    background: #1B4F9C;
  }
  .nav .wrap { padding: 0 16px; }
  .nav ul {
    display: flex;
    flex-wrap: wrap;
  }
  .nav li { border-top: none; border-right: 1px solid #2a5fae; }
  .nav a { padding: 12px 15px; font-size: .95rem; }

  .hero .wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 30px;
    align-items: center;
  }
  .hero-media { margin-top: 0; }
  .hero h1 { font-size: 2.45rem; }

  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-grid li:nth-child(4),
  .svc-grid li:nth-child(5) { grid-column: span 1; }

  .process ol { grid-template-columns: repeat(3, 1fr); }

  .direct-answer { padding: 28px 30px 14px; }
  section { padding: 40px 0; }
}

/* Large ≥ 1024px */
@media (min-width: 1024px) {
  .review-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   QUOTE FORM — persona #4 (blocky, blue/yellow, 4px radius)
   Used full on /contact/ and compact on the homepage.
   ============================================================ */
.quote-form {
  background: #fff;
  border: 1px solid #cdd9ea;
  border-top: 4px solid #1B4F9C;
  border-radius: 4px;
  padding: 20px 18px;
  box-shadow: 0 1px 3px rgba(27,79,156,.12);
}
.quote-form .fld { margin-bottom: 14px; }
.quote-form label {
  display: block;
  font-weight: 700;
  color: #1B3F7A;
  font-size: .95rem;
  margin-bottom: 5px;
}
.quote-form .req { color: #b3261e; }
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: #333;
  background: #fff;
  border: 2px solid #c3d3ea;
  border-radius: 4px;
  padding: 11px 12px;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: #1B4F9C;
  outline: 3px solid #FFC20E;
  outline-offset: 1px;
}
.quote-form textarea { min-height: 110px; resize: vertical; }
.quote-form .btn { width: 100%; }
.quote-form .form-note {
  margin: 12px 0 0;
  font-size: .9rem;
  color: #555;
}
/* Compact homepage variant: phone + service can sit side by side on wider screens */
.quote-compact .fld-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 600px) {
  .quote-compact .fld-row { grid-template-columns: 1fr 1fr; }
}

/* Booking CTA panel (replaces the old native quote form) */
.booking-panel {
  background: #fff;
  border: 1px solid #cdd9ea;
  border-top: 4px solid #1B4F9C;
  border-radius: 4px;
  padding: 22px 20px;
  text-align: center;
}
.booking-panel > p:first-child {
  margin: 0 0 16px;
  font-weight: 700;
  color: #1B3F7A;
  font-size: 1.1rem;
}
.booking-panel .hours {
  margin: 14px 0 0;
  font-size: .95rem;
  color: #555;
}
.btn-lg {
  font-size: 1.15rem;
  padding: 14px 30px;
}

/* ============================================================
   STICKY MOBILE CALL-BAR (injected by main.js; mobile only)
   ============================================================ */
.mobile-callbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: 999;
  box-shadow: 0 -2px 8px rgba(0,0,0,.25);
}
.mobile-callbar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 6px;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  text-align: center;
}
.mobile-callbar a:hover,
.mobile-callbar a:focus { text-decoration: none; }
.mobile-callbar .cb-call {
  background: #1B4F9C;
  color: #fff;
}
.mobile-callbar .cb-book {
  background: #FFC20E;
  color: #1B3F7A;
}
/* Keep the footer clear of the fixed bar on mobile */
body { padding-bottom: 64px; }

/* Hide the call-bar and drop the reserved padding on desktop */
@media (min-width: 768px) {
  .mobile-callbar { display: none; }
  body { padding-bottom: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
/* 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;}}
