/* DMC Pressure Washing — light coastal system.
   Client brand wins on palette (niche brief precedence): their mark is a deep
   navy wordmark with a blue water droplet on white, and the work is Nantucket
   cedar shingle, white trim, salt air. So: white surfaces, navy ink, one clean
   water-blue accent, weathered-cedar grey as the only decorative counter-tone.
   Photo-free by design — depth comes from surface, rule work, and type. */

:root {
  /* Deep navy ground. Their mark is navy-on-white, so navy becomes the SURFACE
     rather than the ink — on-brand and, per the convention survey, the open
     lane: ~85% of this niche is white-with-blue-accent. Dark also makes
     before/after photography the light source of the page, which is what this
     site is built to receive. Weathered cedar is the counter-tone; Nantucket
     is a shingle island. */
  --bg: #0d1b2a;             /* deep navy */
  --bg-2: #12243a;           /* raised band */
  --bg-3: #0a1521;           /* deepest */
  --card: #16293f;
  --fg: #f4f1ea;             /* warm oatmeal, not clinical white */
  --fg-soft: #d3d8e0;        /* body — 11.4:1 on bg */
  --muted: #9aa7b8;          /* meta — 7.2:1 on bg, 6.4:1 on card */
  --accent: #4aa3df;         /* their droplet blue, lifted to read on navy — 6.8:1 */
  --accent-deep: #7cc0ec;
  --accent-fg: #08131f;
  --cedar: #b9a888;          /* weathered shingle — decorative + small accents */
  --line: rgba(180, 196, 214, 0.18);
  --line-strong: rgba(180, 196, 214, 0.4);
  --radius: 4px;
  --radius-lg: 12px;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --section-y: clamp(3.5rem, 6vw, 5.5rem);
  --gutter: 1.5rem;
  --max-w: 70rem;
  --max-w-narrow: 44rem;
}

* { box-sizing: border-box; scroll-margin-top: 5.5rem; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-soft);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); color: var(--fg); line-height: 1.12; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.12rem; font-weight: 600; font-family: var(--body); }

p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 30;
  background: var(--accent); color: var(--accent-fg); padding: 0.65rem 1.1rem;
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0.75rem; color: var(--accent-fg); }

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--max-w-narrow); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5ch;
  padding: 0.85rem 1.5rem; font: inherit; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-deep); color: var(--accent-fg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-pill { border-radius: 999px; padding: 0.6rem 1.15rem; font-size: 0.94rem; }

/* ---------- chrome ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }

.brand {
  font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  letter-spacing: -0.01em; text-decoration: none; color: var(--fg);
  display: inline-flex; align-items: baseline; gap: 0.45ch; margin-right: auto;
}
.brand .brand-sub {
  font-family: var(--body); font-weight: 500; letter-spacing: 0.16em;
  font-size: 0.66rem; text-transform: uppercase; color: var(--muted);
}

.topbar nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.topbar nav a {
  text-decoration: none; color: var(--fg-soft); font-size: 0.95rem; font-weight: 500;
  padding-bottom: 0.15rem; border-bottom: 2px solid transparent;
}
.topbar nav a:hover { color: var(--fg); border-bottom-color: var(--accent); }
.topbar nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }

@media (max-width: 880px) {
  .topbar nav { order: 3; width: 100%; border-top: 1px solid var(--line); }
  .topbar-inner { flex-wrap: wrap; padding-top: 0.75rem; padding-bottom: 0.25rem; }
  .topbar nav ul { gap: 1rem; padding: 0.6rem 0; flex-wrap: wrap; row-gap: 0.35rem; }
  .pill-num { display: none; }
}

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); background: var(--bg-3); margin-top: var(--section-y); }
.footer-grid {
  display: grid; gap: 2rem; padding: 3rem var(--gutter) 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.footer-brand { font-family: var(--display); font-weight: 600; color: var(--fg); margin-bottom: 0.5rem; }
.footer-heading {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); margin-bottom: 0.5rem;
}
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
footer p, footer li { font-size: 0.94rem; }
.footer-fine {
  border-top: 1px solid var(--line); padding: 1.25rem var(--gutter) 2rem;
}
.footer-fine p { color: var(--muted); font-size: 0.82rem; margin: 0 0 0.4em; }

/* ---------- ownership notice (native dialog: no-JS fails OPEN) ---------- */

dialog.notice {
  max-width: 40rem; width: calc(100% - 2rem);
  background: var(--card); color: var(--fg-soft);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 0; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
dialog.notice::backdrop { background: rgba(5, 12, 20, 0.82); backdrop-filter: blur(3px); }
.notice-body { padding: 1.75rem; max-height: 70vh; overflow-y: auto; }
.notice-body h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.notice-body ul { margin: 0 0 1em; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.notice-body li, .notice-body p { font-size: 0.9rem; line-height: 1.6; }
.notice-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  padding: 1rem 1.75rem 1.5rem; border-top: 1px solid var(--line);
}

/* ---------- sections ---------- */

section { padding: var(--section-y) 0; }
.section-band { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--muted); margin: 0 0 1rem;
  display: flex; align-items: center; gap: 0.75ch; flex-wrap: wrap;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--accent); flex: none; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: var(--fg-soft); max-width: 44rem; }

/* ---------- hero ----------
   Photo-free. The background is an abstract band gradient reading weathered
   cedar → clean white, a nod to the half-cleaned surface this trade is known
   for. Deliberately soft and obviously graphic: it must never read as a
   photographic before/after claim. */

.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 6.5rem) 0 var(--section-y); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(103deg,
      rgba(185, 168, 136, 0.20) 0%,
      rgba(185, 168, 136, 0.09) 27%,
      rgba(74, 163, 223, 0.10) 48%,
      rgba(13, 27, 42, 0) 68%),
    radial-gradient(85% 75% at 80% 6%, rgba(74, 163, 223, 0.18) 0%, rgba(74, 163, 223, 0) 60%),
    linear-gradient(170deg, #12243a 0%, var(--bg) 60%);
}
.hero::after {
  /* thin water-line rule sweeping the transition */
  content: ""; position: absolute; z-index: 0;
  top: -20%; left: 44%; width: 1px; height: 140%;
  transform: rotate(13deg);
  background: linear-gradient(180deg, rgba(124,192,236,0) 0%, rgba(124,192,236,0.38) 45%, rgba(124,192,236,0) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 17ch; margin-bottom: 0.4em; }
.hero-lede { font-size: clamp(1.08rem, 1.9vw, 1.28rem); color: var(--fg-soft); max-width: 40ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }

.proof { display: flex; align-items: center; gap: 0.7ch; flex-wrap: wrap; font-size: 0.95rem; color: var(--fg-soft); }
.proof .stars { color: var(--cedar); letter-spacing: 0.1em; font-size: 1.02rem; }
.proof .score { font-weight: 700; color: var(--fg); }

.trust-row {
  display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.25rem;
  font-size: 0.9rem; color: var(--muted);
}
.trust-row span { display: inline-flex; align-items: center; gap: 0.5ch; }
.trust-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- cards ---------- */

.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  position: relative; overflow: hidden;
}
.section-band .card { border-color: var(--line); }
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(14,100,168,0.15) 70%, transparent 100%);
}
.card h3 { margin: 0; color: var(--fg); }
.card p { color: var(--fg-soft); margin: 0; font-size: 0.96rem; }
.card ul { margin: 0.2rem 0 0; padding-left: 1.15rem; color: var(--fg-soft); display: grid; gap: 0.3rem; font-size: 0.94rem; }
.card-link { margin-top: auto; padding-top: 0.9rem; font-weight: 600; font-size: 0.94rem; }
.card-num {
  font-family: var(--display); font-size: 2rem; font-weight: 600;
  color: var(--cedar); opacity: 0.5; line-height: 1; margin-bottom: 0.1rem;
}

/* ---------- service list ---------- */

.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.svc-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); color: var(--fg-soft); }
.svc-note { color: var(--muted); font-size: 0.9rem; margin-top: 0.9rem; }

/* ---------- forms ---------- */

.form-grid { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg-3); color: var(--fg); font: inherit;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.8rem 0.9rem; width: 100%;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field-hint { font-size: 0.84rem; color: var(--muted); }
.form-status { padding: 0.85rem 1rem; border-radius: var(--radius); font-size: 0.94rem; border: 1px solid var(--line-strong); }
.form-status--ok { border-color: var(--accent); color: var(--fg); }
.form-status--warn { border-color: var(--line-strong); color: var(--fg-soft); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--bg-3); border-block: 1px solid var(--line); text-align: center; }
.cta-band h2 { color: var(--fg); }
.cta-band .lede { margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }
.cta-band .btn-ghost { color: var(--fg); border-color: var(--line-strong); }
.cta-band .btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- misc ---------- */

.split { display: grid; gap: clamp(2rem, 4vw, 3.25rem); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.contact-value { font-size: 1.05rem; color: var(--fg); }

/* The diagonal water-line is a desktop-only flourish: at narrow widths it
   crosses the headline and reads as a rendering artifact, not a graphic. */
@media (max-width: 880px) {
  .hero::after { display: none; }
}

/* Fade the hero wash out at the bottom so the section boundary doesn't show
   as a hard rectangle edge against the next band. */
.hero::before {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0,0,0,0.35) 92%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0,0,0,0.35) 92%, rgba(0,0,0,0) 100%);
}
