/* ==========================================================
   Washes page
   ========================================================== */

/* ---------- Package sections ---------- */
.wpkgs {
  display: grid;
  gap: 28px;
  margin-top: 26px;
}

.wpkg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  scroll-margin-top: 140px;
}

.wpkg__photo {
  margin: 0;
}

.wpkg__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border-bottom: 5px solid var(--lane);
}

.wpkg h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 114%;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1;
  color: var(--navy);
}

.wpkg__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 14px;
}

.wpkg__prices b {
  font-size: 1.5rem;
  color: var(--red);
}

.wpkg__lead {
  margin: 0 0 8px;
  font-weight: 700;
}

.wpkg__list {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.wpkg__list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpkg__list .check-ico {
  margin: 0;
}

.wpkg__good {
  margin: 0 0 18px;
  padding: 10px 14px;
  background: var(--ice);
  border-left: 4px solid var(--lane);
}

.wpkg__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Layout 2 cards */
.wpkgs--cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wpkg--card {
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* ---------- Add-ons ---------- */
.waddons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.waddons li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
}

.waddons b {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--lane);
  font-size: 1.15rem;
}

/* ---------- Process ---------- */
.wproc {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.wproc li {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 16px;
  padding-bottom: 20px;
}

.wproc li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: 4px;
  width: 3px;
  background: repeating-linear-gradient(180deg, var(--lane) 0 8px, transparent 8px 14px);
}

.wproc__n {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.wproc h3 {
  margin: 6px 0 4px;
  font-size: 1.1rem;
  color: var(--navy);
}

.wproc p {
  margin: 0;
}

.wproc--row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.wproc--row li {
  grid-template-columns: 1fr;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wproc--row li::after {
  display: none;
}

.wproc--row .wproc__n {
  grid-row: auto;
}

/* ---------- Before / after slider ---------- */
.ba {
  position: relative;
  max-width: 900px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  --pos: 50%;
}

.ba__img {
  position: absolute;
  inset: 0;
  margin: 0;
}

.ba__img picture {
  display: block;
  width: 100%;
  height: 100%;
}

.ba__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba__img--before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba__tag {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--white);
  font-weight: 700;
  pointer-events: none;
}

.ba__tag--before {
  left: 12px;
  background: var(--red);
}

.ba__tag--after {
  right: 12px;
  background: #15803D;
}

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 4px;
  margin-left: -2px;
  background: var(--lane);
  pointer-events: none;
}

.ba__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--lane) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6' fill='none' stroke='%230A2A66' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat;
}

.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba__range:focus-visible + * {
  outline: 3px solid var(--lane);
}

.ba:focus-within {
  outline: 3px solid var(--lane);
  outline-offset: 3px;
}

/* ---------- Picker table ---------- */
.wpick tbody th {
  font-weight: 600;
}

.wpick td:last-child {
  color: var(--red);
}

.wpick a {
  font-weight: 700;
  color: var(--sky);
}

.wcta h2 {
  margin-top: 0;
}

.wcta p {
  max-width: 60ch;
}

/* ---------- Layout 2 ---------- */
.wtiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.wtile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  border-bottom: 5px solid var(--lane);
  text-decoration: none;
  transition: transform .15s var(--ease);
}

.wtile:hover {
  transform: translateY(-3px);
}

.wtile__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 112%;
  font-size: 1.3rem;
}

.wtile__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--lane);
}

.wtile__go {
  margin-top: 8px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.w2split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 44px;
}

.w2split .waddons {
  grid-template-columns: 1fr;
}

.w2pick {
  margin-top: 34px !important;
}

.w2split > * {
  min-width: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .wproc--row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wtiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .wpkg,
  .w2split,
  .wpkgs--cards {
    grid-template-columns: 1fr;
  }

  .waddons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wproc--row {
    grid-template-columns: 1fr;
  }

  .wtiles {
    grid-template-columns: 1fr 1fr;
  }
}

/* Small phones */
.wpkgs--cards > *,
.wtiles > * {
  min-width: 0;
}

@media (max-width: 400px) {
  .wtiles {
    grid-template-columns: 1fr;
  }

  .wpkg__btns .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}
