/* Luigi's Autobody demo. Paint-booth white, candy plum, masking-tape yellow. */
:root {
  --booth: #EEF0EE; --paper: #fff; --ink: #1E1722; --muted: #4B4550; --line: #D7D9D7;
  --plum: #4A1942; --plum-2: #2A0E27; --candy: #B0186A; --candy-2: #8E1255; --tape: #F2C641; --primer: #C9CDCB;
  --display: Shrikhand, Georgia, serif; --body: "Bricolage Grotesque", system-ui, sans-serif;
  --lift: 0 1px 0 rgba(74, 25, 66, .08), 0 18px 30px -18px rgba(42, 14, 39, .45);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--booth); color: var(--ink); font: 400 17px/1.55 var(--body); font-optical-sizing: auto; }
img { max-width: 100%; display: block; }
a { color: var(--candy-2); }
:focus-visible { outline: 3px solid var(--candy); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--plum); line-height: 1.04; margin: 0 0 .4em; letter-spacing: .005em; }
h1 { font-size: clamp(34px, 6vw, 70px); }
h2 { font-size: clamp(28px, 4vw, 46px); }
h3 { font-size: 19px; margin: 0 0 .4em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; }
.small { font-size: 14px; color: var(--muted); }
.sec { padding: clamp(56px, 8vw, 104px) 0; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 12px;
  background: var(--candy); color: #fff; font: 700 17px/1.1 var(--body); text-decoration: none; border: 2px solid var(--candy);
  box-shadow: 0 3px 0 var(--plum-2); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:hover { background: var(--candy-2); border-color: var(--candy-2); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--plum-2); }
.btn.line { background: transparent; color: var(--plum); border-color: var(--plum); box-shadow: none; }
.btn.line:hover { background: var(--plum); color: #fff; }
.btn.line.light { color: #fff; border-color: #fff; }
.btn.line.light:hover { background: #fff; color: var(--plum); }
.btn.tape { background: var(--tape); border-color: var(--tape); color: var(--ink); box-shadow: 0 3px 0 #9C7A12; }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.rate { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; font-size: 15px; color: var(--muted); margin: 14px 0 0; }
.rate svg { width: 17px; height: 17px; color: #D99A00; }
.rate span { margin-left: 8px; }

.demo { background: var(--tape); color: var(--ink); font-size: 13px; text-align: center; padding: 6px 12px; }
.head { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.badge { width: 112px; height: auto; display: block; filter: drop-shadow(0 3px 4px rgba(42, 14, 39, .25)); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--candy-2); }
.nav .tel { display: inline-flex; gap: 6px; align-items: center; }
.nav svg, .foot a svg { width: 18px; height: 18px; flex: none; }
.menu-btn { display: none; }

/* The booth: the door pins while the gun sprays it */
.booth { position: relative; height: 240vh; background: radial-gradient(120% 70% at 50% 62%, #fff 0%, #F1F2F0 45%, #DCDEDB 100%); }
.booth-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.booth-copy { text-align: center; padding-top: clamp(16px, 4vh, 44px); }
.booth-copy h1 { max-width: 22ch; margin-inline: auto; font-size: clamp(32px, 4.4vw, 58px); }
.booth-copy .lede { margin: 0 auto; }
.booth-copy .btns, .booth-copy .rate { justify-content: center; }
.booth-view { position: relative; min-height: 0; }
.booth-view canvas, .booth-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.booth-view canvas { opacity: 0; transition: opacity .5s; }
.booth-view canvas[data-ready] { opacity: 1; }
.booth-view canvas[data-ready] + .booth-still, .booth-still.gone { opacity: 0; }
.booth-ui { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 22px; }
.chips { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 4px 2px; scrollbar-width: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 15px var(--body); cursor: pointer; box-shadow: var(--lift); }
.chip i { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.7), transparent 45%), var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.chip[aria-pressed=true] { border-color: var(--plum); box-shadow: 0 0 0 2px var(--plum); }
.meter { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.meter .bar { width: 140px; height: 8px; border-radius: 4px; background: var(--primer); overflow: hidden; }
.meter .bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--candy); }

.habla { background: var(--plum); color: #fff; padding: 40px 0; }
.habla-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: center; }
.habla h2 { color: var(--tape); margin: 0; }
.habla p { margin: 0; font-size: 18px; max-width: 52ch; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.tile { display: flex; flex-direction: column; background: var(--paper); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--muted);
  box-shadow: var(--lift); border: 1px solid var(--line); transition: transform .15s; }
.tile:hover { transform: translateY(-3px); }
.tile img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.tile span { padding: 14px 16px 18px; font-size: 15px; line-height: 1.45; }
.tile b { display: block; color: var(--plum); font-size: 18px; margin-bottom: 4px; }
.also { color: var(--muted); margin-top: 24px; }

.vette { overflow: hidden; background: linear-gradient(180deg, var(--plum-2), #3A1235); color: #fff; padding: clamp(64px, 9vw, 120px) 0; }
.vette-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.vette figure { margin: 0; }
.vette-pics { position: relative; padding-bottom: 12%; }
.v1 img { border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.v2 { position: absolute; right: -3%; bottom: 0; width: 44%; z-index: 2; transform: rotate(2.5deg); }
.v2 img { border: 8px solid #fff; border-radius: 4px; box-shadow: 0 24px 40px -14px rgba(0,0,0,.75); }
.vette h2 { color: var(--tape); }
.vette .lede { color: #EADCE6; }

.topics { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.topics li { background: var(--paper); border-radius: 12px; padding: 16px; border-left: 6px solid var(--tape); box-shadow: var(--lift); }
.topics b { display: block; color: var(--plum); font-size: 17px; }
.topics span { color: var(--muted); font-size: 15px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.quotes figure { margin: 0; background: var(--paper); border-radius: 14px; padding: 22px; box-shadow: var(--lift); }
.quotes .ph { background: transparent; border: 2px dashed var(--primer); box-shadow: none; color: var(--muted); }
.quotes blockquote { margin: 0 0 12px; font-size: 17px; }
.quotes figcaption { font-weight: 700; font-size: 15px; }

.visit { background: var(--paper); }
.visit-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.map { border-radius: 14px; overflow: hidden; box-shadow: var(--lift); aspect-ratio: 4 / 3; background: var(--primer); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.hours { margin: 16px 0 6px; display: grid; gap: 6px; max-width: 360px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.hours dt { font-weight: 600; } .hours dd { margin: 0; }
.cta { text-align: center; }
.cta .lede { margin-inline: auto; } .cta .btns { justify-content: center; }

.page-hero { position: relative; min-height: 46vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--plum-2); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,14,39,.5) 0%, rgba(42,14,39,.9) 70%); }
.page-hero .wrap { position: relative; z-index: 1; padding: 64px 0 40px; }
.page-hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.page-hero p { font-size: 19px; max-width: 56ch; margin: 0; }
.crumb a { color: var(--tape); font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.photo { margin: 0; } .photo img { border-radius: 14px; box-shadow: var(--lift); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.list { padding-left: 20px; font-size: 18px; } .list li { margin: 6px 0; }
.list li::marker { color: var(--candy); }

/* Estimate form */
.est h1 { font-size: clamp(34px, 5vw, 58px); }
.est .photo { margin-top: 24px; }
.form { background: var(--paper); border-radius: 16px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--lift); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; } .full { grid-column: 1 / -1; }
.field label, legend { font-weight: 700; font-size: 15px; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: #FAFAF9; border: 1.5px solid #A9ADAB; border-radius: 10px; padding: 11px 12px; min-height: 48px; width: 100%; }
input[type=file] { padding: 10px; }
input:focus, select:focus, textarea:focus { border-color: var(--plum); outline: 3px solid rgba(176, 24, 106, .25); }
[aria-invalid=true] { border-color: #B3261E; }
.err { color: #B3261E; font-size: 14px; min-height: 0; margin: 0; }
.hint, .note { font-size: 14px; color: var(--muted); }
.langs { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.langs legend { margin-bottom: 6px; }
.pick { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #A9ADAB; border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.pick input { width: auto; min-height: 0; accent-color: var(--candy); }
.hp { position: absolute; left: -9999px; }
.done { grid-column: 1 / -1; } .done h3 { font-family: var(--display); font-weight: 400; color: var(--plum); font-size: 30px; }

/* Gallery */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0 36px; max-width: 760px; }
.ba figure { margin: 0; position: relative; }
.ba img { border-radius: 12px; aspect-ratio: 2 / 1; object-fit: cover; width: 100%; }
.ba figcaption { position: absolute; left: 10px; top: 10px; background: var(--tape); color: var(--ink); font-weight: 700; font-size: 14px; padding: 2px 10px; border-radius: 4px; }
.ba p { grid-column: 1 / -1; margin: 0; font-weight: 700; color: var(--plum); }
.gal { columns: 3 260px; column-gap: 14px; }
.g { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; border-radius: 12px; overflow: hidden; box-shadow: var(--lift); }
.g img { width: 100%; }
.lb { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; color: #fff; }
.lb::backdrop { background: rgba(20, 6, 18, .88); }
.lb img { max-height: 80vh; width: auto; margin: auto; border-radius: 8px; }
.lb p { text-align: center; margin: 10px 0; }
.lb-close { display: block; margin: 0 auto; min-height: 44px; padding: 8px 20px; border-radius: 10px; border: 2px solid #fff; background: transparent; color: #fff; font: 700 16px var(--body); cursor: pointer; }

.foot { background: var(--plum-2); color: #EADCE6; padding: 56px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; gap: 32px; }
.foot h3 { color: var(--tape); }
.foot a { color: #fff; text-decoration: none; display: inline-flex; gap: 8px; align-items: flex-start; }
.foot a:hover { text-decoration: underline; }
.foot ul { list-style: none; padding: 0; margin: 0; } .foot li { margin: 4px 0; }
.foot .small { color: #CDB8C8; }
.foot .badge { width: 150px; margin-bottom: 12px; }
.fab { display: none; }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .habla-grid { grid-template-columns: 1fr; }
  .habla .btn { justify-self: start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .badge { width: 96px; }
  .menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; border: 0; background: none; padding: 12px; cursor: pointer; }
  .menu-btn span { display: block; height: 3px; background: var(--plum); border-radius: 2px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--lift); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
  .booth-copy .lede, .booth-copy .btn.line { display: none; }
  .booth-copy .btns { margin-top: 14px; }
  .booth-ui { padding-bottom: 80px; }
  .chips { justify-content: flex-start; }
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile { flex-direction: row; }
  .tile img { width: 38%; aspect-ratio: auto; min-height: 112px; }
  .tile span { padding: 12px 14px; }
  .vette-grid, .visit-grid, .split, .form, .quotes { grid-template-columns: 1fr; }
  .v2 { right: 0; width: 52%; }
  .vette-grid { gap: 32px; }
  .topics { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 52vh; }
  .est .photo { display: none; }
  .fab { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -12px rgba(42,14,39,.35); transition: transform .25s; }
  .fab a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; border: 2px solid var(--plum); color: var(--plum); font-weight: 700; text-decoration: none; }
  .fab a.pri { background: var(--candy); border-color: var(--candy); color: #fff; }
  .fab.away { transform: translateY(110%); }
}
@media (prefers-reduced-motion: reduce) {
  .booth { height: auto; }
  .booth-stage { position: relative; height: auto; }
  .booth-view { height: 56vh; }
  .meter { display: none; }
  * { transition: none !important; }
}
