/* גולדמן · "גם במוצ"ש": לוח זמנים, פליז ונחושת על כחול לילה. design.md הוא המקור. */
:root {
  --bg: #1B2A41;
  --surface: #22344F;
  --ink: #F6F1E7;
  --muted: #B9C2CF;
  --primary: #C9A24E;
  --primary-ink: #1B2A41;
  --soft: #F6F1E7;
  --accent: #B66A3A;
  --line: #34486A;
  --focus: #F6F1E7;
  --radius: 6px;
  --k-btn-radius: 6px;
  --k-outline-ink: #F6F1E7;
  --font-head: "Karantina", system-ui, sans-serif;
  --font-body: "Alef", system-ui, sans-serif;
  --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.7; overflow-x: clip; }
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-head); font-weight: 700; }
h1 { font-size: 48px; line-height: 1; }
h2 { font-size: 40px; line-height: 1.05; margin-bottom: 24px; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--soft); color: var(--bg); padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.demo-banner { min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 8px var(--gutter); background: #0F1A2B; color: var(--ink); font-size: 14px; line-height: 1.4; text-align: center; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.top__inner { max-width: 1180px; margin-inline: auto; padding: 6px var(--gutter); display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; min-height: 44px; justify-content: center; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--primary); }
.brand__sub { font-size: 14px; color: var(--muted); }
.top__nav { display: none; }
.top__call { margin-inline-start: auto; width: 48px; height: 48px; border-radius: 6px; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); }
.top__call svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Copper rail (pipe tiles + a ball valve at 70%) ---------- */
.rail { position: relative; height: 22px; background: url(../images/pipe-tile.svg) repeat-x 0 50% / 240px 22px; }
.rail::after { content: ""; position: absolute; left: 30%; top: -18px; width: 60px; height: 44px; background: url(../images/valve.svg) no-repeat center / contain; }
.rail--thin { height: 22px; transform: scaleY(.7); }
.rail--thin::after { display: none; }

/* ---------- Hero ---------- */
.hero { padding-bottom: 56px; }
.hero__grid { padding-top: 32px; display: grid; gap: 32px; }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.hero__lead { margin-top: 14px; color: var(--muted); }
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.hero__actions .k-btn { width: 100%; }
.call-btn__text { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.call-btn__num { font-size: 14px; font-weight: 400; direction: ltr; text-align: end; }
.rating { margin-top: 14px; font-size: 15px; color: var(--muted); }
.rating strong { color: var(--primary); }

.live { border: 1px solid var(--line); border-radius: 6px; padding: 20px; background: rgb(15 26 43 / .35); }
.live__clock { font-family: var(--font-head); font-weight: 700; font-size: 96px; line-height: .9; color: var(--primary); font-variant-numeric: tabular-nums; }
.live__time { display: inline-block; min-width: 2.6ch; direction: ltr; }
.live__chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 14px; border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 16px; }
.live__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.live__static { font-weight: 700; }
.live__clock:not([hidden]) ~ .live__static { display: none; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 18px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.day__rail { position: relative; width: 28px; height: 120px; border-radius: 4px; background: var(--line); }
.day__fill { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(#C9A24E, #B08D3C); transform-origin: bottom; }
.day--sat .day__fill { transform: scaleY(.271); }
.day__from { position: absolute; bottom: calc(27.1% + 4px); left: 50%; translate: -50% 0; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--bg); padding: 0 4px; border-radius: 4px; }
.day__name { font-weight: 700; font-size: 14px; }
.day__now { position: absolute; inset: 0; transform: translateY(calc(var(--t, 0) * 100%)); pointer-events: none; }
.day__now::before { content: ""; position: absolute; top: -1px; left: -6px; right: -6px; height: 2px; background: var(--ink); }
.day__now::after { content: ""; position: absolute; top: -4px; right: -10px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }

/* ---------- Hours band (light) ---------- */
.hours { background: var(--soft); color: #1B2A41; padding-block: 56px; }
.hours :focus-visible { outline-color: #1B2A41; }
.hours__grid { display: grid; gap: 28px; }
.hours__table { width: 100%; border-collapse: collapse; font-size: 18px; }
.hours__table th, .hours__table td { text-align: start; padding: 10px 4px; border-bottom: 1px solid #D9D0BE; }
.hours__table th { font-weight: 700; width: 40%; }
.hours__table tr:last-child td { color: #7A4422; font-weight: 700; }
.hours__line { font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1.05; }

/* ---------- Brass tags on a copper pipe ---------- */
.services { padding-block: 56px 64px; }
.rail--services { margin-bottom: 0; }
.tags { list-style: none; margin: 0 auto; padding-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.tag { display: flex; flex-direction: column; align-items: center; transform-origin: top center; }
.tag::before { content: ""; width: 12px; height: 30px; background: url(../images/chain.svg) no-repeat center / contain; }
.tag__plate {
  position: relative; width: 100%; max-width: 160px; min-height: 104px; margin-bottom: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 22px 10px 12px; border-radius: 12px; color: #1B2A41;
  background: linear-gradient(#C9A24E, #B08D3C); box-shadow: 0 10px 20px -12px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .35);
}
.tag__plate::before { content: ""; position: absolute; top: 7px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--bg); }
.tag svg { width: 22px; height: 22px; fill: none; stroke: #1B2A41; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tag__name { font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1; text-shadow: 0 1px 0 rgb(255 255 255 / .35); }
.tag__sub { font-size: 15px; line-height: 1.3; font-weight: 700; }

/* ---------- 45 minutes ---------- */
.finish { padding-block: 56px; }
.finish__grid { display: grid; gap: 28px; }
.pie { --s: 140px; position: relative; width: var(--s); height: var(--s); border-radius: 50%; background: var(--surface); }
.pie__half { position: absolute; inset: 0; border-radius: 50%; }
.pie__half--r { clip-path: inset(0 0 0 50%); }
.pie__half--l { clip-path: inset(0 50% 0 0); }
.pie__half > span { position: absolute; inset: 0; border-radius: 50%; }
.pie__half--r > span { background: linear-gradient(to right, var(--primary) 50%, transparent 50%); transform: rotate(180deg); }
.pie__half--l > span { background: linear-gradient(to left, var(--primary) 50%, transparent 50%); transform: rotate(90deg); }
.pie__face { position: absolute; inset: 16%; border-radius: 50%; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.pie__face b { font-family: var(--font-head); font-size: 56px; color: var(--primary); }
.pie__face span { font-size: 15px; font-weight: 700; }
.finish__quote { margin: 0; }
.finish__quote p { font-size: 21px; line-height: 1.5; font-weight: 700; }
blockquote footer { font-size: 15px; color: var(--muted); margin-top: 8px; font-weight: 400; }

/* ---------- Reviews ---------- */
.reviews { padding-block: 0 56px; }
.reviews .wrap { padding-top: 48px; }
.reviews__grid { display: grid; gap: 14px; }
.reviews__grid blockquote { margin: 0; padding: 20px; background: var(--surface); border-radius: 6px; border-top: 3px solid var(--primary); }
.reviews__more { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.k-link { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- End ---------- */
.end { padding-block: 56px 64px; border-top: 1px solid var(--line); }
.end__grid { display: grid; gap: 24px; }
.end__art { position: relative; width: 200px; }
.end__drop { display: none; }
.end__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

.foot { padding: 28px 0 24px; font-size: 15px; line-height: 1.5; background: #0F1A2B; }
.foot__inner { display: grid; gap: 4px; }
.foot a { color: var(--ink); display: inline-block; min-height: 44px; padding-block: 11px; }
.dock { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); transition: transform 300ms var(--k-ease), opacity 300ms var(--k-ease); }
.dock > * { flex: 1 1 0; }
.dock.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }
body { padding-bottom: 76px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.intro .day__fill { animation: fill-day 500ms var(--k-ease-out) both; }
  html.intro .day:nth-child(1) .day__fill { animation-delay: 200ms; }
  html.intro .day:nth-child(2) .day__fill { animation-delay: 280ms; }
  html.intro .day:nth-child(3) .day__fill { animation-delay: 360ms; }
  html.intro .day:nth-child(4) .day__fill { animation-delay: 440ms; }
  html.intro .day:nth-child(5) .day__fill { animation-delay: 520ms; }
  html.intro .day:nth-child(6) .day__fill { animation-delay: 600ms; }
  html.intro .day--sat .day__fill { animation: fill-sat 500ms var(--k-ease-out) 760ms both; }
  html.intro .day__from { animation: fade 300ms ease-out 1000ms both; }
  html.intro .day__now { animation: now-in 250ms var(--k-ease-out) 1100ms both; }
  html.intro .live__chip { animation: chip-in 200ms var(--k-ease-out) 1300ms both; }

  .k-motion .tag { rotate: -6deg; transition: rotate 700ms var(--k-spring); }
  .k-motion .tag.is-in { rotate: 0deg; }
  .k-motion .pie .pie__half > span { transform: none; }
  .k-motion .pie.is-in .pie__half--r > span { transform: rotate(180deg); transition: transform 600ms linear; }
  .k-motion .pie.is-in .pie__half--l > span { transform: rotate(90deg); transition: transform 300ms linear 600ms; }
  .k-motion .end__drop {
    display: block; position: absolute; left: calc(183 / 240 * 100%); top: calc(116 / 200 * 100%); width: 8px; height: 11px; margin-left: -4px;
    background: var(--primary); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; opacity: 0;
  }
  .k-motion .end__art.is-in .end__drop { animation: drip 700ms ease-in 500ms both; }
}
@keyframes fill-day { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fill-sat { from { transform: scaleY(0); } to { transform: scaleY(.271); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes now-in { from { translate: 12px 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes chip-in { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drip { 0% { transform: none; opacity: 1; } 100% { transform: translateY(24px); opacity: 0; } }

/* ---------- Subpages ---------- */
.subpage__main { max-width: 720px; margin-inline: auto; padding: 48px var(--gutter) 64px; }
.subpage__main h1 { margin-bottom: 18px; }
.subpage__main h2 { font-size: 30px; margin: 28px 0 10px; }
.subpage__main p, .subpage__main li { margin-bottom: 8px; }
.subpage__eyebrow { color: var(--primary); font-weight: 700; }
.subpage__back { display: inline-block; min-height: 44px; padding-block: 10px; font-weight: 700; }
body.subpage { padding-bottom: 0; }

/* ================= Desktop ================= */
@media (min-width: 1000px) {
  :root { --gutter: 24px; }
  h1 { font-size: 96px; }
  h2 { font-size: 60px; }
  .top__nav { display: flex; gap: 6px; margin-inline-start: auto; }
  .top__nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 10px 14px; border-radius: 6px; }
  .top__nav a:hover { background: var(--surface); }
  .top__call { margin-inline-start: 8px; }
  .hero { padding-bottom: 96px; }
  .hero__grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding-top: 72px; align-items: start; }
  .hero__text { grid-column: 1 / span 6; }
  .live { grid-column: 8 / span 5; padding: 28px; }
  .hero__actions { flex-direction: row; }
  .hero__actions .k-btn { width: auto; }
  .live__clock { font-size: 160px; }
  .day__rail { height: 220px; }
  .hours { padding-block: 80px; }
  .hours__grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
  .hours__grid > div { grid-column: 1 / span 5; }
  .hours__line { grid-column: 7 / span 6; font-size: 60px; }
  .services { padding-block: 88px; }
  .tags { grid-template-columns: repeat(6, 1fr); }
  .tag__name { font-size: 30px; }
  .finish { padding-block: 88px; }
  .finish__grid { grid-template-columns: 220px 1fr; gap: 56px; align-items: center; }
  .pie { --s: 220px; }
  .pie__face b { font-size: 80px; }
  .finish__quote p { font-size: 26px; }
  .reviews__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .end__grid { grid-template-columns: 1fr 260px; align-items: center; }
  .end__art { grid-column: 2; grid-row: 1; width: 240px; }
  .end__actions { flex-direction: row; }
  .foot__inner { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .dock { display: none; }
  body { padding-bottom: 0; }
}
