/* Daylight Glass (design C): additions to the approved design, loaded after the page's own styles. */

/* Phone header: the name no longer runs under "Book now" (owner, 2 Dec 2026). */
@media (max-width: 520px) { nav.g { gap: 6px } .brand { gap: 8px } .mark { flex: none; width: 38px; height: 38px; border-radius: 12px } .wm { font-size: 17px } nav .btn.p { padding: 9px 12px; font-size: 14.5px } }
@media (max-width: 405px) { .wm { font-size: 14.5px } }
/* Very narrow phones: the bottom bar always has "Book now", so the top one steps aside for the name. */
@media (max-width: 389px) { nav .btn.p { display: none } nav .mbtn { margin-left: auto } .wm { font-size: 17px } }

/* Real booking (Phase 2): days and times are links, plus the service list and forms. */
.days a, .times a, a.field { text-decoration: none; color: inherit }
.times a.t:hover, .days a.d:hover { border-color: var(--ac) }
.d.full { opacity: .5 }
.wk a { color: var(--ac); font-size: 14px; text-decoration: none }
.svcpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px }
.svcpick h3 { font-size: 16px; margin-bottom: 6px }
.svcpick a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 0 -12px; border-radius: 12px; text-decoration: none; font-weight: 600 }
.svcpick a small { display: block; color: var(--soft); font-size: 12.5px }
.svcpick a b { color: var(--ac); white-space: nowrap }
.svcpick a:hover { background: #eef2ff }
.carf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.carf label { display: grid; gap: 6px; font-weight: 700; font-size: 14px }
.carf label small { font-weight: 600; color: var(--soft) }
.carf .wide { grid-column: 1 / -1 }
.carf input, .carf textarea { font: inherit; font-weight: 600; padding: 12px 14px; border-radius: 13px; border: 1px solid #cbd5e1; background: rgba(255, 255, 255, .85); color: var(--ink); width: 100% }
.carf input:focus, .carf textarea:focus { outline: 3px solid rgba(37, 99, 235, .25); border-color: var(--ac) }
.carf .chk { display: flex; align-items: center; gap: 10px; font-weight: 600 }
.carf .chk input { width: 20px; height: 20px; flex: none }
.carf .row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap }
.carf .skip { color: var(--mut); font-weight: 700 }
.hp { position: absolute; left: -9999px }
.err { padding: 12px 14px; border-radius: 13px; background: #fef2f2; color: #991b1b; font-weight: 600; font-size: 14.5px }
.carf.det { grid-template-columns: repeat(2, minmax(0, 1fr)) }
@media (max-width: 700px) { .carf, .carf.det { grid-template-columns: 1fr } }

/* Track my car (real booking). The road progress comes from --p on .lane. */
.lane .done { width: var(--p, 58%) }
.lane svg.car { left: calc(var(--p, 58%) - 60px) }
.lane .spark { left: calc(var(--p, 58%) + 52px) }
@media (max-width: 900px) { .lane svg.car { left: calc(var(--p, 58%) - 45px) } .lane .spark { left: calc(var(--p, 58%) + 38px) } }
.lane[style*="--p:0%"] svg.car { left: 0 } .lane[style*="--p:12%"] svg.car { left: 0 }
.lane[style*="--p:100%"] svg.car { left: calc(100% - 120px) } .lane[style*="--p:100%"] .spark { display: none }
.ph.real { height: auto; background: none } .ph.real:before, .ph.real:after { display: none }
.ph.real img { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: 16px }
.b img, .b video { display: block; max-width: 100%; border-radius: 12px; margin-top: 8px }
.others { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; color: var(--mut); font-weight: 600; font-size: 14px }
.others .chip { text-decoration: none; font-size: 13px }
.flash { margin-top: 14px; padding: 12px 16px; font-weight: 700; color: #15803d }
.inp input.field { font: inherit; border: 1px solid var(--gb); background: rgba(255, 255, 255, .8); border-radius: 13px; color: var(--ink) }
.inp .cam { cursor: pointer }
.yes form { display: contents }
.signout { text-align: center; margin-top: 14px } .signout button { all: unset; cursor: pointer; color: var(--mut); font-weight: 600; font-size: 14px; text-decoration: underline }
footer a { color: var(--ac); font-weight: 700; text-decoration: none }

/* Sticky header (owner, 2 Dec 2026): stays at the top while scrolling; a stronger glass once the page moves. */
nav.g { position: sticky; top: 10px; z-index: 40; transition: box-shadow .2s, background .2s }
nav.g.stuck { background: rgba(255, 255, 255, .86); box-shadow: 0 12px 34px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255, 255, 255, .95) }
@media (max-width: 520px) { nav.g { top: 8px } }

/* Back to top: appears after half the page. Above the bottom bar on phones. */
.totop { position: fixed; right: 18px; bottom: 26px; z-index: 45; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; cursor: pointer;
  color: var(--ac); border: 1px solid var(--gb); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s }
.totop svg { width: 22px; height: 22px }
.totop.on { opacity: 1; transform: none; pointer-events: auto }
.totop:hover { background: #fff }
@media (max-width: 900px) { .totop { bottom: 104px; right: 14px; width: 46px; height: 46px } }

/* Privacy and terms pages */
.legal { padding: 26px 28px; margin-top: 20px; max-width: 860px }
.legal h2 { font-size: 20px; margin: 22px 0 8px } .legal h2:first-child { margin-top: 0 }
.legal p, .legal li { color: var(--mut); font-size: 15.5px } .legal ul { padding-left: 20px; display: grid; gap: 6px }
.legal a, .next a { color: var(--ac); font-weight: 700 }
footer a[href$="privacy.html"], footer a[href$="terms.html"] { color: inherit; font-weight: 600 }

/* Booking guide: the next thing to choose lights up (travelling cobalt-to-amber glow + a "Next" tag), then settles. */
@property --dgang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.dg-next { position: relative; border-radius: 16px; animation: dgpulse 1.6s ease-out 3; }
.dg-next::after { content: ""; position: absolute; inset: -8px; border-radius: 20px; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--dgang), #2563eb, #7c3aed, #f59e0b, #2563eb);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: dgspin 1.8s linear infinite, dgfade 6s ease-in forwards; }
.dg-next::before { content: attr(data-next) "  ↓"; position: absolute; left: 4px; top: -40px; z-index: 3; white-space: nowrap;
  padding: 6px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5); box-shadow: 0 6px 18px rgba(37, 99, 235, .35); animation: dgbob 1s ease-in-out infinite, dgfade 6s ease-in forwards; }
/* room for the tag stays after the glow ends, so nothing moves under a finger */
.times[data-next], .days[data-next], .svcpick[data-next] { margin-top: 44px; }
form.carf[data-next] { margin-top: 40px; }
@keyframes dgspin { to { --dgang: 360deg } }
@keyframes dgpulse { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .45) } 100% { box-shadow: 0 0 0 18px rgba(245, 158, 11, 0) } }
@keyframes dgbob { 0%, 100% { translate: 0 0 } 50% { translate: 0 -4px } }
@keyframes dgfade { 0%, 80% { opacity: 1 } 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .dg-next, .dg-next::after, .dg-next::before { animation: dgfade 6s ease-in forwards; } }

/* "Something else" card on step 1, and photo upload on step 4 */
.other-card { margin-top: 6px; padding: 16px 18px; border-radius: 16px; border: 1.5px dashed #93c5fd; background: rgba(239, 246, 255, .8);
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap }
.other-card b { font-size: 16px } .other-card p { color: var(--mut); font-size: 14.5px; margin-top: 2px }
.photos { display: grid; gap: 6px; font-weight: 700; font-size: 14px }
.photos .drop { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 13px; border: 1.5px dashed #cbd5e1; background: rgba(255, 255, 255, .7); cursor: pointer; font-weight: 600; color: var(--mut) }
.photos .drop svg { width: 24px; height: 24px; color: var(--ac); flex: none }
.photos input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0 }
.photos .thumbs { display: flex; gap: 8px; flex-wrap: wrap } .photos .thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px }

/* Recognised account: "Welcome back" panel on step 4, and the signed-in banner */
.linkbox { position: relative; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(219, 234, 254, .9), rgba(254, 243, 199, .7)); border: 1px solid #bfdbfe; font-size: 15px; color: var(--ink) }
.linkbox[hidden] { display: none }
.linkbox[data-next] { margin-top: 40px }
.linkbox b { font-size: 16px }
.linkbox .lk-btns, .linkbox .lk-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px }
.linkbox .lk-row input { flex: 1; min-width: 140px; font: inherit; font-weight: 800; letter-spacing: 2px; padding: 12px 14px; border-radius: 13px; border: 1px solid #cbd5e1; background: #fff }
.linkbox .lk-resend { all: unset; cursor: pointer; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--ac); text-decoration: underline }
.linkbox .lk-err { color: #b91c1c; font-weight: 700; font-size: 14px; margin-top: 6px } .linkbox .lk-err:empty { display: none }
.linkbox .lk-done { font-weight: 800; color: #15803d }
.signedin { padding: 10px 14px; border-radius: 13px; background: rgba(220, 252, 231, .8); color: #14532d; font-size: 14.5px } .signedin a { color: var(--ac); font-weight: 700 }

/* Reduced motion (e.g. Windows "Animation effects" off, as on the owner's PC): the design stopped everything.
   Keep the background tools drifting slowly and gently (owner's choice, matching the design preview fix); scenes and pulses stay still. */
@media (prefers-reduced-motion: reduce) {
  .bgl .tw { animation: twd 38s linear infinite alternate !important }
  .bgl .tspin:not(.rk) { animation: tspin 34s linear infinite !important }
  .bgl .fl { animation: drift 40s linear infinite alternate !important }
  .bgl .sp { animation: tw 6s ease-in-out infinite alternate !important }
}

/* ===== Logo (Spanner & Sparkz Ltd, redrawn 2 Dec 2026) ===== */
/* Header mark: the new icon assembles on every page load. */
.mark.g { overflow: visible } .mark .mz { display: none }
.dgicon { display: block; width: 40px; height: 40px; overflow: visible }
.dgicon .ic-gear, .dgicon .ic-sp1, .dgicon .ic-sp2, .dgicon .ic-spark { transform-box: fill-box; transform-origin: center }
.dgicon .ic-gear { animation: icgear .9s cubic-bezier(.2, .8, .2, 1) both }
.dgicon .ic-sp1 { animation: icsp1 .7s .35s cubic-bezier(.2, .8, .2, 1) both }
.dgicon .ic-sp2 { animation: icsp2 .7s .5s cubic-bezier(.2, .8, .2, 1) both }
.dgicon .ic-spark { animation: icspark .5s 1s ease-out both, icflick 2.8s 1.6s ease-in-out infinite }
@keyframes icgear { from { opacity: 0; transform: rotate(-150deg) scale(.4) } to { opacity: 1; transform: none } }
@keyframes icsp1 { from { opacity: 0; transform: translate(-40%, -40%) rotate(-60deg) } to { opacity: 1; transform: none } }
@keyframes icsp2 { from { opacity: 0; transform: translate(40%, -40%) rotate(60deg) } to { opacity: 1; transform: none } }
@keyframes icspark { from { opacity: 0; transform: scale(0) } 60% { opacity: 1; transform: scale(1.5) } to { opacity: 1; transform: none } }
@keyframes icflick { 0%, 100% { opacity: 1 } 50% { opacity: .55 } }
.wm .sz { font-style: italic; background: linear-gradient(90deg, #2563eb, #4f46e5); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 2px }

/* Intro: the full logo forms itself on the first page of a visit, then fades into the site. */
html.lg-on, html.lg-on body { overflow: hidden }
.lgintro { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(900px 600px at 80% 10%, #c7d2fe 0%, transparent 60%), radial-gradient(900px 650px at 10% 80%, #a5f3fc 0%, transparent 55%), linear-gradient(160deg, #eef2f7, #e2e8f0 55%, #f1f5f9) }
.lgintro[hidden] { display: none }
.lgintro .lgwrap { width: min(560px, 86vw) } .lgintro svg { display: block; width: 100%; height: auto; overflow: visible }
.lgintro .lgskip { position: absolute; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .7); border-radius: 12px; padding: 8px 14px; font: 700 14px Manrope, system-ui, sans-serif; color: #475569; cursor: pointer }
.lgintro.out { animation: lgout .55s ease-in forwards }
@keyframes lgout { to { opacity: 0; transform: scale(1.04) } }
.lg [class^="lg-"], .lg [class*=" lg-"] { transform-box: fill-box; transform-origin: center }
.lg .lg-gear { animation: lggear 1s cubic-bezier(.2, .8, .2, 1) both }
.lg .lg-spL { animation: lgspL .75s .35s cubic-bezier(.2, .8, .2, 1) both }
.lg .lg-spR { animation: lgspR .75s .5s cubic-bezier(.2, .8, .2, 1) both }
.lg .lg-car { animation: lgcar .6s .85s cubic-bezier(.2, .8, .2, 1) both }
.lg .lg-welder { animation: lgweld .6s .95s cubic-bezier(.2, .8, .2, 1) both }
.lg .lg-visor { animation: lgvisor 1s 1.65s ease-out both }
.lg .lg-lights { animation: lgflick .6s 1.3s steps(1) both }
.lg .lg-spark { animation: lgtorch .45s 1.25s cubic-bezier(.2, .8, .2, 1) both }
.lg .lg-rays { transform-origin: 0 0; transform-box: view-box; animation: lgrays .5s 1.65s ease-out both }
.lg .lg-core { animation: lgcore .9s 1.65s ease-out both }
.lg .lg-t1 { animation: lgwipe .55s 1.05s cubic-bezier(.3, .8, .2, 1) both }
.lg .lg-t2 { animation: lgzap .6s 1.35s cubic-bezier(.2, .8, .2, 1) both }
.lg .lg-ltd { animation: lgfade .4s 1.75s ease-out both }
.lg .lg-plate { animation: lgplate .5s 1.85s cubic-bezier(.2, .8, .2, 1) both }
.lg .lg-pist { animation: lgpist .5s 2.1s cubic-bezier(.2, .8, .2, 1) both }
.lgintro.done svg { animation: lgglow .7s ease-out }
@keyframes lggear { from { opacity: 0; transform: rotate(-160deg) scale(.35) } to { opacity: 1; transform: none } }
@keyframes lgspL { from { opacity: 0; transform: translate(-45%, -30%) rotate(-50deg) } to { opacity: 1; transform: none } }
@keyframes lgspR { from { opacity: 0; transform: translate(-55%, -40%) rotate(-40deg) } to { opacity: 1; transform: none } }
@keyframes lgweld { from { opacity: 0; transform: translateX(45%) } to { opacity: 1; transform: none } }
@keyframes lgvisor { 0%, 100% { filter: none } 30% { filter: brightness(2.2) drop-shadow(0 0 8px #60a5fa) } 60% { filter: brightness(1.4) } }
@keyframes lgcar { from { opacity: 0; transform: translateY(40%) scale(.9) } to { opacity: 1; transform: none } }
@keyframes lgflick { 0% { opacity: 0 } 20% { opacity: 1 } 40% { opacity: .2 } 60% { opacity: 1 } 75% { opacity: .5 } 100% { opacity: 1 } }
@keyframes lgtorch { from { opacity: 0; transform: translate(30%, -40%) } to { opacity: 1; transform: none } }
@keyframes lgrays { from { opacity: 0; transform: scale(0) } 60% { opacity: 1; transform: scale(1.35) } to { opacity: 1; transform: none } }
@keyframes lgcore { 0% { opacity: 0; transform: scale(.2) } 40% { opacity: 1; transform: scale(2.2) } to { opacity: 1; transform: none } }
@keyframes lgwipe { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-6%) } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none } }
@keyframes lgzap { 0% { opacity: 0; transform: scale(1.35); filter: brightness(2.2) blur(3px) } 60% { opacity: 1; filter: brightness(1.6) } to { opacity: 1; transform: none; filter: none } }
@keyframes lgfade { from { opacity: 0 } to { opacity: 1 } }
@keyframes lgplate { from { opacity: 0; transform: scaleX(0) } to { opacity: 1; transform: none } }
@keyframes lgpist { from { opacity: 0; transform: translateY(30%) } to { opacity: 1; transform: none } }
@keyframes lgglow { 50% { filter: drop-shadow(0 0 24px rgba(37, 99, 235, .45)) drop-shadow(0 0 10px rgba(245, 158, 11, .5)) } }
/* Reduced motion: the same order, as gentle fades (no spinning or flying). */
@media (prefers-reduced-motion: reduce) {
  .lg [class^="lg-"], .lg [class*=" lg-"] { animation-name: lgfade !important; animation-duration: .5s !important; transform: none !important; clip-path: none !important; filter: none !important }
  .dgicon .ic-gear, .dgicon .ic-sp1, .dgicon .ic-sp2, .dgicon .ic-spark { animation: lgfade .6s both !important }
}
