/* Josef’s Barber Shop · concrete poster. "להניח את הראש במקום הנכון."
   Five giant words are the navigation. One family (IBM Plex Sans Hebrew), 1px black rules,
   no rounded corner anywhere. Motion: the haircut fills the word "הראש", a map pin lands,
   photos go from grey to colour. Only transform + opacity move. */

:root {
  --bg: #C9CBCD;
  --surface: #F2F2F4;
  --ink: #121416;
  --muted: #3F4044;
  --primary: #121416;
  --primary-ink: #F2F2F4;
  --soft: #DDDDE1;
  --accent: #819497;
  --line: #121416;
  --focus: #0B5C64;
  --band: #4A4A46;
  --radius: 0px;
  --radius-pill: 0px;
  --k-progress: #121416;
  --k-outline-fill: var(--soft);
  --font-head: "IBM Plex Sans Hebrew", system-ui, sans-serif;
  --head: clamp(8.5rem, 2rem + 28vw, 15rem);
  --word: clamp(5.5rem, 1rem + 20vw, 10rem);
  --big: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  --gut: max(16px, calc(50% - 624px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, figure, blockquote, h1, h2, h3, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: .6rem 1rem; background: var(--ink); color: var(--surface); font-weight: 600; }
.skip-link:focus { top: 12px; }

.demo-banner {
  padding: .5rem 16px;
  background: #121416;
  color: #F2F2F4;
  font-size: .875rem;
  line-height: 1.5;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding-inline: var(--gut);
}
.brand { display: grid; margin-inline-end: auto; text-decoration: none; line-height: 1; }
.brand__name { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.brand__sub { margin-top: 3px; font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.site-nav { display: none; }
.site-header .header-wa { display: none; }

/* ---------- Hero: "הראש" ---------- */
.hero { padding: 14px var(--gut) 56px; }
.hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.4;
}
.hero__score { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.hero__score svg { width: 14px; height: 14px; }
.hero__title { margin-top: 22px; font-weight: 700; }
.t-small { display: block; font-size: 34px; font-weight: 300; line-height: 1.05; }
.t-head {
  position: relative;
  display: block;
  margin: .02em 0 .1em;
  font-size: var(--head);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.t-head__hair { display: none; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .t-head__hair {
    display: block;
    position: absolute;
    inset: 0;
    color: transparent;
    background-image: url(images/photo-2-800.webp);
    background-image: image-set(url(images/photo-2-800.avif) type("image/avif"), url(images/photo-2-800.webp) type("image/webp"));
    background-size: cover;
    background-position: 50% 9%;
    -webkit-background-clip: text;
    background-clip: text;
  }
}
.t-end { position: relative; white-space: nowrap; }
.pin {
  position: absolute;
  inset-inline-end: -3px;
  bottom: .32em;
  width: 22px;
  height: 30px;
}
.pin__drop { display: block; width: 22px; height: 30px; fill: var(--ink); }
.pin__shadow {
  position: absolute;
  bottom: -4px;
  left: 4px;
  width: 14px;
  height: 4px;
  border-radius: 50%;
  background: rgb(18 20 22 / .2);
}
.hero__aside { margin-top: 28px; }
.hero__lead { max-width: 32ch; font-size: 1.0625rem; }
.hero__actions { display: grid; justify-items: start; gap: 18px; margin-top: 24px; }
.hero__actions .k-btn { justify-self: stretch; }
.k-link { font-weight: 600; }

/* ---------- Sections: a giant word, then the content ---------- */
.block { padding-block: 48px 72px; border-top: 1px solid var(--line); }
.block > * { padding-inline: var(--gut); }
.word {
  margin-bottom: 28px;
  font-size: var(--word);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.03em;
}
.cite { margin-top: 6px; color: var(--muted); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; line-height: 1.4; }
blockquote footer { margin-top: 8px; color: var(--muted); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; line-height: 1.4; }

/* הכיסא */
.chair__photo { --k-reveal-cover: #121416; aspect-ratio: 4 / 5; overflow: hidden; }
.chair__photo picture, .chair__photo img { width: 100%; height: 100%; }
.chair__photo img { object-fit: cover; object-position: 30% 62%; }
.pull { margin: 32px 0 28px; }
.pull p { font-size: 28px; font-weight: 300; line-height: 1.3; }
.barbers { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.barbers li { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.barbers__name { margin-bottom: 6px; font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.barbers p:not(.cite) { font-size: 1rem; }

/* הפרטים */
.details__intro { margin-bottom: 32px; }
.details__intro p { max-width: 40ch; font-size: 1.1875rem; font-weight: 600; line-height: 1.5; }
.spec { border-bottom: 1px solid var(--line); }
.spec__row { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.spec dt { margin-bottom: 6px; font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.spec dd p:not(.cite) { font-size: 1rem; }
.look { display: grid; gap: 28px; margin-top: 40px; }
.look__frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink); }
.look__frame picture { position: absolute; inset: 0; }
.look__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.look__frame--b img { object-position: 50% 35%; }
.look__gray { filter: grayscale(1); }
.look figcaption { margin-top: 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; }

/* הנסיעה: a black road with quotes driving by */
.block > .road { padding-inline: 0; }
.road {
  --k-marquee-gap: 1.75rem;
  position: relative;
  min-height: 64px;
  padding-block: 16px;
  background: #121416;
  color: #F2F2F4;
}
.road .k-marquee__group {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem var(--k-marquee-gap);
  margin: 0;
  padding: 0 var(--gut);
  list-style: none;
}
.road.is-running .k-marquee__group { padding-inline: 0; }
.road .k-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--k-marquee-gap);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.road .k-marquee__item::after { content: ""; width: 8px; height: 8px; background: var(--accent); }
.road__by { margin-inline-start: -1.1rem; color: #C9CBCD; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; }
.big-quote { margin-top: 40px; }
.big-quote p { font-size: var(--big); font-weight: 300; line-height: 1.3; }
.score-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 28px; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; }
.score-line svg { width: 14px; height: 14px; }
.score-line .k-link { min-height: 44px; display: inline-flex; align-items: center; }

/* המקום */
.block > .band { padding: 28px var(--gut); }
.band {
  --k-outline-ink: #F2F2F4;
  --k-outline-fill: rgb(242 242 244 / .14);
  --focus: #F2F2F4;
  background: var(--band);
  color: #F2F2F4;
}
.band__address { font-size: 34px; font-weight: 300; line-height: 1.15; }
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
}
.live::before { content: ""; width: 8px; height: 8px; background: #C9CBCD; }
.live.is-open::before { background: #9FE3D5; }
.band__nav { display: grid; gap: 12px; margin-top: 22px; }
.place__grid { display: grid; gap: 36px; margin-top: 36px; }
.place__sign { --k-reveal-cover: #121416; }
.place__sign img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.place__sign figcaption { margin-top: 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; }
.label { margin-bottom: 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; }
.hours { width: 100%; border-collapse: collapse; border-bottom: 1px solid var(--line); }
.hours tr { border-top: 1px solid var(--line); }
.hours th, .hours td { padding: 9px 0; font-weight: 400; text-align: start; }
.hours td { text-align: end; }
.hours tr.is-today { background: var(--ink); color: var(--surface); }
.hours tr.is-today th, .hours tr.is-today td { padding-inline: 8px; font-weight: 600; }
.note-q p { font-size: 1.1875rem; line-height: 1.5; }
.cancel { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.place__inside { --k-reveal-cover: #121416; margin-top: 40px; }
.place__inside img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 55%; }

/* תור. */
.word--book { font-size: clamp(7.5rem, 2rem + 24vw, 13rem); }
.book__body { display: grid; justify-items: start; gap: 18px; }
.book__body .k-btn { justify-self: stretch; }
.book__lead { font-size: 1.1875rem; }

/* ---------- Footer + dock ---------- */
.site-footer {
  padding: 32px var(--gut) 40px;
  background: #121416;
  color: #F2F2F4;
  font-size: .9375rem;
}
.site-footer p + p { margin-top: 8px; }
.site-footer a { color: #F2F2F4; text-decoration: underline; }
.site-footer a[href^="tel"] { display: inline-block; min-height: 24px; }
.site-footer :focus-visible { outline-color: #F2F2F4; }

.dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  gap: 8px;
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
  background: #121416;
  border-top: 1px solid #4A4A46;
}
.dock > * { flex: 1 1 0; }
.dock .k-btn--fill { --k-btn-bg: #F2F2F4; --k-btn-ink: #121416; }
.dock :focus-visible { outline-color: #F2F2F4; }
.dock.is-hidden { visibility: hidden; opacity: 0; transform: translateY(100%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .dock { transition: transform 360ms cubic-bezier(.16, 1, .3, 1), opacity 240ms ease, visibility 0s; }
  .dock.is-hidden { transition: transform 360ms cubic-bezier(.16, 1, .3, 1), opacity 240ms ease, visibility 0s 360ms; }
}
@media (prefers-reduced-motion: reduce) { .dock.is-hidden { transform: none; } }
@media (max-width: 899px) { body { padding-bottom: 72px; } }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  .look { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .band__nav { display: flex; flex-wrap: wrap; }
  .hero__actions .k-btn, .book__body .k-btn { justify-self: start; width: auto; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  body { font-size: 1.125rem; }
  .site-header__inner { gap: 20px; }
  .site-nav { display: flex; gap: 32px; margin-inline-end: auto; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
  .site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .brand { margin-inline-end: 0; }
  .site-header .header-wa { display: inline-flex; }

  .hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 20px;
    padding-bottom: 88px;
  }
  .hero__meta { grid-column: 1 / -1; }
  .hero__title { grid-column: 1 / 9; margin-top: 36px; }
  .t-small { font-size: 56px; }
  .hero__aside { grid-column: 9 / 13; align-self: end; margin: 0 0 .9em; }
  .hero__actions .k-btn { justify-self: stretch; width: 100%; }

  .block { padding-block: 64px 112px; }
  .block__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
  .chair__text { grid-column: 1 / 7; grid-row: 1; }
  .chair__photo { grid-column: 8 / 13; grid-row: 1; aspect-ratio: 3 / 4; }
  .pull { margin-top: 0; }
  .pull p { font-size: 44px; }
  .barbers__name { font-size: 48px; }

  .spec__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: baseline; }
  .spec dt { grid-column: 1 / 5; font-size: 48px; }
  .spec dd { grid-column: 5 / 13; }

  .big-quote p { max-width: 83%; }

  .band { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
  .band__nav { margin-top: 0; }
  .place__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

  .book { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: end; padding-inline: var(--gut); }
  .book > * { padding-inline: 0; }
  .word--book { grid-column: 1 / 7; margin: 0; }
  .book__body { grid-column: 8 / 13; margin: 0 0 1.4em; }
  .book__body .k-btn { justify-self: stretch; width: 100%; }
}

/* =====================================================================
   Motion. Hero: pure CSS from the first paint (the black word is the LCP
   and never moves; only the hair layer and the pin do). Below the fold:
   start states only under html.k-motion. Reduced motion: final state.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .t-head__hair { animation: fade-in 900ms var(--k-ease-out) 150ms both; }
  .pin__drop { animation: pin-drop 400ms var(--k-spring) 950ms both; }
  .pin__shadow { animation: shadow 200ms ease-out 1250ms both; }

  .k-motion .look__item:not(.is-in) .look__color { opacity: 0; }
  .k-motion .look__color { transition: opacity 1200ms var(--k-ease-out) 300ms; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-28px); } }
@keyframes shadow { from { opacity: 0; transform: scale(.4); } }

@media (forced-colors: active) {
  .t-head__hair { display: none; }
}

/* ---------- Accessibility statement + 404 ---------- */
.page { max-width: 760px; padding: 48px 16px 72px; margin-inline: auto; }
.page h1 { margin-bottom: 20px; font-size: clamp(3rem, 1rem + 10vw, 6rem); font-weight: 700; line-height: .95; letter-spacing: -.03em; }
.page h2 { margin: 32px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.375rem; font-weight: 700; }
.page ul { padding-inline-start: 1.2em; }
.page li + li { margin-top: 6px; }
.page p + p { margin-top: 12px; }
.page a { display: inline-block; min-height: 24px; font-weight: 600; }
