/* Cash For Junk Cars Allen: storefront styles */
:root {
  --paper: #f7f2e8;
  --paper-deep: #efe6d4;
  --sheet: #fffdf8;
  --ink: #1c2b2a;
  --ink-soft: #4b5957;
  --pine: #12554f;
  --pine-deep: #0c3f3b;
  --marigold: #ffb51f;
  --marigold-deep: #e59a00;
  --marigold-wash: #fff1cc;
  --pencil: #8c8170;
  --rule: #d8cdb8;
  --field-edge: #6e7a77;
  --brick: #a8352a;
  --brick-wash: #fbebe7;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --text: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--pine-deep); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--marigold-deep); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- logo */
.brandmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); line-height: 1; }
.brandmark__mark { width: 46px; height: 46px; flex: none; }
.brandmark__words { display: flex; flex-direction: column; gap: 3px; }
.brandmark__top { font: 700 0.74rem/1 var(--display); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.brandmark__city {
  position: relative; align-self: flex-start;
  font: 800 1.78rem/0.92 var(--display); color: var(--pine); letter-spacing: -0.02em; padding-bottom: 5px;
}
.brandmark__city::after {
  content: ""; position: absolute; left: -2px; right: -6px; bottom: -1px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5C22 3.2 52 2.6 80 4.1c13 .7 25 1.9 37 3.4' fill='none' stroke='%23ffb51f' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.brandmark--small .brandmark__mark { width: 38px; height: 38px; }
.brandmark--small .brandmark__city { font-size: 1.45rem; }
.brandmark--light, .brandmark--light .brandmark__top { color: var(--paper); }
.brandmark--light .brandmark__city { color: var(--marigold); }

/* ---------------------------------------------------------------- header */
.topbar { background: var(--paper); border-bottom: 1.5px solid var(--rule); position: relative; z-index: 20; }
.topbar__in { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.topbar .brandmark { margin-right: auto; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.mainnav a {
  display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink); text-decoration: none;
  font: 600 0.98rem/1.2 var(--text); text-transform: capitalize;
}
.mainnav a:hover { background: var(--paper-deep); color: var(--ink); }
.mainnav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--marigold); border-radius: 0; }
.callpill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; min-width: 46px;
  padding: 0 16px; border: 2px solid var(--pine); border-radius: 999px; color: var(--pine);
  font: 700 1rem/1 var(--text); text-decoration: none; white-space: nowrap; background: transparent;
}
.callpill:hover { background: var(--pine); color: var(--paper); }
.callpill svg { width: 18px; height: 18px; flex: none; }
.menubtn {
  display: none; min-height: 46px; min-width: 46px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 8px;
  background: transparent; color: var(--ink); font: 700 0.95rem/1 var(--text); cursor: pointer;
}
@media (max-width: 1023px) {
  .topbar__in { min-height: 68px; gap: 10px; }
  .menubtn { display: inline-flex; align-items: center; gap: 6px; }
  .mainnav { position: absolute; left: 0; right: 0; top: 100%; background: var(--sheet); border-bottom: 2px solid var(--ink); display: none; }
  .mainnav.is-open { display: block; }
  .mainnav ul { flex-direction: column; padding: 8px 16px 16px; }
  .mainnav a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .mainnav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--marigold); padding-left: 14px; }
}
@media (max-width: 599px) {
  .callpill { padding: 0 12px; }
  .callpill__num { display: none; }
  .brandmark__mark { width: 40px; height: 40px; }
  .brandmark__top { font-size: 0.66rem; }
  .brandmark__city { font-size: 1.5rem; }
}
@media (min-width: 600px) { .callpill__word { display: none; } }

/* ---------------------------------------------------------------- buttons */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 26px;
  background: var(--marigold); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius);
  font: 800 1.16rem/1.1 var(--display); letter-spacing: 0; text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, background-color .12s;
}
.btn-cta:hover { background: #ffc040; color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-cta:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-cta:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; }
.btn-cta[disabled] { cursor: progress; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.btn-cta--block { display: flex; width: 100%; }
.btn-cta__arrow { width: 22px; height: 22px; flex: none; }
.btn-cta.is-busy::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(28,43,42,.25); border-top-color: var(--ink);
  animation: cs-spin .8s linear infinite;
}
.btn-cta.is-busy .btn-cta__arrow { display: none; }
@keyframes cs-spin { to { transform: rotate(360deg); } }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px;
  background: transparent; color: var(--pine); border: 2px solid var(--pine); border-radius: var(--radius);
  font: 700 1.05rem/1.1 var(--text); text-decoration: none; cursor: pointer;
}
.btn-line:hover { background: var(--pine); color: var(--paper); }
.btn-line svg { width: 18px; height: 18px; }
.linkish {
  background: none; border: 0; padding: 6px 2px; min-height: 44px; color: var(--pine); cursor: pointer;
  font: 600 1rem/1.3 var(--text); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.linkish:hover { color: var(--pine-deep); text-decoration-color: var(--marigold-deep); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(28,43,42,.09) 1px, transparent 1.3px);
  background-size: 22px 22px;
  border-bottom: 1.5px solid var(--rule);
}
.hero__in { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 40px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero__eyebrow { font: 700 1.7rem/1.1 var(--hand); color: var(--pine); margin: 0 0 6px; display: inline-flex; align-items: center; gap: 8px; }
.hero__eyebrow svg { width: 38px; height: 24px; flex: none; }
.hero h1 {
  font-weight: 800; font-size: clamp(2.5rem, 8.4vw, 4.7rem); line-height: 0.98; letter-spacing: -0.035em; color: var(--ink);
  max-width: 11ch; margin: 0 0 22px;
}
.marker { background: linear-gradient(transparent 58%, var(--marigold) 58%, var(--marigold) 90%, transparent 90%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__sketch { width: 100%; max-width: 470px; margin-top: 18px; }
.hero__sketch svg { display: block; width: 100%; height: auto; }
@media (max-width: 1023px) {
  .hero__in { padding-top: 18px; gap: 18px; }
  .hero__copy { display: contents; }
  .hero__eyebrow { order: 1; font-size: 1.45rem; margin: 0; }
  .hero h1 { order: 2; margin: 0; }
  .quickquote-wrap { order: 3; }
  .hero__call { order: 4; justify-self: start; }
  .hero__sketch { order: 5; max-width: 360px; justify-self: center; margin: 0; }
}
@media (min-width: 1024px) {
  .hero__in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; padding-top: 54px; padding-bottom: 66px; }
}

/* ---------------------------------------------------------------- quick-quote card */
.quickquote-wrap { position: relative; width: 100%; max-width: 460px; justify-self: end; }
@media (max-width: 1023px) { .quickquote-wrap { justify-self: stretch; max-width: 560px; } }
.quickquote {
  position: relative; background: var(--sheet); border: 2px solid var(--ink); border-radius: 12px;
  box-shadow: 7px 7px 0 var(--pine); padding: 24px 22px 22px;
}
@media (min-width: 768px) { .quickquote { padding: 30px 30px 26px; } }
.quickquote__title { font-size: 1.62rem; font-weight: 800; margin: 0 0 4px; }
.quickquote__lede { color: var(--ink-soft); font-size: 1rem; margin: 0 0 18px; }
.quickquote .btn-cta { margin-top: 6px; }
.quickquote__switch { display: flex; justify-content: center; margin-top: 8px; }
.quickquote__status { min-height: 1.4em; margin: 4px 0 0; font-weight: 600; color: var(--pine); text-align: center; }
.quickquote__status:empty { display: none; }
.assure { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1.5px dashed var(--rule); font-size: .96rem; font-weight: 600; color: var(--ink); }
.assure li { display: inline-flex; align-items: center; gap: 7px; }
.assure svg { width: 20px; height: 20px; flex: none; }
.scribble-note {
  position: absolute; left: -150px; top: 52px; width: 150px; pointer-events: none;
  font: 700 1.5rem/1 var(--hand); color: var(--ink); transform: rotate(-4deg); text-align: center;
}
.scribble-note svg { display: block; width: 104px; height: 66px; margin: 4px 0 0 34px; }
@media (max-width: 1180px) { .scribble-note { display: none; } }

/* ---------------------------------------------------------------- fields + picker */
.field { position: relative; margin: 0 0 14px; }
.field > label, .field__label { display: block; font-weight: 650; font-size: .98rem; margin: 0 0 6px; color: var(--ink); }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.field__row label { margin-bottom: 6px; }
.input {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--field-edge); border-radius: var(--radius);
  background: #fff; color: var(--ink); font: 500 1.0625rem/1.3 var(--text); appearance: none; -webkit-appearance: none;
  transition: border-color .12s, box-shadow .12s;
}
.input::placeholder { color: #7d8684; }
.input:hover { border-color: var(--ink); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--marigold); }
.input[disabled] { background: #f1ede4; border-style: dashed; color: #6d7573; cursor: not-allowed; }
.input[readonly] { background: #f6f2ea; }
.input[aria-invalid="true"] { border-color: var(--brick); box-shadow: 0 0 0 1px var(--brick); }
.input--pick { padding-right: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5c1.8 1.9 3.3 3.5 5 5.3 1.8-1.9 3.4-3.6 5-5.4' fill='none' stroke='%231c2b2a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 18px 18px; }
.input--pick[disabled] { background-color: #f1ede4; }
.field__err { display: flex; gap: 6px; margin: 6px 0 0; color: var(--brick); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.field__err[hidden] { display: none; }
.field__help { margin: 6px 0 0; color: var(--ink-soft); font-size: .93rem; }
.field__count { font: 600 .9rem/1 var(--text); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pick__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  max-height: 264px; overflow-y: auto; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(28,43,42,.18);
}
.field--pick .pick__list { top: auto; margin-top: 4px; }
.pick__opt { padding: 11px 12px; border-radius: 6px; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pick__opt:hover, .pick__opt.is-active { background: var(--marigold-wash); }
.pick__opt[aria-selected="true"] { font-weight: 700; box-shadow: inset 3px 0 0 var(--pine); }
.pick__alt { color: var(--ink-soft); font-size: .88rem; font-weight: 600; }
.pick__note { padding: 11px 12px; color: var(--ink-soft); }
.vinhelp-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; min-height: 32px;
  color: var(--pine); font: 600 .93rem/1.2 var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.vinhelp-btn svg { width: 17px; height: 17px; }
.input--vin { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }

/* ---------------------------------------------------------------- dialogs */
dialog.sheet { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; color: var(--ink); }
dialog.sheet::backdrop { background: rgba(20, 30, 29, .55); }
.sheet__card {
  background: var(--sheet); border: 2px solid var(--ink); border-radius: 14px; padding: 26px 24px 22px; box-shadow: 8px 8px 0 var(--pine);
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.sheet__title { font-size: 1.55rem; font-weight: 800; margin: 0 0 10px; padding-right: 20px; }
.sheet__card h3 { font: 700 1rem/1.3 var(--text); margin: 0 0 6px; }
.sheet__card ul { margin: 0 0 14px; padding-left: 20px; }
.sheet__card li { margin: 0 0 4px; }
.sheet__cols { display: grid; gap: 6px 26px; }
.sheet__actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 18px; }
.vinsample { display: flex; flex-direction: column; gap: 4px; background: var(--paper); border: 1.5px dashed var(--pencil); border-radius: 8px; padding: 12px 14px; }
.vinsample code { font: 700 1.2rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; word-break: break-all; }
.vinsample span { color: var(--ink-soft); font-size: .93rem; }
@media (max-width: 767px) {
  dialog.sheet { margin: auto 0 0; width: 100%; }
  dialog.sheet .sheet__card { border-radius: 18px 18px 0 0; border-bottom: 0; box-shadow: none; padding-bottom: 28px; }
}
@media (min-width: 768px) {
  dialog.sheet { width: min(580px, calc(100vw - 48px)); }
  .sheet__cols { grid-template-columns: 1fr 1fr; }
  .sheet__actions { flex-direction: row-reverse; justify-content: flex-start; align-items: center; }
}
html.has-popup { overflow: hidden; }

/* ---------------------------------------------------------------- editorial stories */
.story { padding: 64px 0; }
.story:nth-of-type(even) { background: var(--paper-deep); }
.story__grid { display: grid; gap: 18px; }
.story__head { position: relative; }
.story__head h2 { font-size: clamp(1.85rem, 4.2vw, 2.7rem); font-weight: 800; color: var(--ink); max-width: 14ch; }
.story__head h2.is-caps { text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 2.25rem); max-width: 18ch; letter-spacing: 0; }
.story__icon { display: block; width: 62px; height: 52px; margin: 0 0 12px; color: var(--pine); }
.story__body { max-width: 66ch; color: #2a3836; font-size: 1.08rem; }
.story__body p:last-child { margin-bottom: 0; }
.squiggle { display: block; width: 132px; height: 14px; margin-top: 18px; color: var(--marigold-deep); }
@media (min-width: 900px) {
  .story { padding: 88px 0; }
  .story__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
}

.anycar { padding: 72px 0; background: var(--sheet); border-top: 1.5px solid var(--rule); border-bottom: 1.5px solid var(--rule); }
.anycar__grid { display: grid; gap: 32px; align-items: center; }
.anycar__art { position: relative; }
.anycar__art img { display: block; width: 100%; height: auto; }
.anycar__art figcaption { font: 700 1.45rem/1.1 var(--hand); color: var(--pine); transform: rotate(-3deg); margin: 6px 0 0 18px; }
.anycar h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); font-weight: 800; margin-bottom: 14px; }
.anycar__intro { display: block; font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; }
.ticklist { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.ticklist li { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.ticklist svg { width: 22px; height: 22px; flex: none; color: var(--pine); }
.anycar p { color: #2a3836; }
@media (min-width: 1024px) { .anycar__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; } }

.callband { position: relative; background: var(--pine); color: var(--paper); padding: 72px 0; overflow: hidden; text-align: center; }
.callband__in { max-width: 760px; margin: 0 auto; }
.callband h3 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; color: var(--paper); margin: 0 0 16px; }
.callband p { color: #e6efe9; font-size: 1.1rem; }
.callband a:not(.btn-cta) { color: var(--marigold); }
.callband .btn-cta, .callband .btn-cta:hover { color: var(--ink); }
.callband .btn-cta { margin-top: 10px; box-shadow: 4px 4px 0 var(--pine-deep); border-color: var(--ink); }
.callband .btn-cta svg { width: 20px; height: 20px; }
.callband__doodle { position: absolute; color: rgba(255,181,31,.5); width: 170px; height: 120px; pointer-events: none; }
.callband__doodle--l { left: 3%; top: 18px; }
.callband__doodle--r { right: 3%; bottom: 14px; transform: scaleX(-1); }
@media (max-width: 899px) { .callband__doodle { display: none; } }

/* ---------------------------------------------------------------- footer */
.sitefoot { background: var(--ink); color: #d9dfdc; padding: 40px 0 34px; }
.sitefoot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.sitefoot p { margin: 0; font-size: .97rem; line-height: 1.6; }
.sitefoot a { color: var(--marigold); }
.sitefoot__call { color: var(--paper); font-weight: 700; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
