/* Muddy River Striping — standalone static site
   Most visual styling is inline in index.html (kept verbatim from the
   Claude Design source for pixel-fidelity). This file holds the global
   reset, the responsive breakpoint, the before/after slider styling,
   and accessibility helpers. */

* { box-sizing: border-box; }
body { margin: 0; }

/* Responsive layout switch -------------------------------------------- */
/* The design ships two explicit compositions sharing one data source.
   Its prototype toggled them with a JS width flag; per the handoff note
   we replace that with a pure CSS media query at 1024px. */
.desktop-view { display: none; }
.mobile-view  { display: flex; justify-content: center; }

@media (min-width: 1024px) {
  .mobile-view  { display: none; }
  .desktop-view { display: block; }
}

/* Make [hidden] win over inline display:flex/block (used to toggle the
   quote form vs. its success state). */
[hidden] { display: none !important; }

/* Before/after reveal slider ------------------------------------------ */
.rng { -webkit-appearance: none; appearance: none; background: transparent; }
.rng::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 44px; height: 100%; cursor: ew-resize; }
.rng::-moz-range-thumb { width: 44px; height: 100%; border: 0; background: transparent; cursor: ew-resize; }
.rng:focus-visible { outline: 2px solid #4f8c2a; outline-offset: 2px; }

/* Accessibility ------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visible keyboard focus for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #4f8c2a;
  outline-offset: 2px;
}

/* Invalid form fields */
input.invalid,
select.invalid { border-color: #c0392b !important; }
