/* Lineup Barber Co. (sample site). Barbicide aqua, black and white, with a fade for a motif. */
@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #101214;
  --paper: #F7F4EE;
  --card: #FFFFFF;
  --aq: #19B5D8;
  --aq-t: #E6F6FA;
  --aq-d: #0A7C96;
  --red: #D92E25;
  --line: #E0DBCF;
  --muted: #5C6268;
  --head: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --body: "Hanken", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.5 var(--body); padding-bottom: 84px; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--aq); color: var(--ink); }
:focus-visible { outline: 3px solid var(--aq-d); outline-offset: 2px; }
.top :focus-visible, .foot :focus-visible { outline-color: var(--aq); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 200; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin: 0; }
p { margin: 0 0 1em; }

.demobar { background: #000; color: #AEB4BA; font-size: .76rem; }
.demobar p { margin: 0; padding: 7px var(--gutter); text-align: center; }
.demobar a { color: #D3D8DC; text-underline-offset: 3px; } .demobar__cta { color: var(--aq) !important; margin-left: 6px; white-space: nowrap; }

.top { position: sticky; top: 0; z-index: 60; background: var(--ink); color: #fff; border-bottom: 3px solid var(--aq); }
.top__row { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.logo svg { width: 38px; height: 38px; }
.logo__word { display: flex; flex-direction: column; font: 800 1.9rem/.8 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.logo__word small { font: 700 .62rem/1 var(--body); letter-spacing: .24em; color: var(--aq); margin-top: 4px; }
.nav { display: none; gap: 22px; }
.nav a { text-decoration: none; font-weight: 600; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--aq); }
.traybtn { display: none; align-items: center; gap: 10px; font: 700 .95rem/1 var(--body); background: var(--aq); color: var(--ink); border: 0; border-radius: 999px; padding: 11px 16px; min-height: 44px; cursor: pointer; }
.traybtn b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: #fff; font-size: .82rem; }

.strip { background: linear-gradient(180deg, #fff, var(--paper)); border-bottom: 1px solid var(--line); padding: 26px 0 22px; position: relative; overflow: hidden; }
.strip__row { display: grid; gap: 14px; position: relative; }
.strip h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); margin-bottom: 8px; }
.strip p { color: var(--muted); margin: 0; }
.strip__side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.strip__walk { font-size: .9rem; }
.open { display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: 700 .86rem/1.2 var(--body); color: var(--ink) !important; }
.open i { width: 10px; height: 10px; border-radius: 50%; background: #B6BCC2; border: 1.5px solid var(--ink); }
.open[data-state=open] i { background: #1FA45A; } .open[data-state=closed] i { background: var(--red); }
.fadebars { display: none; position: absolute; right: calc(-1 * var(--gutter)); top: 0; height: 52px; width: 34%; background: repeating-linear-gradient(0deg, var(--ink) 0 6px, transparent 6px 14px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 90%); mask-image: linear-gradient(90deg, transparent, #000 90%); opacity: .9; }

/* shell */
.shell { display: grid; gap: 18px; padding-top: 22px; padding-bottom: 40px; grid-template-areas: "rail" "cat"; }
.rail { grid-area: rail; background: var(--card); border: 2px solid var(--ink); border-radius: 16px; }
.rail summary { cursor: pointer; padding: 14px 16px; font: 800 1.15rem/1 var(--head); text-transform: uppercase; letter-spacing: .03em; list-style: none; display: flex; justify-content: space-between; }
.rail summary::-webkit-details-marker { display: none; }
.rail summary::after { content: "+"; font-size: 1.4rem; line-height: .8; } .rail[open] summary::after { content: "\2212"; }
.rail__body { padding: 0 16px 16px; display: grid; gap: 18px; }
.rail fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.rail legend { font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; display: flex; justify-content: space-between; width: 100%; }
.rail legend output { color: var(--ink); font-size: .85rem; letter-spacing: 0; }
.opt { display: flex; align-items: center; gap: 10px; padding: 8px 4px; cursor: pointer; font-weight: 500; }
.opt input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin: 0; }
.opt em { margin-left: auto; font-style: normal; color: var(--muted); font-size: .85rem; }
.rail input[type=range] { width: 100%; accent-color: var(--ink); height: 32px; }
.rail select { width: 100%; font: 500 1rem/1.2 var(--body); padding: 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; min-height: 46px; }
.linkbtn { background: none; border: 0; font: 600 .92rem/1 var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 0; justify-self: start; color: var(--aq-d); }

.cat { grid-area: cat; min-width: 0; }
.cat__bar { display: grid; gap: 12px; margin-bottom: 14px; }
.tabs { display: inline-flex; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 4px; justify-self: start; }
.tabs button { font: 800 1.05rem/1 var(--head); text-transform: uppercase; letter-spacing: .04em; padding: 10px 22px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; min-height: 40px; }
.tabs button[aria-selected=true] { background: var(--ink); color: #fff; }
.search input { width: 100%; font: 400 1rem/1.2 var(--body); padding: 13px 16px; min-height: 48px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.sort { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.sort select { font: 600 .95rem/1.2 var(--body); padding: 11px 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; min-height: 44px; }
.count { color: var(--muted); font-size: .9rem; margin: 0 0 12px; min-height: 1.3em; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 -2px rgba(16,18,20,.12); }
.card.is-added { border-color: var(--aq-d); box-shadow: 0 0 0 3px var(--aq); }
.card__art { background: var(--aq-t); aspect-ratio: 4 / 3; display: block; border: 0; padding: 0; cursor: pointer; width: 100%; overflow: hidden; }
.card__art img, .dlg__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; background: repeating-linear-gradient(135deg, transparent 0 11px, rgba(16,18,20,.06) 11px 12px), var(--aq-t); border-bottom: 2px dashed rgba(16,18,20,.28); color: var(--muted); }
.ph span { font: 800 1.15rem/1 var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--aq-d); }
.ph small { font: 600 .82rem/1.2 var(--body); padding: 0 12px; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.55rem; }
.card h3 button { all: unset; cursor: pointer; }
.card h3 button:focus-visible { outline: 3px solid var(--aq-d); outline-offset: 2px; }
.meta { display: flex; align-items: baseline; gap: 12px; }
.price { font: 800 1.8rem/1 var(--head); } .time { color: var(--muted); font-size: .92rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.tags { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 700 .66rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px; border-radius: 5px; background: var(--ink); color: #fff; }
.tags li.deal { background: var(--red); }
.add { margin-top: auto; padding-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 800 1.1rem/1 var(--head); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; border: 2px solid var(--ink); border-radius: 12px; padding: 13px 18px; min-height: 48px; background: var(--ink); color: #fff; cursor: pointer; transition: transform .1s, background .1s; }
.btn:hover { transform: translateY(-1px); }
.btn--aq { background: var(--aq); color: var(--ink); border-color: var(--ink); }
.btn--red { background: var(--red); border-color: var(--red); }
.btn--block { width: 100%; }
.btn:disabled { background: #D9D5CB; border-color: #D9D5CB; color: #7A7F84; cursor: not-allowed; transform: none; }
.card .btn { width: 100%; }
.card .btn[aria-pressed=true] { background: var(--ink); color: #fff; }
.card .btn[aria-pressed=false] { background: var(--aq); color: var(--ink); }
.empty { padding: 36px 18px; border: 2px dashed var(--line); border-radius: 16px; text-align: center; color: var(--muted); }

/* barbers */
.bgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.bcard { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.av { width: 60px; height: 60px; border-radius: 50%; background: var(--aq); border: 2px solid var(--ink); display: grid; place-items: center; font: 800 1.9rem/1 var(--head); }
.bcard h3 { font-size: 2rem; } .bcard .role { color: var(--aq-d); font-weight: 700; font-size: .92rem; margin: -2px 0 0; }
.bcard p { color: var(--muted); font-size: .94rem; margin: 0; }
.bcard .next { background: var(--aq-t); border-radius: 10px; padding: 10px 12px; font-size: .9rem; color: var(--ink); }
.bcard .next b { display: block; font: 800 1.15rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.bcard .btn { margin-top: auto; }

/* tray */
.tray { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.tray__head { display: flex; justify-content: space-between; align-items: center; }
.tray h2 { font-size: 1.8rem; }
.tray__x { display: none; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.tray__empty { margin: 0; color: var(--muted); }
.tray__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tray__list li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--aq-t); }
.tray__list b { font-weight: 700; } .tray__list span { color: var(--muted); font-size: .86rem; display: block; }
.tray__list .p { font: 800 1.2rem/1 var(--head); }
.tray__list button { width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.tot { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0; border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }
.tot dt { font: 700 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tot dd { margin: 4px 0 0; font: 800 2rem/1 var(--head); }
.who { border: 0; padding: 0; margin: 0; min-width: 0; }
.who legend, .sect__t { font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; padding: 0; }
.whoopts { display: flex; flex-wrap: wrap; gap: 8px; }
.wo { display: inline-flex; align-items: center; gap: 8px; font: 600 .92rem/1 var(--body); padding: 8px 12px 8px 8px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; cursor: pointer; min-height: 44px; }
.wo i { width: 28px; height: 28px; border-radius: 50%; background: var(--aq); display: grid; place-items: center; font: 800 1rem/1 var(--head); font-style: normal; }
.wo[aria-pressed=true] { background: var(--ink); color: #fff; }
.wo[disabled] { opacity: .4; cursor: not-allowed; border-style: dashed; }
.note { font-size: .86rem; color: var(--muted); margin: 8px 0 0; min-height: 1.2em; }
.sect { margin: 0; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.dy { flex: none; min-width: 66px; text-align: center; padding: 9px 8px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; cursor: pointer; font: 600 .86rem/1.2 var(--body); }
.dy b { display: block; font: 800 1.35rem/1 var(--head); }
.dy small { display: block; color: var(--muted); font-size: .68rem; margin-top: 2px; }
.dy[aria-pressed=true] { background: var(--ink); color: #fff; } .dy[aria-pressed=true] small { color: #B6BCC2; }
.dy[disabled] { opacity: .45; cursor: not-allowed; border-style: dashed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; max-height: 190px; overflow-y: auto; padding: 2px; }
.sl { font: 700 .92rem/1 var(--body); padding: 12px 6px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; cursor: pointer; min-height: 44px; }
.sl small { display: block; font-size: .64rem; font-weight: 600; color: var(--muted); margin-top: 3px; }
.sl:hover { background: var(--aq-t); }
.sl[aria-pressed=true] { background: var(--aq); }
.contact { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.contact label { font: 700 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: grid; gap: 6px; }
.contact input { font: 400 1rem/1.2 var(--body); padding: 12px; border: 2px solid var(--ink); border-radius: 10px; min-height: 46px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.is-done > :not(#done) { display: none; }
.done { margin: 0; padding: 14px; border-radius: 12px; background: var(--aq-t); border: 2px solid var(--aq-d); font-weight: 600; }
.fine { font-size: .78rem; color: var(--muted); margin: 0; }

/* dialog */
.dlg { border: 2px solid var(--ink); border-radius: 20px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: #fff; color: var(--ink); }
.dlg::backdrop { background: rgba(16,18,20,.6); }
.dlg__in { display: grid; }
.dlg__art { background: var(--aq-t); aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.dlg__x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.dlg__body { padding: 20px 22px 22px; display: grid; gap: 12px; overflow-y: auto; }
.dlg h2 { font-size: 2.4rem; } .dlg h4 { font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 8px; }
.dlg ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 3px; }
.pairs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; }
.pairs button { font: 600 .9rem/1 var(--body); padding: 10px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; cursor: pointer; min-height: 42px; }
.pairs button:hover { background: var(--aq-t); }

.visit { background: var(--ink); color: #fff; padding: 40px 0; }
.visit__row { display: grid; gap: 22px; }
.visit h2 { font-size: 2.6rem; margin-bottom: 10px; } .visit a { color: var(--aq); }
.hrs { border-collapse: collapse; } .hrs th, .hrs td { text-align: left; padding: 7px 18px 7px 0; border-bottom: 1px solid #343A40; font-weight: 500; } .hrs th { color: #AEB4BA; }
.walk { color: #AEB4BA; margin: 0; }
.foot { background: #000; color: #AEB4BA; padding: 22px 0; font-size: .86rem; } .foot p { margin: 0; } .foot strong { color: #fff; } .foot a { color: var(--aq); }

/* bottom bar (phones/tablets) */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; border-top: 3px solid var(--aq); }
.bar b { display: block; font: 800 1.15rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .03em; } .bar span { font-size: .85rem; color: #B6BCC2; }
body.sheet-open::after { content: ""; position: fixed; inset: 0; background: rgba(16,18,20,.55); z-index: 75; }

@media (max-width: 999px) {
  .tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; max-height: 90vh; overflow-y: auto; border-radius: 22px 22px 0 0; border-bottom: 0; transform: translateY(105%); visibility: hidden; transition: transform .25s, visibility .25s; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .tray.is-open { transform: none; visibility: visible; }
  .tray__x { display: grid; place-items: center; }
}
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .cat__bar { grid-template-columns: auto 1fr auto; align-items: center; }
  .strip__row { grid-template-columns: 1fr auto; align-items: end; min-height: 150px; }
  .fadebars { display: block; }
  .visit__row { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
}
@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .bar { display: none; }
  .nav { display: flex; }
  .shell { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "rail rail" "cat tray"; align-items: start; }
  .tray { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
  .rail summary { pointer-events: none; } .rail summary::after { content: none; }
  .rail__body { grid-template-columns: 1.4fr 1fr 1fr 1fr auto; align-items: start; gap: 24px; }
  .rail #catOpts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
}
@media (min-width: 1240px) {
  .shell { grid-template-columns: 250px minmax(0, 1fr) 380px; grid-template-areas: "rail cat tray"; }
  .rail { position: sticky; top: 84px; }
  .rail__body { grid-template-columns: 1fr; }
  .rail #catOpts { display: block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
