/* P & B Autoservice concept. Colours from their own logo (blue #00519b, orange #f06828) and their unit at
   Daltonweg 14: grey ribbed cladding, a white sign above an open roller door. */
:root {
  --blue: #00519b;
  --blue-d: #003b72;
  --orange: #f06828;
  --orange-btn: #d4541a;
  --ink: #17202b;
  --muted: #59646f;
  --line: #d9dee3;
  --paper: #f5f6f7;
  --steel: #c9d0d6;
  --night: #161c22;
  --radius: 6px;
  --head: "Chakra Petch", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 16px/1.6 var(--body); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
p { margin: 0 0 14px; }
.sr { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
button { font: inherit; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--radius); background: var(--orange-btn); color: #fff; font: 600 16px var(--head); letter-spacing: .02em; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: background .15s; }
.btn:hover { background: #b9460f; }
.btn.big { height: 54px; padding: 0 24px; font-size: 17px; }
.btn.wide { width: 100%; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.dark { background: var(--blue); }
.btn.dark:hover { background: var(--blue-d); }
.btn.ghost-dark { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn.ghost-dark:hover { background: #eef4fa; }
.btn svg { flex: none; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo img { width: 176px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font: 600 15px var(--head); letter-spacing: .02em; }
.nav a:hover { color: var(--blue); }
.tel { display: flex; align-items: center; gap: 7px; color: var(--blue); font: 700 16px var(--head); text-decoration: none; white-space: nowrap; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu { border-top: 1px solid var(--line); background: #fff; padding: 8px 16px 16px; }
.menu[hidden] { display: none; }
.menu a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 17px var(--head); }

/* hero: their front */
.front { position: relative; }
.facade { background:
    linear-gradient(180deg, #aab3bc 0 6px, #e1e5e9 6px 10px, transparent 10px),
    repeating-linear-gradient(90deg, #d3d8dd 0 11px, #b9c1c9 11px 13px, #dde1e5 13px 24px, #c6cdd4 24px 26px);
  padding: 34px 0 0; }
.facade-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.sign { background: #fff; padding: 14px 26px; border-radius: 3px; box-shadow: 0 1px 0 #9aa4ae, 0 8px 18px -10px rgba(0,0,0,.45); position: relative; margin-bottom: 26px; }
.sign::before, .sign::after { content: ""; position: absolute; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #b4bcc4; box-shadow: 0 calc(100% + 0px) 0 #b4bcc4; }
.sign::before { left: 8px; } .sign::after { right: 8px; }
.sign img { width: 300px; }
.door { position: relative; width: min(880px, 100%); background: linear-gradient(180deg, #0f1418, #1c242c 40%, #232c35); border: 10px solid #8d97a1; border-bottom: 0; overflow: hidden; color: #fff; }
.door-in { position: relative; padding: 56px 56px 44px; }
.door h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 700; margin-bottom: 14px; }
.door .lead { font-size: 19px; color: #d5dce3; max-width: 34em; margin-bottom: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.shutter { position: absolute; inset: 0; z-index: 2; background: repeating-linear-gradient(180deg, #aeb6be 0 16px, #8e979f 16px 18px, #c3cad0 18px 20px); transform: translateY(0); transition: transform 1.3s cubic-bezier(.6,.05,.3,1) .35s; }
.shutter::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 64px; height: 8px; margin-left: -32px; border-radius: 4px; background: #6d767f; }
.open .shutter { transform: translateY(-101%); }
.housenr { position: absolute; right: 0; top: 140px; background: var(--blue); color: #fff; font: 700 30px var(--head); width: 58px; height: 58px; display: grid; place-items: center; border-radius: 4px; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--blue); }
.kerb { height: 14px; background: linear-gradient(180deg, #9ba3ab 0 4px, #c7ccd1 4px); }

.g-badge { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; background: rgba(255,255,255,.08); padding: 8px 14px; border-radius: 30px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.g-badge .g { background: #fff; border-radius: 50%; padding: 3px; width: 26px; height: 26px; }
.g-badge b { font: 700 18px var(--head); }
.g-badge small { font-size: 14px; color: #c6ced6; }
.stars { position: relative; display: inline-block; width: 92px; height: 17px; }
.stars svg { position: absolute; left: 0; top: 0; }
.stars .on { clip-path: inset(0 var(--cut, 0) 0 0); }
.stars.r48 .on { clip-path: inset(0 3% 0 0); }
.stars.sm { width: 74px; height: 14px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #dbe2e8; }
.chip svg { color: var(--orange); }

/* sections */
.sec { padding: 88px 0; border-top: 1px solid var(--line); }
.work { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.work-head h2 { margin-bottom: 18px; }
.work-head p { color: var(--muted); }
.work-head .call { color: var(--ink); font-weight: 500; }
.jobs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.jobs a { display: flex; align-items: center; gap: 16px; padding: 18px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.jobs a:hover { background: var(--paper); }
.jobs .ic { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #eaf1f8; color: var(--blue); }
.jobs b { display: block; font: 600 19px var(--head); }
.jobs small { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }
.jobs .chev { margin-left: auto; color: var(--orange); flex: none; }

/* price question */
.price { background: var(--blue); color: #fff; border-top: 0; }
.price-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.price h2 { margin-bottom: 18px; }
.price-text p { color: #d8e5f2; font-size: 18px; }
.how { list-style: none; counter-reset: s; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.how li { counter-increment: s; display: flex; align-items: center; gap: 12px; font: 600 17px var(--head); }
.how li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-size: 15px; }
.pq { background: #fff; color: var(--ink); border-radius: 8px; padding: 28px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.5); }
.pq fieldset { border: 0; padding: 0; margin: 22px 0 0; }
.pq-label { display: block; font: 600 16px var(--head); margin: 0 0 10px; padding: 0; }
.plate-row { display: flex; gap: 10px; }
.plate { flex: 1; display: flex; align-items: stretch; height: 54px; border: 2px solid #1d1d1b; border-radius: 6px; background: #f6c400; overflow: hidden; }
.plate .eu { flex: none; width: 38px; background: #1b3fa0; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 700 11px var(--body); }
.plate input { flex: 1; min-width: 0; border: 0; background: transparent; font: 700 26px "Chakra Petch", monospace; letter-spacing: .08em; text-transform: uppercase; padding: 0 12px; color: #111; }
.plate input::placeholder { color: rgba(0,0,0,.35); }
.plate input:focus { outline: none; }
.plate:focus-within { box-shadow: 0 0 0 3px rgba(0,81,155,.35); }
.plate-row .btn { height: 54px; }
.pq-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.pq-car { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); background: #eef4fa; font-size: 15px; }
.pq-car b { font-family: var(--head); font-size: 17px; }
.pq-car.err { background: #fdf0e9; }
.skel { display: block; height: 14px; border-radius: 4px; background: linear-gradient(90deg, #dfe6ee 0 40%, #f0f4f8 50%, #dfe6ee 60%) 0 0/300% 100%; animation: sk 1.1s linear infinite; }
.skel + .skel { margin-top: 8px; width: 60%; }
@keyframes sk { to { background-position: -150% 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label, .seg label { cursor: pointer; }
.chips input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 14px; border-radius: 22px; border: 1.5px solid #c5ccd3; font-size: 15px; transition: background .12s, border-color .12s; }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid rgba(240,104,40,.6); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid #c5ccd3; border-radius: var(--radius); overflow: hidden; }
.seg span { display: block; text-align: center; padding: 11px 6px; font-size: 15px; border-left: 1px solid #c5ccd3; }
.seg label:first-child span { border-left: 0; }
.seg input:checked + span { background: var(--ink); color: #fff; font-weight: 600; }
.pq .btn.wide { margin-top: 24px; }

/* alignment / tyre wear */
.align { background: var(--paper); }
.align-in { display: grid; grid-template-columns: .8fr 1.6fr; gap: 48px; align-items: center; }
.align-text h2 { margin-bottom: 16px; }
.align-text p { color: var(--muted); font-size: 18px; }
.wear { display: grid; grid-template-columns: 1fr; gap: 20px; }
.treads { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.treads button { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 6px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; color: #2a3139; font: 600 14px var(--head); line-height: 1.2; text-align: center; transition: border-color .15s, transform .15s; }
.treads button:hover { border-color: #9fb6cc; }
.treads button[aria-checked="true"] { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); transform: translateY(-2px); }
.treads svg { width: 54px; height: 88px; }
.tread .worn { fill: #8c96a0; opacity: .9; }
.treads button[aria-checked="true"] .worn { fill: var(--orange); }
.wear-out { min-height: 140px; background: #fff; border-radius: 8px; border-left: 5px solid var(--blue); padding: 22px 24px; }
.wear-out h3 { font-size: 22px; margin-bottom: 8px; }
.wear-out p { color: var(--muted); }
.wear-out .btn { margin-top: 4px; }
.wear-hint { color: var(--muted); margin: 0; }

/* projects */
.projects { position: relative; background: var(--night); color: #fff; border-top: 0; overflow: hidden; }
.proj-photo { position: absolute; inset: 0; }
.proj-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.proj-in { position: relative; }
.proj-head { max-width: 640px; margin-bottom: 40px; }
.proj-head h2 { margin-bottom: 14px; }
.proj-head p { color: #c4ccd4; font-size: 18px; }
.builds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.build { background: rgba(20,27,34,.82); border: 1px solid #2f3a45; border-top: 3px solid var(--orange); border-radius: 4px; padding: 22px 20px 20px; }
.build { position: relative; overflow: hidden; }
.build .no { display: block; font: 700 64px/1 var(--head); color: transparent; -webkit-text-stroke: 1.5px #4f7fb0; margin-bottom: 18px; }
.build .ft { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font: 600 15px var(--head); color: #9fc3e8; margin-bottom: 10px; }
.build .ft b { color: var(--orange); font-weight: 600; }
.build .ft svg { color: #6f8aa6; flex: none; }
.build h3 { font-size: 21px; margin-bottom: 6px; }
.build p { color: #b9c3cd; margin: 0; font-size: 15px; }
.proj-ask { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid #2f3a45; }
.proj-ask p { margin: 0; font-size: 18px; color: #dfe5ea; }

/* about + review */
.about-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text h2 { margin-bottom: 18px; }
.about-text > p { color: var(--muted); font-size: 18px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 0; }
.facts div { border-top: 3px solid var(--blue); padding-top: 10px; }
.facts dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 2px 0 0; font: 600 17px var(--head); }
.quote { margin: 0; background: var(--paper); border-radius: 8px; padding: 26px 28px 24px; }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.g-line { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; font-size: 14px; }
.g-line b { font-family: var(--head); font-size: 16px; }
.q-nav { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.q-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.quote blockquote { margin: 0 0 12px; font: 500 20px/1.5 var(--body); }
.quote blockquote::before { content: "“"; display: block; font: 700 54px/0.6 var(--head); color: var(--orange); margin-bottom: 8px; }
.quote figcaption { font-size: 14px; color: var(--muted); }

/* visit */
.visit-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.visit h2 { margin-bottom: 18px; }
.addr { display: flex; flex-direction: column; margin-bottom: 18px; }
.addr b { font: 700 34px var(--head); }
.addr span { font-size: 18px; color: var(--muted); }
.visit .route { max-width: 380px; }
.visit .call { max-width: 380px; margin-top: 10px; }
.hours { margin-top: 26px; max-width: 380px; }
.now { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; }
.now .dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa3ab; }
.now.open .dot { background: #1f9d55; box-shadow: 0 0 0 4px rgba(31,157,85,.18); }
.hours table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th { text-align: left; font-weight: 400; padding: 5px 0; color: var(--muted); }
.hours td { text-align: right; padding: 5px 0; }
.hours tr.today th, .hours tr.today td { color: var(--ink); font-weight: 600; }
.mail { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); }
.map { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 40px -26px rgba(0,0,0,.4); }

/* footer */
.foot { background: var(--night); color: #c3cbd3; padding: 56px 0 24px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-logo { width: 190px; background: #fff; padding: 10px 14px; border-radius: 4px; margin-bottom: 14px; }
.foot h3 { color: #fff; font-size: 16px; margin-bottom: 10px; letter-spacing: .04em; }
.foot a { color: #e3e8ec; text-decoration: none; }
.foot a:hover { color: var(--orange); }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #2c353f; margin-top: 36px; padding-top: 18px; font-size: 13px; color: #8d98a3; }

.pill { position: fixed; left: 12px; bottom: 12px; z-index: 50; background: rgba(23,32,43,.9); color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 20px; text-decoration: none; }

/* tablet */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .tel { margin-left: auto; }
  .builds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .work, .price-in, .align-in, .about-in, .visit-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .work > *, .price-in > *, .align-in > *, .about-in > *, .visit-in > * { min-width: 0; }
  .treads { grid-template-columns: repeat(3, 1fr); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .housenr { display: none; }
}
/* phone */
@media (max-width: 640px) {
  .top .wrap { gap: 10px; height: 62px; }
  .logo img { width: 138px; }
  .tel span { display: none; }
  .tel { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); flex: none; }
  .top .btn { flex: none; padding: 0 14px; }
  .facade { padding-top: 22px; }
  .sign { padding: 10px 16px; margin-bottom: 18px; }
  .sign img { width: 200px; }
  .door { border-width: 6px; }
  .door-in { padding: 32px 20px 28px; }
  .door .lead { font-size: 17px; }
  .cta .btn { width: 100%; }
  .sec { padding: 64px 0; }
  .pq { padding: 20px 16px; }
  .plate input { font-size: 22px; }
  .seg span { font-size: 14px; padding: 11px 4px; }
  .builds { grid-template-columns: 1fr 1fr; gap: 10px; }
  .build { padding: 16px 14px; }
  .build .no { font-size: 40px; margin-bottom: 10px; }
  .build h3 { font-size: 18px; }
  .build .ft { font-size: 14px; margin: 0; }
  .proj-ask { flex-direction: column; align-items: stretch; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .facts dd { font-size: 15px; }
  .quote { padding: 20px 18px; }
  .quote blockquote { font-size: 18px; }
  .addr b { font-size: 30px; }
  .foot-in { grid-template-columns: 1fr; }
  .pill { bottom: 8px; left: 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shutter { display: none; }
  .skel { animation: none; }
  .treads button { transition: none; }
}

/* 404 */
.nf { border: 0; min-height: 70vh; }
.nf-logo { width: 220px; margin-bottom: 28px; }
.nf h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 14px; }
.nf p { color: var(--muted); font-size: 18px; }
.nf .btn { margin: 8px 8px 0 0; }

/* Home: the sign on their front is the logo; the header logo fades in once the sign has scrolled away. */
.home .top .logo { transition: opacity .25s; }
.home:not(.past-sign) .top .logo { opacity: 0; pointer-events: none; }
.g-badge small { white-space: nowrap; }
@media (max-width: 640px) {
  .g-badge { padding: 7px 12px; gap: 7px; }
  .g-badge small .long { display: none; }
}
