/* ==========================================================================
   Wash Works Inc. - design system

   Every navy in here is derived from #003274, measured from the supplied logo
   artwork rather than eyedropped. Contrast ratios in the comments are computed,
   not estimated. Target is WCAG 2.1 AA (discovery item L-3).
   ========================================================================== */

:root {
  /* --- brand ramp ------------------------------------------------------- */
  --navy-200: #8CA3C0;   /*  2.59:1 on white - dividers and disabled only     */
  --navy-400: #4C709E;   /*  5.10:1 on white - secondary text, icons          */
  --navy-600: #003274;   /* 12.29:1 on white - THE brand colour               */
  --navy-700: #002657;   /* 14.84:1 white on - hover, footer                  */
  --navy-800: #001C40;   /* 16.93:1 white on - Motor Control Centers ground   */

  /* --- accent ----------------------------------------------------------- */
  /* A-4 is still open with the client. Amber clears 6.08:1 on navy and reads
     industrial rather than decorative. Cyan #3FC1E0 (5.80:1) is the alternate -
     changing these two lines swaps the whole site over. */
  --accent: #F2A81D;
  --accent-hover: #FFC24D;
  --on-accent: #241701;  /* 10.4:1 on the amber - dark ink, not white         */

  /* --- neutrals, biased toward the brand hue ---------------------------- */
  --paper: #FFFFFF;
  --surface: #F4F6FA;
  --surface-2: #E8EDF5;
  --rule: #D3DAE6;
  --ink: #0F1520;
  --ink-2: #3D4759;
  --ink-3: #626D82;

  --danger: #A4231C;
  --success: #15624A;

  /* --- type ------------------------------------------------------------- */
  --display: "Bodoni Moda", Didot, "Times New Roman", serif;
  --body: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 4rem;

  /* --- space ------------------------------------------------------------ */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;

  --measure: 68ch;
  --container: 72rem;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(15, 21, 32, .06), 0 12px 32px -20px rgba(15, 21, 32, .25);
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--navy-600);
}

/* ==========================================================================
   reset
   ========================================================================== */

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

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ==========================================================================
   typography
   ========================================================================== */

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--text-3xl)); }
h3 { font-size: var(--text-xl); font-family: var(--body); font-weight: 600; letter-spacing: 0; }

p { max-width: var(--measure); }
a { color: var(--navy-600); text-underline-offset: 0.15em; }
a:hover { color: var(--navy-700); }

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-400);
  margin-bottom: var(--s-3);
}
.lede { font-size: var(--text-lg); color: var(--ink-2); max-width: 60ch; }

:is(a, button, input, textarea, select, summary):focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius);
}

.skip-link {
  position: absolute; left: var(--s-4); top: -4rem; z-index: 100;
  background: var(--navy-600); color: var(--paper);
  padding: var(--s-3) var(--s-4); border-radius: var(--radius);
  transition: top .15s ease;
}
.skip-link:focus { top: var(--s-4); color: var(--paper); }

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

/* ==========================================================================
   layout
   ========================================================================== */

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--s-24); }
.section--tight { padding-block: var(--s-16); }
.stack > * + * { margin-top: var(--s-4); }
.section-head { margin-bottom: var(--s-12); }

.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

/* ==========================================================================
   header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6); min-height: 4.5rem;
}
.site-logo { display: flex; align-items: center; flex: none; }
.site-logo img { height: 4rem; width: auto; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--s-2) var(--s-3);
  cursor: pointer; align-items: center; gap: var(--s-2);
  font-size: var(--text-sm); font-weight: 600;
}

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav__list { display: flex; align-items: center; gap: var(--s-4); }
.nav__link {
  display: block; padding: var(--s-2) 0;
  font-size: var(--text-sm); font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--navy-600); }
.nav__link[aria-current="page"] { color: var(--navy-600); border-bottom-color: var(--navy-600); }

@media (max-width: 60rem) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: var(--s-4) 1.25rem var(--s-6);
    box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
  .nav__link[aria-current="page"] { border-bottom-color: var(--navy-600); }
  .nav .btn { margin-top: var(--s-4); justify-content: center; }
}

/* ==========================================================================
   buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  min-height: 2.75rem;                  /* 44px touch target - L-3 */
  padding: var(--s-3) var(--s-6);
  border: 2px solid transparent; border-radius: var(--radius);
  font-size: var(--text-sm); font-weight: 700;
  letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }

.btn--solid { background: var(--navy-600); color: var(--paper); }
.btn--solid:hover { background: var(--navy-700); color: var(--paper); }

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

.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: var(--paper); background: transparent; }
.btn--ghost-light:hover { background: var(--paper); color: var(--navy-600); border-color: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ==========================================================================
   hero
   ========================================================================== */

.hero {
  background: var(--navy-600);
  color: var(--paper);
  padding-block: var(--s-24);
}
.hero h1 { color: var(--paper); max-width: 18ch; }
.hero .eyebrow { color: rgba(255, 255, 255, .72); }
.hero__lede { font-size: var(--text-lg); color: rgba(255, 255, 255, .88); max-width: 52ch; margin-top: var(--s-6); }
.hero .btn-row { margin-top: var(--s-8); }

.hero__phone {
  display: inline-flex; align-items: baseline; gap: var(--s-3);
  margin-top: var(--s-8); padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, .2);
  color: var(--paper); text-decoration: none;
}
.hero__phone .label {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255, 255, 255, .7);
}
.hero__phone .number { font-family: var(--display); font-size: var(--text-2xl); font-weight: 600; }
.hero__phone:hover .number { color: var(--accent); }

/* ==========================================================================
   trust bar - credentials strip
   ========================================================================== */

.trust-bar {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.trust-bar__list {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: var(--s-3) var(--s-8);
  width: min(100% - 2.5rem, var(--container)); margin-inline: auto;
  padding-block: var(--s-4);
  list-style: none;
}
.trust-bar__list li {
  position: relative;
  font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--navy-600);
  font-variant-numeric: tabular-nums;
}
.trust-bar__list li + li::before {
  content: ""; position: absolute; left: calc(var(--s-8) / -2);
  top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

/* ==========================================================================
   cards
   ========================================================================== */

.card {
  display: flex; flex-direction: column; gap: var(--s-2);
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--s-6);
  box-shadow: var(--shadow); height: 100%;
}
.card h3 { font-size: var(--text-lg); }
.card p { font-size: var(--text-sm); color: var(--ink-2); }
.card__link { margin-top: auto; padding-top: var(--s-4); font-size: var(--text-sm); font-weight: 600; }

a.card { text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--navy-400); transform: translateY(-2px); }

.list-plain { display: grid; gap: var(--s-3); }
.list-plain li {
  display: flex; gap: var(--s-3); align-items: baseline;
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule);
  font-size: var(--text-sm);
}
.list-plain li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--navy-400); }
.list-plain strong { font-weight: 600; }

/* --- surface bands ------------------------------------------------------ */
.band-surface { background: var(--surface); }
.band-navy { background: var(--navy-600); color: var(--paper); }
.band-navy h2, .band-navy h3 { color: var(--paper); }
.band-navy p { color: rgba(255, 255, 255, .85); }
.band-navy .eyebrow { color: rgba(255, 255, 255, .72); }

/* ==========================================================================
   Motor Control Centers - the sub-brand gets its own visual world
   ========================================================================== */

.mcc {
  background: var(--navy-800);
  color: var(--paper);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4.5rem);
}
.mcc h1, .mcc h2, .mcc h3 { color: var(--paper); }
.mcc p { color: rgba(255, 255, 255, .82); }
.mcc .eyebrow { color: var(--accent); }
.mcc__lockup { max-width: 22rem; margin-bottom: var(--s-8); }

.spec-grid { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.spec-grid > div {
  display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: var(--s-6);
  padding-block: var(--s-6);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.spec-grid h3 { font-size: var(--text-lg); }
.spec-grid p { font-size: var(--text-sm); margin: 0; }
@media (max-width: 48rem) {
  .spec-grid > div { grid-template-columns: 1fr; gap: var(--s-2); }
}

/* ==========================================================================
   forms
   ========================================================================== */

.form { display: grid; gap: var(--s-4); max-width: 34rem; }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field .hint { font-size: var(--text-xs); color: var(--ink-3); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 2.75rem;
  padding: var(--s-3); background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--navy-400); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--danger); }
.field__error { font-size: var(--text-xs); color: var(--danger); font-weight: 600; }

/* T-6: the honeypot must be reachable-free for real users AND hidden from
   assistive tech, so it is removed from the accessibility tree too. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: var(--s-4); border-radius: var(--radius); font-size: var(--text-sm); font-weight: 600; }
.form-status[data-state="success"] { background: #E2F1EB; color: var(--success); border: 1px solid currentColor; }
.form-status[data-state="error"] { background: #FBEAE8; color: var(--danger); border: 1px solid currentColor; }
.form-status[hidden] { display: none; }

/* ==========================================================================
   contact details
   ========================================================================== */

.contact-details { display: grid; gap: var(--s-6); }
.contact-details dt {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-3); font-weight: 700; margin-bottom: var(--s-1);
}
.contact-details dd { margin: 0; font-size: var(--text-base); }
.contact-details a { font-weight: 600; }

/* ==========================================================================
   pending-content marker

   Rendered only where a discovery item is still unanswered. It is deliberately
   loud: this must never survive to production unnoticed.
   ========================================================================== */

.pending {
  border-left: 3px solid var(--accent);
  background: #FFF8E8;
  color: #5B4300;
  padding: var(--s-4) var(--s-6);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  max-width: var(--measure);
}
.pending code {
  font-family: ui-monospace, "Cascadia Mono", Menlo, monospace;
  font-weight: 700; background: rgba(0, 0, 0, .06);
  padding: .1em .35em; border-radius: 3px;
}

/* ==========================================================================
   footer
   ========================================================================== */

.site-footer {
  background: var(--navy-700); color: rgba(255, 255, 255, .8);
  padding-block: var(--s-16) var(--s-8); font-size: var(--text-sm);
}
.site-footer h2 { font-size: var(--text-base); font-family: var(--body); color: var(--paper); margin-bottom: var(--s-4); }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__grid { display: grid; gap: var(--s-8); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.site-footer__logo { max-width: 11rem; margin-bottom: var(--s-4); }
.site-footer ul { display: grid; gap: var(--s-2); }
.site-footer__legal {
  margin-top: var(--s-12); padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6);
  justify-content: space-between; align-items: center;
  font-size: var(--text-xs); color: rgba(255, 255, 255, .65);
}

/* ==========================================================================
   error page
   ========================================================================== */

.error-page { padding-block: var(--s-24); text-align: center; }
.error-page__code { font-family: var(--display); font-size: var(--text-5xl); color: var(--navy-200); }
.error-page p { margin-inline: auto; }
.error-page .btn-row { justify-content: center; margin-top: var(--s-8); }
