/* ==========================================================================
   Lucid Window Cleaning
   Palette sampled from the logo. Do not substitute approximations.
   ========================================================================== */

:root {
  --navy:        #00164A;
  --navy-soft:   #0E2A63;
  --yellow:      #FDC01D;
  --yellow-deep: #E0A800;
  --glass:       #EDF2F8;
  --paper:       #FDFDFD;
  --ink:         #16203A;
  --ink-muted:   #566179;

  --rule: #D8E0EC;

  --measure: 34rem;
  --page: 71rem;

  --s-1: 0.875rem;
  --s0:  1.0625rem;
  --s1:  1.25rem;
  --s2:  1.5rem;
  --s3:  1.9rem;
  --s4:  2.4rem;
  --s5:  clamp(2.35rem, 5.2vw, 3.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--s0);
  line-height: 1.62;
}

h1, h2, h3, h4 {
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.14;
  letter-spacing: -0.018em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--s5); font-weight: 700; }
h2 { font-size: var(--s4); }
h3 { font-size: var(--s1); }
h4 { font-size: var(--s0); }

p { margin: 0 0 1.05em; max-width: var(--measure); }

a { color: var(--navy-soft); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; }

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

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.1rem;
  z-index: 100;
}
.skip:focus { left: 0; color: #fff; }

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

.btn {
  display: inline-block;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 600;
  font-size: var(--s0);
  line-height: 1.2;
  padding: 0.9em 1.6em;
  border-radius: 4px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

/* Navy on yellow: 10.5:1. White on yellow is never used. */
.btn-primary { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); color: var(--navy); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-onnavy { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.btn-onnavy:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); color: var(--navy); }

.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-sm { padding: 0.65em 1.15em; font-size: var(--s-1); }

/* ---------- header ----------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 1rem;
}

.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand { width: 240px; }

/* The supplied logo files carry a wide blank margin. These crop it away at
   display time — the image files themselves are untouched. Percentages are
   derived from the artwork bounds inside each canvas. */
.logo-crop { display: block; width: 100%; overflow: hidden; }
.logo-crop img { display: block; height: auto; }

.logo-crop-h { aspect-ratio: 1419 / 267; }
.logo-crop-h img { width: 117.83%; margin: -23.82% 0 0 -10.36%; }

.logo-crop-w { aspect-ratio: 1476 / 735; }
.logo-crop-w img { width: 113.28%; margin: -6.57% 0 0 -6.64%; }
.brand-text {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: var(--s1);
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav { display: flex; gap: 1.35rem; font-size: var(--s-1); }
.site-nav a { color: var(--ink-muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--navy); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }

.header-cta { display: none; }

@media (min-width: 60rem) {
  .brand img { width: 200px; }
  .header-cta { display: inline-block; }
}

@media (max-width: 59.99rem) {
  .brand { width: 196px; }
}

/* ---------- hero ------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  padding-block: clamp(2rem, 5vw, 3.75rem) clamp(2.25rem, 5vw, 3.75rem);
}

.hero-grid { display: grid; gap: 2rem; align-items: start; }

@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr 26.5rem; gap: 3.5rem; }
}

.hero h1 { max-width: 15ch; margin-bottom: 0.4em; }

.hero-sub {
  font-size: var(--s1);
  color: var(--ink-muted);
  max-width: 33ch;
  line-height: 1.45;
}

.hero-phone {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: var(--s1);
  color: var(--navy);
  text-decoration: none;
}
.hero-phone:hover { text-decoration: underline; }

.hero-phone-label { display: block; font-family: Inter, sans-serif; font-weight: 400; font-size: var(--s-1); color: var(--ink-muted); margin-top: 1.4rem; }

/* The one motion moment: a squeegee wipe across the hero, once. */
.hero::after {
  content: "";
  position: absolute;
  inset: -20% -40%;
  pointer-events: none;
  background: linear-gradient(
    102deg,
    rgba(253, 192, 29, 0) 42%,
    rgba(253, 192, 29, 0.42) 47%,
    rgba(253, 192, 29, 0.72) 50%,
    rgba(253, 192, 29, 0.42) 53%,
    rgba(253, 192, 29, 0) 58%
  );
  transform: translateX(-115%);
  animation: squeegee 1150ms 120ms cubic-bezier(0.4, 0, 0.2, 1) 1 both;
}

@keyframes squeegee {
  to { transform: translateX(115%); }
}

/* The signature device: the logo's diagonal stroke, full width. */
.squeegee-band {
  height: 30px;
  background: var(--yellow);
  clip-path: polygon(0 40%, 100% 0, 100% 60%, 0 100%);
}

.contact-grid { display: grid; gap: 2rem; align-items: start; }

@media (min-width: 60rem) {
  .contact-grid { grid-template-columns: 30rem 1fr; gap: 3.5rem; }
}

/* ---------- bands ------------------------------------------------------ */

.band { padding-block: clamp(2.5rem, 6vw, 4rem); }
.band-glass { background: var(--glass); }
.band-navy { background: var(--navy); color: #E4EAF5; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy a { color: #fff; }

.band-head { max-width: 44ch; margin-bottom: 1.9rem; }
.band-head p { color: var(--ink-muted); font-size: var(--s1); line-height: 1.45; margin-bottom: 0; }
.band-navy .band-head p { color: #C3CEE4; }

.page-head { padding-block: clamp(2.25rem, 5vw, 3.25rem) 0.75rem; }
.page-head p { font-size: var(--s1); color: var(--ink-muted); line-height: 1.45; }

/* ---------- trust row: no cards, a rule and a stroke ------------------- */

.trust { display: grid; gap: 1.5rem 2.25rem; }

@media (min-width: 40rem) { .trust { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .trust { grid-template-columns: repeat(4, 1fr); } }

.trust-item { border-top: 3px solid var(--navy); padding-top: 0.85rem; }
.trust-item:first-child { border-top-color: var(--yellow); }
.trust-item h3 { margin-bottom: 0.3rem; font-size: var(--s0); }
.trust-item p { margin-bottom: 0; color: var(--ink-muted); font-size: var(--s-1); max-width: none; }

/* ---------- services list --------------------------------------------- */

.svc-list { display: grid; gap: 0; }

.svc-row {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.35rem 1.15rem;
  align-items: start;
  padding-block: 1.35rem;
  border-top: 1px solid var(--rule);
}
.svc-row:last-child { border-bottom: 1px solid var(--rule); }
.svc-row svg { width: 2.1rem; height: 2.1rem; grid-row: span 2; color: var(--navy); }
.svc-row h3 { margin: 0; align-self: center; }
.svc-row p { margin: 0; color: var(--ink-muted); max-width: 48ch; grid-column: 2; }

@media (min-width: 52rem) {
  .svc-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .svc-row:nth-child(2) { border-top: 1px solid var(--rule); }
}

/* ---------- how it works: a real sequence, so numbered ---------------- */

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 0 1.4rem 3.25rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  max-width: 46ch;
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: var(--s-1);
  line-height: 1;
}

.steps strong { display: block; color: var(--navy); font-family: Poppins, sans-serif; font-weight: 600; font-size: var(--s1); margin-bottom: 0.15rem; }

/* ---------- towns ------------------------------------------------------ */

.town-group + .town-group { margin-top: 1.75rem; }
.town-group h3 { font-size: var(--s0); margin-bottom: 0.6rem; }

.towns {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
  font-size: var(--s-1);
  color: var(--ink-muted);
  max-width: 46rem;
}
.towns li { break-inside: avoid; padding-block: 0.16rem; }

@media (min-width: 44rem) { .towns { columns: 3; } }
@media (min-width: 64rem) { .towns { columns: 4; } }

.band-navy .towns { color: #C3CEE4; }

/* ---------- form ------------------------------------------------------- */

.quote-panel {
  background: var(--glass);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.5rem 1.35rem 1.6rem;
  box-shadow: 0 14px 34px -20px rgba(0, 22, 74, 0.5);
}

@media (min-width: 30rem) { .quote-panel { padding: 1.85rem 1.75rem 1.9rem; } }

.quote-panel h2 { font-size: var(--s2); margin-bottom: 0.25em; }
.quote-panel .panel-note { font-size: var(--s-1); color: var(--ink-muted); margin-bottom: 1.35rem; max-width: none; }

.field { margin-bottom: 1.05rem; }

.field > label,
.field-set > legend {
  display: block;
  font-size: var(--s-1);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
  padding: 0;
}

.field .opt { font-weight: 400; color: var(--ink-muted); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.68em 0.75em;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #B9C6DA;
  border-radius: 4px;
}

.field textarea { min-height: 5.5rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--navy-soft); }

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: #B3261E; }

.field-set { border: 0; padding: 0; margin: 0 0 1.05rem; }

.checks { display: grid; gap: 0.4rem; }
@media (min-width: 26rem) { .checks { grid-template-columns: 1fr 1fr; } }

.check { display: flex; align-items: center; gap: 0.5rem; font-size: var(--s-1); }
.check input { width: 1.05rem; height: 1.05rem; accent-color: var(--navy); flex: none; }

.err { display: block; font-size: var(--s-1); color: #B3261E; margin-top: 0.28rem; font-weight: 500; }
.err:empty { display: none; }

.more { margin: 0 0 1.15rem; }
.more > summary {
  cursor: pointer;
  font-size: var(--s-1);
  font-weight: 600;
  color: var(--navy-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
  padding-block: 0.2rem;
}
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary { margin-bottom: 0.9rem; }

.form-submit { width: 100%; }

.form-status { margin: 0.9rem 0 0; font-size: var(--s-1); font-weight: 600; max-width: none; }
.form-status:empty { margin: 0; }
.form-status[data-state="error"] { color: #B3261E; }

.form-done { padding: 0.5rem 0; }
.form-done h3 { margin-bottom: 0.4rem; }
.form-done p { margin-bottom: 0; color: var(--ink-muted); max-width: none; }

.hidden { display: none !important; }

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

.site-footer { background: var(--navy); color: #C3CEE4; padding-block: 2.75rem 2rem; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: var(--s0); margin-bottom: 0.55rem; }
.site-footer p { max-width: none; margin-bottom: 0.3rem; font-size: var(--s-1); }

.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; } }

.footer-brand .logo-crop { width: 215px; margin-bottom: 1rem; }
.footer-brand .brand-text { color: #fff; font-size: var(--s2); display: block; margin-bottom: 0.6rem; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.3rem; font-size: var(--s-1); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  font-size: var(--s-1);
  color: #93A3C2;
}
.footer-bottom p { margin-bottom: 0.2rem; }

/* ---------- sticky mobile bar ------------------------------------------ */

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(253, 253, 253, 0.97);
  border-top: 1px solid var(--rule);
}
.mobile-bar .btn { flex: 1; }
.mobile-bar .btn-outline { background: #fff; }

@media (min-width: 60rem) { .mobile-bar { display: none; } }
@media (max-width: 59.99rem) { body { padding-bottom: 4.75rem; } }

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

.lede { font-size: var(--s1); line-height: 1.45; }
.prose p { max-width: var(--measure); }
.prose h2 { margin-top: 1.9rem; font-size: var(--s3); }
.prose h2:first-child { margin-top: 0; }

.cta-inline { display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem; align-items: center; margin-top: 1.5rem; }
.cta-inline .tel { font-family: Poppins, sans-serif; font-weight: 600; color: var(--navy); text-decoration: none; }
.band-navy .cta-inline .tel { color: #fff; }
.cta-inline .tel:hover { text-decoration: underline; }

.center-narrow { max-width: 42rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::after { animation: none; opacity: 0; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
