/* Mr. Power Wash — site styles. Mobile first; layout widens at 640px, 960px and 1080px. */

:root {
  --charcoal: #2b3238;
  --charcoal-deep: #1f2429;
  --ink: #1d2226;
  --muted: #565f66;
  --concrete: #eef0f1;
  --concrete-line: #d6dadd;
  --white: #ffffff;
  --turq: #40e0d0;
  --turq-hover: #2fcbbb;
  --turq-dark: #08716a;
  --focus: #08716a;
  --gutter: 16px;
  --max: 1160px;
  --radius: 6px;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  padding-bottom: 64px; /* room for the phone action bar */
}
img, svg { max-width: 100%; display: block; }
a { color: var(--turq-dark); text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 9vw, 4.75rem); }
h2 { font-size: clamp(1.85rem, 5vw, 2.6rem); }
h3 { font-size: 1.45rem; font-weight: 600; }
p, ul, ol { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip { position: absolute; left: -9999px; top: 8px; background: var(--turq); color: var(--ink); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px;
  border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--body); font-weight: 600; font-size: 1.0625rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--turq); color: var(--ink); border-color: var(--turq); }
.btn-primary:hover { background: var(--turq-hover); border-color: var(--turq-hover); color: var(--ink); }
.btn-ghost { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-ghost:hover { background: var(--charcoal); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0 0; }
.btn-row .btn { flex: 1 1 220px; }

.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--charcoal);
  border-bottom: 1px solid rgba(64,224,208,.25);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; position: relative; }
.brand { display: flex; flex: none; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; padding: 6px 0; }
.brand-mark { width: 40px; height: auto; }
.brand-name { width: 160px; height: auto; }
.nav-toggle {
  min-height: 44px; padding: 0 16px; border: 2px solid var(--charcoal); border-radius: var(--radius);
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); font: 600 1rem var(--body); cursor: pointer;
}
.site-nav { display: none; position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); top: 100%;
  background: var(--charcoal); border-bottom: 1px solid rgba(64,224,208,.25); box-shadow: 0 10px 20px rgba(0,0,0,.25); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 4px var(--gutter) 12px; }
.site-nav a {
  display: flex; align-items: center; min-height: 48px; color: #e6eaec; text-decoration: none;
  font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.1); white-space: nowrap;
}
.site-nav a[aria-current="page"] { color: var(--turq); font-weight: 600; }
.site-nav a:hover { color: var(--turq); }
.header-actions { display: none; }
.call-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); text-decoration: none; white-space: nowrap; }
.call-link:hover { color: var(--turq); }
.site-header :focus-visible { outline-color: var(--turq); }

/* ---------- Phone action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr;
  background: var(--charcoal-deep); border-top: 1px solid rgba(255,255,255,.12);
}
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 60px; color: var(--white); text-decoration: none; font-weight: 600;
}
.action-bar a + a { border-left: 1px solid rgba(255,255,255,.14); }
.action-bar .action-quote { background: var(--turq); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--concrete); padding: 36px 0 44px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 13vw, 6.25rem); line-height: .92; margin-bottom: .3em; }
.slogan {
  font-family: var(--head); font-weight: 600; color: var(--turq-dark);
  font-size: clamp(1.35rem, 3.6vw, 1.85rem); line-height: 1.15; margin: -.2em 0 .6em;
}
.footer-slogan { font-family: var(--head); font-weight: 600; font-size: 1.3rem; color: var(--turq); margin-bottom: .4em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38em; }
.hero-note { margin: 1.25em 0 0; font-size: .95rem; color: var(--muted); }

/* ---------- Before / after slider ---------- */
.compare { margin: 0; }
.compare-frame {
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); background: #c9cfcc;
  box-shadow: 0 1px 0 rgba(31,36,41,.15), 0 18px 40px -24px rgba(31,36,41,.55);
}
.compare-after, .compare-before { position: absolute; inset: 0; }
/* Clean concrete: pale slab, fine aggregate noise, saw-cut joints */
.compare-after {
  background-color: #dfe3e1;
  background-image:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(70,80,78,.35) calc(50% - 1px), rgba(70,80,78,.35) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(55% - 1px), rgba(70,80,78,.3) calc(55% - 1px), rgba(70,80,78,.3) calc(55% + 1px), transparent calc(55% + 1px)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .33 0 0 0 0 .33 0 0 0 .55 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Same slab under mildew, algae and dirt */
.compare-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  background-color: #7f8270;
  background-image:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(30,32,22,.55) calc(50% - 1px), rgba(30,32,22,.55) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(55% - 1px), rgba(30,32,22,.5) calc(55% - 1px), rgba(30,32,22,.5) calc(55% + 1px), transparent calc(55% + 1px)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='390'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018 .03' numOctaves='5' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .14 0 0 0 0 .08 3.2 0 0 0 -1.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .19 0 0 0 0 .13 0 0 0 .7 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: auto, auto, 100% 100%, auto;
}
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px;
  background: var(--white); box-shadow: 0 0 0 1px rgba(31,36,41,.25);
  pointer-events: none;
}
.compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: var(--white); border: 3px solid var(--turq);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6' fill='none' stroke='%232b3238' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 22px; background-position: center; background-repeat: no-repeat;
}
.compare-tag {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 4px;
  font-weight: 600; font-size: .9rem; pointer-events: none;
}
.tag-before { left: 12px; background: rgba(31,36,41,.85); color: var(--white); }
.tag-after { right: 12px; background: rgba(255,255,255,.92); color: var(--charcoal); }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare-frame:has(.compare-range:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.compare figcaption { margin-top: 10px; font-size: .95rem; color: var(--muted); }

/* Photo slider (real job photos) */
.compare-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.compare-pic-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-hero .compare-frame { aspect-ratio: 4 / 5; }

/* Job photos */
.photo-grid { display: grid; gap: 28px; margin-top: 8px; }
.photo { margin: 0; }
.photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--concrete-line); }
.photo-frame img { width: 100%; height: auto; display: block; }
.photo-tag {
  position: absolute; top: 10px; padding: 3px 9px; border-radius: 4px;
  font-weight: 600; font-size: .85rem; pointer-events: none;
}
.photo-tag.tag-b { background: rgba(31,36,41,.85); color: var(--white); }
.pos-tl { top: 10px; left: 10px; }
.pos-tr { top: 10px; right: 10px; }
.pos-bl { bottom: 10px; left: 10px; top: auto; }
.pos-br { bottom: 10px; right: 10px; top: auto; }
.pos-ml { top: 10px; left: calc(50% + 10px); }
.pos-mt { top: calc(50% + 10px); left: 10px; }
.photo-tag.tag-a { background: rgba(255,255,255,.94); color: var(--charcoal); }
.photo figcaption { margin-top: 10px; font-size: .98rem; color: var(--muted); }
.prose .photo { margin: 1.5em 0; }
.specialty { padding: 24px 0 8px; border-top: 1px solid var(--concrete-line); margin-top: 24px; }
.specialty p { max-width: 42em; }
.section-alt .photo-frame { background: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--concrete); }
.page-head { background: var(--concrete); padding: 36px 0 32px; }
.page-head h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
.crumbs { margin: 0 0 .5em; font-weight: 600; }
.crumbs a { color: var(--muted); }
.note { color: var(--muted); font-size: .98rem; }

/* Services as rows, not cards */
.svc-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--charcoal); }
.svc-row { border-bottom: 1px solid var(--concrete-line); }
.svc-row a { display: block; padding: 18px 0 14px; text-decoration: none; color: var(--ink); }
.svc-row h3 { margin-bottom: .2em; }
.svc-row a:hover h3 { text-decoration: underline; text-decoration-color: var(--turq); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.svc-row p { margin: 0; color: var(--muted); }

.split { display: grid; gap: 36px; }
.prose { max-width: 42em; }
.prose h2 { margin-top: 1.1em; }
.prose h2:first-child { margin-top: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 56px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px;
  font-family: var(--head); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--turq-dark);
}

.side-box { background: var(--concrete); border-left: 5px solid var(--turq); padding: 22px 22px 8px; align-self: start; }
.side-box h2 { font-size: 1.7rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 6px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px;
  border-left: 3px solid var(--turq-dark); border-bottom: 3px solid var(--turq-dark); transform: rotate(-45deg);
}
.side-more { font-size: .98rem; }
.link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.link-list a { font-weight: 600; }

/* FAQ */
.faq { border-top: 1px solid var(--concrete-line); }
.faq:last-of-type { border-bottom: 1px solid var(--concrete-line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 16px 40px 16px 0; font-weight: 600; font-size: 1.1rem; color: var(--charcoal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 10px; font-size: 1.6rem; font-weight: 400; color: var(--turq-dark); }
.faq[open] summary::after { content: "\2212"; }
.faq-a p { margin: 0 0 16px; max-width: 42em; }

/* Service area bands */
.bands { display: grid; gap: 0; border-top: 2px solid var(--charcoal); margin: 1.2em 0; }
.band { padding: 18px 0 6px; border-bottom: 1px solid var(--concrete-line); }
.band h3 { margin-bottom: .3em; }

/* Gallery intro */
.gallery-intro { display: grid; gap: 32px; align-items: start; }

/* CTA band */
.cta-band { background: var(--charcoal); color: #dfe4e7; padding: 48px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 40em; }

/* ---------- Google rating and reviews ---------- */
.rating { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 1.2em 0 0; color: var(--ink); text-decoration: none; }
.rating:hover .rating-text { text-decoration: underline; }
.stars { display: inline-flex; gap: 2px; }
.star { width: 20px; height: 20px; fill: #f5b301; }
.rating-text { font-size: 1rem; }
.rating-hero { margin-top: 1.4em; }
.rating-dark { color: #dfe4e7; margin-top: .4em; }
.rating-dark:hover { color: var(--white); }
.review-grid { display: grid; gap: 20px; margin-top: 28px; }
.review { margin: 0; padding: 22px 22px 18px; background: var(--concrete); border-left: 5px solid var(--turq); border-radius: 0 var(--radius) var(--radius) 0; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0 0 12px; font-size: 1.08rem; }
.review figcaption { font-size: .95rem; color: var(--muted); font-weight: 600; }
.review-more { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.section-alt .review { background: var(--white); }

/* ---------- Forms ---------- */
.quote-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 600; color: var(--charcoal); padding: 0; }
.field-pair { display: grid; gap: 18px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 50px; padding: 10px 12px;
  font: 1rem var(--body); color: var(--ink);
  background: var(--white); border: 1.5px solid #9aa3a9; border-radius: var(--radius);
}
textarea { min-height: 120px; resize: vertical; }
input[type="file"] { font: 1rem var(--body); padding: 8px 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--focus); }
.check-grid { display: grid; gap: 4px 18px; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding-top: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--charcoal); flex: none; }
.consent { background: var(--concrete); padding: 14px; border-radius: var(--radius); font-size: .95rem; color: var(--muted); }
.hint { font-size: .95rem; color: var(--muted); margin: 0; }
.btn-submit { width: 100%; font-size: 1.15rem; min-height: 56px; }

/* Legal */
.legal h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.legal h2 { font-size: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-deep); color: #b8c0c6; padding: 44px 0 12px; font-size: .98rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; gap: 28px; }
.footer-logo { width: 220px; height: auto; margin-bottom: 18px; }
.footer-head { font-weight: 600; color: var(--white); margin-bottom: .4em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.footer-contact a { display: inline-block; padding: 6px 0; font-weight: 600; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; }
.footer-legal p { margin: 0; }
.footer-legal a + a { margin-left: 18px; }

/* ---------- 640px+ ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .field-pair { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .btn-row .btn { flex: 0 0 auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .bands { grid-template-columns: 1fr; }
}

/* ---------- 960px+ ---------- */
@media (min-width: 960px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .split { grid-template-columns: 1.5fr 1fr; gap: 56px; }
  .section { padding: 72px 0; }
  .page-head { padding: 56px 0 48px; }
  .svc-list:not(.svc-list-wide) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .gallery-intro { grid-template-columns: 1fr 1fr; gap: 56px; }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* ---------- 960px+: call and quote in the header ---------- */
@media (min-width: 960px) {
  .brand-mark { width: 46px; }
  .brand-name { width: 190px; }
  .header-actions { display: flex; align-items: center; gap: 18px; order: 3; }
  .header-actions .btn { min-height: 44px; padding: 0 16px; }
  .nav-toggle { order: 4; }
}

/* ---------- 1260px+: full navigation ---------- */
@media (min-width: 1260px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav ul { display: flex; gap: 2px; padding: 0; }
  .site-nav a { border: 0; padding: 0 8px; min-height: 44px; }
  .brand-name { width: 170px; }
  .brand { margin-right: 12px; }
  .site-nav { margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
