/* Super Cool Dude Carwash. Tokens live in index.html. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.eyebrow {
  margin: 0;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}
.hand-note {
  margin: 0;
  width: fit-content;
  font-family: var(--font-hand);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.2;
  color: var(--ink);
  transform: rotate(-2deg);
  transform-origin: left center;
}
h2 {
  margin: 0;
  font-family: var(--font-sign);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: .005em;
}
.section-sub { margin: 0; max-width: 38rem; color: var(--muted); font-size: 1.1rem; }

/* Buttons: marker outline with an offset shadow, like a sticker on the poster */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-edge: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.3rem;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2.5px solid var(--btn-edge);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--btn-edge);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--btn-edge); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--btn-edge); }
.btn-yellow { --btn-bg: var(--yellow); --btn-fg: var(--yellow-ink); }
.btn-ghost { --btn-bg: var(--surface); }
.btn-ghost-night { --btn-bg: transparent; --btn-fg: var(--night-ink); --btn-edge: var(--night-ink); box-shadow: none; }
.btn-ghost-night:hover, .btn-ghost-night:active { box-shadow: none; }
.btn-sm { padding: .5rem .95rem; font-size: .92rem; box-shadow: 2px 2px 0 var(--btn-edge); }

/* Top bar */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; }
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-sign);
  font-weight: 900;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}
.shades { width: 46px; height: auto; flex: none; }
.shades-lens { fill: var(--ink); }
.shades-frame { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.shades-glint { fill: none; stroke: var(--bg); stroke-width: 2.5; stroke-linecap: round; opacity: .8; }
.topnav { margin-left: auto; display: flex; gap: 1.4rem; }
.topnav a { color: var(--muted); font-weight: 700; text-decoration: none; }
.topnav a:hover { color: var(--ink); }
@media (max-width: 719px) {
  .topnav { display: none; }
  .topbar .btn { margin-left: auto; }
  .brand { font-size: 1.2rem; }
  .shades { width: 38px; }
}

/* Hero: the kids' poster */
.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }
.poster { margin: 0; display: grid; gap: .1rem; justify-items: start; min-width: 0; }
.poster-paper {
  position: relative;
  display: block;
  max-width: 100%;
  padding: clamp(6px, 1.2vw, 12px);
  background: var(--paper);
  border-radius: 3px;
  transform: rotate(-2deg);
  box-shadow: 0 1px 2px rgb(var(--shadow) / .12), 0 22px 44px -22px rgb(var(--shadow) / .55);
}
.poster-paper::before, .poster-paper::after {
  content: "";
  position: absolute;
  top: -14px;
  width: clamp(70px, 14vw, 120px);
  height: 30px;
  background: var(--tape);
  box-shadow: 0 1px 2px rgb(var(--shadow) / .15);
}
.poster-paper::before { left: 9%; transform: rotate(-7deg); }
.poster-paper::after { right: 9%; transform: rotate(6deg); }
.poster-paper img { width: 100%; }
.poster-note {
  position: absolute;
  right: 8%;
  top: 12%;
  font-family: var(--font-hand);
  font-size: clamp(1rem, 3.2vw, 2rem);
  line-height: 1;
  color: var(--paper-red);
  transform: rotate(-8deg);
}
.poster-word {
  display: block;
  padding-left: .12em;
  font-family: var(--font-sign);
  font-weight: 300;
  font-size: clamp(3.6rem, 12vw, 7.6rem);
  line-height: .95;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
}
.hero-copy { display: grid; gap: 1.2rem; min-width: 0; }
.hero-big {
  margin: 0;
  font-family: var(--font-sign);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.06;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-big mark {
  padding: 0 .08em;
  color: var(--yellow-ink);
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lede { margin: 0; max-width: 34rem; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.contact-mini { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: 0; }
.contact-mini div { display: flex; align-items: baseline; gap: .55rem; }
.contact-mini dt { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.contact-mini dd {
  margin: 0;
  font-family: var(--font-sign);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  -webkit-user-select: all;
  user-select: all;
}

/* Price ticker */
.ticker {
  position: relative;
  z-index: 1;
  margin-inline: -4vw;
  padding-block: .55rem;
  overflow: hidden;
  color: var(--yellow-ink);
  background: var(--yellow);
  border-block: 3px solid var(--ink);
  transform: rotate(-1.2deg);
}
.ticker-track { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  padding-right: 1.3rem;
  white-space: nowrap;
  font-family: var(--font-sign);
  font-weight: 900;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ticker span::after { content: "✦"; font-size: .75em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { display: grid; gap: .7rem; max-width: 42rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

/* Menu board */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.1rem, 2.5vw, 1.6rem);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .menu { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wash {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: .7rem;
  min-width: 0;
  padding: 1.2rem 1.2rem 1.35rem;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--tier);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wash:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--tier); }
.wash-tag {
  justify-self: start;
  margin: 0;
  padding: .1rem .6rem;
  font-family: var(--font-sign);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tier-ink);
  background: var(--tier);
  border: 2.5px solid var(--ink);
  border-radius: 6px;
}
.wash-price {
  margin: 0;
  font-family: var(--font-sign);
  font-weight: 900;
  font-size: clamp(3.8rem, 7vw, 4.8rem);
  line-height: .85;
  font-variant-numeric: tabular-nums;
}
.cur { font-size: .45em; font-weight: 800; vertical-align: .85em; margin-right: .03em; }
.wash-what { margin: 0; color: var(--muted); font-weight: 600; }
.wash-btn { width: 100%; }

.extras { display: grid; gap: .7rem; justify-items: start; margin-top: clamp(2rem, 4vw, 2.75rem); }
.extras .hand-note { margin-left: .3rem; }
.extra {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 34rem;
  padding: .9rem 1.25rem;
  background: var(--surface);
  border: 3px dashed var(--ink);
  border-radius: 14px;
}
.extra-icon { width: 36px; height: auto; flex: none; }
.phone-body { fill: var(--ink); }
.phone-screen { fill: var(--glass); }
.phone-shine { fill: none; stroke: var(--surface); stroke-width: 3; stroke-linecap: round; }
.phone-btn { fill: var(--surface); }
.extra-copy { flex: 1; min-width: 0; }
.extra-copy h3 { margin: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.extra-copy p { margin: .15rem 0 0; color: var(--muted); }
.extra-price { font-size: 3rem; }

/* Scrub test: a tiled wash bay */
.section-bay {
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 30px 30px;
  border-block: 1px solid var(--line);
}
.bay-grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .bay-grid { grid-template-columns: .85fr 1.15fr; } }
.bay-copy { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.bay-copy .section-sub { background: var(--surface); width: fit-content; }
.meter { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; max-width: 26rem; }
.meter-label { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.meter-track { height: 16px; overflow: hidden; background: var(--bg); border: 2.5px solid var(--ink); border-radius: 999px; }
.meter-fill { display: block; width: 0%; height: 100%; background: var(--green); transition: width .2s ease; }
.meter-value { min-width: 3.4ch; text-align: right; font-family: var(--font-sign); font-weight: 900; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.bay-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.bay-done { margin: 0; width: fit-content; font-family: var(--font-hand); font-size: 1.6rem; color: var(--green); transform: rotate(-2deg); }
.bay {
  margin: 0;
  min-width: 0;
  padding: clamp(.75rem, 2vw, 1.25rem);
  background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 7px 7px 0 var(--yellow);
}
.bay-stage { position: relative; width: 100%; max-width: 100%; aspect-ratio: 480 / 250; }
.car, .mud, .fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.car { overflow: visible; }
.mud {
  touch-action: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='32' viewBox='0 0 40 32'%3E%3Crect x='2' y='4' width='36' height='24' rx='7' fill='%23f5c814' stroke='%2317221b' stroke-width='2.5'/%3E%3Ccircle cx='12' cy='13' r='2.2' fill='%23c9a20c'/%3E%3Ccircle cx='24' cy='19' r='2.6' fill='%23c9a20c'/%3E%3Ccircle cx='30' cy='11' r='1.8' fill='%23c9a20c'/%3E%3C/svg%3E") 20 16, pointer;
  transition: opacity .7s ease;
}
.mud.is-clean { opacity: 0; }
.fx { pointer-events: none; }
.bay-tip {
  position: absolute;
  left: 4%;
  top: 2%;
  padding: .1rem .55rem;
  font-family: var(--font-hand);
  font-size: clamp(.95rem, 2.4vw, 1.3rem);
  color: var(--paper-ink);
  background: var(--paper);
  border: 2.5px solid var(--paper-ink);
  border-radius: 10px;
  transform: rotate(-6deg);
  pointer-events: none;
  animation: bob 1.6s ease-in-out infinite;
  transition: opacity .3s ease;
}
.bay-tip.is-gone { opacity: 0; animation: none; }
@keyframes bob { 50% { translate: 0 -5px; } }

.car-shadow { fill: rgb(var(--shadow) / .2); }
.car-paint { fill: var(--yellow); stroke: var(--paper-ink); stroke-width: 4; stroke-linejoin: round; }
.car-glass { fill: url(#hatch); stroke: var(--paper-ink); stroke-width: 3.5; stroke-linejoin: round; }
.hatch-bg { fill: var(--glass); }
.hatch-line { stroke: var(--paper-ink); stroke-opacity: .35; stroke-width: 1.6; }
.car-shine { fill: none; stroke: var(--paper); stroke-width: 6; stroke-linecap: round; opacity: .55; }
.car-line { fill: none; stroke: var(--paper-ink); stroke-width: 3; stroke-linecap: round; }
.car-handle { fill: none; stroke: var(--paper-ink); stroke-width: 5; stroke-linecap: round; }
.car-light { fill: var(--paper); stroke: var(--paper-ink); stroke-width: 3; }
.car-tail { fill: var(--paper-red); stroke: var(--paper-ink); stroke-width: 3; }
.car-bumper { fill: var(--glass); stroke: var(--paper-ink); stroke-width: 3; }
.car-arch, .car-tire { fill: var(--paper-ink); }
.car-hub { fill: var(--glass); stroke: var(--paper-ink); stroke-width: 3; }
.sparkles use { fill: var(--paper); stroke: var(--paper-ink); stroke-width: 2.5; stroke-linejoin: round; opacity: 0; }
.is-clean .sparkles use { animation: twinkle 1.8s ease-in-out infinite; }
.is-clean .sparkles use:nth-child(2) { animation-delay: .3s; }
.is-clean .sparkles use:nth-child(3) { animation-delay: .6s; }
.is-clean .sparkles use:nth-child(4) { animation-delay: .9s; }
.is-clean .sparkles use:nth-child(5) { animation-delay: 1.2s; }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

/* Booking: dark band */
.section-night { color: var(--night-ink); background: var(--night); }
.section-night .eyebrow { color: var(--yellow); }
.book-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 960px) { .book-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.book-intro { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.ways { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: 1rem; }
.ways li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .3rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--night-line);
}
.ways h3 { grid-column: 1 / -1; margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); }
.ways p { margin: 0; }
.way-num {
  font-family: var(--font-sign);
  font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  line-height: 1;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  -webkit-user-select: all;
  user-select: all;
}
.copy-chip {
  padding: .35rem .85rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--night-ink);
  background: transparent;
  border: 2px solid var(--night-line);
  border-radius: 999px;
  cursor: pointer;
}
.copy-chip:hover { border-color: var(--night-ink); }

.booker {
  display: grid;
  gap: 1.15rem;
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.75rem);
  background: var(--night-2);
  border: 2px solid var(--night-line);
  border-radius: 20px;
}
.booker-title { margin: 0; width: fit-content; font-family: var(--font-hand); font-size: 1.5rem; line-height: 1.2; color: var(--yellow); transform: rotate(-1.5deg); }
.field { display: grid; gap: .45rem; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field legend, .field > label {
  padding: 0;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--night-muted);
}
.field legend { margin-bottom: .45rem; }
.opts { display: grid; gap: .5rem; }
.opts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .opts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.opt { position: relative; display: block; min-width: 0; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span {
  display: grid;
  gap: .1rem;
  padding: .6rem .75rem;
  font-weight: 800;
  line-height: 1.2;
  border: 2px solid var(--night-line);
  border-radius: 12px;
  transition: border-color .15s ease, background-color .15s ease;
}
.opt em { font-style: normal; font-family: var(--font-sign); font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--night-muted); }
.opt:hover span { border-color: var(--night-muted); }
.opt input:checked + span { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 14%, transparent); }
.opt input:checked + span em { color: var(--yellow); }
.opt input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: .65rem; width: fit-content; font-weight: 700; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--yellow); }
.check em { font-style: normal; font-weight: 800; color: var(--yellow); }
.check.is-included { cursor: default; color: var(--night-muted); }
.row-2 { display: grid; gap: 1rem; }
@media (min-width: 560px) { .row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.booker input[type="text"] {
  width: 100%;
  padding: .75rem .9rem;
  font: inherit;
  font-weight: 600;
  color: var(--night-ink);
  background: var(--night);
  border: 2px solid var(--night-line);
  border-radius: 12px;
}
.booker input[type="text"]::placeholder { color: var(--night-muted); opacity: .8; }
.booker input[type="text"]:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.quick { display: flex; flex-wrap: wrap; gap: .4rem; }
.quick button {
  padding: .25rem .75rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--night-ink);
  background: transparent;
  border: 1.5px solid var(--night-line);
  border-radius: 999px;
  cursor: pointer;
}
.quick button:hover { border-color: var(--night-ink); }

.phone { display: grid; gap: .8rem; padding: 1rem; background: var(--night); border: 2px solid var(--night-line); border-radius: 18px; }
.phone-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding-bottom: .6rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--night-muted);
  border-bottom: 1px solid var(--night-line);
}
.phone-num { font-variant-numeric: tabular-nums; -webkit-user-select: all; user-select: all; }
.bubble {
  justify-self: end;
  max-width: 92%;
  margin: 0;
  padding: .7rem .95rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: var(--green-ink);
  background: var(--green);
  border-radius: 18px 18px 4px 18px;
}
.bubble .blank { opacity: .7; font-style: italic; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-weight: 700; color: var(--night-muted); }
.total strong { font-family: var(--font-sign); font-weight: 900; font-size: 2.1rem; line-height: 1; color: var(--night-ink); font-variant-numeric: tabular-nums; }
.book-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.section-night .btn-yellow { --btn-edge: var(--yellow); box-shadow: none; }
.book-note { margin: 0; font-size: .9rem; color: var(--night-muted); }
.book-note.is-ok { color: var(--yellow); font-weight: 700; }

/* Footer */
.footer { padding-block: 2.75rem 3.25rem; background: var(--bg); border-top: 3px solid var(--ink); }
.footer-grid { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: auto 1fr; align-items: end; } }
.footer-brand { margin: 0; font-family: var(--font-sign); font-weight: 900; font-size: clamp(2.1rem, 5vw, 3rem); line-height: .9; text-transform: uppercase; }
.footer-brand span { font-weight: 300; letter-spacing: .12em; color: var(--green); }
.footer-facts { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; margin: 0; }
@media (min-width: 820px) { .footer-facts { justify-content: flex-end; } }
.footer-facts dt { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.footer-facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.footer-small { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .is-clean .sparkles use { opacity: 1; }
}
