/* Massapequa Magic Powerwashing. Mobile first: unprefixed rules are the phone layout,
   min-width queries add the tablet and desktop layout. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600 800; font-stretch: 100% 125%; font-display: swap; src: url(/fonts/archivo-var-latin.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/figtree-var-latin.woff2) format("woff2"); }

:root {
  --blue-600: #1F48C7;
  --blue-700: #1A3DB0;
  --blue-900: #0B1D55;
  --blue-50: #EEF3FF;
  --yellow-400: #FFC629;
  --yellow-500: #F2B705;
  --on-yellow: #0B1D55;
  --ink: #13182A;
  --muted: #555F75;
  --line: #E3E8F2;
  --field: #7E8AA6;
  --surface: #FFFFFF;
  --surface-2: #F5F7FB;
  --error: #B42318;
  --success: #157F3B;
  --r-field: 10px;
  --r-card: 16px;
  --gutter: 16px;
  --max: 1180px;
  --bar-h: 72px;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; scroll-padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 17px/1.6 var(--body);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
h1, h2, h3 { font-family: var(--display); color: var(--blue-900); margin: 0; font-stretch: 112%; }
h1 { font-size: clamp(2.05rem, 1.4rem + 3.4vw, 3.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.55rem); font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(1.075rem, 1rem + .4vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue-900); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-field); border: 0;
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer;
  background: var(--yellow-400); color: var(--on-yellow);
  transition: background-color .15s, transform .15s var(--ease);
}
.btn:hover { background: var(--yellow-500); color: var(--on-yellow); }
.btn:active { transform: scale(.98); }
.btn--blue { background: var(--blue-600); color: #fff; }
.btn--blue:hover { background: var(--blue-700); color: #fff; }
.btn--block { width: 100%; min-height: 56px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.site-head { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand img { width: 150px; height: auto; }
.site-head .btn { min-height: 44px; padding: 0 14px; font-size: 15px; }

/* Hero */
.hero { padding: 28px 0 56px; }
.hero-grid { display: grid; gap: 24px; }
.hero-grid > * { min-width: 0; }
.hero-copy h1 { max-width: 15ch; }
.hero-copy .lead { margin-top: 14px; }
.hero-photo { margin-top: 20px; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 10; max-height: 220px; width: 100%; background: var(--blue-50); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Quote card + form */
.quote-card {
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--yellow-400);
  border-radius: var(--r-card); padding: 20px 16px 22px;
  box-shadow: 0 1px 2px rgba(11, 29, 85, .06), 0 16px 40px -16px rgba(11, 29, 85, .22);
}
.quote-card h2 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.65rem); }
.progress { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 16px; }
.progress span { height: 4px; border-radius: 4px; background: var(--line); transition: background-color .2s; }
.progress span.on { background: var(--blue-600); }
.step-sub { color: var(--muted); font-size: 15px; margin: 4px 0 16px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; gap: 8px; min-height: 48px; height: 100%; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--ink);
  transition: border-color .15s, background-color .15s;
}
.chip span::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--field); background: #fff center / 14px no-repeat;
}
.chip input:checked + span { border-color: var(--blue-600); background: var(--blue-50); }
.chip input:checked + span::before { background-color: var(--blue-600); border-color: var(--blue-600); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chip input:focus-visible + span { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label, .field .label { font-weight: 600; font-size: 15px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: 400 16px/1.4 var(--body); color: var(--ink);
  background: #fff; border: 1.5px solid var(--field); border-radius: var(--r-field); appearance: none;
}
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%230B1D55' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; padding-right: 40px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(31, 72, 199, .25); }
.field [aria-invalid="true"] { border-color: var(--error); }
.err { display: none; color: var(--error); font-size: 14px; font-weight: 600; }
.err.show { display: block; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.45; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row2 { display: grid; gap: 0 12px; }
.actions { margin-top: 18px; display: grid; gap: 10px; }
.back { background: none; border: 0; color: var(--blue-600); font: 600 15px/1 var(--body); padding: 10px 0; cursor: pointer; justify-self: start; min-height: 44px; }
.form-note { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: none; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-field); background: #FDECEA; color: var(--error); font-weight: 600; font-size: 15px; }
.form-alert.show { display: block; }
.js .step[hidden] { display: none; }
.step { animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.success h2 { margin-bottom: 8px; }
.success p { color: var(--muted); }
.success ul { margin: 14px 0 0; padding-left: 20px; }
.independent { margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.cf-turnstile { margin-top: 14px; }

/* Sections */
section { padding: 64px 0; }
.sec-head { display: grid; gap: 12px; margin-bottom: 28px; }
.sec-head p { color: var(--muted); max-width: 56ch; }

/* Services bento */
.bento { display: grid; gap: 14px; }
.bento > * { min-width: 0; }
.tile { border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.tile figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-50); }
.tile figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover figure img { transform: scale(1.03); }
.tile-body { padding: 18px 18px 20px; display: grid; gap: 8px; align-content: start; flex: 1; }
.tile-body p { color: var(--muted); font-size: 16px; }
.tile-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; min-height: 44px; }
.tile-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.tile-link:hover svg { transform: translateX(3px); }
.tile--ink { background: var(--blue-900); border-color: var(--blue-900); }
.tile--ink h3 { color: #fff; }
.tile--ink p { color: #C9D2EC; }
.tile--ink .tile-link { color: var(--yellow-400); }
.tile--tint { background: var(--blue-50); border-color: #D6E0FB; }

/* How it works */
.how { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { display: grid; gap: 28px; }
.how-grid > * { min-width: 0; }
.how-photo { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--blue-50); }
.how-photo img { width: 100%; height: 100%; object-fit: cover; }
.how-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; }
.how-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.how-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-600); color: #fff; display: grid; place-items: center; }
.how-list .ico svg { width: 22px; height: 22px; }
.how-list h3 { font-size: 1.15rem; }
.how-list p { color: var(--muted); margin-top: 4px; }

/* Service area */
.area { background: var(--blue-50); }
.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { background: #fff; border: 1px solid #D6E0FB; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 15px; color: var(--blue-900); }
.area .note { margin-top: 18px; color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; gap: 20px; }
.faq-grid > * { min-width: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font: 700 1.05rem/1.35 var(--body); color: var(--blue-900); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; font: 700 20px/1 var(--body); }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 0 18px; color: var(--muted); max-width: 62ch; }

/* Final CTA */
.final { position: relative; padding: 0; color: #fff; }
.final picture, .final picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 29, 85, .35) 0%, rgba(11, 29, 85, .92) 70%); }
.final .wrap { position: relative; z-index: 1; min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding-top: 64px; padding-bottom: 56px; }
.final h2 { color: #fff; max-width: 16ch; }
.final p { color: #DCE3F7; max-width: 44ch; }
.final .btn { align-self: flex-start; }

/* Footer */
.site-foot { background: var(--surface-2); border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 15px; color: var(--muted); }
.foot-grid { display: grid; gap: 22px; }
.foot-grid img { width: 170px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { color: var(--blue-900); font-weight: 600; text-decoration: none; display: inline-block; padding: 8px 0; }
.foot-legal { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13px; }

/* Sticky CTA bar */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -12px rgba(11, 29, 85, .18);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(0); transition: transform .24s var(--ease);
}
@supports (backdrop-filter: blur(8px)) { .bar { background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); } }
.bar.hide { transform: translateY(110%); }
.bar-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.bar-text { display: none; font-weight: 600; color: var(--blue-900); }
.bar .btn { flex: 1; min-height: 52px; }

/* Simple pages */
.page { padding: 48px 0 72px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); margin-bottom: 16px; }
.page h2 { font-size: 1.35rem; margin: 28px 0 8px; }
.page p, .page li { color: #2A3247; }
.page p + p { margin-top: 12px; }

/* Reveal on scroll: content stays visible without JS. */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (min-width: 560px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .chips { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--wide { grid-column: span 2; }
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
  section { padding: 96px 0; }
  .hero { padding: 40px 0 88px; }
  .brand img { width: 178px; }
  .site-head .btn { padding: 0 18px; }
  .quote-card { padding: 26px 24px 26px; }
  .how-grid { grid-template-columns: 5fr 6fr; align-items: center; gap: 56px; }
  .how-photo { aspect-ratio: 4 / 5; }
  .faq-grid { grid-template-columns: 4fr 8fr; gap: 48px; }
  .faq-grid .sec-head { position: sticky; top: 96px; align-self: start; }
  .final .wrap { min-height: 520px; justify-content: center; padding-left: var(--gutter); }
  .final::after { background: linear-gradient(90deg, rgba(11, 29, 85, .92) 0%, rgba(11, 29, 85, .75) 45%, rgba(11, 29, 85, 0) 85%); }
  .foot-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .bar { padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .bar-text { display: block; flex: 1; }
  .bar .btn { flex: none; padding: 0 28px; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
  .hero-copy { padding-top: 24px; }
  .hero-photo { max-height: none; margin-top: 28px; }
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; }
  .tile { grid-column: span 4; }
  .tile--soft { grid-column: span 7; grid-row: span 2; }
  .tile--soft figure { aspect-ratio: auto; flex: 1; min-height: 360px; }
  .tile--concrete, .tile--seal { grid-column: span 5; }
  .tile--concrete figure, .tile--seal figure { aspect-ratio: 16 / 9; }
  .tile--deck, .tile--commercial, .tile--other { grid-column: span 4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Radio chips get a round dot instead of a check box. */
.chip input[type="radio"] + span::before { border-radius: 50%; }
.chip input[type="radio"]:checked + span::before { background-image: none; box-shadow: inset 0 0 0 4px #fff; }

/* ---------- Multi-page layout ---------- */
.site-head .wrap { position: relative; }
.main-nav { display: none; }
.main-nav ul, .menu-panel ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--blue-900); font-weight: 600; text-decoration: none; padding: 10px 4px; display: inline-block; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--blue-600); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.menu { position: static; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-field); border: 1px solid var(--line); cursor: pointer; color: var(--blue-900); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu[open] summary { background: var(--blue-50); border-color: #D6E0FB; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px -16px rgba(11, 29, 85, .25); padding: 8px var(--gutter) 18px; max-height: calc(100dvh - 64px); overflow-y: auto; z-index: 50; }
.menu-panel a { display: block; padding: 12px 0; font-weight: 600; color: var(--blue-900); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-h { margin-top: 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.menu-sub a { font-weight: 500; padding: 10px 0; }

.crumbs { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #A3ACC0; }
.crumbs a { color: var(--muted); }
.hero--inner { padding-top: 24px; }

.prose-grid { display: grid; gap: 28px; }
.prose-grid > * { min-width: 0; }
.prose p { color: #2A3247; max-width: 64ch; }
.prose p + p { margin-top: 14px; }
.prose h2 { margin-bottom: 16px; }
.checklist { background: var(--blue-50); border: 1px solid #D6E0FB; border-radius: var(--r-card); padding: 20px 20px 22px; align-self: start; }
.checklist h3 { font-size: 1.15rem; margin-bottom: 12px; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 16px; line-height: 1.45; }
.checklist li svg { width: 20px; height: 20px; color: var(--blue-600); margin-top: 2px; }

.how-list--row { margin-top: 0; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cards > * { min-width: 0; }
.card a { display: block; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.card a:hover { border-color: #C3D0F5; box-shadow: 0 10px 24px -14px rgba(11, 29, 85, .25); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.card .tile-link { margin-top: 8px; min-height: 0; color: var(--blue-600); }
.cards--towns .card a { padding: 14px 16px; }
.county-h { font-size: 1.05rem; color: var(--muted); font-weight: 700; margin: 28px 0 12px; }
.towns a { text-decoration: none; color: inherit; }
.towns li:has(a):hover { border-color: var(--blue-600); }
.tile-title { color: inherit; text-decoration: none; }
.tile-title:hover { color: var(--blue-600); }
.tile--ink .tile-title:hover { color: var(--yellow-400); }

.foot-h { font-weight: 700; color: var(--blue-900); margin-bottom: 8px; }
.foot-h a { color: inherit; text-decoration: none; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-list a { color: var(--muted); text-decoration: none; display: inline-block; padding: 6px 0; }
.foot-list a:hover { color: var(--blue-600); }
.foot-list--cols { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.chips > .chip:last-child:nth-child(odd) { grid-column: span 2; }

@media (min-width: 560px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards--towns { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .prose-grid { grid-template-columns: 7fr 4fr; gap: 48px; }
  .how-list--row { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .foot-grid { grid-template-columns: 1.3fr 1fr 1.3fr; gap: 32px; }
  .cards--towns { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .main-nav { display: block; margin-left: auto; margin-right: 12px; }
  .main-nav ul { display: flex; gap: 22px; }
  .menu { display: none; }
  .cards { grid-template-columns: repeat(4, 1fr); }
}
