/* Walsh Sites — one stylesheet for the whole site.
   Palette taken from the job: window glass, navy van livery, bucket yellow, squeegee rubber. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo.woff2") format("woff2-variations"), url("/fonts/archivo.woff2") format("woff2");
}

:root {
  --glass: #eaf2f5;
  --pane: #ffffff;
  --ink: #13293d;
  --ink-soft: #3d5468;
  --sky: #9cc9e3;
  --bucket: #f4c21f;
  --rubber: #222428;
  --line: #c9d9e1;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(2.3rem, 6.5vw, 4.4rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--glass);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--bucket); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* Only horizontal spacing here, so sections keep their own vertical padding */
.wrap { max-width: 68rem; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Top bar */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.brand {
  font-weight: 800; font-size: 1.35rem; text-decoration: none; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 75;
}
.brand span { display: inline-block; width: .55em; height: .55em; margin-right: .35em; border: 3px solid var(--ink); border-radius: 2px; position: relative; top: .02em; box-shadow: inset 0 0 0 2px var(--pane); background: var(--sky); }
.top-mail { font-weight: 600; font-size: var(--step--1); }

/* Hero: a window pane that gets squeegeed clean on load */
.pane {
  position: relative; overflow: hidden;
  background: var(--pane);
  border: 10px solid var(--ink);
  border-radius: 4px;
  padding: clamp(1.75rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem) clamp(2rem, 5vw, 3.5rem);
  margin-top: .5rem;
}
.pane::before { /* a soft reflection, the way real glass catches the sky */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 58%, rgba(156, 201, 227, .28) 58% 66%, transparent 66% 70%, rgba(156, 201, 227, .18) 70% 73%, transparent 73%);
}
.pane h1 {
  position: relative;
  margin: 0 0 1.25rem; max-width: 15ch;
  font-size: var(--step-3); line-height: 1.02; letter-spacing: -0.02em;
  font-weight: 800; font-variation-settings: "wdth" 70;
}
.pane .lede { position: relative; margin: 0; max-width: 34rem; font-size: var(--step-1); color: var(--ink-soft); }

.grime, .blade { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .grime {
    display: block; position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background:
      radial-gradient(ellipse 30% 22% at 22% 30%, rgba(120, 110, 90, .22), transparent 70%),
      radial-gradient(ellipse 25% 30% at 70% 65%, rgba(120, 110, 90, .2), transparent 70%),
      radial-gradient(ellipse 40% 18% at 50% 90%, rgba(120, 110, 90, .18), transparent 70%),
      rgba(214, 218, 210, .72);
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
    animation: wipe 1.15s cubic-bezier(.55, .05, .35, 1) .45s both;
  }
  .blade {
    display: block; position: absolute; top: -6px; bottom: -6px; left: 0; width: 14px; z-index: 3;
    background: var(--rubber); border-radius: 3px;
    box-shadow: 6px 0 0 -2px var(--bucket);
    animation: blade 1.15s cubic-bezier(.55, .05, .35, 1) .45s both;
  }
}
@keyframes wipe { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes blade { from { left: -14px; } to { left: 100%; } }

/* The offer line under the window */
.sill {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: 1.5rem 0 0;
}
.sill p { margin: 0; font-size: var(--step-2); font-weight: 700; line-height: 1.2; font-variation-settings: "wdth" 85; }
.button {
  display: inline-block; padding: .85rem 1.3rem; border-radius: 4px;
  background: var(--bucket); color: var(--ink); font-weight: 700; text-decoration: none;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
.button:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--ink); }
.button:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }

/* Sections */
section { padding: clamp(3rem, 7vw, 5rem) 0 0; }
h2 {
  margin: 0 0 1.25rem; font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.01em;
  font-weight: 800; font-variation-settings: "wdth" 75;
}
.split { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1.6fr; } }
.split > p { margin: 0; max-width: 24rem; color: var(--ink-soft); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem 2.5rem; }
@media (min-width: 40rem) { .ticks { grid-template-columns: 1fr 1fr; } }
.ticks li { padding: .7rem 0 .7rem 2rem; border-top: 1px solid var(--line); position: relative; }
.ticks li::before { /* a squeegee stroke rather than a generic tick */
  content: ""; position: absolute; left: 0; top: 1.25rem; width: 1.1rem; height: 4px; background: var(--ink); border-radius: 2px;
}

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { counter-increment: step; border-top: 4px solid var(--ink); padding-top: .9rem; }
.steps li::before {
  content: counter(step); display: block; font-size: var(--step-2); font-weight: 800; line-height: 1;
  margin-bottom: .5rem; font-variation-settings: "wdth" 70;
}
.steps strong { display: block; margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Price: one docket, everything listed, nothing hidden */
.docket {
  background: var(--pane); border: 2px solid var(--ink); border-radius: 4px;
  padding: 1.5rem clamp(1.25rem, 4vw, 2rem); max-width: 40rem;
}
.docket table { width: 100%; border-collapse: collapse; }
.docket th, .docket td { text-align: left; padding: .75rem 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.docket th { font-weight: 600; padding-right: 1rem; }
.docket td { text-align: right; white-space: nowrap; font-weight: 700; }
.docket tr:last-child th, .docket tr:last-child td { border-bottom: 0; }
.docket .big td { font-size: var(--step-2); font-variation-settings: "wdth" 75; }
.docket small { display: block; font-weight: 400; color: var(--ink-soft); font-size: var(--step--1); }
.docket .note { margin: 1rem 0 0; color: var(--ink-soft); font-size: var(--step--1); }

/* Questions */
.faq { max-width: var(--measure); }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 700; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .25rem; top: .8rem; font-size: 1.4rem; font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 1.1rem; color: var(--ink-soft); }

.about { max-width: var(--measure); }
.about p { margin: 0 0 1rem; }

.contact { padding-bottom: clamp(3rem, 7vw, 5rem); }
.contact p { max-width: var(--measure); }

/* Footer: the legal details, plainly */
footer { background: var(--ink); color: #dbe7ee; font-size: var(--step--1); }
footer .wrap { padding-top: 2rem; padding-bottom: 2.5rem; display: grid; gap: 1rem; }
@media (min-width: 52rem) { footer .wrap { grid-template-columns: 2fr 1fr; } }
footer p { margin: 0 0 .35rem; }
footer a { color: #fff; }

/* Long-form pages (privacy) */
.doc { max-width: var(--measure); padding-top: 1rem; padding-bottom: 4rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; font-weight: 800; font-variation-settings: "wdth" 70; margin: 1rem 0 .5rem; }
.doc h2 { margin-top: 2.25rem; font-size: var(--step-1); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .4rem; }
.doc .updated { color: var(--ink-soft); }
.doc .callout { background: var(--pane); border-left: 6px solid var(--bucket); padding: 1rem 1.25rem; margin: 1.5rem 0; }
